/* VisaFlow workspace theme with shared light and dark presentation. */
:root {
 --accent:#ffe600; --accent-hover:#f1d900; --accent-ink:#23232d;
 --bg:#f5f5f7; --surface:#fff; --surface-2:#efeff3; --surface-hover:#f7f7f9;
 --support-surface:#f8f8fa; --work-header:#eff0f5; --chart-teal:#318579; --chart-blue:#587bc4; --chart-violet:#8b65b3; --chart-gold:#ba832c;
 --sidebar-bg:#fff; --ink:#292934; --text:#41414f; --muted:#57576a; --quiet:#636376;
 --line:#e1e1e8; --line-strong:#c7c7d1; --focus:#3455a2; --link:#3455a2;
 --green-bg:#edf9f1; --green:#277449; --blue-bg:#eef4ff; --blue:#3a65a0;
 --purple-bg:#f4effc; --purple:#7953a5; --amber-bg:#fff6e5; --amber:#92601c;
 --red-bg:#fff0ed; --red:#b9473b; --selected:#fff9d8; --selected-line:#dbc555;
 --brand-metric:#fffdf0;
 --shadow:0 1px 2px #00000005,0 4px 16px #00000003;
 --overlay:#17203366; --modal-shadow:0 24px 80px #00000030; --ease-out:cubic-bezier(.23,1,.32,1);
 --ui-meta:13px; --ui-label:14px; --ui-section:16px; --ui-title:28px;
 --navy:var(--sidebar-bg); --navy2:var(--surface-2); --teal:var(--link); --teal-dark:var(--focus);
 --mint:var(--selected); --white:var(--surface);
 font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',system-ui,sans-serif;
 font-size:14px; color:var(--ink); color-scheme:light;
}
:root[data-theme=dark] {
 --accent:#f5dc43; --accent-hover:#ffe663; --accent-ink:#17191f;
 --bg:#17171e; --surface:#21212b; --surface-2:#2b2b37; --surface-hover:#272733;
 --support-surface:#252530; --work-header:#2c2d40; --chart-teal:#60bdab; --chart-blue:#86a8f1; --chart-violet:#bb96e4; --chart-gold:#e3b55c;
 --sidebar-bg:#1c1c25; --ink:#f4f4f7; --text:#ccccd6; --muted:#aeaebf; --quiet:#a1a1b2;
 --line:#383847; --line-strong:#515164; --focus:#aac0ff; --link:#b7c9f6;
 --green-bg:#20372d; --green:#9cdbb5; --blue-bg:#223249; --blue:#a0bff4;
 --purple-bg:#30273f; --purple:#cbb0ef; --amber-bg:#3a3020; --amber:#ebc783;
 --red-bg:#3c2829; --red:#f4aba6; --selected:#393426; --selected-line:#736436;
 --brand-metric:#2f2d26;
 --shadow:0 1px 2px #00000010,0 4px 16px #00000008;
 --overlay:#05070bc7; --modal-shadow:0 24px 80px #0006;
 color-scheme:dark;
}
body { background:var(--bg); color:var(--ink); font-size:var(--ui-label); }
.boot-state { max-width:580px; margin:70px auto; padding:35px; background:var(--surface); border:1px solid var(--line); border-radius:12px; text-align:center; }
.boot-symbol { display:inline-grid; place-items:center; width:42px; height:42px; background:var(--accent); color:var(--accent-ink); border-radius:10px; font-size:27px; font-weight:750; margin-bottom:20px; }
.boot-state h1 { font-size:22px; color:var(--ink); }
.boot-state p { font-size:12px; line-height:1.9; color:var(--muted); margin:12px 0 22px; }
::selection { background:var(--accent); color:var(--accent-ink); }
button,a { touch-action:manipulation; }
button { transition:background 120ms ease,border-color 120ms ease,color 120ms ease,transform 120ms var(--ease-out); }
button:active:not(:disabled):not(:focus-visible):not([data-slot="select-trigger"]):not(.language-switch) { transform:scale(.98); }
button:focus-visible,a:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
input:focus,select:focus,textarea:focus { outline:2px solid var(--focus); outline-offset:2px; border-color:var(--focus); }
.sidebar { width:224px; padding:25px 14px 0; background:var(--sidebar-bg); color:var(--text); border-right:1px solid var(--line); height:100vh; height:100dvh; min-height:0; overflow:hidden; }
.sidebar>.sidebar-top,.sidebar>.brand,.sidebar>.workspace,.sidebar>.nav-caption { flex-shrink:0; }
.sidebar-top { display:flex; align-items:flex-start; justify-content:space-between; gap:6px; }
.sidebar-close { display:none; flex:none; margin-top:2px; }

