:root {
  color-scheme: light;
  --paper:#f3f5f4;
  --surface:#fff;
  --ink:#243a40;
  --muted:#586c71;
  --line:#d8e1df;
  --teal:#225e5a;
  --accent:#a14c2f;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
* {box-sizing:border-box;}
[hidden] {display:none!important;}
body {margin:0;color:var(--ink);background:var(--paper);line-height:1.7;}
button,input {font:inherit;}
button {min-height:44px;border:1px solid #b9c9c4;background:#fff;color:var(--ink);border-radius:8px;padding:9px 13px;font-size:12px;font-weight:650;line-height:1.5;cursor:pointer;}
button:hover {background:#eef4f1;border-color:#6d9890;}
button:disabled {opacity:.5;cursor:default;}
.primary {background:var(--teal);border-color:var(--teal);color:#fff;}
.primary:hover {background:#174e4a;border-color:#174e4a;}
.danger {color:#91442d;border-color:#c9afa1;}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible {outline:3px solid #c16b2e;outline-offset:4px;}
a {color:var(--teal);text-underline-offset:4px;}
.page-shell {max-width:1370px;margin:0 auto;padding:0 36px;}
.topbar {position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:78px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);background:var(--paper);}
.topbar a {display:inline-flex;align-items:center;min-height:44px;text-decoration:none;font-weight:700;font-size:14px;}
.topbar a:hover {text-decoration:underline;}
.hero {padding:39px 0 29px;}
.eyebrow {font-size:10px;letter-spacing:.14em;font-weight:800;color:var(--teal);margin:0 0 9px;line-height:1.6;overflow-wrap:anywhere;}
h1 {font-size:clamp(34px,4vw,47px);letter-spacing:-.04em;line-height:1.2;margin:0 0 17px;font-weight:750;}
h1 span {color:var(--teal);}
.hero > p:not(.eyebrow) {margin:0;font-size:16px;color:#4b6469;line-height:1.8;}
.hero-note {margin-top:19px;padding-left:12px;border-left:3px solid #aac5bb;color:var(--muted);font-size:12px;max-width:780px;}
.layout {display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:22px;align-items:start;}
.workbench {min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:25px;box-shadow:0 12px 30px rgb(34 61 53 / 4%);}
.workbench-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid #e2e8e5;}
.badge {display:inline-block;border:1px solid #b8d0c7;background:#edf5f0;color:#275e50;font-size:11px;font-weight:750;padding:4px 9px;border-radius:5px;}
.progress-text {font-size:11px;color:var(--muted);margin-left:12px;white-space:nowrap;}
.top-actions {display:flex;gap:7px;}
.question-nav {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:18px 0 20px;}
.question-nav button {min-width:0;padding:7px;font-variant-numeric:tabular-nums;font-size:12px;color:#486760;background:#f6f8f5;}
.question-nav button[aria-current="step"] {background:var(--teal);color:#fff;border-color:var(--teal);}
.case-card {padding:23px;background:#f0f5f3;border:1px solid #d0dfd9;border-radius:12px;}
.case-heading {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.case-heading .eyebrow {margin:0;}
.fiction-tag {font-size:10px;color:#667a71;border:1px solid #c5d4ca;border-radius:4px;padding:2px 7px;}
h2 {font-size:21px;line-height:1.5;letter-spacing:-.02em;margin:0 0 14px;}
h2[tabindex] {scroll-margin-top:95px;}
.case-facts {padding-left:19px;margin:0;color:#36535a;font-size:14px;line-height:1.95;}
.case-facts li + li {margin-top:8px;}
.case-actions {display:flex;justify-content:flex-end;margin-top:16px;}
.case-actions button {font-size:11px;min-height:44px;border-color:#b5c9c0;background:transparent;}
#answerForm {margin-top:23px;}
.answer-groups {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;}
fieldset {margin:0;padding:12px 10px 10px;min-width:0;border:1px solid #d6dfda;border-radius:10px;}
legend {font-size:12px;font-weight:750;padding:0 5px;color:#345b58;}
.answer-option {display:flex;align-items:flex-start;gap:8px;padding:10px 8px;border:1px solid #e0e6e0;border-radius:7px;margin:0 0 7px;min-height:65px;cursor:pointer;background:#fff;}
.answer-option:last-child {margin-bottom:0;}
.answer-option:has(input:checked) {border-color:#3a7a6f;background:#eef7f0;}
.answer-option:has(input:focus-visible) {outline:2px solid #c16b2e;outline-offset:2px;}
.answer-option input {flex:0 0 auto;margin:4px 0 0;width:16px;height:16px;accent-color:var(--teal);}
.answer-option > span {min-width:0;}
.answer-option strong {display:block;font-size:11px;line-height:1.6;font-weight:700;overflow-wrap:anywhere;}
.answer-option small {display:block;font-size:10px;color:var(--muted);line-height:1.6;margin-top:3px;overflow-wrap:anywhere;}
fieldset:disabled .answer-option {cursor:default;background:#f6f8f5;}
fieldset:disabled .answer-option:has(input:checked) {background:#eaf2ed;border-color:#94b1a3;}
.form-error {color:#9f3d28;font-size:12px;margin:12px 0;min-height:0;}
.form-error:empty {display:none;}
#submitButton {margin-top:15px;min-width:190px;}
.feedback-panel {margin-top:24px;padding:22px;border:1px solid #c9d8ce;border-radius:12px;background:#fafcf9;}
.feedback-panel h2 {font-size:19px;}
.feedback-items {display:grid;gap:12px;}
.feedback-item {padding:13px 15px;border:1px solid #d3e3d7;border-left:3px solid #4e8267;border-radius:7px;background:#f0f7ef;}
.feedback-item.needs-review {background:#fff5e8;border-color:#e0ceaf;border-left-color:#a85f34;}
.feedback-item h3 {font-size:13px;margin:0 0 7px;color:#2e594b;}
.feedback-item.needs-review h3 {color:#8d4c2e;}
.feedback-item p {margin:5px 0 0;font-size:12px;line-height:1.9;color:#4b6360;}
.feedback-item .choice-comparison {color:#405a56;font-size:11px;font-weight:600;}
.next-step {margin-top:17px;padding-top:14px;border-top:1px solid #dce4da;font-size:12px;color:#466259;}
.next-step strong {font-size:12px;}
.next-step p {margin:6px 0 0;}
.next-row {display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:18px;}
.next-row p {font-size:11px;color:var(--muted);margin:0;}
.next-row button {flex:0 0 auto;}
.game-status {margin:18px 0 0;color:#4b6866;font-size:12px;min-height:22px;}
.small-note {font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0 0;}
.notice {font-size:12px;line-height:1.8;border-left:3px solid #c58d5c;background:#fff3e4;color:#805133;padding:11px 13px;border-radius:5px;overflow-wrap:anywhere;}
.share-fallback {margin-top:12px;border:1px solid #d1c0a7;background:#fff7ec;border-radius:8px;padding:13px;}
.share-fallback label {display:block;font-size:11px;color:#805133;margin-bottom:8px;}
.share-fallback input {display:block;width:100%;min-width:0;min-height:44px;font-size:12px;padding:10px;border:1px solid #b9c9bf;border-radius:6px;background:#fff;color:var(--ink);}
.side-panel {display:grid;gap:17px;min-width:0;}
.side-panel > section {background:#fbfcf9;border:1px solid var(--line);padding:21px;border-radius:13px;}
.side-panel h2 {font-size:15px;margin:0 0 12px;}
.side-panel p {font-size:12px;color:var(--muted);line-height:1.85;margin:9px 0 0;}
.side-panel .eyebrow {font-size:9px;margin:0 0 8px;color:var(--teal);}
.side-panel button {margin-top:14px;}
details summary {cursor:pointer;font-weight:750;min-height:44px;font-size:15px;line-height:1.6;}
details h3 {font-size:12px;margin:17px 0 8px;}
details dl {margin:0;font-size:12px;}
details dt {font-weight:750;color:#3c625b;margin-top:10px;}
details dd {margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.9;}
.rule-matrix {width:100%;border-collapse:collapse;font-size:11px;margin:12px 0;text-align:center;}
.rule-matrix caption {text-align:left;font-size:10px;color:var(--muted);margin-bottom:6px;}
.rule-matrix td,.rule-matrix th {padding:7px 3px;border:1px solid #d3dfd7;font-weight:600;}
.rule-matrix thead th {background:#edf3ee;}
.rule-matrix tbody th {background:#f5f7f2;}
.rule-callout {font-size:11px;color:#7b5035;background:#fff1dd;border-left:3px solid #c59661;padding:11px;margin-top:12px;border-radius:4px;line-height:1.9;}
.history-list {list-style:none;margin:13px 0 0;padding:0;}
.history-list li {padding:13px 0;border-bottom:1px solid #dce4db;}
.history-list li:last-child {border-bottom:0;}
.history-list strong {font-size:12px;color:#355a52;}
.history-list p {font-size:10px;margin:5px 0;}
.history-list span {font-size:11px;color:#61736b;}
.side-panel .storage-status {border-left:3px solid #a8c4b1;background:#edf5ec;color:#44634e;font-size:11px;padding:10px 11px;border-radius:4px;}
.side-panel .storage-status.is-error {color:#865134;background:#fff1dd;border-color:#bc8b5a;}
.summary-panel {margin-top:30px;padding-top:27px;border-top:2px solid #bfd2c8;}
.summary-panel > p:not(.eyebrow) {font-size:12px;color:var(--muted);margin:9px 0 17px;}
.summary-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.summary-grid > div {border:1px solid #c9dcd2;border-radius:9px;background:#edf5ef;padding:16px 8px;text-align:center;}
.summary-grid strong {display:block;font-size:23px;font-weight:750;line-height:1.4;color:#28594b;font-variant-numeric:tabular-nums;}
.summary-grid span {font-size:11px;color:#5f7468;}
.summary-totals {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin:17px 0;font-size:12px;color:#526f65;}
.summary-totals strong {font-size:16px;color:#2d594e;}
.review-dimensions {display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px;}
.review-dimensions button {font-size:11px;}
.summary-table-wrap {width:100%;}
.summary-table-wrap table {width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed;}
.summary-table-wrap caption {text-align:left;font-size:12px;font-weight:700;margin-bottom:10px;}
.summary-table-wrap td,.summary-table-wrap th {border-bottom:1px solid #dce4de;padding:8px 3px;text-align:center;overflow-wrap:anywhere;}
.summary-table-wrap th {font-weight:700;color:#436358;}
.summary-table-wrap thead {background:#f1f5f0;}
.summary-table-wrap button {font-size:11px;padding:8px;min-width:44px;}
#summaryRestart {margin-top:20px;}
footer {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:13px;padding:28px 0;color:var(--muted);font-size:11px;}
footer a {display:inline-flex;align-items:center;min-height:44px;}
dialog {width:min(460px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #c6d5ca;background:#fffef8;color:var(--ink);border-radius:14px;padding:25px;margin:auto;box-shadow:0 24px 75px rgb(29 57 43 / 24%);}
dialog::backdrop {background:rgb(24 44 39 / 48%);}
dialog h2 {font-size:21px;margin:0 0 13px;}
dialog p {font-size:13px;color:var(--muted);line-height:1.9;margin:0 0 22px;}
.dialog-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;}
@media(max-width:1100px) {
  .page-shell {padding:0 24px;}
  .layout {grid-template-columns:minmax(0,1fr) 264px;gap:18px;}
  .workbench {padding:20px;}
  .side-panel > section {padding:18px;}
  .answer-groups {gap:8px;}
  fieldset {padding:11px 7px 8px;}
  .answer-option {padding:9px 6px;gap:6px;}
}
@media(max-width:900px) {
  .page-shell {max-width:820px;}
  .layout {grid-template-columns:minmax(0,1fr);}
  .side-panel {grid-template-columns:1fr 1fr;}
  .side-panel > section:last-child {grid-column:1/-1;}
  .answer-option strong {font-size:12px;}
  .answer-option small {font-size:11px;}
}
@media(max-width:540px) {
  .page-shell {padding:0 12px;}
  .topbar {min-height:66px;gap:9px;font-size:10px;}
  .topbar a {font-size:12px;}
  .hero {padding:28px 3px 24px;}
  h1 {font-size:36px;}
  .hero > p:not(.eyebrow) {font-size:14px;}
  .hero-note {font-size:11px;}
  .workbench {padding:16px;border-radius:12px;}
  .workbench-heading {gap:10px;}
  .workbench-heading > div:first-child {display:flex;flex-wrap:wrap;align-items:center;gap:8px;}
  .progress-text {margin-left:0;font-size:10px;}
  .question-nav {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:16px 0;}
  .case-card {padding:17px 14px;}
  h2 {font-size:20px;}
  .case-facts {font-size:13px;line-height:1.95;padding-left:17px;}
  .case-actions button {width:100%;}
  .answer-groups {grid-template-columns:minmax(0,1fr);gap:14px;}
  fieldset {padding:12px;}
  legend {font-size:13px;}
  .answer-option {padding:11px;min-height:62px;}
  .answer-option strong {font-size:12px;}
  .answer-option small {font-size:11px;}
  #submitButton {width:100%;}
  .feedback-panel {padding:17px 13px;}
  .feedback-panel h2 {font-size:18px;}
  .feedback-item {padding:12px;}
  .feedback-item p {font-size:11px;}
  .next-row {align-items:flex-start;flex-direction:column;gap:12px;}
  .next-row button {width:100%;}
  .summary-grid {gap:6px;}
  .summary-grid > div {padding:13px 4px;}
  .summary-grid strong {font-size:20px;}
  .summary-grid span {font-size:10px;}
  .summary-table-wrap table {font-size:10px;}
  .summary-table-wrap td,.summary-table-wrap th {padding:8px 1px;}
  .summary-table-wrap button {font-size:10px;padding:7px 4px;}
  .side-panel {grid-template-columns:minmax(0,1fr);gap:14px;}
  .side-panel > section:last-child {grid-column:auto;}
  footer {padding:23px 0;gap:5px;}
  dialog {padding:22px;}
  .dialog-actions {flex-direction:column;}
  .dialog-actions button {width:100%;}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}
