:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#182430;background:#f4f7f8;line-height:1.5;color-scheme:light}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:#075d85}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ec8f24;outline-offset:2px}
.shell{max-width:1320px;margin:auto;padding:clamp(1rem,3vw,2.5rem)}.intro{max-width:850px;margin-bottom:1.5rem}.intro h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.08;letter-spacing:-.035em;margin:.15rem 0 .7rem}.intro p{font-size:1.06rem;margin:.3rem 0;color:#364855}.eyebrow{font-size:.8rem!important;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#08716f!important}
.layout{display:grid;grid-template-columns:minmax(0,1.22fr) minmax(320px,.78fr);align-items:start;gap:1.25rem}.panel{min-width:0;background:white;border:1px solid #d8e2e5;border-radius:16px;padding:clamp(1rem,2vw,1.7rem);box-shadow:0 12px 28px rgba(22,51,63,.06)}.result{position:sticky;top:1rem}.section-head{display:flex;justify-content:space-between;align-items:center;gap:1rem}.panel h2{font-size:1.35rem;line-height:1.2;margin:0 0 1rem}.panel h3{font-size:1.7rem;line-height:1.16;margin:.5rem 0}.panel h4{font-size:1rem;margin:1.25rem 0 .35rem}
fieldset{min-width:0;border:0;border-top:1px solid #d9e3e7;padding:1.1rem 0 0;margin:1.3rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}legend{font-weight:800;padding:0 .4rem 0 0;color:#0c4859}label{min-width:0;display:flex;flex-direction:column;gap:.3rem;font-size:.92rem;font-weight:680;color:#29404e}label:has(textarea),fieldset .hint{grid-column:1/-1}input,select,textarea{min-width:0;width:100%;border:1px solid #9eafb7;border-radius:8px;background:white;color:#182430;padding:.62rem .7rem;min-height:2.65rem}textarea{resize:vertical;min-height:4rem}textarea[spellcheck="false"]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.83rem}.hint{font-size:.85rem;color:#566a75;font-weight:400;margin:.15rem 0}.status{display:inline-block;margin:.3rem 0;color:#0a5864;background:#def4f3;padding:.25rem .55rem;border-radius:6px;font-weight:750;font-size:.8rem;letter-spacing:.02em}.diagnostic{background:#fff0e8;color:#8b2d09;border-left:4px solid #d45b19;padding:.7rem;white-space:pre-wrap}.callout{background:#edf5f9;border:1px solid #c6dce8;border-radius:10px;padding:.8rem 1rem;margin:1rem 0}.callout p{margin:.3rem 0 0}.result ul{padding-left:1.3rem;margin:.3rem 0}.result li{margin:.4rem 0}.limit{background:#fff7de;border:1px solid #e7d79b;border-radius:8px;padding:.8rem;font-weight:680}.actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0}button,.file-label{border:1px solid #0c526f;border-radius:8px;background:#0c526f;color:white;padding:.55rem .75rem;font-size:.88rem;font-weight:700;display:inline-flex;justify-content:center;align-items:center}button:hover,.file-label:hover{background:#073d54}.quiet{background:white;color:#0c526f}.quiet:hover{background:#edf5f9}.file-label{cursor:pointer}input[type="file"]{width:1px;height:1px;padding:0;border:0;position:absolute;opacity:0}details{border-top:1px solid #d8e2e5;padding-top:1rem;margin-top:1.2rem}summary{cursor:pointer;font-weight:750}details>label{margin:.8rem 0 .35rem}#raw-json{min-height:18rem}#action-status{font-size:.86rem;color:#34576b}
@media(max-width:950px){.layout{grid-template-columns:minmax(0,1fr)}.result{position:static}}@media(max-width:570px){fieldset{grid-template-columns:minmax(0,1fr)}.section-head{align-items:flex-start;flex-wrap:wrap}.actions button,.file-label{flex:1 1 100%}.intro h1{font-size:2rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
.utility-nav{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem;margin-bottom:1.5rem}.nav-links{display:flex;flex-wrap:wrap;gap:.55rem 1.15rem}.utility-nav a,.jump-result{font-weight:700;text-underline-offset:3px}.theme-toggle{background:transparent;color:#0c526f}.theme-toggle:hover{background:#edf5f9}.jump-result{display:none;margin-top:.9rem}#objective,#explanation,#settings,#alternatives,#holds,#diagnostic,#action-status,.limit,.hint{overflow-wrap:anywhere}#raw-json{overflow-wrap:anywhere}input[type="file"]:focus-visible + .file-label{outline:3px solid #ec8f24;outline-offset:3px}
@media(max-width:950px){.jump-result{display:inline-block}}
[data-reading-theme="dark"]{color:#e9f2f5;background:#101b23;color-scheme:dark}
[data-reading-theme="dark"] .intro p{color:#c0d2da}
[data-reading-theme="dark"] .eyebrow{color:#7ad4d0!important}
[data-reading-theme="dark"] .panel{background:#192a34;border-color:#3c5663;box-shadow:none}
[data-reading-theme="dark"] fieldset,[data-reading-theme="dark"] details{border-color:#3c5663}
[data-reading-theme="dark"] legend,[data-reading-theme="dark"] label{color:#dce9ed}
[data-reading-theme="dark"] input,[data-reading-theme="dark"] select,[data-reading-theme="dark"] textarea{background:#10212c;color:#f2f8fa;border-color:#69808a}
[data-reading-theme="dark"] .hint,[data-reading-theme="dark"] #action-status{color:#b1c9d3}
[data-reading-theme="dark"] a{color:#91d6f6}
[data-reading-theme="dark"] .status{color:#a8f5f0;background:#16454a}
[data-reading-theme="dark"] .callout{background:#17394a;border-color:#426a7e}
[data-reading-theme="dark"] .limit{background:#43381b;border-color:#8c7136;color:#fff2c3}
[data-reading-theme="dark"] .diagnostic{background:#4a281f;color:#ffe5d3;border-color:#f29362}
[data-reading-theme="dark"] button,[data-reading-theme="dark"] .file-label{background:#1b7093;border-color:#7cc5e0;color:#fff}
[data-reading-theme="dark"] button:hover,[data-reading-theme="dark"] .file-label:hover{background:#1b5977}
[data-reading-theme="dark"] .quiet,[data-reading-theme="dark"] .theme-toggle{background:transparent;color:#a9e0f5}
[data-reading-theme="dark"] .quiet:hover,[data-reading-theme="dark"] .theme-toggle:hover{background:#29404e}