.brand { padding:0 8px 25px; gap:8px; font-size:21px; color:var(--ink); letter-spacing:-.025em; font-weight:740; }
.ey-brand { display:grid; flex:none; justify-items:start; gap:5px; }
.brand .ey-brand small { margin:0; font-size:9px; line-height:1.22; letter-spacing:0; font-weight:650; color:var(--ink); white-space:nowrap; }
.ey-wordmark { flex:none; width:35px; height:36px; color:var(--ink); }
.ey-wordmark-beam { fill:var(--accent); }
.brand-name { display:flex; align-items:center; min-height:43px; padding-inline-start:8px; border-inline-start:1px solid var(--line); line-height:1.12; }
.workspace { background:var(--surface); border:1px solid var(--line); border-radius:8px; gap:10px; padding:11px; margin-bottom:27px; }
.workspace-icon { flex:none; width:31px; height:31px; border-radius:7px; }
.workspace-icon svg { width:16px; height:16px; }
.workspace strong { font-size:12px; color:var(--ink); font-weight:650; }
.workspace small { font-size:10px; color:var(--muted); margin-top:4px; }
.workspace-lock { color:var(--quiet); }.workspace-lock svg { width:13px; }
.nav-caption { font-size:11px; font-weight:550; letter-spacing:.7px; padding-left:13px; color:var(--quiet); margin-bottom:10px; }
.sidebar #nav { flex:1 1 0; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; padding-bottom:8px; gap:4px; }
.sidebar #nav>* { flex-shrink:0; }
.nav-item { gap:11px; min-height:42px; padding:11px 13px; border-radius:6px; font-size:12px; font-weight:500; color:var(--muted); box-shadow:none; }
.nav-item.active { background:var(--selected); color:var(--ink); box-shadow:inset 0 0 0 1px var(--selected-line); font-weight:700; }
.nav-item .nav-badge { background:var(--surface-2); color:var(--muted); padding:2px 6px; border-radius:4px; font-size:10px; font-variant-numeric:tabular-nums; }
.nav-item.active .nav-badge { background:var(--accent); color:var(--accent-ink); }
.nav-item svg { width:17px; height:17px; }
.nav-separator { border-color:var(--line); margin:22px 0 14px; }
.sidebar-bottom { flex:0 0 auto; margin-top:10px; padding-bottom:env(safe-area-inset-bottom,0px); background:var(--sidebar-bg); }
.profile { min-height:74px; border-color:var(--line); padding:17px 7px; gap:11px; color:var(--text); }
.profile strong { color:var(--ink); font-size:12px; font-weight:650; }
.profile small { color:var(--muted); font-size:11px; }
.avatar { background:var(--surface-2); color:var(--text); font-size:12px; font-weight:650; border:1px solid var(--line); width:33px; height:33px; }
.avatar.small { width:30px; height:30px; font-size:11px; }
.main-shell {
 --workspace-gutter:clamp(16px,2vw,34px);
 margin-left:224px; width:calc(100% - 224px);
}
.topbar { height:66px; background:var(--surface); border-color:var(--line); padding-inline:var(--workspace-gutter); }
#breadcrumb { color:var(--muted); font-size:12px; }#breadcrumb span { color:var(--line-strong); padding:0 11px; }
.topbar-right { gap:17px; }.topbar-divider { height:18px; width:1px; background:var(--line); }
.demo-pill { color:var(--muted); font-size:11px; }.demo-pill i { background:var(--green); }
.icon-button { width:32px; height:32px; color:var(--muted); border-radius:6px; }
.notif-button { position:relative; }
.icon-badge { position:absolute; top:-2px; right:-4px; min-width:15px; height:15px; padding:0 4px; border-radius:999px; background:var(--red); color:#fff; font-size:9px; font-weight:700; line-height:15px; text-align:center; font-variant-numeric:tabular-nums; pointer-events:none; box-shadow:0 0 0 2px var(--surface); }
:root[data-theme=dark] .icon-badge { background:#e05a4f; color:#fff; }
.theme-toggle { display:inline-flex; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:6px; padding:6px 9px; min-height:32px; font-size:11px; }
.theme-toggle svg { width:15px; height:15px; }
#content {
 width:100%; max-width:none; margin:0;
 padding:clamp(20px,2vw,29px) var(--workspace-gutter) 32px;
 container:workspace / inline-size;
}
h1 { color:var(--ink); font-size:27px; font-weight:650; line-height:1.45; letter-spacing:-.65px; margin-bottom:7px; }
h2,h3 { color:var(--ink); }h3 { font-size:13px; }
.subline { color:var(--muted); font-size:12px; line-height:1.8; }
.subline strong { color:var(--ink); font-weight:600; }
.page-heading { margin-bottom:24px; gap:20px; }
.page-kicker { font-size:11px; color:var(--quiet); margin-bottom:7px; font-weight:500; }
.overview-heading { margin-bottom:24px; align-items:center; }.overview-heading h1 { font-size:29px; margin-bottom:6px; }
.button { min-height:36px; padding:9px 13px; border-radius:6px; background:var(--surface); border:1px solid var(--line-strong); color:var(--text); font-size:12px; box-shadow:0 1px 2px #00000003; font-weight:500; }
.button.primary { background:var(--accent); border-color:var(--accent); color:var(--accent-ink); font-weight:650; box-shadow:0 1px 2px #0000000a; }
.button.soft { background:var(--selected); color:var(--link); border-color:var(--selected-line); }
.button.quiet { background:transparent; color:var(--link); border:0; box-shadow:none; }
.button.danger { background:var(--red-bg); color:var(--red); border-color:transparent; }
.button svg { width:14px; height:14px; }
.metrics { gap:16px; margin-bottom:23px; }
.metric-card { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; height:auto; white-space:normal; padding:20px 21px 18px; border:1px solid var(--line); border-radius:9px; background:var(--surface); box-shadow:var(--shadow); text-align:left; }
.metric-label { color:var(--muted); font-size:12px; font-weight:500; }
.metric-label svg { color:var(--quiet); width:17px; height:17px; }
.metric-value,.metric-card:nth-child(n) .metric-value { color:var(--ink); font-size:33px; line-height:1.3; margin-top:14px; font-weight:600; letter-spacing:-1px; font-variant-numeric:tabular-nums; }
.metric-value>span { font-size:var(--ui-meta) !important; color:var(--muted) !important; font-weight:500; }
.metric-bottom { color:var(--quiet); font-size:10px; line-height:1.7; margin-top:10px; gap:6px; }
.metric-dot { width:4px; height:4px; background:var(--line-strong); }
.metric-card:nth-child(2) .metric-label svg { color:var(--blue); }.metric-card:nth-child(3) .metric-label svg { color:var(--purple); }.metric-card:nth-child(4) .metric-label svg { color:var(--green); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow); }
.card-head { padding:20px 21px 16px; align-items:center; }
.card-title { font-size:13px; font-weight:650; color:var(--ink); letter-spacing:-.15px; margin:0; gap:8px; }
.card-title .count { color:var(--muted); background:var(--surface-2); font-size:10px; padding:2px 6px; border-radius:4px; font-weight:500; }
.card-description { font-size:11px; margin-top:5px; }
.card-body { padding:0 21px 21px; }.card-head .button.quiet { font-size:11px; }
.workbench-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(285px,1fr); gap:22px; align-items:start; }
.insights-stack { display:flex; flex-direction:column; gap:19px; min-width:0; }
.due-list { padding:0 21px 5px; }.due-row { border-color:var(--line); padding:17px 0; gap:12px; }
.task-symbol { width:34px; height:34px; border-radius:7px; background:var(--surface-2); color:var(--text); }
.task-symbol.amber { background:var(--amber-bg); color:var(--amber); }.task-symbol.blue { background:var(--blue-bg); color:var(--blue); }.task-symbol.purple { background:var(--purple-bg); color:var(--purple); }
.due-row strong { color:var(--ink); font-size:12px; font-weight:550; margin-bottom:6px; }
.due-row small { color:var(--muted); font-size:10px; line-height:1.6; }.time-text { color:var(--quiet); font-size:10px; }
.card-footer { border-color:var(--line); padding:13px 21px; justify-content:space-between; font-size:10px; }
.card-footer a { color:var(--text); font-size:11px; }.card-footer svg { width:12px; height:12px; }
.live-label { display:inline-flex; align-items:center; gap:5px; color:var(--quiet); font-size:10px; }.live-label svg { width:13px; height:13px; }
.focus-card .card-head { padding-bottom:11px; }.focus-list { padding:0 17px; }
.focus-row { display:flex; align-items:center; width:100%; gap:10px; padding:10px 4px; background:transparent; border:0; border-bottom:1px solid var(--line); text-align:left; color:var(--text); font-size:12px; }
.focus-row:last-child { border-bottom:0; }.focus-row>strong { margin-left:auto; font-size:15px; color:var(--ink); font-weight:600; }
.focus-row>svg { width:13px; color:var(--quiet); }
.focus-icon { width:27px; height:27px; border-radius:6px; display:grid; place-items:center; }.focus-icon svg { width:14px; height:14px; }
.focus-icon.blue { background:var(--blue-bg); color:var(--blue); }.focus-icon.purple { background:var(--purple-bg); color:var(--purple); }.focus-icon.amber { background:var(--amber-bg); color:var(--amber); }
.insight-note { padding:11px 21px 14px; margin:0; color:var(--quiet); font-size:10px; line-height:1.6; }
.footprint-card .card-head { padding-bottom:8px; }.footprint-card .card-body { padding-bottom:18px; }
.progress-overview { margin-top:22px; }.progress-overview .card-head { padding-bottom:8px; }
.pipeline { padding:7px 21px 22px; gap:25px; }.pipeline-count { color:var(--ink); font-size:21px; font-weight:550; font-variant-numeric:tabular-nums; }
.pipeline-name { color:var(--muted); font-size:11px; }.pipeline-bar { height:4px; background:var(--surface-2); border-radius:3px; margin:10px 0; }.pipeline-bar i { background:#9dafa9; border-radius:3px; }
.pipeline-segment:nth-child(2) .pipeline-bar i { background:#a7b5cd; }.pipeline-segment:nth-child(3) .pipeline-bar i { background:#b8a9cb; }.pipeline-segment:nth-child(4) .pipeline-bar i { background:#c3b089; }.pipeline-segment:nth-child(5) .pipeline-bar i { background:#91aca7; }
.recent-card { margin-top:22px; }
thead { background:var(--surface-2); }th { color:var(--muted); font-size:11px; font-weight:500; border-color:var(--line); padding:13px 19px; }
td { color:var(--text); font-size:12px; padding:16px 19px; border-color:var(--line); }
.case-id { font-size:10px; color:var(--quiet); margin-top:5px; }.person-name { font-size:12px; color:var(--ink); font-weight:550; }
.person-avatar { width:31px; height:31px; border-radius:7px; background:var(--surface-2); color:var(--text); font-size:11px; font-weight:500; }
.person-name { max-width:220px; white-space:normal; overflow-wrap:anywhere; }
.case-heading>div:nth-child(2) { min-width:0; }
.case-heading h1,.case-heading .subline,.due-row strong,.due-row small,.library-person strong { overflow-wrap:anywhere; }
.case-heading>.actions { flex-shrink:0; }
.text-link { color:var(--link); }.muted,.tag { color:var(--muted); }.tag { font-size:10px; }
.badge { background:var(--surface-2); color:var(--muted); border:0; font-size:10px; border-radius:5px; padding:5px 8px; font-weight:500; }
.badge.green { background:var(--green-bg); color:var(--green); }.badge.blue { background:var(--blue-bg); color:var(--blue); }.badge.purple { background:var(--purple-bg); color:var(--purple); }.badge.amber { background:var(--amber-bg); color:var(--amber); }.badge.red { background:var(--red-bg); color:var(--red); }
.priority-high { color:var(--amber); font-size:10px; }.table-checkbox { accent-color:var(--focus); }
.toolbar { background:var(--surface); padding:17px 20px; border-color:var(--line); gap:12px; }
.searchbox { background:var(--surface); border-color:var(--line-strong); border-radius:6px; color:var(--quiet); padding:9px 11px; }
.searchbox input { background:transparent; color:var(--ink); font-size:12px; }.searchbox input::placeholder { color:var(--quiet); }
select,input[type=text],input[type=date],input[type=email],input[type=number],textarea { background:var(--surface); color:var(--ink); border-color:var(--line-strong); border-radius:6px; padding:9px 10px; min-height:37px; font-size:12px; }
input::placeholder,textarea::placeholder { color:var(--quiet); opacity:1; }
.table-footer { color:var(--muted); font-size:11px; }.table-footer .button { font-size:11px; }
.chip-tabs { border-color:var(--line); gap:25px; padding:0 22px; }.chip-tab { color:var(--muted); font-size:12px; padding:17px 0; }
.chip-tab.active { color:var(--ink); border-color:var(--focus); font-weight:600; }
.back-link { font-size:11px; color:var(--muted); margin-bottom:23px; }
.case-country-caption { font-size:12px; font-weight:400; color:var(--muted); margin-left:7px; }
.material-meta small.material-issue { color:var(--amber); }
.case-heading { margin-bottom:23px; }.case-heading h1 { font-size:24px; color:var(--ink); }.case-heading .person-avatar { background:var(--selected); color:var(--link); border-radius:10px; }
.stage-track { padding:23px 16px; }.stage:before { background:var(--line-strong); top:12px; }
.stage-dot { background:var(--surface-2); border-color:var(--line-strong); color:var(--quiet); width:25px; height:25px; }
.stage.done .stage-dot { background:var(--green-bg); color:var(--green); border-color:transparent; }.stage.done:before { background:var(--line-strong); }
.stage.current .stage-dot { background:var(--accent); color:var(--accent-ink); border-color:var(--accent); box-shadow:none; }
.stage-label { font-size:10px; color:var(--quiet); }.stage.current .stage-label { color:var(--ink); font-weight:600; }
.detail-layout { gap:21px; }.section-content { padding:23px; }.info-grid { gap:24px; }
.info-item label { font-size:11px; color:var(--muted); }.info-item div { font-size:12px; color:var(--text); }
.detail-next { background:var(--selected); border-color:var(--selected-line); border-radius:7px; }.detail-next strong { font-size:13px; color:var(--ink); }.detail-next p { font-size:12px; color:var(--text); }
.sidebar-info h3 { font-size:12px; }.mini-row { color:var(--muted); font-size:11px; line-height:1.7; }.mini-row b { color:var(--text); overflow-wrap:anywhere; text-align:right; min-width:0; }
.note-box { background:var(--surface-2); border-color:var(--line); color:var(--muted); font-size:11px; border-radius:6px; }.note-box.ai { background:var(--blue-bg); border-color:transparent; color:var(--blue); }
.file-icon { background:var(--surface-2); border-color:var(--line); color:var(--muted); border-radius:5px; }
.material-meta strong { color:var(--ink); font-size:12px; }.material-meta small { color:var(--muted); font-size:10px; }.material-row { gap:12px; }.material-row .actions { flex-wrap:wrap; }.material-row .button { font-size:10px; min-height:30px; }
.plan-block { background:var(--surface-2); border-color:var(--line); border-radius:8px; }.plan-block h3 { color:var(--ink); }.plan-block p { color:var(--text); font-size:12px; }
.task-card { border-color:var(--line); border-radius:7px; }.task-card strong { font-size:12px; }.task-card small { font-size:11px; color:var(--muted); }
.timeline li { border-color:var(--line-strong); }.timeline li:before { background:var(--quiet); }.timeline strong { color:var(--text); font-size:12px; }.timeline small { color:var(--quiet); font-size:10px; }
.empty-state { color:var(--muted); }.empty-state p { color:var(--text); font-size:13px; }.empty-state small { font-size:11px; }
.form-field label,.check-options label,.inline-check { color:var(--text); font-size:12px; }.form-field small { color:var(--muted); font-size:10px; }.form-field label .required { color:var(--red); }
.check-options input,.inline-check input { accent-color:var(--focus); }.form-error { color:var(--red); }
.modal { background:var(--surface); border:1px solid var(--line); border-radius:12px; box-shadow:var(--modal-shadow); }
.modal-head { padding:23px 25px; border-color:var(--line); }.modal-head h2 { font-size:18px; color:var(--ink); }
.modal-body { padding:23px 25px; }.modal-actions { background:var(--surface-2); border-color:var(--line); padding:17px 25px; }.modal-note { color:var(--muted); font-size:12px; }
.assistant-panel { background:var(--surface); border-color:var(--line-strong); border-radius:12px; box-shadow:var(--modal-shadow); }
.assistant-header { background:var(--surface); border-color:var(--line); padding:19px; color:var(--link); }.assistant-header strong { color:var(--ink); font-size:14px; }.assistant-header small { color:var(--muted); font-size:10px; }
.chat-bubble { background:var(--surface-2); color:var(--text); font-size:12px; border-radius:2px 9px 9px 9px; }.chat-bubble.user { background:var(--selected); color:var(--text); border-radius:9px 2px 9px 9px; }
.chat-chips button { background:var(--surface); color:var(--text); border-color:var(--line-strong); border-radius:6px; font-size:11px; }
.chat-disclaimer { color:var(--quiet); font-size:10px; }.chat-input { border-color:var(--line); }

.app-footer { margin:0 var(--workspace-gutter); max-width:none; border-top:1px solid var(--line); padding:18px 0 27px; color:var(--quiet); font-size:11px; line-height:1.8; gap:20px; }



.template-card p { color:var(--muted); font-size:12px; }.template-card .badge { margin-right:7px; }
.notice-banner { background:var(--surface-2); color:var(--muted); border-color:var(--line); font-size:11px; border-radius:7px; }
.toggle { background:var(--line-strong); }.toggle:checked { background:var(--focus); }.toggle:before { background:var(--surface); }
.expense-total { color:var(--ink); font-size:27px; }.alert-line { color:var(--amber); background:var(--amber-bg); border-radius:6px; font-size:11px; }
.mini-rule,.stage-date { color:var(--muted); font-size:10px; }.skip { background:var(--surface); color:var(--ink); }
.library-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:23px; }
.library-stats>div { border:1px solid var(--line); border-radius:9px; box-shadow:var(--shadow); padding:18px 20px; background:var(--surface); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.library-stats>div>span { color:var(--muted); display:flex; align-items:center; gap:9px; font-size:12px; }.library-stats svg { color:var(--quiet); width:17px; height:17px; }
.library-stats strong { color:var(--ink); font-size:27px; font-weight:600; }.library-stats small { color:var(--quiet); font-size:10px; margin-left:7px; font-weight:400; }
.library-layout { display:grid; grid-template-columns:218px minmax(0,1fr); gap:21px; align-items:start; }
.library-directory .card-head { padding:18px 15px; border-bottom:1px solid var(--line); }.library-people { padding:7px; max-height:730px; overflow:auto; scrollbar-width:thin; }
.library-person { background:transparent; border:0; border-left:2px solid transparent; border-radius:5px; height:auto; min-height:56px; padding:8px 9px; color:var(--text); display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:10px; width:100%; text-align:left; white-space:normal; }
.library-person.active { background:var(--selected); border-left-color:var(--focus); }.library-person-copy { min-width:0; display:grid; gap:2px; }.library-person strong { color:var(--ink); display:block; font-size:13px; line-height:18px; font-weight:600; }
.library-person small { display:block; color:var(--quiet); font-size:11px; line-height:15px; overflow-wrap:anywhere; }.library-person b { color:var(--muted); font-size:12px; font-weight:500; font-variant-numeric:tabular-nums; }
.library-person .person-avatar { width:28px; height:29px; }.library-person .person-avatar svg { width:14px; height:14px; }
.library-caption { margin-top:7px; font-size:11px; }.library-count { background:var(--surface-2); color:var(--muted); border-radius:5px; padding:5px 8px; font-size:11px; white-space:nowrap; }
.library-toolbar { gap:11px; padding:16px 18px; }.library-toolbar .searchbox { flex:1; min-width:220px; }.library-toolbar .searchbox input { width:100%; min-width:0; }
.library-toolbar .filter-group { gap:8px; }.library-toolbar select { max-width:150px; font-size:11px; }.library-toolbar .button { padding:8px; font-size:11px; }
.library-table { width:100%; table-layout:fixed; }.library-table th,.library-table td { padding:12px 14px; }
.library-file-name { display:flex; align-items:center; gap:11px; }.library-file-name strong { font-size:12px; font-weight:550; }.library-file-name .file-icon { width:30px; height:36px; }
.library-file-name .case-id { white-space:normal; overflow-wrap:anywhere; line-height:1.6; }.library-applicant-name { font-size:12px; font-weight:500; }
.library-file-actions { display:flex; flex-direction:column; align-items:flex-start; gap:7px; }.library-file-actions .button { font-size:10px; min-height:29px; padding:6px 8px; }
.library-no-file { color:var(--quiet); font-size:10px; }.library-footnote { color:var(--quiet); border-top:1px solid var(--line); padding:16px 18px; font-size:10px; line-height:1.8; display:flex; gap:8px; align-items:flex-start; }.library-footnote svg { width:14px; height:14px; margin-top:2px; }
@media(hover:hover) and (pointer:fine) {
 .nav-item:hover,.icon-button:hover,.theme-toggle:hover { background:var(--surface-2); color:var(--ink); }
 .nav-item.active:hover { background:var(--selected); }.button:hover { border-color:var(--line-strong); background:var(--surface-2); }
 .button.primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }.button.quiet:hover { color:var(--ink); background:var(--surface-2); }
 .metric-card:hover { background:var(--surface-hover); border-color:var(--line-strong); transform:none; }
 tbody tr:hover,.library-person:hover { background:var(--surface-hover); }.library-person.active:hover { background:var(--selected); }
 .focus-row:hover { color:var(--ink); background:var(--surface-hover); }.text-link:hover { color:var(--focus); }
}
@media(min-width:1600px) { .metric-card { padding:22px 24px; }.due-row { padding:20px 0; } }
@media(max-width:1200px) {
 .sidebar { width:210px; padding-left:12px; padding-right:12px; }.main-shell { margin-left:210px; width:calc(100% - 210px); }
 .workbench-grid { grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr); gap:18px; }.library-layout { grid-template-columns:200px minmax(0,1fr); gap:16px; }
 .metric-card { padding:18px 16px; }.metric-bottom { font-size:10px; }
}
@media(max-width:1000px) {
 .workbench-grid { grid-template-columns:1fr; }.insights-stack { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
}
@media(max-width:760px) {
 .sidebar { width:268px; transform:translateX(-100%); padding-top:20px; transition:transform 180ms var(--ease-out); z-index:45; }.sidebar.is-open { transform:translateX(0); box-shadow:20px 0 90px var(--overlay); }
 .sidebar-top .brand { padding:0 4px 20px; }
 .sidebar-close { display:inline-grid; min-width:40px; min-height:40px; }

 .main-shell { margin-left:0; width:100%; }.topbar { height:62px; }.topbar-right { gap:11px; }.topbar-divider { display:none; }
 .theme-toggle { width:32px; padding:7px; justify-content:center; }.theme-toggle>span { display:none; }
 #breadcrumb { font-size:10px; }#breadcrumb span { padding:0 7px; }
 h1,.overview-heading h1 { font-size:26px; }.page-heading { gap:16px; margin-bottom:20px; flex-wrap:wrap; }.page-heading .actions { justify-content:flex-start; }
 .overview-heading .actions { width:100%; }.page-kicker { font-size:10px; }.subline { font-size:11px; }
 .metrics { gap:12px; grid-template-columns:1fr 1fr; margin-bottom:19px; }.metric-card { padding:17px 15px; }.metric-label { font-size:11px; }.metric-value,.metric-card:nth-child(n) .metric-value { font-size:29px; margin-top:12px; }.metric-bottom { font-size:9px; }
 .insights-stack { grid-template-columns:1fr; }.workbench-grid { gap:18px; }.card-head { padding:18px 17px 14px; }.card-title { font-size:13px; }.card-description { font-size:10px; }
 .due-list { padding:0 17px 5px; }.due-row { gap:9px; }.due-row strong { font-size:11px; }.due-row small { font-size:9px; }.time-text { font-size:9px; }
 .card-footer { padding:13px 17px; font-size:9px; }.card-footer a { font-size:10px; }.card-body { padding:0 17px 18px; }
 .pipeline { gap:12px; padding:7px 17px 19px; }.pipeline-name { font-size:9px; }.pipeline-count { font-size:19px; }
 .progress-overview,.recent-card { margin-top:19px; }.table-footer { gap:10px; }
 .app-footer { padding:17px 0 28px; flex-direction:column; gap:6px; }
 .assistant-panel { top:74px; right:12px; bottom:12px; }
 .stage-label { font-size:9px; }.section-content { padding:19px; }.chip-tabs { gap:21px; padding:0 19px; }.chip-tab { font-size:11px; }
 .button { font-size:11px; }.modal-head,.modal-body { padding:20px; }.modal-actions { padding:16px 20px; }
 .library-stats { gap:9px; margin-bottom:18px; }.library-stats>div { display:block; padding:15px 11px; }.library-stats>div>span { font-size:10px; gap:5px; white-space:nowrap; }
 .library-stats svg { width:13px; height:13px; }.library-stats strong { display:block; margin-top:10px; font-size:25px; }.library-stats small { font-size:9px; }
 .library-toolbar .searchbox { min-width:0; width:100%; flex-basis:100%; }.library-toolbar .filter-group { flex-wrap:wrap; }.library-caption { font-size:10px; }
 input[type=text],input[type=date],input[type=email],input[type=number],input[type=search],select,textarea { font-size:16px; }
 .searchbox input { font-size:16px; }.filter-group>select { font-size:14px; }.library-toolbar select { font-size:14px; }
 .case-heading h1 { font-size:21px; }
}
@media(max-height:620px) {
 .sidebar { padding-top:16px; }.sidebar .brand { padding-bottom:18px; }.sidebar .workspace { margin-bottom:18px; padding:9px; }
 .sidebar>.nav-caption { margin-bottom:8px; }.sidebar #nav .nav-separator { margin:12px 0 8px; }.sidebar-bottom { margin-top:8px; }.sidebar .profile { min-height:62px; padding:12px 7px; }
}
@media(max-height:420px) { .sidebar .workspace { display:none; }.sidebar .brand { padding-bottom:14px; } }
.service-switcher { display:flex; width:max-content; max-width:100%; padding:4px; gap:3px; margin:0 0 26px; background:var(--surface-2); border:1px solid var(--line); border-radius:9px; }
.service-option { padding:9px 17px; border:1px solid transparent; background:transparent; color:var(--muted); border-radius:6px; font-size:12px; font-weight:600; white-space:nowrap; cursor:pointer; }
.service-option.selected { color:var(--text); background:var(--surface); border-color:var(--line); box-shadow:var(--shadow); }
.service-option:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.lifecycle-caption { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:0 0 20px; color:var(--muted); font-size:12px; }
.linked-case { border:1px solid var(--line); padding:16px; border-radius:8px; margin-bottom:20px; background:var(--surface-2); }
.linked-case>div { display:flex; justify-content:space-between; gap:12px; margin-bottom:7px; }.linked-case a { color:var(--link); font-weight:600; }.linked-case small { color:var(--muted); }
.branch-panel { background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:20px; margin:20px 0; }
.branch-panel>p { color:var(--muted); font-size:12px; line-height:1.7; }
.proof-slot { border:1px dashed var(--line-strong); padding:15px; border-radius:7px; margin:17px 0; display:flex; justify-content:space-between; align-items:center; gap:12px; }.proof-slot small { display:block; color:var(--muted); margin-top:7px; word-break:break-word; }
.approval-step { display:flex; gap:12px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }.approval-step>div { flex:1; min-width:0; }.approval-step small { display:block; color:var(--muted); margin-top:6px; word-break:break-word; }.approval-number { width:28px; height:28px; border-radius:50%; display:grid; place-items:center; background:var(--surface); border:1px solid var(--line); color:var(--text); }
.lifecycle-templates { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:20px 0; }
.lifecycle-template { padding:24px; display:flex; flex-direction:column; }.lifecycle-template h2 { font-size:22px; margin:23px 0 12px; }.lifecycle-template>p { color:var(--muted); font-size:13px; line-height:1.9; }.template-top { display:flex; align-items:center; justify-content:space-between; gap:8px; }.template-symbol { display:grid; place-items:center; width:42px; height:42px; border:1px solid var(--line); border-radius:10px; color:var(--text); }.template-detail { margin:18px 0 25px; padding-top:18px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; line-height:1.8; }.template-countries { display:flex; flex-wrap:wrap; gap:9px; margin-top:auto; }
@supports (grid-template-rows:subgrid) {
 @media(min-width:1101px) {
  .lifecycle-templates { row-gap:0; }
  .lifecycle-template { display:grid; grid-row:span 5; grid-template-rows:subgrid; }
  .template-countries { margin-top:0; align-self:end; }
 }
}
@media(max-width:1100px) { .lifecycle-templates { grid-template-columns:1fr; }.lifecycle-template { padding:22px; }.template-detail { margin:12px 0 18px; } }
@media(max-width:760px) { .service-switcher { width:100%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:20px; }.service-option { padding:9px 3px; font-size:11px; }.proof-slot { align-items:flex-start; flex-direction:column; }.branch-panel { padding:15px; }.approval-step { flex-wrap:wrap; }.lifecycle-caption { gap:8px; } }
.overview-actions { align-items:center; gap:10px; }
.overview-scope { display:inline-flex; align-items:center; gap:8px; padding:0 0 0 11px; margin:0; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); color:var(--muted); font-size:.86rem; white-space:nowrap; }
.overview-scope:focus-within { border-color:var(--focus); }
.page-heading > .actions { flex-shrink:0; }
@media(max-width:1100px) { .page-heading { flex-wrap:wrap; }.page-heading > .actions { max-width:100%; } }
@media(max-width:760px) { .page-heading > .actions { width:100%; justify-content:flex-start; } }
.overview-scope .choice-trigger { width:160px; max-width:none; min-height:37px; padding:7px 27px 7px 10px; border:0; border-inline-start:1px solid var(--line); color:var(--text); font-size:.93rem; background:transparent; border-radius:0 7px 7px 0; }
.overview-scope .choice-trigger:focus { outline:none; }
.overview-workbench { grid-template-columns:minmax(0,1.65fr) minmax(0,1fr); }
.overview-insights { display:flex; flex-direction:column; min-width:0; }
.overview-charts {
 --distribution-color-0:var(--chart-teal); --distribution-color-1:var(--chart-blue);
 --distribution-color-2:var(--chart-violet); --distribution-color-3:var(--chart-gold);
 display:grid; align-content:start; gap:0;
}
.distribution-chart-country { --distribution-color-0:var(--chart-blue); --distribution-color-1:var(--chart-gold); --distribution-color-2:var(--chart-teal); }
.distribution-chart { padding-block:8px 14px; }
.distribution-chart + .distribution-chart { border-top:1px solid var(--line); padding-block:14px 0; }
.distribution-chart h3 { margin:0 0 10px; font-size:.98rem; font-weight:650; }
.distribution-chart-body {
 display:grid; grid-template-columns:clamp(76px,23cqi,116px) minmax(0,1fr);
 align-items:center; gap:clamp(10px,3cqi,18px);
}
.distribution-ring {
 aspect-ratio:1; display:grid; place-items:center; border-radius:50%;
 position:relative;
}
.distribution-ring-label {
 position:absolute; inset:0; margin:auto;
 width:65%; height:65%; display:flex; flex-direction:column; align-items:center; justify-content:center;
 border-radius:50%; background:var(--surface); color:var(--ink); line-height:1.15;
}
.distribution-ring strong { font-size:1.55rem; font-weight:650; font-variant-numeric:tabular-nums; }
.distribution-ring small { margin-top:3px; font-size:.79rem; color:var(--muted); }
.distribution-legend { display:grid; gap:5px; margin:0; padding:0; list-style:none; }
.distribution-legend li {
 display:grid; grid-template-columns:minmax(0,1fr) auto minmax(4ch,auto); align-items:center; gap:8px;
 color:var(--text); font-size:.86rem; line-height:1.35; font-variant-numeric:tabular-nums;
}
.distribution-key { display:flex; align-items:baseline; gap:6px; overflow-wrap:anywhere; }
.distribution-key i { flex:0 0 7px; height:7px; border-radius:50%; }
.distribution-legend strong { color:var(--ink); font-weight:650; white-space:nowrap; }
.distribution-legend small,.distribution-share { color:var(--muted); font-size:.79rem; font-weight:400; }
.distribution-share { text-align:right; white-space:nowrap; }
@container workspace (min-width:841px) {
 .overview-workbench { align-items:stretch; }
 .overview-workbench .queue-card,.overview-workbench .due-list { display:flex; flex-direction:column; }
 .overview-workbench .due-list { flex:1; }
 .overview-workbench .task-list-head { flex:none; }
 .overview-workbench .due-list:has(> .due-row:nth-last-child(4)) > .due-row { flex:1 0 auto; }
}
@container workspace (max-width:840px) { .overview-workbench { grid-template-columns:minmax(0,1fr); } }
@media(max-width:760px) { .overview-heading .overview-actions { width:100%; gap:9px; }.overview-scope { width:100%; margin:0 0 3px; justify-content:space-between; }.overview-scope .choice-trigger { font-size:16px; width:min(180px,65%); min-height:40px; }.distribution-chart-body { grid-template-columns:76px minmax(0,1fr); } }

/* Navigation, active work and supporting context share the selected theme. */
.workspace { margin-bottom:23px; background:var(--support-surface); }
.workspace-icon { background:var(--surface-2); color:var(--ink); }
.workspace strong,.nav-item,.profile strong { font-size:13px; }
.nav-item { min-height:44px; border-radius:6px; }
.nav-item.active .nav-badge { background:var(--surface); color:var(--ink); }
.topbar { height:58px; }
#breadcrumb { color:var(--text); font-size:.93rem; }
.theme-toggle { min-height:34px; }
#content:focus { outline:none; }
#content.skip-focus:focus-visible h1 { text-decoration:underline 2px var(--focus); text-underline-offset:6px; }
.skip:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }

