:root{--bg-dark:#08100c;--ace:#22e340;--ace-dark:#087f24;--ace-deep:#0b3418;--amber:#e9a21d;--red:#c63d32;--bg-page:#eef4f0;--surface:#fff;--surface-2:#f6f9f7;--surface-hover:#f7fbf8;--ink:#15201a;--ink-soft:#4b584f;--heading:#0d1814;--muted:#65736b;--line:#dce5df;--line-soft:#e8efea;--line-strong:#cbd6cf;--pill-bg:#edf1ee;--ok-bg:#e8f8ec;--ok-ink:#17682f;--ok-line:#bfe6c8;--bad-bg:#fff0ee;--bad-ink:#8d2828;--bad-line:#f0c7c3;--warn-bg:#fff4dc;--warn-bg-soft:#fffdf7;--warn-ink:#805100;--warn-line:#f0d9a8;--info-bg:#e6f0fb;--info-ink:#315f8a;--info-line:#4d83b9;--accent-bg:#f1faf3;--accent-line:#ccebd2;--accent-hover:#066d1e;--chart-compare:#c2d4c7;--chart-compare-line:#9fb3a6;--chart-zero:#a8bbaf;--shadow:0 6px 18px rgba(3,13,7,.08),0 2px 5px rgba(3,13,7,.05);--shadow-lg:0 18px 45px rgba(3,13,7,.18);--radius:10px;--radius-lg:14px;--ease:cubic-bezier(.4,0,.2,1);--body-gradient:linear-gradient(135deg,rgba(34,227,64,.08),transparent 42%),linear-gradient(180deg,#101b15 0,var(--bg-page) 360px,var(--bg-page) 100%)}
/* Dark theme. Only the tokens move - every rule below is written against
   them, so the two themes cannot drift apart rule by rule. The brand
   constants above are absent on purpose: the topbar and hero are dark
   green in both themes and already read correctly. */
[data-theme="dark"]{--bg-page:#0d1410;--surface:#1a2520;--surface-2:#15201b;--surface-hover:#243029;--ink:#e6efe9;--ink-soft:#c3d4c9;--heading:#f3faf5;--muted:#8fa297;--line:#2a3830;--line-soft:#1f2c25;--line-strong:#3a4d42;--pill-bg:#243029;--ace-dark:#2fd94f;--accent-hover:#4ceb69;--ace-deep:#c9f5d3;--ok-bg:rgba(34,197,94,.16);--ok-ink:#6be087;--ok-line:rgba(34,197,94,.34);--bad-bg:rgba(248,113,113,.14);--bad-ink:#fca5a5;--bad-line:rgba(248,113,113,.32);--warn-bg:rgba(234,179,8,.16);--warn-bg-soft:rgba(234,179,8,.07);--warn-ink:#fbcb52;--warn-line:rgba(234,179,8,.32);--info-bg:rgba(96,165,250,.16);--info-ink:#93c5fd;--info-line:rgba(96,165,250,.42);--accent-bg:rgba(34,227,64,.10);--accent-line:rgba(34,227,64,.30);--chart-compare:#3d5147;--chart-compare-line:#7d968a;--chart-zero:#556b5e;--red:#f8827a;--amber:#f0b53c;--shadow:0 6px 18px rgba(0,0,0,.45),0 2px 5px rgba(0,0,0,.3);--shadow-lg:0 18px 45px rgba(0,0,0,.55);--body-gradient:linear-gradient(135deg,rgba(34,227,64,.06),transparent 42%),linear-gradient(180deg,#0a120e 0,var(--bg-page) 360px,var(--bg-page) 100%);color-scheme:dark}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;min-height:100vh;background:var(--body-gradient);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;-webkit-font-smoothing:antialiased}.app-shell{width:min(1440px,100%);margin:auto;padding:18px}.topbar{min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#fff}.brand{display:flex;align-items:center;gap:16px;color:#fff;text-decoration:none}.brand img{width:clamp(126px,18vw,188px);height:auto}.brand>span{display:grid;line-height:1.15;border-left:1px solid rgba(255,255,255,.24);padding-left:16px}.brand small{text-transform:uppercase;letter-spacing:.08em;color:var(--ace);font-size:10px;font-weight:800}.brand strong{font-size:19px}.topbar-actions,.identity{display:flex;align-items:center;gap:12px}.live-pill,.identity{padding:8px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);font-size:13px}.live-pill{display:flex;align-items:center;gap:8px;color:#eaffed}.live-pill i{width:8px;height:8px;border-radius:50%;background:var(--ace);box-shadow:0 0 12px var(--ace)}.identity>span{display:grid;line-height:1.2}.identity small{text-transform:capitalize;color:#b9cabf}.identity a{color:#eaffed;text-decoration:none;font-weight:700;padding-left:10px;border-left:1px solid rgba(255,255,255,.2)}main{padding:28px 4px 74px}.hero{display:flex;justify-content:space-between;gap:32px;align-items:end;color:#fff;margin:8px 0 26px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--ace-dark);font-size:11px;font-weight:800}.hero .eyebrow{color:var(--ace)}.hero h1,.center-card h1{color:inherit;font-size:clamp(30px,4vw,46px);line-height:1.1;letter-spacing:-.025em;margin:5px 0 8px}.hero p{color:#c8d5cc;font-size:16px;margin:0}.day-nav{display:flex;align-items:center;gap:10px;padding:9px;border:1px solid rgba(255,255,255,.18);border-radius:var(--radius);background:rgba(0,0,0,.24)}.day-nav a,.day-nav span{color:#effaf2;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap}.day-nav span{opacity:.35}.day-nav select{border:1px solid rgba(255,255,255,.2);background:#142a1d;color:#fff;border-radius:6px;padding:8px;font-weight:700}.summary-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden;margin-bottom:24px}.summary-strip div{display:grid;gap:1px;padding:16px 20px;border-right:1px solid var(--line-soft)}.summary-strip div:last-child{border:0}.summary-strip strong{font-size:25px;line-height:1;color:var(--heading)}.summary-strip div:first-child strong{color:var(--ace-dark)}.summary-strip span{font-size:12px;color:var(--muted);font-weight:600}.flash{padding:12px 15px;border-radius:var(--radius);margin:14px 0;border:1px solid}.flash.success{background:var(--ok-bg);color:var(--ok-ink);border-color:var(--ok-line)}.flash.error{background:var(--bad-bg);color:var(--bad-ink);border-color:var(--bad-line)}.report{margin-top:28px}.report-heading{display:flex;justify-content:space-between;align-items:end;margin:0 2px 11px}.report-heading span{color:var(--ace-dark);text-transform:uppercase;font-size:10px;letter-spacing:.09em;font-weight:800}.report-heading h2{margin:2px 0 0;color:var(--heading);font-size:22px;letter-spacing:-.01em}.report-heading>b{color:var(--muted);font-size:12px}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.item{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow);position:relative;overflow:hidden}.item.required{border-left:4px solid var(--amber)}.item.status-completed{border-left-color:var(--ace-dark)}.item.status-declined{border-left-color:var(--muted)}.item.status-snoozed{border-left-color:var(--info-line)}.item.status-not_important{border-left-color:var(--line-strong)}.item-head{display:flex;justify-content:space-between;gap:16px}.item h3{color:var(--heading);font-size:19px;line-height:1.25;margin:6px 0}.meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:800}.meta strong{background:var(--warn-bg);color:var(--warn-ink);padding:3px 7px;border-radius:999px}.status{height:max-content;background:var(--pill-bg);border-radius:999px;padding:5px 9px;white-space:nowrap;text-transform:capitalize;color:var(--ink-soft);font-size:10px;font-weight:800}.status-completed .status{background:var(--ok-bg);color:var(--ok-ink)}.status-declined .status{background:var(--pill-bg);color:var(--muted)}.status-in_progress .status{background:var(--info-bg);color:var(--info-ink)}.status-snoozed .status{background:var(--info-bg);color:var(--info-ink)}.status-not_important .status{background:var(--pill-bg);color:var(--muted)}.summary{color:var(--ink-soft)}.callout{border-left:3px solid var(--line-strong);padding:2px 0 2px 12px;margin:14px 0}.callout.action{border:1px solid var(--accent-line);border-left:3px solid var(--ace-dark);background:var(--accent-bg);padding:10px 12px;border-radius:0 8px 8px 0}.callout b{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--ace-deep)}.callout p{margin:3px 0}details{border-top:1px solid var(--line-soft);padding-top:12px;margin-top:15px}summary{cursor:pointer;color:var(--ace-dark);font-size:13px;font-weight:800}.evidence{display:grid;gap:9px;margin:14px 0}.evidence div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:10px}.evidence dt{text-transform:capitalize;color:var(--muted);font-size:13px}.evidence dd{margin:0;overflow-wrap:anywhere}.evidence pre{white-space:pre-wrap;max-height:260px;overflow:auto;margin:0;padding:9px;border-radius:6px;background:var(--surface-2);font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,monospace}.source{color:var(--ace-dark);font-size:13px;font-weight:800}.response-form{border-top:1px solid var(--line-soft);margin-top:16px;padding-top:15px}.response-heading{display:grid;margin-bottom:11px}.response-heading b{color:var(--heading)}.response-heading span{font-size:12px;color:var(--muted)}.response-form label{display:block;font-size:12px;font-weight:800;color:var(--ink-soft)}.response-form textarea{display:block;width:100%;min-height:78px;resize:vertical;margin:6px 0 10px;border:1px solid var(--line-strong);border-radius:6px;padding:10px;background:var(--surface);color:inherit;font:inherit}.response-form textarea:focus,.response-form input:focus{outline:0;border-color:var(--ace-dark);box-shadow:0 0 0 3px rgba(8,127,36,.12)}.response-form .snooze{display:flex;align-items:center;gap:8px}.response-form input[type=date]{border:1px solid var(--line-strong);border-radius:6px;padding:6px;background:var(--surface);color:inherit}.actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}button,.button{border:1px solid var(--line-strong);background:var(--surface);border-radius:6px;padding:9px 13px;color:var(--ace-dark);font:inherit;font-weight:800;cursor:pointer;text-decoration:none;transition:transform .15s var(--ease),box-shadow .15s var(--ease),background .15s var(--ease)}button:hover,.button:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(3,13,7,.12)}button.complete,.button.primary{background:var(--ace-dark);color:var(--surface);border-color:var(--ace-dark)}button.complete:hover,.button.primary:hover{background:var(--accent-hover)}.decline{color:var(--red)}.dismiss{color:var(--muted);border-color:var(--line)}.resolved-response{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line-soft);margin-top:16px;padding-top:14px}.resolved-response b{color:var(--ace-dark)}.resolved-response p{margin:2px 0;color:var(--muted)}.center-card,.empty{max-width:680px;margin:7vh auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:clamp(28px,6vw,54px);box-shadow:var(--shadow-lg)}.center-card{max-width:440px}.center-card h1{color:var(--heading);font-size:32px}.empty h2{color:var(--heading);font-size:26px;letter-spacing:-.01em;margin:6px 0 10px}.center-card p,.empty p{font-size:16px;color:var(--muted);margin-bottom:26px}.notice{padding:12px;background:var(--warn-bg);border-radius:7px}
@media(max-width:820px){.app-shell{padding:12px}.topbar{min-height:74px}.brand img{width:128px}.brand>span{display:none}.live-pill{display:none}main{padding-top:20px}.hero{display:block}.day-nav{margin-top:18px;justify-content:space-between}.cards{grid-template-columns:1fr}.summary-strip{grid-template-columns:repeat(2,1fr)}.summary-strip div:nth-child(2){border-right:0}.summary-strip div:nth-child(-n+2){border-bottom:1px solid var(--line-soft)}}
@media(max-width:520px){.identity>span{display:none}.identity{padding:7px 10px}.identity a{border:0;padding:0}.hero h1{font-size:30px}.hero p{font-size:14px}.day-nav{gap:5px}.day-nav a{font-size:0}.day-nav a:first-child:after{content:'← Earlier';font-size:12px}.day-nav a:last-child:before{content:'Later →';font-size:12px}.day-nav select{max-width:126px}.item{padding:16px}.item-head{display:block}.status{display:inline-block;margin-top:4px}.evidence div{grid-template-columns:1fr;gap:2px}.actions button{flex:1 1 calc(50% - 7px)}.response-form .snooze{align-items:flex-start;flex-direction:column}.resolved-response{align-items:flex-start}.center-card{margin-top:4vh}}
/* Superadmin dashboard directory */
.admin-console{display:flex;align-items:end;justify-content:space-between;gap:22px;margin:-4px 0 20px;padding:16px 18px;border:1px solid rgba(34,227,64,.28);border-radius:var(--radius-lg);background:rgba(4,18,10,.7);color:#fff;box-shadow:var(--shadow)}.admin-heading{display:grid;min-width:max-content}.admin-heading span{color:var(--ace);font-size:10px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.admin-heading strong{font-size:18px}.admin-console>p{margin:0;color:#c8d5cc}.admin-picker{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex:1}.admin-picker label{display:grid;gap:4px;color:#c8d5cc;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.admin-picker label:nth-child(2){min-width:min(340px,32vw)}.admin-picker select{width:100%;min-height:38px;border:1px solid rgba(255,255,255,.24);border-radius:6px;background:#142a1d;color:#fff;padding:7px 9px;font:inherit;text-transform:none;letter-spacing:0}.admin-picker button{min-height:38px;background:var(--ace-dark);border-color:#25a845;color:#fff}.preview-notice{display:flex;justify-content:space-between;gap:16px;margin-bottom:16px;padding:10px 14px;border:1px solid var(--ok-line);border-radius:8px;background:var(--ok-bg);color:var(--ace-deep);font-size:13px}.preview-notice span{color:var(--muted)}
@media(max-width:820px){.admin-console{display:block}.admin-picker{display:grid;grid-template-columns:1fr 1fr;margin-top:12px}.admin-picker label:nth-child(2){min-width:0}.admin-picker button{grid-column:1/-1}}@media(max-width:520px){.admin-picker{grid-template-columns:1fr}.admin-picker button{grid-column:auto}.preview-notice{display:grid}}
.recipients-table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow)}.recipients-table{width:100%;border-collapse:collapse;font-size:14px}.recipients-table th,.recipients-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line-soft)}.recipients-table th{color:var(--muted);text-transform:uppercase;font-size:10px;letter-spacing:.08em}.recipients-table tr:last-child td{border-bottom:none}.recipients-table button{padding:6px 10px;font-size:12px}.recipients-form{display:grid;gap:12px;max-width:480px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow)}.recipients-form label{display:grid;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}.recipients-form input,.recipients-form select,.recipients-form textarea{width:100%;min-width:0;max-width:100%;padding:9px 11px;border:1px solid var(--line);border-radius:6px;font:inherit;background:var(--surface);color:inherit}.recipients-form select{text-overflow:ellipsis}.recipients-form label{min-width:0}.recipients-form input[type=checkbox]{width:auto;min-width:0;padding:0}.field-note{display:block;font-weight:500;font-size:12px;color:var(--muted);text-transform:none;letter-spacing:0;margin-top:2px}.recipients-enrolled{display:flex!important;flex-direction:row;align-items:center;gap:8px}.recipients-form button{justify-self:start;width:auto}
/* Branch manager's team panel - sits on the dark upper gradient. */
.team-panel{margin:-4px 0 22px;padding:16px 18px;border:1px solid rgba(34,227,64,.28);border-radius:var(--radius-lg);background:rgba(4,18,10,.7);color:#fff;box-shadow:var(--shadow)}
.team-head{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:14px}
.team-head .button{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#eaffed}
.roster-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.roster-summary div{display:grid;gap:2px;padding:12px 14px;border:1px solid rgba(255,255,255,.14);border-radius:var(--radius);background:rgba(0,0,0,.24)}
.roster-summary strong{font-size:26px;line-height:1;color:#fff}
.roster-summary div:first-child strong{color:var(--ace)}
.roster-summary span{color:#9db0a4;font-size:12px;font-weight:600}
@media(max-width:520px){.roster-summary{grid-template-columns:1fr}}
.team-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(216px,1fr));gap:10px}
.team-card{min-width:0}
.team-name,.team-meta,.team-count{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-card{display:grid;gap:3px;padding:12px 14px;border:1px solid rgba(255,255,255,.16);border-radius:var(--radius);background:rgba(0,0,0,.26);color:#dcebe0;text-decoration:none;transition:border-color .15s var(--ease),transform .15s var(--ease)}
.team-card:hover{border-color:rgba(34,227,64,.5);transform:translateY(-1px)}
.team-card.current{border-color:#25a845;background:rgba(8,127,36,.34)}
.team-name{color:#fff;font-weight:800;font-size:15px}
.team-meta{color:#8ea595;font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:800}
.team-count{margin-top:5px;font-size:12px;font-weight:700}
.team-count.owing{color:var(--amber)}
.team-count.clear{color:var(--ace)}
.team-count.none{color:#7d8c83}
@media(max-width:520px){.team-head{display:block}.team-head .button{margin-top:10px}.team-grid{grid-template-columns:1fr}}
.flash.warn{background:var(--warn-bg);color:var(--warn-ink);border-color:var(--warn-line)}
.flash.warn code{background:rgba(0,0,0,.06);padding:1px 5px;border-radius:4px;font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}
.view-as{display:flex;justify-content:flex-end;margin:0 0 14px}.view-as label{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.view-as select{border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:6px;padding:7px 9px;font:13px/1.3 inherit;font-weight:700;text-transform:none;letter-spacing:normal}
fieldset{border:0;margin:0;padding:0;min-width:0}fieldset[disabled]{opacity:.55}fieldset[disabled] button,fieldset[disabled] .button{cursor:not-allowed}
.row-actions{display:flex;gap:7px;align-items:center;white-space:nowrap}
/* Collapsible, reorderable sections. The <details> does the folding on its
   own; script only persists the choice and adds dragging. */
.board{display:grid;gap:14px}
.board-section{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.board-section.is-dragging{opacity:.55;outline:2px dashed var(--ace-dark);outline-offset:-2px}
.section-head{display:flex;align-items:center;gap:12px;padding:13px 16px;cursor:pointer;list-style:none;user-select:none}
.section-head::-webkit-details-marker{display:none}
.section-head::before{content:'▸';color:var(--muted);font-size:12px;transition:transform .15s var(--ease)}
.board-section[open]>.section-head::before{transform:rotate(90deg)}
.board-section[open]>.section-head{border-bottom:1px solid var(--line-soft)}
.grip{color:var(--muted);cursor:grab;letter-spacing:-2px;font-size:15px}
.section-head:active .grip{cursor:grabbing}
.section-name{font-weight:800;color:var(--heading);font-size:16px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.section-meta{display:flex;align-items:center;gap:8px;white-space:nowrap}
.section-meta .count{color:var(--muted);font-size:12px;font-weight:700}
.section-meta .needs{background:var(--warn-bg);color:var(--warn-ink);padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.section-move{display:flex;gap:4px}
.section-move .move{padding:3px 8px;font-size:12px;line-height:1.2;color:var(--muted);border-color:var(--line)}
.section-move .move:hover{color:var(--ace-dark);border-color:var(--ace-dark);transform:none;box-shadow:none}
.section-body{padding:14px 16px 16px}
.section-body>.info-list:first-child{margin-top:-14px}.section-body>.info-list{margin:0 -16px -16px}
.section-body .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:820px){.section-body .cards{grid-template-columns:1fr}}
@media(max-width:520px){.section-head{padding:11px 12px;gap:9px}.section-name{font-size:15px}.section-body{padding:12px}.grip{display:none}}
/* Informational element type - read, don't respond. Won / proposed work. */
.info-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:14px;overflow:hidden}
.info-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:14px 18px;border-bottom:1px solid var(--line-soft)}
.info-head h3{margin:0;color:var(--heading);font-size:17px;letter-spacing:-.01em}
.info-head b{color:var(--muted);font-size:12px}
.info-list{list-style:none;margin:0;padding:0}
.info-list li{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:11px 18px;border-bottom:1px solid var(--line-soft)}
.info-list li:last-child{border-bottom:0}
.info-list li:nth-child(even){background:var(--surface-2)}
.info-main{display:grid;gap:2px;min-width:0}
.info-title{color:var(--heading);font-weight:700;overflow:hidden;text-overflow:ellipsis}
.info-sub{color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis}
.info-value{color:var(--ace-dark);font-weight:800;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:520px){.info-list li{padding:10px 14px}.info-head{padding:12px 14px}}
/* An item that is not demanding a response can still be closed out; the
   controls stay folded away so a long queue does not become a wall of forms. */
details.optional-response{border-top:1px solid var(--line-soft);margin-top:14px;padding-top:12px}
details.optional-response>summary{color:var(--ace-dark)}
details.optional-response .response-form{border-top:0;margin-top:4px;padding-top:0}
details.optional-response .handoff-form{border-top:1px solid var(--line-soft);margin-top:14px;padding-top:14px}
/* Item note log - attached to the item, so it travels with a handoff. */
details.notes{border-top:1px solid var(--line-soft);padding-top:12px;margin-top:14px}
details.notes>summary{color:var(--ace-dark)}
.note-log{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.note-log li{border-left:3px solid var(--line);padding:2px 0 2px 12px}
.note-by{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.note-by b{color:var(--heading);font-size:13px}
.note-by time{color:var(--muted);font-size:11px}
.note-log p{margin:2px 0 0;color:var(--ink-soft)}
.note-empty{color:var(--muted);font-size:13px;margin:10px 0 0}
.note-form{display:grid;gap:8px;margin-top:12px;max-width:520px}
.note-form label{display:grid;gap:5px;font-size:12px;font-weight:800;color:var(--ink-soft);min-width:0}
.note-form textarea{width:100%;min-width:0;max-width:100%;min-height:60px;resize:vertical;border:1px solid var(--line-strong);border-radius:6px;padding:9px 11px;font:inherit;background:var(--surface);color:inherit}
.note-form button{justify-self:start}
/* Handoff: why an item is here, and giving it to whoever should own it. */
.handed-note{border-left:3px solid var(--info-line);background:var(--info-bg);padding:9px 12px;border-radius:0 8px 8px 0;margin:10px 0}
.handed-note b{color:var(--info-ink);font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.handed-note p{margin:3px 0 0;color:var(--ink-soft)}
.status-handed_off .status{background:var(--info-bg);color:var(--info-ink)}
.item.status-handed_off{border-left-color:var(--info-line)}
details.handoff{border-top:1px solid var(--line-soft);margin-top:14px;padding-top:12px}
details.handoff>summary{color:var(--info-ink)}
.handoff-form{display:grid;gap:10px;margin-top:12px;max-width:520px}
.handoff-form label{display:grid;gap:5px;font-size:12px;font-weight:800;color:var(--ink-soft);min-width:0}
.handoff-form select,.handoff-form textarea{width:100%;min-width:0;max-width:100%;border:1px solid var(--line-strong);border-radius:6px;padding:9px 11px;font:inherit;background:var(--surface);color:inherit}
.handoff-form textarea{min-height:64px;resize:vertical}
.handoff-form button{justify-self:start}
.hint{margin:12px 2px 0;color:var(--muted);font-size:13px;max-width:70ch}
.recipients-table .button{padding:6px 10px;font-size:12px}
/* Subdashboard nav - one tab per report family the signed-in user receives.
   Sits on the dark upper gradient, so it is styled for a dark ground. */
.subnav{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 22px}
.subnav a{display:inline-flex;align-items:center;gap:9px;padding:9px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.24);color:#dcebe0;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap;transition:border-color .15s var(--ease),color .15s var(--ease),transform .15s var(--ease)}
.subnav a:hover{border-color:rgba(34,227,64,.45);color:#fff;transform:translateY(-1px)}
.subnav a.current{background:var(--ace-dark);border-color:#25a845;color:#fff;box-shadow:0 6px 18px rgba(8,127,36,.32)}
.subnav b{min-width:20px;height:20px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--amber);color:#3a2600;font-size:11px;font-weight:800}
.subnav a.current b{background:#fff;color:var(--ace-dark)}
@media(max-width:520px){.subnav{gap:6px;margin-bottom:16px}.subnav a{padding:8px 12px;font-size:12px}}
/* The sign-in screen and the hero's date picker are permanently dark in
   BOTH themes, so any #fff on them is a literal on purpose - swapping it
   for --surface makes it invisible the moment dark mode is on. */
/* Full-bleed sign-in screen (no topbar - see base.html's hide_chrome) */
.auth-body{background:radial-gradient(ellipse 900px 560px at 50% -8%,rgba(34,227,64,.20),transparent 62%),linear-gradient(180deg,#0b1712 0%,#060a07 70%,#050807 100%);color:#eaf3ec}
.app-shell-bare{width:100%;max-width:none;padding:0;min-height:100vh}
.auth-main{display:flex;min-height:100vh}
.auth-screen{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:8vh 24px;text-align:center}
.auth-card{display:grid;justify-items:center;max-width:440px}
.auth-logo{width:200px;max-width:64vw;height:auto;border-radius:12px;box-shadow:0 0 0 1px rgba(34,227,64,.22),0 18px 60px rgba(34,227,64,.16);margin-bottom:26px}
.auth-card .eyebrow{color:var(--ace)}
.auth-card h1{color:#fff;font-size:clamp(26px,4vw,38px);line-height:1.15;letter-spacing:-.02em;margin:10px 0 12px}
.auth-card p{color:#aebfb4;font-size:15px;line-height:1.6;margin:0 0 30px;max-width:38ch}
.ms-button{display:inline-flex;align-items:center;gap:14px;background:var(--surface);color:#1b1b1b;border-radius:8px;padding:13px 22px;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .15s var(--ease),box-shadow .15s var(--ease)}
.ms-button:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(0,0,0,.42)}
.ms-button svg{width:19px;height:19px;flex:none}
.auth-card .notice{background:rgba(233,162,29,.14);color:#ffd98c;border:1px solid rgba(233,162,29,.35)}
.auth-footer{color:#5c6b62;font-size:12px;letter-spacing:.02em}
@media(max-width:520px){.auth-screen{padding:10vh 20px;gap:20px}.auth-logo{width:168px;margin-bottom:20px}}

/* Metric panel element type - a number against a target, over time. Read, not
   answered. Geometry comes from app/panels.py; nothing here does arithmetic. */
.panel{margin:0 0 16px;padding:0;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.panel:last-child{margin-bottom:0}
.panel-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:18px;padding:16px 18px 14px}
.panel-title h3{margin:0;color:var(--heading);font-size:17px;letter-spacing:-.01em}
.panel-title span{color:var(--muted);font-size:12px;font-weight:600}
.panel-figures{display:flex;align-items:end;gap:22px;flex-wrap:wrap}
.panel-figures>div{display:grid;gap:2px}
.panel-figures span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.panel-figures strong{font-size:24px;line-height:1;color:var(--heading);font-variant-numeric:tabular-nums}
.panel-target strong{font-size:18px;color:var(--muted)}
.panel-delta strong{font-size:18px}
.panel-delta.good strong{color:var(--ace-dark)}
.panel-delta.bad strong{color:var(--red)}
.panel-delta.neutral strong{color:var(--muted)}
.panel-chart{padding:2px 18px 4px}
.plot{position:relative;padding-left:48px}
.plot svg{display:block;width:100%;height:190px;overflow:visible}
.y-axis{position:absolute;left:0;top:0;bottom:0;width:46px}
.y-axis span{position:absolute;right:8px;transform:translateY(-50%);color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.x-axis{display:flex;padding-left:48px;margin-top:7px}
.x-axis span{flex:1 1 0;min-width:0;text-align:center;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.panel-chart .grid{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}
.panel-chart .grid.zero{stroke:var(--chart-zero);stroke-width:1.5}
.panel-chart .bar.series{fill:var(--ace-dark)}
.panel-chart .bar.compare{fill:var(--chart-compare)}
.panel-chart .line{stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.panel-chart .line.series{stroke:var(--ace-dark);stroke-width:2.5}
.panel-chart .line.compare{stroke:var(--chart-compare-line);stroke-width:2;stroke-dasharray:5 4}
.panel-legend{display:flex;gap:16px;padding:8px 0 10px 48px}
.panel-legend .key{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;font-weight:700}
.panel-legend .key:before{content:'';width:11px;height:11px;border-radius:3px}
.panel-legend .key.series:before{background:var(--ace-dark)}
.panel-legend .key.compare:before{background:var(--chart-compare)}
.panel-legend.line .key:before{width:16px;height:3px;border-radius:2px}
.panel-legend.line .key.series:before{background:var(--ace-dark)}
.panel-legend.line .key.compare:before{background:repeating-linear-gradient(90deg,var(--chart-compare-line) 0 5px,transparent 5px 9px)}
.panel-read{margin:0 18px 14px;padding:11px 13px;border:1px solid var(--accent-line);border-left:3px solid var(--ace-dark);border-radius:0 8px 8px 0;background:var(--accent-bg)}
.panel-read b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--ace-deep)}
.panel-read p{margin:3px 0 0;color:var(--ink-soft)}
.panel-figures-detail{border-top:1px solid var(--line);margin:0;padding:12px 18px 14px;background:var(--surface)}
.panel-table-wrap{overflow-x:auto;margin-top:10px}
.panel-table{width:100%;border-collapse:collapse;font-size:13px}
.panel-table th,.panel-table td{text-align:left;padding:7px 10px;border-bottom:1px solid var(--line-soft);white-space:nowrap}
.panel-table th{color:var(--muted);text-transform:uppercase;font-size:10px;letter-spacing:.07em}
.panel-table td.num{text-align:right;font-variant-numeric:tabular-nums}
.panel-table td.good{color:var(--ace-dark);font-weight:700}
.panel-table td.bad{color:var(--red);font-weight:700}
.panel-table tr:last-child td{border-bottom:0}
@media(max-width:820px){.panel-head{gap:12px}.panel-figures{gap:16px}}
@media(max-width:520px){.panel-head{display:grid;padding:14px}.panel-figures strong{font-size:21px}.panel-chart{padding:2px 12px 4px}.plot{padding-left:42px}.plot svg{height:158px}.y-axis{width:40px}.y-axis span{right:6px;font-size:10px}.x-axis{padding-left:42px}.x-axis span{font-size:10px}.panel-legend{padding-left:42px}.panel-read{margin:0 12px 12px}.panel-figures-detail{padding:12px}}
/* Crew board - the daily surface an ops manager fills in. Dense on purpose:
   a crew is 8-20 people and the whole day should fit without scrolling past
   the fold on a laptop. */
.day-jump{display:flex}
.day-jump input[type=date]{border:1px solid rgba(255,255,255,.2);background:#142a1d;color:#fff;border-radius:6px;padding:7px;font:inherit;font-weight:700}
.crew-form{margin-top:18px}
.crew-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);margin-bottom:14px}
.crew-bulk{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.crew-bulk label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--ink-soft)}
.crew-bulk select{border:1px solid var(--line);border-radius:6px;padding:8px;font:inherit;background:var(--surface);color:inherit}
.crew-rows{display:grid;gap:8px}
.crew-row{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(130px,1fr) minmax(120px,1fr) minmax(90px,.8fr) auto minmax(140px,1fr);gap:10px;align-items:end;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.crew-row.is-marked{border-left-color:var(--ace-dark)}
.crew-row.not-worked{background:var(--surface-2)}
/* Not display:none - a field that vanishes shifts every column and makes the
   board jump as a manager tabs down it. */
.crew-row.not-worked .worked-only{visibility:hidden}
.crew-who{display:grid;gap:2px;min-width:0}
.crew-who b{color:var(--heading);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crew-who span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.crew-who i{color:var(--warn-ink);font-style:normal}
.crew-field{display:grid;gap:4px;min-width:0}
.crew-field>span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.07em}
.crew-field select,.crew-field input[type=text]{width:100%;min-width:0;border:1px solid var(--line-strong);border-radius:6px;padding:8px;font:inherit;background:var(--surface);color:inherit}
.crew-field select:focus,.crew-field input:focus{outline:0;border-color:var(--ace-dark);box-shadow:0 0 0 3px rgba(8,127,36,.12)}
.crew-flags{display:flex;gap:9px;padding-bottom:8px;white-space:nowrap}
.crew-flags label{display:flex;align-items:center;gap:4px;color:var(--ink-soft);font-size:12px;font-weight:700}
.crew-actions{display:flex;justify-content:flex-end;margin-top:14px}
.crew-verify{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:14px 16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow)}
.crew-verify b{color:var(--heading)}
.crew-verify p{margin:2px 0 0;color:var(--muted);font-size:13px}
@media(max-width:1100px){.crew-row{grid-template-columns:minmax(160px,1.3fr) minmax(120px,1fr) minmax(110px,1fr) minmax(90px,.8fr);row-gap:10px}.crew-flags{grid-column:1/-1;padding-bottom:0}.crew-note{grid-column:1/-1}}
@media(max-width:640px){.crew-row{grid-template-columns:1fr 1fr}.crew-who{grid-column:1/-1}.crew-toolbar{display:grid}.crew-toolbar>.button{justify-self:stretch;text-align:center}.crew-verify{display:grid}}
.topbar-link{color:#eaffed;text-decoration:none;font-size:13px;font-weight:700;padding:8px 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1)}
.topbar-link:hover{border-color:rgba(34,227,64,.5)}
.topbar-link.current{background:rgba(8,127,36,.44);border-color:#25a845}
@media(max-width:520px){.topbar-link{padding:7px 10px}}
/* Crew setup - one small form per row, so a save is scoped to one person,
   truck or route instead of one giant submit that could clobber the lot. */
.setup-link{color:#eaffed;text-decoration:none;font-size:13px;font-weight:700;white-space:nowrap;padding-right:10px;border-right:1px solid rgba(255,255,255,.2)}
.setup-rows{display:grid;gap:8px;margin-bottom:16px}
.setup-row{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.setup-row.is-inactive{background:var(--surface-2);opacity:.72}
.setup-who{display:grid;gap:2px;flex:1 1 190px;min-width:0}
.setup-who b{color:var(--heading);font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.setup-who span{color:var(--muted);font-size:12px}
.setup-who i{color:var(--warn-ink);font-style:normal;font-weight:700}
.setup-row .crew-field{flex:1 1 150px}
.setup-row .crew-field input,.setup-row .crew-field select{width:100%;min-width:0;border:1px solid var(--line-strong);border-radius:6px;padding:8px;font:inherit;background:var(--surface);color:inherit}
.setup-flags{display:flex;flex:0 0 auto;gap:10px;padding-bottom:8px;white-space:nowrap}
.setup-flags label{display:flex;align-items:center;gap:4px;color:var(--ink-soft);font-size:12px;font-weight:700}
.setup-row>.button{flex:0 0 auto;margin-left:auto;padding:8px 16px}
.setup-add{max-width:560px}
.hint{color:var(--muted);font-size:13px;margin:10px 2px 0}
@media(max-width:900px){.setup-who{flex:1 1 100%}.setup-flags{padding-bottom:0}}
/* Snow muster readiness. The escalation machine handles texting and calling;
   this board exists for the people it has given up on, so their rows lead. */
.muster-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow)}
.muster-head.is-open{border-left-color:var(--ace-dark)}
.muster-message{margin:4px 0 6px;color:var(--heading);font-size:17px;line-height:1.4}
.muster-rows{display:grid;gap:8px}
.muster-row{display:grid;grid-template-columns:minmax(200px,1.2fr) minmax(160px,1fr);gap:6px 16px;align-items:center;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.muster-row.needs-human{border-left-color:var(--amber);background:var(--warn-bg-soft)}
.muster-row.state-confirmed{border-left-color:var(--ace-dark)}
.muster-row.state-declined{border-left-color:var(--muted)}
.muster-row.state-no_phone,.muster-row.state-exhausted{border-left-color:var(--red);background:var(--bad-bg)}
.muster-who{display:grid;gap:2px;min-width:0}
.muster-who b{color:var(--heading);font-size:15px}
.muster-who span{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.muster-who i{color:var(--red);font-style:normal;font-weight:700}
.muster-state{display:grid;gap:2px;justify-items:start}
.muster-state b{color:var(--heading);font-size:13px}
.muster-state span{color:var(--muted);font-size:11px;text-transform:capitalize}
.state-confirmed .muster-state b{color:var(--ace-dark)}
.state-exhausted .muster-state b,.state-no_phone .muster-state b{color:var(--red)}
.muster-reply{grid-column:1/-1;color:var(--ink-soft);font-size:13px;padding-top:6px;border-top:1px solid var(--line-soft)}
@media(max-width:640px){.muster-row{grid-template-columns:1fr}.muster-head{display:grid}}
.muster-pick{cursor:pointer;align-items:center}
.muster-pick input[type=checkbox]{flex:0 0 auto;width:17px;height:17px;accent-color:var(--ace-dark)}
.muster-pick .setup-who{display:grid}
.muster-override{grid-column:1/-1;justify-self:end}
.muster-override button{padding:5px 10px;font-size:12px;color:var(--muted);border-color:var(--line)}
.muster-override button:hover{color:var(--red);border-color:var(--red);transform:none;box-shadow:none}
.recipients-row-actions{display:flex;gap:6px;align-items:center}.recipients-row-actions form{margin:0}
.upload-pending b{color:var(--muted)}
.upload-published b{color:var(--ace-dark)}
.upload-failed b{color:var(--red)}
.upload-ignored b{color:var(--muted)}
.status-light{display:flex;align-items:center;gap:12px;padding:11px 14px;border-radius:var(--radius);border:1px solid var(--line);background:var(--surface-2);margin:0 0 14px}
.status-light i{width:10px;height:10px;border-radius:50%;flex:none}
.status-light div{display:grid;gap:1px}
.status-light b{color:var(--heading)}
.status-light span{color:var(--muted);font-size:12px}
.status-light.is-green{border-color:var(--ok-line);background:var(--ok-bg)}
.status-light.is-green i{background:var(--ace-dark);box-shadow:0 0 8px var(--ace-dark)}
.status-light.is-yellow{border-color:var(--warn-line);background:var(--warn-bg-soft)}
.status-light.is-yellow i{background:var(--amber);box-shadow:0 0 8px var(--amber)}
.status-light.is-red{border-color:var(--bad-line);background:var(--bad-bg)}
.status-light.is-red i{background:var(--red);box-shadow:0 0 8px var(--red)}
.recipients-table .field-note{display:block;margin-top:2px}
.recipients-form input[type=file]{width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--surface);font:inherit}
/* Theme toggle. Sits on the dark brand topbar in both themes, like every
   other control up there, so its colours are literals rather than tokens. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.2);
  border-radius:999px;background:rgba(255,255,255,.1);color:#eaffed;
  font-size:15px;line-height:1;cursor:pointer}
.theme-toggle:hover{border-color:rgba(34,227,64,.5);transform:none;
  box-shadow:none;background:rgba(255,255,255,.16)}
.theme-toggle:focus-visible{outline:2px solid var(--ace);outline-offset:2px}
.theme-sun{display:none}
.theme-moon{display:inline}
[data-theme="dark"] .theme-sun{display:inline}
[data-theme="dark"] .theme-moon{display:none}
/* Plain-text references: the rows behind a figure. Readable sentences, not
   the machine-readable evidence payload - one is for deciding, the other for
   debugging. */
.info-expand{flex:1 1 100%;min-width:0;border:0;margin:0;padding:0}
.info-expand>summary{display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;width:100%;color:inherit;font-weight:inherit;font-size:inherit;
  list-style:none;cursor:pointer}
.info-expand>summary::-webkit-details-marker{display:none}
.info-list li{position:relative;padding-right:38px}
.info-expand>summary::after{content:'▸';position:absolute;right:14px;top:12px;
  color:var(--muted);font-size:11px;transition:transform .15s var(--ease)}
.info-expand[open]>summary::after{transform:rotate(90deg)}
.reference-list{list-style:none;margin:10px 0 4px;padding:0;
  border-top:1px solid var(--line-soft)}
.reference-list li{display:flex;align-items:baseline;justify-content:space-between;
  gap:14px;padding:7px 0;border-bottom:1px solid var(--line-soft)}
.reference-list li:last-child{border-bottom:0}
.reference-text{color:var(--ink-soft);font-size:13px;min-width:0;
  overflow-wrap:anywhere}
.reference-text a{color:var(--ace-dark);text-decoration:none}
.reference-text a:hover{text-decoration:underline}
.reference-value{color:var(--heading);font-weight:700;font-size:13px;
  white-space:nowrap;font-variant-numeric:tabular-nums}
details.item-references>summary{color:var(--ace-dark)}
/* The console's dashboard picker reuses the team grid, but on a light page
   rather than the dark brand panel it was built for. */
.team-grid.light .team-card{background:var(--surface);border-color:var(--line);
  color:var(--ink);box-shadow:var(--shadow)}
.team-grid.light .team-card:hover{border-color:var(--ace-dark)}
.team-grid.light .team-name{color:var(--heading)}
.team-grid.light .team-meta{color:var(--muted)}
/* Projects. A card per project, then the detail page reusing the setup-row
   shape so a milestone reads like every other row in this app. */
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px;margin-bottom:22px}
.project-card{display:grid;gap:6px;padding:16px 18px;background:var(--surface);
  border:1px solid var(--line);border-left:4px solid var(--ace-dark);
  border-radius:var(--radius-lg);box-shadow:var(--shadow);color:var(--ink);
  text-decoration:none;transition:transform .15s var(--ease),border-color .15s var(--ease)}
.project-card:hover{transform:translateY(-1px);border-color:var(--ace-dark)}
.project-card.status-paused{border-left-color:var(--amber)}
.project-card.status-done{border-left-color:var(--muted);opacity:.75}
.project-card.status-cancelled{border-left-color:var(--line-strong);opacity:.6}
.project-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.project-head b{color:var(--heading);font-size:16px}
.project-status{color:var(--muted);font-size:10px;font-weight:800;
  text-transform:uppercase;letter-spacing:.07em;white-space:nowrap}
.project-card p{margin:0;color:var(--ink-soft);font-size:13px}
.project-meta{display:flex;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:12px;font-weight:600}
.project-meta .is-late{color:var(--red);font-weight:800}
.milestone.is-late{border-left:4px solid var(--red)}
.milestone.status-done{opacity:.65}
.milestone.status-dropped{opacity:.5}
.milestone-detail{color:var(--ink-soft);font-size:12px}
.project-notes{margin-top:16px}
/* The first summary tile is green by default, which reads as good news. An
   overdue count is not good news. */
.summary-strip div.is-bad strong{color:var(--red)}

/* The nightly read. Set apart from the sections a person typed, because
   knowing which sentences came from a model is part of judging them. */
.brief-standing{margin:0 2px 12px;padding:16px 18px;background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--info-line);border-radius:var(--radius);box-shadow:var(--shadow);color:var(--ink);font-size:15px;line-height:1.6}
.brief-risks{display:grid;gap:6px;margin:0 2px 14px;padding:0;list-style:none}
.brief-risks li{padding:9px 13px;background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:var(--radius);color:var(--warn-ink);font-size:13px;font-weight:600}
.inline-form{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto}
.inline-form input[type=date]{border:1px solid var(--line-strong);border-radius:6px;padding:7px 9px;background:var(--surface);color:inherit;font:inherit}
.inline-form button{padding:7px 11px;font-size:13px}
/* Present to a screen reader, absent to everyone else: the date input needs a
   label, and a visible one would repeat what the button already says. */
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Wall displays. A screen's link is long and needs to be selectable in one
   go - somebody is copying it into a kiosk shortcut on another machine. */
.token-url{display:block;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;word-break:break-all;color:var(--ink-soft);background:var(--surface-2);border:1px solid var(--line);border-radius:6px;padding:8px 10px;user-select:all}
.token-cell{max-width:280px}
.recipients-table tr.is-revoked{opacity:.55}
.rotate-secs{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.rotate-secs input{width:74px}
/* Roles console. Every colour here is an existing token - the theme contract
   in tests/test_action_center.py requires it, and a component that invents its
   own colour is one the dark theme cannot follow. */
.role-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;margin-top:12px}
.role-card{display:flex;flex-direction:column;gap:8px;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);box-shadow:var(--shadow);text-decoration:none;color:inherit;transition:border-color .15s var(--ease),transform .15s var(--ease)}
.role-card:hover{border-color:var(--accent-line);transform:translateY(-1px)}
.role-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.role-head b{font-size:16px;color:var(--heading)}
.role-people{font-size:12px;color:var(--muted);white-space:nowrap}
.role-blurb{font-size:13px;color:var(--ink-soft);line-height:1.45}
.role-elements,.role-flags{display:flex;flex-wrap:wrap;gap:5px}
.chip{display:inline-block;padding:3px 8px;border-radius:999px;background:var(--pill-bg);color:var(--ink-soft);font-size:11.5px;font-weight:600;line-height:1.5}
.chip.is-perm{background:var(--accent-bg);color:var(--accent-hover);border:1px solid var(--accent-line)}
.chip.is-quiet{background:transparent;color:var(--muted);border:1px solid var(--line)}
.chip.is-empty{background:var(--warn-bg);color:var(--warn-ink)}
/* The element checklist, shared by the role page and the person page. Each row
   carries its own explanation: a permission checkbox nobody can read is one
   that gets ticked to find out what it does. */
.element-group{margin-top:14px}
.element-group h3{margin:0 0 8px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.element-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(288px,1fr));gap:8px}
.element{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);cursor:pointer;transition:border-color .15s var(--ease),background .15s var(--ease)}
.element:hover{background:var(--surface-hover)}
.element.is-on{border-color:var(--accent-line);background:var(--accent-bg)}
.element input{margin-top:2px;flex:none}
.element-body{display:flex;flex-direction:column;gap:3px;min-width:0}
.element-body b{font-size:13.5px;color:var(--heading)}
.element-body>span{font-size:12px;color:var(--ink-soft);line-height:1.45}
.element-note{font-size:11.5px;color:var(--muted);font-weight:600}
.element-note.is-warn{color:var(--warn-ink)}
.element-note.is-added{color:var(--accent-hover)}
.element-note.is-removed{color:var(--bad-ink)}
/* "What they see", the first thing on a person's page: the resolved answer,
   with where each element came from, so the sections below read as ways of
   changing it rather than as five unrelated forms. */
.effective-list{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:6px}
.effective-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
.effective-name{font-size:13.5px;font-weight:600;color:var(--heading)}
.effective-source{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);white-space:nowrap}
.effective-source.is-role{color:var(--accent-hover)}
.effective-source.is-added{color:var(--ok-ink)}
.effective-source.is-existing-access{color:var(--info-ink)}
.person-form .report,.role-form .report{margin-bottom:14px}
@media (max-width:520px){.element-list,.effective-list,.role-grid{grid-template-columns:1fr}}
/* The board. One page of tiles, each a <details> that expands in place -
   nothing here navigates away, because a dashboard you have to leave to use
   is the thing this replaced. Every colour is an existing token; the theme
   contract test requires it. */
.tiles{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.tile{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--line-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}
.tile.state-ok{border-left-color:var(--ok-line)}
.tile.state-warn{border-left-color:var(--amber)}
.tile.state-bad{border-left-color:var(--red)}
.tile-head{display:flex;align-items:center;gap:14px;padding:14px 16px;cursor:pointer;list-style:none;transition:background .15s var(--ease)}
.tile-head::-webkit-details-marker{display:none}
.tile-head:hover{background:var(--surface-hover)}
.tile-head::after{content:"▸";margin-left:auto;color:var(--muted);font-size:13px;transition:transform .15s var(--ease)}
.tile[open]>.tile-head::after{transform:rotate(90deg)}
.tile[open]>.tile-head{border-bottom:1px solid var(--line-soft)}
.tile-id{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1 1 auto}
.tile-eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.tile-title{font-size:16.5px;font-weight:650;color:var(--heading);line-height:1.25}
/* The figure is the point of the tile: readable without leaning in, and
   tabular so a column of them lines up the way the wall boards do. */
.tile-figure{display:flex;flex-direction:column;align-items:flex-end;gap:1px;flex:none;text-align:right}
.tile-figure b{font-size:26px;font-weight:700;line-height:1;color:var(--heading);font-variant-numeric:tabular-nums}
.tile-figure span{font-size:11.5px;color:var(--muted)}
.tile.state-bad .tile-figure b{color:var(--red)}
.tile.state-warn .tile-figure b{color:var(--amber)}
.tile-badge{flex:none;padding:4px 10px;border-radius:999px;background:var(--warn-bg);color:var(--warn-ink);font-size:11.5px;font-weight:700;white-space:nowrap}
.tile.state-bad .tile-badge{background:var(--bad-bg);color:var(--bad-ink)}
.tile-lines{display:flex;flex-wrap:wrap;gap:8px 18px;padding:11px 16px;background:var(--surface-2);border-bottom:1px solid var(--line-soft)}
.tile-line{font-size:12px;color:var(--muted);display:inline-flex;align-items:baseline;gap:5px}
.tile-line b{font-size:14.5px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.tile-line.is-ok b{color:var(--ok-ink)}
.tile-line.is-bad b{color:var(--red)}
.tile-line.is-warn b{color:var(--amber)}
.tile-body{padding:14px 16px 16px}
.tile-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.board-subsection{margin-bottom:18px}
.subsection-head{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.subsection-head .count{margin-left:auto;font-size:11.5px;background:var(--pill-bg);color:var(--ink-soft);padding:2px 8px;border-radius:999px;letter-spacing:0}
.subsection-head .needs{font-size:11.5px;background:var(--warn-bg);color:var(--warn-ink);padding:2px 8px;border-radius:999px;letter-spacing:0;text-transform:none}
/* Collections pots, in the one place they can be clicked. The wall board
   deliberately has no links - nobody clicks a TV - so this is the only route
   from a pot to the Aspire record behind it. */
.pot-rows{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px}
.pot-row{border:1px solid var(--line);border-radius:var(--radius);padding:11px 12px;background:var(--surface-2)}
.pot-row-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;margin-bottom:7px}
.pot-row-head b{font-size:14px;color:var(--heading)}
.pot-row-head span{font-size:11.5px;color:var(--muted)}
.pot-row-count{margin-left:auto}
.pot-issues{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.pot-issues li{display:flex;gap:8px;font-size:12.5px;align-items:baseline}
.pot-issues a{color:var(--ace-dark);font-weight:600;text-decoration:none;font-variant-numeric:tabular-nums}
.pot-issues a:hover{text-decoration:underline}
.pot-issues .no-link{color:var(--muted);font-variant-numeric:tabular-nums}
.pot-company{color:var(--ink);flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pot-property{color:var(--muted);font-size:11.5px}
.pot-issues .is-more{color:var(--muted);font-size:11.5px}
/* The crew tile's figures, filled in after paint by tiles.js. */
.crew-tile-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.crew-tile-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;padding:9px 12px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius)}
.crew-tile-code{font-weight:700;color:var(--heading);font-size:13.5px}
.crew-tile-figure{font-size:12px;color:var(--muted)}
.crew-tile-figure b{color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums}
.crew-tile-figure.is-warn b{color:var(--amber)}
.crew-tile-state{margin-left:auto;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.crew-tile-state.is-ok{color:var(--ok-ink)}
.crew-tile-state.is-open{color:var(--muted)}
.crew-tile-row.is-more{color:var(--muted);font-size:12px;background:transparent;border-style:dashed}
/* Wall screens: last_seen_at is the only evidence a TV is alive, and nothing
   surfaced it before. */
.display-rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.display-row{display:flex;align-items:center;gap:10px;padding:9px 12px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius)}
.display-name{font-weight:600;color:var(--heading);font-size:13.5px}
.display-seen{margin-left:auto;font-size:11.5px;color:var(--muted)}
@media (max-width:640px){
  .tile-head{flex-wrap:wrap;gap:8px}
  .tile-figure{align-items:flex-start;text-align:left;order:3;width:100%;flex-direction:row;align-items:baseline;gap:6px}
  .tile-badge{order:2}
  .pot-rows{grid-template-columns:1fr}
}
