:root { color-scheme:light; font-family:system-ui,-apple-system,sans-serif; font-size:14px; --bg:#f4f6f4; --paper:#fff; --ink:#172e31; --muted:#52696a; --line:#d8e2df; --navy:#153438; --mint:#d7f1e6; --green:#1a684f; --rose:#912d29; --orange:#855314; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; background:var(--bg); color:var(--ink); }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; color:inherit; }
button:disabled { opacity:.55; cursor:default; }
a { color:var(--green); }
:focus-visible { outline:3px solid #3c947b; outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(2rem,4vw,3.1rem); font-weight:740; line-height:1.05; letter-spacing:-.058em; }
h2 { font-size:1.15rem; }
h3 { font-size:.98rem; }
input,select,textarea { min-height:38px; width:100%; min-width:0; padding:7px 10px; border:1px solid #bbcfc9; border-radius:7px; color:var(--ink); background:white; }
input::placeholder,textarea::placeholder { color:#697e7e; }
label { display:grid; gap:5px; min-width:0; font-size:.83rem; font-weight:680; }
label small { color:var(--muted); font-weight:500; }
.primary,.secondary { font-weight:700; border-radius:8px; min-height:39px; padding:8px 13px; white-space:nowrap; }
.primary { background:var(--green); color:white; border:1px solid var(--green); }
.primary:hover { background:#0f513b; }
.secondary { background:white; border:1px solid #bccfc8; }
.secondary:hover { background:#edf6f0; }
.text-button { background:none; border:0; color:var(--green); font-weight:690; padding:4px 0; text-decoration:underline; text-underline-offset:3px; }
.alert { background:#ffefec; border:1px solid #e8c0b9; color:var(--rose); border-radius:8px; padding:10px 12px; margin-bottom:10px; }
.launch-status { margin:26px; color:var(--muted); }
.login-view { min-height:100dvh; display:grid; place-items:center; padding:17px; background:linear-gradient(130deg,#ebf4ef,#d9e7e4); }
.login-card { padding:clamp(20px,5vw,34px); width:min(100%,400px); display:grid; gap:15px; background:white; border:1px solid #cadbd3; border-radius:16px; box-shadow:0 15px 38px #18353218; }
.login-card h1 { font-size:2rem; }
.login-card .brand small { color:var(--muted); }
.login-card .alert { margin:0; }
.interface-language { display:flex; flex-wrap:wrap; gap:6px; }
.interface-language button { padding:5px 9px; border:1px solid var(--line); border-radius:6px; background:var(--paper); color:var(--ink); }
.interface-language button[aria-pressed="true"] { color:white; border-color:var(--green); background:var(--green); }
.rail .interface-language button[aria-pressed="false"] { background:transparent; color:#fff; border-color:#6d9087; }
.export-filters { display:flex; flex-wrap:wrap; align-items:end; gap:14px; margin-bottom:16px; }
.export-filters label { min-width:140px; }
.export-filters a, .export-grid a { display:inline-block; padding:8px 12px; border-radius:6px; text-decoration:none; font-weight:650; }
.export-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:12px; }
.export-grid article { display:grid; align-content:start; gap:8px; padding:12px; border:1px solid var(--line); border-radius:8px; }
.export-grid article p { color:var(--muted); }
.export-grid article div { display:flex; flex-wrap:wrap; gap:6px; }
.workspace { min-height:100vh; display:grid; grid-template-columns:201px minmax(0,1fr); }
.rail { height:100dvh; position:sticky; top:0; padding:22px 13px 15px; display:flex; flex-direction:column; color:#ecf8f2; background:var(--navy); }
.brand { display:flex; align-items:center; gap:9px; margin-bottom:21px; }
.brand-mark { flex:0 0 36px; width:36px; height:36px; display:grid; place-items:center; border-radius:9px; background:var(--mint); color:#16513d; font-weight:850; letter-spacing:.03em; }
.brand strong,.brand small,.account strong,.account small { display:block; }
.brand strong { font-size:1.13rem; letter-spacing:-.02em; }
.brand small,.account small { color:#bad5cd; font-size:.75rem; }
.rail nav,.shortcuts { display:grid; gap:4px; }
.nav-btn,.shortcuts a { display:flex; align-items:center; gap:9px; text-align:left; padding:8px 9px; width:100%; background:transparent; color:inherit; border:1px solid transparent; border-radius:7px; font-size:.91rem; font-weight:620; text-decoration:none; white-space:nowrap; }
.nav-btn[aria-current="page"] { background:#315956; border-color:#54756e; }
.nav-btn:hover,.shortcuts a:hover { background:#254b48; }
.nav-btn span { width:12px; color:#b7e6d2; text-align:center; }
.rail-divider { border-top:1px solid #41645f; margin:16px 3px 9px; }
.shortcuts a { justify-content:space-between; color:#cde5de; }
.account { margin-top:auto; padding-top:12px; border-top:1px solid #41645f; display:grid; align-items:center; grid-template-columns:30px minmax(0,1fr); gap:8px; }
.avatar { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:#355f56; color:#edfff3; font-weight:720; }
.account strong { overflow-wrap:anywhere; font-size:.87rem; }
.account button { grid-column:2; justify-self:start; border:1px solid #6d9087; border-radius:6px; background:transparent; color:#f5fcf8; padding:5px 7px; font-size:.78rem; }
.account button:hover { background:#315956; }
.surface { width:100%; max-width:1620px; padding:25px clamp(14px,3vw,39px); }
.heading { display:flex; align-items:end; justify-content:space-between; gap:13px; margin:0 0 21px; }
.heading p:not(.breadcrumb) { color:var(--muted); margin-top:8px; }
.breadcrumb { color:#49726a; font-size:.73rem; font-weight:760; letter-spacing:.085em; margin-bottom:8px; }
.breadcrumb span { color:#7a9592; padding:0 3px; }
.metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:18px; }
.metric { background:var(--paper); border:1px solid var(--line); border-radius:10px; padding:10px 13px; text-align:left; }
.metric:hover,.metric[aria-pressed="true"] { border-color:#6c9d8d; background:#f4fbf7; }
.metric span { display:block; color:var(--muted); font-size:.79rem; font-weight:690; }
.metric strong { display:block; font-size:1.95rem; line-height:1.15; letter-spacing:-.04em; }
.queue,.history-card { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:13px; }
.queue-header { display:flex; align-items:center; justify-content:space-between; gap:9px; margin-bottom:9px; }
.queue-actions { display:flex; align-items:center; flex-wrap:wrap; justify-content:end; gap:6px 12px; }
.view-switch { display:inline-flex; gap:2px; padding:2px; background:#e9efed; border-radius:7px; }
.view-switch button { border:1px solid transparent; padding:4px 8px; font-weight:690; background:transparent; border-radius:5px; font-size:.86rem; }
.view-switch button[aria-pressed=true] { background:white; border-color:#c7d8d2; }
.case-filters { display:grid; align-items:start; column-gap:7px; row-gap:8px; grid-template-columns:1.6fr .65fr 1fr 1.12fr .82fr 1fr; }
.queue-meta { display:flex; justify-content:space-between; align-items:center; gap:8px; padding-top:9px; padding-bottom:7px; color:var(--muted); font-size:.83rem; }
.lanes { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(170px,1fr); gap:8px; overflow-x:auto; padding:2px 2px 7px; }
.lane { background:#edf2f0; border:1px solid #e0e9e5; border-radius:9px; padding:8px; min-height:185px; }
.lane-head { display:flex; align-items:center; justify-content:space-between; gap:4px; padding:2px 1px 8px; }
.lane-count { color:#376658; border-radius:40px; background:#dbeae4; padding:2px 7px; min-width:21px; font-size:.77rem; text-align:center; font-weight:760; }
.lane-empty { padding:12px 5px; border-radius:7px; border:1px dashed #bed0ca; text-align:center; font-size:.78rem; color:var(--muted); }
.case-card { width:100%; text-align:left; display:grid; gap:7px; padding:9px; margin-bottom:7px; border:1px solid #d2e0db; border-radius:8px; background:white; box-shadow:0 1px 2px #29473509; }
.case-card:hover { border-color:#78a293; background:#fcfffd; }
.case-card strong { overflow-wrap:anywhere; color:var(--ink); line-height:1.24; }
.card-status,.badge { width:fit-content; border-radius:45px; padding:2px 7px; color:#155440; background:#e4f2e9; font-size:.71rem; font-weight:720; }
.card-meta,.card-foot { display:flex; justify-content:space-between; gap:4px; flex-wrap:wrap; color:var(--muted); font-size:.73rem; }
.card-action { color:#24433f; font-size:.79rem; overflow-wrap:anywhere; }
.card-docs { color:var(--orange); font-size:.75rem; font-weight:690; }
.review-count { color:var(--green); font-size:.75rem; font-weight:690; }
.overdue { color:var(--rose); font-weight:680; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
.queue table { min-width:720px; }
th,td { padding:8px 7px; border-bottom:1px solid var(--line); vertical-align:top; overflow-wrap:anywhere; }
th { color:var(--muted); font-size:.79rem; font-weight:740; }
td { font-size:.86rem; }
td .text-button { padding:0; text-align:left; }
.empty { text-align:center; padding:22px 8px; color:var(--muted); }
.history-card h2,.history-card p { margin-bottom:9px; }
.history-card p { color:var(--muted); }
.workflow-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:8px; }
.workflow-stage { padding:8px; border:1px solid var(--line); border-radius:8px; background:#f7faf7; }
.workflow-stage ul { color:var(--muted); margin:6px 0 0; padding-left:18px; }
.case-dialog { width:min(590px,100vw); height:100dvh; max-width:100vw; max-height:100dvh; padding:0; margin:0 0 0 auto; border:0; color:var(--ink); background:var(--bg); box-shadow:-12px 0 40px #152f2e32; }
.case-dialog::backdrop { background:#122e2b75; }
#case-form { height:100%; display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.dialog-head,.dialog-footer { padding:13px 16px; background:white; display:flex; align-items:center; justify-content:space-between; gap:9px; }
.dialog-head { border-bottom:1px solid var(--line); }
.dialog-head h2 { font-size:1.5rem; letter-spacing:-.035em; }
.close-btn { width:34px; height:34px; font-size:1.3rem; border:1px solid var(--line); border-radius:7px; background:white; }
.close-btn:hover { background:#edf6f0; }
.dialog-body { overflow:auto; padding:12px 16px 18px; }
.dialog-fields { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin:4px 0 0; padding:0; min-inline-size:0; border:0; }
.wide { grid-column:1 / -1; }
.case-legacy { border:1px solid var(--line); border-radius:7px; margin-bottom:8px; padding:7px 9px; color:var(--muted); background:#f5faf7; font-size:.8rem; overflow-wrap:anywhere; }
.dialog-footer { border-top:1px solid var(--line); justify-content:end; }
.case-section { margin:13px 0; padding:9px 11px; border:1px solid var(--line); border-radius:9px; background:white; }
.case-section summary { cursor:pointer; font-weight:750; }
.case-section[open] summary { margin-bottom:10px; }
.case-section summary span { margin-left:4px; color:var(--muted); font-size:.74rem; font-weight:580; }
.review-fields { margin:0; padding:0; border:0; min-inline-size:0; display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; }
.review-archive { display:flex; align-items:center; gap:7px; }
.review-archive input { width:16px; min-height:16px; margin:0; accent-color:var(--green); }
.review-guidance,.review-timestamp { margin:7px 0; color:var(--muted); font-size:.82rem; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.checklist { margin:15px 0; padding:9px 11px; border:1px solid var(--line); border-radius:9px; background:white; }
.checklist legend { font-weight:750; }
.checklist p { margin-bottom:6px; color:var(--muted); font-size:.82rem; }
.checklist label { grid-template-columns:minmax(0,1fr) minmax(118px,155px); align-items:center; gap:7px; padding:3px 0; }
.checklist select { min-height:32px; }
.checklist .checklist-summary { color:var(--green); font-weight:675; }
.intake-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.intake-metric { display:grid; gap:4px; align-content:start; padding:11px 13px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.intake-metric span { color:var(--muted); font-size:.8rem; font-weight:680; }
.intake-metric strong { font-size:1.75rem; line-height:1.1; letter-spacing:-.03em; }
.intake-table h2 { margin-bottom:7px; }
.intake-table table { min-width:470px; }
.intake-context { background:#e4f2e9; color:#155440; border-radius:8px; padding:10px 12px; font-size:.89rem; font-weight:660; }
.intake-handoff .intake-assignment { display:grid; grid-template-columns:1fr; margin-bottom:7px; max-width:315px; }
.intake-handoff #intake-documents { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; }
.intake-handoff .intake-doc-option { display:flex; align-items:center; justify-content:start; gap:7px; }
.intake-doc-option input { width:16px; min-height:16px; margin:0; accent-color:var(--green); flex:0 0 16px; }
.template-controls { display:flex; align-items:center; flex-wrap:wrap; gap:5px 9px; margin:7px 0; }
.template-controls .secondary { min-height:32px; padding-block:4px; }
.template-controls p { margin:0; }
#reminder-panel { margin-top:13px; background:white; border:1px solid var(--line); border-radius:9px; padding:10px; }
#reminder-panel p { color:var(--muted); }
#reminder-panel textarea { min-height:145px; resize:vertical; }
#load-latest { margin-bottom:9px; }
@media(max-width:1050px) { .case-filters,.metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .workspace { display:block; } .rail { position:static; height:auto; padding:10px 13px; flex-flow:row wrap; align-items:center; gap:7px 14px; } .rail .brand { margin:0; } .rail nav,.shortcuts { display:flex; flex-wrap:wrap; } .rail-divider { display:none; } .account { margin:0 0 0 auto; padding:0; border:0; display:flex; } .account .avatar { display:none; } .surface { padding-block:14px; } .nav-btn,.shortcuts a { width:auto; padding:5px; } }
@media(max-width:505px) { .heading { align-items:start; } .case-filters,.intake-summary { grid-template-columns:1fr 1fr; } .case-filters .search { grid-column:1/-1; } .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); } .lanes { grid-auto-flow:row; grid-auto-columns:1fr; } .lane { min-height:auto; } .dialog-fields,.review-fields { grid-template-columns:1fr; } }
@media(max-width:420px) { .intake-summary { gap:6px; } .intake-metric { padding:8px; } .intake-metric strong { font-size:1.4rem; } .intake-handoff #intake-documents { grid-template-columns:1fr; } }
.reminder-help { margin:6px 0 9px; }
.reminder-controls { display:grid; grid-template-columns:minmax(100px,.6fr) minmax(115px,1fr); gap:7px; }
.reminder-documents { margin:10px 0; border:1px solid var(--line); border-radius:7px; }
.reminder-document { display:flex; align-items:center; gap:7px; padding:2px 0; }
.reminder-document input { width:16px; min-height:16px; accent-color:var(--green); }
.reminder-output { display:grid; gap:7px; }
.reminder-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.reminder-status { margin-top:5px; font-size:.84rem; }
.attention-queue { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px; margin-bottom:13px; }
.attention-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.attention-head p { margin-top:4px; color:var(--muted); font-size:.83rem; }
.attention-head p:empty { display:none; }
.attention-filters { display:flex; align-items:end; gap:8px; }
.attention-filters label { flex:1 1 auto; }
.attention-filters select { min-height:33px; padding-block:4px; }
.attention-list { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; margin:0; gap:7px; }
.attention-list li { min-width:0; }
.attention-card { width:100%; height:100%; min-height:57px; text-align:left; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:4px 10px; padding:8px 10px; border:1px solid var(--line); border-left:3px solid #83a79a; border-radius:7px; background:#f7fbf9; }
.attention-card:hover { background:#edf7f1; border-color:#71a291; }
.attention-card[data-tone="critical"] { border-left-color:#ad655c; }
.attention-card[data-tone="review"] { border-left-color:#649087; }
.attention-card strong { grid-column:1; grid-row:1; font-size:.93rem; overflow-wrap:anywhere; }
.attention-action { grid-column:2; grid-row:1; text-align:right; font-size:.76rem; font-weight:730; color:var(--green); }
.attention-card[data-tone="critical"] .attention-action { color:var(--rose); }
.attention-meta { color:var(--muted); font-size:.75rem; overflow-wrap:anywhere; }
.attention-date { text-align:right; }
#attention-more { margin-top:10px; }
.rail { overflow:auto; }
@media(max-width:890px) { .attention-list { grid-template-columns:1fr; } }
@media(max-width:440px) { .attention-filters { width:100%; } .attention-card { grid-template-columns:1fr; gap:3px; } .attention-action { grid-column:1; grid-row:auto; text-align:left; } .attention-date { text-align:left; } }