.page-heading { margin-bottom:22px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.page-heading > div:first-child { min-width:0; }
.page-heading h1 { margin:0 0 7px; font-size:var(--ui-title); font-weight:720; line-height:1.24; letter-spacing:-.025em; }
.page-heading .subline { max-width:68ch; font-size:var(--ui-label); }
.page-heading .actions,.case-heading .actions { gap:9px; }
.button { min-height:39px; border-radius:8px; font-size:.93rem; }
.page-heading .button.primary,.case-heading .button.primary,.modal-actions .button.primary { min-height:41px; padding-inline:16px; font-weight:700; }

.overview-heading {
 position:relative;
 isolation:isolate;
 overflow:clip;
 display:grid;
 grid-template-columns:minmax(0,1fr);
 align-content:center;
 gap:14px;
 padding:20px 26px 20px;
 margin-bottom:16px;
 border:1px solid var(--line);
 border-radius:8px;
 background:var(--surface);
}
.overview-heading::before {
 content:"";
 position:absolute;
 inset:0;
 z-index:-1;
 pointer-events:none;
 background:linear-gradient(90deg,
  var(--surface) 0%,
  color-mix(in srgb,var(--surface) 97%,transparent) 18%,
  color-mix(in srgb,var(--surface) 84%,transparent) 35%,
  color-mix(in srgb,var(--surface) 52%,transparent) 50%,
  color-mix(in srgb,var(--surface) 15%,transparent) 68%,
  transparent 91%);
}
.overview-heading::after {
 content:"";
 position:absolute;
 pointer-events:none;
 inset-block-start:0;
 inset-inline-start:27px;
 width:54px;
 height:3px;
 background:var(--accent);
}
.overview-visual {
 position:absolute;
 inset:0;
 z-index:-2;
 width:100%;
 height:100%;
 object-fit:cover;
 object-position:right 48%;
 pointer-events:none;
}
:root[data-theme=dark] .overview-visual { opacity:.8; }
.overview-heading h1 { font-size:2.65rem; font-weight:730; line-height:1.15; }
.overview-heading .overview-actions { justify-content:flex-start; }
.overview-heading .overview-actions .button { border-radius:6px; }
.overview-heading .overview-scope { border-radius:6px; }
.overview-heading .overview-scope .choice-trigger { min-height:37px; border-radius:0 5px 5px 0; }

@container workspace (min-width:841px) { .overview-heading { min-height:max(182px,14cqi); } }
@media(max-width:760px) {
 .overview-heading.page-heading { gap:14px; padding:20px 16px 16px; margin-bottom:14px; }
 .overview-heading h1 { font-size:2rem; }
 .overview-visual { height:148px; }
 .overview-heading::before {
  background:
   linear-gradient(180deg,transparent 84px,color-mix(in srgb,var(--surface) 78%,transparent) 122px,var(--surface) 148px),
   linear-gradient(90deg,var(--surface) 0%,color-mix(in srgb,var(--surface) 97%,transparent) 34%,color-mix(in srgb,var(--surface) 91%,transparent) 58%,color-mix(in srgb,var(--surface) 58%,transparent) 80%,color-mix(in srgb,var(--surface) 18%,transparent) 100%);
 }
 .overview-heading::after { inset-inline-start:16px; width:39px; }
}
.button.quiet { font-weight:600; }

.card { border-radius:10px; box-shadow:none; }
.card-title { font-size:var(--ui-section); line-height:1.4; overflow-wrap:anywhere; }
.card-title .count { font-size:.79rem; border-radius:999px; }
.card-head .subline,.card-description { font-size:.86rem; }
.card-head .button.quiet { font-size:.86rem; white-space:nowrap; }
.tag,.card-footer { font-size:.82rem; }

.metrics,.library-stats {
 gap:1px;
 background:var(--line);
 border:1px solid var(--line);
 border-radius:12px;
 overflow:hidden;
}
.metric-card,.library-stats > div { min-width:0; padding:14px 18px; border:0; border-radius:0; box-shadow:none; }
.metric-card .metric-label { gap:6px; margin-bottom:5px; color:var(--text); font-size:.9rem; }
.metric-label svg { flex-shrink:0; }
.metric-card:nth-child(n) .metric-value { margin-top:0; font-size:2.25rem; font-weight:680; }
.metric-card:focus-visible { z-index:1; outline-offset:-4px; }
.metric-bottom { margin-top:4px; font-size:.79rem; }
.library-stats > div > span { font-size:.93rem; }
.library-stats strong { font-variant-numeric:tabular-nums; }

.overview-workbench .card-head { min-height:56px; padding-block:11px; }
.overview-workbench .card-title { line-height:24px; }
.queue-card .card-title { font-size:1.286rem; }
.queue-card .card-title .count { line-height:1.4; }
.queue-card .card-head .button.quiet,.recent-card .card-head .button.quiet { min-height:34px; padding:6px 10px; color:var(--link); }
.due-list { --task-icon-width:32px; --task-column-gap:10px; --task-date:106px; --task-action:72px; border-top:1px solid var(--line); padding:0; }
.task-list-head,.due-row { display:grid; align-items:center; gap:var(--task-column-gap); padding-inline:20px; }
.task-list-head {
 grid-template-columns:minmax(0,1fr) var(--task-date) var(--task-action);
 min-height:35px;
 border-bottom:1px solid var(--line);
 background:var(--support-surface);
 color:var(--muted);
 font-size:var(--ui-meta);
 font-weight:600;
}
.task-list-head > :first-child { padding-inline-start:calc(var(--task-icon-width) + var(--task-column-gap)); }
.task-list-head > :last-child { padding-inline-end:5px; text-align:right; }
.due-row { grid-template-columns:var(--task-icon-width) minmax(0,1fr) var(--task-date) var(--task-action); min-height:60px; padding-block:8px; }
.task-subject { min-width:0; }
.due-row .task-symbol { width:var(--task-icon-width); height:var(--task-icon-width); }
.due-row strong { margin-bottom:2px; font-size:var(--ui-label); font-weight:680; }
.due-row small,.time-text { font-size:var(--ui-meta); }
.time-text,.case-updated { white-space:nowrap; font-variant-numeric:tabular-nums; }
.task-action,.case-view {
 display:inline-flex;
 align-items:center;
 justify-content:flex-end;
 gap:5px;
 min-height:34px;
 padding:4px 5px;
 border-radius:6px;
 color:var(--link);
 font-size:var(--ui-meta);
 font-weight:650;
 white-space:nowrap;
}
.task-action .icon,.case-view .icon { width:14px; height:14px; }
.overview-distribution .card-head { padding-inline:20px; }
.overview-summary-title,.overview-metrics .metric-bottom {
 position:absolute;
 width:1px;
 height:1px;
 padding:0;
 margin:0;
 overflow:hidden;
 clip-path:inset(50%);
}
.overview-metrics .metrics {
 margin-bottom:20px;
 border-radius:8px;
}
.overview-metrics .metric-card { min-height:91px; padding:12px 20px; }
.overview-metrics .metric-label { font-weight:620; }
.overview-metrics .metric-card[data-filter=open] { background:var(--brand-metric); }
.overview-metrics .metric-card:nth-child(n) .metric-value { font-size:2.18rem; line-height:1.15; letter-spacing:-.03em; }
@media (max-width:760px) {
 .overview-metrics .metrics { margin-bottom:18px; }
 .overview-metrics .metric-card { min-height:79px; padding:10px 13px; }
 .overview-metrics .metric-card:nth-child(n) .metric-value { font-size:1.9rem; }
}
.overview-charts { padding-inline:20px; padding-bottom:16px; }
.overview-distribution { container-type:inline-size; }
@container workspace (max-width:840px) {
 @container (min-width:570px) {
  .overview-charts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .distribution-chart { padding-block:8px 0; }
  .distribution-chart + .distribution-chart { padding:8px 0 0 16px; border-top:0; border-inline-start:1px solid var(--line); }
 }
}
@container (max-width:340px) {
 .overview-charts { padding-inline:14px; }
 .distribution-chart-body { grid-template-columns:72px minmax(0,1fr); gap:10px; }
}
.notice-banner { padding:10px 14px; border-radius:8px; }
.analytics-grid {
 display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:16px;
}
.analytics-panel { min-width:0; container:report-panel / inline-size; }
.analytics-panel .card-head { padding:16px 18px 10px; min-height:0; }
.analytics-panel .card-body { padding:0 18px 12px; }
.analytics-panel .panel-meta { white-space:nowrap; font-variant-numeric:tabular-nums; }
.analytics-panel .link-row { min-height:42px; padding:8px 0; font-variant-numeric:tabular-nums; }
.report-plot { width:100%; height:232px; min-width:0; aspect-ratio:auto; }
.report-stage-chart .recharts-bar-rectangle { cursor:pointer; }
.report-legend { list-style:none; margin:0; padding:0; }
.stage-legend { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:2px 4px 0 26px; }
button.report-legend-button {
 min-width:0; color:var(--ink); background:transparent; border:1px solid transparent;
 text-align:start; white-space:normal; font-size:var(--ui-meta); font-variant-numeric:tabular-nums;
}
button.report-legend-button:hover,button.report-follow-up:hover { background:var(--surface-2); }
button.report-legend-button:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.stage-legend .report-legend-button {
 display:grid; grid-template-columns:auto auto; justify-content:center; align-content:start; align-items:start;
 gap:4px 6px; width:100%; height:100%; min-height:46px; padding:6px 2px;
}
.stage-legend .report-legend-name { grid-column:1 / -1; text-align:center; }
.stage-legend .report-count { justify-self:end; }
.report-legend-name { min-width:0; font-weight:630; line-height:1.3; overflow-wrap:anywhere; }
.report-legend-name > i { display:inline-block; vertical-align:.1em; width:7px; height:7px; margin-inline-end:5px; border-radius:50%; }
.report-share { color:var(--muted); }
.country-chart-panel > .card-body { display:grid; flex:1; align-items:center; }
.report-country-chart {
 display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.05fr); align-items:center;
 gap:clamp(12px,4cqi,30px); min-width:0;
}
.report-donut { position:relative; justify-self:center; width:min(100%,220px); aspect-ratio:1; }
.report-pie-plot { width:100%; height:100%; aspect-ratio:1; }
.report-pie-plot .recharts-pie-sector { cursor:pointer; }
.report-donut-total {
 position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:3px; pointer-events:none;
 font-size:var(--ui-meta); line-height:1.1; color:var(--muted);
}
.report-donut-total strong { color:var(--ink); font-size:2.25rem; font-weight:700; font-variant-numeric:tabular-nums; }
.country-legend .report-legend-button {
 display:grid; width:100%; height:auto; min-height:42px; padding:6px;
 grid-template-columns:minmax(0,1fr) auto 4ch 13px; gap:6px; align-items:center;
}
.country-legend .report-share { text-align:end; }
.country-legend li + li { border-top:1px solid var(--line); }
.country-legend svg,.report-follow-up svg { color:var(--link); width:14px; height:14px; }
.report-chart-tooltip {
 display:grid; gap:4px; padding:8px 10px; border:1px solid var(--line); border-radius:7px;
 background:var(--surface); color:var(--ink); box-shadow:0 4px 14px #0002; font-size:var(--ui-meta);
}
.report-chart-tooltip > span { color:var(--muted); font-variant-numeric:tabular-nums; }
button.report-follow-up {
 display:flex; justify-content:space-between; width:100%; gap:8px; height:auto; min-height:42px; padding:8px 0;
 border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; color:var(--link); font-size:var(--ui-meta);
}
@container workspace (max-width:800px) {
 .analytics-grid { grid-template-columns:minmax(0,1fr); }
}
@container report-panel (max-width:420px) {
 .analytics-panel > .card-body { padding-inline:12px; }
 .report-plot { height:194px; }
 .stage-legend .report-legend-button { font-size:.8rem; }
 .stage-legend .report-legend-name > i { display:none; }
 .report-country-chart { grid-template-columns:minmax(0,1fr); gap:8px; }
 .report-donut { width:154px; margin-block:1px 2px; }
 .report-donut-total strong { font-size:1.9rem; }
}
.task-page-grid {
 display:grid; grid-template-columns:clamp(170px,17cqi,235px) minmax(0,1fr); align-items:start; gap:16px;
}
.task-filters .card-head,.task-queue .card-head { padding:12px 16px; min-height:52px; }
.task-filter-list { display:grid; gap:3px; padding:0 7px 8px; }
button.task-filter-button {
 display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:42px; height:auto;
 border:1px solid transparent; padding:6px 9px; border-radius:6px; background:transparent;
 color:var(--text); text-align:start; white-space:normal; font-size:var(--ui-meta);
}
button.task-filter-button:hover { background:var(--surface-2); }
button.task-filter-button[aria-pressed=true] { background:var(--selected); border-color:var(--selected-line); color:var(--ink); font-weight:650; }
.task-filter-button strong { font-variant-numeric:tabular-nums; }
.task-order,.task-date-note { font-size:var(--ui-meta); }
.task-date-note { display:flex; align-items:center; gap:6px; color:var(--muted); }
.task-date-note .icon { width:14px; height:14px; }
.task-queue { container:task-queue / inline-size; }
.task-worklist .task-list-head,.task-worklist .due-row {
 grid-template-columns:var(--task-icon-width) minmax(0,3fr) minmax(0,1.45fr) minmax(5.5rem,1fr) var(--task-action);
}
.task-worklist .task-list-head > :first-child { grid-column:1 / 3; }
.task-worklist .due-row { min-height:57px; }
.task-worklist .task-stage .badge { max-width:100%; white-space:normal; line-height:1.3; }
.task-worklist .time-text { white-space:nowrap; }
@container workspace (max-width:930px) {
 .task-page-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .task-filter-list { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
}
@container workspace (max-width:490px) {
 .task-filter-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .task-queue .task-order { display:none; }
}
@container task-queue (min-width:1160px) {
 .task-worklist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .task-worklist .due-row { border-bottom:1px solid var(--line); }
 .task-worklist .due-row:nth-child(2n of .due-row) { border-inline-start:1px solid var(--line); }
}
@container task-queue (max-width:710px) or (min-width:1160px) {
 .task-worklist .task-list-head { display:none; }
 .task-worklist .due-row {
  grid-template-columns:30px minmax(0,1fr) auto; grid-template-rows:auto auto;
  grid-template-areas:"icon subject date" "icon status action";
  column-gap:8px; row-gap:4px; padding:8px 12px;
 }
 .task-worklist .task-symbol { grid-area:icon; width:30px; height:30px; align-self:start; }
 .task-worklist .task-subject { grid-area:subject; }
 .task-worklist .task-stage { grid-area:status; }
 .task-worklist .time-text { grid-area:date; align-self:start; text-align:end; }
 .task-worklist .task-action { grid-area:action; min-height:36px; }
}
@media (pointer:coarse) {
 button.task-filter-button,.task-worklist .task-action { min-height:44px; }
}
.demo-pill[data-ai-mode=offline] i { background:var(--quiet); }

.toolbar { flex-wrap:wrap; }
.searchbox { border-radius:8px; }
.searchbox input { font-size:.93rem; }
thead { background:var(--surface-2); }
th { color:var(--text); font-size:.86rem; font-weight:650; }
td { font-size:.93rem; }
.person-name,.library-file-name strong { color:var(--ink); font-size:1rem; font-weight:650; }
.person > div,.library-file-name > div,.library-files .card-head > div { min-width:0; }
.library-file-name strong,.case-id { overflow-wrap:anywhere; }
.table-wrap:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; }
.library-directory { --surface:var(--support-surface); }
.library-layout > .card > .card-head { align-items:flex-start; padding-block-start:18px; }
.library-table th { padding-block:13px; }
.library-table th:first-child { width:29%; padding-inline-start:55px; }
.library-table th:nth-child(2) { width:22%; }
.library-table th:last-child { width:13%; }
.library-table td { font-size:.86rem; }
.library-files { container:material-files / inline-size; }
.library-table :is(th,td) { white-space:normal; }
.library-case-meta { display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; color:var(--muted); font-size:var(--ui-meta); }
.library-row-meta,.library-compact-applicant { display:none; }
@container workspace (max-width:820px) {
 .library-layout { grid-template-columns:minmax(0,1fr); gap:14px; }
 .library-people { display:flex; gap:6px; overflow-x:auto; max-height:none; }
 .library-person { min-width:158px; width:auto; flex:none; }
 .library-directory .card-head { padding-block:10px; }
}
@container material-files (max-width:860px) {
 .library-toolbar { align-items:stretch; }
 .library-toolbar .searchbox { flex:1 0 100%; }
 .library-toolbar .filter-group { display:flex; flex-wrap:wrap; }
 .library-toolbar .choice-trigger { flex:0 1 auto; }
}
@container material-files (max-width:740px) {
 .library-table :is(th,td):is(:nth-child(3),:nth-child(5)) { display:none; }
 .library-table th:first-child { width:auto; }
 .library-table th:nth-child(2) { width:27%; }
 .library-table th:nth-child(4) { width:20%; }
 .library-table th:last-child { width:19%; }
 .library-row-meta { display:block; margin-top:3px; color:var(--muted); font-size:var(--ui-meta); }
}
@container material-files (max-width:510px) {
 .library-table :is(thead,td:nth-child(2)) { display:none; }
 .library-table,.library-table tbody { display:block; }
 .library-table tr { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:10px 14px 7px; }
 .library-table tr + tr { border-block-start:1px solid var(--line); }
 .library-table td { padding:0; border:0; }
 .library-table td:first-child { grid-column:1 / -1; }
 .library-table td:last-child { justify-self:end; }
 .library-table .library-compact-applicant { display:block; margin-top:3px; color:var(--muted); font-size:var(--ui-meta); }
 .library-table .library-file-actions { flex-direction:row; gap:4px; }
 .library-table .library-file-actions .button { min-height:44px; }
}
.library-file-actions .button { min-height:34px; font-size:.82rem; }
.table-footer { flex-wrap:wrap; }
.case-list .toolbar,.library-toolbar { background:var(--support-surface); }
.case-list .toolbar > .filter-group { flex:1; }
.case-list .searchbox { flex:1 1 240px; max-width:385px; }
.case-list .searchbox input { min-width:0; width:100%; }
.case-table { min-width:820px; }
.case-table th,.case-table td { padding-inline:12px; }
.case-table th { padding-block:11px; white-space:normal; line-height:1.35; }
.case-table th:first-child:not(.case-select),.case-table .case-select + th { padding-inline-start:53px; }
.case-table td { padding-block:11px; }
.case-table th:last-child,.case-table td:last-child { text-align:right; padding-right:18px; white-space:nowrap; }
.case-table th:last-child { padding-inline-end:23px; }
.case-table .case-select { width:44px; padding-inline:0; text-align:center; }
.case-table .case-id { white-space:nowrap; }
.case-visa { font-size:var(--ui-meta); white-space:normal; line-height:1.4; }
.case-stage-cell .badge,.case-current-state .badge { font-size:var(--ui-meta); font-weight:580; }
.badge i { flex-shrink:0; }
.case-table tbody tr:has(.case-check:checked) { background:var(--selected); }
.case-table .person-avatar { border-radius:50%; }
html[lang="en"] .case-table th,html[lang="en"] .case-table td { padding-inline:10px; }
html[lang="en"] .case-table th:first-child:not(.case-select),html[lang="en"] .case-table .case-select + th { padding-inline-start:51px; }
html[lang="en"] .case-table th:last-child,html[lang="en"] .case-table td:last-child { padding-inline-end:14px; }
html[lang="en"] .case-table td:not(.case-select):not(.case-stage-cell):not(:last-child) { white-space:normal; line-height:1.4; }
html[lang="en"] .case-table .person-name { max-width:160px; }
html[lang="en"] .case-table .case-stage-cell .badge { white-space:normal; line-height:1.3; }
@media (max-width:1280px) {
 .case-table :is(th,td):last-child {
  position:sticky;
  right:0;
  z-index:1;
  background:var(--surface);
  box-shadow:-1px 0 0 var(--line);
 }
 .case-table thead th:last-child { background:var(--surface-2); }
 .case-table tbody tr:has(.case-check:checked) td:last-child { background:var(--selected); }
}
@media(hover:hover) and (pointer:fine) and (max-width:1280px) {
 .case-table tbody tr:hover td:last-child { background:var(--surface-hover); }
 .case-table tbody tr:has(.case-check:checked):hover td:last-child { background:var(--selected); }
}

