:root { color-scheme: light; --ink:#233a34; --muted:#62716b; --green:#204d43; --line:#dce0d7; --paper:#fffefa; --bg:#f3f4ee; --amber:#875c15; font-family: "Segoe UI", system-ui, sans-serif; color:var(--ink); background:var(--bg); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; }
button, input, select, textarea { font:inherit; }
button, summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:default; opacity:.42; }
button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, pre:focus-visible { outline:3px solid #9f651b; outline-offset:4px; }
[hidden] { display:none !important; }
.brand-bar { height:72px; border-bottom:1px solid var(--line); padding:0 36px; display:flex; align-items:center; justify-content:space-between; gap:20px; background:#f9faf5; }
.brand { display:flex; align-items:center; gap:13px; font-size:12px; letter-spacing:.08em; }
.brand strong { font-weight:500; letter-spacing:0; font-size:14px; }
.brand-divider { color:#9aa69e; margin:0 16px; }
.brand-mark { display:grid; place-items:center; width:33px; height:36px; border-radius:8px; background:var(--green); color:white; font-size:25px; }
.local-label { font-size:12px; color:var(--muted); white-space:nowrap; }
.local-label > span:first-child { color:#4b7b62; margin-right:5px; font-size:9px; }
.version-label { border:1px solid var(--line); padding:3px 6px; border-radius:4px; margin-left:12px; font-size:10px; }
main { max-width:1440px; padding:32px 36px 20px; margin:auto; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.eyebrow { font-size:10px; font-weight:650; letter-spacing:.13em; margin:0 0 9px; color:var(--muted); }
h1 { font-family:Georgia, "Times New Roman", serif; font-size:36px; font-weight:400; letter-spacing:-.03em; line-height:1.15; margin:0; }
.intro { font-size:14px; color:var(--muted); margin:10px 0 0; }
.saved-actions, .review-actions { display:flex; align-items:center; gap:8px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:40px; padding:9px 14px; border-radius:7px; font-size:12px; font-weight:600; border:1px solid transparent; transition:background .12s, border-color .12s; white-space:nowrap; }
.primary { background:var(--green); color:#fff; }
.primary:hover:not(:disabled) { background:#153b32; }
.secondary { background:#fafbf6; border-color:#cdd5ca; color:var(--ink); }
.secondary:hover:not(:disabled) { background:#edf1e8; border-color:#95a691; }
.quiet { background:transparent; color:var(--muted); }
.quiet:hover:not(:disabled) { background:#e7ece2; }
.status { font-size:12px; color:var(--muted); min-height:42px; padding:16px 0 10px; line-height:1.5; overflow-wrap:anywhere; }
.status.error { color:#963c29; }
.workspace { display:grid; grid-template-columns:296px minmax(0,1fr); gap:22px; align-items:start; }
.sources-panel { border:1px solid var(--line); border-radius:11px; padding:22px 18px 14px; background:#fafbf7; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:21px; }
.panel-heading h2 { font-size:20px; font-weight:550; margin:0; }
.panel-heading .eyebrow { margin-bottom:6px; }
.count-badge { width:27px; height:27px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; font-size:12px; color:var(--muted); }
.add-button { width:100%; }
.add-button span { font-size:20px; line-height:1; font-weight:400; }
.input-help { font-size:11px; color:var(--muted); margin:11px 0 23px; }
summary { cursor:pointer; }
.input-help p, .separator-details p { line-height:1.65; margin:10px 0 0; }
.selection-summary { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.selection-summary span:first-child { font-size:12px; font-weight:600; }
.selection-summary span:last-child { font-size:8px; letter-spacing:.09em; color:var(--muted); }
.source-list { list-style:none; padding:0; margin:0; max-height:440px; overflow-y:auto; }
.source-row { border:1px solid var(--line); background:#f0f2eb; border-radius:7px; margin-bottom:8px; padding:11px 9px 10px; display:grid; grid-template-columns:13px 17px 1fr; gap:7px; transition:border-color .12s; }
.source-row.unselected { background:transparent; }
.source-row.dragging { opacity:.45; }
.source-row.drop-target { border-color:var(--green); outline:2px solid #89a68c; }
.drag-grip { align-self:start; color:#829082; line-height:22px; cursor:grab; font-size:14px; letter-spacing:-3px; }
.source-row input { width:15px; height:15px; margin:3px 0 0; accent-color:var(--green); cursor:pointer; }
.source-info { min-width:0; }
.source-name { background:transparent; border:0; padding:1px 0 3px; text-align:left; color:var(--ink); font-size:12px; font-weight:600; overflow-wrap:anywhere; line-height:1.5; width:100%; }
.source-name:hover { text-decoration:underline; text-underline-offset:3px; }
.source-meta { display:flex; align-items:center; justify-content:space-between; gap:5px; font-size:9px; color:var(--muted); }
.source-meta > span { font-size:9px; }
.source-controls { display:flex; gap:3px; }
.move-button { border:1px solid #cdd6c8; border-radius:4px; background:#fafbf7; width:25px; height:25px; padding:0; font-size:13px; color:var(--ink); }
.move-button:hover:not(:disabled) { background:#e0e8da; }
.source-order { font-variant-numeric:tabular-nums; color:#456b51; margin-right:5px; }
.source-guidance { font-size:10px; line-height:1.9; color:var(--muted); margin:15px 0 0; }
.work-surface { min-width:0; display:grid; gap:18px; }
.action-panel { display:flex; justify-content:space-between; align-items:center; gap:20px; border:1px solid var(--line); background:#fafbf7; border-radius:11px; padding:20px 24px; }
.action-description { min-width:0; flex:1; }
.action-description select, .settings-fields input:not([type="checkbox"]), .settings-fields textarea { border:1px solid #bdcbbb; border-radius:5px; color:var(--ink); background:var(--paper); padding:7px 9px; width:100%; min-width:0; }
#action-select { width:auto; font-size:19px; font-weight:550; padding:3px 25px 3px 6px; }
#combine-settings > p { font-size:12px; color:var(--muted); margin:9px 0; }
.settings-fields { display:grid; gap:8px; font-size:12px; margin-top:12px; max-width:440px; }
.settings-fields textarea { font-family:Consolas, monospace; resize:vertical; line-height:1.5; }
.field-help, .provider-status { font-size:11px; color:var(--muted); line-height:1.6; margin:0; overflow-wrap:anywhere; }
.provider-status { border-top:1px solid var(--line); padding-top:8px; }
.check-label { display:flex; align-items:center; gap:7px; line-height:1.5; }
.check-label input { accent-color:var(--green); }
#reset-combine { justify-self:start; min-height:30px; padding:4px 8px; }
.language-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.language-fields label { display:grid; gap:6px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.action-cta > span { max-width:205px; text-align:center; line-height:1.6; overflow-wrap:anywhere; }
.details-content p { overflow-wrap:anywhere; }
.action-panel .eyebrow { margin-bottom:6px; }
.action-panel h2 { font-size:20px; font-weight:550; margin:0; display:flex; align-items:center; gap:12px; }
.type-label { font-size:8px; letter-spacing:.07em; font-weight:500; color:var(--muted); border:1px solid var(--line); border-radius:4px; padding:4px 6px; }
.action-description > p:not(.eyebrow) { color:var(--muted); font-size:12px; margin:7px 0 0; }
.separator-details { color:var(--muted); font-size:10px; margin-top:10px; max-width:420px; }
.separator-details code { background:#eaeee5; color:#3f5746; font-family:Consolas, monospace; border-radius:3px; margin-left:4px; padding:0 5px; }
.action-cta { display:flex; flex-direction:column; align-items:center; gap:9px; flex-shrink:0; }
.action-cta .button { min-width:162px; }
.action-cta > span { font-size:10px; color:var(--muted); }
.document-panel { border:1px solid #d5dbce; border-radius:11px; background:var(--paper); box-shadow:0 4px 14px #203b3010; overflow:hidden; }
.document-heading { padding:24px 28px 0; display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:82px; }
.state-label { font-size:9px; font-weight:650; letter-spacing:.1em; margin-bottom:7px; display:flex; align-items:center; gap:6px; }
.state-label::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.state-label.neutral { color:#778276; }
.state-label.preview { color:var(--amber); }
.state-label.accepted { color:#3a6950; }
.document-heading h2 { font-family:Georgia, "Times New Roman", serif; font-size:25px; font-weight:400; letter-spacing:-.02em; margin:0; }
.document-note { font-size:11px; line-height:1.6; color:var(--muted); padding:0 28px; margin:10px 0 0; }
.document-note.preview-note { color:var(--amber); }
.empty-state { min-height:330px; display:flex; align-items:center; justify-content:center; flex-direction:column; padding:44px 20px; text-align:center; }
.empty-state h3 { font-family:Georgia, "Times New Roman", serif; font-size:24px; font-weight:400; margin:29px 0 9px; letter-spacing:-.02em; }
.empty-state p { font-size:12px; color:var(--muted); line-height:1.9; margin:0; }
.empty-state strong { font-weight:600; color:#4c6657; }
.paper-stack { position:relative; width:65px; height:70px; }
.paper-stack span { position:absolute; inset:0; display:grid; place-items:center; border:1px solid #cbd5c4; border-radius:4px; background:#f9faf4; color:#8b9e80; font-size:35px; font-weight:200; }
.paper-stack span:nth-child(1) { transform:rotate(-11deg) translate(-6px,1px); background:#e9eee1; }
.paper-stack span:nth-child(2) { transform:rotate(8deg) translate(5px,0); }
.paper-stack span:nth-child(3) { transform:translateY(1px); }
.document-text, .source-text { white-space:pre-wrap; overflow-wrap:anywhere; font-family:"Cascadia Code", Consolas, monospace; font-size:13px; line-height:1.85; color:#37473f; tab-size:4; }
.document-text { margin:22px 28px 26px; max-height:470px; min-height:290px; overflow-y:auto; padding:0 12px 0 0; }
.document-footer { display:flex; justify-content:space-between; gap:15px; border-top:1px solid #e8ebdf; padding:12px 28px; font-size:10px; color:var(--muted); }
.result-details { border-top:1px solid #e8ebdf; font-size:11px; background:#fafbf6; }
.result-details > summary { padding:14px 28px; color:#425a49; font-weight:600; }
.result-details > summary span { font-size:10px; font-weight:400; color:var(--muted); margin-left:9px; }
.details-content { padding:0 28px 14px; color:#4a5e4f; line-height:1.7; }
.details-content p { margin:3px 0 10px; }
.details-content ol { padding-left:20px; margin:0 0 12px; }
.details-content li { margin:5px 0; overflow-wrap:anywhere; }
.details-content li span { color:var(--muted); font-size:10px; }
.details-footnote { font-size:10px; color:var(--muted); }
.session-note { display:flex; align-items:center; justify-content:flex-end; gap:7px; font-size:10px; color:var(--muted); margin-top:19px; line-height:1.7; }
.session-note > span { font-size:16px; }
dialog { width:min(800px, calc(100% - 36px)); border:1px solid var(--line); border-radius:12px; padding:26px; background:var(--paper); color:var(--ink); box-shadow:0 20px 80px #102d3b40; max-height:85vh; }
dialog::backdrop { background:#18372c77; }
.dialog-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; }
.dialog-heading h2 { font-size:18px; margin:0; overflow-wrap:anywhere; }
.dialog-meta { font-size:11px; color:var(--muted); line-height:1.6; }
.source-text { max-height:55vh; overflow-y:auto; border-top:1px solid var(--line); padding-top:20px; margin-bottom:0; }
@media (min-width:1600px) { main { padding-top:42px; } .empty-state { min-height:390px; } .document-text { max-height:540px; } }
@media (max-width:1000px) { .brand-bar { padding:0 24px; } main { padding:28px 24px 18px; } .workspace { grid-template-columns:260px minmax(0,1fr); gap:16px; } .action-panel { padding:19px; flex-wrap:wrap; } .action-cta { align-items:flex-start; } .action-cta > span { padding-left:2px; } .document-heading { padding:21px 20px 0; flex-wrap:wrap; } .document-note { padding:0 20px; } .document-text { margin-left:20px; margin-right:20px; } .result-details > summary, .document-footer { padding-left:20px; padding-right:20px; } .saved-actions { align-self:flex-end; } .page-heading { align-items:flex-start; } .saved-actions .button { padding:9px; } }
@media (max-width:760px) { .brand-bar { height:64px; padding:0 18px; } .brand-divider { margin:0 8px; } .brand { font-size:10px; gap:8px; } .brand strong { font-size:12px; } .local-label { font-size:0; } .local-label > span:first-child { font-size:8px; margin:0; } .version-label { display:none; } main { padding:25px 18px 18px; } h1 { font-size:31px; } .page-heading { flex-direction:column; gap:20px; } .saved-actions { align-self:flex-start; } .workspace { grid-template-columns:minmax(0,1fr); } .sources-panel { padding:18px; } .panel-heading { margin-bottom:15px; } .source-list { max-height:300px; } .input-help { margin-bottom:18px; } .source-guidance br { display:none; } .source-guidance { margin-top:12px; } .source-row { padding:11px; } .source-meta { justify-content:space-between; } .action-panel { justify-content:space-between; } .action-cta { align-items:center; } .document-heading h2 { font-size:24px; } .empty-state { min-height:300px; } .document-text { min-height:280px; max-height:430px; font-size:12px; } .session-note { justify-content:flex-start; } }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { transition:none !important; } }

/* Document Workbench: compact action and document controls. */
.brand-bar h1 { font-family:"Segoe UI", system-ui, sans-serif; font-size:21px; letter-spacing:-.02em; font-weight:550; }
main { padding-top:10px; }
.status { min-height:25px; padding:0 0 10px; }
.status:empty { min-height:18px; padding:0; }
.panel-heading { margin-bottom:16px; }
#selection-count { font-size:11px; color:var(--muted); }
.action-picker { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
#action-select { max-width:100%; font-size:17px; }
.action-panel { align-items:flex-start; }
.action-cta { align-self:center; }
#provider-status { margin-top:12px; font-size:11px; border:0; padding:0; }
.document-heading { padding-top:18px; min-height:64px; }
.state-label { font-size:11px; letter-spacing:.03em; margin:0; }
.review-actions { flex-wrap:wrap; justify-content:flex-end; }
.empty-state { min-height:350px; }
#document-editor { display:block; width:calc(100% - 56px); min-height:330px; border:1px solid var(--line); border-radius:5px; resize:vertical; padding:10px; background:var(--paper); }
#review-state { font-weight:600; }
#source-image { max-width:100%; max-height:65vh; object-fit:contain; }
#action-dialog .settings-fields { max-width:none; }
#action-error { color:#963c29; margin:0; }
#action-instructions { min-height:150px; }
.request-rules { white-space:pre-wrap; overflow-wrap:anywhere; font-family:inherit; font-size:11px; line-height:1.65; max-height:240px; overflow:auto; padding:10px; border:1px solid var(--line); border-radius:5px; background:var(--paper); }
#task-settings { max-width:560px; }
#save-configuration { justify-self:start; }
#provenance-execution { white-space:pre-wrap; }
#configuration-dialog .settings-fields { max-width:none; }
#configuration-error { color:#963c29; margin:0; }
.details-content li { margin:8px 0; }
@media (max-width:760px) { .brand-bar h1 { font-size:18px; } .brand-bar { padding:0 18px; } .brand-bar .button { padding:6px 9px; } .document-heading { align-items:flex-start; } #document-editor { width:calc(100% - 40px); } .action-picker { gap:3px; } }
