:root{color:#1f2933;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f7f8;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{color:#17212b;cursor:pointer;background:#fff;border:1px solid #cfd8dc;border-radius:7px;justify-content:center;align-items:center;gap:.45rem;min-height:38px;padding:.55rem .75rem;display:inline-flex}button:hover{color:#a92920;border-color:#d13f32}.app-shell{flex-direction:column;min-height:100vh;display:flex}.app-header{background:#fff;border-bottom:1px solid #d9e2e7;justify-content:space-between;gap:1.5rem;padding:1.5rem clamp(1rem,3vw,2rem);display:flex}.app-header h1{letter-spacing:0;margin:.15rem 0 .35rem;font-size:clamp(2rem,4vw,3.4rem);line-height:1}.header-copy{color:#4c5a64;max-width:760px;margin:0;line-height:1.5}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#b33228;margin:0;font-size:.76rem;font-weight:800}.toolbar{flex-wrap:wrap;place-content:flex-start flex-end;gap:.5rem;max-width:520px;display:flex}.inline-error{color:#9f1d17;flex-basis:100%;margin:.25rem 0 0;font-size:.85rem}.chapter-tabs{background:#e8eef1;border-bottom:1px solid #d0d9de;grid-template-columns:repeat(7,minmax(132px,1fr));gap:0;display:grid;overflow-x:auto}.chapter-tab{background:#eef3f5;border:0;border-right:1px solid #d0d9de;border-radius:0;grid-template-rows:auto auto;grid-template-columns:auto auto;place-content:center start;gap:.1rem .45rem;min-height:64px;padding:.65rem .9rem;display:grid}.chapter-tab strong{color:#51616b;grid-column:1/-1;font-size:.82rem;font-weight:700}.chapter-tab.active{color:#9f1d17;background:#fff;box-shadow:inset 0 -3px #d13f32}.workspace{grid-template-columns:minmax(0,1.15fr) minmax(380px,.85fr);align-items:start;gap:1rem;padding:1rem;display:grid}.empty-workspace{min-height:calc(100vh - 190px)}.input-panel,.results-panel{background:#fff;border:1px solid #d9e2e7;border-radius:8px}.input-panel{overflow:hidden}.chapter-intro{background:#fbfcfd;border-bottom:1px solid #d9e2e7;padding:1rem 1.25rem}.chapter-intro h1{letter-spacing:0;margin:0 0 .4rem;font-size:1.25rem}.chapter-intro p{color:#52616b;margin:0;line-height:1.5}.editor-stack{gap:.85rem;padding:1rem;display:grid}.editor-section{background:#fff;border:1px solid #dbe4e8;border-radius:8px;padding:1rem}.editor-section h2{letter-spacing:0;margin:0 0 .8rem;font-size:1rem}.advanced-fields{border-top:1px solid #e1e8ec;margin-top:.9rem;padding-top:.9rem}.advanced-fields h3{margin:0 0 .75rem;font-size:.92rem}.field-grid,.row-editor{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem;display:grid}.row-editor{border-top:1px solid #e1e8ec;padding:.85rem 0}.row-editor:first-of-type{border-top:0;padding-top:0}.field{gap:.35rem;display:grid}.field span,.toggle-field span{color:#485864;font-size:.8rem;font-weight:700}.field input,.field select,.field textarea{color:#17212b;background:#fff;border:1px solid #cbd7dd;border-radius:7px;width:100%;min-height:38px;padding:.55rem .65rem}.field textarea{resize:vertical;min-height:86px}.field input:focus,.field select:focus,.field textarea:focus{outline-offset:1px;border-color:#4a9ba1;outline:2px solid #6fb3b8}.toggle-row{flex-wrap:wrap;gap:.75rem;margin-top:.85rem;display:flex}.toggle-field{background:#f8fafb;border:1px solid #d9e2e7;border-radius:7px;align-items:center;gap:.45rem;min-height:38px;padding:.45rem .65rem;display:inline-flex}.results-panel{max-height:calc(100vh - 2rem);position:sticky;top:1rem;overflow:auto}.results-header{background:#fbfcfd;border-bottom:1px solid #d9e2e7;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.15rem;display:flex}.results-header h2{letter-spacing:0;margin:.2rem 0 0;font-size:1.15rem}.result-section{border-bottom:1px solid #e1e8ec;padding:1rem 1.15rem}.result-section h3{margin:0 0 .75rem;font-size:.95rem}.metric-list{gap:.5rem;margin:0;display:grid}.metric-list div{border-bottom:1px solid #edf2f4;grid-template-columns:minmax(160px,1fr) auto;align-items:baseline;gap:.7rem;padding-bottom:.45rem;display:grid}.metric-list dt{color:#52616b;font-size:.86rem}.metric-list dd{color:#17212b;text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:800}.risk-list{gap:.6rem;display:grid}.risk-item{background:#fff;border:1px solid #d9e2e7;border-radius:8px;grid-template-columns:auto 1fr;gap:.55rem;padding:.7rem;display:grid}.risk-item.risk{background:#fff7f6;border-color:#f1aaa3}.risk-item.watch{background:#fffbea;border-color:#ead48a}.risk-item.ok{background:#f0fbf7;border-color:#9bd1bf}.risk-item p{color:#33414c;margin:.25rem 0;line-height:1.4}.risk-item small{color:#52616b;line-height:1.4}.compact-list{color:#33414c;margin:0;padding-left:1.1rem}.compact-list li+li{margin-top:.4rem}.markdown-preview{background:#f8fafb;border:1px solid #d9e2e7;border-radius:8px;max-height:360px;padding:.85rem;overflow:auto}.markdown-preview h2,.markdown-preview h3{margin:.4rem 0;font-size:1rem}.markdown-preview p,.markdown-preview li{color:#33414c;font-size:.9rem;line-height:1.5}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=1100px){.workspace{grid-template-columns:1fr}.results-panel{max-height:none;position:static}}@media (width<=760px){.app-header{flex-direction:column}.toolbar{justify-content:flex-start}.workspace{padding:.75rem}.metric-list div{grid-template-columns:1fr}.metric-list dd{text-align:left}}