.case-heading h1 { font-size:1.857rem; line-height:1.25; }
.case-heading {
 margin-bottom:0;
 padding:18px 20px;
 border:1px solid var(--line);
 border-radius:13px 13px 0 0;
 background:var(--surface);
}
.case-heading + .card { border-top:0; border-radius:0 0 13px 13px; }
.case-heading + .card .stage-track { background:var(--support-surface); }
.case-current-state { display:grid; gap:4px; justify-items:start; color:var(--muted); font-size:var(--ui-meta); }
.case-current-state > span:first-child { padding-inline:2px; }
.case-country-caption { display:inline-block; font-size:.93rem; }
.case-heading .person-avatar { background:var(--surface-2); color:var(--ink); }
.case-heading .subline,.info-item div { font-size:.93rem; }
.stage-track { grid-template-columns:repeat(var(--stage-count),minmax(0,1fr)); list-style:none; margin:0; padding-block:18px; }
.stage-label { font-size:.82rem; overflow-wrap:anywhere; }
.stage.current .stage-label { font-weight:750; }
.chip-tabs { background:var(--support-surface); scrollbar-width:none; }
.chip-tabs::-webkit-scrollbar { display:none; }
.chip-tab { font-size:.93rem; }
.chip-tab.active { border-color:var(--focus); font-weight:750; }
.section-title,.sidebar-info h3 { font-size:1.03rem; }
.detail-sidebar .button.soft { background:var(--surface); border-color:var(--line-strong); color:var(--text); }
.detail-sidebar .note-box { margin-bottom:12px; }
.detail-sidebar .button.quiet { align-self:flex-start; padding:6px 0; min-height:32px; }

