:root{color-scheme:light;--bg:#f5f4f0;--paper:#fff;--ink:#202521;--muted:#69706c;--line:#e3e5e0;--green:#4d705e;--green-bg:#e8f0e9;--amber:#8b6b31;--amber-bg:#f8f0df;--red:#9b5651;--red-bg:#f8eae8;--blue:#506b79;--blue-bg:#e8eef2;--font-scale:1}
*{box-sizing:border-box}html,body,#app{height:100%;margin:0}body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;-webkit-font-smoothing:antialiased}button{font:inherit;cursor:pointer}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #8baea4;outline-offset:2px}.topbar{height:72px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.88)}.brand,.top-actions,.section-title-row,.response-control-row,.nav-footer,.passage-toolbar,.passage-actions{display:flex;align-items:center}.brand{gap:13px}.brand-mark{width:38px;height:38px;border-radius:12px;background:#223a31;color:#fff;display:grid;place-items:center;font-size:15px;font-weight:700;letter-spacing:-.06em}.brand strong{display:block;font-size:15px;letter-spacing:-.025em}.brand small{display:block;font-size:11px;color:var(--muted);margin-top:2px}.top-actions{gap:12px}.source-chip{font-size:11px;color:var(--muted);background:#f2f3f0;border:1px solid var(--line);padding:8px 10px;border-radius:999px}.button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px 13px;color:#34413a;font-weight:600;transition:.18s ease}.button:hover{background:#f7f9f6;border-color:#c5d4ca}.button.subtle{background:transparent}.button.present{background:#203a30;color:#fff;border-color:#203a30;padding:10px 15px}.button.present:hover{background:#315445}.button.present span{margin-left:10px;font-size:15px}.workspace{display:grid;grid-template-columns:minmax(0,47%) minmax(0,53%);height:calc(100% - 72px);padding:16px;gap:16px}.panel{min-height:0;background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:0 5px 20px rgba(26,36,30,.025);display:flex;flex-direction:column;overflow:hidden}.panel-head{flex:none}.contract-head{padding:22px 26px 0;border-bottom:1px solid var(--line)}.panel-eyebrow{font-size:10px;letter-spacing:.13em;font-weight:750;color:#5e7967}.panel-eyebrow span{color:#a8afa8;margin:0 5px}.section-title-row{justify-content:space-between;gap:10px;margin-top:8px}.section-title-row h1{font-size:27px;letter-spacing:-.045em;margin:0}.count-pill{border:1px solid var(--line);border-radius:999px;padding:6px 9px;color:var(--muted);font-size:11px;white-space:nowrap}.contract-head>p{color:var(--muted);font-size:12px;margin:10px 0 18px}.trap-strip{display:flex;gap:6px;overflow-x:auto;padding-bottom:18px;scrollbar-width:thin}.trap-number{flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#67746c;font-size:12px;font-weight:700}.trap-number:hover{border-color:#95aa9a;color:#244334}.trap-number.active{background:#264537;border-color:#264537;color:#fff}.passage-toolbar{justify-content:space-between;border-top:1px solid var(--line);min-height:46px;gap:10px}.passage-toolbar>div:first-child{display:flex;gap:10px;align-items:center;min-width:0}.passage-toolbar strong{font-size:11px;color:#365849;white-space:nowrap}.passage-toolbar span{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.passage-actions{gap:4px}.passage-actions button{width:27px;height:27px;border:0;background:#f3f5f2;border-radius:7px;color:#53665a;font-size:16px}.passage-actions button:hover{background:#e7eee7}.panel-scroll{overflow:auto;min-height:0;scrollbar-color:#cbd2cb transparent;scrollbar-width:thin}.contract-scroll{padding:26px 29px 70px 24px}.document{max-width:720px;margin:auto;padding-left:24px;border-left:1px solid #e8eae6}.document p{font-family:Georgia,"Times New Roman",serif;font-size:calc(14.5px * var(--font-scale));line-height:1.68;color:#384039;margin:0 0 16px;position:relative}.document p.doc-title{font-family:inherit;font-size:calc(25px * var(--font-scale));font-weight:650;line-height:1.22;letter-spacing:-.045em;color:#22332a;margin:0 0 8px}.document p.doc-meta{font-family:inherit;color:#89918a;font-size:calc(11px * var(--font-scale));margin-bottom:22px}.document p.heading1{font-family:inherit;font-size:calc(11px * var(--font-scale));font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#6e8b77;margin:32px 0 15px}.document p.heading2{font-family:inherit;font-size:calc(16px * var(--font-scale));font-weight:700;color:#2d3d32;letter-spacing:-.025em;margin:24px 0 9px}.document p.has-trap{padding:8px 10px 8px 12px;margin-left:-13px;border-radius:8px;border-left:2px solid #d4dfd4;transition:background .2s}.document p.has-trap:hover{background:#f5f8f3}.document p.selected-trap{background:#eaf2e8;border-left:3px solid #74957a;color:#263e2c}.document p.active-passage{background:#dceadc;box-shadow:0 0 0 2px #a8c2a6 inset}.margin-markers{position:absolute;right:calc(100% + 12px);top:9px;display:flex;flex-direction:column;gap:3px}.margin-marker{border:0;display:grid;place-items:center;background:#dce8dd;color:#355742;border-radius:6px;width:23px;height:22px;font-family:inherit;font-size:10px;font-weight:700}.margin-marker.selected{background:#244a35;color:#fff}.response-head{padding:23px 27px 0;border-bottom:1px solid var(--line)}.response-head h2{font-size:clamp(22px,2vw,32px);line-height:1.12;letter-spacing:-.05em;margin:8px 0 9px}.consequence{color:#4f5b51;font-size:calc(13px * var(--font-scale));line-height:1.5;margin:0 0 15px}.reference-line{display:flex;align-items:flex-start;gap:10px;background:#f6f7f4;border:1px solid #e9ede7;border-radius:10px;padding:12px 13px}.reference-dot{width:8px;height:8px;border-radius:50%;background:#7b9b83;flex:none;margin-top:4px}.reference-line strong{font-size:11px;color:#4e6d56;letter-spacing:.025em}.reference-line p{font-size:calc(12px * var(--font-scale));line-height:1.42;color:#4e5950;margin:4px 0 0}.response-control-row{justify-content:space-between;gap:10px;min-height:45px}.result-line{color:#647067;font-size:11px;font-weight:650}.text-button{border:0;background:none;color:#466755;font-size:11px;font-weight:700}.text-button:hover{text-decoration:underline}.response-scroll{padding:16px 22px 16px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card{border:1px solid #e5e9e3;border-radius:13px;background:#fff;padding:15px 16px 13px;box-shadow:0 2px 7px rgba(36,49,39,.025);min-height:198px;display:flex;flex-direction:column;transition:box-shadow .2s,border-color .2s}.card:hover{border-color:#b9cbbd;box-shadow:0 6px 17px rgba(36,49,39,.055)}.card-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.card-name{font-size:15px;font-weight:750;letter-spacing:-.025em}.status{font-size:10px;font-weight:700;border-radius:999px;padding:5px 8px;white-space:nowrap}.status.good{background:var(--green-bg);color:var(--green)}.status.partial{background:var(--amber-bg);color:var(--amber)}.status.missed{background:var(--red-bg);color:var(--red)}.status.verify{background:var(--blue-bg);color:var(--blue)}.card-summary{font-size:calc(12px * var(--font-scale));line-height:1.45;color:#36423a;margin:13px 0 9px}.card-why{font-size:calc(11px * var(--font-scale));line-height:1.38;color:#7a827a;margin:0 0 10px}.card-why strong{color:#607267;font-weight:700}.accuracy{display:flex;align-items:center;gap:6px;font-size:10px;margin:auto 0 11px;color:#7a827a}.accuracy .dot{width:6px;height:6px;border-radius:50%;background:#b4c3b5;flex:none}.accuracy.flagged{color:#946b3a}.accuracy.flagged .dot{background:#d89b59}.card-actions{border-top:1px solid #edf0eb;padding-top:9px;display:flex;align-items:center;gap:8px}.card-actions button{border:0;background:none;color:#40654e;font-size:11px;font-weight:700;padding:3px 0}.card-actions button:hover{text-decoration:underline}.card-actions button.secondary-action{font-weight:600;color:#819087}.card-actions button:first-child{margin-right:auto}.bottom-note{font-size:10px;color:#9aa29a;line-height:1.45;padding:14px 3px 0}.nav-footer{flex:none;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:12px 22px;background:#fff}.nav-footer>span{font-size:11px;color:#89948a;font-weight:650}.nav-button{font-size:12px;padding:9px 12px}.nav-button.primary{background:#2b4a3a;color:#fff;border-color:#2b4a3a}.nav-button.primary:hover{background:#40634b}.nav-button:disabled{opacity:.4;cursor:default}.overlay{position:fixed;inset:0;background:rgba(17,28,20,.4);backdrop-filter:blur(5px);display:grid;place-items:center;padding:24px;z-index:50}.overlay[hidden]{display:none}.dialog{width:min(890px,100%);max-height:min(760px,90vh);background:#fff;border-radius:18px;box-shadow:0 18px 60px rgba(19,29,20,.19);display:flex;flex-direction:column;overflow:hidden}.dialog-head{padding:22px 26px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line)}.dialog-kicker{font-size:10px;letter-spacing:.13em;color:#6a866d;font-weight:800;text-transform:uppercase}.dialog h2{font-size:25px;letter-spacing:-.04em;margin:5px 0 0}.close-button{border:0;background:#f3f5f2;border-radius:8px;width:31px;height:31px;font-size:22px;color:#536158}.dialog-body{overflow:auto;padding:23px 26px 29px;font-size:13px;line-height:1.55}.dialog-body h3{font-size:13px;margin:22px 0 7px}.dialog-body p{margin:5px 0 12px}.quote-item{border:1px solid var(--line);border-radius:12px;padding:16px;margin:0 0 12px}.quote-label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;color:#63816a;text-transform:uppercase;letter-spacing:.06em}.quote-item blockquote{font-family:Georgia,serif;white-space:pre-wrap;line-height:1.55;color:#384039;margin:12px 0 14px}.anchor-box{background:#f5f7f4;border-radius:8px;padding:10px 12px;font-size:11px;color:#66766b}.anchor-box strong{display:block;color:#4f6f56;margin-bottom:4px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-panel{border:1px solid var(--line);border-radius:13px;padding:17px}.detail-panel h3{font-size:19px;margin:0 0 8px}.detail-panel .status{display:inline-block;margin-bottom:10px}.detail-panel .label{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7b8a7e;margin-top:13px}.detail-panel p{font-size:12px;line-height:1.5}.detail-panel .flag-note{padding:10px;background:#faf3e9;border-radius:7px;color:#8b653f}.presentation-hint{display:none}body.presentation .topbar{height:56px}body.presentation .workspace{height:calc(100% - 56px)}body.presentation .secondary{display:none!important}body.presentation .presentation-hint{display:flex;position:fixed;right:20px;bottom:68px;gap:14px;background:rgba(34,54,41,.88);color:#fff;padding:7px 11px;border-radius:8px;font-size:10px;z-index:3;pointer-events:none}body.presentation .brand small{display:none}body.presentation .contract-head>p{display:none}body.presentation .card-actions .secondary-action{display:none}
@media(max-width:1000px){.workspace{grid-template-columns:45% 55%;padding:9px;gap:9px}.contract-head,.response-head{padding-left:18px;padding-right:18px}.response-scroll{padding-left:12px;padding-right:12px}.card{padding:12px}.card-head{align-items:flex-start;flex-direction:column}.card-summary{margin-top:9px}.topbar{padding:0 16px}}
@media(max-width:700px){html,body,#app{height:auto;min-height:100%}.topbar{position:sticky;top:0;z-index:10}.source-chip{display:none}.workspace{display:flex;flex-direction:column;height:auto}.panel{min-height:450px}.contract-scroll{max-height:52vh}.response-scroll{max-height:none}.cards{grid-template-columns:1fr}.response-head h2{font-size:27px}.dialog{max-height:92vh}.detail-grid{grid-template-columns:1fr}body.presentation .workspace{height:auto}body.presentation .presentation-hint{display:none}}
.font-controls{display:none;align-items:center;gap:4px;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff}.font-controls button{border:0;background:transparent;padding:5px 8px;border-radius:6px;color:#3f5e49;font-size:12px;font-weight:750}.font-controls button:hover{background:#eef3ed}body.presentation .font-controls{display:flex}.card.compare-selected{border-color:#55765d;box-shadow:0 0 0 2px #c7dbc9}.anchor-entry{padding:7px 0;border-top:1px solid #e4eae3;display:grid;grid-template-columns:42px 1fr;gap:7px}.anchor-entry:first-of-type{border-top:0}.anchor-entry strong{font-size:10px;color:#4f6f56;margin:0}.anchor-entry span{line-height:1.45}
.document p.has-trap{background:#f6f8f4}.document p.selected-trap{background:#eaf2e8}.document p.active-passage{background:#dceadc}
