/* BIRCH workspace. The primary palette carries across every module. */
@font-face{font-family:Desk Sans;src:url('/static/PublicSans.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}
:root{
 --paper:#111719;--sheet:#192124;--raised:#202a2e;--rail:#151c1e;--ink:#eff3f2;
 --secondary:#c0cbc9;--quiet:#a4b4b1;--rule:#354244;--edge:#526564;
 --jade:#88d6ae;--wash:#203a30;--action:#a4daba;--on-action:#10271a;--negative:#ffafa6;--alert:#f2c781;
 --depth:0 2px 9px #00000014;--ui:'Desk Sans',system-ui,sans-serif;color-scheme:dark;
}
:root[data-theme="light"]{
 --paper:#f3f5f4;--sheet:#fff;--raised:#f4f7f5;--rail:#fcfdfc;--ink:#1a2927;
 --secondary:#394f49;--quiet:#50645e;--rule:#d2dcd6;--edge:#889c90;
 --jade:#206540;--wash:#e4f2e8;--action:#215e40;--on-action:#fff;--negative:#983d32;--alert:#815907;
 --depth:0 2px 9px #23362809;color-scheme:light;
}
:root[data-appearance="future"]{
 --paper:#080f0d;--rail:#0c1511;--sheet:#101d17;--raised:#17291e;--ink:#f2fff4;
 --secondary:#c5dbc9;--quiet:#a1b9a9;--rule:#2a4234;--edge:#476f53;
 --jade:#9dff76;--wash:#19381d;--action:#a4ff77;--on-action:#112208;
 --depth:0 0 22px #76ff4710;
}
:root,body,.shell,.shell [class*="tone-"],.shell [data-module],dialog,.login{
 --page:var(--paper);--surface:var(--sheet);--surface-soft:var(--raised);--surface-hover:var(--wash);--surface-raised:var(--raised);
 --elite-bg:var(--paper);--elite-surface:var(--sheet);--elite-line:var(--rule);--elite-text:var(--ink);--elite-muted:var(--quiet);
 --text:var(--ink);--text-soft:var(--secondary);--text-muted:var(--quiet);--muted:var(--quiet);--stroke:var(--rule);--stroke-strong:var(--edge);
 --es7-text:var(--ink);--es7-surface:var(--sheet);--es7-surface2:var(--raised);--es7-muted:var(--quiet);--es7-line:var(--rule);--es7-line2:var(--edge);
 --tone:var(--jade);--card-neon:var(--jade);--launch-accent:var(--jade);--accent:var(--jade);--elite-cyan:var(--jade);--birch-accent:var(--jade);
 --es7-focus:var(--jade);--tone-soft:var(--wash);--es7-cyan:var(--jade);--accent-bg:var(--wash);--panel:var(--sheet);
}
body,.elite-shell,.workspace,.content{background:var(--paper);color:var(--ink);font-family:var(--ui);font-size:14px;line-height:1.45}
body{-webkit-font-smoothing:antialiased}button,input,select,textarea{font-family:inherit}
h1,h2,h3,h4,.value{font-variant-numeric:lining-nums tabular-nums}
.shell h2,dialog h2{font-size:17px;line-height:1.25;font-weight:640;letter-spacing:-.035em;color:var(--ink)}
.shell h3,dialog h3{font-size:15px;font-weight:620;letter-spacing:-.018em;color:var(--ink)}
small,.muted,.shell p,.shell .section-caption small,.shell label,dialog label,.shell .panelhead small{color:var(--quiet)}
.shell :is(time,.value,td,.live-timer,.record-total){font-variant-numeric:tabular-nums}
.shell .sidebar,.shell .topbar,.shell .bottomnav{background:var(--rail);border-color:var(--rule);box-shadow:none}
.shell .sidebar{padding:14px 10px 9px}.shell .sidebar nav{gap:1px;margin:12px 0 8px;min-height:0;padding:0;flex:1;overflow:auto}
.shell .sidebar .navbtn{min-height:34px;padding:6px 10px;gap:10px;border:1px solid transparent;border-radius:6px;font-size:12.5px;font-weight:510;line-height:1.3;color:var(--secondary);background:transparent;box-shadow:none}
.shell .sidebar .navbtn .icon{color:var(--quiet);width:16px;height:16px;filter:none}.shell .navbtn .icon svg{width:16px;height:16px}
.shell .sidebar .navbtn:hover{color:var(--ink);background:var(--raised)}
.shell .sidebar .navbtn.active{color:var(--jade);background:var(--wash);font-weight:660;box-shadow:inset 2px 0 var(--jade)}.shell .navbtn.active .icon{color:var(--jade)}
.shell .sidebar .elite-brand{height:58px;min-height:58px;display:flex;align-items:center;justify-content:start;padding:0 9px 10px;gap:10px;margin:0;border:0;border-bottom:1px solid var(--rule);background:none;box-shadow:none;border-radius:0}
.nav-signature{display:block;background:var(--jade);width:51px;height:27px;mask:url('/static/birch-arcs.svg') no-repeat center / contain;flex:none}
.shell .elite-brand .nav-brand-name,.shell .elite-brand .nav-brand-name small{display:block;line-height:1.08;letter-spacing:-.035em;font-size:15px;font-weight:660;text-transform:none;text-align:left;color:var(--ink);margin:0}
.shell .elite-brand .nav-brand-name small{color:var(--secondary);font-weight:490}
.shell .sidebar-footer{margin:0;padding:8px 7px 0;border-top:1px solid var(--rule)}.shell .sidebar-footer .powered,.shell .sidebar-footer .version{margin:0;padding:3px 0;font-size:9px;color:var(--quiet)}
.shell .sidebar-footer .powered{display:block;text-align:left}.shell .sidebar-footer .powered strong{display:inline;color:var(--secondary);font-size:9px;letter-spacing:.07em;margin-left:5px}
.shell .topbar{padding:8px clamp(14px,2.2vw,32px);min-height:59px;gap:12px}
.topbar-title,.user-control .name strong{font-size:12px}.topbar-title span:first-child{color:var(--jade)}
.shell .user-control .avatar{height:29px;width:29px;background:var(--wash);color:var(--jade);border:1px solid var(--rule);font-size:10px}
.shell .project-switch{margin-bottom:0}.shell .project-switch>span{font-size:9px;color:var(--quiet);letter-spacing:.10em}
.shell .topbar .chrome-button{min-height:33px;border-radius:6px;padding:6px 9px;font-size:12px}
.content{padding:clamp(17px,2.3vw,34px);max-width:1680px;margin:0 auto}
.desk-heading,.desk-overview{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:0 0 18px;margin:0 0 16px;border-bottom:1px solid var(--rule)}
.desk-heading h1,.desk-overview h1,.worker-heading h1{font-size:clamp(23px,2.1vw,32px);line-height:1.12;font-weight:650;letter-spacing:-.055em;color:var(--ink);margin:0}
.desk-heading p,.desk-overview p{font-size:13px;margin:5px 0 0;color:var(--quiet)}
.desk-overview{min-height:150px;padding:12px 0 20px}.overview-date,.week-period{font-size:11px;font-weight:550;color:var(--quiet);margin-bottom:8px}.desk-overview p span{padding:0 6px;color:var(--edge)}
.desk-signature{width:clamp(150px,18vw,240px);aspect-ratio:2.9;background:url('/static/birch-desk-dark.webp') no-repeat center / contain;flex:none}
.shell .birch-home-actions{display:flex;gap:8px;margin-top:13px}.shell .birch-home-actions button{font-size:12px;min-height:32px;border:1px solid var(--edge);background:var(--sheet);color:var(--ink);border-radius:6px;padding:5px 10px;font-weight:560}
.shell .birch-home-actions button:first-child{background:var(--action);color:var(--on-action);border-color:transparent}
.shell .desk-back{display:inline-flex;gap:6px;align-items:center;color:var(--secondary);background:transparent;border:0;padding:5px;min-height:32px;font-size:12px}.desk-back .icon,.desk-back svg{width:15px;height:15px}
.desk-week{display:grid;grid-template-columns:minmax(155px,1fr) minmax(0,2.6fr);align-items:center;gap:24px;padding:17px 20px;background:var(--sheet);border:1px solid var(--rule);border-radius:10px;margin-bottom:20px;box-shadow:var(--depth)}
.shell .desk-week h2{font-size:16px}.desk-week p{font-size:12px;margin-top:5px}.desk-week strong{font-size:25px;font-weight:610;color:var(--ink);letter-spacing:-.05em;margin-right:3px}
.week-bars{display:flex;gap:clamp(4px,1vw,16px);text-align:center;align-items:flex-end}.week-day{flex:1;min-width:0}.week-day span,.week-day small{display:block;font-size:10px;color:var(--quiet);font-variant-numeric:tabular-nums}
.week-day svg{display:block;width:100%;height:39px;border-bottom:1px solid var(--edge);background:repeating-linear-gradient(to top,transparent 0,transparent 18px,var(--rule) 19px,transparent 20px)}.week-day rect{fill:var(--jade)}.week-day small{padding-top:4px}
.shell .module-group{margin:20px 0}.section-caption{margin:10px 0}.shell .section-caption h2{font-size:15px;letter-spacing:-.022em}
.shell .elite-modules{gap:9px;grid-template-columns:repeat(auto-fit,minmax(min(208px,100%),1fr))}
.shell .elite-module{position:relative;display:grid;grid-template-columns:29px minmax(0,1fr) 12px;align-items:start;gap:9px;text-align:left;padding:14px 12px;min-height:82px;border-radius:8px;background:var(--sheet);border:1px solid var(--rule);box-shadow:var(--depth);overflow:visible}
.shell .elite-module::before,.shell .elite-module::after,.shell .metric::before,.shell .metric::after{display:none}
.shell .elite-module:hover{background:var(--raised);border-color:var(--edge);transform:none}
.shell .module-top,.shell .module-copy{display:block;margin:0}.shell .launch-icon,.shell .stat-icon{display:inline-grid;place-items:center;width:27px;height:27px;border:0;background:var(--wash);border-radius:6px;box-shadow:none;color:var(--jade)}
.shell .launch-icon :is(svg,.icon),.shell .stat-icon :is(svg,.icon){width:16px;height:16px;filter:none}
.shell .module-copy h2{font-size:14px;margin:0 0 4px}.shell .module-copy p{font-size:12px;line-height:1.38;letter-spacing:0;color:var(--quiet);margin:0}
.shell .module-open{align-self:start;display:block;font-size:13px;color:var(--quiet);margin:0;padding:0;line-height:1.1}
.shell .panel,dialog,.birch-box,.shell .stat,.shell .analytics-controls,.shell .current-work,.shell .table-wrap,.shell .asset-card{border-radius:9px;border:1px solid var(--rule);background:var(--sheet);color:var(--ink);box-shadow:var(--depth)}
.shell .panel,.birch-box{padding:clamp(13px,1.4vw,20px)}.shell .panelhead{padding-bottom:9px;margin-bottom:10px;border-color:var(--rule)}
.shell .stats{gap:10px;margin:13px 0}.shell .stat{min-height:0;padding:13px 15px;position:relative}.shell .stat .label{color:var(--secondary);font-size:11.5px;letter-spacing:.015em;text-transform:none;font-weight:570;line-height:1.3}
.shell .stat .stat-icon{background:transparent;color:var(--quiet);width:19px;height:19px}
.shell .stat .value{font-size:clamp(23px,2vw,30px);font-weight:620;letter-spacing:-.055em;line-height:1.1;margin:9px 0 4px;color:var(--ink)}
.shell .stat small{font-size:11px;line-height:1.4;color:var(--quiet)}
.shell .pagehead{gap:10px;margin:10px 0}.shell .pagehead>div>p{font-size:12px}.shell .pagehead .actions{gap:6px}
.shell .empty{padding:22px 14px;color:var(--ink)}.shell .empty p,.shell .panel p{font-size:13px}.shell .birch-gallery>p{grid-column:1/-1}
.shell .table :is(th,td){border-color:var(--rule);font-size:12px}.shell .table th{background:var(--raised);color:var(--secondary);letter-spacing:.025em}
.shell .analytics-controls{padding:12px;gap:12px}.period-buttons,.shell .tabs{gap:3px;display:inline-flex;flex-wrap:wrap;padding:3px;background:var(--raised);border:1px solid var(--rule);border-radius:7px}.period-buttons button,.shell .tabs button{color:var(--secondary);min-height:30px;padding:5px 9px;font-size:12px;border:0;background:transparent;box-shadow:none;border-radius:4px}
.period-buttons button.active,.shell .tabs button.active{background:var(--sheet);color:var(--jade);box-shadow:inset 0 -2px var(--jade)}
.shell .actions button,.shell .empty button,dialog .actions button,.shell .chrome-button{min-height:35px;font-size:12px;line-height:1.3;padding:7px 12px;font-weight:570;background:var(--raised);color:var(--ink);border:1px solid var(--rule);border-radius:6px;box-shadow:none}
.shell button.primary,dialog button.primary,.shell .actions button.primary,.shell .empty button.primary{background:var(--action);color:var(--on-action);border-color:transparent;box-shadow:none}
button.danger,.shell .actions button.danger{color:var(--negative);border-color:currentColor}
.shell a,dialog a{color:var(--jade)}.shell .panelhead h2{color:var(--ink)}
.shell .worker-heading{padding:0 0 14px}.shell .worker-home-grid{gap:10px}.shell .worker-launch-card{border-radius:9px;background:var(--sheet);border-color:var(--rule);color:var(--ink);box-shadow:none}
.shell .worker-launch-title{font-size:22px;color:var(--ink)}.shell .bottomnav .active{color:var(--jade)}
:where(input:not([type=checkbox],[type=radio],[type=range],[type=color]),select,textarea){font-size:13px;color:var(--ink);background-color:var(--sheet);border:1px solid var(--edge);border-radius:6px;min-height:37px}
select option,select optgroup{background:var(--sheet);color:var(--ink)}
@layer controls{
 select:not([multiple],[size],.appearance-dial select){appearance:none!important;-webkit-appearance:none!important;padding:7px 35px 7px 11px!important;min-width:0;max-width:100%;font-size:13px!important;min-height:36px!important;line-height:1.3!important;border-radius:6px!important;background-color:var(--sheet)!important;color:var(--ink)!important;border:1px solid var(--edge)!important;background-image:linear-gradient(45deg,transparent 50%,var(--quiet) 50%),linear-gradient(135deg,var(--quiet) 50%,transparent 50%)!important;background-position:calc(100% - 15px) center,calc(100% - 11px) center!important;background-size:4px 4px!important;background-repeat:no-repeat!important}
}
:where(button,a,select,input,textarea):focus-visible,.appearance-dial:focus-within{outline:2px solid var(--jade);outline-offset:2px}
.appearance-dial{position:relative;display:inline-grid;place-items:center;width:40px;height:40px;flex:none;margin:0;border-radius:50%;cursor:pointer}
.dial-icon{display:grid;place-items:center;color:var(--jade);background:var(--wash);border:1px solid var(--rule);width:30px;height:30px;border-radius:50%}
.dial-icon svg{width:15px;height:15px}.appearance-dial select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
[data-appearance=future] .desk-week,[data-appearance=future] .desk-heading{border-color:#385b40}
[data-appearance=future] .desk-week{background:radial-gradient(ellipse at 2% 100%,#193827 0,transparent 50%),var(--sheet)}
[data-appearance=future] .shell .navbtn.active,[data-appearance=future] .shell .elite-module:hover{box-shadow:inset 2px 0 var(--jade),0 0 14px #7afa5117}
[data-appearance=future] .week-day rect{filter:drop-shadow(0 0 2px #9dff7688)}
@media(min-width:801px){.shell .sidebar{width:208px}.shell .workspace{margin-left:208px;width:calc(100% - 208px)}}
@media(max-width:800px){.shell .sidebar{width:238px}.shell .topbar{gap:6px;flex-wrap:wrap}.content{padding:16px 12px 88px}.desk-overview{min-height:0}.desk-overview .desk-signature{width:108px}.desk-heading{gap:8px}.shell .sidebar .navbtn{min-height:40px}.shell .workspace{width:100%;margin-left:0}.shell .elite-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .elite-module{grid-template-columns:22px 1fr;padding:12px 9px;gap:6px}.shell .module-open{display:none}.shell .launch-icon{width:21px;height:21px}.desk-week{gap:12px;padding:12px}.shell .stat{padding:11px}.desk-back{white-space:nowrap}.shell .actions button,.shell .birch-home-actions button{min-height:40px}}
@media(max-width:540px){.desk-overview .desk-signature{width:75px}.desk-week{grid-template-columns:1fr;gap:9px}.desk-week>div:first-child{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.desk-week .week-period{order:3;margin:0 0 0 auto}.desk-week p{margin:0}.desk-week strong{font-size:17px}.desk-heading h1{font-size:23px}.shell .module-copy p{font-size:11.5px}.shell .topbar .appearance-dial{width:31px}.shell .topbar .project-switch{min-width:0}.desk-heading p{font-size:12px}}
@media(forced-colors:active){select{appearance:auto!important}.appearance-dial:focus-within{outline:2px solid Highlight}}
[data-theme=light] .desk-signature{background:var(--jade);mask:url('/static/birch-desk-dark.webp') no-repeat center / contain}
.shell .demo-bar{background:var(--wash);color:var(--secondary);border-bottom:1px solid var(--rule)}
.shell .demo-bar a,.shell .demo-bar strong,.shell .powered-credit>strong,.shell .person .avatar,.shell .eyebrow{color:var(--jade)}
.desk-overview p span{color:var(--quiet)}.shell .desk-overview{position:relative;border:1px solid var(--rule);border-radius:10px;padding:18px 22px;margin-bottom:14px;background:linear-gradient(110deg,var(--sheet) 52%,var(--raised));box-shadow:var(--depth);overflow:hidden}
.desk-overview:after{content:"";position:absolute;pointer-events:none;right:0;top:0;bottom:0;width:38%;background-image:linear-gradient(var(--rule) 1px,transparent 1px),linear-gradient(90deg,var(--rule) 1px,transparent 1px);background-size:18px 18px;opacity:.24;mask-image:linear-gradient(90deg,transparent,#000)}
.desk-signature{position:relative;z-index:1;margin-right:1.4%}.overview-split{display:grid;grid-template-columns:minmax(210px,.9fr) minmax(0,1.7fr);gap:12px;align-items:stretch}
.overview-split .desk-week,.overview-split .module-group{margin:0;border:1px solid var(--rule);border-radius:10px;background:var(--sheet);box-shadow:var(--depth);padding:16px}
.overview-split .desk-week{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;gap:10px}
.overview-split .section-caption{margin:0 0 10px}.overview-split .elite-modules{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.overview-split .elite-module{min-height:58px;padding:9px 8px;background:var(--raised);box-shadow:none;border-color:transparent}
.overview-split .elite-module:hover{border-color:var(--edge)}
.shell .module-open svg{display:block}.week-bars{gap:8px}.desk-week .week-bars svg{height:44px}
.shell .period-buttons{display:flex;flex-wrap:nowrap}.shell .period-buttons button{flex:0 0 auto;min-height:30px}
.shell .thumb .icon,.shell .asset-body .count,.shell .worker-project,.shell .worker-history-link b{color:var(--jade)}
.shell .worker-launch-card{--card-neon:var(--jade);--launch-accent:var(--jade);--clock:var(--jade)}.shell .worker-launch-card:before,.shell .worker-launch-card:after{display:none}
.shell .lb-filter.on{color:var(--on-action);background:var(--action)}.shell .lb-badge,.shell .lb-tag.ok,.shell .lb-time b{color:var(--jade)}.shell .lb-tag.soon{color:var(--alert)}
.shell .stat:before,.shell .stat:after{display:none}
[data-appearance=future] .shell .desk-overview{background:radial-gradient(ellipse at 90% 50%,#23432d 0,transparent 43%),linear-gradient(115deg,#0c1712,#101e16);border-color:#395a40}
[data-appearance=future] .desk-signature{filter:drop-shadow(0 0 6px #85ff4c46)}
[data-appearance=future] .overview-split .desk-week{background:linear-gradient(150deg,#1d3326,#101c16 65%);border-top-color:#93de79}
@media(min-width:801px) and (max-width:1090px){.overview-split{grid-template-columns:minmax(170px,.8fr) minmax(0,1.8fr)}.overview-split .module-copy p{font-size:11.5px}}
@media(max-width:800px){.overview-split{grid-template-columns:1fr}.overview-split .desk-week{display:grid}.shell .desk-overview{padding:15px}.overview-split .module-group{padding:12px}}
.login .login-brand img{width:min(64%,460px);filter:none;background:transparent;box-shadow:none;border-radius:0;object-fit:contain}
.es-auth .login-panel>div{border:1px solid var(--rule);background:var(--sheet);color:var(--ink);border-radius:12px;box-shadow:var(--depth)}
.es-auth .login-panel h2{font-weight:640;letter-spacing:-.045em}
@layer controls{
 .es-auth .es-signin{background:var(--action)!important;color:var(--on-action)!important;box-shadow:none!important;font-weight:640!important;border-radius:7px!important}
}
body:has(.roles){--fg:var(--ink);--card:var(--sheet);--line:var(--rule);--bg:var(--paper);--accent:var(--jade)}
body:has(.roles) .roles form button{border-radius:9px;padding:14px;background:var(--sheet);border-color:var(--rule)}
body:has(.roles) .roles h2{font-size:clamp(24px,2.6vw,36px);font-weight:640}
.shell .demo-bar a{font-family:var(--ui),system-ui,sans-serif}
@media(max-width:800px){
 .shell .sidebar{transform:translateX(-101%);visibility:hidden}
 .shell.menu-open .sidebar{transform:translateX(0);visibility:visible;z-index:40}
 .shell.menu-open .mobile-backdrop{display:block;position:fixed;inset:0;z-index:39;background:#0008}
 .shell .mobile-menu{display:inline-flex;align-items:center;justify-content:center}
}
@media(min-width:801px){
 .shell .sidebar{transform:none}.shell .mobile-menu,.shell .bottomnav{display:none}
}
[data-theme=light] .shell .lb-filter.on :is(span,b){color:var(--on-action);background-color:transparent}
/* Real BIRCH wordmark, with sufficient clear space for its crossbar lettering. */
.shell .sidebar .elite-brand{justify-content:center;min-height:73px;height:73px;padding:5px 0 10px}
.shell .sidebar .birch-header-logo{display:grid;place-items:center;width:154px;max-width:100%;height:54px;background:#0e1713;border:1px solid #33483a;border-radius:7px}
.shell .sidebar .birch-header-logo img{display:block;width:113px;height:42px;max-width:94%;object-fit:contain;margin:0;border:0;border-radius:0;box-shadow:none;background:none}
.shell .mobile-mark img{width:39px;height:24px;object-fit:contain;background:#0e1713;border-radius:3px}
:root[data-appearance=neon]{color-scheme:dark;--paper:#080809;--rail:#0e0c0d;--sheet:#151214;--raised:#20191c;--ink:#fff4f4;--quiet:#c3afb4;--secondary:#ebd4da;--rule:#423239;--edge:#70545f;--jade:#ff7380;--wash:#381820;--action:#ff4256;--on-action:#1b0508;--alert:#ffc18b;--depth:0 2px 14px #0006}
[data-appearance=neon] .shell .desk-overview{background:radial-gradient(ellipse at 88% 30%,#461720 0,transparent 46%),#110e10;border-color:#66343c}
[data-appearance=neon] .shell .navbtn.active{box-shadow:inset 2px 0 #ff4256,0 0 14px #ff30461c}
[data-appearance=neon] .shell .desk-week,[data-appearance=neon] .pf-chart{border-color:#65303a;background:linear-gradient(125deg,#261319,#100e11)}
[data-appearance=neon] .shell .elite-module:hover,[data-appearance=neon] .pf-projects article:hover{border-color:#ad4354}
.portfolio{margin:20px 0 22px;--pf-paid:var(--jade);--pf-due:var(--alert);--pf-later:#7e9baf}
[data-appearance=neon] .portfolio{--pf-paid:#ff6574;--pf-due:#ffc69e;--pf-later:#a5a1b4}
.pf-heading,.pf-project-head,.pf-figures,.pf-chart,.pf-register li,.pf-chart dl div,.pf-cash-list div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pf-heading{margin-bottom:10px}.pf-heading h2{margin:0}.pf-heading>span{font-size:12px;color:var(--secondary)}
.pf-summary{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(215px,.8fr);gap:10px;margin:10px 0}
.pf-summary>div,.pf-projects article{background:var(--sheet);border:1px solid var(--rule);border-radius:9px;box-shadow:var(--depth)}
.pf-figures{padding:15px 12px;align-items:stretch;gap:0}.pf-figures>div{flex:1;min-width:0;display:grid;align-content:center;gap:4px;padding:4px 12px;border-left:1px solid var(--rule)}.pf-figures>div:first-child{border:0}
.pf-figures span,.pf-register small,.pf-figures small,.pf-project-head small,.pf-cash-list dt{font-size:11px;color:var(--quiet)}
.pf-figures strong{font-size:clamp(18px,2.3vw,34px);font-weight:630;line-height:1.12;letter-spacing:-.055em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.pf-figures>div:nth-child(2) strong{color:var(--alert)}.pf-figures>div:last-child strong{color:var(--jade)}
.pf-chart{padding:10px 14px}.pf-chart svg{width:clamp(72px,6vw,94px);flex:none}.pf-chart circle{fill:none;stroke-width:7.5}.arc-track{stroke:var(--rule)}.arc-paid{stroke:var(--pf-paid)}.arc-due{stroke:var(--pf-due)}.arc-later{stroke:var(--pf-later)}.pf-chart text{text-anchor:middle;fill:var(--ink);font-weight:650;font-size:21px}.pf-chart .ring-sub{fill:var(--quiet);font-weight:530;font-size:10px}
.pf-chart dl,.pf-cash-list{margin:0;min-width:0}.pf-chart dl{flex:1}.pf-chart dl div{margin:4px 0}.pf-chart dt,.pf-chart dd,.pf-cash-list dd,.pf-register li{font-size:12px}.pf-chart dd,.pf-cash-list dd{font-variant-numeric:tabular-nums;margin:0;font-weight:610}.pf-chart dt:before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:var(--pf-paid)}.key-due dt:before{background:var(--pf-due)}.key-later dt:before{background:var(--pf-later)}
.pf-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:9px}.pf-projects article{display:flex;flex-direction:column;gap:10px;padding:13px;min-width:0}.pf-project-head{display:block}.pf-project-head h3{margin:0 0 2px;font-size:15px}.crew-figure{display:grid;grid-template-columns:auto 1fr;column-gap:5px;align-items:baseline}.crew-figure strong{font-size:21px;line-height:1;color:var(--ink)}.crew-figure span{color:var(--quiet);font-size:11px}.crew-figure svg{width:100%;height:4px;grid-column:1/-1;margin-top:5px}.crew-figure rect{fill:var(--raised)}.crew-figure .crew-bar{fill:var(--jade)}.pf-projects article>button{margin-top:auto;display:flex;align-items:center;justify-content:space-between;border:0;border-top:1px solid var(--rule);border-radius:0;padding:9px 0 0;background:transparent;color:var(--jade);font-weight:610;font-size:12px;min-height:32px}
.pf-register details{border:1px solid var(--rule);border-radius:8px;margin-bottom:8px;padding:9px 12px;background:var(--raised)}.pf-register summary{cursor:pointer;font-weight:620}.pf-register form{display:grid;gap:9px;margin-top:10px}.pf-register label{margin:0}.pf-register label>*{display:block;margin-top:4px;width:100%}.pf-register ul{list-style:none;margin:5px 0 16px;padding:0}.pf-register li{padding:8px 0;border-bottom:1px solid var(--rule)}.pf-register small{display:block}.pf-register h3{margin-top:16px}
@media(max-width:1050px){.pf-summary{grid-template-columns:1.45fr 1fr}.pf-figures{padding:8px}.pf-figures>div{padding:3px 6px}}
@media(max-width:650px){.pf-summary{grid-template-columns:1fr}.pf-chart{justify-content:start}.pf-chart dl{max-width:300px}.pf-projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,154px),1fr))}.pf-figures small{font-size:10px}.pf-projects article{padding:10px}.pf-chart svg{width:65px}}

/* Attendance, site allocation and on-device daywork sign-off */
.pf-projects{grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr))}
.pf-projects article .pf-crew-link{margin:0;background:var(--raised);border:1px solid var(--rule);border-radius:7px;display:grid;grid-template-columns:1fr auto;text-align:left;gap:6px;padding:10px 12px;width:100%;color:var(--ink)}
.pf-crew-link:hover,.visit-tabs button:hover{border-color:var(--jade)}
.pf-count{font-size:.82rem;color:var(--secondary)}.pf-count b{font-size:1.5rem;color:var(--ink);font-variant-numeric:tabular-nums;margin-right:2px}
.pf-avatars{display:flex;align-self:center;padding-left:3px}.pf-avatars i{display:grid;place-items:center;border:2px solid var(--raised);background:var(--wash);color:var(--jade);border-radius:50%;width:27px;height:27px;margin-left:-4px;font:650 .64rem var(--ui)}
.pf-names{grid-column:1/-1;color:var(--quiet);font-size:.8rem;line-height:1.45}.pf-projects article button.pf-await{color:var(--alert);margin:0;text-align:left;font-size:.8rem}
.crew-chart{display:grid;grid-template-columns:minmax(85px,118px) 1fr;align-items:center;gap:clamp(12px,2vw,28px);padding:14px 16px;margin:12px 0;background:var(--raised);border:1px solid var(--rule);border-radius:8px}
.crew-chart svg{width:100%;height:auto}.crew-chart circle{fill:none;stroke-width:11}.crew-chart .crew-track{stroke:var(--rule)}.crew-chart text{fill:var(--ink);text-anchor:middle;font-family:var(--ui)}.crew-chart .crew-value{font-size:26px;font-weight:680}.crew-chart .crew-unit{font-size:9px;font-weight:650;letter-spacing:1px;fill:var(--quiet)}
.crew-working,.crew-on_site{--segment:var(--jade)}.crew-break,.crew-paused,.crew-arriving{--segment:var(--alert)}.crew-stopped,.crew-leaving{--segment:var(--negative)}.crew-on_site{--segment:var(--secondary)}
.crew-chart .crew-slice{stroke:var(--segment)}.crew-chart dl{margin:0}.crew-chart dl div{display:flex;justify-content:space-between;gap:8px;border-bottom:1px solid var(--rule);padding:6px 0}.crew-chart dl div:last-child{border:0}.crew-chart dt,.crew-chart dd{margin:0;font-size:.85rem;color:var(--ink)}.crew-chart dd{font-variant-numeric:tabular-nums;font-weight:680}.crew-chart dt i{display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:3px;background:var(--segment)}
.visit-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0}.visit-tabs button{border-radius:8px;border:1px solid var(--rule);background:var(--sheet);color:var(--secondary);text-align:left;padding:12px;display:grid;gap:6px}.visit-tabs button span{font-size:.85rem}.visit-tabs button b{font-size:1.55rem;line-height:1.1;font-weight:650;font-variant-numeric:tabular-nums}.visit-tabs button[aria-pressed=true]{background:var(--wash);border-color:var(--jade);color:var(--jade)}.attendance-record .visit-review{color:var(--quiet);font-size:.82rem;margin:6px 0}
.shell .clock-console{background:var(--sheet);border:1px solid var(--rule);border-top:3px solid var(--edge);border-radius:10px;box-shadow:var(--depth);color:var(--ink)}.shell .clock-console.clock-live{border-top-color:var(--jade)}.shell .clock-console h2,.shell .clock-timer strong,.shell .clock-receipt strong{color:var(--ink)}.shell .clock-console .clock-top,.shell .clock-console .clock-footnote{color:var(--quiet)}.shell .clock-console .clock-timer,.shell .clock-console .clock-receipt{background:var(--raised);border:1px solid var(--rule);border-radius:8px}.shell .clock-console .clock-actions button{min-height:46px}.shell .clock-console .clock-in{background:var(--action);color:var(--on-action)}.shell .clock-console .clock-out{background:var(--ink);color:var(--paper)}
.record-filter{display:flex;gap:8px;align-items:center;margin:10px 0}.record-filter select{width:auto;max-width:100%}.dw-materials,.dw-signoffs{margin:13px 0}.dw-material{display:grid;align-items:end;grid-template-columns:2fr 1fr 1fr auto;gap:6px;margin:8px 0}.dw-material label,.dw-signoffs small{display:block}.dw-material input{width:100%;margin-top:4px}.dw-signoffs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dw-signoffs section{display:grid;align-content:start;gap:6px;padding:12px;background:var(--raised);border:1px solid var(--rule);border-radius:8px}.dw-signoffs h3{margin:0}.dw-signoffs button{justify-self:start}.dw-pad-top{display:flex;align-items:center;justify-content:space-between;margin:12px 0 6px}#dw-pad{display:block;box-sizing:border-box;touch-action:none;width:100%;height:auto;aspect-ratio:10 / 3;background:#fff;border:1px solid #758a7c;border-radius:6px;cursor:crosshair}.dw-confirm{display:flex;align-items:center;gap:8px;margin:11px 0}.dw-confirm input{width:1.15rem;height:1.15rem;flex:none}
@media(max-width:630px){.visit-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.dw-material{grid-template-columns:1fr 1fr}.dw-material label:first-child{grid-column:1/-1}.dw-material button{justify-self:start}.pf-projects{grid-template-columns:1fr}.dw-signoffs{grid-template-columns:1fr}.crew-chart{grid-template-columns:86px 1fr}}
.shell .lb-hero{background:var(--sheet);border:1px solid var(--rule);border-radius:10px;box-shadow:var(--depth)}
.site-distribution h3{margin:0 0 9px;font-size:.91rem;color:var(--ink)}.site-dist-rows{display:grid;gap:7px;max-height:12rem;overflow-y:auto}.dist-row{display:grid;grid-template-columns:minmax(80px,1.1fr) minmax(54px,1fr) auto;align-items:center;column-gap:12px;color:var(--secondary);font-size:.83rem}.dist-row span{overflow-wrap:anywhere}.dist-row svg{width:100%;height:15px}.dist-row b{font-variant-numeric:tabular-nums;color:var(--ink)}.dist-track{fill:var(--rule)}.dist-fill{fill:var(--jade)}.shell .lb-live{color:var(--jade)}.shell .lb-live i{background:var(--jade)}.shell .lb-person .lb-doing small{overflow-wrap:anywhere}
.dw-terms{margin:12px 0;color:var(--secondary)}.dw-terms summary{cursor:pointer;font-weight:600}.dw-terms p{line-height:1.5}
