:root {
  /* Theme palette. Change --accent to try another theme color. */
  --accent: #bf8f08;
  --page-bg: #ffffff;
  --surface: #ffffff;
  --text: #352e32;
  --muted: #74666d;
  --on-accent: #ffffff;
  --accent-hover: color-mix(in srgb, var(--accent) 84%, #000000);
  --focus: var(--accent);
  --line: color-mix(in srgb, var(--accent) 14%, #e5e5e5);
  --input-border: color-mix(in srgb, var(--accent) 20%, #c9c3c6);
  --placeholder: #897b82;
  --hover-bg: color-mix(in srgb, var(--accent) 8%, var(--surface));
  --selected-bg: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --panel-bg: color-mix(in srgb, var(--accent) 3%, var(--surface));
  --table-head-bg: #615532;
  --table-head-text: #ffffff;
  --badge-bg: color-mix(in srgb, var(--accent) 10%, var(--surface));
  --tag-bg: color-mix(in srgb, var(--accent) 6%, var(--surface));
  --tag-border: color-mix(in srgb, var(--accent) 20%, var(--surface));
  --tag-text: var(--accent-hover);
  --footer-bg: color-mix(in srgb, var(--accent) 24%, #252128);
  --footer-text: #d7c7cf;
  --overlay: rgba(48, 29, 39, .35);

  /* Semantic colors can be adjusted independently of the theme. */
  --danger: #9b3f4c;
  --risk-bg: #faf1ee;
  --risk-text: #77534b;
  --risk-border: #eadbd5;
  --conditional-text: #75624e;
  --conditional-border: #ddd0bd;
  --notice-bg: #fff6e2;
  --notice-border: #e7d6a9;
  --level-low-bg: #e5f3ed;
  --level-low-text: #21634c;
  --level-medium-bg: #e8f0fb;
  --level-medium-text: #325b8c;
  --level-high-bg: #ffd8d8;
  --level-high-text: #881a14;

  font-family: system-ui, -apple-system, "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  font-synthesis: none;
}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.7}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button{border:1px solid var(--line);border-radius:6px;padding:10px 16px;background:var(--surface);color:inherit;min-height:44px}button:hover{background:var(--hover-bg)}h1,h2,h3,p{margin-top:0}h2{font-size:18px;margin-bottom:0}h3{font-size:15px}main{max-width:1240px;margin:auto;padding:0 36px}.site-header{border-bottom:1px solid var(--line);background:var(--surface)}.header-inner{max-width:1240px;margin:auto;padding:18px 36px;display:flex;align-items:center;gap:12px;font-weight:700}.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:var(--accent);color:var(--on-accent);border-radius:7px;font-size:14px}.prototype{margin-left:auto;font-size:10px;letter-spacing:.1em;color:var(--muted);font-weight:500}.primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent);font-weight:600}.primary:hover{background:var(--accent-hover)}.tabs{display:flex;border-bottom:1px solid var(--line);gap:24px;margin-bottom:24px}.tabs button{border:0;border-radius:0;background:none;padding:12px 4px 15px;position:relative;color:var(--muted);font-weight:600}.tabs button[aria-current]{color:var(--accent);border-bottom:3px solid var(--accent)}.tabs span{font-size:12px;display:inline-block;padding:0 8px;background:var(--badge-bg);border-radius:5px;margin-left:6px}.filters{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:20px 24px}.filter-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.filter-heading h2{font-size:15px}.text-button{color:var(--accent);border:0;padding:4px 0;min-height:32px;font-size:12px;background:none}label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}input:not([type=checkbox]),select,textarea{border:1px solid var(--input-border);border-radius:5px;padding:10px 12px;background:var(--surface);width:100%;color:var(--text);min-height:44px;font-size:14px}input::placeholder{color:var(--placeholder)}select{padding-right:25px}.search-label{margin-top:14px;margin-bottom:0}.filter-grid{display:grid;grid-template-columns:1.35fr 1fr .8fr 1fr 1fr;gap:14px}.list-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 8px}.list-heading h2 span{font-size:13px;font-weight:400;color:var(--muted);margin-left:10px}.list-heading>span,.level-note{font-size:12px;color:var(--muted)}.level-note{margin-bottom:16px}.column-head{display:grid;grid-template-columns:minmax(0,1fr) 110px 240px 64px;padding:10px 20px;background:var(--table-head-bg);color:var(--table-head-text);font-size:11px}.column-head span:last-child{text-align:center}.task{background:var(--surface);border:1px solid var(--line);border-top:0}.task.selected{background:var(--selected-bg);box-shadow:inset 3px 0 var(--accent)}.task-summary{display:grid;grid-template-columns:minmax(0,1fr) 110px 240px 64px;align-items:center;padding:14px 20px;gap:0;min-height:92px}.task-title{display:flex;align-items:center;text-align:left;border:0;background:none;padding:4px 14px 4px 0;gap:14px;width:100%}.task-title:hover{background:none;color:var(--accent)}.chevron{font-size:19px;color:var(--muted);display:inline-block}.task-title[aria-expanded=true] .chevron{transform:rotate(90deg)}.task-name{display:block;font-size:18px;font-weight:650;line-height:1.6}.task-meta{display:block;color:var(--muted);font-size:11px;margin-top:4px;font-weight:400}.level{font-size:12px;font-weight:700;display:inline-block;border-radius:4px;padding:3px 10px;background:var(--badge-bg);color:var(--tag-text);width:max-content}.effects{display:flex;flex-wrap:wrap;gap:5px;padding-right:12px}.tag{display:inline-block;background:var(--tag-bg);border:1px solid var(--tag-border);color:var(--tag-text);border-radius:4px;padding:2px 8px;font-size:11px}.risk-tag{color:var(--risk-text);background:var(--risk-bg);border-color:var(--risk-border)}.conditional-tag{background:var(--surface);border-style:dashed;color:var(--conditional-text);border-color:var(--conditional-border)}.check-label{align-items:center;justify-content:center;min-height:48px;min-width:48px;cursor:pointer}.check-label input{width:22px;height:22px;accent-color:var(--accent);cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.task-panel{border-top:1px solid var(--line);padding:24px 28px 26px 52px;background:var(--panel-bg)}.detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px 32px}.detail-block h3{font-size:12px;color:var(--muted);margin-bottom:6px}.detail-block p{margin:0;white-space:pre-wrap;font-size:14px;overflow-wrap:anywhere}.detail-tags{display:flex;flex-wrap:wrap;gap:5px}.empty{padding:48px 24px;text-align:center;background:var(--surface);border:1px solid var(--line);color:var(--muted)}.empty h3{color:var(--text)}.empty button{margin-top:12px}.review-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:32px 0 24px}.review-heading p{color:var(--muted);margin:6px 0 0}.candidate{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:24px;margin-bottom:20px}.candidate-header{display:flex;align-items:center;justify-content:space-between;gap:20px}.candidate-header h3{font-size:22px;margin:0}.candidate-header p{color:var(--muted);font-size:12px;margin:5px 0 0}.review-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px}.review-form textarea{min-height:86px;resize:vertical}.wide{grid-column:1/-1}.danger{color:var(--danger);background:none;font-size:12px}.notice{background:var(--notice-bg);border:1px solid var(--notice-border);padding:12px 16px;border-radius:6px}.notice a{color:inherit}footer{border-top:1px solid var(--line);margin:36px 0 24px;padding-top:20px;color:var(--muted);font-size:11px}footer>div{display:flex;justify-content:space-between;align-items:center}footer p{margin-bottom:10px}.skip{position:absolute;top:-100px;left:10px;background:var(--surface);padding:10px;z-index:10}.skip:focus{top:10px}[hidden]{display:none!important}@media(min-width:901px){.effects .tag:nth-child(n+3){display:none}}@media(max-width:1000px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.task-summary,.column-head{grid-template-columns:minmax(0,1fr) 80px 170px 52px}}@media(max-width:700px){main{padding:0 16px}.header-inner{padding:15px 16px;font-size:12px}.prototype{font-size:8px}.tabs{gap:20px;margin-bottom:20px}.tabs button{font-size:13px}.filters{padding:16px}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.filter-grid label:first-child{grid-column:1/-1}.list-heading{align-items:center;gap:8px}.list-heading h2{font-size:17px}.column-head{display:none}.task{border-top:1px solid var(--line);border-radius:6px;margin-bottom:9px}.task-summary{grid-template-columns:max-content minmax(0,1fr) 48px;padding:12px 10px 12px 14px}.task-title{grid-column:1/3;grid-row:1;gap:9px}.task-name{font-size:16px}.task-summary>.level{grid-column:1;grid-row:2;margin:5px 0 0 24px}.task-summary>.effects{grid-column:2;grid-row:2;flex-wrap:nowrap;overflow-x:auto;white-space:nowrap;padding:0;margin:5px 0 0 6px}.check-label{grid-column:3;grid-row:1/3}.task-panel{padding:20px}.detail-grid{grid-template-columns:1fr;gap:18px}.review-heading{flex-direction:column;align-items:stretch}.candidate{padding:18px}.candidate-header{align-items:flex-start;gap:8px}.candidate-header h3{font-size:16px}.review-form{grid-template-columns:1fr 1fr}.review-form label:first-child{grid-column:1/-1}.level-note{font-size:11px}.tabs span{margin-left:3px;padding:0 6px}}
dialog{border:1px solid var(--line);border-radius:10px;padding:26px;max-width:480px;width:calc(100% - 32px);color:var(--text)}dialog::backdrop{background:var(--overlay)}dialog h2{margin-bottom:12px}dialog p{font-size:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
.export-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:28px}.export-option{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:20px;display:flex;flex-direction:column;align-items:flex-start}.export-option h3{margin-bottom:6px}.export-option p{font-size:12px;color:var(--muted);margin-bottom:16px}.export-option button{margin-top:auto;max-width:100%;font-size:13px}@media(max-width:700px){.export-options{grid-template-columns:1fr;gap:12px}.export-option{padding:16px}.export-option button{width:100%}}
.column-head{border-left:1px solid transparent;border-right:1px solid transparent}.column-head>span:nth-child(2),.column-head>span:last-child{text-align:center}.task-summary>.level{justify-self:center}.check-label{display:flex;justify-self:center}.check-label input{margin:0}.level-l1{background:var(--level-low-bg);color:var(--level-low-text)}.level-l2{background:var(--level-medium-bg);color:var(--level-medium-text)}.level-l3{background:var(--level-high-bg);color:var(--level-high-text)}@media(max-width:700px){.task-summary>.level{justify-self:start}}
.site-footer{margin:48px 0 0;text-align:center;border-top:1px solid var(--line);background:var(--footer-bg);padding:20px 18px;color:var(--footer-text);font-size:10px}.site-footer-copyright{margin:0;overflow-wrap:anywhere}@media(max-width:700px){.site-footer{margin-top:32px}}

