:root{
  --canvas:#F2F1EE; --tile:#FFFFFF; --raised:#FFFFFF; --sunken:#F6F5F2; --hover:#FAF9F7;
  --ink:#1C1B1A; --ink2:#5C5A55; --ink3:#706D66; --line:#ECEAE5; --line2:#DEDBD5;
  --accent:#4A4AA8; --accent-hover:#3E3E96; --accent-ink:#4A4AA8; --accent-soft:rgba(74,74,168,.10); --on-accent:#fff;
  --stuck:#B42318; --risk:#B7791F; --risk-ink:#8A5A12; --ok:#2F7D57; --stale:#8F8C85;
  --stuck-bg:#FBEFED; --risk-bg:#FBF3E6; --ok-bg:#EEF5F1; --stale-bg:#F0EFEC;
  --zone:rgba(180,35,24,.05); --zone-line:rgba(180,35,24,.32);
  --wash:rgba(28,27,26,.04); --wash2:rgba(28,27,26,.07); --seg-bg:rgba(28,27,26,.055); --seg-on:#FFFFFF;
  --chip:#EEEDE9; --dash:#CFCCC5; --dot-done:#8A877F; --dot-empty:#CFCCC5; --bar:#8E8B84; --sq-on:#5C5A55;
  --scroll:#D6D3CC; --ph:#6E6B64; --stale-tile:#FBFAF8; --top-bg:rgba(242,241,238,.96); --backdrop:rgba(242,241,238,.55);
  --inv:#1C1B1A; --on-inv:#FFFFFF; --press-bg:var(--inv); --press-ink:var(--on-inv);
  --btn-shadow:0 1px 2px rgba(28,27,26,.08);
  --shadow:0 1px 2px rgba(28,27,26,.06),0 8px 24px -8px rgba(28,27,26,.12);
  --shadow-up:0 2px 4px rgba(28,27,26,.06),0 14px 32px -10px rgba(28,27,26,.18);
  --sheet-shadow:0 2px 6px rgba(28,27,26,.06),0 32px 72px -12px rgba(28,27,26,.24);
  --fig:"Noto Sans Hebrew",system-ui,sans-serif;
  --body:"Assistant","Noto Sans Hebrew",system-ui,sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);
  /* motion level 2: shared durations and movement; reduced motion turns the movement off and shortens both (end of file) */
  --dur-1:150ms; --dur-2:200ms; --rise:translateY(8px); --pop:scale(.97);
  --pad:40px;
  color-scheme:light;
}
/* dark: deep neutral greys, surfaces step up in lightness; status hues lifted for contrast */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --canvas:#141416; --tile:#1D1D20; --raised:#232327; --sunken:#18181B; --hover:#232327;
  --ink:#ECEBE7; --ink2:#B0AEA8; --ink3:#95938D; --line:#2A2A2E; --line2:#38383D;
  --accent:#5F5FCC; --accent-hover:#5252BE; --accent-ink:#ABABF7; --accent-soft:rgba(140,140,240,.16); --on-accent:#fff;
  --stuck:#F08A7E; --risk:#E2A84A; --risk-ink:#EBB866; --ok:#62C394; --stale:#8E8C87;
  --stuck-bg:rgba(240,138,126,.13); --risk-bg:rgba(226,168,74,.13); --ok-bg:rgba(98,195,148,.12); --stale-bg:rgba(255,255,255,.06);
  --zone:rgba(240,138,126,.06); --zone-line:rgba(240,138,126,.36);
  --wash:rgba(255,255,255,.04); --wash2:rgba(255,255,255,.07); --seg-bg:rgba(255,255,255,.05); --seg-on:#2E2E33;
  --chip:#2A2A2F; --dash:#45454B; --dot-done:#717078; --dot-empty:#45454B; --bar:#77757F; --sq-on:#B0AEA8;
  --scroll:#3A3A40; --ph:#86847F; --stale-tile:#19191C; --top-bg:rgba(20,20,22,.94); --backdrop:rgba(8,8,10,.55);
  --inv:#ECEBE7; --on-inv:#141416; --press-bg:var(--seg-on); --press-ink:var(--ink);
  --btn-shadow:0 1px 2px rgba(0,0,0,.35);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px -8px rgba(0,0,0,.45);
  --shadow-up:0 2px 4px rgba(0,0,0,.35),0 14px 32px -10px rgba(0,0,0,.55);
  --sheet-shadow:0 2px 6px rgba(0,0,0,.4),0 32px 72px -12px rgba(0,0,0,.6);
  color-scheme:dark;
}}
:root[data-theme="dark"]{
  --canvas:#141416; --tile:#1D1D20; --raised:#232327; --sunken:#18181B; --hover:#232327;
  --ink:#ECEBE7; --ink2:#B0AEA8; --ink3:#95938D; --line:#2A2A2E; --line2:#38383D;
  --accent:#5F5FCC; --accent-hover:#5252BE; --accent-ink:#ABABF7; --accent-soft:rgba(140,140,240,.16); --on-accent:#fff;
  --stuck:#F08A7E; --risk:#E2A84A; --risk-ink:#EBB866; --ok:#62C394; --stale:#8E8C87;
  --stuck-bg:rgba(240,138,126,.13); --risk-bg:rgba(226,168,74,.13); --ok-bg:rgba(98,195,148,.12); --stale-bg:rgba(255,255,255,.06);
  --zone:rgba(240,138,126,.06); --zone-line:rgba(240,138,126,.36);
  --wash:rgba(255,255,255,.04); --wash2:rgba(255,255,255,.07); --seg-bg:rgba(255,255,255,.05); --seg-on:#2E2E33;
  --chip:#2A2A2F; --dash:#45454B; --dot-done:#717078; --dot-empty:#45454B; --bar:#77757F; --sq-on:#B0AEA8;
  --scroll:#3A3A40; --ph:#86847F; --stale-tile:#19191C; --top-bg:rgba(20,20,22,.94); --backdrop:rgba(8,8,10,.55);
  --inv:#ECEBE7; --on-inv:#141416; --press-bg:var(--seg-on); --press-ink:var(--ink);
  --btn-shadow:0 1px 2px rgba(0,0,0,.35);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 8px 24px -8px rgba(0,0,0,.45);
  --shadow-up:0 2px 4px rgba(0,0,0,.35),0 14px 32px -10px rgba(0,0,0,.55);
  --sheet-shadow:0 2px 6px rgba(0,0,0,.4),0 32px 72px -12px rgba(0,0,0,.6);
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--canvas)}
body{min-width:1000px;background:var(--canvas);color:var(--ink);font-family:var(--body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
::selection{background:var(--accent-soft);color:var(--ink)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--scroll);border-radius:10px;border:3px solid var(--canvas)}
::-webkit-scrollbar-track{background:transparent}
input,select,textarea{caret-color:var(--accent-ink)}
:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px;border-radius:8px}
bdi{unicode-bidi:isolate}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
h1,h2,h3,.fig{font-family:var(--fig);font-weight:600;text-wrap:balance}
.micro{font:600 12.5px/1.3 var(--body);color:var(--ink3)}
.muted{color:var(--ink2)}
.ltr{direction:ltr;unicode-bidi:isolate}
:root{--maxw:1360px;--sidew:460px}
@media (min-width:2200px){:root{--maxw:1840px}}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}
@media (max-width:1240px){:root{--pad:28px}}
.ico{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
kbd{font:600 11.5px/1.5 var(--body);color:var(--ink2);background:var(--sunken);border:1px solid var(--line2);border-radius:5px;padding:0 6px;direction:ltr;unicode-bidi:isolate}
.tx-stuck{color:var(--stuck)} .tx-risk{color:var(--risk-ink)} .tx-ok{color:var(--ok)} .tx-stale{color:var(--ink2)}

/* ===== top bar ===== */
.top{position:sticky;top:0;z-index:5;background:var(--top-bg);border-bottom:1px solid transparent}
.top.scrolled{border-bottom-color:var(--line2)}
.top .wrap{height:64px;display:flex;align-items:center;gap:24px}
.brand{display:flex;align-items:center;gap:10px;font:600 15px var(--fig);white-space:nowrap}
.brand .mk{width:26px;height:26px;border-radius:8px;background:var(--inv);display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:6px;flex:none}
.brand .mk i{background:var(--on-inv);border-radius:1.5px;opacity:.9}
.brand .mk i:first-child{grid-row:span 2}
nav.tabs{display:flex;gap:2px;flex:1;min-width:0}
nav.tabs a{text-decoration:none;font:600 14px var(--body);color:var(--ink3);padding:7px 11px;border-radius:9px;white-space:nowrap;transition:color .15s,background .15s}
nav.tabs a:hover{color:var(--ink);background:var(--wash)}
nav.tabs a[aria-current="page"]{color:var(--ink);background:var(--seg-on);box-shadow:var(--btn-shadow)}
nav.tabs .sep{width:1px;background:var(--line2);margin:8px 6px}
.tools{display:flex;align-items:center;gap:8px}
.btn{display:inline-flex;align-items:center;gap:7px;font:600 14px var(--body);color:var(--ink);background:var(--tile);border-radius:10px;padding:8px 14px;box-shadow:var(--btn-shadow);white-space:nowrap;transition:background .15s,box-shadow .15s,transform .1s}
.btn:hover{background:var(--hover)}
.btn.pri{color:var(--on-accent);background:var(--accent)}
.btn.pri:hover{background:var(--accent-hover)}
.btn.ghost{background:transparent;box-shadow:none;color:var(--ink2)}
.btn.ghost:hover{background:var(--wash)}
.btn.icon{padding:8px 10px}
.btn[aria-pressed="true"]:not(#themeBtn){background:var(--press-bg);color:var(--press-ink)}
.btn kbd{margin-inline-start:2px}
@media (max-width:1320px){#brandName{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)} #searchBtn .lbl,#presentBtn .lbl{display:none} #searchBtn,#presentBtn{padding:8px 10px}}

/* ===== page head ===== */
main{padding:24px 0 40px}
.phead{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.summary{font:600 32px/1.2 var(--fig);letter-spacing:-0.015em;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.summary .dot{color:var(--line2);font-weight:400}
.summary .k{display:inline-flex;align-items:center;gap:8px}
.summary .k svg{width:11px;height:11px}
/* audit 4: the figures are filter buttons; the line keeps its heading look until hover */
.summary button.k{border-radius:8px;text-decoration:underline 2px transparent;text-underline-offset:6px;transition:text-decoration-color .15s var(--ease)}
.summary button.k:hover{text-decoration-color:var(--line2)}
.phead .when{font-size:14px;color:var(--ink2);white-space:nowrap}
.view{display:none}
.view.on{display:block}
/* motion level 2: a new screen fades in and rises 8px. A view transition moves #main alone (html.vt, app.js go());
   without one, #main.enter replays the same motion on the shown view. */
#main.enter .view.on{animation:rise-in var(--dur-2) var(--ease)}
@keyframes rise-in{from{opacity:0;transform:var(--rise)}}
@keyframes rise-out{to{opacity:0;transform:translateY(-8px)}}
@keyframes pop{0%{transform:scale(.6)}60%{transform:scale(1.18)}100%{transform:none}}
html.vt #main{view-transition-name:main}
html.vt::view-transition-group(main){animation:none}
html.vt::view-transition-old(root){animation:none;opacity:0}
html.vt::view-transition-new(root){animation:none}
html.vt::view-transition-old(main){animation:rise-out var(--dur-1) var(--ease) both}
html.vt::view-transition-new(main){animation:rise-in var(--dur-2) var(--ease) both}
/* the toast route() may show (a kept draft) stays above the moving #main, live and unanimated; go() skips the transition when a side panel or dialog shows */
html.vt #toast{view-transition-name:toast}
html.vt::view-transition-group(toast),html.vt::view-transition-new(toast){animation:none}
html.vt::view-transition-old(toast){display:none}

/* alert bar */
.alertbar{display:flex;align-items:center;gap:12px;background:var(--stuck-bg);border-radius:12px;padding:10px 12px 10px 18px;margin-bottom:22px;font-size:15px}
.alertbar>svg{flex:none;color:var(--stuck)}
.alertbar p{flex:1;min-width:0}
.alertbar b{font-weight:600}
.alertbar .btn{background:var(--tile)}

/* ===== tiles ===== */
.tile{background:var(--tile);border-radius:16px;box-shadow:var(--shadow);padding:24px;position:relative;min-width:0}
button.tile{display:block;width:100%;transition:box-shadow .2s var(--ease),transform .2s var(--ease)}
button.tile:hover{box-shadow:var(--shadow-up)}
/* audit 11: a light pressed state; with reduced motion it darkens instead of shrinking */
@media (prefers-reduced-motion:no-preference){button.tile:active{transform:scale(.995)}.btn:active:not(:disabled){transform:scale(.97)}}
@media (prefers-reduced-motion:reduce){.btn:active:not(:disabled){filter:brightness(.92)}}
.th{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:14px}
.th h2{font-size:16px;letter-spacing:-0.005em}
.th .micro{white-space:nowrap}

.bento{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:auto auto auto auto;gap:20px}
.hero{grid-column:span 3;grid-row:span 2;display:flex;flex-direction:column;padding:26px 28px 18px}
.hero .th h2{font-size:20px}
.srow{display:flex;gap:20px;align-items:flex-start;padding:16px 12px;margin:0 -12px;border-radius:12px;flex:1;transition:background .15s;width:calc(100% + 24px)}
.srow:hover{background:var(--hover)}
.srow+.srow{position:relative}
.srow+.srow::before{content:"";position:absolute;top:0;inset-inline:12px;height:1px;background:var(--line)}
.srow .txt{flex:1;min-width:0}
.srow h3{font-size:20px;line-height:1.25;margin-bottom:5px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.srow .cause{font-size:15.5px;color:var(--ink2);line-height:1.45;margin-bottom:6px}
.srow .act{font-size:14px;color:var(--ink)}
.srow .act em{font-style:normal;color:var(--ink3);font-weight:600;font-size:12.5px;margin-inline-end:4px}
.days{text-align:center;min-width:80px}
.days .n{font:600 44px/1 var(--fig);letter-spacing:-0.02em}
.days .u{font:600 12px/1.3 var(--body);color:var(--ink3);margin-top:6px}
.more{display:flex;align-items:center;gap:8px;font:600 14px var(--body);color:var(--accent-ink);padding:10px 0 2px;border-radius:8px}
.more .ico{width:14px;height:14px}

.wide{grid-column:span 3;display:flex;gap:24px;align-items:flex-start}
.wide .big{font:600 56px/1 var(--fig);letter-spacing:-0.02em;min-width:56px}
.wide .body{flex:1;min-width:0}
.dlist{list-style:none;margin-top:8px}
.dlist button{display:grid;grid-template-columns:minmax(0,1fr) auto;width:calc(100% + 16px);gap:10px;align-items:baseline;padding:6px 8px;margin:0 -8px;border-radius:8px;font-size:14.5px}
.dlist button:hover{background:var(--hover)}
.dlist .t{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dlist .t b{font:600 14.5px var(--fig)}
.dlist .due{font:600 13px var(--body);color:var(--ink2);white-space:nowrap;text-align:end;display:inline-flex;align-items:center;gap:8px;justify-content:flex-end}
.dlist .due.near{color:var(--ink)}
.dlist .due.over{color:var(--stuck)}
.wk{justify-self:start;display:inline-flex;align-items:center;gap:4px;font:600 12px/1 var(--body);color:var(--accent-ink);background:var(--accent-soft);border-radius:999px;padding:4px 8px}
.wk .ico{width:12px;height:12px}
.stalet{background:var(--stale-tile);box-shadow:none;outline:1.5px dashed var(--dash);outline-offset:-1.5px}
.stalet .big{color:var(--ink2)}
.stalebtn{display:block;width:100%;text-align:start;border-radius:8px;padding:4px 0}

.third{grid-column:span 2}
.half{grid-column:span 3}
.sidecol{grid-column:span 2;display:grid;gap:20px;align-content:start}
@media (max-width:1240px){.summary{font-size:27px;gap:6px 10px} .dlist .t{white-space:normal}}
.hgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.hcell .lab{display:flex;align-items:center;gap:7px;font:600 13.5px var(--body);color:var(--ink2)}
.hcell .n{font:600 34px/1.1 var(--fig);letter-spacing:-0.02em;margin-top:2px}
.hcell .d{font-size:12.5px;color:var(--ink3)}
.ltrbox{direction:ltr}
.chart svg{display:block;width:100%;overflow:visible}
.chart .axis{position:relative;height:16px;font:600 11.5px var(--body);color:var(--ink3);margin-top:6px}
.chart .axis span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.chart .axis span:first-child{transform:none}
.chart .axis span:last-child{transform:translateX(-100%)}
.chart .now{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.chart .now b{font:600 30px/1 var(--fig);letter-spacing:-0.02em}
.bars{list-style:none;display:grid;gap:9px}
.bars li{display:grid;grid-template-columns:96px 1fr 20px;gap:10px;align-items:center;font-size:13.5px}
.bars .tr{height:6px;background:var(--sunken);border-radius:6px;overflow:hidden}
.bars .tr i{display:block;height:100%;background:var(--bar);border-radius:6px}
.bars .c{font:600 13px var(--fig);text-align:left}

/* feed + briefing */
.feed{grid-column:span 4;display:flex;flex-direction:column}
.flist{list-style:none}
.flist li+li{border-top:1px solid var(--line)}
.flist button{display:grid;grid-template-columns:178px minmax(0,1fr) 150px;gap:18px;align-items:start;width:calc(100% + 20px);margin:0 -10px;padding:11px 10px;border-radius:10px}
.flist button:hover{background:var(--hover)}
.flist .fn b{font:600 15px/1.3 var(--fig)}
.flist .tx{font-size:15px;line-height:1.45}
.flist .fw{font:600 12.5px/1.45 var(--body);color:var(--ink3);text-align:end}
.brief{list-style:none;counter-reset:b}
.brief li{display:grid;grid-template-columns:20px 1fr;gap:10px;padding:12px 0;font-size:15px;line-height:1.5}
.brief li:first-child{padding-top:2px}
.brief li+li{border-top:1px solid var(--line)}
.brief li::before{counter-increment:b;content:counter(b);font:600 13px/1.7 var(--fig);color:var(--ink3)}

/* projects */
.sechead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:40px 0 16px}
.sechead h2{font-size:20px;display:flex;align-items:baseline;gap:10px}
.sechead h2 .micro{font-weight:600}
.seg{display:inline-flex;background:var(--seg-bg);border-radius:10px;padding:3px;gap:2px}
.seg button{font:600 13.5px var(--body);color:var(--ink2);padding:6px 12px;border-radius:8px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.seg button:hover{color:var(--ink)}
.seg button[aria-pressed="true"]{background:var(--seg-on);color:var(--ink);box-shadow:var(--btn-shadow)}
.seg .c{font-size:12px;color:var(--ink3)}
.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.proj{padding:20px 22px;display:flex!important;flex-direction:column;gap:12px;min-height:236px}
.proj.is-sel,.proj.is-sel:hover{box-shadow:0 0 0 2px var(--accent-ink),var(--shadow-up)}
.proj .row1{display:flex;justify-content:space-between;align-items:center;gap:8px}
.proj .id{font:600 12px var(--body);color:var(--ink3)}
.proj h3{font-size:19px;line-height:1.25}
.stg{font-size:13px;color:var(--ink2);display:flex;flex-direction:column;gap:6px}
.stg .sn{white-space:normal}
.proj .nd{font-size:13.5px;line-height:1.4;flex:1}
.proj .nd .micro{display:block;margin-bottom:2px}
.proj .ft{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);padding-top:12px;border-top:1px solid var(--line)}
.proj .ft .sp{flex:1}
.proj .ft .own{display:inline-flex;align-items:center;gap:8px}
body.present .proj .ft{border-top:0;padding-top:0}
.cmp{display:inline-flex;align-items:center;gap:8px;font:600 12.5px var(--body);color:var(--ink2)}
.hsq{display:inline-flex;gap:3px}
.hsq i{width:9px;height:9px;border-radius:2px;box-shadow:inset 0 0 0 1.3px var(--bar)}
.hsq i.on{background:var(--sq-on);box-shadow:none}
.ini{width:24px;height:24px;border-radius:50%;background:var(--chip);color:var(--ink2);font:600 11.5px/24px var(--fig);text-align:center;flex:none}
.addt{background:transparent;box-shadow:none;outline:1.5px dashed var(--dash);outline-offset:-1.5px;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--ink2);font:600 15px var(--fig);min-height:236px}
.addt:hover{background:var(--wash);box-shadow:none!important}
.addt .ico{width:22px;height:22px}
.empty{grid-column:1/-1;padding:40px;text-align:center;color:var(--ink2)}

/* pills and markers */
.pill{display:inline-flex;align-items:center;gap:6px;font:600 12.5px/1 var(--body);padding:5px 10px 5px 11px;border-radius:999px;white-space:nowrap}
.pill svg{flex:none}
.p-stuck{color:var(--stuck);background:var(--stuck-bg)}
.p-risk{color:var(--risk-ink);background:var(--risk-bg)}
.p-ok{color:var(--ok);background:var(--ok-bg)}
.p-stale{color:var(--ink2);background:var(--stale-bg)}
.g-stuck{color:var(--stuck)} .g-risk{color:var(--risk)} .g-ok{color:var(--ok)} .g-stale{color:var(--stale)}
.stalenote{display:inline-flex;align-items:center;gap:6px;font:600 12px var(--body);color:var(--ink2)}
/* audit 6: unsaved project changes, on the "פרויקטים" tab and the project chips */
.drtag{display:inline-block;margin-inline-start:6px;font:600 11px/1 var(--body);color:var(--accent-ink);background:var(--accent-soft);border-radius:999px;padding:3px 6px;vertical-align:middle}
/* audit 8: route changes focus the screen heading from code; it is not a control, so no ring */
.view :is(h1,h2,h3)[tabindex="-1"]:focus{outline:none}

/* ===== stuck view ===== */
.cols2{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:20px;align-items:start}
.stack{display:grid;gap:16px}
.sitem{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) 92px;gap:24px;align-items:start;padding:22px 26px}
.sitem h3{font-size:20px;margin-bottom:8px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sitem .cause{font-size:15.5px;color:var(--ink2);line-height:1.5}
.kv{display:grid;gap:10px;font-size:14.5px}
.kv .micro{display:block;margin-bottom:1px}
.alerts{list-style:none;display:grid;gap:12px;font-size:14.5px}
.alerts li{display:flex;gap:10px;align-items:flex-start;line-height:1.45}
.alerts .ico{margin-top:3px;color:var(--ink3)}

/* ===== harnessing map ===== */
.mapgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.plotbox{direction:ltr;display:grid;grid-template-columns:40px minmax(0,1fr);gap:8px 12px;margin-top:6px}
.plotbox .ttl{font:600 12.5px var(--body);color:var(--ink3);direction:rtl}
.plotbox .yt{grid-column:1/-1;text-align:left}
.yax{position:relative}
.yax span{position:absolute;right:0;transform:translateY(50%);font:600 13px var(--fig);color:var(--ink2)}
.plot{position:relative;height:476px;background:var(--sunken);border-radius:12px}
.gl{position:absolute;background:var(--line)}
.gl.v{top:0;bottom:0;width:1px}
.gl.h{left:0;right:0;height:1px}
.zone{position:absolute;right:0;bottom:0;background:var(--zone);outline:1.5px dashed var(--zone-line);outline-offset:-1.5px;border-radius:0 0 12px 0}
.zone .zl{position:absolute;top:10px;right:12px;direction:rtl;text-align:right;font-size:13px;color:var(--ink2);line-height:1.35}
.zone .zl b{display:flex;align-items:center;gap:6px;font:600 14px var(--fig);color:var(--stuck)}
.pt{position:absolute;display:flex;flex-direction:column;align-items:center;gap:5px;width:108px;transform:translate(-50%,calc(100% - 13px));border-radius:10px;padding:0 0 2px;direction:rtl}
.pt .pg{width:26px;height:26px;border-radius:50%;background:var(--tile);display:grid;place-items:center;box-shadow:0 0 0 1px var(--line2),0 2px 6px -2px rgba(0,0,0,.18);transition:box-shadow .15s}
.pt .pg svg{width:12px;height:12px}
.pt .pl{font:600 12.5px/1.2 var(--fig);text-align:center;color:var(--ink);text-wrap:balance}
.pt .pw{font:500 11.5px/1 var(--body);color:var(--ink3);margin-top:-2px}
.pt:hover .pg{box-shadow:0 0 0 2px var(--ink3)}
.pt.is-sel .pg{box-shadow:0 0 0 2.5px var(--accent-ink)}
.pt.stk{flex-direction:row;width:auto;gap:6px;transform:translate(calc(13px - 100%),50%);padding:0 0 0 6px}
.pt.stk .pl{white-space:nowrap}
.pt.stk .pw{margin-top:0}
.pt.stk.lo{transform:translate(-13px,50%);padding:0 6px 0 0}
.pt.stk.lo .pg{order:1}
.xax{grid-column:2;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));direction:ltr}
.xax span{direction:rtl;text-align:center;font-size:12px;line-height:1.3;color:var(--ink3);padding:0 4px}
.xax b{display:block;font:600 13px var(--fig);color:var(--ink2)}
.plotbox .xt{grid-column:2;text-align:center}
.zlist{list-style:none}
.zlist li+li{border-top:1px solid var(--line)}
.zlist button,.zlist a{color:inherit;text-decoration:none;display:grid;gap:4px;width:calc(100% + 16px);margin:0 -8px;padding:12px 8px;border-radius:10px;text-align:start}
.zlist button:hover,.zlist a:hover{background:var(--hover)}
.zlist .nm{display:flex;align-items:center;gap:8px;font:600 16px var(--fig)}
.zlist .s{font-size:13.5px;color:var(--ink2)}

/* ===== detail blocks (project view + sheet + side) ===== */
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.chips a{text-decoration:none;display:inline-flex;align-items:center;gap:7px;font:600 13.5px var(--body);color:var(--ink2);padding:6px 12px;border-radius:9px;background:var(--wash)}
.chips a .cw{font:500 12px var(--body);color:var(--ink3)}
.chips a:hover{color:var(--ink);background:var(--wash2)}
.chips a[aria-current="true"]{background:var(--seg-on);color:var(--ink);box-shadow:var(--btn-shadow)}
.dgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.s6{grid-column:span 6}.s4{grid-column:span 4}.s3{grid-column:span 3}.s2{grid-column:span 2}
.dhead{display:flex;gap:24px;align-items:flex-start;justify-content:space-between}
.dhead h1{font-size:34px;line-height:1.15;letter-spacing:-0.015em;margin-bottom:10px}
.meta{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;font-size:14.5px;color:var(--ink2)}
.meta b{color:var(--ink);font-weight:600}
.upd{margin-top:14px;font-size:16px;line-height:1.5;max-width:70ch}
.cls{display:inline-flex;align-items:center;gap:6px;font:600 12.5px var(--body);color:var(--ink2);background:var(--sunken);padding:5px 10px;border-radius:8px}
.why{display:grid;gap:12px}
.why .line{font:500 18px/1.45 var(--fig)}
.decide .txt{font:600 18px/1.4 var(--fig);margin:6px 0 14px}
.decide .due{display:flex;align-items:baseline;gap:8px}
.decide .due b{font:600 34px/1 var(--fig);letter-spacing:-0.02em}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 28px}
.fields .v{font:500 15.5px/1.4 var(--fig);margin-top:3px}
.hz{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.hzhelp{margin:-4px 0 12px}
.cell{background:var(--sunken);border-radius:10px;padding:10px 12px;font:500 14px/1.3 var(--fig);display:flex;align-items:center;gap:8px;min-height:44px}
.cell .ico{color:var(--ok);width:15px;height:15px;stroke-width:2}
.cell.miss{background:transparent;outline:1.5px dashed var(--dash);outline-offset:-1.5px;color:var(--ink2);justify-content:space-between}
.cell.miss i{font:600 12px var(--body);font-style:normal;color:var(--stuck);display:inline-flex;align-items:center;gap:5px}
.cell.miss i .ico{color:inherit}
.stepper{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:6px 0 4px}
.step{display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--ink3);line-height:1.3}
.step .bar{height:6px;border-radius:6px;background:var(--line)}
.step.done{color:var(--ink2)} .step.done .bar{background:var(--dot-done)}
.step.cur{color:var(--ink);font-weight:600} .step.cur .bar{background:var(--accent)}
.step.back .bar{background:transparent;outline:1.5px dashed var(--dash);outline-offset:-1.5px}
.step .tag{font:600 11.5px var(--body);color:var(--ink3);margin-top:auto} /* same row in every step, even when a name wraps */
.step.cur .tag{color:var(--accent-ink)}
.hist{list-style:none}
.hist li{display:flex;gap:12px;align-items:flex-start;padding-bottom:12px;font-size:14px;color:var(--ink2);position:relative}
.hist li::before{content:"";position:absolute;right:4px;top:14px;bottom:-2px;width:1px;background:var(--line2)}
.hist li:last-child::before{display:none}
.hist .d{width:9px;height:9px;border-radius:50%;background:var(--dot-done);margin-top:6px;flex:none}
.hist li.cur{color:var(--ink);font-weight:600}
.hist li.cur .d{background:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.hist li.back .d{background:var(--tile);outline:1.5px solid var(--ink2);outline-offset:-1.5px}
.hist .when{display:block;font-size:12.5px;color:var(--ink3);font-weight:400}
.hist .bk{display:inline-flex;align-items:center;gap:4px;font:600 12px var(--body);color:var(--ink);background:var(--sunken);border-radius:6px;padding:2px 7px;margin-inline-start:6px}
.hist .bk .ico{width:12px;height:12px}
.tasks{list-style:none;display:grid;gap:2px}
.task{display:flex;gap:12px;align-items:flex-start;padding:8px 10px;margin:0 -10px;border-radius:10px;cursor:pointer}
.task:hover{background:var(--hover)}
.task input{appearance:none;width:18px;height:18px;border-radius:6px;border:1.5px solid var(--bar);flex:none;margin-top:2px;display:grid;place-content:center;cursor:pointer;background:var(--tile)}
.task input:checked{background:var(--inv);border-color:var(--inv)}
.task input:checked::after{content:"";width:9px;height:5px;border:2px solid var(--on-inv);border-top:0;border-right:0;transform:rotate(-45deg) translate(-1px,-1px)}
.task input:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.task .tt{flex:1;font-size:15px;line-height:1.4}
.task.done .tt{color:var(--ink3);text-decoration:line-through;text-decoration-color:var(--dot-done)}
.task .tm{font:600 12.5px var(--body);color:var(--ink3);white-space:nowrap;display:flex;gap:8px;align-items:center}
.late{display:inline-flex;align-items:center;gap:4px;color:var(--stuck)}
.docs{list-style:none;display:grid;gap:2px}
.docs li{display:flex;gap:12px;align-items:center;padding:8px 0;font-size:14.5px}
.docs li+li{border-top:1px solid var(--line)}
.docs .k{width:30px;height:30px;border-radius:8px;background:var(--sunken);display:grid;place-items:center;color:var(--ink2);flex:none}
.docs .t{flex:1;min-width:0}
.docs .t b{display:block;font:500 14.5px/1.3 var(--fig)}
.docs .t span{font-size:12.5px;color:var(--ink3)}
.notes{list-style:none;display:grid;gap:10px}
.notes li{font-size:15px;line-height:1.5;padding:12px 14px;background:var(--sunken);border-radius:10px}
.zero{font-size:14px;color:var(--ink3);padding:6px 0}

/* table */
table{width:100%;border-collapse:collapse;font-size:14.5px}
th{font:600 12.5px var(--body);color:var(--ink3);text-align:start;padding:0 12px 10px;border-bottom:1px solid var(--line)}
td{padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:last-child td{border-bottom:0}
td .lnk{font:500 14.5px var(--fig);border-radius:6px;text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:4px}
td .lnk:hover{text-decoration-color:var(--ink2)}
.soon{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:80px 40px;text-align:center}
.soon .ico{width:28px;height:28px;color:var(--ink3)}
.soon h2{font-size:22px}
.soon p{color:var(--ink2);max-width:52ch}
.tgroups{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.tgroups .th h2{display:flex;gap:10px;align-items:center}
.tgroups .th h2 a{color:inherit;text-decoration:none;font:600 16px var(--fig);border-radius:6px}
.tgroups .th h2 a:hover{text-decoration:underline;text-underline-offset:4px}
.foot{font-size:12.5px;color:var(--ink3);padding:32px 0 8px;text-align:center}

/* ===== side panel (non-modal, board stays usable) ===== */
/* audit 26: an overlay that slides in from the inline end and back out the same way; the board under it keeps its layout.
   visibility waits for the slide out, so the closed panel leaves the tab order and screen readers. Reduced motion: it fades in place instead (end of file). */
.side{position:fixed;top:64px;bottom:0;inset-inline-end:0;width:var(--sidew);z-index:8;background:var(--raised);box-shadow:var(--sheet-shadow);overflow:auto;padding:22px 28px 24px;
  visibility:hidden;transform:translateX(calc(-100% - 32px));transition:transform .24s cubic-bezier(.4,0,1,1),visibility 0s linear .24s}
.side.on{visibility:visible;transform:none;transition:transform .32s var(--ease),visibility 0s}
.sd-top{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.sd-top h2{font-size:26px;line-height:1.2;letter-spacing:-0.015em;margin-top:2px}
.sd-top .tools{display:flex;gap:8px;flex:none}
.sd-top .btn:not(.pri){background:var(--sunken);box-shadow:none;flex:none}
.sd-top .btn:not(.pri):hover{background:var(--wash2)}
.sd-why{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;font-size:15px;color:var(--ink2);margin-bottom:20px;line-height:1.45}
.side .blk{padding:16px 0;border-top:1px solid var(--line)}
.side .blk>.micro{display:block;margin-bottom:10px}
.side .stgl{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:var(--ink2)}
.side .dtx{font:600 17px/1.4 var(--fig)}
.side .ddue{font-size:14px;color:var(--ink2);margin-top:4px;display:flex;gap:8px;align-items:center}
.side .fields{gap:14px 22px}
.side .fields .v{font-size:14.5px}
.side .cell{font-size:13.5px;min-height:40px;padding:8px 10px}
.sd-foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:16px}
.sd-foot .sd-add{flex-basis:100%}
.sd-foot .tools .btn:not(.pri){background:var(--sunken);box-shadow:none}

/* ===== dialogs ===== */
#app{transition:opacity .25s var(--ease)}
body.dim #app{opacity:.32}
dialog{border:0;padding:0;background:transparent;color:var(--ink);margin:auto;max-width:none;max-height:none;overflow:visible}
dialog::backdrop{background:var(--backdrop);opacity:0;transition:opacity var(--dur-2) var(--ease),overlay var(--dur-2) allow-discrete,display var(--dur-2) allow-discrete}
dialog[open]::backdrop{opacity:1}
@starting-style{dialog[open]::backdrop{opacity:0}}
/* motion level 2: a dialog grows from 97% with a fade and closes the same way back; display and overlay wait for it */
dialog:not(#cmdk){transition:overlay var(--dur-2) allow-discrete,display var(--dur-2) allow-discrete}
dialog .panel{background:var(--raised);border-radius:20px;box-shadow:var(--sheet-shadow);opacity:0;transform:var(--pop);transition:opacity var(--dur-2) var(--ease),transform var(--dur-2) var(--ease)}
dialog[open] .panel{opacity:1;transform:none}
@starting-style{dialog[open] .panel{opacity:0;transform:var(--pop)}}
#sheet .panel{width:min(940px,calc(100vw - 64px));max-height:calc(100vh - 64px);overflow:auto;padding:36px 40px 28px}
#sheet .stop{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:6px}
#sheet h2.nm{font-size:30px;line-height:1.15;letter-spacing:-0.015em}
#sheet .acts{display:flex;gap:8px;flex:none}
#sheet .acts .btn{background:var(--sunken);box-shadow:none}
#sheet .acts .btn:hover{background:var(--wash2)}
#sheet .acts .btn.pri{background:var(--accent);color:var(--on-accent)}
#sheet .whyl{font-size:16.5px;color:var(--ink2);margin:10px 0 24px;display:flex;gap:10px 14px;align-items:center;flex-wrap:wrap}
#sheet .whyl b{color:var(--ink);font-weight:600}
#sheet .scol{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px}
#sheet .blk{margin-bottom:26px}
#sheet .blk>.micro{display:block;margin-bottom:10px}
#sheet .hz{grid-template-columns:repeat(3,1fr)}
#sheet .sfoot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
#sheet.big .panel{width:min(1240px,calc(100vw - 48px));padding:48px 56px 32px}
#sheet.big h2.nm{font-size:46px}
#sheet.big .whyl{font-size:23px}
#sheet.big .fields .v{font-size:21px}
#sheet.big .micro{font-size:15px}
#sheet.big .cell{font-size:18px;min-height:56px}
#sheet.big .hist li{font-size:17px}
#sheet.big .hist .when{font-size:14.5px}
#sheet.big .task .tt{font-size:18px}
#sheet.big .scol{grid-template-columns:minmax(0,1fr) 320px}
#sheet.big .opt{display:none}
/* the seven type tabs need about 460px: the panel is 500px wide (never wider than the window), scrolls when the window is short, and the tabs wrap instead of spilling out of the panel */
#qa .panel{width:min(500px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:26px 28px 24px}
#qa h2{font-size:20px;margin-bottom:16px}
.fld{display:grid;gap:6px;margin-bottom:14px}
.fld label{font:600 13px var(--body);color:var(--ink2)}
/* audit 10: field edges use --bar (3:1 and up on both themes), focus doubles the edge, a rejected field turns red */
.fld input,.fld select,.fld textarea{font:400 15px var(--body);color:var(--ink);background:var(--sunken);border:1.5px solid var(--bar);border-radius:10px;padding:9px 12px;width:100%}
.fld textarea{resize:vertical;min-height:80px}
/* audit 15: typed English or mixed text takes its own direction; an empty field and Hebrew stay right to left (dir="auto" turns an empty field left to right) */
.fld :is(input:not([type]),input[type=text],input[type=search],textarea),.nm-in{unicode-bidi:plaintext}
.fld input::placeholder,.fld textarea::placeholder{color:var(--ph)}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--accent-ink);box-shadow:0 0 0 1.5px var(--accent-ink);background:var(--tile)}
.fld [aria-invalid="true"],.fld [aria-invalid="true"]:focus{border-color:var(--stuck);box-shadow:0 0 0 1.5px var(--stuck)}
.hed{font:500 12.5px var(--body);color:var(--ink3)}
.fld.row{grid-template-columns:1fr 1fr;gap:12px}
.err{font:600 13px var(--body);color:var(--stuck);min-height:18px;margin-bottom:6px}
.qacts{display:flex;justify-content:flex-start;gap:8px}
#qa .seg{display:flex;flex-wrap:wrap;margin-bottom:8px}
#qa .seg button{flex:1 1 auto;justify-content:center;padding:6px 9px}
#qa .qahint{line-height:1.45;margin-bottom:16px}
/* free text sorted by Claude (AI-2, AI-4): option A, design-options/ai-freetext/A.png */
#qa .panel.ai{width:min(580px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto}
#qa .ai-text{min-height:0;line-height:1.55;resize:none}
.ai-src{display:flex;align-items:flex-start;gap:10px;background:var(--sunken);border-radius:10px;padding:10px 12px;margin:12px 0 14px}
.ai-src p{flex:1;min-width:0;font-size:14px;line-height:1.5;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ai-src .btn{flex:none}
.ai-count{font:600 12.5px var(--body);color:var(--ink3);margin-bottom:2px}
.ai-grp{padding-top:6px}
.ai-grp+.ai-grp{margin-top:10px}
.ai-gh{display:flex;align-items:center;gap:10px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.ai-gh h3{font-size:16px}
.ai-prop{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 0}
.ai-prop+.ai-prop{border-top:1px solid var(--line)}
.ai-ck{appearance:none;width:18px;height:18px;border-radius:6px;border:1.5px solid var(--bar);flex:none;margin-top:3px;display:grid;place-content:center;background:var(--tile);cursor:pointer}
.ai-ck:checked{background:var(--inv);border-color:var(--inv)}
.ai-ck:checked::after{content:"";width:9px;height:5px;border:2px solid var(--on-inv);border-top:0;border-right:0;transform:rotate(-45deg) translate(-1px,-1px)}
.ai-ck:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
.ai-kind{display:flex;align-items:center;gap:8px;margin-bottom:5px;flex-wrap:wrap}
.ai-kind .cls .ico{width:13px;height:13px}
.ai-txt{font:500 15.5px/1.4 var(--fig)}
.ai-prop:has(.ai-ck:not(:checked)) .ai-txt{color:var(--ink3)}
.ai-meta{font-size:13.5px;color:var(--ink2);margin-top:3px;line-height:1.45}
.ai-meta .hint{font-size:12.5px}
.ai-acts{display:flex;gap:2px}
.ai-perr{font:600 13px var(--body);color:var(--stuck);margin-top:6px}
.ai-ask{background:var(--sunken);border-radius:10px;padding:10px 12px 12px;margin-top:10px}
.ai-ask p{font:600 14px/1.4 var(--body);margin-bottom:2px}
.ai-ask .hint{font-size:12.5px;display:block;margin-bottom:8px}
.ai-ask .opts{display:flex;flex-wrap:wrap;gap:6px}
.ai-ask .btn{box-shadow:var(--btn-shadow)}
.ai-prop .fld{margin:8px 0 0}
.ai-prop .fld.row .fld{margin:0}
.ai-hz{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font:600 13.5px var(--body);color:var(--ink2)}
.ai-hz label{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
#qa .panel.ai .qacts{margin-top:18px}
.btn.pri .ai-n{font:600 12px/1 var(--body);border:1px solid rgba(255,255,255,.4);border-radius:5px;padding:2px 6px;margin-inline-start:2px}
/* notification settings (NT-3) */
#nt .panel{width:460px;padding:26px 28px 24px}
#nt h2{font-size:20px;margin-bottom:8px}
#nt .lead{font:400 14px/1.55 var(--body);color:var(--ink2);margin-bottom:20px}
#nt .fld input{width:140px}
#nt .fld #nt-key{width:100%}
.aikey{border-top:1px solid var(--line);padding-top:16px;margin:2px 0 14px}
.aikey .qacts{margin-top:-4px}
.aikh{display:flex;align-items:center;gap:10px;margin-bottom:4px}
.aikh h3{font-size:16px}
.aistate{font:600 12.5px var(--body);color:var(--ink2);background:var(--sunken);padding:3px 9px;border-radius:7px}
.aistate.on{color:var(--ok);background:var(--ok-bg)}
.aistate:empty{display:none}
.aikey .hint{line-height:1.45;margin-bottom:12px}
.swrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:12px 14px;border-radius:12px;background:var(--sunken);font:600 14px var(--body);cursor:pointer}
.switch{appearance:none;flex:none;width:38px;height:22px;border-radius:11px;background:var(--dash);position:relative;cursor:pointer;transition:background .2s var(--ease)}
.switch::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:inset-inline-start .2s var(--ease)}
.switch:checked{background:var(--accent)}
.switch:checked::after{inset-inline-start:19px}
.switch:focus-visible{outline:2px solid var(--accent-ink);outline-offset:2px}
/* search */
#cmdk{margin:11vh auto auto}
#cmdk .panel{width:640px;overflow:hidden}
/* audit 12: the command palette opens and closes at once, no fade or slide */
#cmdk .panel,#cmdk::backdrop{transition:none}
.ck-in{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);color:var(--ink3)}
.ck-in .ico{width:18px;height:18px}
.ck-in input{flex:1;min-width:0;font:500 18px var(--fig);color:var(--ink);background:none;border:0;outline:none}
.ck-in input::placeholder{color:var(--ph)}
#ckList{list-style:none;max-height:min(440px,58vh);overflow:auto;padding:8px 10px}
.ck-g{font:600 12px var(--body);color:var(--ink3);padding:10px 10px 4px}
.ck-o{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 10px;border-radius:10px;cursor:pointer}
.ck-o:hover{background:var(--hover)}
.ck-o[aria-selected="true"]{background:var(--accent-soft)}
.ck-o .k{display:grid;place-items:center;color:var(--ink3)}
.ck-o .t{font:600 15px/1.3 var(--fig);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ck-o .s{display:block;font:400 13px/1.35 var(--body);color:var(--ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ck-o .go{visibility:hidden}
.ck-o[aria-selected="true"] .go{visibility:visible}
.ck-empty{padding:28px 10px;text-align:center;color:var(--ink2);font-size:15px}
.ck-foot{display:flex;gap:20px;padding:11px 20px;border-top:1px solid var(--line);font:600 12.5px var(--body);color:var(--ink3)}
.ck-foot span{display:inline-flex;gap:6px;align-items:center}
.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,12px);background:var(--inv);color:var(--on-inv);font:600 14px var(--body);padding:10px 18px;border-radius:12px;box-shadow:var(--shadow-up);opacity:0;transition:opacity .25s var(--ease),transform .25s var(--ease);pointer-events:none;z-index:20}
.toast.on{opacity:1;transform:translate(-50%,0)}
/* a save that worked: a check before the text (empty alt text, the words already say it) */
.toast.ok::before{content:"✓"/"";display:inline-block;margin-inline-end:8px}
@media (prefers-reduced-motion:no-preference){.toast.ok::before{animation:pop 260ms var(--ease)}.task input.pop{animation:pop 180ms var(--ease)}}

/* ===== presentation mode ===== */
body.present .np{display:none!important}
body.present .top .wrap{height:72px}
body.present .brand{font-size:19px}
body.present main{padding-top:16px}
body.present .side{top:72px}
/* the today columns: wrap the decision instead of cutting it */
#v-today .dlist button{grid-template-columns:minmax(0,1fr);gap:2px}
#v-today .dlist .t{white-space:normal}
#v-today .dlist .due{justify-content:flex-start}
body.present .summary{font-size:36px;gap:6px 12px}
body.present .phead{margin-bottom:20px;flex-direction:column-reverse;align-items:flex-start;gap:2px}
body.present .phead .when{font-size:18px}
body.present .board{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:24px;align-items:stretch}
body.present .bento{display:flex}
body.present .hero{flex:1;padding:30px 34px 22px}
body.present .hero .th h2{font-size:28px}
body.present .hero .th .micro{font-size:16px}
body.present .srow{padding:18px 12px}
body.present .srow h3{font-size:29px}
body.present .srow .cause{font-size:21px}
body.present .srow .act{font-size:19px}
body.present .srow .act em{font-size:16px}
body.present .days .n{font-size:58px}
body.present .days .u{font-size:15px}
body.present .pill{font-size:16px;padding:7px 13px}
body.present .sechead{margin:0 0 14px}
body.present .sechead h2{font-size:28px}
body.present .pgrid{grid-template-columns:1fr;gap:10px}
body.present .proj{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:0;padding:12px 22px;gap:4px 12px}
body.present .proj .row1{grid-column:2;grid-row:1;gap:10px}
body.present .proj h3{grid-column:1;grid-row:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.present .proj .stg{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:16px}
body.present .proj .id{display:none}
body.present .proj h3{font-size:24px}
body.present .stg{font-size:17px}
body.present .foot{font-size:15px;padding:16px 0 0}

/* ===== live app additions (phase 1) ===== */
[hidden]{display:none!important}
.tg,.step,.seg label{position:relative}
a{color:inherit}
a.btn{text-decoration:none}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hint{color:var(--ink3)}
.sm{font-size:14px}
.btn.sm{font-size:13px;padding:4px 10px;gap:5px}
.btn.sm .ico{width:14px;height:14px}
.btn.ib{padding:5px} /* icon-only row buttons (simplify 13), always visible */
.btn.warn{color:var(--stuck)}
.btn:disabled{opacity:.5;cursor:default}
.sp{flex:1}
.p-unset{color:var(--ink2);background:var(--sunken);box-shadow:inset 0 0 0 1px var(--line2)}
.g-unset{color:var(--ink3)} .tx-unset{color:var(--ink2)}
.stalebtn .sn{font:600 17px/1.35 var(--fig)}
.stalebtn .sm{margin-top:2px}
.hgrid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
/* audit 24: plan cells keep the gap tag colours (P-3) */
.pk-late .lab{color:var(--stuck)} .pk-ontime .lab,.pk-early .lab{color:var(--ok)}
.hgrid+.dlist{margin-top:14px}
/* stage distribution: stage 1 at the left, like the map's x axis */
.sdist{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;align-items:end;margin-top:8px}
.sdist .col{display:flex;flex-direction:column;align-items:center;gap:6px}
.sdist i{display:block;width:100%;max-width:44px;background:var(--ink2);border-radius:6px 6px 2px 2px}
/* dark: --ink2 is pale and the bars outshout the status figures; use a quiet graphite step */
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .sdist i{background:#4E4E55}}
:root[data-theme="dark"] .sdist i{background:#4E4E55}
.sdist .c{font:600 13px var(--fig);min-height:18px}
.chart+.micro{display:block;margin-top:14px}
.sdist b{font:600 12px var(--body);color:var(--ink3);white-space:nowrap}
.emptyb{flex:1;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;padding:12px 0 16px;max-width:52ch}
.emptyb>.ico{width:22px;height:22px;color:var(--ink3);margin-bottom:4px}
.emptyb h3{font-size:19px}
.emptyb p{color:var(--ink2);font-size:15px}
.emptyb .np{margin-top:6px}
.fld.row .fld{margin:0}
.qacts{align-items:center}
#qa .err:not(:empty){display:grid;gap:8px;justify-items:start}
.filters{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-bottom:20px}
.filters .fld{margin:0;min-width:220px}
.filters .lab{font:600 13px var(--body);color:var(--ink2)}
.filters select{background:var(--tile);box-shadow:var(--btn-shadow)}
.trow{display:flex;align-items:flex-start;gap:6px}
.trow .task{flex:1;min-width:0}
.trow>.btn{margin-top:4px}
.task .tm{flex-wrap:wrap;justify-content:flex-end}
.stchip{font:600 12px var(--body);color:var(--accent-ink);background:var(--accent-soft);border-radius:6px;padding:2px 7px}
.docs .lnk{display:block;font:500 14.5px/1.3 var(--fig);color:var(--accent-ink);text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:4px;border-radius:4px}
.docs .lnk:hover{text-decoration-color:currentColor}
.plotempty{position:absolute;top:18px;left:18px;max-width:300px;direction:rtl;text-align:right;font-size:14px;color:var(--ink2);line-height:1.45;background:var(--tile);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow)}
.plotempty b{display:block;font:600 15px var(--fig);color:var(--ink);margin-bottom:2px}
/* project page form */
.nm-in{display:block;width:calc(100% + 12px);font:600 34px/1.15 var(--fig);letter-spacing:-0.015em;color:var(--ink);background:transparent;border:1.5px solid transparent;border-radius:10px;padding:2px 6px;margin:-4px -6px 10px}
.nm-in:hover{background:var(--sunken)}
.nm-in:focus{outline:none;border-color:var(--accent-ink);background:var(--tile)}
#pform .fld textarea{min-height:64px}
#pform .fields .fld{margin:0}
.seg label{font:600 13.5px var(--body);color:var(--ink2);padding:6px 12px;border-radius:8px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer}
.seg label:hover{color:var(--ink)}
.seg label:has(input:checked){background:var(--seg-on);color:var(--ink);box-shadow:var(--btn-shadow)}
.seg label:has(input:focus-visible),.step:has(input:focus-visible),.tg:has(input:focus-visible){outline:2px solid var(--accent-ink);outline-offset:2px}
.hseg{display:flex;flex-wrap:wrap;margin-bottom:16px}
.stepper.edit .step{cursor:pointer;border-radius:8px;padding:4px 2px}
.stepper.edit .step:hover .bar{background:var(--dash)}
.stepper.edit .step.cur:hover .bar{background:var(--accent)}
.stgfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px}
.tg{cursor:pointer}
.tg .on{display:inline-flex}
.tg .tl{flex:1}
.tg .off{display:none;font:600 12px var(--body);font-style:normal;color:var(--stuck);align-items:center;gap:5px}
.tg .off .ico{color:inherit;width:13px;height:13px}
.tg:has(input:not(:checked)){background:transparent;outline:1.5px dashed var(--dash);outline-offset:-1.5px;color:var(--ink2)}
.tg:has(input:not(:checked)) .on{display:none}
.tg:has(input:not(:checked)) .off{display:inline-flex}
.upl{list-style:none;display:grid;gap:2px;max-height:520px;overflow:auto}
.upl li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:10px 0;align-items:start}
.upl li+li{border-top:1px solid var(--line)}
.upl .when{font:600 12.5px var(--body);color:var(--ink3);grid-column:1}
.upl p{grid-column:1;font-size:15px;line-height:1.45}
.upl li.auto p{color:var(--ink2);font-size:14px}
.upl .btn{grid-column:2;grid-row:1/span 2}
.th .tools{gap:10px}
.pfoot{display:flex;align-items:center;gap:12px;padding-top:4px}
.savebar{position:sticky;bottom:20px;z-index:4;display:flex;align-items:center;gap:10px;background:var(--inv);color:var(--on-inv);border-radius:14px;padding:10px 12px 10px 18px;box-shadow:var(--shadow-up)}
.savebar[hidden]{display:none}
.savebar p{flex:1;min-width:0;font:600 14.5px/1.4 var(--body)}
.savebar.bad{background:var(--stuck-bg);color:var(--ink);outline:1.5px solid var(--stuck);outline-offset:-1.5px}
.savebar.bad p{color:var(--stuck)}
.savebar .btn kbd,.btn.pri kbd{background:transparent;border-color:rgba(255,255,255,.4);color:inherit}

/* ===== notes (phase 2, N-2..N-5): tiles on the notes screen, recessed cards inside a project page ===== */
.nlist{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.note.inset{background:var(--sunken);border-radius:12px;padding:16px 18px}
.dgrid .nlist{gap:12px}
.note .nh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.note h3{font-size:17px;line-height:1.35;margin-bottom:2px}
.note .nm{font:600 12.5px/1.4 var(--body);color:var(--ink3)}
.note .nm a{color:var(--accent-ink);text-decoration:none;border-radius:4px}
.note .nm a:hover{text-decoration:underline;text-underline-offset:3px}
.nbody{display:grid;gap:8px;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
.nbody ul{list-style:none;display:grid;gap:1px}
.nbody li{display:flex;align-items:flex-start;gap:10px;padding:3px 8px;margin:0 -8px;border-radius:8px}
.nbody li::before{content:"";width:5px;height:5px;border-radius:50%;background:var(--ink3);margin-top:10px;flex:none}
.nbody li:hover,.nbody li:focus-within{background:var(--wash)}
.nbody .bt{flex:1;min-width:0}
.nbody li .btn{flex:none;margin-top:-1px}
.filters input[type=search]{background:var(--tile);box-shadow:var(--btn-shadow)}
.note:focus-visible{outline:2px solid var(--accent-ink);outline-offset:3px}

/* ===== planned vs actual (phase 2, P-1..P-5): gap tags, the project plan table, the timeline ===== */
.gtag{display:inline-flex;align-items:center;gap:5px;font:600 12.5px/1.3 var(--body);white-space:nowrap}
.gtag .ico{width:13px;height:13px;stroke-width:2}
.gk-late{color:var(--stuck)} .gk-ontime{color:var(--ok)} .gk-early{color:var(--ok)} .gk-none{color:var(--ink3)}
.stg .gtag{align-self:flex-start}
table.plan{width:100%;border-collapse:collapse;font-size:14px}
.plan th,.plan td{text-align:start;padding:6px 10px;border-bottom:1px solid var(--line);vertical-align:middle}
.plan thead th{font:600 12.5px var(--body);color:var(--ink3);padding-top:0}
.plan tbody th{font:500 14px/1.35 var(--fig);width:34%}
.plan tbody th b{font-weight:600}
.plan tr.cur th{color:var(--accent-ink);font-weight:600}
.plan tr.cur th::after{content:"כאן";font:600 11.5px var(--body);margin-inline-start:8px;padding:1px 7px;border-radius:6px;background:var(--accent-soft)}
.plan td input{font:400 14.5px var(--body);color:var(--ink);background:var(--sunken);border:1.5px solid var(--bar);border-radius:9px;padding:6px 10px;width:100%;max-width:190px}
.plan td input:focus{outline:none;border-color:var(--accent-ink);box-shadow:0 0 0 1.5px var(--accent-ink);background:var(--tile)}
.plan .gapc .hint{margin-inline-start:10px}
.plan tbody td{height:46px}
/* closed by default (simplify 4): the summary row is the tile header */
.plan-d>summary{list-style:none;cursor:pointer;margin:-4px -8px;padding:4px 8px;border-radius:10px}
.plan-d>summary::-webkit-details-marker{display:none}
.plan-d>summary:hover{background:var(--wash)}
.plan-d[open]>summary{margin-bottom:10px}
.plan-d>summary h2{display:inline-flex;align-items:center;gap:8px}
.plan-d .chev{width:14px;height:14px;color:var(--ink3);transition:transform .15s}
.plan-d[open] .chev{transform:rotate(-90deg)}
.plan th.tip{text-decoration:underline dotted;text-underline-offset:3px;cursor:help}

.tl .tlgrid{--namew:250px;--gapw:20px}
.tlhead,.tlrow{display:grid;grid-template-columns:var(--namew) minmax(0,1fr);gap:var(--gapw);align-items:center}
.tlhead{padding:0 10px 10px;border-bottom:1px solid var(--line)}
/* audit 2: the today label has its own row above the months, so it never hides a month name */
.tlaxis{position:relative;height:40px}
.tlaxis span{position:absolute;top:20px;direction:rtl;white-space:nowrap;font:600 12px/20px var(--body);color:var(--ink3);padding-left:5px}
.tlaxis .today{top:0;transform:translateX(-50%);color:var(--ink);background:var(--tile);padding:0 6px;border-radius:6px;box-shadow:0 0 0 1px var(--line2);z-index:1}
.tlbody{position:relative}
.tlbg{position:absolute;top:0;bottom:0;left:10px;right:calc(10px + var(--namew) + var(--gapw));pointer-events:none}
/* grid lines sit above the row hover/selection fill (z 1), bars above the lines, today's line above all */
.tlbg i{position:absolute;top:0;bottom:0;width:1px;background:var(--line);z-index:1}
.tlbg i.now{width:0;border-left:2px dashed var(--ink2);z-index:2}
.tlrow{position:relative;width:100%;padding:12px 10px;border-radius:12px}
/* separator as a straight inset line: a border-bottom on a rounded row bends at the corners */
.tlrow::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:1px;background:var(--line)}
.tlrow:hover{background:var(--hover)}
.tlrow.is-sel{box-shadow:inset 0 0 0 2px var(--accent-ink)}
.tln{display:grid;gap:4px;min-width:0}
.tln b{font:600 15.5px/1.25 var(--fig)}
.tls{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.tlc{position:relative;display:grid;gap:5px;height:41px;align-content:center}
.lane{position:relative;height:18px}
.tb{position:absolute;z-index:1;top:0;height:18px;border-radius:5px;overflow:hidden;display:flex;align-items:center}
.tb b{font:600 11px/1 var(--fig);padding-left:5px}
.tb.pl{background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent-soft);color:var(--accent-ink)}
/* overdue target: a dashed edge, not only a colour (R-2) */
.tb.pl.over{box-shadow:none;border:1.5px dashed var(--stuck);background:var(--stuck-bg);color:var(--stuck)}
.tb.pl.over.tick b{color:var(--stuck)}
.tb.ac{background:var(--accent);color:var(--on-accent)}
.tb.tick{overflow:visible}
.tb.tick b{position:absolute;left:6px;color:var(--accent-ink)}
.tlleg{list-style:none;display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:16px;font-size:13.5px;color:var(--ink2)}
.tlleg li{display:flex;align-items:center;gap:8px}
.tlleg .tb{position:static;width:28px;height:12px}
.tlleg .nowk{width:0;height:16px;border-left:2px dashed var(--ink2)}
.tl > .hint{margin-top:10px}

/* ===== reports (phase 2, RP-1..RP-3): a document sheet on screen, a clean A4 page in print ===== */
#v-reports{max-width:1120px;margin-inline:auto}
.rtitle{display:flex;align-items:center;gap:20px}
.rtabs a{font:600 13.5px var(--body);color:var(--ink2);padding:6px 12px;border-radius:8px;text-decoration:none;white-space:nowrap}
.rtabs a:hover{color:var(--ink)}
.rtabs a[aria-current="page"]{background:var(--seg-on);color:var(--ink);box-shadow:var(--btn-shadow)}
.report{padding:36px 44px 30px}
.rhead{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:18px;border-bottom:2px solid var(--ink);margin-bottom:24px}
.rhead h2{font-size:28px;line-height:1.2;letter-spacing:-0.015em}
.rhead p{font-size:14.5px}
.rdate{font:600 14.5px var(--body);color:var(--ink2);white-space:nowrap}
.rblock{margin-bottom:28px}
.rblock:last-child{margin-bottom:0}
.rblock h3{font-size:16px;display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.rcounts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.rcount{background:var(--sunken);border-radius:12px;padding:12px 16px;display:grid;gap:4px}
.rcount .lab{display:flex;align-items:center;gap:7px;font:600 13.5px var(--body);color:var(--ink2)}
.rcount b{font:600 30px/1.1 var(--fig);letter-spacing:-0.02em}
.rtable{font-size:14px}
.rtable th{padding:0 10px 8px}
.rtable td{padding:11px 10px;vertical-align:top}
.rtable th:first-child,.rtable td:first-child{padding-inline-start:0}
.rtable th:last-child,.rtable td:last-child{padding-inline-end:0}
.rn{font:600 14.5px/1.35 var(--fig)}
.rsub{display:block;font-size:12.5px;color:var(--ink3)}
.rdue{white-space:nowrap}
.rdue .late{display:flex;font:600 12px var(--body);margin-top:2px}
.rdue .late .ico,.rtable .gtag .ico{width:12px;height:12px}
.rtable .gtag{white-space:normal}
.rcols{display:grid;grid-template-columns:1fr 1fr;gap:36px}
.rlist{list-style:none}
.rlist li{padding:10px 0;border-top:1px solid var(--line)}
.rlist li:first-child{border-top:0;padding-top:0}
.rlist b{font:600 15px var(--fig)}
.rlist b+.rsub{display:inline;margin-inline-start:6px}
.rlist p{font-size:14.5px;margin-top:2px}
.rlist p.rsub{font-size:12.5px}
.rweek{list-style:none}
.rweek li{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:15px;overflow-wrap:anywhere}
.rweek li:first-child{border-top:0;padding-top:2px}
.rweek .rd{font:600 13px/1.6 var(--body);color:var(--ink3)}
.rweek b{font:600 15px var(--fig)}
.rfrom{margin:0;min-width:200px}
/* reduced motion (audit 7, review finding 14): nothing moves; screen changes, dialogs and the side panel fade in 120ms instead.
   Rows and figures do not animate at all (app.js checks the same query). */
@media (prefers-reduced-motion:reduce){
  :root{--dur-1:120ms;--dur-2:120ms;--rise:none;--pop:none}
  .side{transform:none;opacity:0;transition:opacity var(--dur-1) var(--ease),visibility 0s linear var(--dur-1)}
  .side.on{opacity:1;transition:opacity var(--dur-1) var(--ease),visibility 0s}
  .toast{transform:translate(-50%,0)}
  .switch::after,.plan-d .chev{transition:none}
}

@media print{
  @page{size:A4 portrait;margin:14mm 12mm}
  /* white page and dark text in either theme: light tokens beat both dark selectors (same specificity, later rule) */
  :root:not([data-theme="light"]),:root[data-theme]{
    --canvas:#fff; --tile:#fff; --raised:#fff; --sunken:#F6F5F2;
    --ink:#1C1B1A; --ink2:#5C5A55; --ink3:#706D66; --line:#E2E0DA; --line2:#D2CFC8;
    --accent:#4A4AA8; --accent-ink:#4A4AA8; --accent-soft:rgba(74,74,168,.10);
    --stuck:#B42318; --risk:#B7791F; --risk-ink:#8A5A12; --ok:#2F7D57; --stale:#8F8C85;
    --stuck-bg:#FBEFED; --risk-bg:#FBF3E6; --ok-bg:#EEF5F1; --stale-bg:#F0EFEC;
    --dot-done:#8A877F; --dot-empty:#CFCCC5;
    --shadow:none; color-scheme:light;
  }
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact;animation:none!important}
  html,body{background:#fff;min-width:0}
  .top,.foot,.side,.toast,dialog,.rbar,.rfrom,#v-reports button,#v-reports .btn{display:none!important}  /* buttons hidden on the report only: on other routes rows and tiles are buttons */
  main.wrap,.wrap{padding:0;max-width:none}
  #v-reports{max-width:none}
  .report{box-shadow:none;border-radius:0;padding:0}
  .rhead{margin-bottom:16px;padding-bottom:12px}
  .rhead h2{font-size:22px}
  .rblock{margin-bottom:18px}
  .rblock h3{font-size:14px;margin-bottom:8px;break-after:avoid}
  .rcount{padding:8px 12px}
  .rcount b{font-size:22px}
  .rtable{font-size:11px}
  .rtable th{font-size:10px;padding:0 6px 6px}
  .rtable td{padding:5px 6px}
  .rn{font-size:11.5px}
  .rsub,.rlist p.rsub{font-size:10px}
  .rtable .pill{font-size:10px;padding:3px 7px 3px 8px;gap:4px}
  .rtable .gtag,.rdue .late{font-size:10.5px}
  tr,.rlist li,.rweek li,.rcount{break-inside:avoid}
  thead{display:table-header-group}
  .rcols{gap:24px}
  .rlist b{font-size:12.5px}
  .rlist p{font-size:11.5px;margin-top:0}
  .rlist li{padding:6px 0}
  .rhead{margin-bottom:12px}
  .rblock{margin-bottom:14px}
}

/* ---------- directions (option 3): open grid, promoted and stopped lists, lessons, close dialog ---------- */
.p-open{color:var(--accent-ink);background:var(--accent-soft)}
.p-open .ico{width:13px;height:13px;stroke-width:1.8}
.p-nogo{color:var(--ink2);background:var(--stale-bg)}
.p-fail{color:var(--stuck);background:var(--stuck-bg)}
.phead .ptools{display:flex;align-items:center;gap:10px}
.seg .ico{width:14px;height:14px}
.ogrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:28px}
.dcard{min-height:212px;gap:10px;transition:box-shadow .2s var(--ease)}
.dcard:hover,.dcard:focus-within{box-shadow:var(--shadow-up)}
.dcard h3{font-size:18px}
.dlink{color:inherit;text-decoration:none}
.dlink::after{content:"";position:absolute;inset:0;border-radius:inherit}  /* the whole card opens the page */
.dlink:focus-visible{outline:none}
.dcard:has(.dlink:focus-visible){box-shadow:0 0 0 2px var(--accent-ink),var(--shadow-up)}
.dcard .idea{flex:1;font-size:14.5px;line-height:1.45;color:var(--ink2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dcard .ft{padding-top:10px;min-height:43px}
.dcard .ft .cnt{display:inline-flex;align-items:center;gap:4px;font:600 12.5px var(--body);color:var(--ink3)}
.dcard .ft .cnt .ico,.dcard .ft .btn.sm .ico{width:14px;height:14px}
.dcard .acts{display:none;align-items:center;gap:6px;position:relative;z-index:1}
.dcard:hover .acts,.dcard:focus-within .acts,.dcard .acts.on{display:flex}
.dcard:hover .cnt,.dcard:focus-within .cnt,.dcard:has(.acts.on) .cnt{display:none}
.ogrid .addt{min-height:120px}
.addt .micro{font-weight:500}
.plink{display:inline-flex;align-items:center;gap:6px;font:600 14px var(--body);color:var(--accent-ink);text-decoration:none}
.plink .ico{width:14px;height:14px}
.plink:hover span{text-decoration:underline}
.dback{margin-bottom:14px}
.low{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:20px;align-items:start}
.crows{list-style:none}
.crow{display:grid;gap:4px;padding:11px 10px;margin:0 -10px;border-radius:10px}
.crow+.crow{border-top:1px solid var(--line);border-radius:0 0 10px 10px}
.crow .cr1{display:flex;align-items:center;gap:10px;min-width:0}
.crow .cr1>a{font:600 15px var(--fig);color:var(--ink);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.crow .cr1>a:hover{text-decoration:underline}
.crow .sp,.lmeta .sp,.cbt .sp{flex:1}
.crow .sub{display:flex;align-items:center;gap:6px 12px;font-size:13.5px;color:var(--ink2);min-width:0}
.crow .sub>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.sr{display:inline-flex;align-items:center;gap:8px;min-width:0}
.reason{font:600 13px var(--body);color:var(--ink2);white-space:nowrap}
.lsn1{font-size:14px;line-height:1.45;color:var(--ink)}
.rchips{display:flex;flex-wrap:wrap;gap:6px}
.rchips button{font:600 13.5px var(--body);color:var(--ink2);padding:6px 12px;border-radius:9px;background:var(--wash)}
.rchips button:hover{color:var(--ink)}
.rchips button[aria-pressed="true"]{background:var(--inv);color:var(--on-inv)}
.lgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}
.lrows{list-style:none}
.lrow{padding:14px 0}
.lrow:first-child{padding-top:2px}
.lrow+.lrow{border-top:1px solid var(--line)}
.lrow .lsn{font-size:15.5px;line-height:1.55;color:var(--ink);margin-bottom:8px;white-space:pre-line}
.lmeta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:13.5px;color:var(--ink2)}
.lmeta>a{font:600 14px var(--fig);color:var(--ink);text-decoration:none}
.lmeta>a:hover{text-decoration:underline}
.kind{font:600 12px var(--body);color:var(--ink3);background:var(--chip);border-radius:6px;padding:2px 7px}
.lempty{grid-column:1/-1;font-size:14px;color:var(--ink3);padding:16px 2px 4px}
.closedb{background:var(--stale-tile);box-shadow:none;outline:1.5px dashed var(--dash);outline-offset:-1.5px;padding:18px 24px}
.closedb .cbt{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.closedb .lsn{margin-top:10px;font-size:15px;line-height:1.55;white-space:pre-line}
.closedb .lsn .micro{display:block;margin-bottom:2px}
#cl .panel{width:480px;padding:26px 28px 24px}
#cl h2{font-size:20px;margin-bottom:4px}
#cl .lead{font-size:14.5px;line-height:1.5;color:var(--ink2);margin-bottom:18px}
#cl .lab{font:600 13px var(--body);color:var(--ink2)}
#cl .seg{display:flex}
#cl .seg button{flex:1;justify-content:center}
#clState svg{flex:none} #clState [data-s=stalled] svg{color:var(--ink2)} #clState [data-s=failed] svg{color:var(--stuck)}  /* small glyphs as in the demo: grey pause, red X (shape and word, R-2) */
#cl .shint{font-size:13px;color:var(--ink3);margin-top:-2px}
#cl .fld textarea{resize:none;line-height:1.55;min-height:0}
#cl .qacts{margin-top:4px}

/* projects tab (#/project): every live project as a card, stopped ones below */
.pcard{min-height:236px}
.ogrid-empty{margin-bottom:28px}
#v-project .low{grid-template-columns:1fr 1fr}

/* "עתידי" directions and manual order (Guy, 2026-11-21; design-options/future-order/) */
.p-later{color:var(--ink2);background:var(--chip)}
.p-later .ico{width:13px;height:13px;stroke-width:1.8}
.dcard.later{background:transparent;box-shadow:none;outline:1.5px solid var(--line2);outline-offset:-1.5px}
.dcard.later:hover,.dcard.later:focus-within{background:var(--tile);outline-color:transparent;box-shadow:var(--shadow-up)}
.dcard.later h3{color:var(--ink2)}
.ogrid.lg .dcard{min-height:170px}
.grp{display:flex;align-items:baseline;gap:10px;margin:0 2px 14px}
.grp h2{font-size:17px}
.grp .micro{font-weight:500}
/* with the actions shown (hover, focus) the footer keeps the initial only, so "קדם", "עתידי" and "סגירה" fit on one line */
.dcard:hover .ownt,.dcard:focus-within .ownt,.dcard:has(.acts.on) .ownt{display:none}
.grip{position:absolute;inset-block-start:12px;inset-inline-end:10px;z-index:2;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;color:var(--ink3);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.grip .ico{width:16px;height:16px}
.grip:hover,.grip:focus-visible{background:var(--wash2);color:var(--ink)}
.proj.hasgrip .row1{padding-inline-end:30px}
.dragging{box-shadow:0 18px 40px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.08)!important;rotate:-1deg}
.slot{border-radius:16px;outline:2px dashed var(--accent-ink);outline-offset:-2px;background:var(--accent-soft)}
body.sorting,body.sorting *{cursor:grabbing!important;-webkit-user-select:none;user-select:none}
body.present .grip{display:none}
@media (prefers-reduced-motion:reduce){.dragging{rotate:none}}
@media print{.grip{display:none}}
/* the order switch and the state filter do not fit beside the title at 1440: the title keeps one line, the tools move under it */
#v-project .phead{flex-wrap:wrap;row-gap:16px}
#projsTitle{flex:none;max-width:100%}

/* "תמונת מצב" (Guy, 2026-11-21; design-options/board/ option B): "שלי" and "התיק" side by side, the portfolio by stage below */
#sumTitle a{color:inherit;text-decoration:underline 2px transparent;text-underline-offset:6px;border-radius:8px}
#sumTitle a:hover{text-decoration-color:var(--line2)}
.quiet{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;font:600 13.5px var(--body);color:var(--ink3);margin:-8px 0 22px}
.quiet span{display:inline-flex;align-items:center;gap:6px}
.quiet .ico{width:14px;height:14px;color:var(--ok)}
.now2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:20px}
.colh{font:700 13px var(--body);color:var(--ink3);margin:0 2px 10px}
.now2 .stack{gap:20px}
.sub2{font:600 12.5px var(--body);color:var(--ink3);margin:14px 0 8px}
.sub2:first-child{margin-top:0}
.chiprow{display:flex;flex-wrap:wrap;gap:8px}
.dchip{display:inline-flex;align-items:baseline;gap:6px;max-width:100%;font:600 13px var(--body);background:var(--wash);border-radius:9px;padding:6px 10px;color:var(--ink);text-align:start}
.dchip:hover{background:var(--wash2)}
.dchip .m{color:var(--ink3);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dchip b{white-space:nowrap;font-weight:600}
.nudge{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.5;color:var(--ink2);background:var(--wash);border-radius:12px;padding:11px 14px;margin-top:14px}
.nudge .ico{margin-top:2px}
.stack>.nudge{margin-top:0}
.attl{list-style:none}
.attl li+li{border-top:1px solid var(--line)}
.arow{display:flex;align-items:flex-start;gap:12px;width:100%;padding:12px 10px;margin:0 -10px;width:calc(100% + 20px);border-radius:10px;text-align:start}
.arow:hover{background:var(--hover)}
.arow .pill,.arow .gtag{flex:none;margin-top:1px}
.arow .tx{flex:1;min-width:0}
.arow .tx b{font:600 15px var(--fig);display:block;margin-bottom:2px}
.arow .tx span{font-size:13.5px;line-height:1.45;color:var(--ink2)}
.arow .micro{flex:none;margin-top:3px}
.wkl{list-style:none}
.wkl li{display:flex;gap:10px;padding:9px 0;font-size:14px;align-items:baseline;min-width:0}
.wkl li+li{border-top:1px solid var(--line)}
.wkl .plink{font:600 14px var(--fig);color:var(--ink);white-space:nowrap;flex:none}
.wkl .tx{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink2)}
.wkl .m{color:var(--ink3);font-size:12.5px;margin-inline-start:auto;white-space:nowrap;flex:none}
.wkl .wmore{color:var(--ink3);font-size:13px}
.pipet{margin-bottom:20px}
.pipe{display:grid;grid-template-columns:minmax(0,1.2fr) repeat(7,minmax(0,1fr))}
.pcol{padding:0 8px 4px;border-left:1px solid var(--line);min-height:120px;min-width:0}
.pcol.pdir{border-left:0;background:var(--wash);border-radius:12px;padding:0 10px 10px}
.pcol h3{font:600 12px/1.35 var(--body);color:var(--ink3);margin:10px 0;min-height:32px}
.pcol h3 b{display:block;color:var(--ink);font:700 14px var(--fig)}
.pit{display:flex;align-items:center;gap:6px;width:100%;font:600 13px var(--body);color:var(--ink);background:var(--tile);box-shadow:var(--btn-shadow);border-radius:9px;padding:7px 9px;margin-bottom:7px;text-decoration:none;text-align:start;min-width:0}
.pit>span:not(.vh){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.pit svg,.pit .ico,.pit>[class^="g-"]{flex:none}
.pit>[class^="g-"]{display:inline-flex}
.pit .ico{width:14px;height:14px}
.pit:hover{box-shadow:var(--shadow-up)}
.pit.is-sel{box-shadow:0 0 0 2px var(--accent-ink)}
.pit.dir{box-shadow:none;outline:1px solid var(--line2);outline-offset:-1px;background:transparent;color:var(--ink2)}
.pit.fut{color:var(--ink3);outline-style:dashed}
.pnone{font-size:13.5px;color:var(--ink2);margin-top:10px}
.pnone .plink{font-size:13.5px}
body.present .now2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
