:root{--bg:#f6f7f8;--surface:#fdfefd;--ink:#24352f;--muted:#65716a;--green:#24634c;--pale:#eaf2ed;--line:#dde5df;--amber:#805719;--highlight:#f6ebd2;--radius:10px;--space:8px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 'Avenir Next',Avenir,'Segoe UI',sans-serif}button,input,textarea,select{font:inherit}button,input,textarea,select{color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background-color 150ms ease}button:hover{background:#e5ece6}button:active{transform:translateY(1px)}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #63a68a;outline-offset:3px}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1.1px;font-weight:600;line-height:1.25}h2{font-size:18px;font-weight:600;letter-spacing:-.3px}h3{font-size:14px;font-weight:600}small{display:block;color:var(--muted);font-size:11px;font-weight:400}.sidebar{width:232px;position:fixed;inset:0 auto 0 0;background:#f0f3f0;border-right:1px solid var(--line);padding:30px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-size:30px;font-weight:650;letter-spacing:-1.5px;text-decoration:none;padding:0 10px;color:var(--ink)}.brand-dot{color:#438468;margin-left:-9px}.brandmark{font-size:44px;line-height:1;color:var(--green);font-family:Georgia,serif}.workspace{display:flex;align-items:center;gap:10px;margin:36px 0 28px;padding:12px 8px;border-block:1px solid var(--line);font-size:12px;font-weight:600}.avatar{display:grid;place-items:center;flex-shrink:0;width:30px;height:32px;background:#e0e8e0;border-radius:7px;color:var(--green);font-weight:600}.nav-label{padding:0 12px;margin-bottom:12px;color:var(--muted);font-size:11px}.nav-item{display:flex;align-items:center;gap:12px;text-align:left;padding:12px;border-radius:6px;margin-bottom:5px;font-size:12px;text-decoration:none;color:var(--ink)}.nav-item>span:first-child{font-size:19px;color:var(--muted);width:20px;text-align:center}.nav-item:hover{background:#e8eee8}.nav-item.active{background:#dfeae2;color:var(--green);font-weight:600}.sidebar-bottom{margin-top:auto;padding:24px 10px 0}.sidebar-bottom>strong{font-size:12px}.sidebar-bottom>p{font-size:11px;color:var(--muted);margin-top:6px}.mini-mark{color:var(--green);margin-bottom:12px}.profile{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line);margin-top:28px;padding-top:20px;font-size:12px}.app{margin-left:232px}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:12px;background:var(--surface)}.slash{color:#8e9a92;margin:0 14px}.demo{color:var(--muted);display:flex;align-items:center;gap:7px;font-size:11px}.demo i{width:6px;height:6px;background:#699477;border-radius:50%}main{max-width:1560px;margin:auto;padding:36px}main:focus-visible{outline:3px solid #63a68a;outline-offset:-3px}.heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.eyebrow{font-size:11px;color:var(--green);display:block;margin-bottom:8px}.heading p:last-child{color:var(--muted);font-size:13px;margin-top:12px}.primary,.secondary{border-radius:6px;padding:10px 16px;white-space:nowrap;font-size:12px;font-weight:600;min-height:42px}.primary{background:var(--green);border:1px solid var(--green);color:#fdfefd}.primary:hover{background:#194a38}.primary span{font-size:17px;margin-left:10px}.secondary{border:1px solid #ccd8ce;background:var(--surface)}.text-button{background:none;border:0;color:var(--green);font-size:12px;padding:8px 0;font-weight:600}.text-button:hover{background:#eef4ee}.quiet-link{font-size:12px;text-underline-offset:4px}.subtle{font-size:11px;color:var(--muted)}.muted{color:var(--muted)}.compare-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}fieldset{border:0;padding:0;margin:0;display:flex;gap:8px}legend{font-size:11px;color:var(--muted);margin-bottom:8px;padding:0}.model-toggle{display:flex;align-items:center;gap:7px;border:1px solid var(--line);padding:7px 12px;background:var(--surface);border-radius:5px;font-size:12px;cursor:pointer}.model-toggle:has(input:checked){background:var(--pale);border-color:#c3d6c9}.model-toggle input{accent-color:var(--green);width:14px;height:14px;margin:0}.history-label,.dashboard-controls label,.section-title label{font-size:11px;color:var(--muted)}select{display:block;background:var(--surface);border:1px solid #cbd7ce;border-radius:5px;padding:8px 30px 8px 10px;font-size:12px;max-width:240px;margin-top:6px;min-height:38px}.demo-notice{padding:12px 16px;background:#edf2ef;border-left:3px solid #7ea18a;border-radius:0 5px 5px 0;font-size:12px;line-height:1.7;color:#516359;margin-bottom:24px}.demo-notice strong{font-weight:600;color:var(--ink)}.empty-intro{margin:40px auto 28px;text-align:center}.large-mark{font:56px/1 Georgia,serif;color:#6d957d}.empty-intro h2{font-size:23px;margin-top:14px;letter-spacing:-.6px}.empty-intro p{font-size:12px;color:var(--muted);margin-top:8px}.starter-questions{display:flex;flex-direction:column;max-width:700px;margin:0 auto 14px;border-block:1px solid var(--line)}.starter-question{border:0;background:none;display:grid;grid-template-columns:112px 1fr;gap:4px 16px;padding:16px 8px;text-align:left}.starter-question+.starter-question{border-top:1px solid var(--line)}.starter-question>span{font-size:11px;color:var(--green);grid-row:span 2}.starter-question>span>span{margin-left:8px}.starter-question strong{font-size:13px;font-weight:600}.starter-question small{font-size:11px}#chat-empty>.quiet-link{display:block;text-align:center;margin-bottom:32px}.composer{background:var(--surface);border:1px solid #b9cebf;border-radius:10px;padding:16px 20px;margin-top:24px;isolation:isolate}.composer>label{display:block;color:var(--green);font-size:11px;font-weight:600}.composer textarea{resize:vertical;width:100%;min-height:76px;border:0;background:none;padding:12px 0;line-height:1.65;font-size:14px}.composer textarea::placeholder{color:#6d7871}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px}.composer-bottom>span{max-width:460px;font-size:10px;color:var(--muted)}.composer-bottom>div{display:flex;gap:8px}.storage-note{font-size:10px;color:var(--muted);text-align:center;margin-top:10px}.user-prompt{margin:32px 0 12px;padding:16px 20px;border-left:3px solid var(--green);background:#eaf1ec;border-radius:0 6px 6px 0}.user-prompt>span{font-size:10px;color:var(--green);font-weight:600}.user-prompt p{font-size:15px;max-width:850px;margin-top:6px;overflow-wrap:anywhere}.turn{scroll-margin-top:20px}.turn-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:var(--muted);font-size:10px}.response-columns{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}.model-response{display:flex;flex-direction:column;min-width:0}.model-response+.model-response{border-left:1px solid var(--line)}.model-response header{display:flex;align-items:center;gap:10px;padding:20px;border-bottom:1px solid var(--line)}.model-response h2{font-size:14px}.model-response small{font-size:10px}.model-letter{display:inline-grid;place-items:center;background:#e9efeb;width:30px;height:32px;border-radius:5px;color:var(--green);font-size:12px;flex-shrink:0;font-weight:600}.answer{padding:24px 20px;font-size:13px;line-height:1.9;overflow-wrap:anywhere;flex:1;min-height:208px}mark{background:var(--highlight);color:inherit;border-bottom:1px solid #d5af68;padding:2px 0}.response-assessment{padding:20px;background:#f8faf8;border-top:1px solid var(--line)}.verdict{display:inline-block;border-radius:4px;font-size:10px;line-height:1.5;padding:4px 7px;font-weight:600}.verdict.aligned{background:#e5efe7;color:#2d6145}.verdict.concern{background:#f7eace;color:#795019}.verdict.mismatch{background:#f4e6e0;color:#925138}.verdict.unassessed{background:#e9ecea;color:#5a655d}.response-assessment h3{margin:14px 0 8px;font-size:13px}.response-assessment>p{font-size:12px;color:#5b685f;line-height:1.75;min-height:126px}.source-link{display:flex;justify-content:space-between;gap:12px;align-items:center;width:100%;background:none;border:0;border-top:1px solid var(--line);padding:14px 0 0;margin-top:16px;color:var(--green);text-align:left;font-size:10px;line-height:1.6}.source-link span{font-size:9px;white-space:nowrap}.response-assessment>small{margin-top:16px}.dashboard-controls{display:flex;gap:20px;margin-bottom:20px}.dashboard-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:24px 0;background:var(--surface);border:1px solid var(--line);border-radius:10px;margin-bottom:32px}.dashboard-stats>div{padding:0 24px;border-right:1px solid var(--line)}.dashboard-stats>div:last-child{border:0}.dashboard-stats span{font-size:11px;color:var(--muted)}.dashboard-stats strong{display:block;font-size:32px;font-weight:500;margin-top:8px;line-height:1.3;font-variant-numeric:tabular-nums}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:20px}.section-space{margin-top:32px}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:8px;background:var(--surface)}table{border-collapse:collapse;width:100%;font-size:12px;min-width:630px;text-align:left}th,td{padding:20px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}thead th{font-size:10px;font-weight:500;color:var(--muted);background:#f1f4f2}tbody th{font-weight:600;white-space:nowrap}tbody th .model-letter{margin-right:10px}tbody tr:last-child>*{border-bottom:0}.agreement{min-width:150px}.agreement>span{font-size:11px;display:flex;justify-content:space-between;gap:16px}.agreement b{font-weight:600;color:var(--green)}.meter{height:5px;background:#e4ece6;margin-top:8px;border-radius:2px;overflow:hidden}.meter i{display:block;height:100%;background:#558567}.pattern-list{background:var(--surface);border-block:1px solid var(--line)}.pattern-list>div{display:grid;grid-template-columns:1.4fr 1fr 1fr;align-items:center;gap:20px;padding:14px 16px;border-bottom:1px solid var(--line);font-size:12px}.pattern-list>div:last-child{border:0}.pattern-list .verdict{width:fit-content}.pattern-list strong{text-align:right;font-size:11px;font-weight:500}.method-note{font-size:11px;color:var(--muted);margin-top:14px;max-width:850px;line-height:1.8}.result-row{border-bottom:1px solid var(--line);background:var(--surface)}.result-row>summary{display:grid;grid-template-columns:1fr 70px 140px;align-items:center;gap:20px;padding:16px;cursor:pointer;font-size:12px;list-style:none}.result-row summary>span:first-child::before{content:'＋';color:var(--green);margin-right:8px}.result-row[open] summary>span:first-child::before{content:'−'}.result-row summary:hover{background:#edf3ee}.result-row>summary .verdict{justify-self:start}.result-body{padding:0 20px 24px;max-width:850px;font-size:13px}.result-body p+p{margin-top:12px}.result-body .source-link{max-width:420px}.question-row{display:grid;grid-template-columns:36px 1fr auto;align-items:start;gap:20px;padding:28px 0;border-bottom:1px solid var(--line)}.question-number{font-size:12px;color:#7b8e81;margin-top:4px}.question-row h2{font-size:16px;max-width:750px;line-height:1.65}.question-row details{font-size:12px;margin-top:14px;max-width:700px}.question-row details p{margin-top:12px}.question-row summary{cursor:pointer;color:var(--green)}.source-entry{padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:20px}.source-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:12px}.source-publisher{font-size:12px;color:var(--green);font-weight:600}.source-entry h2{font-size:20px}.period{font-size:11px;color:var(--muted);margin:8px 0 16px}.source-entry>p:not(.period){font-size:13px;max-width:800px;line-height:1.8}.source-limit{background:#f0f4f0;padding:14px 16px;margin:20px 0;font-size:12px;border-radius:5px}.source-limit strong{font-size:11px}.source-limit p{margin-top:6px;color:var(--muted);max-width:800px}.source-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:12px}.source-actions a{text-underline-offset:4px}.empty-panel{background:var(--surface);padding:28px;border:1px dashed #bacabe;font-size:13px;color:var(--muted);border-radius:6px}#run-status{font-size:12px;color:var(--green);margin-top:16px}#run-status:empty{margin:0}#run-error{border-left:3px solid #ad684e;background:#f8eeea;padding:16px;margin-top:20px;font-size:13px}#run-error button{margin-top:12px}footer{display:flex;justify-content:space-between;margin-top:36px;color:var(--muted);font-size:10px;gap:20px}.footer-mark{font-size:16px;color:var(--green);margin-right:6px}dialog{width:min(600px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:28px;background:var(--surface);color:var(--ink);box-shadow:0 20px 70px #20332a25}dialog::backdrop{background:#1d32265c}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.close{border:0;background:none;font-size:26px;min-width:40px;min-height:40px}#evidence-content>p{font-size:13px;margin-top:12px}#evidence-content>h3{font-size:17px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:6px;font-size:12px;display:none;z-index:3;max-width:calc(100% - 32px)}#legacy-audits{margin-top:28px;font-size:12px}#legacy-audits summary{cursor:pointer}#legacy-audits p{margin-top:12px}.skip-link{position:fixed;top:-100px;left:16px;z-index:4;background:var(--surface);padding:12px}.skip-link:focus{top:12px}[hidden]{display:none!important}@media(max-width:1150px){.sidebar{width:200px;padding-inline:12px}.app{margin-left:200px}main{padding:28px}.topbar{padding-inline:28px}h1{font-size:28px}.heading{align-items:flex-start}.response-columns{grid-template-columns:1fr}.model-response+.model-response{border-left:0;border-top:2px solid var(--line)}.model-response{display:grid;grid-template-columns:1fr 1fr}.model-response header{grid-column:1/-1;padding:16px 20px}.answer{min-height:0}.response-assessment{border-top:0;border-left:1px solid var(--line)}.response-assessment>p{min-height:0}.dashboard-stats>div{padding:0 16px}.subtle{font-size:10px}.question-row{grid-template-columns:24px 1fr;gap:12px}.question-row>.secondary{grid-column:2;justify-self:start}.source-link{flex-wrap:wrap}.source-link span{margin-left:auto}}
@media(max-width:800px){.sidebar{width:76px;padding:20px 8px}.brand{padding:0;font-size:0;justify-content:center}.brandmark{font-size:42px}.brand-dot,.workspace,.nav-label,.sidebar-bottom{display:none}.sidebar nav{margin-top:30px}.nav-item{justify-content:center;padding:10px 4px;gap:0}.nav-item .nav-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.nav-item>span:first-child{font-size:20px}.app{margin-left:76px}main{padding:24px}.topbar{padding:0 24px;height:60px}.heading{flex-wrap:wrap;gap:16px}.compare-toolbar{align-items:flex-start;flex-wrap:wrap}.history-label select{max-width:260px}.dashboard-stats{grid-template-columns:repeat(2,1fr);gap:20px 0}.dashboard-stats>div:nth-child(2){border:0}.dashboard-stats strong{font-size:28px}.section-title>.subtle{display:none}.result-row>summary{grid-template-columns:1fr 75px;gap:8px}.result-row>summary>.verdict{grid-column:1/-1;margin-left:22px}.composer-bottom{align-items:flex-start;flex-direction:column;gap:12px}.composer-bottom>div{align-self:flex-end}.source-actions{flex-wrap:wrap;gap:8px}footer{flex-wrap:wrap;gap:4px}}
@media(max-width:520px){.sidebar{position:static;width:100%;height:auto;min-height:64px;flex-direction:column;padding:12px 16px 8px;border-bottom:1px solid var(--line);border-right:0;gap:12px}.brand{font-size:25px;justify-content:flex-start}.brand-dot{display:inline}.brandmark{font-size:34px}.sidebar nav{display:flex;margin:0;gap:2px;justify-content:space-between}.nav-item{margin:0;flex:1;flex-direction:column;padding:6px 3px;gap:4px}.nav-item .nav-text{position:static;width:auto;height:auto;overflow:visible;clip-path:none;font-size:9px;white-space:nowrap}.nav-item>span:first-child{font-size:16px}.app{margin:0}.topbar{height:44px;padding:0 16px;font-size:10px}.demo{font-size:9px}main{padding:24px 16px}h1{font-size:27px}.heading p:last-child{font-size:12px;line-height:1.75}.heading>.secondary{padding:8px 12px}.compare-toolbar{gap:16px}fieldset{gap:6px}.model-toggle{padding:8px 10px;font-size:11px}.history-label{width:100%}.history-label select{max-width:none;width:100%}.demo-notice{font-size:11px;padding:12px}.empty-intro{margin-top:28px}.empty-intro h2{font-size:20px}.empty-intro p{font-size:11px}.starter-question{grid-template-columns:85px 1fr;padding:16px 4px;gap:4px 8px}.starter-question strong{font-size:12px}.starter-question>span,.starter-question small{font-size:10px}.composer{padding:14px}.composer textarea{font-size:13px}.composer-bottom>span{font-size:10px}.composer-bottom>div{width:100%;justify-content:flex-end}.model-response{display:flex}.model-response header{padding:16px}.answer{padding:20px 16px}.response-assessment{padding:20px 16px;border-left:0;border-top:1px solid var(--line)}.response-assessment>p{font-size:12px}.source-link{font-size:11px}.source-link span{font-size:10px}.user-prompt{padding:12px 16px}.user-prompt p{font-size:13px}.turn-meta{gap:12px;font-size:9px}.turn-meta button{font-size:10px}.dashboard-controls{flex-direction:column;gap:12px}.dashboard-controls select{max-width:none;width:100%}.dashboard-stats span{font-size:10px}.dashboard-stats{padding:20px 0}.pattern-list>div{grid-template-columns:1fr 65px;gap:8px;font-size:11px}.pattern-list strong{grid-column:1/-1;text-align:left}.pattern-list .verdict{font-size:9px}.section-title h2{font-size:16px}.section-title label{max-width:120px}.section-title select{width:100%;font-size:10px;padding-right:20px}.result-row>summary{font-size:11px;padding:14px 12px}.source-entry{padding:20px}.source-heading{align-items:flex-start;flex-direction:column;gap:4px}.source-entry h2{font-size:18px}.question-row h2{font-size:14px}.question-row .eyebrow{font-size:10px}.source-actions{font-size:11px}.method-note{font-size:10px}dialog{padding:20px}.dialog-heading h2{font-size:17px}#toast{width:calc(100% - 32px)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.dashboard-controls select{max-width:300px}
@media(max-width:520px){.dashboard-controls select{max-width:none}}

.answer p,.answer-text p{margin:0 0 .8em}.answer ul,.answer ol,.answer-text ul,.answer-text ol{margin:0 0 .8em;padding-left:1.3em}.answer li{margin:0 0 .3em}.answer :last-child,.answer-text :last-child{margin-bottom:0}.answer code{font-family:ui-monospace,monospace;font-size:.92em}

/* Visual QA fixes */
.skip-link{transform:translateY(-200%);top:12px}.skip-link:focus{transform:none}
.composer>label{margin-bottom:4px}
.composer textarea:focus-visible{outline:none}
.composer:focus-within{border-color:#2f7a5b;box-shadow:0 0 0 3px rgba(99,166,138,.35)}
#conversation-picker{max-width:min(380px,100%)}
.response-assessment h3::first-letter{text-transform:uppercase}
.response-assessment>p{min-height:0}
.answer{min-height:0}
.answer mark{border-radius:3px;padding:0 2px}
@media(min-width:1151px){.response-columns{grid-template-rows:auto 1fr auto}.model-response{display:grid;grid-template-rows:subgrid;grid-row:span 3}.response-assessment{display:flex;flex-direction:column;align-items:flex-start}.response-assessment>.source-link{align-self:stretch}.response-assessment>.source-link:first-of-type,.response-assessment>small{margin-top:auto}}

/* Conversation system */
.side-convos{flex:1;min-height:0;display:flex;flex-direction:column;margin-top:18px}
.side-convos .nav-label{margin:20px 0 8px}
.side-new{display:block;width:100%;text-align:left;padding:10px 12px;border:1px solid #cbd7ce;border-radius:6px;background:var(--surface);color:var(--green);font-size:12px;font-weight:600}
.side-new:hover,.mobile-convos .secondary:hover{background:#eef4ee}
.convo-list{list-style:none;margin:0;padding:0;overflow:auto;min-height:0}
.convo{position:relative;display:flex;align-items:stretch;border-radius:6px}
.convo:hover{background:#e8eee8}.convo.active{background:#dfeae2}
.convo-open{flex:1;min-width:0;text-align:left;background:none;border:0;padding:9px 28px 9px 12px;display:flex;flex-direction:column;gap:2px;color:var(--ink)}
.convo-title{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:500}
.convo.active .convo-title{color:var(--green);font-weight:600}
.convo-meta{font-size:10px;color:var(--muted)}
.convo-del{position:absolute;top:6px;right:4px;width:24px;height:24px;border:0;border-radius:4px;background:none;color:var(--muted);font-size:16px;line-height:1;opacity:0;transition:opacity .15s}
.convo:hover .convo-del,.convo-del:focus-visible,.convo:focus-within .convo-del{opacity:1}
.convo-del:hover{background:#f4e6e0;color:#925138}
@media(hover:none){.convo-del{opacity:1}}
.convo-empty{font-size:11px;color:var(--muted);padding:6px 12px;line-height:1.6}
.mobile-convos{display:none;margin-bottom:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);padding:0 12px}
.mobile-convos summary{padding:12px 0;font-size:12px;font-weight:600;color:var(--green);cursor:pointer}
.mobile-convos[open]{padding-bottom:12px}.mobile-convos .secondary{margin-bottom:8px;width:100%}
.mobile-convos .convo-list{max-height:260px}
@media(max-width:800px){.side-convos{display:none}.mobile-convos{display:block}}
.thread-title{font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:28px 0 12px;overflow-wrap:anywhere}
.turn{margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.turn[open]{border-color:#b9cebf}
.turn-head{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none}
.turn-head::-webkit-details-marker{display:none}
.turn-head::before{content:"▸";color:var(--muted);font-size:11px;transition:transform .15s}
.turn[open]>.turn-head::before{transform:rotate(90deg)}
.turn-head:hover{background:#f4f8f4}
.turn[open]>.turn-head{background:#eaf1ec;border-bottom:1px solid var(--line);align-items:flex-start}
.turn-num{font-size:10px;font-weight:700;color:var(--green);background:#dfeae2;border-radius:4px;padding:3px 6px}
.turn-prompt{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.turn[open] .turn-prompt{white-space:normal;font-size:15px;line-height:1.5}
.turn-chips{display:flex;gap:4px;flex-shrink:0}
.chip{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:4px;font-size:10px;font-weight:700}
.chip.aligned{background:#e5efe7;color:#2d6145}.chip.concern{background:#f7eace;color:#795019}.chip.mismatch{background:#f4e6e0;color:#925138}.chip.unassessed{background:#e9ecea;color:#5a655d}
.turn[open] .turn-chips{display:none}
.turn>.turn-meta{padding:10px 16px 0;margin:0}
.turn .response-columns{border:0;border-top:1px solid var(--line);border-radius:0}
.turn-head:focus-visible{outline:3px solid #63a68a;outline-offset:-3px}
.toast-action{margin-left:14px;background:none;border:0;color:#9fd3b9;font-weight:600;font-size:12px;text-decoration:underline;padding:0}

/* Home */
.home-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:56px;align-items:center;padding:24px 0 48px;border-bottom:1px solid var(--line)}
.home-hero h1{font-size:40px;letter-spacing:-1.4px;line-height:1.15;max-width:15em}
.lede{font-size:15px;line-height:1.75;color:#44534b;margin-top:18px;max-width:34em}
.home-actions{display:flex;align-items:center;gap:20px;margin-top:28px;flex-wrap:wrap}
.home-actions .primary{border-radius:6px;padding:12px 20px;font-size:13px;font-weight:600;min-height:44px}
.home-actions .quiet-link{margin:0}
.specimen{margin:0;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:24px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.specimen figcaption{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:14px}
.specimen-q{font-size:12px;color:var(--muted);line-height:1.6;padding-bottom:14px;border-bottom:1px solid var(--line)}
.specimen-a{font-size:15px;line-height:1.8;margin:16px 0}
.specimen-a mark{background:var(--highlight);box-shadow:inset 0 -2px 0 #d9b25f;padding:0 2px;border-radius:2px}
.specimen-note{background:#f8faf8;border-left:3px solid #c98a73;padding:12px 14px;border-radius:0 6px 6px 0}
.specimen-note p{font-size:12px;line-height:1.7;color:#5b685f;margin-top:8px}
.specimen-ref{font-size:12px;margin-top:14px;color:var(--muted)}.specimen-ref b{color:var(--green);margin-right:6px}
.home-section{padding:40px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px 56px}
.home-section>h2{font-size:15px;letter-spacing:-.2px;line-height:1.4}
.home-section>*:not(h2){grid-column:2}
.steps{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;gap:22px;max-width:640px}
.steps li{display:grid;grid-template-columns:32px 1fr;gap:2px 14px;counter-increment:s}
.steps li::before{content:counter(s);grid-row:span 2;font-size:12px;font-weight:700;color:var(--green);background:#dfeae2;width:28px;height:28px;border-radius:50%;display:grid;place-items:center}
.steps b{font-size:14px}.steps span{font-size:13px;line-height:1.7;color:#5b685f}
.legend{margin:0;display:grid;gap:18px;max-width:640px}
.legend>div{display:grid;grid-template-columns:150px 1fr;gap:16px;align-items:start}
.legend dt,.legend dd{margin:0}.legend dd{font-size:13px;line-height:1.7;color:#5b685f}
.home-sources{list-style:none;margin:0;padding:0;max-width:640px}
.home-sources li{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
.home-sources li:last-child{border-bottom:0}.home-sources span{color:#5b685f}
.quiet-link.left{text-align:left;margin:12px 0 0}
.limits{border-bottom:0}.limits ul{margin:0;padding-left:1.1em;max-width:640px;display:grid;gap:8px;font-size:13px;line-height:1.7;color:#44534b}
@media(max-width:1150px){.home-hero{grid-template-columns:1fr;gap:32px}.home-hero h1{font-size:34px}}
@media(max-width:800px){.home-section{grid-template-columns:1fr;gap:16px}.home-section>*:not(h2){grid-column:1}.legend>div,.home-sources li{grid-template-columns:1fr;gap:6px}}
@media(max-width:520px){.home-hero h1{font-size:28px}.specimen{padding:18px}}

.sidebar-bottom>.mini-mark,.sidebar-bottom>strong,.sidebar-bottom>p{display:none}
.sidebar-bottom{padding-top:12px;border-top:1px solid var(--line)}
.workspace{margin:20px 0 14px}
.sidebar nav{margin-top:14px}
.side-convos{margin-top:10px}
.side-convos .convo-list{flex:1}
.thread-title{text-transform:none;letter-spacing:0;font-size:13px;color:var(--ink);font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Legal pages */
.legal{max-width:720px}
.legal h1{margin-bottom:12px}.legal .eyebrow{margin-bottom:12px;color:var(--muted)}
.legal section{padding:28px 0 4px;border-top:1px solid var(--line);margin-top:28px}
.legal h2{font-size:15px;margin-bottom:10px}
.legal p,.legal li{font-size:14px;line-height:1.75;color:#44534b;max-width:62ch}
.legal p+p,.legal ul+p,.legal p+ul{margin-top:12px}
.legal ul{padding-left:1.2em;display:grid;gap:8px;margin:0}
.legal a{color:var(--green);text-underline-offset:3px}
.legal-table{border:1px solid var(--line);border-radius:8px;overflow:hidden;margin-bottom:14px;background:var(--surface)}
.legal-table>div{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) minmax(0,1fr);gap:16px;padding:12px 16px;font-size:13px;line-height:1.6;border-top:1px solid var(--line)}
.legal-table>div:first-child{border-top:0;background:#f0f3f0;font-size:11px;font-weight:600;color:var(--muted)}
.legal-table code{font-size:12px;overflow-wrap:anywhere}
.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{color:inherit;text-underline-offset:3px}
footer{flex-wrap:wrap;gap:12px}
@media(max-width:700px){.legal-table>div{grid-template-columns:1fr;gap:4px}.legal-table>div:first-child{display:none}}

/* Accounts */
.topbar-right{display:flex;align-items:center;gap:16px}
.topbar-right .secondary{min-height:34px;padding:6px 14px}
.secondary.danger{color:#925138;border-color:#e3c4b8}.secondary.danger:hover{background:#f4e6e0}
.text-button.inline{display:inline;padding:0;text-decoration:underline;text-underline-offset:3px}
#signin-dialog{border:1px solid var(--line);border-radius:12px;padding:24px;max-width:420px;width:calc(100% - 32px);background:var(--surface);color:var(--ink)}
#signin-dialog::backdrop{background:rgba(36,53,47,.35)}
#signin-dialog form{display:grid;gap:8px;margin:16px 0 8px}
#signin-dialog label{font-size:12px;font-weight:600}
#signin-dialog input{border:1px solid #cbd7ce;border-radius:6px;padding:11px 12px;font-size:14px;min-height:44px;background:#fff}
#signin-dialog input:focus-visible{outline:3px solid #63a68a;outline-offset:1px}
#signin-dialog .primary{border-radius:6px;padding:12px 16px;font-size:13px;font-weight:600;min-height:44px}
#signin-dialog .muted-note{font-size:12px;line-height:1.7;color:var(--muted);margin-top:8px}
.signin-note{font-size:12px;color:var(--green);margin-top:8px}.signin-note:empty{display:none}
#signin-status{font-size:13px;line-height:1.6;margin-top:8px}
.legal h3{font-size:13px;margin:16px 0 6px}

/* Short windows: let the sidebar scroll instead of overlapping its own sections */
.sidebar{overflow-y:auto;overflow-x:hidden}
.side-convos{flex:1 0 auto}
.side-convos .convo-list{flex:none;overflow:visible}
@media(max-height:760px){.workspace{display:none}.sidebar nav{margin-top:8px}.nav-item{padding:9px 12px;margin-bottom:2px}.side-convos{margin-top:6px}}

.model-response small code{font-family:ui-monospace,monospace;font-size:10px}
.response-assessment>small.judged{margin-top:10px;color:var(--muted);font-size:10px}