.tabs{position:sticky;top:0;z-index:20;background:var(--page-bg)}.list-heading>p{margin-bottom:0;flex-shrink:0}

.header-inner {
  justify-content: space-between;
}

.site-brand-logo {
  display: block;
  width: min(204px, 44%);
  height: auto;
}

.site-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  text-align: center;
  text-decoration: none;
}

.site-home-link:hover {
  background: var(--hover-bg);
}

.intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 24px;
}

.intro .eyebrow {
  margin-bottom: 2px;
  color: var(--accent);
      font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.45;
}

.intro h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.3;
}

.intro .lead {
  margin-bottom: 0;
  color: var(--muted);
}

.selection-summary {
  flex: 0 0 auto;
  padding: 18px 23px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.selection-total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.selection-total strong {
  font-size: 32px;
  font-weight: 650;
  line-height: 1.3;
}

.selection-summary button {
  width: 100%;
  margin-top: 10px;
}

.candidate-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.candidate-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.candidate-controls label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: normal;
}

.candidate-controls select,
.candidate-controls button {
  min-height: 32px;
  padding-block: 0;
}

.candidate-controls select {
  width: 60px;
  padding-right: 0;
  font-size: 13px;
}

.candidate-controls button {
  width: 88px;
  padding-inline: 8px;
}

.candidate-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .candidate-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .candidate-controls {
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 8px;
  }

  .candidate-controls .priority-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .intro {
    flex-direction: column;
    gap: 18px;
    padding: 24px 0;
  }

  .selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    width: 100%;
    padding: 12px 14px;
  }

  .selection-total strong {
    font-size: 26px;
  }

  .selection-summary button {
    width: auto;
    margin-top: 0;
  }
}
