:root{color-scheme:dark;--page:#0b1220;--panel:#111c2e;--subtle:#182538;--text:#f1f5f9;--muted:#b9c5d6;--border:#334155;--brand:#8cc5e3;--danger:#fca5a5;--warning:#fde68a;--success:#86efac;--none:#94a3b8;--selected:#20354a}
:root[data-theme=light]{color-scheme:light;--page:#f8fafc;--panel:#fff;--subtle:#f1f5f9;--text:#0f172a;--muted:#475569;--border:#cbd5e1;--brand:#2b668c;--danger:#b91c1c;--warning:#854d0e;--success:#166534;--none:#64748b;--selected:#e8f2f8}
*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text);font:14px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}button,input,select{font:inherit;color:inherit;background:var(--panel);border:1px solid var(--border);border-radius:6px;min-height:44px;padding:8px 12px}button{cursor:pointer}button:hover{background:var(--subtle);border-color:var(--brand)}button:active{background:var(--selected)}button:disabled{cursor:default;opacity:.4}button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible,summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--brand);margin:0}input[type=search]{width:100%;min-width:0}h1,h2,h3,h4,p{margin:0}h1{font-size:22px;font-weight:650;letter-spacing:-.025em}h2{font-size:20px;line-height:1.35}h3{font-size:14px}h4{font-size:13px}small{font-size:12px;color:var(--muted)}.muted{color:var(--muted)}.danger{color:var(--danger)!important}.warning{color:var(--warning)!important}[hidden]{display:none!important}.sr-only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}.skip{position:absolute;top:-100px;padding:12px;color:var(--brand);background:var(--panel);z-index:10}.skip:focus{top:0}
.appbar{display:flex;align-items:center;gap:24px;padding:12px 24px;background:var(--panel);border-bottom:1px solid var(--border)}.lockup{display:flex;align-items:center;gap:10px}.lockup strong{font-size:17px;display:block}.lockup span{font-size:11px;color:var(--muted);display:block}.preview-tag{font-size:11px;letter-spacing:.025em;padding:4px 8px;border:1px solid var(--border);border-radius:4px;color:var(--warning)}.app-actions{margin-left:auto;display:flex;gap:8px}.app-actions button{font-size:12px}
main{padding:20px 24px 8px;max-width:2200px;margin:auto}.scopebar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.scopebar p{font-size:12px;color:var(--muted);margin-top:4px}.demo-update{display:flex;gap:12px;align-items:center;font-size:12px}.demo-update>span{color:var(--muted)}.demo-update button{color:var(--brand)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-block:1px solid var(--border);padding:14px 0;margin-bottom:18px}.metrics>div{padding:0 22px;border-left:1px solid var(--border);display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:12px}.metrics>div:first-child{border-left:0;padding-left:0}.metrics>div:last-child{padding-right:0}.metrics span{color:var(--muted);font-size:13px}.metrics strong{font-size:27px;letter-spacing:-.035em}.metrics small{grid-column:1/-1;font-size:11px}
.workbench{background:var(--panel);border:1px solid var(--border);border-radius:10px;overflow:hidden}.toolbar{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid var(--border);flex-wrap:wrap}.view-switch{display:flex;background:var(--page);border:1px solid var(--border);border-radius:7px;padding:3px;gap:4px}.view-switch button{min-height:36px;background:none;border-color:transparent;font-weight:600;font-size:13px}.view-switch button[aria-pressed=true]{background:var(--selected);color:var(--brand);border-color:var(--brand)}.view-switch button[aria-pressed=true]::before{content:'✓ ';font-weight:400}.search{max-width:320px;flex:1;min-width:160px}.check{display:flex;gap:8px;align-items:center;min-height:44px;font-size:13px}.sort{margin-left:auto}.sort select{font-size:13px;max-width:200px}.board-heading{display:flex;justify-content:space-between;gap:10px;padding:9px 16px;color:var(--muted);font-size:11px}.board-heading>span:first-child{font-size:12px;font-weight:600;color:var(--text)}
.workspace{display:grid;grid-template-columns:minmax(0,1fr)}.workspace.with-detail{grid-template-columns:minmax(0,1fr) 340px}.board-area{min-width:0}.board-scroll{overflow:auto;max-height:calc(100dvh - 360px);min-height:170px;scroll-padding-top:48px;border-top:1px solid var(--border)}table{width:100%;border-collapse:separate;border-spacing:0;min-width:900px;table-layout:fixed}thead{position:sticky;top:0;z-index:3}thead th{background:var(--subtle);font-size:11px;font-weight:600;color:var(--muted);padding:10px 12px;text-align:right;border-bottom:1px solid var(--border);white-space:nowrap}thead th:first-child{width:25%;text-align:left;position:sticky;left:0;z-index:4}thead th:nth-child(2){width:10%}thead th:nth-child(3){width:12%}thead th:last-child{width:8%}tbody th,tbody td{border-bottom:1px solid var(--border);padding:10px 12px;background:var(--panel);vertical-align:middle}tbody th{position:sticky;left:0;text-align:left;z-index:2;font-weight:400}tbody td{text-align:right;font-size:13px}tbody td>small{display:block;margin-top:4px;font-size:11px;white-space:nowrap}tbody tr:last-child>*{border-bottom:0}tbody tr:hover>*{background:var(--subtle)}tbody tr.selected>*{background:var(--selected)}tbody tr.selected th{box-shadow:inset 3px 0 var(--brand)}.project-button{display:block;text-align:left;background:none;border:0;padding:0;min-height:44px;width:100%;line-height:1.35}.project-button:hover{background:none}.code{display:flex;gap:10px;align-items:center;color:var(--brand);font-size:12px;font-weight:700}.state{font-size:10px;color:var(--muted);font-weight:400}.project-name{display:block;font-size:13px;font-weight:550;margin-top:4px;overflow-wrap:anywhere}.row-warning{font-size:10px;display:block;margin-top:2px;line-height:1.4}.number{white-space:nowrap;font-size:14px;font-weight:650}td strong small{font-size:11px;font-weight:400}.track{height:4px;background:var(--page);border-radius:2px;margin-top:7px;overflow:hidden}.track i{display:block;height:100%;background:var(--brand)}.deadline-stack{display:flex;height:6px;margin:6px 0;gap:2px;background:var(--page);border-radius:2px;overflow:hidden}.deadline-stack i{display:block}.overdue{background:var(--danger)}.soon{background:var(--brand)}.later{background:var(--warning)}.undated{background:var(--none)}td>span{font-size:10px}.staff-cell{position:relative;padding-right:36px}.staff-cell strong{font-size:16px}.staff-bar{height:30px;width:12px;position:absolute;right:12px;top:50%;transform:translateY(-50%);background:var(--page);display:flex;align-items:end}.staff-bar i{display:block;width:100%;background:var(--brand)}.finance-view table{min-width:1120px}.finance-view thead th:first-child{width:23%}.finance-view thead th:nth-child(n+2){width:auto}
.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.pagination>div{display:flex;gap:8px}.pagination button{font-size:12px;min-height:36px}.board-note{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:10px 16px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}.legend{display:flex;gap:14px;flex-wrap:wrap}.legend span{display:flex;align-items:center;gap:5px}.legend i{width:6px;height:6px;border-radius:1px}footer{display:flex;justify-content:space-between;gap:16px;padding:12px 0;color:var(--muted);font-size:11px}#empty{padding:50px 20px;text-align:center}#empty h2{font-size:18px}#empty p{color:var(--muted);margin:8px 0 16px}
dialog{color:var(--text);background:var(--panel);border:0;border-left:1px solid var(--border);padding:0;margin:0;position:static;max-width:none;max-height:none;width:340px;min-width:0;align-self:start}dialog:not([open]){display:none}.detail-top{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:var(--subtle);padding:9px 16px;border-bottom:1px solid var(--border);font-size:12px;z-index:1}.detail-top button{min-height:36px;font-size:12px}.detail-code{font-size:11px;color:var(--brand)}#detail-body{padding:16px;max-height:calc(100dvh - 400px);overflow:auto;min-height:210px}#detail-title{margin:5px 0 8px;font-size:20px}.detail-meta{font-size:12px;color:var(--muted)}#detail-body section{border-top:1px solid var(--border);padding:14px 0}#detail-body section:first-of-type{margin-top:14px}.detail-progress{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:4px;font-size:12px;color:var(--muted)}.detail-progress>strong{font-size:24px;color:var(--text)}.detail-progress .track,.detail-progress small{grid-column:1/-1}.detail-progress .track{margin:2px 0 4px}.alerts{padding-left:16px;margin:8px 0 0;font-size:12px}.alerts li+li{margin-top:4px}.detail-view-head{display:flex;align-items:center;justify-content:space-between;padding-top:12px}.detail-view-head>span{font-size:11px;color:var(--muted)}.detail-finance h4{margin-bottom:10px;color:var(--muted)}.ledger-values{margin:0;display:grid;gap:8px}.ledger-values>div{display:flex;justify-content:space-between;gap:12px;align-items:baseline;flex-wrap:wrap}.ledger-values dt{font-size:12px;color:var(--muted)}.ledger-values dd{margin:0 0 0 auto;font-weight:600;font-size:13px}.key-amount dd{color:var(--brand)}.panel-note,.detail-disclaimer{font-size:11px;color:var(--muted);margin-top:10px}.unavailable{color:var(--muted);font-size:12px}.detail-disclaimer{padding-top:10px;border-top:1px solid var(--border)}.changed{background:var(--selected);outline:1px solid var(--brand);border-radius:3px;padding:2px 4px;animation:tick 1.4s ease-out 1}@keyframes tick{from{background:var(--brand);color:var(--page)}to{background:var(--selected);color:var(--text)}}
@media(min-width:1600px){.workspace.with-detail{grid-template-columns:minmax(0,1fr) 380px}dialog{width:380px}tbody th,tbody td{padding-block:13px}.project-name{font-size:14px}.number{font-size:15px}.board-scroll{max-height:calc(100dvh - 360px)}}
@media(max-width:1279px){.workspace.with-detail{grid-template-columns:minmax(0,1fr)}dialog{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 60px #0005}dialog::backdrop{background:#02061799}#detail-body{max-height:calc(100dvh - 90px)}.metrics>div{padding:0 14px}.metrics strong{font-size:24px}.demo-update>span{max-width:160px}.scopebar{align-items:flex-start}}
@media(max-width:900px){.appbar{padding:12px 16px;gap:12px;flex-wrap:wrap}.preview-tag{margin-left:auto}.app-actions{width:100%;justify-content:flex-end}.app-actions button{min-height:44px}main{padding:16px}.scopebar{flex-wrap:wrap;margin-bottom:12px}.demo-update{width:100%;justify-content:space-between}.demo-update>span{max-width:none}.metrics{grid-template-columns:1fr 1fr;gap:12px;padding:12px 0}.metrics>div{padding:0 14px!important}.metrics>div:nth-child(odd){border-left:0;padding-left:0!important}.metrics strong{font-size:24px}.toolbar{gap:10px;padding:12px}.search{max-width:none}.sort{margin-left:auto}.board-heading{flex-wrap:wrap;padding-inline:12px}.board-scroll{max-height:65dvh}.pagination button,.view-switch button{min-height:44px}footer{flex-wrap:wrap}.board-note{gap:10px}.appbar .lockup{margin-right:auto}}
@media(max-width:520px){h1{font-size:21px}.preview-tag{font-size:9px}.app-actions{justify-content:flex-start}.search{order:3;flex-basis:100%}.sort{order:4;width:100%}.sort select{max-width:none;width:100%}.check{margin-left:auto}.metrics strong{font-size:21px}.metrics span{font-size:12px}tbody th,thead th:first-child{position:static}.board-note>span{max-width:100%}.legend{gap:8px 12px}.pagination{padding-inline:12px;font-size:11px}}
.board-scroll{position:relative}
.scroll-hint{display:none}
@media(max-width:1279px){.scroll-hint{display:inline}.detail-top button,.pagination button,.view-switch button{min-height:44px}button,input,select{touch-action:manipulation}input[type=search],select{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important}}

/* Desk refinement: one comparison surface, quieter structure, contextual detail. */
:root{--line:color-mix(in srgb,var(--border) 58%,transparent)}
.appbar{padding:10px 24px;border-bottom-color:var(--line)}.lockup strong{letter-spacing:-.025em}.lockup .desk-word{display:inline;font-size:17px;font-weight:450;color:var(--brand)}.preview-tag{font-size:11px;letter-spacing:0;border-color:var(--line);color:var(--muted)}.preview-tag:before{content:'';display:inline-block;width:5px;height:5px;background:var(--warning);border-radius:50%;margin:0 6px 1px 0}.app-actions button{background:transparent;min-height:40px}
main{padding-top:24px}.scopebar{margin-bottom:22px}.scopebar h1{font-size:24px;letter-spacing:-.035em;line-height:1.3}.scopebar p{font-size:13px;margin-top:6px}.demo-update{font-size:11px}.demo-update>span{max-width:190px;text-align:right}.demo-update button{font-size:12px;white-space:nowrap}
.metrics{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:18px 0;margin-bottom:22px}.metrics>div{display:block;padding:0 24px;border-left-color:var(--line);min-width:0}.metrics>div:first-child,.metrics>div:last-child{padding-inline:24px}.metrics span{display:block;font-size:12px}.metrics strong{display:block;font-size:30px;font-weight:600;letter-spacing:-.035em;line-height:1.35;margin:5px 0 4px}.metrics strong em{font-style:normal;font-size:13px;font-weight:400;color:var(--muted);margin-left:7px;letter-spacing:0}.metrics small{display:block;font-size:11px}
.workbench{border-radius:8px}.toolbar{gap:16px;padding:10px 16px;border-bottom-color:var(--line)}.view-switch{background:none;border:0;padding:0;border-radius:0}.view-switch button{min-height:38px;padding-inline:12px}.view-switch button[aria-pressed=true]{border-color:color-mix(in srgb,var(--brand) 45%,transparent)}.search{max-width:300px}.search input{font-size:13px;background:var(--page)}.check{font-size:12px;color:var(--muted);min-height:40px}.sort select{font-size:12px;background:transparent}.board-heading>span:first-child{font-weight:550}
.workspace.with-detail{grid-template-columns:minmax(0,1fr) 360px}.board-scroll{max-height:calc(100dvh - 418px);min-height:210px;scroll-padding-top:56px;border-top-color:var(--line)}table{min-width:920px}thead th{font-weight:550;color:var(--text)}thead th small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:1px}thead th:first-child{width:27%}thead th:nth-child(3){text-align:left}tbody td:nth-child(3){text-align:left}tbody th,tbody td{padding:11px 12px;border-bottom-color:var(--line)}tbody td>small{margin-top:5px}.project-button{min-height:40px;border-radius:2px}.project-name{font-size:13px;font-weight:600;margin-top:0}.code{gap:8px;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.code>.state{border-left:1px solid var(--border);padding-left:8px}.row-warning{margin-top:4px;line-height:1.35}.number{font-weight:600;letter-spacing:-.015em}.deadline-stack{height:5px;margin:7px 0 5px}.staff-cell{padding-right:32px}.staff-cell strong{font-size:15px;font-weight:550}.staff-bar{height:27px;width:7px;border-radius:2px;overflow:hidden}.finance-view thead th:nth-child(3),.finance-view tbody td:nth-child(3){text-align:right}
.pagination{padding:8px 16px;font-size:11px;border-top-color:var(--line)}.pagination button{min-height:34px;padding:5px 12px;background:transparent}.board-note{font-size:10px;border-top-color:var(--line)}footer{padding:10px 0;font-size:10px}.legend-dot{display:inline-block;width:6px;height:6px;border-radius:1px;margin-right:8px}
dialog{width:360px}.detail-top{padding:8px 18px;font-size:11px;color:var(--muted);border-block:1px solid var(--line)}.detail-top button{min-height:34px;padding:5px 10px;background:transparent}#detail-body{padding:18px;max-height:calc(100dvh - 418px);min-height:260px}.detail-identity>.state{float:right}#detail-title{margin:8px 0;font-size:21px;font-weight:600;letter-spacing:-.025em}.detail-meta{font-size:11px;line-height:1.6}#detail-body .detail-progress{border:0;padding:14px 0;margin-top:12px}.detail-progress>strong{font-size:25px;font-weight:550}.detail-progress small{font-size:10px}.alert-strip{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;margin-bottom:14px}.alert-strip span{padding:4px 7px;background:var(--subtle);border-radius:4px;border-left:2px solid currentColor}.detail-views{display:flex;border-bottom:1px solid var(--border);gap:2px;margin-inline:-2px}.detail-views button{border:0;background:none;border-radius:0;padding:8px 7px;font-size:11px;min-height:40px;flex:1;white-space:nowrap}.detail-views button[aria-pressed=true]{color:var(--brand);box-shadow:inset 0 -2px var(--brand);background:var(--selected)}.detail-views button[aria-pressed=true]:before{content:'✓ ';font-weight:400}.detail-views button:hover{background:var(--subtle)}.detail-unit{font-size:10px;color:var(--muted);margin:14px 0 0}#detail-body .detail-finance{padding:16px 0;border-top:0;border-bottom:1px solid var(--line);margin:0}.detail-finance h3{font-size:12px;font-weight:600;margin-bottom:12px}.ledger-values{gap:9px}.ledger-values dt{font-size:11px}.ledger-values dd{font-weight:550;font-size:12px}.key-amount{padding-top:8px;margin-top:2px;border-top:1px dashed var(--line)}.panel-note,.detail-disclaimer{font-size:10px;line-height:1.6}.detail-disclaimer{border-top:0;padding-top:0}
@media(min-width:1600px){.workspace.with-detail{grid-template-columns:minmax(0,1fr) 390px}dialog{width:390px}.project-name{font-size:14px}.number{font-size:15px}tbody th,tbody td{padding-block:12px}.metrics strong{font-size:32px}}
@media(max-width:1279px){.workspace.with-detail{grid-template-columns:minmax(0,1fr)}dialog{width:min(450px,calc(100vw - 24px))}#detail-body{max-height:calc(100dvh - 90px)}.detail-top button,.pagination button,.view-switch button,.detail-views button,button{min-height:44px}.metrics>div,.metrics>div:first-child,.metrics>div:last-child{padding:0 18px}.metrics strong{font-size:28px}.board-scroll{max-height:65dvh}.toolbar{gap:12px}}
@media(max-width:900px){.appbar{padding:10px 16px}.app-actions{width:auto;gap:6px}.app-actions button{font-size:11px}main{padding-top:18px}.scopebar{margin-bottom:16px}.scopebar h1{font-size:22px}.demo-update>span{max-width:none;text-align:left}.metrics{gap:20px 0;padding:18px 0;margin-bottom:16px}.metrics>div,.metrics>div:nth-child(odd){padding-inline:18px!important}.metrics strong{font-size:28px}.metrics small{font-size:10px}.toolbar{gap:10px;padding:12px}.search{max-width:none}.check{min-height:44px}}
@media(max-width:520px){.app-actions{width:100%;margin-left:0}.preview-tag{font-size:10px}.scopebar h1{font-size:21px}.scopebar p{font-size:12px}.metrics>div,.metrics>div:nth-child(odd){padding-inline:14px!important}.metrics strong{font-size:26px}.metrics span{font-size:11px}.view-switch button{padding-inline:9px;font-size:12px}.toolbar{gap:8px}#detail-body{padding:16px}.detail-views button{font-size:11px}}
@media(min-width:1280px){main{padding-top:16px}.scopebar{margin-bottom:16px}.metrics{padding-block:12px;margin-bottom:16px}.metrics strong{font-size:28px;margin:4px 0 2px}.board-scroll{max-height:calc(100dvh - 480px)}#detail-body{max-height:calc(100dvh - 480px)}}
.detail-finance h3,.ledger-values dt{font-size:12px}.ledger-values dd{font-size:13px}

/* Give the project comparison priority over the collection summary. */
main{padding-top:12px;position:relative}
.desk-toolbar{background:var(--panel);border:1px solid var(--line);border-radius:8px;margin-bottom:12px}
.preview-controls{justify-content:flex-end;padding:4px 0 12px;gap:12px}
.preview-controls>span{max-width:none;text-align:left}
.scopebar{align-items:center;gap:12px;margin-bottom:12px}
.scopebar h1{font-size:21px;line-height:1.3}
.demo-update>span{max-width:none;font-size:11px}
.metrics{padding:10px 0;margin-bottom:12px;gap:0}
.metrics>div,.metrics>div:first-child,.metrics>div:last-child{
 display:grid;grid-template-columns:max-content max-content;justify-content:start;
 align-items:baseline;gap:2px 10px;padding-inline:20px;
}
.metrics span{font-size:12px}
.metrics strong{font-size:23px;line-height:1.2;margin:0;letter-spacing:-.025em}
.metrics small{grid-column:1/-1;font-size:11px;line-height:1.5}
.metrics strong em{font-size:11px;margin-left:4px}
.project-name{font-size:16px;font-weight:600;line-height:1.35}
.project-button{min-height:44px}
.code,.state{font-size:11px}
.code{flex-wrap:wrap;gap:3px 8px;margin-top:4px}
.row-warning{font-size:11px}
table{min-width:980px}
thead th:first-child{width:29%}
thead th:nth-child(2){width:9%}
thead th:last-child{width:7%}
.finance-view thead th:first-child{width:26%}
.board-scroll,#detail-body{max-height:calc(100dvh - 370px)}
@media(min-width:1600px){.project-name{font-size:18px}.code,.state{font-size:12px}.metrics strong{font-size:24px}}
@media(max-width:1279px){
 .metrics>div,.metrics>div:first-child,.metrics>div:last-child{grid-template-columns:minmax(0,1fr) max-content;padding-inline:14px;gap:2px 8px}
 .metrics span{font-size:11px}.metrics strong{font-size:21px}.metrics small{font-size:10px}
 .demo-update>span{max-width:190px}.board-scroll{max-height:65dvh}#detail-body{max-height:calc(100dvh - 90px)}
}
@media(max-width:900px){
 .scopebar{margin-bottom:12px}.scopebar h1{font-size:21px}
 .demo-update{width:auto;margin-left:auto}.demo-update>span{max-width:180px}
 .metrics{padding-block:10px;gap:12px 0}
 .metrics>div,.metrics>div:first-child,.metrics>div:last-child,.metrics>div:nth-child(odd){grid-template-columns:max-content max-content;padding-inline:16px!important}
}
@media(max-width:600px){
 .metrics>div,.metrics>div:first-child,.metrics>div:last-child,.metrics>div:nth-child(odd){grid-template-columns:minmax(0,1fr);gap:2px;padding-inline:12px!important}
 .metrics span{font-size:12px}.metrics strong{font-size:22px}.metrics small{font-size:11px}
 .demo-update{width:100%;margin:0}.demo-update>span{max-width:none;flex:1;text-align:left}
}

/* Production-only authentication, freshness and source inspection. */
#dashboard{min-width:0}
.login{max-width:440px;margin:8vh auto;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:24px}
.login h1{font-size:24px}.login p{color:var(--muted);line-height:1.6}
.login form{display:grid;gap:10px;margin-top:20px}.login input{width:100%}
.login .danger{color:var(--danger)}.eyebrow{font-size:12px}.small,.refresh-note{font-size:12px;color:var(--muted)}
.sync-line{display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;margin:0 0 10px;font-size:11px;color:var(--muted)}
#connection{margin:0}.stale{font-weight:600}.success{color:var(--muted)}
#sources{position:fixed;inset:0;width:min(1100px,calc(100vw - 32px));max-height:90dvh;margin:auto;padding:20px;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text)}
#sources::backdrop{background:rgb(0 0 0 / .6)}
#sources .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
#sources h2{font-size:18px}#sources table{min-width:750px}#sources .table-wrap{overflow:auto}#sources th:first-child{width:auto}
#sources .actions{display:flex;align-items:center;gap:12px;margin-top:16px}.source-meta{font-size:13px;line-height:1.6}
.source-open{margin-top:10px;min-height:40px;color:var(--brand);font-size:12px}
.definitions{font-size:12px;line-height:1.6;color:var(--muted)}.definitions summary{cursor:pointer;min-height:32px}
.board-scroll,#detail-body{max-height:calc(100dvh - 398px)}
@media(max-width:1279px){.board-scroll{max-height:65dvh}#detail-body{max-height:calc(100dvh - 90px)}}
@media(max-width:600px){.sync-line{font-size:11px}.desk-toolbar>#refresh{order:5}.desk-toolbar .sort{flex:1;width:auto}}
/* Content-sized comparison: sparse results must not reserve empty table rows. */
.board-scroll{min-height:0}
.board-scroll:not(.finance-view) thead th:first-child{width:22%}
.board-scroll:not(.finance-view) thead th:nth-child(2){width:9%}
.board-scroll:not(.finance-view) thead th:nth-child(3){width:14%}
.board-scroll:not(.finance-view) thead th:nth-child(4){width:17%}
.board-scroll:not(.finance-view) thead th:nth-child(5){width:14%}
.board-scroll:not(.finance-view) thead th:nth-child(6){width:17%}
.board-scroll:not(.finance-view) thead th:last-child{width:7%}
.board-scroll.finance-view thead th:first-child{width:22%}
.board-scroll thead th{white-space:normal;line-height:1.45}
.board-scroll thead th,.board-scroll tbody td,.board-scroll tbody th{padding-inline:16px}
.board-scroll:not(.finance-view) thead th:nth-child(4),.board-scroll:not(.finance-view) tbody td:nth-child(4),
.board-scroll:not(.finance-view) thead th:last-child,.board-scroll:not(.finance-view) tbody td:last-child{border-left:1px solid var(--line)}
.board-scroll .staff-cell{padding-right:32px}
.board-note{align-items:center;min-height:36px;padding-block:8px}
.board-note:has(.legend[hidden]){justify-content:flex-end}
.work-quiet{display:block;margin-top:6px;color:var(--muted)}

/* Optional install help; isolated from project inspector and source dialogs. */
.app-actions{flex-wrap:wrap}
.local-mode{margin:0;padding:8px 24px;background:var(--subtle);color:var(--warning);font-size:12px;line-height:1.5}
#install-guide{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--text);box-shadow:0 12px 60px #0005}
#install-guide::backdrop{background:rgb(2 6 23 / .65)}
.install-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.install-heading img{flex:none}.install-heading h2{font-size:18px;line-height:1.4;margin:0;flex:1}.install-heading button{min-height:44px}
#install-summary,#install-status,.install-methods{font-size:14px;line-height:1.6}
#install-summary{color:var(--muted);margin:16px 0}#install-status{margin:16px 0 10px}#install-native{min-height:44px}
.install-methods{margin:20px 0}.install-methods>div{padding:12px 0;border-top:1px solid var(--line)}.install-methods dt{font-weight:600}.install-methods dd{margin:5px 0 0;color:var(--muted)}
.install-notice{padding:12px;border-left:3px solid var(--warning);background:var(--subtle);font-size:13px;line-height:1.6}
.install-footnote{font-size:12px;line-height:1.7;color:var(--muted);margin-bottom:0;border-top:1px solid var(--line);padding-top:14px}
@media(max-width:600px){#install-guide{padding:16px}.install-heading h2{font-size:17px}.install-heading button{margin-left:auto}}
@media(display-mode:standalone){.appbar{padding-top:max(10px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}main{padding-bottom:max(16px,env(safe-area-inset-bottom));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}}

/* Project-first overview: charts replace, rather than duplicate, comparison rows. */
.desk-toolbar{position:relative}.desk-filters{display:block;flex:1;min-width:0}.filter-controls{display:flex;align-items:center;gap:14px}.desk-filters>summary{display:none}
.appbar{gap:16px;flex-wrap:nowrap}.lockup{min-width:0}.lockup img{flex-shrink:0}.appbar .preview-tag{margin-left:auto;white-space:nowrap;border:0}
.app-tools{position:relative;flex:none;font-size:12px}.app-tools>summary{cursor:pointer;min-height:44px;padding:11px 12px;border:1px solid var(--line);border-radius:6px;list-style-position:inside}
.app-tools[open]>summary{background:var(--selected)}
.app-tools .app-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:20;display:grid;width:220px;margin:0;padding:8px;gap:4px;background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 28px #0003}
.app-tools .app-actions button{min-height:44px;text-align:left;font-size:13px;border-color:transparent}
.app-tools summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.metrics>div,.metrics>div:first-child,.metrics>div:last-child{grid-template-columns:minmax(0,1fr) auto}
.metrics strong{font-size:24px;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}.metrics small{line-height:1.4}.sync-line{font-size:12px}
.visual-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;background:var(--page)}
.visual-projects.single-project,.with-detail .visual-projects{grid-template-columns:minmax(0,1fr)}
.project-visual{container-type:inline-size;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:8px;overflow:hidden;border-top:3px solid var(--brand)}
main:has(.single-project:not([hidden])){max-width:none}
.project-visual.critical{border-top-color:var(--danger)}.project-visual.watch{border-top-color:var(--warning)}.project-visual.selected{outline:2px solid var(--brand);outline-offset:-2px}
.visual-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 20px 16px}.visual-heading>div{min-width:0}
.visual-meta{display:flex;gap:8px 12px;flex-wrap:wrap;color:var(--muted);font-size:12px}.visual-meta>span+span{border-left:1px solid var(--line);padding-left:12px}
.visual-heading h2{margin:3px 0}.visual-heading h2 button{font-size:22px;line-height:1.25;letter-spacing:-.025em;font-weight:650;min-height:44px;text-align:left;background:none;border:0;padding:4px 0;overflow-wrap:anywhere;max-width:100%}
.single-project .visual-heading h2 button{font-size:28px}.visual-heading h2 button:hover{color:var(--brand)}.visual-heading p{color:var(--muted);font-size:12px}
.visual-open{flex:none;font-size:12px;color:var(--brand);min-height:44px;background:none}
.visual-alerts{list-style:none;display:flex;gap:6px 16px;flex-wrap:wrap;padding:0 20px 14px;margin:0;font-size:12px;font-weight:600}
.visual-alerts li::before{content:'!';display:inline-grid;place-items:center;width:16px;height:16px;border:1px solid currentColor;border-radius:50%;margin-right:6px;font-size:10px}
.visual-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 20px;gap:24px}
.visual-chart{min-width:0;padding-top:14px;border-top:1px solid var(--line);display:grid;grid-template-rows:auto minmax(46px,auto) 12px minmax(36px,auto) auto;align-content:start;row-gap:8px}.visual-chart h3{font-size:13px;font-weight:600;color:var(--muted)}
.visual-headline{display:flex;gap:4px 8px;align-items:baseline;flex-wrap:wrap;align-content:start}.visual-headline>strong{font-size:32px;font-weight:650;letter-spacing:-.035em;line-height:1.2;overflow-wrap:anywhere;min-width:0}.visual-headline>span{font-size:12px;color:var(--muted)}
.visual-headline strong small,.visual-pair strong small{font-size:11px;color:var(--muted);font-weight:400;margin-left:3px;letter-spacing:0;white-space:nowrap}.visual-headline.collected>strong{color:var(--success)}
.chart-bar-slot{min-width:0;height:12px}.visual-track{height:12px;overflow:hidden;border-radius:3px;background:var(--subtle);border:1px solid var(--line)}.visual-track>i{display:block;height:100%;background:var(--brand)}
.visual-track.collection{background:repeating-linear-gradient(135deg,var(--subtle),var(--subtle) 4px,var(--line) 4px,var(--line) 5px)}.visual-track.collection>i{background:var(--success)}
.visual-track.fund>i{background:var(--brand)}
.chart-caption,.chart-ratio{font-size:12px;line-height:1.5;color:var(--muted)}.chart-ratio strong{font-weight:600;color:var(--text);white-space:nowrap}.chart-caption{margin-top:6px}
.visual-pair{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.visual-pair>div{min-width:0}.visual-pair dt{color:var(--muted);font-size:12px;line-height:1.5}.visual-pair dd{margin:3px 0 0;overflow-wrap:anywhere}.visual-pair strong{font-size:18px;font-weight:600;line-height:1.4}
.visual-method{font-size:11px;line-height:1.5;color:var(--muted);padding:12px 20px}
.visual-summary{display:grid;grid-template-columns:1.1fr 1.25fr 1fr .8fr;gap:20px;padding:16px 20px;background:var(--subtle);border-top:1px solid var(--line)}.visual-summary>section{min-width:0}.visual-summary>section+section{border-left:1px solid var(--line);padding-left:20px}.visual-summary h3{font-size:13px;margin-bottom:10px}.visual-summary .visual-pair strong{font-size:18px}.visual-summary .warning{font-size:12px;margin-top:6px}
.summary-count{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}.summary-count strong{font-size:24px;line-height:1.2}.summary-count span{font-size:12px;color:var(--muted)}.visual-summary .deadline-stack{height:7px;margin:8px 0}.work-key{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--muted)}.work-key i{display:inline-block;width:6px;height:6px;margin-right:5px}.work-key strong{margin-left:3px;color:var(--text)}
.visual-workspace .board-area{min-width:0}.visual-workspace #detail-body{max-height:calc(100dvh - 140px)}
@container(max-width:900px){.visual-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.visual-summary>section+section{padding-left:0;border-left:0}.visual-summary>section:nth-child(even){border-left:1px solid var(--line);padding-left:16px}.visual-summary>section:nth-child(n+3){padding-top:12px;border-top:1px solid var(--line)}.visual-charts{gap:16px}.visual-headline>strong{font-size:28px}.visual-pair{gap:8px}.visual-chart .visual-pair{grid-template-columns:minmax(0,1fr)}}
@container(max-width:520px){.visual-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.acceptance-chart{grid-column:1/-1}.acceptance-chart .visual-pair{grid-template-columns:repeat(2,minmax(0,1fr))}.visual-heading{align-items:flex-start}.visual-heading h2 button{font-size:22px}.visual-meta{font-size:11px;gap:3px 8px}.visual-meta>span+span{padding-left:8px}.visual-chart{grid-template-rows:auto minmax(58px,auto) 12px minmax(54px,auto) auto}.acceptance-chart{grid-template-columns:1fr auto;grid-template-rows:auto 12px auto auto;align-items:center}.acceptance-chart h3{grid-column:1}.acceptance-chart .visual-headline{grid-column:2;grid-row:1}.acceptance-chart .visual-headline>span{display:none}.acceptance-chart .chart-bar-slot,.acceptance-chart .chart-ratio,.acceptance-chart .visual-pair{grid-column:1/-1}.visual-headline>span{flex-basis:100%}.visual-summary .visual-pair{grid-template-columns:minmax(0,1fr);gap:8px}}
@media(max-width:1100px){.visual-projects{grid-template-columns:minmax(0,1fr)}.visual-heading h2 button,.single-project .visual-heading h2 button{font-size:24px}}
@media(max-width:600px){
 .desk-filters{display:block;flex:none}.desk-filters>summary{display:block;cursor:pointer;min-height:44px;padding:11px 9px;border:1px solid var(--line);border-radius:6px;font-size:12px}.desk-filters[open]>summary{background:var(--selected)}
 .desk-filters .filter-controls{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:10;display:flex;flex-wrap:wrap;gap:12px;padding:14px;background:var(--panel);border:1px solid var(--border);box-shadow:0 8px 28px #0003;border-radius:8px}
 .desk-filters .search{order:0;flex-basis:100%}.desk-filters .check{order:1;width:100%}.desk-filters .sort{order:2;width:100%;flex-basis:100%}.desk-filters input,.desk-filters select{min-height:44px}.desk-toolbar>#refresh{font-size:11px;padding:8px;order:0}
 .appbar{gap:8px;padding:8px 12px}.appbar .lockup{margin:0;flex:1}.appbar .preview-tag{display:none}.lockup>div>span{display:none}.app-tools>summary{font-size:12px}.local-mode{font-size:11px;padding:6px 12px}
 main{padding:12px}.desk-toolbar{padding:8px;gap:6px}.desk-toolbar .view-switch{flex:1}.desk-toolbar .view-switch button{flex:1}.desk-toolbar .check{margin-left:0;font-size:11px}.desk-toolbar .sort select,.desk-toolbar .search input{font-size:16px}.desk-toolbar .sort{min-width:0}
 .sync-line{font-size:11px;gap:3px}.metrics small{display:none}.metrics{padding:10px 0}.metrics>div,.metrics>div:first-child,.metrics>div:last-child,.metrics>div:nth-child(odd){grid-template-columns:minmax(0,1fr)}.metrics strong{font-size:22px}.metrics span{font-size:11px}
 .board-heading{padding:10px 12px}.board-heading #board-hint{font-size:10px}.visual-projects{padding:0;gap:12px;background:var(--page)}.project-visual{border-inline:0;border-radius:0}.visual-heading{padding:14px 12px 10px;gap:8px;align-items:flex-start}.visual-heading h2 button,.single-project .visual-heading h2 button{font-size:22px}.visual-heading p{font-size:11px}.visual-meta{font-size:11px}.visual-open{padding:8px;font-size:11px}
 .visual-alerts{padding-inline:12px;font-size:12px}.visual-charts{padding-inline:12px}.visual-method{padding-inline:12px}.visual-summary{padding:14px 12px}.board-note>span{font-size:10px}.login{margin-top:24px}
}
/* Whole-interface scaling: shared logical viewport bounds keep dialogs reachable. */
#display-settings{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;overflow:auto;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 60px #0005}
#display-settings::backdrop{background:rgb(2 6 23 / .65)}
.display-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.display-heading h2{margin:0;font-size:20px}
#content,#content:has(.single-project:not([hidden])){width:100%;max-width:none}
.display-profile label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.display-profile select{width:100%;min-height:48px;min-width:0;font-size:16px;background:var(--page)}
#display-profile-help,#display-viewport,#display-fit,#display-column-help{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}
#display-advanced{border-top:1px solid var(--line);margin-top:16px;padding-top:8px}
#display-advanced summary{min-height:44px;cursor:pointer;padding:12px 0;font-size:13px;color:var(--text)}
#display-advanced .display-fields{margin:8px 0 12px}
#display-description{color:var(--muted);font-size:14px;line-height:1.6;margin:16px 0 24px}
.display-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.display-fields label{display:grid;align-content:start;gap:8px;font-size:14px;font-weight:600;min-width:0}
.display-fields select{width:100%;min-width:0;min-height:44px;font-size:16px;background:var(--page)}
.display-fields small{font-size:12px;line-height:1.6;color:var(--muted);font-weight:400}
#display-status{font-size:13px;line-height:1.6;padding:12px;background:var(--subtle);border-radius:6px;margin:20px 0}
#display-unsupported{font-size:13px;line-height:1.6}
.display-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:16px}
.display-footer small{max-width:260px;font-size:12px;line-height:1.6;color:var(--muted)}
#display-settings button{min-height:44px;flex-shrink:0}
#visual-projects{grid-template-columns:repeat(var(--desk-columns,1),minmax(0,1fr))}
#workspace .board-area button{min-height:max(44px,calc(44px / var(--desk-scale,1)));min-width:calc(44px / var(--desk-scale,1))}
@media(max-width:600px){#display-settings{padding:20px}.display-fields{grid-template-columns:1fr;gap:20px}.display-footer{align-items:flex-start;flex-wrap:wrap}}
body{--desk-window-width:100vw;--desk-window-height:100dvh}
#display-settings,#install-guide{width:min(560px,calc(var(--desk-window-width) - 32px));max-height:calc(var(--desk-window-height) - 32px)}
#sources{width:min(1100px,calc(var(--desk-window-width) - 32px));max-height:calc(var(--desk-window-height) - 32px)}
body[data-desk-wide=true] .workspace.with-detail{grid-template-columns:minmax(0,1fr) 360px}
body[data-desk-wide=false] .workspace.with-detail{grid-template-columns:minmax(0,1fr)}
#detail[open]:not(:modal){position:static;width:360px;max-height:none;box-shadow:none}
#detail:modal{position:fixed;inset:12px 12px 12px auto;width:min(450px,calc(var(--desk-window-width) - 24px));max-height:calc(var(--desk-window-height) - 24px);border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 60px #0005}
#detail-body,.visual-workspace #detail-body{max-height:max(180px,calc(var(--desk-window-height) - 140px));min-height:0}
#detail:modal #detail-body{max-height:calc(var(--desk-window-height) - 100px)}
.board-scroll{max-height:max(180px,calc(var(--desk-window-height) - 398px))}
.login{margin-top:min(60px,calc(var(--desk-window-height) * .08))}
body .app-actions button,body .view-switch button,body .detail-top button,body .pagination button{min-height:max(44px,calc(44px / var(--desk-scale,1)))}
