/* Scoped components generated from the approved five-design prototype. */
#workspace-scene{--ink:var(--text);--muted:var(--text-2);--accent:var(--primary);--soft:var(--primary-soft);--on-accent:var(--wd-on,#fff);--good:var(--ok);--bad:var(--danger);--dark:#30372d;--radius:16px;font-size:14px;line-height:1.55;color:var(--text)}
#workspace-scene[hidden]{display:none!important}
body.wd-home #view-dashboard{display:none!important}
#workspace-scene .panel{margin:0;box-shadow:none}
#workspace-scene .btn{box-shadow:none;white-space:normal}
#workspace-scene .stat span{color:var(--text-2)}
#workspace-scene *{box-sizing:border-box}
#workspace-scene button,#workspace-scene input,#workspace-scene select,#workspace-scene textarea{font:inherit;color:inherit}
#workspace-scene button{cursor:pointer;touch-action:manipulation}
#workspace-scene button:disabled{cursor:default;opacity:.5}
#workspace-scene button,#workspace-scene a,#workspace-scene input,#workspace-scene select,#workspace-scene textarea,#workspace-scene summary{outline-offset:4px}
#workspace-scene *:focus-visible{outline:3px solid var(--accent)}
#workspace-scene button{transition:background .16s,border-color .16s,color .16s}
#workspace-scene button:active{filter:brightness(.94)}
#workspace-scene button svg{flex:none}
#workspace-scene svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
#workspace-scene h1,#workspace-scene h2,#workspace-scene h3,#workspace-scene p{margin:0}
#workspace-scene h1{font-size:30px;letter-spacing:-1px;line-height:1.3}
#workspace-scene h2{font-size:18px;letter-spacing:-.4px}
#workspace-scene h3{font-size:15px}
#workspace-scene .muted{color:var(--muted)}
#workspace-scene .small{font-size:12px}
#workspace-scene .eyebrow{font-size:11px;letter-spacing:1.5px;text-transform:uppercase;font-weight:700;color:var(--muted)}
#workspace-scene .row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#workspace-scene .between{justify-content:space-between}
#workspace-scene .stack{display:flex;flex-direction:column;gap:14px}
#workspace-scene .grid{display:grid;gap:18px}
#workspace-scene .g2{grid-template-columns:repeat(2,minmax(0,1fr))}
#workspace-scene .g3{grid-template-columns:repeat(3,minmax(0,1fr))}
#workspace-scene .g4{grid-template-columns:repeat(4,minmax(0,1fr))}
#workspace-scene .btn{border:1px solid var(--line);background:var(--card);border-radius:9px;min-height:42px;padding:9px 14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-weight:600}
#workspace-scene .btn:hover{background:var(--soft)}
#workspace-scene .primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
#workspace-scene .primary:hover{background:var(--accent);filter:brightness(1.07)}
#workspace-scene .quiet{background:transparent;border-color:transparent}
#workspace-scene .icon-btn{width:44px;height:44px;padding:10px;border:1px solid var(--line);border-radius:50%;background:var(--card);display:grid;place-items:center}
#workspace-scene .badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:4px 8px;border-radius:6px;font-size:11px;font-weight:650;background:var(--soft);color:var(--accent)}
#workspace-scene .badge.risk{background:color-mix(in srgb,var(--bad) 9%,var(--card));color:var(--bad)}
#workspace-scene .badge.ok{background:color-mix(in srgb,var(--good) 9%,var(--card));color:var(--good)}
#workspace-scene .dot{display:inline-block;width:6px;height:6px;border-radius:100%;background:currentColor}
#workspace-scene .pill{padding:7px 12px;min-height:38px;border-radius:20px;border:1px solid var(--line);background:var(--card);font-size:12px;font-weight:600}
#workspace-scene .pill.active{background:var(--ink);border-color:var(--ink);color:var(--bg)}
#workspace-scene .panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;min-width:0}
#workspace-scene .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}
#workspace-scene .logo{display:inline-grid;place-items:center;width:34px;height:34px;background:var(--accent);color:var(--on-accent);border-radius:9px;font-size:16px;font-weight:800;letter-spacing:-2px;padding-right:2px}
#workspace-scene .brand{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:750;letter-spacing:.3px}
#workspace-scene .brand small{display:block;font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:500}
#workspace-scene .avatar{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--soft);border:2px solid var(--card);font-size:11px;font-weight:700;color:var(--accent);flex:none}
#workspace-scene .avatar-group{display:flex;padding-left:8px}
#workspace-scene .avatar-group .avatar{margin-left:-8px}
#workspace-scene .company{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--soft);color:var(--accent);font-size:19px;font-weight:800;flex:none}
#workspace-scene .progress{width:100%;height:5px;background:var(--line);border-radius:5px;overflow:hidden}
#workspace-scene .progress i{display:block;height:100%;border-radius:5px;background:var(--accent)}
#workspace-scene .stat strong{display:block;font-size:31px;line-height:1.4;font-weight:650;letter-spacing:-1.2px;font-variant-numeric:tabular-nums}
#workspace-scene .stat span{font-size:12px;color:var(--muted)}
#workspace-scene .stat small{font-size:11px;color:var(--good)}
#workspace-scene .stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:20px 0}
#workspace-scene .stat-strip .stat+ .stat{border-left:1px solid var(--line);padding-left:24px}
#workspace-scene .sidebar{position:sticky;top:0;height:100vh;padding:28px 18px;display:flex;flex-direction:column;gap:30px;border-right:1px solid var(--line);background:var(--card)}
#workspace-scene .sidebar .brand{padding-left:10px}
#workspace-scene .side-nav{display:flex;flex-direction:column;gap:5px}
#workspace-scene .nav-btn{display:flex;align-items:center;gap:12px;min-height:46px;padding:10px 14px;border:0;border-radius:9px;background:none;color:var(--muted);font-size:13px;font-weight:550;text-align:left}
#workspace-scene .nav-btn:hover{background:var(--soft)}
#workspace-scene .nav-btn.active{color:var(--accent);background:var(--soft);font-weight:700}
#workspace-scene .sidebar-foot{margin-top:auto;display:grid;gap:18px}
#workspace-scene .team-mini{display:flex;align-items:center;gap:9px;padding:10px 8px;border-top:1px solid var(--line);padding-top:20px}
#workspace-scene .team-mini strong{font-size:12px}
#workspace-scene .workspace{min-width:0}
#workspace-scene .topbar{display:flex;align-items:center;justify-content:space-between;padding:18px 32px;border-bottom:1px solid var(--line);background:var(--card);gap:12px;min-height:77px}
#workspace-scene .crumb{font-size:12px;color:var(--muted)}
#workspace-scene .top-actions{display:flex;gap:12px;align-items:center}
#workspace-scene .top-actions .avatar{border:0}
#workspace-scene .main{padding:30px 32px 50px;max-width:1600px;margin:0 auto;min-width:0}
#workspace-scene .page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:25px;gap:18px}
#workspace-scene .page-head p{color:var(--muted);margin-top:7px}
#workspace-scene .page-head .eyebrow{display:block;margin-bottom:10px}
#workspace-scene .bottom-nav{display:none}
#workspace-scene .search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--card);border-radius:9px;padding:0 12px;min-height:44px;min-width:0}
#workspace-scene .search svg{width:17px;height:17px;color:var(--muted)}
#workspace-scene .search input{width:100%;min-width:0;border:0;outline:none;background:transparent;font-size:13px;padding:11px 0}
#workspace-scene .toolbar{display:flex;align-items:center;gap:9px;margin-bottom:20px;flex-wrap:wrap}
#workspace-scene .toolbar .search{flex:1;min-width:160px}
#workspace-scene .task{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
#workspace-scene .task:last-child{border:0}
#workspace-scene .check-action{width:27px;height:27px;border:1px solid var(--line);border-radius:50%;background:var(--card);display:grid;place-items:center;color:var(--muted);margin-top:2px;flex:none}
#workspace-scene .check-action svg{width:14px}
#workspace-scene .task-copy{flex:1;min-width:0}
#workspace-scene .task-copy strong{font-size:14px}
#workspace-scene .task-copy p{color:var(--muted);font-size:12px;margin-top:4px}
#workspace-scene .task .badge{flex:none}
#workspace-scene .task .text-action{margin-left:auto}
#workspace-scene .text-action{border:0;background:transparent;color:var(--accent);font-size:12px;min-height:32px;padding:4px 0;display:inline-flex;align-items:center;gap:5px;font-weight:650;white-space:nowrap}
#workspace-scene .text-action svg{width:15px;height:15px}
#workspace-scene .project-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;min-width:0}
#workspace-scene .project-card .summary{font-size:12px;color:var(--muted);margin:18px 0 14px;min-height:37px}
#workspace-scene .project-card .card-footer{border-top:1px solid var(--line);padding-top:14px;margin-top:18px;display:flex;justify-content:space-between;gap:8px;align-items:center}
#workspace-scene .project-card h3{font-size:16px}
#workspace-scene .project-card .metric{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px}
#workspace-scene .project-card .metric b{color:var(--ink)}
#workspace-scene .aside-heading{font-size:12px;color:var(--muted);margin-bottom:14px;display:block}
#workspace-scene .schedule-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}
#workspace-scene .schedule-row:last-child{border:0}
#workspace-scene .schedule-row time{font-size:12px;color:var(--muted);width:45px;flex:none;font-variant-numeric:tabular-nums}
#workspace-scene .schedule-row .line{height:34px;width:3px;border-radius:2px;background:var(--accent);opacity:.7}
#workspace-scene .schedule-row strong{font-size:13px}
#workspace-scene .schedule-row p{font-size:11px;color:var(--muted);margin-top:3px}
#workspace-scene .empty{padding:42px 15px;text-align:center;color:var(--muted)}
#workspace-scene .hero-focus{padding:28px;border-radius:var(--radius);background:var(--dark);color:#fff;display:flex;align-items:center;gap:22px;margin-bottom:23px}
#workspace-scene .hero-focus .eyebrow{color:#bcc5b6}
#workspace-scene .hero-focus h2{font-size:22px;margin:8px 0}
#workspace-scene .hero-focus p{color:#d4dccf;font-size:12px}
#workspace-scene .hero-focus .btn{margin-left:auto;background:#eff1e7;color:#30372d;border-color:#eff1e7;flex:none}
#workspace-scene .focus-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.85fr);gap:20px}
#workspace-scene .date-block{width:74px;height:74px;display:grid;place-content:center;text-align:center;border:1px solid #677360;border-radius:12px;flex:none}
#workspace-scene .date-block b{font-size:31px;line-height:1.15}
#workspace-scene .date-block span{font-size:11px;color:#d4dccf}
#workspace-scene .flow-metrics{display:flex;gap:24px;align-items:center}
#workspace-scene .flow-metrics .stat strong{font-size:26px}
#workspace-scene .stage-tabs{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}
#workspace-scene .stage-tabs button{display:flex;gap:8px;align-items:center;padding:10px 15px;border:1px solid var(--line);background:var(--card);border-radius:8px;min-height:44px;font-size:12px}
#workspace-scene .stage-tabs button.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
#workspace-scene .stage-tabs b{font-size:11px;border:1px solid currentColor;border-radius:4px;padding:0 5px}
#workspace-scene .board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
#workspace-scene .lane{padding:0 2px;min-width:0}
#workspace-scene .lane-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 15px;color:var(--muted);font-size:12px}
#workspace-scene .lane-head strong{display:flex;gap:7px;align-items:center;color:var(--ink);font-size:13px}
#workspace-scene .work-card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin-bottom:12px;min-width:0}
#workspace-scene .work-card h3{font-size:14px;margin:10px 0 7px}
#workspace-scene .work-card p{font-size:11px;color:var(--muted)}
#workspace-scene .work-card .card-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:18px;padding-top:12px;gap:8px}
#workspace-scene .work-card .work-num{font-size:25px;letter-spacing:-1px;margin:15px 0 12px}
#workspace-scene .work-card .work-num span{font-size:11px;color:var(--muted);letter-spacing:0}
#workspace-scene .project-space{display:grid;grid-template-columns:285px minmax(0,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;background:var(--card);min-height:660px}
#workspace-scene .project-list{padding:20px 14px;background:var(--card);border-right:1px solid var(--line)}
#workspace-scene .project-list .search{margin-bottom:18px}
#workspace-scene .project-list-item{width:100%;text-align:left;border:0;background:transparent;border-radius:11px;padding:15px 12px;margin-bottom:5px;display:flex;gap:10px;align-items:center}
#workspace-scene .project-list-item.active{background:var(--soft)}
#workspace-scene .project-list-item .company{width:35px;height:35px;font-size:15px}
#workspace-scene .project-list-item strong{display:block;font-size:13px}
#workspace-scene .project-list-item small{display:block;font-size:11px;color:var(--muted);margin-top:3px}
#workspace-scene .project-detail{padding:28px;min-width:0;background:color-mix(in srgb,var(--bg) 55%,var(--card))}
#workspace-scene .detail-hero{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}
#workspace-scene .detail-hero h2{font-size:25px;margin-bottom:8px}
#workspace-scene .detail-hero .company{width:58px;height:58px;font-size:25px}
#workspace-scene .detail-progress{margin:24px 0 0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:16px}
#workspace-scene .detail-progress strong{font-size:32px;letter-spacing:-1.2px}
#workspace-scene .detail-progress strong span{font-size:13px;font-weight:500;letter-spacing:0;color:var(--muted)}
#workspace-scene .stages{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0}
#workspace-scene .stage-cell{border:1px solid var(--line);padding:14px 10px;background:var(--card);border-radius:10px}
#workspace-scene .stage-cell strong{display:block;font-size:22px;font-weight:600}
#workspace-scene .stage-cell span{font-size:11px;color:var(--muted)}
#workspace-scene .detail-columns{display:grid;grid-template-columns:1.3fr 1fr;gap:18px}
#workspace-scene .detail-note{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px}
#workspace-scene .activity{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
#workspace-scene .activity:last-child{border:0}
#workspace-scene .activity strong{font-size:12px}
#workspace-scene .activity p{font-size:11px;color:var(--muted);margin-top:3px}
#workspace-scene .activity time{margin-left:auto;font-size:10px;color:var(--muted);white-space:nowrap}
html[data-layout="pulse"] #workspace-scene .sidebar{display:none}
html[data-layout="pulse"] #workspace-scene .topbar{padding:18px 40px}
#workspace-scene .top-navigation{display:flex;gap:8px}
#workspace-scene .top-navigation .nav-btn{min-height:38px}
html[data-layout="pulse"] #workspace-scene .main{padding:32px 40px;max-width:1460px}
#workspace-scene .command-top{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;margin-bottom:24px}
#workspace-scene .command-headline{padding:30px 0}
#workspace-scene .command-headline h1{font-size:40px;font-weight:550;margin:14px 0;letter-spacing:-1.7px;line-height:1.3}
#workspace-scene .command-headline h1 em{font-style:normal;color:var(--accent)}
#workspace-scene .command-score{background:var(--accent);color:var(--on-accent);border-radius:20px;padding:28px;display:flex;justify-content:space-between;gap:18px;align-items:center;min-width:0}
#workspace-scene .command-score p{font-size:12px;opacity:.85}
#workspace-scene .command-score strong{font-size:64px;letter-spacing:-3px;line-height:1.25;font-weight:500}
#workspace-scene .ring{width:125px;height:125px;position:relative;flex:none}
#workspace-scene .ring svg{width:100%;height:100%;transform:rotate(-90deg);stroke-width:5px}
#workspace-scene .ring circle{fill:none;stroke:currentColor}
#workspace-scene .ring .track{opacity:.2}
#workspace-scene .ring .value{stroke-dasharray:150 314;stroke-linecap:round}
#workspace-scene .ring span{position:absolute;inset:0;display:grid;place-items:center;font-size:21px}
#workspace-scene .command-lower{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(220px,.75fr);gap:18px;align-items:start}
#workspace-scene .risk-row{border-bottom:1px solid var(--line);padding:17px 0;display:flex;gap:12px;align-items:flex-start}
#workspace-scene .risk-row:last-child{border:0}
#workspace-scene .risk-mark{border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-weight:800;background:color-mix(in srgb,var(--bad) 10%,var(--card));color:var(--bad);flex:none}
#workspace-scene .risk-row h3{font-size:13px}
#workspace-scene .risk-row p{font-size:11px;color:var(--muted);margin-top:5px}
#workspace-scene .mini-chart{height:150px;display:flex;align-items:end;gap:12px;padding:15px 6px 25px;margin-top:15px;border-bottom:1px solid var(--line)}
#workspace-scene .mini-chart div{flex:1;height:var(--height);background:var(--soft);border-radius:5px 5px 0 0;position:relative}
#workspace-scene .mini-chart div:last-child{background:var(--accent)}
#workspace-scene .mini-chart span{position:absolute;top:100%;width:100%;font-size:10px;text-align:center;padding-top:6px;color:var(--muted)}
#workspace-scene .ledger-shell>.sidebar{display:none}
html[data-layout="paper"] #workspace-scene .topbar{padding:16px 32px}
html[data-layout="paper"] #workspace-scene .main{padding:28px 32px}
#workspace-scene .ledger-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:30px}
#workspace-scene .calendar-side{min-width:0}
#workspace-scene .calendar-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
#workspace-scene .calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center;font-size:11px}
#workspace-scene .calendar span{padding:7px 2px;color:var(--muted)}
#workspace-scene .calendar button{border:0;background:none;border-radius:50%;aspect-ratio:1;font-size:11px;min-height:28px}
#workspace-scene .calendar button.selected{background:var(--accent);color:var(--on-accent)}
#workspace-scene .calendar-note{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}
#workspace-scene .calendar-note p{font-size:12px;color:var(--muted);margin-top:8px}
#workspace-scene .ledger-main{min-width:0}
#workspace-scene .ledger-date{display:flex;align-items:baseline;gap:12px;margin-bottom:20px}
#workspace-scene .ledger-date h1{font-family:Georgia,"Songti SC",serif;font-size:36px;font-weight:500}
#workspace-scene .ledger-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--ink);border-bottom:1px solid var(--line);margin-bottom:8px}
#workspace-scene .ledger-tools .search{border:0;padding:0;flex:1}
#workspace-scene .record-row{display:grid;grid-template-columns:55px minmax(140px,1.3fr) minmax(90px,.8fr) 75px 95px 45px;gap:16px;align-items:center;padding:18px 2px;border-bottom:1px solid var(--line);font-size:12px}
#workspace-scene .record-row>time{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
#workspace-scene .record-row .record-name{font-weight:700;font-size:13px}
#workspace-scene .record-row .record-sub{display:block;color:var(--muted);font-size:11px;margin-top:3px}
#workspace-scene .record-row .record-qty{font-size:18px;letter-spacing:-.5px}
#workspace-scene .record-row .record-person{display:flex;gap:7px;align-items:center;font-size:11px}
#workspace-scene .record-row .record-person .avatar{width:25px;height:25px}
#workspace-scene .record-row .icon-btn{border:0;background:none}
#workspace-scene .record-head{font-size:10px;letter-spacing:.5px;color:var(--muted);padding-top:14px;padding-bottom:10px}
#workspace-scene .mobile-week{display:none}
#workspace-scene .member-card{display:flex;gap:13px;align-items:center;background:var(--card);border:1px solid var(--line);padding:18px;border-radius:14px}
#workspace-scene .member-card .avatar{width:43px;height:43px;font-size:15px}
#workspace-scene .member-card h3{font-size:14px}
#workspace-scene .member-card p{font-size:12px;color:var(--muted)}
#workspace-scene .member-card .member-load{margin-left:auto;text-align:right;font-size:20px;font-weight:600}
#workspace-scene .member-card .member-load small{font-size:11px;display:block;color:var(--muted);font-weight:400}
#workspace-scene .activity-panel{max-width:1000px}
#workspace-scene .ai-output{line-height:1.9;background:var(--soft);padding:22px;border-radius:12px;margin-top:18px}
#workspace-scene .setting-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line)}
#workspace-scene .setting-row strong{display:block}
#workspace-scene .setting-row p{font-size:12px;color:var(--muted)}
#workspace-scene dialog{border:1px solid var(--line);background:var(--card);color:var(--ink);border-radius:20px;padding:0;width:min(520px,calc(100% - 28px));max-height:90vh;overflow:auto;box-shadow:0 30px 100px #0003}
#workspace-scene dialog::backdrop{background:#11182780;backdrop-filter:blur(4px)}
#workspace-scene .dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line)}
#workspace-scene .dialog-body{padding:24px}
#workspace-scene .dialog-foot{display:flex;justify-content:flex-end;gap:10px;padding:18px 24px;border-top:1px solid var(--line)}
#workspace-scene .field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px}
#workspace-scene .field label{font-size:12px;font-weight:600}
#workspace-scene .field input,#workspace-scene .field select,#workspace-scene .field textarea{background:var(--bg);border:1px solid var(--line);padding:11px 12px;border-radius:8px;width:100%;font-size:16px}
#workspace-scene .field textarea{min-height:90px;resize:vertical}
#workspace-scene .project-modal{width:min(820px,calc(100% - 28px))}
#workspace-scene .project-modal .project-detail{padding:24px}
#workspace-scene .more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
#workspace-scene .more-grid button{justify-content:flex-start;min-height:56px}
#workspace-scene .toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:12px 20px;border-radius:12px;font-size:13px;z-index:100;box-shadow:0 8px 30px #0002;max-width:calc(100% - 32px);text-align:center}
#workspace-scene .demo-strip{font-size:10px;letter-spacing:.8px;color:var(--muted)}
#workspace-scene .skip{position:fixed;top:-100px;left:20px;background:var(--accent);color:var(--on-accent);padding:10px;z-index:200}
#workspace-scene .skip:focus{top:12px}
#workspace-scene .mobile-brand{display:none}
html[data-layout="flow"] #workspace-scene .sidebar{padding:24px 12px;align-items:center;background:var(--bg)}
html[data-layout="flow"] #workspace-scene .brand .brand-name{display:none}
html[data-layout="flow"] #workspace-scene .side-nav{width:100%;gap:12px}
html[data-layout="flow"] #workspace-scene .nav-btn{flex-direction:column;gap:6px;text-align:center;font-size:10px;padding:12px 4px}
html[data-layout="flow"] #workspace-scene .nav-btn svg{width:21px;height:21px}
html[data-layout="flow"] #workspace-scene .sidebar-foot .team-mini{padding:0;border:0}
html[data-layout="flow"] #workspace-scene .sidebar-foot .team-mini div{display:none}
html[data-layout="flow"] #workspace-scene .sidebar-foot>.small{display:none}
html[data-layout="flow"] #workspace-scene .topbar{background:var(--bg)}
html[data-layout="flow"] #workspace-scene .main{padding-top:24px}
html[data-layout="flow"] #workspace-scene .company{background:#334242;color:var(--accent)}
html[data-layout="flow"] #workspace-scene .work-card:nth-child(2){margin-top:18px}
html[data-layout="flow"] #workspace-scene .primary{font-weight:750}
html[data-layout="flow"] #workspace-scene .work-card .badge{background:#293b41}
html[data-layout="flow"] #workspace-scene .stat-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}
html[data-layout="flow"] #workspace-scene h1{font-weight:550;letter-spacing:-.8px}
html[data-layout="atlas"] #workspace-scene .sidebar{border-right:0;background:var(--bg)}
html[data-layout="atlas"] #workspace-scene .main{padding-top:24px}
html[data-layout="atlas"] #workspace-scene .topbar{background:var(--bg);border-bottom:0}
html[data-layout="atlas"] #workspace-scene .nav-btn.active{background:var(--card);box-shadow:0 3px 10px #37345e05}
html[data-layout="atlas"] #workspace-scene .logo{border-radius:50%}
html[data-layout="atlas"] #workspace-scene .page-head{margin-bottom:22px}
html[data-layout="pulse"] #workspace-scene .brand small{display:none}
html[data-layout="pulse"] #workspace-scene .stat-strip{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:26px}
html[data-layout="pulse"] #workspace-scene .stat strong{font-size:27px}
html[data-layout="pulse"] #workspace-scene .topbar{background:transparent}
html[data-layout="paper"] #workspace-scene .logo{border-radius:4px;background:var(--ink)}
html[data-layout="paper"] #workspace-scene .topbar{background:var(--bg);border-bottom-color:var(--ink)}
html[data-layout="paper"] #workspace-scene .panel,html[data-layout="paper"] #workspace-scene .project-card{box-shadow:none}
html[data-layout="paper"] #workspace-scene .badge{border-radius:3px}
html[data-layout="paper"] #workspace-scene .top-navigation .nav-btn.active{background:transparent;box-shadow:inset 0 -2px var(--accent);border-radius:0}
@media(min-width:761px) and (max-width:1100px){#workspace-scene .sidebar{padding:24px 9px;align-items:center}
#workspace-scene .sidebar .brand{padding-left:0}
#workspace-scene .sidebar .brand-name{display:none}
#workspace-scene .side-nav{width:100%}
#workspace-scene .sidebar .nav-btn{flex-direction:column;gap:6px;font-size:10px;text-align:center;padding:10px 4px}
#workspace-scene .sidebar-foot .team-mini{padding:0;border:0}
#workspace-scene .sidebar-foot .team-mini div,#workspace-scene .sidebar-foot>.small{display:none}
#workspace-scene .topbar{padding:16px 24px}
#workspace-scene .main{padding:24px}
#workspace-scene .focus-grid{grid-template-columns:1fr}
#workspace-scene .focus-grid>.stack{display:grid;grid-template-columns:1fr 1fr;gap:18px}
#workspace-scene .hero-focus{padding:22px;gap:18px}
#workspace-scene .g3{grid-template-columns:1fr 1fr}
#workspace-scene .board{grid-template-columns:1fr 1fr}
html[data-layout="flow"] #workspace-scene .sidebar{padding-left:9px;padding-right:9px}
html[data-layout="pulse"] #workspace-scene .topbar,html[data-layout="paper"] #workspace-scene .topbar{padding:16px 24px}
#workspace-scene .top-navigation{gap:0}
#workspace-scene .top-navigation .nav-btn{font-size:12px;padding:9px 11px;gap:6px}
#workspace-scene .top-navigation .nav-btn svg{display:none}
html[data-layout="pulse"] #workspace-scene .main,html[data-layout="paper"] #workspace-scene .main{padding:24px}
#workspace-scene .command-top{grid-template-columns:1fr 1fr;gap:20px}
#workspace-scene .command-headline h1{font-size:31px}
#workspace-scene .command-score{padding:24px}
#workspace-scene .command-score strong{font-size:49px}
#workspace-scene .ring{width:93px;height:93px}
#workspace-scene .command-lower{grid-template-columns:1.1fr 1fr}
#workspace-scene .command-lower>.panel:last-child{grid-column:1/-1}
#workspace-scene .project-space{grid-template-columns:210px minmax(0,1fr)}
#workspace-scene .project-list{padding:16px 10px}
#workspace-scene .project-detail{padding:22px}
#workspace-scene .detail-columns{grid-template-columns:1fr}
#workspace-scene .project-detail .detail-hero .row{align-items:flex-start}
#workspace-scene .project-detail .detail-hero h2{font-size:23px}
#workspace-scene .ledger-layout{grid-template-columns:185px minmax(0,1fr);gap:24px}
#workspace-scene .record-row{grid-template-columns:42px minmax(120px,1fr) 68px 47px;gap:10px}
#workspace-scene .record-row .record-person,#workspace-scene .record-row .record-stage{display:none}
#workspace-scene .record-head .record-qty{font-size:10px}
#workspace-scene .stat-strip{gap:12px}
#workspace-scene .stat-strip .stat+.stat{padding-left:14px}
#workspace-scene .stat strong{font-size:27px}}
@media(max-width:760px){#workspace-scene .sidebar{display:none}
#workspace-scene .topbar,html[data-layout="pulse"] #workspace-scene .topbar,html[data-layout="paper"] #workspace-scene .topbar{min-height:68px;padding:12px 20px;background:var(--bg);border-bottom:0}
#workspace-scene .topbar .crumb{font-size:12px}
#workspace-scene .topbar .brand{font-size:14px}
#workspace-scene .topbar .brand small{display:none}
#workspace-scene .topbar .brand .logo{width:30px;height:30px;font-size:14px}
#workspace-scene .top-actions{gap:9px}
#workspace-scene .top-actions>.icon-btn:first-child{display:none}
#workspace-scene .top-actions .avatar{width:30px;height:30px}
#workspace-scene .top-navigation{display:none}
#workspace-scene .main,html[data-layout="atlas"] #workspace-scene .main,html[data-layout="flow"] #workspace-scene .main,html[data-layout="pulse"] #workspace-scene .main,html[data-layout="paper"] #workspace-scene .main{padding:18px 20px 105px}
#workspace-scene .page-head{align-items:flex-start;gap:12px;margin-bottom:23px}
#workspace-scene .page-head h1{font-size:27px;letter-spacing:-.8px}
#workspace-scene .page-head p{font-size:12px;margin-top:6px}
#workspace-scene .page-head .eyebrow{font-size:10px;margin-bottom:8px}
#workspace-scene .page-head>.btn{font-size:0;width:44px;height:44px;padding:11px;min-width:44px}
#workspace-scene .page-head>.btn svg{width:21px;height:21px}
#workspace-scene .g2,#workspace-scene .g3,#workspace-scene .g4{grid-template-columns:1fr}
#workspace-scene .panel{padding:18px}
#workspace-scene .panel-head{margin-bottom:12px}
#workspace-scene .panel h2{font-size:16px}
#workspace-scene .btn{min-height:44px}
#workspace-scene .text-action{min-height:38px}
#workspace-scene .pill{min-height:44px}
#workspace-scene .toolbar{gap:8px}
#workspace-scene .toolbar .search{flex-basis:100%}
#workspace-scene .stat-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 0;padding:18px 0}
#workspace-scene .stat-strip .stat{padding:0 14px 0 0}
#workspace-scene .stat-strip .stat+.stat{padding-left:0;border:0}
#workspace-scene .stat-strip .stat:nth-child(even){padding-left:20px;border-left:1px solid var(--line)}
#workspace-scene .stat strong{font-size:28px}
#workspace-scene .stat span{font-size:11px}
#workspace-scene .hero-focus{padding:20px;display:grid;grid-template-columns:50px 1fr;gap:14px;margin-bottom:22px;border-radius:18px}
#workspace-scene .date-block{width:50px;height:65px;border-radius:8px}
#workspace-scene .date-block b{font-size:26px}
#workspace-scene .date-block span{font-size:10px}
#workspace-scene .hero-focus h2{font-size:18px}
#workspace-scene .hero-focus .eyebrow{font-size:9px;letter-spacing:1px}
#workspace-scene .hero-focus p{font-size:11px}
#workspace-scene .hero-focus .btn{grid-column:1/-1;justify-content:center;width:100%;margin-top:4px}
#workspace-scene .focus-grid{grid-template-columns:1fr;gap:16px}
#workspace-scene .focus-grid>.stack{display:flex}
#workspace-scene .task{padding:17px 0;gap:10px;flex-wrap:wrap}
#workspace-scene .task-copy strong{font-size:13px}
#workspace-scene .task-copy p{font-size:11px}
#workspace-scene .check-action{width:34px;height:34px}
#workspace-scene .task>.badge{margin-left:44px}
#workspace-scene .task>.text-action{margin-left:auto;margin-top:-9px;margin-bottom:-6px}
#workspace-scene .bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:20;background:var(--card);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 10px max(9px,env(safe-area-inset-bottom));gap:4px}
#workspace-scene .bottom-nav button{min-width:0;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:0;background:transparent;color:var(--muted);border-radius:10px;font-size:10px}
#workspace-scene .bottom-nav button svg{width:21px;height:21px}
#workspace-scene .bottom-nav button.active{color:var(--accent);background:var(--soft);font-weight:700}
#workspace-scene .topbar>.mobile-brand{display:flex}
#workspace-scene .mobile-week{display:flex;gap:7px;margin:0 0 22px}
#workspace-scene .mobile-week button{border:1px solid var(--line);background:var(--card);border-radius:11px;flex:1;padding:8px 0;min-width:0;color:var(--muted);font-size:10px;min-height:60px}
#workspace-scene .mobile-week button b{display:block;font-size:16px;margin-top:3px;color:var(--ink);font-weight:600}
#workspace-scene .mobile-week button.active{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
#workspace-scene .mobile-week button.active b{color:inherit}
#workspace-scene .project-card{padding:18px}
#workspace-scene .project-card .summary{margin:14px 0;min-height:0}
#workspace-scene .project-card h3{font-size:15px}
#workspace-scene .flow-metrics{gap:16px}
#workspace-scene .flow-metrics .stat strong{font-size:24px}
#workspace-scene .flow-metrics .stat span{font-size:10px}
#workspace-scene .stage-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:20px 0}
#workspace-scene .stage-tabs button{display:block;padding:10px 4px;text-align:center;font-size:11px}
#workspace-scene .stage-tabs button b{display:block;max-width:23px;margin:5px auto 0}
#workspace-scene .board{grid-template-columns:1fr;gap:0}
#workspace-scene .lane-head{margin-bottom:12px}
#workspace-scene .lane{margin-bottom:15px}
html[data-layout="flow"] #workspace-scene .work-card:nth-child(2){margin-top:0}
#workspace-scene .work-card{padding:18px}
#workspace-scene .work-card h3{font-size:15px}
#workspace-scene .work-card p{font-size:12px}
#workspace-scene .work-card .work-num{font-size:28px}
#workspace-scene .work-card .card-footer .text-action{min-height:44px}
#workspace-scene .project-space{display:block;border:0;background:transparent;border-radius:0;min-height:0}
#workspace-scene .project-list{padding:0;background:none;border:0}
#workspace-scene .project-list>.search{margin-bottom:18px}
#workspace-scene .project-list-item{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:20px 16px;margin-bottom:12px;gap:12px;min-height:97px}
#workspace-scene .project-list-item.active{background:var(--card)}
#workspace-scene .project-list-item .company{width:43px;height:43px;font-size:20px}
#workspace-scene .project-list-item strong{font-size:15px}
#workspace-scene .project-list-item small{font-size:12px;margin-top:5px}
#workspace-scene .project-list-item:after{content:'›';font-size:25px;margin-left:auto;color:var(--muted)}
#workspace-scene .project-space>.project-detail{display:none}
#workspace-scene .detail-hero h2{font-size:24px}
#workspace-scene .detail-columns{grid-template-columns:1fr}
#workspace-scene .stages{gap:6px}
#workspace-scene .stage-cell{padding:12px 9px}
#workspace-scene .stage-cell strong{font-size:20px}
#workspace-scene .detail-progress{gap:12px}
#workspace-scene .command-top{display:flex;flex-direction:column;gap:18px;margin-bottom:22px}
#workspace-scene .command-headline{padding:4px 0}
#workspace-scene .command-headline h1{font-size:32px;letter-spacing:-1px;margin:12px 0}
#workspace-scene .command-headline p{font-size:12px}
#workspace-scene .command-score{padding:24px;border-radius:18px}
#workspace-scene .command-score strong{font-size:55px}
#workspace-scene .ring{width:116px;height:116px}
#workspace-scene .command-lower{grid-template-columns:1fr;gap:16px}
html[data-layout="pulse"] #workspace-scene .stat-strip{margin-bottom:24px}
#workspace-scene .command-lower>.panel:last-child{grid-column:auto}
html[data-layout="pulse"] #workspace-scene .page-head{margin-bottom:12px}
#workspace-scene .ledger-layout{display:block}
#workspace-scene .calendar-side{display:none}
#workspace-scene .ledger-date{align-items:flex-start;margin-bottom:20px;justify-content:space-between}
#workspace-scene .ledger-date h1{font-size:30px;letter-spacing:-1px}
#workspace-scene .ledger-tools{gap:8px}
#workspace-scene .ledger-tools .search{flex-basis:100%}
#workspace-scene .record-row{grid-template-columns:40px minmax(0,1fr) auto;gap:10px;padding:17px 0}
#workspace-scene .record-row .record-name{font-size:13px}
#workspace-scene .record-row .record-stage{display:none}
#workspace-scene .record-row .record-person{grid-column:2;grid-row:auto;font-size:11px;margin-top:0}
#workspace-scene .record-row .record-qty{grid-column:3;grid-row:1;font-size:19px;align-self:start}
#workspace-scene .record-row>.icon-btn{display:none}
#workspace-scene .record-head{display:none}
#workspace-scene .record-row>time{font-size:10px;align-self:start;padding-top:3px}
#workspace-scene .ledger-main .mobile-week{margin-bottom:18px}
#workspace-scene .member-card{padding:16px}
#workspace-scene .member-card h3{font-size:14px}
#workspace-scene .member-card p{font-size:11px}
#workspace-scene .member-card .member-load{font-size:20px}
#workspace-scene .activity time{font-size:9px}
#workspace-scene .activity-panel{padding:18px}
#workspace-scene .dialog-body{padding:20px}
#workspace-scene .dialog-head{padding:17px 20px}
#workspace-scene .dialog-foot{padding:16px 20px}
#workspace-scene .project-modal .project-detail{padding:20px}
#workspace-scene .toast{bottom:88px;font-size:12px}
#workspace-scene .demo-strip{font-size:9px}
#workspace-scene .topbar .brand-name{display:block}
#workspace-scene .more-grid button{font-size:12px;min-height:56px}
#workspace-scene .badge{font-size:10px}
#workspace-scene .detail-note{padding:16px}}
@media(prefers-reduced-motion:reduce){#workspace-scene *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){#workspace-scene .desktop-crumb{display:none}}
@media(max-width:760px){#workspace-scene .check-action{width:44px;height:44px}
#workspace-scene .task>.badge{margin-left:54px}
#workspace-scene .text-action{min-height:44px}
#workspace-scene .task-copy strong{font-size:14px}
#workspace-scene .task-copy p{font-size:12px}}
@media(max-width:760px){#workspace-scene .bottom-nav button{padding:6px 2px;white-space:nowrap}
#workspace-scene .bottom-nav button span{white-space:nowrap}
#workspace-scene .task{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:8px 10px}
#workspace-scene .task>.check-action{grid-column:1;grid-row:1/span 2}
#workspace-scene .task>.task-copy{grid-column:2/-1}
#workspace-scene .task>.badge{grid-column:2;margin:0;justify-self:start}
#workspace-scene .task>.text-action{grid-column:3;margin:0;justify-self:end}
#workspace-scene .ledger-date>.btn{font-size:0;width:44px;min-width:44px;height:44px;padding:11px;flex:none}
#workspace-scene .ledger-date>.btn svg{width:21px;height:21px}}
#workspace-scene .record-role{display:block;font-size:10px;font-style:normal;color:var(--muted)}
@media(min-width:761px) and (max-width:1100px){#workspace-scene .record-row{grid-template-columns:42px minmax(120px,1fr) 45px 82px 30px}
#workspace-scene .record-row .record-person{display:flex}
#workspace-scene .record-row .record-stage{display:none}}
/* Live shell: preserve all original nodes, listeners, permission gates and modal flows. */
html[data-layout="focus"][data-theme="warm"]{--bg:#f7f5f1;--card:#fff;--text:#282923;--text-2:#697063;--text-3:#70736a;--line:#e5e5dd;--primary:#bd4d2c;--primary-soft:#f8eae2;--surface-2:#f6f4ee;--topbar-bg:#fff;--ok:#35734e;--danger:#b64737}
html[data-layout="flow"][data-theme="dark"]{--bg:#151c25;--card:#1e2834;--text:#edf3f8;--text-2:#a7b5c4;--text-3:#a7b5c4;--line:#354353;--primary:#d6ee8c;--primary-soft:#2b3940;--surface-2:#24313e;--topbar-bg:#151c25;--wd-on:#202b12;--ok:#a4dbb4;--danger:#ffb29e}
html[data-layout="atlas"][data-theme="violet"]{--bg:#f4f5fb;--card:#fff;--text:#24283d;--text-2:#6e7287;--text-3:#71758b;--line:#e1e4ef;--primary:#5545ba;--primary-soft:#efecfa;--surface-2:#f6f5fb;--topbar-bg:#f4f5fb}
html[data-layout="pulse"][data-theme="mint"]{--bg:#f0f4f0;--card:#fff;--text:#20392f;--text-2:#64766a;--text-3:#697b71;--line:#dce4dc;--primary:#275f49;--primary-soft:#e9f0e8;--surface-2:#f4f7f2;--topbar-bg:#f0f4f0;--ok:#35734e}
html[data-layout="paper"][data-theme="warm"]{--bg:#f6f4ee;--card:#fcfbf7;--text:#2c302f;--text-2:#686f61;--text-3:#73766e;--line:#dfdfd4;--primary:#35558f;--primary-soft:#e9edf3;--surface-2:#f2f1e9;--topbar-bg:#f6f4ee}
html[data-wd-nav] body{--wd-side:210px;background:var(--bg);padding-left:0}
html[data-wd-nav] main{max-width:1600px;padding:24px 32px 56px;min-width:0}
html[data-wd-nav] .topbar{height:auto;min-height:77px;padding:16px 30px;gap:14px;flex-wrap:nowrap;background:var(--topbar-bg);box-shadow:none}
html[data-wd-nav] .topbar-actions{padding:0;margin:0 0 0 auto;border:0;gap:8px;align-items:center}
html[data-wd-nav] .topbar .btn{display:inline-flex;align-items:center;gap:7px;min-height:40px}
html[data-wd-nav] #btn-theme svg,html[data-wd-nav] #btn-search svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-wd-nav] .brand{border:0;padding:0;margin:0;gap:10px;flex:none}
html[data-wd-nav] .brand-mark{width:34px;height:34px;font-size:16px;background:var(--primary);color:var(--wd-on,#fff);border-radius:9px}
html[data-wd-nav] .brand-text strong{font-size:15px}html[data-wd-nav] .brand-text small{font-size:10px}
#wd-sidebar{display:none}#wd-crumb{font-size:12px;color:var(--text-2);min-width:0;overflow-wrap:anywhere}#wd-mobile-brand{display:none}
html[data-wd-nav="side"] body{padding-left:var(--wd-side)}
html[data-wd-nav="side"] #wd-sidebar{position:fixed;inset:0 auto 0 0;width:var(--wd-side);height:100dvh;background:var(--card);border-right:1px solid var(--line);display:flex;flex-direction:column;gap:26px;padding:28px 18px 18px;z-index:36}
html[data-wd-nav="side"] #wd-sidebar .tabs{position:static;width:100%;height:auto;margin:0;padding:0;display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow-y:auto;overflow-x:hidden;flex:1 1 auto;background:none;border:0;mask-image:none}
html[data-wd-nav="side"] #wd-sidebar .tabs::before,html[data-wd-nav="side"] #wd-sidebar .tabs::after{display:none}
html[data-wd-nav] #tabs .tab{display:flex;align-items:center;gap:10px;min-height:43px;height:auto;padding:10px 13px;text-align:left;border:0;box-shadow:none;border-radius:9px;font-size:13px}
html[data-wd-nav] #tabs .tab[hidden],html[data-wd-nav] #tabs .tab.tab-user-hidden{display:none!important}
html[data-wd-nav] #tabs .tab-ico{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;opacity:1;font-size:0;flex:none}
html[data-wd-nav] #tabs .tab-ico svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html[data-wd-nav] #tabs .tab.is-active{background:var(--primary-soft);color:var(--primary);font-weight:700}
#wd-identity{order:3;border-top:1px solid var(--line);padding:17px 10px 0;margin-top:auto;overflow-wrap:anywhere}#wd-identity strong{display:block;font-size:12px}#wd-identity small{display:block;font-size:11px;color:var(--text-2);margin-top:5px}
html[data-layout="flow"][data-wd-nav] body{--wd-side:90px}html[data-layout="flow"] #wd-sidebar{align-items:center;padding:24px 10px}html[data-layout="flow"] #wd-sidebar .brand-text{display:none}html[data-layout="flow"] #wd-sidebar .tab{flex-direction:column;gap:5px;font-size:10px;padding:11px 2px;text-align:center}html[data-layout="flow"] #wd-identity{padding:16px 0 0;text-align:center;font-size:10px}
html[data-wd-nav="horizontal"] #wd-crumb{display:none}html[data-wd-nav="horizontal"] .topbar .tabs{order:0;flex:1 1 auto;align-items:center;min-width:0;height:auto;margin:0;padding:0;gap:3px;overflow-x:auto;width:auto}html[data-wd-nav="horizontal"] .topbar .tabs .tab{white-space:nowrap;flex:none;font-size:12px;min-height:40px;padding:8px 10px}
#wd-all-functions{display:none}html[data-wd-nav="horizontal"] #wd-all-functions{display:inline-grid}#wd-all-functions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2}
#wd-bottom{display:none}#wd-more{padding:0;width:min(540px,calc(100% - 28px));max-height:85dvh;border:1px solid var(--line);border-radius:18px;background:var(--card);color:var(--text);box-shadow:var(--shadow-lg)}#wd-more::backdrop{background:rgba(15,22,34,.55);backdrop-filter:blur(4px)}.wd-more-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;border-bottom:1px solid var(--line)}.wd-more-head h2{font-size:17px}#wd-more-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:20px}#wd-more-list button{display:flex;align-items:center;gap:10px;background:var(--card);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:12px;min-height:54px;text-align:left;font-size:13px}#wd-more-list svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#wd-more-list button:hover{background:var(--primary-soft)}
#workspace-scene .project-list{max-height:740px;overflow:auto}#workspace-scene .cli-avatar{width:40px;height:40px;font-size:18px;flex:none}#workspace-scene .project-list-item .cli-avatar{width:35px;height:35px;font-size:15px}#workspace-scene .detail-hero .cli-avatar{width:54px;height:54px;font-size:24px}#workspace-scene .wd-task-counts{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:11px;color:var(--text-2);margin-top:7px}#workspace-scene .wd-task-ops{display:flex;align-items:center;gap:8px;margin-left:auto}#workspace-scene .wd-task-ops details{position:relative}#workspace-scene .wd-task-ops summary{list-style:none;cursor:pointer;display:grid;place-items:center;min-width:34px;min-height:34px;border-radius:7px}#workspace-scene .wd-task-ops summary::-webkit-details-marker{display:none}#workspace-scene .wd-task-ops details[open]>div{position:absolute;z-index:15;right:0;top:100%;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:7px;box-shadow:var(--shadow-lg);width:160px;display:grid;gap:5px}#workspace-scene .wd-task-ops .btn{min-height:40px;font-size:12px}#workspace-scene .operator-chip{font-size:11px;padding:3px 6px;max-width:100%;display:inline-flex;flex-wrap:wrap}#workspace-scene .record-row .operator-chip{border:0;background:transparent;padding:0;gap:3px 7px}#workspace-scene .record-person{min-width:0;overflow-wrap:anywhere}#workspace-scene .wd-chart-value{position:absolute;bottom:100%;font-size:11px;width:100%;text-align:center;color:var(--text-2)}#workspace-scene .calendar-side .calendar-note{margin-top:20px}#workspace-scene .project-detail .task{flex-wrap:wrap}#workspace-scene .project-detail .task-copy{flex-basis:calc(100% - 60px)}#workspace-scene .project-detail .wd-task-ops{margin-left:auto}#workspace-scene .command-headline h1{font-size:38px}#workspace-scene .command-headline h1 em{color:var(--primary)}#workspace-scene .progress i{background:var(--primary)}
html[data-wd-nav] .view .panel{border-radius:14px;box-shadow:none}html[data-wd-nav] #view-clients .client-grid{grid-template-columns:repeat(auto-fill,minmax(min(290px,100%),1fr))}html[data-wd-nav] .datebar{margin-bottom:22px}html[data-wd-nav] .view .panel-head{flex-wrap:wrap}html[data-wd-nav] .modal-mask .btn.primary{color:var(--wd-on,#fff)}html[data-wd-nav] :focus-visible{outline:3px solid var(--primary);outline-offset:3px}
@media(min-width:761px) and (max-width:1100px){html[data-wd-nav] body{--wd-side:80px}html[data-wd-nav] main{padding:22px 24px 56px}html[data-wd-nav] .topbar{padding:15px 24px;min-height:74px}html[data-wd-nav="side"] #wd-sidebar{padding:24px 8px;align-items:center}html[data-wd-nav="side"] #wd-sidebar .brand-text{display:none}html[data-wd-nav="side"] #wd-sidebar .tab{flex-direction:column;gap:5px;font-size:10px;padding:10px 3px;text-align:center}html[data-wd-nav="side"] #wd-identity{font-size:10px;padding:14px 0 0;text-align:center}html[data-wd-nav] .topbar-actions .hide-narrow{display:none}html[data-wd-nav] #btn-add-client{display:none}html[data-wd-nav] #theme-name{display:none}html[data-wd-nav="horizontal"] .topbar .brand-text small{display:none}html[data-wd-nav="horizontal"] .topbar .tabs .tab-ico{display:none}html[data-wd-nav="horizontal"] .topbar .tabs{gap:0}html[data-wd-nav="horizontal"] .topbar .tabs .tab{padding:8px;font-size:12px}}
@media(max-width:760px){html[data-wd-nav] body{padding-left:0!important}html[data-wd-nav] #wd-sidebar{display:none!important}html[data-wd-nav] .topbar{min-height:68px;padding:10px 16px;gap:8px;flex-wrap:nowrap;row-gap:0;backdrop-filter:none;background:var(--bg)}html[data-wd-nav] .topbar>.brand,html[data-wd-nav] .topbar .tabs,#wd-crumb{display:none!important}#wd-mobile-brand{display:block;padding:0;border:0;background:none;color:var(--text);font-size:14px;font-weight:750;min-width:0;max-width:36%;overflow-wrap:anywhere;text-align:left;line-height:1.4}html[data-wd-nav] .topbar-actions{gap:7px;min-width:0}html[data-wd-nav] #theme-name,html[data-wd-nav] #btn-add-client,html[data-wd-nav] #btn-search,html[data-wd-nav] #wd-all-functions{display:none!important}html[data-wd-nav] #btn-theme{display:inline-grid;place-items:center;padding:10px;min-height:42px;width:42px}html[data-wd-nav] .conn-chip{min-height:42px;padding:7px 9px;font-size:11px;max-width:140px}html[data-wd-nav] #conn-text{max-width:88px}html[data-wd-nav] main{padding:14px 18px max(110px,calc(90px + env(safe-area-inset-bottom)));max-width:none}html[data-wd-nav] .datebar{gap:6px;margin-bottom:18px}html[data-wd-nav] .date-nav{gap:6px}html[data-wd-nav] .date-nav input{min-height:42px;max-width:145px;font-size:13px}html[data-wd-nav] .datebar .icon-btn{min-width:42px;min-height:42px}html[data-wd-nav] .date-quick{gap:4px;flex-wrap:wrap}html[data-wd-nav] .date-quick .chip{font-size:11px;padding:6px 10px;min-height:38px}html[data-wd-nav] .date-label{font-size:11px}#wd-bottom{position:fixed;bottom:0;left:0;right:0;z-index:38;display:grid;gap:4px;background:var(--card);border-top:1px solid var(--line);padding:7px 8px max(9px,env(safe-area-inset-bottom))}#wd-bottom button{border:0;background:none;color:var(--text-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 2px;min-height:50px;font-size:10px;white-space:nowrap;border-radius:10px}#wd-bottom button.active{background:var(--primary-soft);color:var(--primary);font-weight:700}#wd-bottom svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}#workspace-scene .project-list{max-height:none;overflow:visible}#workspace-scene .wd-task-ops{grid-column:3;margin:0;justify-self:end}#workspace-scene .task>.badge{font-size:10px}#workspace-scene .wd-task-ops details[open]>div{right:-4px}#workspace-scene .project-detail .task-copy{flex-basis:auto}#workspace-scene .command-headline h1{font-size:30px}#workspace-scene .hero-focus .btn{min-height:44px}#workspace-scene .record-person{grid-column:2;grid-row:auto}#workspace-scene .record-person .operator-chip{display:flex;flex-wrap:wrap;gap:3px 8px}#workspace-scene .focus-grid .grid.g2{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-wd-nav] .view .btn,html[data-wd-nav] .modal-mask .btn{min-height:44px}html[data-wd-nav] .modal-foot{padding-bottom:max(14px,env(safe-area-inset-bottom))}html[data-wd-nav] .toast{bottom:90px}#wd-more .icon-btn{width:44px;height:44px}html[data-wd-nav] #view-clients .client-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html[data-wd-nav] *{scroll-behavior:auto!important;transition:none!important}}
#workspace-scene h1,#workspace-scene h2,#workspace-scene h3,#workspace-scene strong{overflow-wrap:anywhere}
#workspace-scene .row>div{min-width:0}
#workspace-scene .project-list-item>span:last-child{min-width:0;flex:1;overflow-wrap:anywhere}
#workspace-scene .hero-focus>div:not(.date-block){min-width:0;flex:1}
#workspace-scene .operator-chip b{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){#workspace-scene .command-score strong{font-size:clamp(32px,12vw,54px)}#workspace-scene .command-score .ring{width:100px;height:100px}}

/* Pulse: quiet blue/white defaults, clearer visual hierarchy and denser useful content. */
html[data-layout="pulse"][data-theme="classic"]{--bg:#f5f7fb;--text:#192338;--text-2:#5d6a80;--text-3:#65728a;--line:#e3e8f0;--primary:#2454df;--primary-soft:#edf2ff;--surface-2:#f6f8fc;--topbar-bg:#fff;--danger:#c9424d}
html[data-layout="pulse"] #workspace-scene .command-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:32px;align-items:stretch;margin:4px 0 24px}
html[data-layout="pulse"] #workspace-scene .command-headline{padding:24px 0 16px}
html[data-layout="pulse"] #workspace-scene .command-headline .eyebrow{font-size:11px;letter-spacing:1.8px;color:var(--text-2)}
html[data-layout="pulse"] #workspace-scene .command-headline h1{font-size:clamp(28px,2.6vw,42px);font-weight:700;letter-spacing:-1px;line-height:1.4;margin:16px 0}
#workspace-scene .wd-hero-links{display:flex;gap:24px;flex-wrap:wrap;margin-top:18px}
#workspace-scene .wd-hero-links .text-action{min-height:44px}
html[data-layout="pulse"] #workspace-scene .command-score{position:relative;overflow:hidden;border-radius:24px;padding:32px;box-shadow:0 12px 28px color-mix(in srgb,var(--primary) 16%,transparent);gap:20px}
html[data-layout="pulse"] #workspace-scene .command-score::before{content:"";position:absolute;pointer-events:none;width:250px;height:250px;border:1px solid currentColor;border-radius:50%;right:-110px;top:-155px;opacity:.12}
#workspace-scene .wd-score-label{display:flex;align-items:center;gap:8px;font-size:13px;opacity:.9}
#workspace-scene .wd-score-label svg{width:18px;height:18px}
html[data-layout="pulse"] #workspace-scene .command-score strong{display:block;font-size:clamp(42px,4.3vw,68px);font-weight:650;letter-spacing:-2px;line-height:1.2;margin:14px 0;font-variant-numeric:tabular-nums}
#workspace-scene .wd-score-unit{font-size:14px;letter-spacing:0;font-weight:500;margin-left:8px}
html[data-layout="pulse"] #workspace-scene .command-score p{line-height:1.6;font-size:12px;opacity:.9}
html[data-layout="pulse"] #workspace-scene .ring{width:124px;height:124px;flex:none}
html[data-layout="pulse"] #workspace-scene .ring>span{display:flex;flex-direction:column;align-items:center;gap:5px;font-size:26px;font-weight:650;line-height:1.2}
html[data-layout="pulse"] #workspace-scene .ring small{font-size:10px;font-weight:450;opacity:.85}
html[data-layout="pulse"] #workspace-scene>.stat-strip{gap:16px;border:0;padding:0;margin:0 0 26px}
html[data-layout="pulse"] #workspace-scene .wd-kpi{padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--card);min-width:0}
#workspace-scene .wd-kpi-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}
#workspace-scene .wd-kpi-label svg{width:18px;height:18px;color:var(--primary);opacity:.75;flex:none}
html[data-layout="pulse"] #workspace-scene .wd-kpi strong{font-size:29px;line-height:1.3;margin-top:12px;letter-spacing:-.6px;font-variant-numeric:tabular-nums}
html[data-layout="pulse"] #workspace-scene .wd-kpi strong small{font-size:12px;font-weight:450;color:var(--text-2);margin-left:7px}
#workspace-scene .wd-kpi-alert .wd-kpi-label svg{color:var(--danger)}
html[data-layout="pulse"] #workspace-scene .command-lower{grid-template-columns:minmax(0,1.05fr) minmax(0,1.15fr) minmax(0,.95fr);gap:20px;align-items:start}
html[data-layout="pulse"] #workspace-scene .command-lower>.panel{border-radius:18px;padding:22px;border:1px solid var(--line);box-shadow:0 3px 16px rgba(24,40,75,.025);min-width:0}
#workspace-scene .wd-section-kicker{display:block;font-size:9px;letter-spacing:1.4px;color:var(--text-2);margin-bottom:7px;font-weight:650}
html[data-layout="pulse"] #workspace-scene .panel-head{align-items:center;padding-bottom:18px;margin-bottom:0}
html[data-layout="pulse"] #workspace-scene .panel-head h2{font-size:17px;font-weight:700;line-height:1.4}
html[data-layout="pulse"] #workspace-scene .risk-row{padding:18px 0;gap:10px;align-items:center}
#workspace-scene .wd-risk-copy{min-width:0;flex:1}
html[data-layout="pulse"] #workspace-scene .risk-row h3{font-size:14px;line-height:1.5}
html[data-layout="pulse"] #workspace-scene .risk-row p{font-size:12px;line-height:1.65;overflow-wrap:anywhere}
html[data-layout="pulse"] #workspace-scene .risk-mark{width:32px;height:32px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--danger) 9%,var(--card));color:var(--danger);border-radius:10px}
#workspace-scene .risk-mark svg{width:17px;height:17px}
#workspace-scene .wd-risk-open{width:44px;height:44px;flex:none;display:grid;place-items:center;border:0;border-radius:10px;background:var(--surface-2);color:var(--primary);transition:background .16s}
#workspace-scene .wd-risk-open svg{width:17px;height:17px}
#workspace-scene .wd-risk-open:hover{background:var(--primary-soft)}
#workspace-scene .wd-week-total{font-size:24px;color:var(--primary);font-weight:700;display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
#workspace-scene .wd-week-total small{font-size:10px;color:var(--text-2);font-weight:450;margin-top:5px}
html[data-layout="pulse"] #workspace-scene .mini-chart{height:200px;margin-top:24px;gap:12px;padding-bottom:28px}
html[data-layout="pulse"] #workspace-scene .mini-chart>div{background:color-mix(in srgb,var(--primary) 20%,var(--card));border-radius:6px 6px 0 0}
html[data-layout="pulse"] #workspace-scene .mini-chart>div.is-selected{background:var(--primary)}
html[data-layout="pulse"] #workspace-scene .mini-chart>div.is-selected span{color:var(--primary);font-weight:700}
html[data-layout="pulse"] #workspace-scene .wd-chart-value{font-size:11px;bottom:calc(100% + 6px);font-weight:650}
#workspace-scene .wd-chart-caption{margin-top:20px;line-height:1.65}
#workspace-scene .wd-live-dot{width:7px;height:7px;flex:none;border-radius:50%;background:var(--ok);box-shadow:0 0 0 5px color-mix(in srgb,var(--ok) 10%,transparent);margin:6px}
html[data-layout="pulse"] #workspace-scene .activity{padding:18px 0;gap:10px;align-items:flex-start}
html[data-layout="pulse"] #workspace-scene .activity>div{min-width:0;flex:1}
html[data-layout="pulse"] #workspace-scene .activity p{font-size:12px;line-height:1.7;margin-top:7px;overflow-wrap:anywhere}
html[data-layout="pulse"] #workspace-scene .activity time{font-size:10px;line-height:1.8;padding-top:2px}
html[data-layout="pulse"] #workspace-scene .command-lower>.panel>.text-action{margin-top:14px;min-height:44px}
@media(min-width:761px) and (max-width:1100px){
 html[data-wd-nav] body{padding-left:0!important}
 html[data-wd-nav] #wd-sidebar{display:none!important}
 html[data-wd-nav] .topbar .tabs{display:none!important}
 html[data-wd-nav] #wd-mobile-brand{display:block;max-width:35%}
 html[data-wd-nav] main{padding-bottom:120px}
 #wd-bottom{position:fixed;bottom:0;left:0;right:0;z-index:38;display:grid;gap:6px;background:var(--card);border-top:1px solid var(--line);padding:8px max(18px,calc((100vw - 680px)/2)) max(10px,env(safe-area-inset-bottom))}
 #wd-bottom button{border:0;background:none;color:var(--text-2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px;min-height:54px;font-size:11px;white-space:nowrap;border-radius:10px}
 #wd-bottom button.active{background:var(--primary-soft);color:var(--primary);font-weight:700}
 #wd-bottom svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
 html[data-wd-nav] .topbar>.brand~#wd-mobile-brand{display:none}
 html[data-layout="pulse"] #workspace-scene .command-top{gap:20px}
 html[data-layout="pulse"] #workspace-scene .command-headline{padding:16px 0}
 html[data-layout="pulse"] #workspace-scene .command-headline h1{font-size:29px}
 html[data-layout="pulse"] #workspace-scene .command-score{padding:22px;gap:12px}
 html[data-layout="pulse"] #workspace-scene .command-score strong{font-size:42px}
 html[data-layout="pulse"] #workspace-scene .ring{width:96px;height:96px}
 html[data-layout="pulse"] #workspace-scene .ring>span{font-size:22px}
 html[data-layout="pulse"] #workspace-scene .command-lower{grid-template-columns:1fr 1fr}
 html[data-layout="pulse"] #workspace-scene .command-lower>.panel:last-child{grid-column:1/-1}
 html[data-layout="pulse"] #workspace-scene .wd-kpi{padding:16px}
 html[data-wd-nav] .toast{bottom:100px}
}
@media(max-width:760px){
 html[data-layout="pulse"] #workspace-scene .command-top{grid-template-columns:1fr;gap:18px;margin-bottom:18px}
 html[data-layout="pulse"] #workspace-scene .command-headline{padding:12px 0 0}
 html[data-layout="pulse"] #workspace-scene .command-headline h1{font-size:29px;letter-spacing:-.8px;margin:12px 0}
 html[data-layout="pulse"] #workspace-scene .command-headline>p{font-size:12px;line-height:1.8}
 html[data-layout="pulse"] #workspace-scene .wd-hero-links{margin-top:8px;gap:20px}
 html[data-layout="pulse"] #workspace-scene .command-score{padding:24px;border-radius:20px;gap:10px}
 html[data-layout="pulse"] #workspace-scene .command-score strong{font-size:46px}
 html[data-layout="pulse"] #workspace-scene .wd-score-label{font-size:11px}
 html[data-layout="pulse"] #workspace-scene .command-score p{font-size:11px}
 html[data-layout="pulse"] #workspace-scene .ring{width:98px;height:98px}
 html[data-layout="pulse"] #workspace-scene .ring>span{font-size:23px}
 html[data-layout="pulse"] #workspace-scene>.stat-strip{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
 html[data-layout="pulse"] #workspace-scene .wd-kpi{padding:14px 16px;border-radius:14px}
 html[data-layout="pulse"] #workspace-scene .wd-kpi strong{font-size:26px;margin-top:9px}
 html[data-layout="pulse"] #workspace-scene .command-lower{grid-template-columns:1fr;gap:16px}
 html[data-layout="pulse"] #workspace-scene .command-lower>.panel{padding:20px}
 html[data-layout="pulse"] #workspace-scene .mini-chart{gap:13px}
}
html[data-layout="pulse"] #workspace-scene .ring>span{justify-content:center}
#wd-all-functions svg{stroke-linecap:round;stroke-linejoin:round}
@media(min-width:761px) and (max-width:1100px){
 html[data-wd-nav="horizontal"] #wd-mobile-brand{display:none}
 html[data-wd-nav="side"] #wd-mobile-brand{padding:0;border:0;background:none;color:var(--text);font-size:15px;font-weight:750;line-height:1.4;text-align:left}
}

/* Pulse keeps its delivery hero and restores the original live weekly work modules below it. */
html[data-layout="pulse"] body.wd-home #view-dashboard{display:block!important}
html[data-layout="pulse"] #view-dashboard #stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
html[data-layout="pulse"] #view-dashboard .stat-card{border-radius:16px;border-color:var(--line);box-shadow:0 3px 16px rgba(24,40,75,.025);min-width:0}
html[data-layout="pulse"] #view-dashboard .stat-card .st-name{overflow-wrap:anywhere}
html[data-layout="pulse"] #view-dashboard #task-panel{padding:22px;border-radius:18px}
html[data-layout="pulse"] #view-dashboard .panel-grid-dash{gap:18px}
html[data-layout="pulse"] #view-dashboard .panel-head{gap:12px}
html[data-layout="pulse"] #view-dashboard #task-hint{line-height:1.6}
@media(max-width:760px){
 html[data-layout="pulse"] #view-dashboard #stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}
 html[data-layout="pulse"] #view-dashboard #task-panel{padding:16px;border-radius:16px}
 html[data-layout="pulse"] #view-dashboard .panel-grid-dash{grid-template-columns:1fr;gap:0}
 html[data-layout="pulse"] #view-dashboard .task-menu>summary{min-height:44px;display:flex;align-items:center}
 html[data-layout="pulse"] #view-dashboard .dash-fold-head{min-height:60px}
}

/* Keep navigation and overlays responsive while large lists remain mounted. */
html[data-wd-nav]{scrollbar-gutter:stable}
html[data-wd-nav] .modal-mask{backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-wd-nav] #tabs .tab:active,#wd-bottom button:active{background:var(--primary-soft);color:var(--primary)}
html[data-wd-nav] #client-detail .modal-body{overscroll-behavior:contain}
@media(hover:none){html[data-wd-nav] .client-card:hover,html[data-wd-nav] .stat-card:hover{transform:none;box-shadow:none}}
