/* ════════ "עליי" alive (night round 2026-10-26, track home: B0, B1, B3) ════════
   Tokens and radii of koma.css only. Compact empty card, project cards with the edition bar, the three-step checklist,
   activity, waiting on / who opened, pending invitations. No inline styles (the CSP forbids them): the bar is an SVG. */
:where(.k) .hm-page{max-inline-size:1080px}
:where(.k) .hm-page>.ob{margin:0}
:where(.k) .hm-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:var(--sp-4);align-items:start}
:where(.k) .hm-col{display:flex;flex-direction:column;gap:var(--sp-4);min-inline-size:0}
:where(.k) .hm-col:empty{display:none}
:where(.k) .hm-block{overflow:hidden;flex:none}
:where(.k) .split__list>.hm-block,:where(.k) .split__list>.hm-empty{margin-block-start:var(--sp-4)}
:where(.k) .hm-empty{flex:none}
:where(.k) .hm-block .sc__head{padding-block-end:var(--sp-2)}
:where(.k) .hm-block .sc__list{margin-block-start:var(--sp-1)}

/* B0.1 the compact empty card */
:where(.k) .hm-empty{display:grid;grid-template-columns:auto minmax(0,1fr);gap:var(--sp-2) var(--sp-4);align-items:center;padding:var(--sp-5);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .hm-empty__ic{display:grid;place-items:center;inline-size:40px;block-size:40px;border-radius:var(--r-md);background:var(--c-accent-tint);color:var(--c-accent)}
:where(.k) .hm-empty__t{font-size:var(--fs-16);line-height:var(--lh-16);font-weight:600;margin:0}
:where(.k) .hm-empty__p{font-size:var(--fs-14);line-height:var(--lh-14);color:var(--c-text-2);margin:2px 0 0}
:where(.k) .hm-empty__acts{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding-block-start:var(--sp-2)}
:where(.k) .m-scroll>.hm-empty{margin:var(--sp-4) var(--sp-4) 0}

/* B0.3 project cards */
:where(.k) .hm-projs{list-style:none;margin:0;padding:var(--sp-1) var(--sp-3) var(--sp-3);display:flex;flex-direction:column;gap:var(--sp-2)}
:where(.k) .hm-proj{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);color:var(--c-ink);text-decoration:none;transition:background var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease)}
:where(.k) .hm-proj:hover{background:var(--c-hover);border-color:var(--c-line-strong)}
:where(.k) .hm-proj:focus-visible{outline:none;box-shadow:var(--focus)}
:where(.k) .hm-proj__top{display:flex;align-items:center;gap:var(--sp-2);justify-content:space-between}
:where(.k) .hm-proj__name{font-size:var(--fs-14);line-height:var(--lh-14);font-weight:600;min-inline-size:0}
:where(.k) .hm-proj__top .ic{color:var(--c-text-3);flex:none}
:where(.k) .hm-proj__meta{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .hm-bar{display:block;inline-size:100%;block-size:6px;border-radius:3px;overflow:hidden;background:var(--c-pressed)}
:where(.k) .hm-bar__approved{fill:var(--c-accent)}
:where(.k) .hm-bar__waiting{fill:var(--c-accent-line)}
:where(.k) .hm-bar__returned{fill:var(--c-wait)}      /* returned = the brown-orange status colour (Liav 8.11) */
:where(.k) .hm-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .hm-legend li{display:inline-flex;align-items:center;gap:6px}
:where(.k) .hm-legend i{inline-size:8px;block-size:8px;border-radius:50%;flex:none;background:var(--c-accent)}
:where(.k) .hm-legend__waiting i{background:var(--c-accent-line);box-shadow:inset 0 0 0 1px var(--c-accent)}
:where(.k) .hm-legend__returned i{background:var(--c-wait)}

/* B0.5 who opened */
:where(.k) .hm-saw{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-5) var(--sp-4)}
:where(.k) .hm-saw__top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap;font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .hm-saw__meta{margin:0;font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .hm-saw .cs-bar{margin:0}
:where(.k) .hm-block .sc__list+.hm-saw{border-block-start:1px solid var(--c-line)}

/* B3 pending invitations */
:where(.k) .hm-inv{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who act";min-block-size:56px;padding-block:var(--sp-2)}
:where(.k) .hm-inv .lrow__lead{grid-area:lead}
:where(.k) .hm-inv .lrow__who{grid-area:who}
:where(.k) .hm-inv .btn{grid-area:act}
:where(.k) .hm-inv .lrow__name{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}

/* B1 the three-step checklist */
:where(.k) .hm-cl{gap:var(--sp-3)}
:where(.k) .hm-cl__steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
:where(.k) .hm-cl__step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--sp-3);padding-block:var(--sp-3);min-block-size:56px}
:where(.k) .hm-cl__step+.hm-cl__step{border-block-start:1px solid var(--c-line)}
:where(.k) .hm-cl__txt{display:flex;flex-direction:column;gap:2px;min-inline-size:0;font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .hm-cl__txt small{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .hm-cl__lock{color:var(--c-text-3)}
:where(.k) .hm-cl__step .ob__mark{font-size:var(--fs-12);font-weight:600;color:var(--c-text-2)}
:where(.k) .hm-cl__step.is-done .ob__mark{background:var(--c-accent);box-shadow:none;color:#fff}
:where(.k) .hm-cl__step.is-done .ob__mark .ic{inline-size:12px;block-size:12px;stroke-width:2.25}
:where(.k) .hm-cl__step.is-done .hm-cl__txt{color:var(--c-text-3)}
:where(.k) .hm-cl__step.is-done .hm-cl__txt small{display:none}
:where(.k) .hm-cl .btn[disabled]{cursor:not-allowed}

/* B0.2 a tab or chip with nothing behind it is quiet, not a "0" */
:where(.k) .tabs__tab.is-zero:not([aria-selected="true"]){color:var(--c-text-3)}
:where(.k) .m-chip.is-zero:not([aria-pressed="true"]){color:var(--c-text-3)}

/* mobile: blocks sit in the page gutters, buttons are finger-size */
:where(.k) .hm-m{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-4) var(--sp-4) 0}
@media (max-width:1100px){ :where(.k) .hm-grid{grid-template-columns:minmax(0,1fr)} }
@media (max-width:759px){
  :where(.k) .hm-empty{padding:var(--sp-4)}
  :where(.k) .hm-empty__acts .btn{min-block-size:44px;flex:1 1 auto;justify-content:center}
  :where(.k) .hm-empty__acts .btn--link{flex:0 0 100%}
  :where(.k) .hm-cl__txt small{display:none}
  :where(.k) .hm-cl__step{grid-template-columns:auto minmax(0,1fr) auto}
  :where(.k) .hm-cl__step .btn{min-block-size:44px}
  :where(.k) .m-scroll>.ob.hm-cl .btn--sm{block-size:44px}
  :where(.k) .hm-inv{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead who" ". act"}
  :where(.k) .hm-inv .btn{justify-self:start;min-block-size:44px}
  :where(.k) .hm-proj{padding:var(--sp-3)}
}
/* The self-serve demo (demo.js): the "נסו את הדמו" line on the sign-in page and the demo bar of a demo account. */
:where(.k) .auth__try{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);flex-wrap:wrap;margin-block-start:var(--sp-4);padding:var(--sp-3) var(--sp-4);border:1px dashed var(--c-accent-line);border-radius:var(--r-md);background:var(--c-accent-tint)}
.demo-bar{position:fixed;inset-block-end:var(--sp-4);inset-inline-start:50%;transform:translateX(50%);z-index:var(--z-toast);display:flex;align-items:center;gap:var(--sp-3);max-inline-size:calc(100vw - 32px);padding:6px 6px 6px var(--sp-3);border:1px solid var(--c-line-strong);border-radius:999px;background:var(--c-surface);color:var(--c-ink);box-shadow:0 8px 24px rgb(15 23 42 / .14);font-size:var(--fs-13)}
[dir="ltr"].demo-bar{transform:translateX(-50%);padding:6px var(--sp-3) 6px 6px}
.demo-bar__badge{flex:none;padding:3px 10px;border-radius:999px;background:var(--c-wait);color:#fff;font-weight:700;letter-spacing:.02em}
.demo-bar__pick{display:flex;align-items:center;gap:var(--sp-2);min-inline-size:0}
.demo-bar__as{color:var(--c-text-2);white-space:nowrap}
.demo-bar__select{min-inline-size:0;max-inline-size:220px;block-size:32px;padding-inline:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-sm);background:var(--c-canvas);color:var(--c-ink);font:inherit}
.demo-bar__select:focus-visible,.demo-bar__exit:focus-visible{outline:2px solid var(--c-accent-ring);outline-offset:2px}
.demo-bar__note{color:var(--c-text-3);white-space:nowrap}
.demo-bar__exit{flex:none;block-size:32px;padding-inline:var(--sp-3);border:0;border-radius:999px;background:var(--c-ink);color:var(--c-surface);font:inherit;font-weight:600;cursor:pointer;transition:transform .16s cubic-bezier(.23,1,.32,1)}
.demo-bar__exit:active{transform:scale(.97)}
@media (max-width:1100px){.demo-bar__note{display:none}}
@media (max-width:767px){.demo-bar{inset-block-end:calc(136px + env(safe-area-inset-bottom));gap:var(--sp-2);font-size:var(--fs-12)}.demo-bar__as{display:none}.demo-bar__select{max-inline-size:150px}}
@media (prefers-reduced-motion:reduce){.demo-bar__exit{transition:none}}
@media print{.demo-bar{display:none}}

/* Liav 13.11.2026: on a phone the demo bar is a slim strip in the page (demo.js, #demo-slot) — it never covers content. */
.app__demo{flex:none;min-inline-size:0}
.app__demo:empty{display:none}
.demo-bar.demo-bar--docked{position:static;transform:none;inset:auto;max-inline-size:none;inline-size:100%;border-radius:0;border-width:0 0 1px;box-shadow:none;
  padding:4px var(--sp-3);gap:var(--sp-2);background:var(--c-surface)}
.demo-bar--docked .demo-bar__note,.demo-bar--docked .demo-bar__as{display:none}
.demo-bar--docked .demo-bar__pick{flex:1}
.demo-bar--docked .demo-bar__select{flex:1;max-inline-size:none;block-size:44px}
.demo-bar--docked .demo-bar__exit{block-size:44px}
/* In the viewer the top bar is hidden, so the docked demo strip is the first row: it keeps clear of the iPhone status bar. */
.app.is-viewer .app__demo .demo-bar--docked{padding-block-start:max(4px,env(safe-area-inset-top))}
