/* Display preferences: typography scale and a purpose-built daylight palette. */
.font-control{display:flex;align-items:center;height:34px;padding:3px;background:#171914;border:1px solid #3f4338;border-radius:8px}.font-control button{display:grid;place-items:center;min-width:30px;height:26px;padding:0;color:#8f9388;background:transparent;border:0;border-radius:5px;font:700 10px/1 "IBM Plex Mono",monospace}.font-control button:hover{color:#fff;background:#292d24}.font-control button.active{color:#171810;background:var(--signal);box-shadow:0 2px 8px rgba(230,201,79,.18)}.theme-toggle{display:grid;place-items:center;width:36px;height:36px;color:#d8cc87;background:#24251a;border:1px solid #514d32;border-radius:8px;transition:color 180ms,background 180ms,border-color 180ms,transform 180ms var(--ease)}.theme-toggle:hover{color:var(--signal-2);background:#303023;border-color:#746d3e;transform:rotate(8deg)}.theme-toggle .lucide{width:17px;height:17px}.app-shell,.topbar,.rail,.stage,.page,.panel,.button,.issue-queue,.review,.brief-card,.toast{transition:color 220ms ease,background-color 220ms ease,border-color 220ms ease,box-shadow 220ms ease}

/* Standard is intentionally more readable than the initial compact UI. */
body[data-font-size="standard"]{font-size:14px}body[data-font-size="standard"] :is(.page-header p,.issue-hero p){font-size:14px}body[data-font-size="standard"] :is(.step-link b,.source-hero strong,.issue-copy strong,.signal-strip strong,.evidence-card blockquote,.brief-card h3){font-size:12px}body[data-font-size="standard"] :is(.step-link small,.panel-heading p,.field>span,.field-label,.source-tab,.source-hero p,.preview-empty p,.text-button,td,.page-action p,.queue-heading>span,.progress-meta,.queue-tab,.issue-meta,.queue-foot,.ai-label,.status-panel small,.reason-card b,.reason-card p,.boundary-note p,.section-heading small,.evidence-source,.edit-actions button,.review-action p,.brief-summary p,.brief-card>p,.brief-card footer){font-size:10px}body[data-font-size="standard"] :is(.eyebrow,.panel-heading .required-note,.data-stats span,th,.preview-foot,.analysis-overlay small,.status-panel span,.signal-strip small,.select-field>span,.brief-summary span,.brief-section-heading span){font-size:9px}body[data-font-size="standard"] .page-header h1{font-size:28px}body[data-font-size="standard"] .issue-hero h2{font-size:31px}body[data-font-size="standard"] :is(.panel-heading h2,.section-heading h3,.brief-section-heading h2){font-size:15px}

body[data-font-size="large"]{font-size:16px}body[data-font-size="large"] :is(.page-header p,.issue-hero p){font-size:16px;line-height:1.75}body[data-font-size="large"] :is(.step-link b,.source-hero strong,.issue-copy strong,.signal-strip strong,.evidence-card blockquote,.brief-card h3){font-size:14px}body[data-font-size="large"] :is(.step-link small,.panel-heading p,.field>span,.field-label,.source-tab,.source-hero p,.preview-empty p,.text-button,td,.page-action p,.queue-heading>span,.progress-meta,.queue-tab,.issue-meta,.queue-foot,.ai-label,.status-panel small,.reason-card b,.reason-card p,.boundary-note p,.section-heading small,.evidence-source,.edit-actions button,.review-action p,.brief-summary p,.brief-card>p,.brief-card footer){font-size:12px}body[data-font-size="large"] :is(.eyebrow,.panel-heading .required-note,.data-stats span,th,.preview-foot,.analysis-overlay small,.status-panel span,.signal-strip small,.select-field>span,.brief-summary span,.brief-section-heading span){font-size:11px}body[data-font-size="large"] .page-header h1{font-size:30px}body[data-font-size="large"] .issue-hero h2{font-size:34px}body[data-font-size="large"] :is(.panel-heading h2,.section-heading h3,.brief-section-heading h2){font-size:17px}body[data-font-size="large"] .review-content{max-width:1080px}body[data-font-size="large"] .workbench-shell{grid-template-columns:330px minmax(0,1fr)}body[data-font-size="large"] .queue-list{height:calc(100vh - var(--top) - 250px)}body[data-font-size="large"] .issue-button{grid-template-columns:48px 1fr}body[data-font-size="large"] .issue-index{min-height:82px}

/* Daylight mode keeps the signal-yellow identity but uses ink-on-paper contrast. */
body[data-theme="light"]{color-scheme:light;--bg:#eef0ea;--surface:#f8f9f5;--surface-2:#f0f2ec;--surface-3:#e6e9e1;--line:#d0d5ca;--line-strong:#aeb6a7;--ink:#20231d;--muted:#62695f;--muted-2:#7b8278;--signal:#c7a91b;--signal-2:#d8ba2b;--green:#2c8167;--red:#c34f49;background:#eef0ea;color:var(--ink)}body[data-theme="light"] .app-shell{background:#f4f6f1}body[data-theme="light"] .topbar{background:#fafbf8;border-color:#d5d9d0;box-shadow:0 2px 12px rgba(34,40,30,.06)}body[data-theme="light"] .brand small{color:#71786e}body[data-theme="light"] .brand-mark i{background:#fffdf5}body[data-theme="light"] .demo-badge{color:#71621a;background:#fff8d7;border-color:#d8ca7a}body[data-theme="light"] :is(.icon-button,.exit-button){color:#535a51}body[data-theme="light"] :is(.icon-button,.exit-button):hover{background:#ecefe8;border-color:#c8cdc3}body[data-theme="light"] .font-control{background:#f0f2ec;border-color:#cbd0c6}body[data-theme="light"] .font-control button{color:#656c62}body[data-theme="light"] .font-control button:hover{color:#20231d;background:#e2e6dd}body[data-theme="light"] .font-control button.active{color:#fff;background:#6e641d}body[data-theme="light"] .theme-toggle{color:#454b43;background:#f0f2ec;border-color:#c7ccc2}body[data-theme="light"] .theme-toggle:hover{color:#171a16;background:#e4e8df;border-color:#aeb5a9}body[data-theme="light"] .rail{background:#f7f8f4;border-color:#d5d9d0}body[data-theme="light"] :is(.rail-task,.rail-boundary,.queue-tabs,.queue-foot){border-color:#d5d9d0}body[data-theme="light"] .step-link{color:#646b62}body[data-theme="light"] .step-link:not(:disabled):hover{color:#20231d;background:#e9ece5}body[data-theme="light"] .step-link.active{color:#20231d;background:#f1edcf;border-color:#c8b84f;box-shadow:inset 3px 0 0 #7c701e}body[data-theme="light"] .step-link small{color:#747b72}body[data-theme="light"] .page{background:#eef0ea}body[data-theme="light"] .page-header{background:#f6f7f3;border-color:#d2d7cd}body[data-theme="light"] .page-header p{color:#656c62}body[data-theme="light"] :is(.page-state,.panel,.source-hero,.preview-panel,.data-stats,.table-wrap,.upload-zone,.mode-option,.source-tabs,.field input,.field textarea){background:#fbfcf9;border-color:#cbd1c6}body[data-theme="light"] .page-state strong{color:#756817}body[data-theme="light"] .mode-option.active{color:#20231d;background:#f5f0ce;border-color:#c1af42}body[data-theme="light"] :is(.mode-option small,.source-hero p,.preview-empty p,.panel-heading p,.field>span,.field-label){color:#697067}body[data-theme="light"] .source-symbol{color:#6e6218;background:#f4edc1}body[data-theme="light"] .source-tabs{background:#e8ebe4}body[data-theme="light"] .source-tab{color:#5e655c}body[data-theme="light"] .source-tab.active{color:#fff;background:#6f651d}body[data-theme="light"] .button{--button-bg:#f4f6f1;--button-border:#aeb6a8;--button-color:#30352e;box-shadow:0 3px 10px rgba(40,46,35,.08)}body[data-theme="light"] .button:hover:not(:disabled){background:#e9ece5;border-color:#899286}body[data-theme="light"] .button.primary{--button-bg:#6e641d;--button-border:#5d551b;--button-color:#fffdf0;box-shadow:0 6px 18px rgba(100,88,15,.18)}body[data-theme="light"] .button.primary:hover:not(:disabled){--button-bg:#5f5719}body[data-theme="light"] .button:disabled{--button-bg:#ecefe8;--button-border:#d3d7cf;--button-color:#9aa098}body[data-theme="light"] th{color:#60675e;background:#e7eae3}body[data-theme="light"] td{color:#555c53;border-color:#dde1d8}body[data-theme="light"] .raw-cell{color:#252922}body[data-theme="light"] .normal-pill{color:#216a55}body[data-theme="light"] .duplicate-pill{color:#6b5b15;background:#fff7cf;border-color:#d5c568}body[data-theme="light"] .page-action{background:#f9faf7;border-color:#cbd1c6;box-shadow:0 -8px 22px rgba(42,47,37,.07)}body[data-theme="light"] .analysis-overlay{background:rgba(229,232,224,.82)}body[data-theme="light"] .analysis-overlay>div{background:#fbfcf9;border-color:#aeb6a8;box-shadow:0 30px 80px rgba(45,52,38,.2)}body[data-theme="light"] .analysis-progress{background:#dde1d8}body[data-theme="light"] .issue-queue{background:#f5f7f2;border-color:#d0d5cb}body[data-theme="light"] .queue-heading{border-color:#d1d6cc}body[data-theme="light"] .queue-tab{color:#656c62}body[data-theme="light"] .queue-tab:hover{color:#20231d;background:#e7eae3}body[data-theme="light"] .queue-tab.active{color:#fff;background:#6e641d}body[data-theme="light"] .issue-button{color:#252922;background:#fbfcf9;border-color:#d2d7cd}body[data-theme="light"] .issue-button:hover{background:#f0f2ec;border-color:#aeb6a8}body[data-theme="light"] .issue-button.active{background:#f1edcf;border-color:#b7a63d;box-shadow:inset 3px 0 0 #756a1c}body[data-theme="light"] .issue-index{color:#70776d;background:#ecefe8;border-color:#d2d7cd}body[data-theme="light"] .issue-button.active .issue-index{color:#665b13}body[data-theme="light"] .issue-meta{color:#6e756b}body[data-theme="light"] .queue-foot{color:#70776d;background:#ecefe8}body[data-theme="light"] .review{background:#f3f5f0}body[data-theme="light"] .review:before{background-image:linear-gradient(rgba(33,38,30,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(33,38,30,.025) 1px,transparent 1px)}body[data-theme="light"] .review-header{background:rgba(250,251,248,.96);border-color:#d1d6cc}body[data-theme="light"] .review-header>div:first-child span{color:#676e65}body[data-theme="light"] .issue-hero p{color:#51584f}body[data-theme="light"] :is(.status-panel,.signal-strip,.reason-card,.evidence-card,.select-field select,.expand-button){background:#fbfcf9;border-color:#cbd1c6}body[data-theme="light"] .status-panel{box-shadow:inset 0 0 0 3px #f1f3ed}body[data-theme="light"] :is(.status-panel span,.status-panel small,.signal-strip small,.section-heading small,.evidence-source){color:#646b62}body[data-theme="light"] .status-panel strong{color:#6c6015}body[data-theme="light"] .signal-strip article{border-color:#d1d6cc}body[data-theme="light"] .signal-strip article>i{background:linear-gradient(90deg,var(--green) 76%,#d9ddd5 76%)}body[data-theme="light"] .signal-strip article>i.attention{background:linear-gradient(90deg,#9b8517 66%,#d9ddd5 66%)}body[data-theme="light"] .review-section{border-color:#d1d6cc}body[data-theme="light"] .reason-card p{color:#555c53}body[data-theme="light"] .boundary-note{color:#5f571d;background:#fff8d9;border-color:#b8a848}body[data-theme="light"] .evidence-card blockquote{color:#292e27}body[data-theme="light"] .tag{color:#555c53;background:#e9ece5;border-color:#c7ccc2}body[data-theme="light"] .expand-button{color:#675d18}body[data-theme="light"] .edit-actions button{color:#626960}body[data-theme="light"] .edit-actions button:hover{color:#20231d;background:#e5e8e1;border-color:#c4cabf}body[data-theme="light"] .review-action{background:rgba(250,251,248,.97);border-color:#cbd1c6}body[data-theme="light"] .brief-summary{background:#fafbf8;border-color:#cbd1c6}body[data-theme="light"] .brief-summary article{border-color:#cbd1c6}body[data-theme="light"] .brief-card{background:#fafbf8;border-color:#cbd1c6}body[data-theme="light"] .brief-card>p{color:#555c53}body[data-theme="light"] .brief-card footer{color:#6c736a;border-color:#d7dbd2}body[data-theme="light"] .brief-empty>span{background:#f7f8f4;border-color:#cbd1c6}body[data-theme="light"] .toast{background:rgba(250,251,248,.98);border-color:#b6bdb1;box-shadow:0 12px 34px rgba(35,42,31,.18)}body[data-theme="light"] .toast strong{color:#20231d}body[data-theme="light"] .toast span{color:#656c62}body[data-theme="light"] .mobile-queue-bar{background:#f7f8f4;border-color:#d0d5cb}

@media(max-width:760px){:root{--top:62px}.font-control{height:44px;padding:2px}.font-control button{min-width:40px;height:40px}.theme-toggle{width:44px;height:44px}.top-actions{gap:4px}body[data-font-size="large"] .workbench-shell{grid-template-columns:1fr}body[data-font-size="large"] .issue-hero h2{font-size:29px}body[data-font-size="large"] .issue-button{grid-template-columns:48px 1fr}}
@media(max-width:460px){.font-control button{font-size:9px}.theme-toggle{width:40px}.top-actions{gap:3px}.demo-badge{display:none}body[data-font-size="large"] .brand strong{font-size:11px}}
@media(max-width:360px){.brand>span:last-child{display:none}.font-control button{min-width:38px}}
/* Human-decision gate: processing stays locked until the operator completes a valid decision. */
.select-field select:disabled {
  color: #787c72;
  background: #12140f;
  border-color: #34382f;
  cursor: not-allowed;
}

.decision-gate {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 8px;
  padding: 8px 10px;
  color: #aaa58a;
  background: #25241b;
  border: 1px dashed #625d39;
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.45;
  transition: color 180ms, border-color 180ms, background 180ms;
}

.decision-gate .lucide {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--signal);
}

.decision-gate.ready {
  color: #b9d6c1;
  background: #17241b;
  border-color: #386344;
}

.decision-gate.ready .lucide {
  color: var(--green);
}

body[data-font-size="standard"] .decision-gate {
  font-size: 10px;
}

body[data-font-size="large"] .decision-gate {
  font-size: 12px;
}

html[data-theme="light"] .select-field select:disabled {
  color: #8c9087;
  background: #eceee9;
  border-color: #d4d8cf;
}

html[data-theme="light"] .decision-gate {
  color: #716b4f;
  background: #f5f2df;
  border-color: #b9aa5a;
}

html[data-theme="light"] .decision-gate.ready {
  color: #2f6542;
  background: #edf6ee;
  border-color: #8db39a;
}

.exit-dialog{position:fixed;z-index:190;inset:0;display:grid;place-items:center;padding:20px;visibility:hidden;opacity:0;pointer-events:none;transition:opacity 180ms ease,visibility 180ms}.exit-dialog.open{visibility:visible;opacity:1;pointer-events:auto}.exit-dialog-scrim{position:absolute;inset:0;width:100%;height:100%;padding:0;background:rgba(7,8,6,.76);border:0;backdrop-filter:blur(8px)}.exit-dialog-panel{position:relative;width:min(460px,100%);padding:24px;background:#171914;border:1px solid #555b4b;border-radius:8px;box-shadow:0 28px 80px rgba(0,0,0,.5);transform:translateY(10px) scale(.98);transition:transform 220ms var(--ease)}.exit-dialog.open .exit-dialog-panel{transform:none}.exit-dialog-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;color:var(--red);background:#2b1c1a;border:1px solid #6b3833;border-radius:8px}.exit-dialog-panel h2{margin:7px 0 6px;font-size:22px}.exit-dialog-panel p{margin:0;color:#a6a99f;font-size:12px;line-height:1.75}.exit-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:22px}.danger-button{--button-bg:#743630;--button-border:#9e5048;--button-color:#fff3f1;font-weight:700}.danger-button:hover:not(:disabled){--button-bg:#8b4038;border-color:#bf665d}.exit-dialog-actions .button{width:100%;min-height:44px}

body[data-theme="light"] .exit-dialog-scrim{background:rgba(32,36,29,.5)}body[data-theme="light"] .exit-dialog-panel{background:#fafbf8;border-color:#b9c0b4;box-shadow:0 28px 80px rgba(35,42,31,.25)}body[data-theme="light"] .exit-dialog-icon{color:#a03e37;background:#fae8e5;border-color:#d99992}body[data-theme="light"] .exit-dialog-panel p{color:#646b62}body[data-theme="light"] .danger-button{--button-bg:#9b4039;--button-border:#88342f;--button-color:#fff}

@media(max-width:520px){.exit-dialog-panel{padding:20px}.exit-dialog-actions{grid-template-columns:1fr}.exit-dialog-panel h2{font-size:20px}}
