:root{--surface-0:#f6f8fa;--surface-1:#fff;--surface-2:#f1f4f7;--border:#dde4e9;--border-strong:#c5d0da;--text-primary:#1c2d3b;--text-secondary:#536676;--text-muted:#627587;--accent:#2776c6;--good:#13796b;--critical:#b63d3d;--purple:#7858b3;--teal:#147c72;--shadow:0 2px 8px #243d5410;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--radius:12px}
body{font-size:15px;line-height:1.55;background:var(--surface-0)}button,input,textarea,select{font:inherit}button{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #8bbbe9;outline-offset:3px}h1,h2,h3{font-weight:650;letter-spacing:-.035em}h1{font-size:32px;line-height:1.25}h2{font-size:21px}h3{font-size:17px}p{color:var(--text-secondary)}.small{font-size:13px}.muted{color:var(--text-muted)}
.app-header{height:84px;padding:0 4%;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--border);gap:24px}.brand{color:var(--text-primary);text-decoration:none;font-weight:700;font-size:19px;gap:12px}.brand small{display:block;font-size:9px;letter-spacing:.15em;font-weight:600;color:var(--text-muted)}.brand-icon{width:37px;height:41px;background:#20786f;border-radius:10px;color:#fff;font-family:Georgia,serif;font-size:34px;line-height:33px;text-align:center}.brand-icon span{color:#94d7c6}.main-tabs{display:flex;align-self:stretch;gap:30px}.main-tabs button{position:relative;border:0;background:none;padding:0 5px;color:var(--text-muted);font-size:14px;font-weight:600;cursor:pointer}.main-tabs button[aria-selected=true]{color:#147c72}.main-tabs button[aria-selected=true]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:#147c72}.main-tabs span{margin-left:5px;background:#edf2f3;border-radius:5px;padding:1px 6px;font-size:12px}.header-actions{display:flex;gap:10px}.header-actions .btn{font-size:13px}.connection-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#a4afba;margin-left:7px}.connection-dot.ready{background:#198c78}
.workspace{max-width:1470px;padding:0 48px;margin:auto}.page-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:36px 0 26px}.page-heading p{margin-top:9px;font-size:14px}.eyebrow{font-size:10px;letter-spacing:.14em;font-weight:700;color:var(--teal);margin-bottom:8px}.workflow-line{display:flex;align-items:center;gap:18px;font-size:12px;color:#607384;padding-bottom:22px;border-bottom:1px solid var(--border)}.workflow-line i{width:48px;height:1px;background:#ced7df}.workflow-line .current{color:var(--teal);font-weight:600}.lane-label{display:flex;align-items:center;gap:11px;margin:25px 0 13px}.lane-label>span{background:#e9f0fc;padding:4px 7px;font-size:12px;border-radius:6px;font-weight:700}.lane-label h2{font-size:19px;color:var(--text-primary)}.lane-label p{margin-left:auto;font-size:12px}.lane-label.purple>span{background:#eee8f8}.blue{color:#2a72ba}.purple{color:var(--purple)}.lane{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);align-items:stretch}.work-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:21px;min-width:0;box-shadow:0 2px 4px #18334303;display:flex;flex-direction:column}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:14px}.micro-label{font-size:9px;letter-spacing:.12em;color:var(--text-muted);font-weight:700}.count{background:#f0f5f7;color:#536d7c;border-radius:5px;font-size:11px;padding:3px 7px;white-space:nowrap}.card-description{font-size:13px;margin:-3px 0 15px}.lane-edge{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;font-size:10px;font-weight:600}.lane-edge b{font-size:30px;font-weight:400;line-height:1}.lane-edge small{font-size:9px;color:var(--text-muted);max-width:90px;text-align:center}.source-tabs{display:flex;border-bottom:1px solid var(--border);gap:18px;margin-bottom:15px}.source-tabs button{border:0;background:none;font-size:12px;padding:0 0 10px;cursor:pointer;color:var(--text-muted);font-weight:600;position:relative}.source-tabs [aria-selected=true]{color:var(--accent)}.source-tabs [aria-selected=true]:after{content:"";position:absolute;bottom:-1px;left:0;right:0;background:currentColor;height:2px}.question-lane .source-tabs [aria-selected=true]{color:var(--purple)}.dropzone{min-height:175px;border:1.5px dashed #a9c5df;background:#f7faff;border-radius:9px;cursor:pointer;padding:15px;gap:2px;font-size:13px}.dropzone small{color:var(--text-muted);font-size:11px;margin-top:8px}.upload-icon{border:1px solid #d8e5ef;background:#fff;border-radius:9px;margin:0 auto 8px;font-size:24px;line-height:36px;width:38px;height:38px;color:var(--accent)}.subtle-empty{font-size:12px;color:var(--text-muted);padding-top:12px}.doc-list{margin-top:12px;gap:8px}.doc{display:block;border:1px solid var(--border);background:#fafcfd;padding:8px}.doc-name input{border:0;background:none;font-size:13px;padding:2px 0}.doc-meta{font-size:10px;gap:6px}.doc-actions{margin-top:6px;justify-content:flex-end}.doc-actions .btn{font-size:10px;padding:2px 7px}.badge{border:0;border-radius:4px;padding:2px 5px;font-size:10px;background:#edf2f5}.badge.ok{background:#eaf7f1;color:#13796b}.badge.warn{background:#fff4dc;color:#8b5a08}.badge.crit{background:#fdecec}.badge.info{color:var(--purple);background:#f0eafb}.empty-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;min-height:180px;flex:1;gap:8px;padding:15px 20px;color:#667d8c;font-size:13px}.empty-preview strong{font-weight:500;color:#475e70}.empty-preview p{max-width:285px;font-size:12px;color:#788997}.page-symbol{font-size:34px;width:37px;height:44px;line-height:36px;border:1px solid #c3d1dd;border-radius:4px;background:#f8fbfd;color:#a6bacb;margin-bottom:5px}.question-symbol{font-family:var(--mono);font-size:30px;color:#b4a3cc;margin-bottom:5px}.local-note{margin-top:auto;padding-top:15px;font-size:11px;color:var(--text-muted);display:flex;gap:8px;align-items:center}.local-note>span{color:#6394ba;font-size:8px}.local-note.purple>span{color:var(--purple)}.local-note.purple{color:var(--text-muted)}#stateText{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f9fc;padding:16px;max-height:190px;min-height:140px;overflow:auto;font:13px/1.7 Georgia,serif;border:1px solid #e7edf2;border-radius:7px;margin:10px 0}.preview-footer{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--text-muted)}#statePreview summary{font-size:11px;margin-top:12px;color:var(--text-muted)}
.btn{padding:8px 13px;border-color:#d5dfe6;border-radius:7px;font-weight:550;font-size:12px;box-shadow:0 1px 2px #122c3c05}.btn:disabled{opacity:.45}.btn-blue{background:#2876c4;color:white;border-color:#2876c4}.btn-purple{background:#7858b3;color:white;border-color:#7858b3}.btn-teal{background:#147c72;color:white;border-color:#147c72}.btn-blue:hover{background:#206ab4}.btn-purple:hover{background:#6849a0}.btn-teal:hover{background:#106a61}.btn-ghost:hover{background:#f3f6f8}.link-btn{font-size:12px;text-decoration:none;font-weight:550}.link-btn:hover{text-decoration:underline}.danger{color:#b34646}.btn-sm{padding:5px 9px;font-size:11px}input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font:13px/1.5 var(--sans);border:1px solid #d2dce5;border-radius:7px;padding:9px 10px;width:100%;color:var(--text-primary);background:#fff}input[type=checkbox],input[type=radio]{accent-color:var(--teal)}textarea:focus,input:focus,select:focus{outline:2px solid #9cc8e666;outline-offset:1px}textarea::placeholder,input::placeholder{color:#8b98a5}#pasteSource .btn{margin-top:8px}.field-label{font-size:12px}.q-input{grid-template-columns:minmax(0,1fr) 26px}.q-input textarea{min-height:86px;max-height:350px}.q-input .btn{padding:2px;border:0;font-size:12px;box-shadow:none}.context-details{border-top:1px solid #ecf0f4;margin-top:17px;padding-top:12px;font-size:12px}.context-details summary{cursor:pointer;color:#5f6f80}.context-details summary span{color:#96a1ad;margin-left:6px}.context-details .check{font-size:12px;margin-top:10px}.model-strip{background:#f7f4fb;border:1px solid #e9e1f2;border-radius:8px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px}.model-strip strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}.model-strip small{display:block;font-size:10px;color:#786591}.model-strip .micro-label{font-size:8px;color:#8875a4}.send-note{font-size:10px;margin:9px 0;color:#7c8996}#translateBtn{width:100%;text-align:left;display:flex;justify-content:space-between}#translateNeedsKey{font-size:11px;margin-top:6px}#translateNeedsKey .link-btn{font-size:11px}.status:empty{display:none}.status{font-size:12px;overflow-wrap:anywhere}#jsonSource{text-align:center;padding:15px 10px}#jsonSource p{font-size:13px;margin:12px 0 20px}.import-art{font-family:var(--mono);font-size:38px;color:#a18cc1;margin-bottom:15px}.q-head{background:#faf9fc;padding:11px;gap:7px}.q-head .orig{font-size:13px;flex:1 1 150px;overflow-wrap:anywhere}.q-card{background:white;border-color:#e6e0ee;overflow:visible}.q-summary{font-size:12px;padding:0 12px 12px;background:#faf9fc;color:#7d6c91}.q-body{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.q-body textarea{font-size:12px}.q-body .field-label{margin-top:0}.q-error{font-size:11px;margin-top:6px}.criteria-row{display:grid;grid-template-columns:90px minmax(0,1fr) 22px;gap:6px;margin-top:6px;align-items:start}.criteria-row input{font-size:11px!important}.criteria-row button{padding:2px;border:0}.criteria-row textarea{min-height:52px;resize:vertical}.criteria-row .level-label{font-size:11px;padding-top:8px;color:var(--text-muted)}.criteria-row input[readonly]{background:#f7f8fa!important}.criteria-editor>.link-btn{margin-top:10px}.question-actions{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:8px}.q-tools{gap:8px;margin-top:14px}.q-tools .btn-purple{width:100%;text-align:center}.q-tools .link-btn{font-size:11px}#exportHint{font-size:11px;margin-top:8px}.json-view{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px}.run-panel{margin-top:29px;border:1px solid #cbdedb;border-radius:12px;background:#f0f7f5;padding:23px}.run-heading{display:flex;justify-content:space-between;align-items:center;gap:18px}.run-heading h2{font-size:23px}.run-summary{font-size:12px;color:#587770;margin:8px 0}.run-model{text-align:right;display:flex;flex-direction:column;gap:5px;font-size:13px}.run-model .link-btn{font-size:11px;color:var(--teal)}.readiness{display:flex;gap:16px;flex-wrap:wrap;font-size:11px;color:#667c78;margin:8px 0 18px}.readiness .ready{color:#177361}.run-bottom{border-top:1px solid #d9e7e2;padding-top:16px;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:12px}.run-bottom p{font-size:12px;color:#54726b}.run-bottom .btn-teal{min-width:165px;font-size:13px;padding:11px 18px}#runNeedsKey{font-size:11px;margin-top:4px}.warnings:empty{display:none}.warning-item{font-size:12px;background:#fff8e9;border-left-color:#d8ad56}.progress{margin-top:14px;width:100%;max-width:none;flex:auto}.log:empty{display:none}.log{font-size:11px}.workspace-footer{display:flex;justify-content:space-between;margin:30px 0 24px;font-size:10px;color:#718493;gap:15px}.workspace-footer>span:first-child{font-weight:600}
dialog{border:1px solid var(--border);border-radius:14px;padding:0;box-shadow:0 16px 70px #10283830;color:var(--text-primary);max-height:90vh}dialog::backdrop{background:#10253766;backdrop-filter:blur(3px)}#connectionsDialog{width:min(600px,95vw);margin-right:22px;margin-top:25px}#connectionsDialog .panel{border:0;box-shadow:none}#connectionsDialog .panel-head h2{display:none}#connectionsDialog .panel-head .hint{font-size:12px}#connectionsDialog .two-col{grid-template-columns:1fr}#connectionsDialog .key-card{border:1px solid var(--border);border-radius:10px;padding:16px}#connectionsDialog .key-card-head{display:flex;gap:8px;align-items:start;justify-content:space-between}#connectionsDialog .key-card-head strong{font-size:13px}#connectionsDialog .key-card .small{font-size:11px}#connectionsDialog .segmented{display:flex;flex-wrap:wrap;margin:10px 0;font-size:12px;gap:12px}#connectionsDialog .segmented label{display:flex;gap:5px;align-items:center}#connectionsDialog .segmented span{padding:0;background:none;border:0}#connectionsDialog .segmented input{position:static;opacity:1;width:auto}#connectionsDialog .key-state{font-size:10px;white-space:nowrap}#connectionsDialog .badge.svc{display:none}#connectionsDialog .panel-body{padding:16px 22px}.small-check{margin-top:10px}#helpDialog{width: min(1450px,96vw)}#helpDialog img{display:block;width:100%;height:auto}#helpDialog p{font-size:12px;padding:15px 22px}.drawer-head{position:sticky;top:0;background:#fff;z-index:2}.results-empty{display:flex;min-height:380px;align-items:center;justify-content:center;flex-direction:column;gap:16px;border:1px dashed #c9d6df;border-radius:12px;background:#fff}.results-empty p{font-size:14px}.results-empty h2{font-size:23px}#panel-results{margin-top:22px;box-shadow:none}#panel-results .toolbar{margin-top:12px}.table-wrap{max-height:65vh}table.results{font-size:14px}.results .conf:before{content:"confidence ";font-size:9px}.results .cell:has(.legend) .conf:before{content:""}#resultsStale{margin:15px 0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:12px 20px;background:#213f43;color:white;border-radius:9px;z-index:100;font-size:13px;max-width:90vw}
@media(min-width:1500px){.workspace{padding:0 60px}.lane{grid-template-columns:minmax(0,1fr) 115px minmax(0,1fr)}.work-card{padding:25px}}
@media(max-width:1000px){.workspace{padding:0 24px}.app-header{padding:0 24px;gap:15px}.brand{font-size:16px}.brand small{font-size:8px}.header-actions .btn{font-size:11px}.lane{grid-template-columns:minmax(0,1fr) 65px minmax(0,1fr)}.lane-edge{font-size:9px}.lane-edge small{font-size:8px}.work-card{padding:16px}.card-heading h3{font-size:15px}.q-body{grid-template-columns:1fr}.page-heading h1{font-size:28px}}
@media(max-width:700px){.app-header{height:auto;min-height:74px;flex-wrap:wrap;padding:12px 16px 0;gap:12px}.brand{flex:1}.brand small{display:none}.header-actions .btn{padding:6px 8px}.main-tabs{order:3;width:100%;height:38px;gap:25px}.workspace{padding:0 16px}.page-heading{margin-top:25px;align-items:start}.page-heading h1{font-size:25px}.page-heading .btn{font-size:10px;white-space:nowrap;padding:6px}.page-heading p{font-size:12px}.workflow-line{font-size:10px;gap:8px;justify-content:space-between}.workflow-line i{width:12px}.lane{grid-template-columns:1fr}.lane-edge{height:55px;flex-direction:row;gap:10px;font-size:11px}.lane-edge b{transform:rotate(90deg);font-size:23px}.lane-edge small{font-size:10px;max-width:none}.lane-label p{font-size:10px}.lane-label h2{font-size:18px}.work-card{padding:18px}.q-body{grid-template-columns:1fr 1fr}.run-heading{align-items:start}.run-heading h2{font-size:21px}.run-model{max-width:130px;font-size:11px}.run-bottom{flex-direction:column;align-items:stretch}.run-bottom .row-start{justify-content:flex-end}.readiness{gap:10px}.run-panel{padding:18px}.workspace-footer{flex-direction:column;gap:4px}#connectionsDialog{margin:15px auto}.results-empty{padding:20px;text-align:center}.results-empty h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.results .conf:before,.results .cell:has(.legend) .conf:before{content:none}
@media(max-width:420px){.q-body{grid-template-columns:1fr}.card-heading h3{font-size:15px}.criteria-row{grid-template-columns:68px minmax(0,1fr) 20px}}
.app-header{position:sticky;top:0;z-index:10}

.workspace-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.card-heading .link-btn{font-size:11px;white-space:nowrap}.link-btn:disabled{opacity:.4;cursor:not-allowed;text-decoration:none}.undo-banner{position:sticky;top:84px;z-index:9;display:flex;gap:12px;align-items:center;padding:12px 16px;border:1px solid #b8d6cc;border-radius:0 0 9px 9px;background:#eaf6f0;color:#225e50;font-size:13px;box-shadow:0 2px 8px #18334310}.undo-hint{font-size:11px;color:#58786d}.undo-banner .link-btn{margin-left:auto}.undo-banner .btn{white-space:nowrap}@media(max-width:700px){.page-heading{flex-wrap:wrap}.workspace-actions{justify-content:flex-start}.undo-banner{top:112px;flex-wrap:wrap;gap:8px;font-size:12px}.undo-hint{width:100%;order:3}}

#pasteList{margin-top:14px;padding:14px;border:1px solid #ded6eb;border-radius:9px;background:#faf8fc}#pasteListPreview{margin-top:10px}#pastePreview{margin-top:16px;border-top:1px solid #ded6eb;padding-top:12px}.paste-preview-card{margin:12px 0;padding:12px;background:white;border:1px solid #ded6eb;border-radius:8px}.paste-preview-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:8px;font-size:13px;font-weight:600}.paste-preview-heading .link-btn{font-size:12px}.paste-preview-card textarea{font-size:13px;line-height:1.5;width:100%;resize:vertical}#pasteListAdd{margin-top:8px;width:100%}

.bulk-question-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:12px;background:#f5f1fa;border:1px solid #e2d9ed;border-radius:8px}.bulk-question-actions .btn{white-space:nowrap}.bulk-question-actions .small{flex:1 1 160px}