.template-symbol { background:var(--surface-2); border:0; }
.template-countries .button { background:var(--surface-2); color:var(--ink); }

.modal { display:flex; flex-direction:column; max-height:90dvh; overflow:hidden; }
.modal-head,.modal-actions { flex:none; }
.modal-head h2 { font-size:1.36rem; }
.modal-body { min-height:0; overflow:auto; overscroll-behavior:contain; }
.modal-actions { flex-wrap:wrap; background:var(--surface); }
.form-field label { font-size:.93rem; }
.assistant-fab {
 --assistant-trigger-bg:#f5f2fc;
 --assistant-trigger-hover:#ebe4fa;
 --assistant-trigger-ink:var(--ink);
 --assistant-trigger-line:#cfc3e6;
 position:static;
 right:auto;
 bottom:auto;
 z-index:auto;
 display:inline-flex;
 align-items:center;
 min-height:34px;
 gap:7px;
 padding:4px 11px 4px 5px;
 border:1px solid var(--assistant-trigger-line);
 background:var(--assistant-trigger-bg);
 color:var(--assistant-trigger-ink);
 border-radius:999px;
 box-shadow:none;
 font-size:12px;
 font-weight:650;
 line-height:1.2;
 white-space:nowrap;
}
:root[data-theme=dark] .assistant-fab {
 --assistant-trigger-bg:#2a2738;
 --assistant-trigger-hover:#353147;
 --assistant-trigger-ink:#f4f4f7;
 --assistant-trigger-line:#5b5375;
}
.assistant-fab[aria-expanded=true] {
 background:var(--assistant-trigger-hover);
 border-color:var(--focus);
}
.assistant-trigger-mark {
 display:grid;
 place-items:center;
 flex:none;
 width:24px;
 height:24px;
 border-radius:999px;
 background:linear-gradient(135deg,#ffe600 4%,#ffb26d 31%,#f296cc 55%,#b0a1ff 74%,#86dff1 100%);
 color:#282635;
}
.assistant-fab .assistant-trigger-mark svg { display:block; width:15px; height:15px; color:inherit; }

@media(hover:hover) and (pointer:fine) {
 .task-action:hover,.case-view:hover { background:var(--surface-2); }
 .due-row:hover { background:var(--surface-hover); }
 .metric-card:hover { box-shadow:inset 0 0 0 1px var(--line-strong); }
 .person-name:hover { color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
 .assistant-fab:hover { background:var(--assistant-trigger-hover); }
}
@media(max-width:760px) {
 .assistant-fab { min-width:40px; min-height:40px; padding:0; justify-content:center; border-radius:8px; }
 .assistant-fab > span:not(.assistant-trigger-mark) { display:none; }
 .topbar { height:57px; }
 #breadcrumb { min-width:0; overflow:hidden; font-size:.77rem; text-overflow:ellipsis; white-space:nowrap; }
 .topbar-left { flex:1; gap:6px; min-width:0; }
 .topbar-right { flex:none; gap:6px; }
 .topbar .icon-button,.theme-toggle { min-height:40px; min-width:40px; }
 .page-heading { padding-bottom:14px; }
 .page-heading .actions,.case-heading .actions { gap:8px; }
 .page-heading .button,.case-heading .button { min-height:40px; }
 .case-heading { padding:14px; }
 .case-heading h1 { font-size:1.57rem; }
 .case-heading .subline { max-width:none; }
 .overview-scope { width:100%; }
 .overview-scope .choice-trigger { flex:1; width:auto; min-height:40px; font-size:16px; }
 .searchbox input { font-size:16px; }
 .metric-card,.library-stats > div { padding:12px; }
 .metric-card:nth-child(n) .metric-value { font-size:1.9rem; }
 .metric-bottom { line-height:1.4; }
 .task-list-head { display:none; }
 .due-row {
  grid-template-columns:30px minmax(0,1fr) auto;
  grid-template-areas:"icon subject date" "icon subject action";
  grid-template-rows:auto auto;
  column-gap:8px;
  row-gap:0;
  padding:8px 14px;
 }
 .due-row .task-symbol { grid-area:icon; width:30px; height:30px; }
 .task-subject { grid-area:subject; }
 .due-row .time-text { grid-area:date; align-self:end; text-align:right; }
 .due-row .task-action { grid-area:action; align-self:start; min-height:36px; }
 .due-row strong { font-size:.93rem; }
 .queue-card .card-head .button.quiet,.overview-workbench .due-row .task-action { min-height:44px; }
 .library-stats > div > span { min-height:2.5em; align-items:flex-start; font-size:.82rem; white-space:normal; }
 .stage-label { font-size:.74rem; }
 .stage-track { grid-template-columns:repeat(4,minmax(0,1fr)); }
 .stage:nth-child(4n+1)::before { display:none; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

html[lang="en"] .nav-item { line-height:1.25; }
html[lang="en"] .due-list { --task-action:96px; }
html[lang="en"] .task-subject,html[lang="en"] .metric-label,html[lang="en"] .learning-health-cell { min-width:0; overflow-wrap:anywhere; }
html[lang="en"] .case-heading .case-country-caption { white-space:normal; }
@media (max-width:720px) {
 html[lang="en"] #breadcrumb { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

html[lang="en"] .distribution-legend strong > small { display:none; }
html[lang="en"] .distribution-key { overflow-wrap:normal; }
@media (max-width:720px) {
 html[lang="en"] .topbar .demo-pill { display:none; }
 html[lang="en"] .topbar-left { min-width:0; }
}
@media (max-width:480px) {
 .topbar .demo-pill,.topbar .avatar.small { display:none; }
}
::view-transition-old(root),
::view-transition-new(root) {
 animation:none;
 mix-blend-mode:normal;
}
::view-transition-old(root) { z-index:1; }
::view-transition-new(root) { z-index:9999; }

.applicant-readback,
.visa-work-record {
  border-top: 1px solid var(--line, #dcdde5);
  margin-top: 1.3rem;
  padding-top: 1.05rem;
}
.applicant-readback [data-slot=collapsible],
.visa-task-data {
  border: 1px solid var(--line, #dcdde5);
  border-radius: 8px;
  margin: .65rem 0 .9rem;
  padding: .75rem .9rem;
}
.applicant-readback [data-slot=collapsible-trigger],
.visa-task-data [data-slot=collapsible-trigger] { font-weight: 650; cursor: pointer; }
.applicant-readback [data-slot=collapsible-trigger] .tag { margin-inline-start: .4rem; }
.applicant-readback h4 { margin: 1rem 0 .35rem; }
.applicant-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem 1.15rem;
  margin: .65rem 0;
}
.applicant-value-grid dt { font-size: var(--ui-meta); opacity: .82; }
.applicant-value-grid dd { margin: .25rem 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.visa-task-entry { margin-block: .5rem 1.15rem; }
@media (max-width: 620px) { .applicant-value-grid { grid-template-columns: minmax(0, 1fr); } }

/* Subtle desktop readability & cleanup without changing the core visual design */
.panel-meta { color: var(--muted); font-size: var(--ui-meta); font-weight: 500; white-space: nowrap; }
.library-source-text { color: var(--muted); font-size: var(--ui-meta); white-space: nowrap; }
.library-source-text.is-local { color: var(--green); font-weight: 600; }
.searchbox { padding: 0 11px; min-height: 38px; }
.searchbox:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.searchbox input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  height: auto;
  min-height: 34px;
  background: transparent;
  font-size: var(--ui-label);
}
.searchbox input:focus,
.searchbox input:focus-visible { outline: none; box-shadow: none; border-color: transparent; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.overview-scope .choice-trigger { min-width: 170px; width: auto; }
th,
.case-id,
.badge,
.table-footer,
.card-footer,
.card-footer a,
.card-head .button.quiet,
.distribution-legend li,
.library-table td,
.library-caption,
.library-footnote,
.app-footer { font-size: var(--ui-meta); }
td,
.subline,
.nav-item { font-size: var(--ui-label); }
@media (min-width: 1001px) {
  .library-layout { grid-template-columns: clamp(190px,18cqi,232px) minmax(0,1fr); }
}
