/* Build Tracker UI v3 (signed-off mockups, 27 Nov 2026). Loaded after v2.css; changes the look, never behaviour.
   Tokens use light-dark() so the existing theme switch (data-theme / prefers-color-scheme) keeps working. */
:root{
--bg:light-dark(#F5F6FA,#121731);--panel:light-dark(#FFFFFF,#181C37);--panel2:light-dark(#F9FAFC,#1C213D);--sunk:light-dark(#EEF0F5,#272D50);
--ink:light-dark(#0F1222,#ECEEFA);--ink2:light-dark(#41475E,#C3C7DD);--mute:light-dark(#5F6680,#A9AFCB);--faint:light-dark(#646A82,#979EBE);
--line:light-dark(#E4E6EE,#2C3252);--line2:light-dark(#D6D9E4,#3A4168);
--ctl:light-dark(#8E94A8,#5A628F); /* interactive edges: 3:1 or better against panel and page in both themes */
--acc:light-dark(#3D4BD9,#7F8AFF);--accf:light-dark(#3D4BD9,#4F5CE8);--acc-50:light-dark(#EEF0FF,#1D2350);--acc-100:light-dark(#DCE0FF,#283070);--acc-ink:light-dark(#2B37B8,#B9C0FF);
--late:light-dark(#D42F3C,#FF6B74);--late-50:light-dark(#FDECEE,#3A1820);--late-ink:light-dark(#A81F2B,#FFB3B8);
--warn:light-dark(#A05305,#F3A93B);--warn-50:light-dark(#FFF3E0,#3A2A10);--ok:light-dark(#0B7A4B,#3CCF8E);--ok-50:light-dark(#E6F6EE,#10301F);--ok-ink:light-dark(#0B6B42,#8CE8BC);
--s-backlog:#5F6680;--s-planned:#3D4BD9;--s-progress:#B45309;--s-testing:#8E3BB0;--s-done:#0B7A4B;
--hero:var(--accf);--hero2:var(--accf);
--v2side:light-dark(#10132A,#080A16);--v2sidefg:#C9CDE3;--v2acc:#3D4BD9;--v2w:240px;--side2:light-dark(#1A1E3D,#141832);--sidel:light-dark(#262B4E,#2A3058);--sidem:#8D93B4;
--sh:0 1px 2px rgb(15 18 34/.05);--sh2:0 1px 2px rgb(15 18 34/.06),0 6px 16px rgb(15 18 34/.07);--sh3:0 24px 64px rgb(15 18 34/.28),0 4px 12px rgb(15 18 34/.12);
--z-side:60;--z-tabs:62;--z-overlay:80;--z-toast:100}
body.v3{font-size:14px;background:var(--bg)}
body.v3 :focus-visible{outline:2px solid var(--acc);outline-offset:2px}

/* ---------- layering: overlays always cover the sidebar and the phone tab bar ---------- */
.ov{z-index:var(--z-overlay)!important;background:rgb(8 10 24/.62)}
.toast{z-index:var(--z-toast)!important}
#fx{z-index:calc(var(--z-overlay) + 1)}
.modal{border-radius:16px;box-shadow:var(--sh3)}

/* ---------- shell: hero and view switcher are replaced by the page header and section tabs ---------- */
body.v3 .hero{display:none!important}
body.v3 .bar .seg,body.v3 #pchips{display:none!important}
#v3head{padding:18px 28px 0;background:var(--bg)}
.v3hrow{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.v3crumb{margin:0;font-size:12.5px;font-weight:600;color:var(--mute)}
.v3h1{margin:2px 0 0;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.25;color:var(--ink)}
.v3hacts{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.v3hacts svg,.v3tool svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.v3tabs{display:flex;gap:22px;margin-top:14px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.v3tabs a{padding:0 1px 10px;font-weight:700;font-size:13.5px;color:var(--mute);border-bottom:2px solid transparent;margin-bottom:-1px;text-decoration:none;white-space:nowrap}
.v3tabs a:hover{color:var(--ink)}
.v3tabs a[aria-current=page]{color:var(--ink);border-color:var(--acc)}
body.v3:not([data-v3sec]) #v3head{display:none}
body.v3 .bar{position:static;background:transparent;backdrop-filter:none;border:0;padding:0;gap:8px;flex-wrap:nowrap}
#v3tool{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:14px 28px 0}
#v3tool #v2filters{display:contents}
#v2filters[hidden],#v3tool #v2filters[hidden]{display:none!important}
#v3tool .v2sp{flex:1 1 0;min-width:0}
body.v3[data-v3view=projects] #v3tool,body.v3[data-v3view=wins] #v3tool{display:none}
body.v3 .sbox{width:220px}
body.v3 .search{min-height:34px;height:34px;border-radius:8px;font-size:13.5px;border:1px solid var(--ctl);padding-left:34px}
body.v3 .sbox svg{top:9px}
body.v3 select.sm{min-height:34px;height:34px;border-radius:8px;border:1px solid var(--ctl);font-size:13px}
.v3att{min-height:34px;height:34px;border-radius:8px;border:1px solid var(--ctl);background:var(--panel);font:inherit;font-size:13px;font-weight:700;padding:0 8px;color:var(--ink)}
body.v3 main{padding:14px 28px 40px;min-height:calc(100vh - 220px)}
body.v3 .foot{font-size:12px;padding:14px 28px 22px}
body.v3 .note{margin:12px 28px 0}

/* page titles: the header already names the section, so list pages keep their h1 for screen readers only */
body.v3[data-v3hide="1"] .v2pagewrap>.v2crumb,body.v3[data-v3hide="1"] .v2pagewrap>h1,body.v3[data-v3hide="1"] .v2pagewrap>.v2hrow>h1{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.v3 .v2pagewrap{max-width:1180px;margin:0;padding:6px 0 40px}

/* ---------- sidebar ---------- */
#v2side{background:var(--v2side);gap:2px;padding:12px 10px;z-index:var(--z-side)}
:root[data-theme=dark] #v2side,body.v3.v3dark #v2side{border-right:1px solid var(--sidel)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) #v2side{border-right:1px solid var(--sidel)}}
.v2brand{padding:6px 8px 12px;gap:10px}.v2brand b{font-size:14px;line-height:1.2}.v2brand small{max-width:150px}
.v3logo{width:32px;height:32px;border-radius:9px;background:#fff;display:grid;align-content:center;justify-items:start;gap:1.5px;padding:0 6px;flex:none}
.v3logo i{display:block;height:2.6px;border-radius:2px}
.v3logo i:nth-child(1){width:9px;background:#8A90AB;margin-left:0}.v3logo i:nth-child(2){width:10px;background:#4F5EF0;margin-left:3px}.v3logo i:nth-child(3){width:11px;background:#F0A21B;margin-left:6px}.v3logo i:nth-child(4){width:11px;background:#A945C4;margin-left:4px}.v3logo i:nth-child(5){width:13px;background:#0F8A55;margin-left:2px}
:root[data-theme=dark] .v3logo{background:#1E2342}
.v3act{display:flex;gap:6px;margin:0 0 8px}
.v2cmd{flex:1;margin:0;height:36px;min-height:36px;border-radius:9px;background:var(--side2);border-color:var(--sidel);color:var(--sidem)}
.v2cmd svg{width:15px;height:15px}
.v3new{width:36px;height:36px;border-radius:9px;border:0;background:#4F5CE8;color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.v3new svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.v2grp h2{margin:14px 10px 4px;font-size:11.5px;font-weight:700;letter-spacing:.02em;text-transform:none;color:var(--sidem)}
.v2grp a{min-height:36px;padding:0 10px;gap:10px;border-radius:8px;font-size:13.5px;font-weight:600}
.v2grp a svg{width:16px;height:16px;flex:none;fill:none;stroke:var(--sidem);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.v2grp a:hover{background:var(--side2)}
.v2grp a[aria-current=page]{background:rgb(124 138 255/.16);color:#fff;font-weight:700}
.v2grp a[aria-current=page] svg{stroke:#AEB6FF}
.v3pm{width:9px;height:9px;border-radius:2.5px;flex:none;display:inline-block;margin:0 3.5px}
.v3lbl{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2badge[hidden]{display:none!important}
.v2badge{background:#5563F0;color:#fff;min-width:20px;height:20px;display:grid;place-items:center;font-size:11.5px}
.v3spacer{flex:1}
.v3lvl{display:flex;align-items:center;gap:8px;margin:8px 0;padding:8px 10px;border-radius:10px;background:var(--side2);border:1px solid var(--sidel);color:inherit;text-align:left;cursor:pointer;font:inherit}
.v3medal{width:22px;height:22px;border-radius:50%;background:conic-gradient(#F2C94C,#C99A06,#F2C94C);display:grid;place-items:center;color:#4A3400;font-size:11px;font-weight:800;flex:none}
.v3lvlt{flex:1;min-width:0}.v3lvlt b{display:block;color:#fff;font-size:12.5px;line-height:1.2}.v3lvlt small{display:block;color:var(--sidem);font-size:11.5px;font-weight:600}
.v3xp{display:block;height:4px;border-radius:99px;background:#2A2F55;margin-top:4px;overflow:hidden}.v3xp i{display:block;height:100%;background:linear-gradient(90deg,#F2C94C,#E8B020)}
.v2foot{border-top:1px solid var(--sidel);padding:10px 4px 0;gap:4px}
.v2foot .v3me{flex:1;min-width:0}
.v3gear{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;padding:0!important}
.v3gear svg{width:17px;height:17px;fill:none;stroke:var(--sidem);stroke-width:1.8}
.v3gear:hover,.v3gear[aria-current=page]{background:var(--side2)}.v3gear[aria-current=page] svg{stroke:#fff}
body.v2rail #v2side .v3lbl,body.v2rail #v2side .v2grp h2,body.v2rail #v2side kbd,body.v2rail #v2side .v3lvlt,body.v2rail #v2side .v3new{display:none}
body.v2rail #v2side .v2grp a{justify-content:center;padding:0}
body.v2rail #v2side .v3lvl{justify-content:center;padding:8px 0}
body.v2rail .v2cmd{justify-content:center;padding:0}

/* ---------- phone tab bar ---------- */
#v2tabs svg{fill:none;stroke:currentColor;stroke-width:1.8}
@media (max-width:900px){
  #v3head{padding:14px 16px 0}#v3tool{padding:12px 16px 0}body.v3 main{padding:12px 16px 24px}
  .v3tabs{gap:18px}
  body.v3 .sbox{width:100%}
  .v3hacts .btn kbd{display:none}
}

/* ---------- overlays on phones: full-height sheets with the action bar always visible ---------- */
@media (max-width:760px){
  .ov{padding:0!important;align-items:flex-end!important}
  .ov .modal{width:100%!important;max-height:calc(100dvh - 20px);border-radius:18px 18px 0 0;display:flex;flex-direction:column;animation:none}
  .ov .modal>.mb,.ov .modal>.pane,.ov .modal .hubb{overflow:auto;flex:1;min-height:0}
  .ov .modal .mf{position:sticky;bottom:0;padding-bottom:calc(14px + env(safe-area-inset-bottom));z-index:2}
  .ov .modal .btn{min-height:44px}
}

/* ---------- controls ---------- */
body.v3 .btn{min-height:36px;height:36px;padding:0 14px;border-radius:9px;border:1px solid var(--ctl);font-size:13.5px;box-shadow:var(--sh)}
body.v3 .btn:hover{transform:none;box-shadow:var(--sh2)}
body.v3 .btn.pri{background:var(--accf);border-color:var(--accf);color:#fff}
body.v3 .btn.sm{min-height:32px;height:32px;padding:0 10px;font-size:12.5px;border-radius:8px}
body.v3 .btn kbd{opacity:.75}
body.v3 .f{border-color:var(--ctl);border-radius:9px}
body.v3 .v2dd>summary{min-height:32px;height:32px;border-radius:8px;border:1px solid var(--ctl);font-size:13px;font-weight:600;color:var(--ink2)}
body.v3 .v2chk{font-size:13px;font-weight:600;color:var(--ink2)}
body.v3 .v2chk input[type=checkbox]{accent-color:var(--accf)}

/* ---------- board ---------- */
body.v3 .board{gap:12px;grid-auto-columns:minmax(208px,1fr)}
body.v3 .col{background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:8px;gap:8px;min-height:200px}
body.v3 .colh{padding:4px 6px 2px;font-size:13px}
body.v3 .colh .dot{box-shadow:none;width:8px;height:8px}
body.v3 .colh .bdg{background:transparent;color:var(--mute);font-size:12px;padding:0}
body.v3 .colbar{display:none}
body.v3 .card{border-radius:10px;padding:10px 11px 10px 13px;box-shadow:inset 3px 0 0 var(--sc,transparent),var(--sh);border:1px solid var(--line);display:flex;flex-direction:column;gap:7px}
body.v3 .card:hover{transform:none;box-shadow:inset 3px 0 0 var(--sc,transparent),var(--sh2)}
body.v3 .card.od{border-color:light-dark(#F1C2C6,#5A2630)}
body.v3 .card.od::before,body.v3 .card.sn::before{display:none}
body.v3 .card h4{margin:0;font-size:13.5px;line-height:1.35;font-weight:700}
body.v3 .card .ctop{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
body.v3 .card .pj{order:0;flex:1 1 auto;min-width:0;margin:0;font-size:12px;color:var(--mute);font-weight:600;display:flex;align-items:center;gap:6px}
body.v3 .card .pjn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v3 .card .ctop .v2key{background:transparent;padding:0;color:var(--mute);margin-left:auto;flex:none}
body.v3 .card .v2meta{margin:0}
.v3tags{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
body.v3 .pill{font-size:11.5px;padding:2px 7px;border-radius:6px}
body.v3 .pill.t-pendency{background:var(--acc-50);color:var(--acc-ink)}
.v3pr{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--ink2);white-space:nowrap}
.v3pr .gl{display:inline-flex;align-items:flex-end;gap:1.5px;height:12px}.v3pr .gl i{width:3px;border-radius:1px;background:var(--ink2)}.v3pr .gl i:nth-child(1){height:5px}.v3pr .gl i:nth-child(2){height:8.5px}.v3pr .gl i:nth-child(3){height:12px}
.v3pr.u{color:var(--late-ink)}.v3pr .ex{width:14px;height:14px;border-radius:4px;background:#C42734;color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;line-height:1}
body.v3 .cmeta{border-top:0;padding-top:0;font-size:12px;gap:8px;flex-wrap:nowrap}
body.v3 .cmeta .who{flex:1 1 auto}
body.v3 .cmeta .sp{flex:none;margin-left:auto;flex-wrap:nowrap}
body.v3 .cmeta .who{min-width:0}.whon{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.v3 .av,body.v3 .av0{width:24px;height:24px}
body.v3 .av0{border-color:var(--mute)}
body.v3 .dchip{white-space:nowrap}
body.v3 .dchip.late{background:var(--late-50);color:var(--late-ink);font-weight:700}
body.v3 .dchip.soon{color:var(--warn)}
body.v3 .ph{border-color:var(--ctl)}
body.v3 .addc{border:1.5px dashed var(--line2);min-height:40px;font-size:12.5px}
body.v3 .addc:hover{border-color:var(--ctl);background:var(--panel)}
/* Display menu: density and what cards show (stored per person) */
body.v3compact .card{padding-top:7px;padding-bottom:7px;gap:5px}body.v3compact .card h4{font-size:13px}
body.v3hide-proj .card .pj .pjn,body.v3hide-proj .card .pj .v3pm{display:none}
body.v3hide-type .card .v3ty{display:none}
body.v3hide-prio .card .v3pr{display:none}
body.v3hide-sub .card .v2sub{display:none}
body.v3hide-name .card .whon{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.v3disp .v3row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;font-weight:700;font-size:13px;color:var(--ink)}
.v3sw{width:34px;height:20px;border-radius:99px;background:var(--ctl);position:relative;border:0;padding:0;cursor:pointer;flex:none}
.v3sw::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:left .15s}
.v3sw[aria-checked=true]{background:var(--accf)}.v3sw[aria-checked=true]::after{left:16px}
.v3seg{display:inline-flex;padding:3px;border-radius:9px;background:var(--sunk);gap:2px}
.v3seg button{height:26px;padding:0 10px;border-radius:7px;border:0;background:transparent;font:inherit;font-size:12.5px;font-weight:700;color:var(--mute);cursor:pointer}
.v3seg button[aria-checked=true]{background:var(--panel);color:var(--ink);box-shadow:var(--sh)}

/* ---------- home dashboard ---------- */
.v3home{display:flex;flex-direction:column;gap:16px;max-width:1400px}
.v3kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.v3kpi{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--sh);text-align:left;font:inherit;color:inherit;cursor:pointer}
.v3kpi:hover{border-color:var(--ctl)}
.v3kpi small{font-size:12.5px;font-weight:700;color:var(--mute);display:flex;align-items:center;gap:6px}
.v3kpi b{font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.1;font-variant-numeric:tabular-nums}
.v3kpi span{font-size:12px;font-weight:600;color:var(--mute)}
.v3kpi.bad b{color:var(--late)}
.v3dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}
.v3grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;align-items:start}
.v3col{display:flex;flex-direction:column;gap:16px;min-width:0}
.v3panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:var(--sh);overflow:hidden}
.v3ph{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.v3ph h2{margin:0;font-size:14px;font-weight:800}.v3ph .sub{font-size:12.5px;color:var(--mute);font-weight:600}
.v3ph a{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--acc);text-decoration:none}
.v3rows{list-style:none;margin:0;padding:0}
.v3rows li{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line);font-size:13.5px;min-width:0}
.v3rows li:last-child{border-bottom:0}
.v3rows a.t{flex:1;min-width:0;font-weight:700;color:var(--ink);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v3rows a.t:hover{text-decoration:underline}
.v3rows .when{width:64px;flex:none;font-size:12.5px;color:var(--mute);font-weight:600}
.v3rows .r{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none;font-size:12.5px;color:var(--mute);font-weight:600}
.v3empty{padding:16px;color:var(--mute);font-weight:600;font-size:13.5px;margin:0}
.v3flow{display:flex;height:10px;border-radius:99px;overflow:hidden;gap:2px;margin:14px 16px 8px;background:var(--sunk)}
.v3flow i{display:block;height:100%}
.v3legend{display:flex;flex-wrap:wrap;gap:6px 14px;padding:0 16px 14px;font-size:12.5px;font-weight:600;color:var(--ink2)}
.v3legend span{display:flex;align-items:center;gap:6px}.v3legend b{font-weight:800;color:var(--ink)}
.v3hl{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 8px;border-radius:99px;font-size:12px;font-weight:700;white-space:nowrap}
.v3hl i{width:6px;height:6px;border-radius:50%;background:currentColor}
.v3hl.on_track{background:var(--ok-50);color:var(--ok-ink)}.v3hl.at_risk{background:var(--warn-50);color:light-dark(#7A4200,#FFD08A)}.v3hl.off_track{background:var(--late-50);color:var(--late-ink)}.v3hl.none{background:var(--sunk);color:var(--mute)}
.v3tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;font-size:11.5px;font-weight:700;background:var(--sunk);color:var(--ink2);white-space:nowrap}
.v3tag.bad{background:var(--late-50);color:var(--late-ink)}.v3tag.warn{background:var(--warn-50);color:light-dark(#7A4200,#FFD08A)}
.v3xpchip{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px 0 5px;border-radius:99px;border:1px solid var(--line2);background:var(--panel);font-size:12.5px;font-weight:700;color:var(--ink2);cursor:pointer;font:inherit}
.v3key{font:700 11.5px ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--mute);white-space:nowrap;flex:none}
@media (max-width:1100px){.v3kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.v3grid{grid-template-columns:1fr}}
@media (max-width:600px){.v3kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v3kpi b{font-size:22px}.v3rows .when{width:52px}}

/* ---------- item drawer ---------- */
#v2drawer{box-shadow:-24px 0 64px rgb(15 18 34/.22)}
#v2drawer::backdrop{background:rgb(8 10 24/.45)}
.v3dact{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.v3dact .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
.v2banner.bad{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
#v2drawer .v2d h3{text-transform:none;letter-spacing:0;color:var(--ink);font-size:12.5px}

/* ---------- pages ---------- */
body.v3 .v2card{border-radius:12px;box-shadow:var(--sh)}
body.v3 .v2tbl td{border-top-color:var(--line)}
body.v3 .v2empty{border-color:var(--line2)}
body.v3 .tabs a{font-size:13.5px}
body.v3 .pc{border-radius:12px;box-shadow:var(--sh)}
body.v3 .pc:hover{transform:none}
.v3sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.v2page:not([data-v2page=timeline]) #v3tool{display:none}
.v3ftog{display:none!important}
/* v3.3: a quieter toolbar — search, Show, Projects, Display and Views; the other filters sit behind "More filters" */
@media (min-width:761px){
  body.v3[data-v3view=board] .v3ftog,body.v3[data-v3view=list] .v3ftog{display:inline-flex!important;min-height:34px}
  #v3tool:not(.open) #v2filters>[data-dd]:not([data-dd=projects]),#v3tool:not(.open) #v2filters>label.v2chk{display:none!important}
}
@media (max-width:760px){
  .v3ftog{display:inline-flex!important;min-height:34px!important;height:34px!important}
  body.v3 .bar{flex-wrap:wrap;width:100%}
  body.v3 .sbox{flex:1 1 160px;width:auto}
  #v3tool:not(.open) #v2filters>*:not(.v2sp){display:none!important}
  .v3kpis{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:44%;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
}

/* ===================== v3.1: two-pane Triage ===================== */
.v3tri{display:grid;grid-template-columns:minmax(300px,380px) 1fr;gap:16px;align-items:start;margin-top:12px}
.v3tlist{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow:hidden;position:sticky;top:12px;max-height:calc(100vh - 170px);display:flex;flex-direction:column}
.v3tlist ul{list-style:none;margin:0;padding:0;overflow:auto}
.v3trow{border-bottom:1px solid var(--line);position:relative;transition:transform .12s;background:var(--panel)}
.v3trow[data-dir=r]{box-shadow:inset 6px 0 0 var(--ok)}.v3trow[data-dir=l]{box-shadow:inset -6px 0 0 var(--warn)}
.v3trbtn{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;width:100%;padding:10px 14px;cursor:pointer}
.v3trbtn:focus-visible{outline:2px solid var(--acc);outline-offset:-2px}
.v3trow:hover{background:var(--panel2)}.v3trow.on{background:var(--acc-50);box-shadow:inset 3px 0 0 var(--acc)}
.v3trow.stale .v3trtitle::after{content:""}
.v3trtop{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.v3trtitle{font-size:14px;line-height:1.35;color:var(--ink);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.v3tkeys{margin:0;padding:8px 14px;border-top:1px solid var(--line);font-size:11.5px;background:var(--panel2)}
.v3tkeys kbd{font:700 11px ui-monospace,monospace;border:1px solid var(--ctl);border-bottom-width:2px;border-radius:4px;padding:0 4px;background:var(--panel)}
.v3tpane{min-width:0}
.v3tprev{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.v3tprev h2{margin:4px 0 2px;font-size:19px;line-height:1.3}.v3tprev h2:focus{outline:none}
.v3tprev .v2reqb{white-space:pre-wrap;line-height:1.55;background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.v3tsec h3{margin:0 0 6px;font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:var(--mute)}
.v3tsug{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}
.v3tsug li{border:1px solid var(--line);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:1px;background:var(--panel2)}
.v3tsug span{font-size:11.5px;font-weight:700;color:var(--mute)}.v3tsug b{font-size:14px}.v3tsug small{font-size:11.5px;color:var(--mute)}
.v3tacts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.v3split{display:inline-flex}.v3split .btn:first-child:not(:only-child){border-top-right-radius:0;border-bottom-right-radius:0}
.v3split .v3caret{border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid rgb(255 255 255/.35);padding:0 10px}
.v3tkey{margin:0}.v3tkey .v2key{font-size:12px}
.v3thist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:5px}.v3thist li{line-height:1.45}
.v3tdup{border:1px solid var(--warn);background:var(--warn-50);border-radius:10px;padding:10px 12px}.v3tdup h3{color:var(--warn)}
.v3tprev .v2tpanel{border:1px solid var(--line2);border-radius:12px;padding:12px 14px;background:var(--panel2)}.v3tprev .v2tpanel h3{margin:0 0 6px;font-size:14px}
.v3tback{display:none;align-self:flex-start}
.v3tempty{min-height:260px;display:flex;flex-direction:column;justify-content:center}
.v3tzeroart{width:84px;height:64px;margin:0 auto 8px;border-radius:14px;background:linear-gradient(135deg,var(--acc-50),var(--ok-50));position:relative}
.v3tzeroart::after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;font-size:30px;font-weight:800;color:var(--ok)}
@media (max-width:900px){
  .v3tri{grid-template-columns:1fr}.v3tlist{position:static;max-height:none}.v3tkeys{display:none}
  .v3tri.has-sel .v3tlist{display:none}.v3tri:not(.has-sel) .v3tpane{display:none}.v3tback{display:inline-flex}
  .v3tacts .btn{min-height:44px}
}

/* ===================== v3.1: item panel with a properties column and a pinned comment box ===================== */
#v2drawer:has(.v3d2){width:min(1040px,100vw);overflow:hidden;display:flex}
#v2drawer[open]:has(.v3d2){display:flex}
.v3d2{display:flex;flex-direction:column;height:100%;width:100%;padding:0!important;gap:0!important}
.v3d2>.v2dh{padding:16px 22px 12px;border-bottom:1px solid var(--line);margin:0}
.v3dcols{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"top rail" "body rail";align-content:start}
.v3dtop{grid-area:top;padding:16px 22px 0;display:flex;flex-direction:column;gap:10px}
.v3dbody{grid-area:body;padding:4px 22px 22px;display:flex;flex-direction:column;gap:16px}
.v3drail{grid-area:rail;border-left:1px solid var(--line);background:var(--panel2);padding:16px 18px;display:flex;flex-direction:column;gap:18px;align-self:stretch}
.v3drail section{display:flex;flex-direction:column;gap:8px}
.v3drail h3{margin:0;font-size:11.5px!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:var(--mute)!important}
.v3drail label{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:700;color:var(--mute)}
.v3drail label.v2chk{flex-direction:row;align-items:center;gap:6px;color:var(--ink)}
.v3drail .f{min-height:34px;font-size:13.5px}
.v3drail .v2srow2{display:flex;flex-direction:column;gap:6px}
.v3dstack{display:flex;flex-direction:column;gap:8px}
.v3drail .v2ro{display:flex;justify-content:space-between;gap:10px;font-size:13px}.v3drail .v2ro span{color:var(--mute);font-weight:700;font-size:12px}.v3drail .v2ro b{text-align:right;font-weight:600}
.v3drail .v2d5{margin:0;display:flex;flex-direction:column;gap:6px}.v3drail .v2d5 .meta{font-size:11.5px}
.v3dpin{border-top:1px solid var(--line);background:var(--panel);padding:10px 22px 12px;box-shadow:0 -6px 16px rgb(15 18 34/.06)}
.v3dpin .v2cform{margin:0}.v3dpin textarea{min-height:44px;max-height:30vh}
.v3dbody .v2df{border-top:1px solid var(--line);padding-top:12px}
.v3split{display:inline-flex;align-items:stretch}
.v3movemenu{position:relative;display:inline-flex}
.v3movemenu>summary{list-style:none;padding:0 8px;display:inline-flex;align-items:center;cursor:pointer}.v3movemenu>summary::-webkit-details-marker{display:none}
.v3movemenu>summary svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2}
.v3split>.btn:first-child{border-top-right-radius:0;border-bottom-right-radius:0}
.v3split .v3movemenu>summary{border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid rgb(255 255 255/.35)}
.v3split .v3movemenu>summary:not(.pri){border-left:0}
.v3mm{position:absolute;top:calc(100% + 4px);left:0;z-index:5;min-width:200px;background:var(--panel);border:1px solid var(--line2);border-radius:10px;box-shadow:var(--sh2);padding:4px;display:flex;flex-direction:column}
.v3mm button{all:unset;display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:7px;font-size:13.5px;font-weight:600;cursor:pointer;color:var(--ink)}
.v3mm button:hover,.v3mm button:focus-visible{background:var(--acc-50)}.v3mm i{width:9px;height:9px;border-radius:50%}
@media (max-width:900px){
  .v3dcols{grid-template-columns:1fr;grid-template-areas:"top" "rail" "body"}
  .v3drail{border-left:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:12px}
}

/* ===================== v3.1: Timeline legend and Unscheduled row ===================== */
.v3tllegend{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:10px 0 8px;padding:0;font-size:12.5px;font-weight:600;color:var(--ink2)}
.v3tllegend li{display:inline-flex;align-items:center;gap:6px}
.v3tllegend i{width:18px;height:10px;border-radius:3px;display:inline-block}
.v3tllegend i.late{background:repeating-linear-gradient(45deg,#B45309 0 3px,#E8B98A 3px 6px);outline:1.5px solid var(--late);outline-offset:-1.5px}
.v3tllegend i.blk{width:4px;background:var(--late)}
.v3tllegend i.today{width:2px;height:14px;background:var(--late)}
.v3tllegend i.roll{height:6px;background:var(--ink);opacity:.75;clip-path:polygon(0 0,100% 0,100% 100%,85% 40%,15% 40%,0 100%)}
.v3unsch{margin-top:14px;background:var(--panel);border:1px dashed var(--line2);border-radius:14px;padding:12px 16px}
.v3unsch h2{margin:0;font-size:14px}.v3unsch p{margin:2px 0 8px}
.v3unsch ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:4px 16px}
.v3unsch li{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:4px 0;border-bottom:1px solid var(--line)}
.v3unsch a{color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v3dcols{grid-template-rows:min-content 1fr}
.v3drail .v2srow2{align-items:stretch;flex-wrap:nowrap}.v3drail .v2srow2 label{width:100%}
.v3drail .v2prog{flex:none;padding-bottom:0}.v3drail .v2prog i{height:6px}
.v3dpin textarea{min-height:42px!important;height:42px;transition:height .15s}.v3dpin textarea:focus,.v3dpin textarea:not(:placeholder-shown){height:96px}
@media (max-width:900px){.v3dcols{grid-template-rows:auto}}
.v3unsch li .meta{white-space:nowrap;flex:none}

/* ==============================================================================================

   UI v3.3 "calm" (signed-off mockups, 28 Nov 2026): plain stage names as solid colour blocks, quiet cards,
   priority edges, low priority folded, Done and empty stages as slim strips, calm Home and item panel.
   ===================================================================================================== */
:root{--p-urgent:light-dark(#D42F3C,#FF6B74);--p-high:light-dark(#E8590C,#FF8A4C);--p-urgent-50:light-dark(#FDECEE,#3A1820);--p-high-50:light-dark(#FFF0E6,#3A2412);--p-urgent-ink:light-dark(#A81F2B,#FFB3B8);--p-high-ink:light-dark(#A8410A,#FFC59E)}

/* ---------- board: solid stage headers ---------- */
body.v3 .v33board{grid-auto-flow:column;grid-auto-columns:auto}
body.v3 .v33board .col{background:color-mix(in srgb,var(--sc) 6%,var(--bg));border:0;border-radius:14px;padding:0 0 10px;gap:8px;min-height:160px}
body.v3 .v33board .col.drop{background:color-mix(in srgb,var(--sc) 16%,var(--bg));outline:2px dashed var(--sc);outline-offset:-2px}
body.v3 .v33board .colh{background:var(--sc);color:#fff;border-radius:14px 14px 0 0;padding:11px 12px 11px 14px;font-size:14.5px;font-weight:800;gap:8px;margin:0}
body.v3 .v33board .colh .dot{display:none}
body.v3 .v33board .colh .bdg{margin-left:auto;background:rgb(255 255 255/.22);color:#fff;border-radius:99px;padding:1px 9px;font-size:12.5px}
body.v3 .v33board .col[data-stage=done] .colh .bdg::before{content:""}
body.v3 .v33board .colh .v2wip{background:rgb(255 255 255/.22);color:#fff;border-radius:99px;padding:1px 8px;font-size:11.5px}
body.v3 .v33board .colh .v2wip.over{background:#fff;color:var(--p-urgent-ink)}
.v33add,.v33board .colh .v33fold{all:unset;cursor:pointer;width:26px;height:26px;border-radius:7px;display:grid;place-items:center;color:#fff;opacity:.85;font-weight:800}
.v33add:hover,.v33board .colh .v33fold:hover,.v33add:focus-visible{background:rgb(255 255 255/.2);opacity:1}
.v33add svg{width:15px;height:15px}
body.v3 .v33board .col>.card,body.v3 .v33board .col>.ph,body.v3 .v33board .col>.more,body.v3 .v33board .col>.v2lanes,body.v3 .v33board .col>.v33lowbtn{margin-left:10px;margin-right:10px}
body.v3 .v33board .col>.ph{border:1.5px dashed color-mix(in srgb,var(--sc) 30%,var(--line));border-radius:10px;padding:16px 8px;text-align:center;color:var(--mute);font-weight:600}
.v33board .col.v33flash{animation:v33flash 1.4s ease}
@keyframes v33flash{0%,60%{box-shadow:0 0 0 3px var(--sc)}100%{box-shadow:none}}
/* slim strips (Done and empty stages) */
body.v3 .v33board .col.v33slim{padding:0;background:none;min-height:0}
.v33strip{all:unset;cursor:pointer;box-sizing:border-box;width:64px;min-height:300px;border-radius:14px;background:var(--sc);color:#fff;display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 0}
.v33strip.e{background:color-mix(in srgb,var(--sc) 14%,var(--bg));color:light-dark(var(--sc),#fff)}
.v33strip .bdg{font-size:14px;font-weight:800;background:rgb(255 255 255/.22);border-radius:99px;padding:1px 9px}
.v33strip.e .bdg{background:color-mix(in srgb,var(--sc) 18%,transparent)}
.v33strip .v33sn{writing-mode:vertical-rl;transform:rotate(180deg);font-size:15px;font-weight:800;letter-spacing:.01em}
.v33strip:hover{filter:brightness(1.06)}.v33strip:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.col.drop .v33strip{outline:3px dashed var(--sc);outline-offset:3px}

/* ---------- quiet cards ---------- */
body.v3 .card{gap:6px;padding:11px 12px;box-shadow:var(--sh)}
body.v3 .card .v33row{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px}
body.v3 .card .v33row h4{flex:1 1 9em;margin:0;font-size:14px;line-height:1.35;overflow-wrap:break-word;word-break:normal;hyphens:manual}
body.v3 .card .v33r{display:flex;align-items:center;gap:8px;flex:none;margin-left:auto;padding-top:1px}
body.v3 .card .v33r .who{display:flex;align-items:center;gap:6px}
body.v3:not(.v33details) .card .v33det{display:none}
body.v3:not(.v33details) .card .whon,body.v3.v3hide-name .card .whon{display:none}
body.v3.v33details .card .v33det:empty{display:none}
body.v3 .card .v33det.ctop{display:flex}
body.v3:not(.v33details) .card .ctop.v33det{display:none}
.v33blk{display:inline-flex;align-items:center;gap:4px;color:var(--late-ink);font-weight:800;font-size:12px;white-space:nowrap}
.v33blk::before{content:"";width:7px;height:7px;border-radius:99px;background:var(--late)}
body.v3 .card.v33p-urgent{box-shadow:inset 4px 0 0 var(--p-urgent),var(--sh);padding-left:15px}
body.v3 .card.v33p-high{box-shadow:inset 4px 0 0 var(--p-high),var(--sh);padding-left:15px}
body.v3 .card.v33p-low{background:transparent;border:1px dashed var(--line2);box-shadow:none;padding-top:8px;padding-bottom:8px}
body.v3 .card.v33p-low h4{font-weight:600;color:var(--ink2);font-size:13.5px}
body.v3 .col.v33fold .card.v33low{display:none}
.v33lowbtn{all:unset;cursor:pointer;display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--mute);padding:4px 2px}
.v33lowbtn::after{content:"";flex:1;height:1px;background:var(--line2)}
.v33lowbtn:hover{color:var(--ink)}.v33lowbtn:focus-visible{outline:2px solid var(--acc);border-radius:6px}
body.v3compact .card .v33row h4{font-size:13px}

/* ---------- list: solid stage pill, priority edge ---------- */
.v33stg{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 8px;border-radius:99px;background:color-mix(in srgb,var(--sc) 13%,var(--panel));color:light-dark(var(--sc),#fff);font-weight:800;font-size:12.5px;white-space:nowrap}
tr.r.v33p-urgent>td:first-child{box-shadow:inset 4px 0 0 var(--p-urgent)}
tr.r.v33p-high>td:first-child{box-shadow:inset 4px 0 0 var(--p-high)}
tr.r.v33p-low{opacity:.72}
.v2frow.v33p-urgent{box-shadow:inset 4px 0 0 var(--p-urgent)}.v2frow.v33p-high{box-shadow:inset 4px 0 0 var(--p-high)}.v2frow.v33p-low b{font-weight:600;color:var(--mute)}

/* ---------- Home ---------- */
.v33tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.v33tile{all:unset;cursor:pointer;box-sizing:border-box;background:var(--sc);color:#fff;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:2px;box-shadow:0 2px 10px color-mix(in srgb,var(--sc) 30%,transparent)}
.v33tile b{font-size:30px;font-weight:800;line-height:1.1}.v33tile span{font-size:14px;font-weight:800}.v33tile small{font-size:12px;font-weight:600;opacity:.9}
.v33tile:hover{filter:brightness(1.06)}.v33tile:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.v33grid{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr)!important}
.v33panel{overflow:hidden}
.v33band{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--sc);color:#fff;font-size:13px;font-weight:800}
.v33band b{margin-left:auto;background:rgb(255 255 255/.22);border-radius:99px;padding:0 8px;font-size:12px}
.v33rows{margin:0}
.v33rows li.v33hr{position:relative}
.v33rows li.v33p-urgent{box-shadow:inset 4px 0 0 var(--p-urgent)}.v33rows li.v33p-high{box-shadow:inset 4px 0 0 var(--p-high)}
.v33rows li.v33p-low{background:var(--panel2)}.v33rows li.v33p-low .t{font-weight:600;color:var(--mute)}
.v33rows li.v33lowh{min-height:0;padding:6px 16px;font-size:12px;font-weight:700;color:var(--mute);background:var(--panel2)}
.v33pp{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;font-size:11.5px;font-weight:800}
.v33pp.u{background:var(--p-urgent-50);color:var(--p-urgent-ink)}.v33pp.h{background:var(--p-high-50);color:var(--p-high-ink)}
.v33filt{font-size:12px;font-weight:700;color:var(--p-high-ink);background:var(--p-high-50);border-radius:6px;padding:2px 8px}
.v33hmore{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;font-size:13px;color:var(--mute);font-weight:600;background:var(--panel2);border-top:1px solid var(--line)}
.v33hmore>span:first-child{margin-right:auto}
.v33hmore a,.v33link{all:unset;cursor:pointer;color:var(--acc);font-weight:700}
.v33hmore a:focus-visible,.v33link:focus-visible{outline:2px solid var(--acc);border-radius:4px}
.v33need{align-items:center}
.v33need .t{display:flex;flex-direction:column;min-width:0}.v33need .t a{color:var(--ink);font-weight:700;text-decoration:none}.v33need small{color:var(--mute);font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v33ni{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;font-weight:800;font-size:14px}
.v33ni.bad{background:var(--late-50);color:var(--late-ink)}.v33ni.warn{background:var(--warn-50);color:var(--warn)}
@media (max-width:1100px){.v33tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.v33grid{grid-template-columns:1fr!important}}
@media (max-width:600px){.v33tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.v33tile b{font-size:24px}}

/* ---------- Settings › Home ---------- */
.v33set .v2card{display:flex;flex-direction:column;gap:14px;max-width:760px}
.v33set h2{margin:0;font-size:16px}
.v33pr4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;border:0;padding:0;margin:0}
.v33pbox{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;min-height:48px;color:var(--ink)!important;font-size:14px!important;padding:0 14px;border-radius:10px;font-weight:700;box-shadow:inset 0 0 0 1px var(--ctl);cursor:pointer}
.v33pbox.on{box-shadow:inset 0 0 0 2px var(--acc);background:var(--acc-50)}
.v33pbox input{width:18px;height:18px;accent-color:var(--acc)}
.v33pbox.v33p-urgent span::after,.v33pbox.v33p-high span::after{content:"";display:inline-block;width:4px;height:16px;border-radius:2px;margin-left:10px;vertical-align:-3px;background:var(--p-urgent)}
.v33pbox.v33p-high span::after{background:var(--p-high)}
.v33trow{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.v33trow b{display:block;font-size:14px}.v33trow small{display:block;font-size:12.5px;color:var(--mute);font-weight:600}
.v33trow .v3sw{margin-left:auto;flex:none}
@media (max-width:600px){.v33pr4{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- item panel: where is it, facts, calm fold, saved, undo ---------- */
.v33lab{font-size:12.5px;font-weight:800;color:var(--mute);margin-bottom:8px}
.v33stages{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.v33st{all:unset;cursor:pointer;box-sizing:border-box;text-align:center;min-height:42px;padding:4px 6px;border-radius:10px;font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:5px;
  color:light-dark(var(--sc),#fff);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--sc) 55%,transparent);background:var(--panel)}
.v33st:hover:not([disabled]):not(.on){background:color-mix(in srgb,var(--sc) 10%,var(--panel))}
.v33st.on{background:var(--sc);color:#fff;box-shadow:0 2px 8px color-mix(in srgb,var(--sc) 35%,transparent)}
.v33st svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
.v33st[disabled]{cursor:default;opacity:.85}
.v33st:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.v33subs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px;font-size:12.5px;color:var(--mute);font-weight:600}
.v33sub{all:unset;cursor:pointer;min-height:28px;padding:0 11px;border-radius:99px;display:inline-flex;align-items:center;font-weight:700;color:var(--ink2);box-shadow:inset 0 0 0 1px var(--ctl);white-space:nowrap}
.v33sub.on{background:var(--ink);color:var(--panel);box-shadow:none}.v33sub:focus-visible{outline:2px solid var(--acc)}
.v33help{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.v33facts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.v33fact{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 12px;border-radius:9px;background:var(--sunk);font-size:13.5px;font-weight:700;color:var(--ink)}
.v33fact .av{width:22px;height:22px;font-size:10px}
.v33fact.bad{background:var(--late-50);color:var(--late-ink)}.v33fact.warn{background:var(--warn-50);color:var(--warn)}
.v33fact.ghost{background:transparent;color:var(--mute);box-shadow:inset 0 0 0 1px var(--ctl)}
.v33fact.v33p-urgent{background:var(--p-urgent-50);color:var(--p-urgent-ink)}.v33fact.v33p-high{background:var(--p-high-50);color:var(--p-high-ink)}
.v33fact.v33p-low{color:var(--mute)}
.v33fact:focus-visible,.v33morebtn:focus-visible,.v33addrow button:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.v33morebtn{all:unset;cursor:pointer;margin-left:auto;color:var(--acc);font-weight:700;font-size:13.5px}
.v33addrow{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:12.5px;color:var(--mute);font-weight:700}
.v33addrow button{all:unset;cursor:pointer;min-height:30px;padding:0 11px;border-radius:8px;font-weight:700;color:var(--ink2);box-shadow:inset 0 0 0 1px var(--ctl);background:var(--panel)}
.v33addrow button::before{content:"+ ";color:var(--mute)}
.v33saved{margin-left:8px;color:var(--ok-ink);font-weight:800;font-size:12.5px}
.v33saved.pulse{animation:v33pulse .9s ease}
@keyframes v33pulse{0%{opacity:0;transform:translateY(2px)}100%{opacity:1;transform:none}}
/* calm: the properties column, the old status row and empty sections wait behind "More details" */
.v3drail .v2srow2{display:none}
.v33calm .v3dcols{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "body"}
.v33calm .v3drail{display:none}
.v33calm .v33opt:not(.has),.v33calm .v33files:not(:has(.v2atts)){display:none}
.v33calm .v2d5:has(#v2ckh):not(:has(.v2cklist li)){display:none}
#v2drawer:has(.v33calm){width:min(760px,100vw)}
.v33toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:var(--z-toast);display:flex;align-items:center;gap:10px;background:light-dark(#141729,#ECEEFA);color:light-dark(#fff,#0F1222);border-radius:12px;padding:10px 14px 10px 10px;box-shadow:var(--sh3);font-weight:700;font-size:13.5px}
.v33toast .ok{width:22px;height:22px;border-radius:99px;background:#0F8A55;color:#fff;display:grid;place-items:center;font-size:12px}
.v33toast button{all:unset;cursor:pointer;color:light-dark(#B9C0FF,#2B37B8);font-weight:800;padding:0 4px}
.v33toast button:focus-visible{outline:2px solid currentColor;border-radius:4px}
/* quiet New item */
.v33new{gap:16px}
.v33new .v33ttl input{font-size:20px;font-weight:800;min-height:48px}
.v33hide{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.v33three{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.v33moreopts{border-top:1px solid var(--line);padding-top:10px}
.v33moreopts>summary{cursor:pointer;font-weight:700;color:var(--acc);font-size:13.5px}
.v33moreopts>summary small{color:var(--mute);font-weight:600;margin-left:6px}
.v33moreopts[open]{display:flex;flex-direction:column;gap:12px}
.v33new .v2df .meta{font-size:12.5px}
@media (max-width:600px){
  .v33stages{grid-template-columns:repeat(3,minmax(0,1fr))}
  .v33three{grid-template-columns:1fr!important}
  body.v3 .v33board{grid-template-columns:none!important;grid-auto-columns:86%}
  .v33strip{width:100%;min-height:56px;flex-direction:row;justify-content:center;padding:0 14px}
  .v33strip .v33sn{writing-mode:horizontal-tb;transform:none}
}
@media (prefers-reduced-motion:reduce){.v33saved.pulse,.v33board .col.v33flash{animation:none}}
/* ===================== Tasks release: Assign to, Work › Tasks, teams, integrations, Home quick assign ===================== */
.v2asg{border:1px solid var(--line);border-radius:12px;padding:10px 12px 12px;margin:0;display:flex;flex-direction:column;gap:10px}
.v2asg legend{font-weight:800;font-size:13px;padding:0 4px}
.v2asg .v2seg{align-self:flex-start}
.v2seg label{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;font-weight:700;font-size:13px;cursor:pointer;border-right:1px solid var(--line)}
.v2seg label:last-child{border-right:0}
.v2seg label:has(input:checked){background:var(--v2acc,#3D4BD9);color:#fff}
.v2seg label input{position:absolute;opacity:0;pointer-events:none}
.v2seg label:has(input:focus-visible){outline:2px solid var(--v2acc,#3D4BD9);outline-offset:2px}
.v2asgn{align-self:end;margin:0 0 8px}
.v2asgppl summary{cursor:pointer;font-weight:700;font-size:13px}
.v2pplgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:2px 12px;margin-top:8px;max-height:220px;overflow:auto}
.v2modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v2mode{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px 12px;cursor:pointer}
.v2mode:has(input:checked){border-color:var(--v2acc,#3D4BD9);box-shadow:0 0 0 1px var(--v2acc,#3D4BD9) inset}
.v2mode input{margin-top:3px}.v2mode span{display:flex;flex-direction:column;gap:2px}.v2mode b{font-size:13.5px}.v2mode small{color:var(--mute);font-size:12px;font-weight:600;line-height:1.35}
@media (max-width:640px){.v2modes{grid-template-columns:1fr}}
.v2meta>.v2team,.v2team{font-size:11.5px;font-weight:800;padding:1px 8px;border-radius:99px;white-space:nowrap}
.v2team.ev{background:#E6F4EC;color:#0B5E3C}.v2team.any{background:#EEF0FF;color:#2B37B5}
:root[data-theme=dark] .v2team.ev{background:#0F3424;color:#9FE3C0}:root[data-theme=dark] .v2team.any{background:#22264D;color:#C3C8FF}
.v3notask{font-weight:800;color:var(--mute)}
.v2teamsec .v2bar{flex:none;margin:6px 0}
.v2tmlist{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:4px}
.v2tmlist li{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.v2tmlist li .av{width:20px;height:20px}.v2tmlist li a{color:var(--ink);text-decoration:none;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.v2tmlist li.done a{color:var(--mute)}.v2tmst{font-size:12px;color:var(--mute);font-weight:700}.v2tmlist li.done .v2tmst{color:#0B5E3C}
.v2tkbar{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin:4px 0 14px}
.v2seg2{display:inline-flex;gap:0}.v2seg2 .btn{border-radius:0}.v2seg2 .btn:first-child{border-radius:9px 0 0 9px}.v2seg2 .btn:last-child{border-radius:0 9px 9px 0;border-left:0}
.v2seg2 .btn[aria-pressed=true]{background:var(--v2acc,#3D4BD9);color:#fff;border-color:var(--v2acc,#3D4BD9)}
.v2tkbody{display:flex;flex-direction:column;gap:12px}
.v2tkgrp h2{margin:0;font-size:15px}.v2tkgrp .v2hrow{gap:10px;align-items:center}.v2tkgrp .v2hrow .av{width:26px;height:26px}
.v2tklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.v2tkrow{display:flex;align-items:center;gap:10px;padding:7px 4px;border-top:1px solid var(--line);min-height:40px}
.v2tkrow:first-child{border-top:0}
.v2tkchk{width:18px;height:18px;flex:none;accent-color:#0E7C50;cursor:pointer}
.v2tkt{color:var(--ink);text-decoration:none;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v2tkt:hover{text-decoration:underline}
.v2tkrow.done .v2tkt{color:var(--mute);text-decoration:line-through}
.v2tkrow.od .v2tkdue{color:var(--late)}
.v2tkp,.v2tkwho{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;color:var(--mute);white-space:nowrap}
.v2tkwho .av{width:18px;height:18px;margin-right:-4px}
.v2tkdue{font-size:12.5px;white-space:nowrap}
.v2tkteams{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.v2tkteam .v2bar{flex:none}.v2tkteam .v2hrow{gap:8px;flex-wrap:wrap}
.v2tkpeople{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.v2tkpeople li{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;padding:2px 8px 2px 2px;border-radius:99px;background:var(--panel2)}
.v2tkpeople li .av{width:20px;height:20px}.v2tkpeople li.done{background:#E6F4EC;color:#0B5E3C}
:root[data-theme=dark] .v2tkpeople li.done{background:#0F3424;color:#9FE3C0}
.v2pill{font-size:11px;font-weight:800;padding:1px 8px;border-radius:99px;background:var(--panel2);color:var(--ink)}
.v2qaf{display:flex;flex-direction:column;gap:8px}
.v2qarow{display:grid;grid-template-columns:1fr 150px auto;gap:8px}
@media (max-width:640px){.v2qarow{grid-template-columns:1fr 1fr}.v2qarow .btn{grid-column:1/-1}}
.v2qamode{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px}
.v2qa .v2err:empty{display:none}
.v2code{font:600 12px ui-monospace,Menlo,monospace;background:var(--panel2);padding:2px 6px;border-radius:6px;word-break:break-all}
.v2secret{font-size:13px;padding:8px 10px;flex:1;min-width:0}
.v2pre{font:12px/1.5 ui-monospace,Menlo,monospace;background:var(--panel2);padding:12px;border-radius:10px;overflow:auto;white-space:pre}
.v2ikfresh{border-color:#0E7C50;box-shadow:0 0 0 1px #0E7C50 inset}.v2ikfresh h2{margin:0;font-size:16px}
.linkbtn{all:unset;color:var(--v2acc,#3D4BD9);font-weight:700;cursor:pointer;text-decoration:underline}
.linkbtn:focus-visible{outline:2px solid var(--v2acc,#3D4BD9);outline-offset:2px}

/* ===================== first paint: no flash of the classic layout =====================
   index.html starts with <html class="btboot">. Until the v3 layout has drawn (body.v3), everything except the sign-in,
   blocker and two-factor screens stays invisible and a quiet loader shows instead. shim.js removes btboot after 10 s as a safety net,
   so the page can never stay blank. Sign-in and blocker screens are overlays and are never hidden. */
html.btboot body:not(.v3)>:not(#btLogin):not(#btBlock):not(#sxGate){visibility:hidden}
html.btboot body:not(.v3)::after{content:"";position:fixed;left:50%;top:42%;width:28px;height:28px;margin:-14px 0 0 -14px;border-radius:50%;border:3px solid color-mix(in srgb,var(--mute,#8a90ab) 25%,transparent);border-top-color:var(--v2acc,#3D4BD9);animation:btboot .8s linear infinite;z-index:1}
html.btboot body:has(#btLogin,#btBlock,#sxGate)::after{display:none}
@keyframes btboot{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html.btboot body:not(.v3)::after{animation:none}}
