/* Stage C (2026-10-25): receipts, exports, guest links and QR, the sheets folder tree, contacts, RFI / submittals,
   markups, measurement, minutes, tasks overview, signatures and print orders. Built only from the approved tokens
   and components of koma.css (one blue, hairlines, radii 4/6/8/12, Heebo); logical properties only. */

/* ------------------------------------------------------------------ 1. receipts */
:where(.k) .rc-line{display:inline-flex;align-items:center;gap:var(--sp-1);flex-wrap:wrap;color:var(--c-text-2);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .rc-line .ic{color:var(--c-text-3)}
:where(.k) .rc-line .btn--link{padding-inline:var(--sp-1)}
:where(.k) .rc-sum{margin:0 0 var(--sp-3);font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .rc-table td{white-space:normal}
:where(.k) .rc-table tr.is-opened td:last-child{color:var(--c-ink)}
:where(.k) .rc-foot{flex-wrap:wrap}
:where(.k) .rc-page{box-sizing:border-box;inline-size:100%;max-inline-size:960px;margin-inline:auto;padding:var(--sp-6) var(--sp-5) var(--sp-10);overflow:auto;block-size:100%}
/* On a phone the list is one card per person: name, then each fact under its label. */
@media (max-width:759px){
  :where(.k) .rc-table thead{display:none}
  :where(.k) .rc-table,:where(.k) .rc-table tbody{display:block}
  :where(.k) .rc-table tr{display:grid;gap:2px;padding:var(--sp-3) var(--sp-4);border-block-end:1px solid var(--c-line)}
  :where(.k) .rc-table tr:last-child{border-block-end:0}
  :where(.k) .rc-table td{display:flex;gap:var(--sp-2);block-size:auto;padding:0!important;border:0;font-size:var(--fs-13)}
  :where(.k) .rc-table td[data-l]::before{content:attr(data-l);flex:0 0 112px;color:var(--c-text-3)}
  :where(.k) .rc-table td:empty{display:none}
  :where(.k) .rc-table td.table__title{display:block;font-size:var(--fs-14);margin-block-end:var(--sp-1)}
}
:where(.k) .rc-page--m{padding:var(--sp-4) var(--sp-4) var(--sp-8)}
:where(.k) .rc-page__tools{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin-block-end:var(--sp-5)}
:where(.k) .rc-page__head{border-block-end:1px solid var(--c-line);padding-block-end:var(--sp-4);margin-block-end:var(--sp-4)}
:where(.k) .rc-page__brand{display:inline-flex;align-items:center;gap:var(--sp-2);font-weight:600;color:var(--c-accent)}
:where(.k) .rc-page__mark{inline-size:24px;block-size:24px}
:where(.k) .rc-page__title{margin:var(--sp-3) 0 var(--sp-1);font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .rc-page__meta{margin:0;color:var(--c-text-2);font-size:var(--fs-13);line-height:var(--lh-13)}

@media print{
  .no-print{display:none!important}
  :where(.k) .rc-page{max-inline-size:none;padding:0;overflow:visible;block-size:auto}
  :where(.k) .rc-table td,:where(.k) .rc-table th{block-size:auto;padding-block:4px}
  .app.is-viewer,.is-viewer .app__main,.is-viewer #main{display:block!important;overflow:visible!important;block-size:auto!important}
}
:where(.k) .m-viewer .rc-line .btn{min-block-size:44px}

/* ------------------------------------------------------------------ 2. export to Excel */
:where(.k) .xp .menu{min-inline-size:180px}
:where(.k) .xp-m{display:flex;justify-content:center;margin:var(--sp-4) 0 var(--sp-2)}
:where(.k) .xp-m .btn{min-block-size:44px}

/* ------------------------------------------------------------------ 3. guest viewer (public), guest links, QR page */
body.guest-mode{background:var(--c-canvas)}
:where(.k).gv{display:flex;flex-direction:column;block-size:100vh;block-size:100dvh;background:var(--c-canvas);color:var(--c-ink)}
:where(.k) .gv__bar{display:flex;align-items:center;gap:var(--sp-3);min-block-size:56px;padding:var(--sp-2) var(--sp-5);background:var(--c-surface);border-block-end:1px solid var(--c-line)}
:where(.k) .gv__brand{display:inline-flex;align-items:center;gap:var(--sp-2);font-weight:600;color:var(--c-accent);flex:none}
:where(.k) .gv__mark{inline-size:28px;block-size:28px}
:where(.k) .gv__title{min-inline-size:0}
:where(.k) .gv__title h1{margin:0;font-size:var(--fs-16);line-height:var(--lh-16);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(.k) .gv__meta{margin:0;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-1);color:var(--c-text-2);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .gv__banners .banner{border-radius:0;border-inline:0}
:where(.k) .gv__body{flex:1;min-block-size:0;display:flex;flex-direction:column;position:relative}
:where(.k) .gv__canvas{flex:1}
:where(.k) .gv__tools{position:absolute;inset-block-end:var(--sp-4);inset-inline-start:50%;transform:translateX(-50%);display:flex;align-items:center;gap:var(--sp-1);padding:var(--sp-1);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg);box-shadow:0 1px 2px rgba(20,23,26,.06),0 4px 12px rgba(20,23,26,.08)}
[dir="rtl"] :where(.k) .gv__tools{transform:translateX(50%)}
:where(.k) .gv__tools:empty{display:none}
:where(.k) .gv__page{padding-inline:var(--sp-2);font-size:var(--fs-13);color:var(--c-text-2)}
:where(.k) .gv__foot{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--sp-1) var(--sp-4);padding:var(--sp-2) var(--sp-4);background:var(--c-surface);border-block-start:1px solid var(--c-line);color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .gv__foot span{display:inline-flex;align-items:center;gap:var(--sp-1)}
:where(.k) .gv__legal{display:inline-flex;flex-wrap:wrap;gap:0 var(--sp-3)}
:where(.k) .gv__legal .auth__link{color:var(--c-text-3);font-weight:400}
:where(.k) .gv__gone{flex:1;display:grid;place-items:center;padding:var(--sp-6)}
:where(.k).gv--m .gv__bar{padding:var(--sp-2) var(--sp-3);gap:var(--sp-2)}
:where(.k).gv--m .gv__word,:where(.k).gv--m .gv__bar .vr,:where(.k).gv--m .gv__bar .ed-badge{display:none}
:where(.k).gv--m .gv__bar .btn{min-block-size:44px;min-inline-size:44px}
:where(.k).gv--m .gv__tools .btn{min-block-size:44px;min-inline-size:44px}

:where(.k) .gl-body .vcap{margin-block:var(--sp-5) var(--sp-2)}
:where(.k) .gl-new{display:grid;gap:var(--sp-3);padding:var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-subtle)}
:where(.k) .gl-new .fgrid{grid-template-columns:minmax(0,1fr)}
:where(.k) .gl-list{list-style:none;margin:0;padding:0;border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-surface)}
:where(.k) .gl-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--sp-2) var(--sp-3);align-items:center;padding:var(--sp-3) var(--sp-4)}
:where(.k) .gl-row+.gl-row{border-block-start:1px solid var(--c-line)}
:where(.k) .gl-row.is-off{color:var(--c-text-3)}
:where(.k) .gl-row__main{display:grid;gap:2px;min-inline-size:0}
:where(.k) .gl-row__what{font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .gl-row__meta{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .gl-row__acts{display:flex;gap:var(--sp-1);flex-wrap:wrap;justify-content:flex-end}
:where(.k) .gl-qr{grid-column:1/-1;display:flex;gap:var(--sp-4);align-items:center;padding:var(--sp-3);border-radius:var(--r-md);background:var(--c-subtle)}
:where(.k) .gl-qr__code{inline-size:132px;block-size:132px;flex:none;border:1px solid var(--c-line);border-radius:var(--r-sm);background:#fff}
:where(.k) .gl-qr__side{display:grid;gap:var(--sp-2);min-inline-size:0}
:where(.k) .gl-qr__url{margin:0;font-size:var(--fs-12);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .gl-old{margin-block-start:var(--sp-4)}
@media (max-width:759px){
  :where(.k) .gl-row{grid-template-columns:minmax(0,1fr)}
  :where(.k) .gl-row__acts{justify-content:flex-start}
  :where(.k) .gl-row__acts .btn{min-block-size:44px}
  :where(.k) .gl-qr{flex-direction:column;align-items:flex-start}
}

:where(.k) .qrp{box-sizing:border-box;inline-size:100%;max-inline-size:720px;margin-inline:auto;padding:var(--sp-6) var(--sp-5) var(--sp-10);overflow:auto;block-size:100%}
:where(.k) .qrp__tools{display:flex;gap:var(--sp-2);align-items:center;margin-block-end:var(--sp-5)}
:where(.k) .qrp__card{display:grid;justify-items:center;gap:var(--sp-3);padding:var(--sp-8) var(--sp-6);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-xl);text-align:center}
:where(.k) .qrp__head{display:flex;justify-content:space-between;align-items:center;inline-size:100%}
:where(.k) .qrp__title{margin:0;font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .qrp__ed{margin:0;color:var(--c-text-2);font-size:var(--fs-14);line-height:var(--lh-14);max-inline-size:44ch}
:where(.k) .qrp__code{inline-size:min(320px,70vw);block-size:auto;aspect-ratio:1}
:where(.k) .qrp__scan{margin:0;font-weight:600}
:where(.k) .qrp__url{margin:0;font-size:var(--fs-12);color:var(--c-text-3);overflow-wrap:anywhere}
@media print{
  :where(.k) .qrp{max-inline-size:none;padding:0;overflow:visible;block-size:auto}
  :where(.k) .qrp__card{border:0;padding:0}
  :where(.k) .qrp__code{inline-size:70mm}
}

/* ------------------------------------------------------------------ 4. share by WhatsApp (a wa.me link; no WhatsApp colours: the one blue) */
:where(.k) .wa-preview{padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-subtle);font-size:var(--fs-14);line-height:var(--lh-14);overflow-wrap:anywhere}

/* ------------------------------------------------------------------ 5. sheets: folder tree, favourites, columns, selection */
:where(.k) .ws-split{flex:1;min-block-size:0;display:flex}
:where(.k) .ws-split>.page{flex:1;min-inline-size:0}
:where(.k) .ws-tree{flex:0 0 184px;overflow:auto;padding:var(--sp-1) var(--sp-3) var(--sp-6) 0;padding-inline-start:var(--sp-6);display:flex;flex-direction:column;gap:2px}
:where(.k) .ws-tree__head{margin:var(--sp-4) 0 var(--sp-1);padding-inline-start:var(--sp-2);font-size:var(--fs-12);line-height:var(--lh-12);font-weight:600;color:var(--c-text-3)}
:where(.k) .ws-tree__item{display:flex;align-items:center;gap:var(--sp-2);min-block-size:32px;padding:var(--sp-1) var(--sp-2);border:0;border-radius:var(--r-md);background:none;color:var(--c-text-2);font:inherit;font-size:var(--fs-13);text-align:start;cursor:pointer;transition:background var(--t-fast) var(--ease)}
:where(.k) .ws-tree__item:hover{background:var(--c-hover-app)}
:where(.k) .ws-tree__item:focus-visible{outline:2px solid var(--c-accent);outline-offset:-2px}
:where(.k) .ws-tree__item[aria-current="true"]{background:var(--c-accent-tint);color:var(--c-accent);font-weight:600}
:where(.k) .ws-tree__item .ic{color:var(--c-text-3)}
:where(.k) .ws-tree__item[aria-current="true"] .ic{color:var(--c-accent)}
:where(.k) .ws-tree__label{flex:1;min-inline-size:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(.k) .ws-tree__n{font-size:var(--fs-12);color:var(--c-text-3)}
:where(.k) .ws-cardwrap{position:relative;display:grid;min-inline-size:0}
:where(.k) .ws-cardwrap>.sheet-card{min-inline-size:0}
:where(.k) .ws-star{position:absolute;inset-block-start:var(--sp-2);inset-inline-start:var(--sp-2);z-index:2;display:grid;place-items:center;inline-size:28px;block-size:28px;padding:0;border:1px solid transparent;border-radius:var(--r-md);background:rgba(255,255,255,.88);color:var(--c-text-3);cursor:pointer;opacity:0;transition:opacity var(--t-fast) var(--ease)}
:where(.k) .ws-cardwrap:hover .ws-star,:where(.k) .ws-star:focus-visible,:where(.k) .ws-star.is-on,:where(.k) .m-grid .ws-star{opacity:1}
:where(.k) .ws-star:hover{border-color:var(--c-line);color:var(--c-ink)}
:where(.k) .ws-star:focus-visible{outline:2px solid var(--c-accent);outline-offset:1px}
:where(.k) .ws-star.is-on{color:var(--c-accent)}
:where(.k) .ws-star.is-on .ic{fill:currentColor}
:where(.k) .m-grid .ws-star{inline-size:40px;block-size:40px}
:where(.k) .ws-table .ws-star{position:static;opacity:1;background:none}
:where(.k) .ws-table .c-fav{inline-size:40px} :where(.k) .ws-table .c-pick{inline-size:40px}
/* Next to the folder tree the default columns fit a 1440 screen; more columns widen the table and the page scrolls sideways
   (the widths are mirrored in workspace.js COL_W). */
:where(.k) .ws-table .c-num{inline-size:150px} :where(.k) .ws-table .c-edition{inline-size:88px} :where(.k) .ws-table .c-state{inline-size:144px}
:where(.k) .ws-table .c-ball{inline-size:150px} :where(.k) .ws-table .c-comments{inline-size:72px} :where(.k) .ws-table .c-updated{inline-size:112px}
:where(.k) .ws-table .c-discipline,:where(.k) .ws-table .c-author,:where(.k) .ws-table .c-signed{inline-size:140px}
:where(.k) .ws-table .c-receipts{inline-size:112px} :where(.k) .ws-table .c-size{inline-size:88px}
:where(.k) .ws-pick{position:absolute;inset-block-start:var(--sp-2);inset-inline-end:var(--sp-2);z-index:2;display:grid;place-items:center;inline-size:32px;block-size:32px;border-radius:var(--r-md);background:rgba(255,255,255,.92);cursor:pointer}
:where(.k) .ws-table .ws-pick{position:static;background:none}
:where(.k) .ws-pick input{inline-size:18px;block-size:18px;accent-color:var(--c-accent);cursor:pointer}
:where(.k) .ws-cardwrap.is-picked>.sheet-card{border-color:var(--c-accent);box-shadow:0 0 0 1px var(--c-accent)}
:where(.k) .is-selecting .sheet-card{cursor:default}
:where(.k) .ws-selbar{position:relative;z-index:5;display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;padding:var(--sp-3) var(--sp-6);background:var(--c-surface);border-block-start:1px solid var(--c-line);box-shadow:0 -4px 12px rgba(20,23,26,.06)}
:where(.k) .ws-selbar[hidden]{display:none}
:where(.k) .ws-selbar__n{font-weight:600}
:where(.k) .ws-selbar .btn.is-disabled{opacity:.5;pointer-events:none}
:where(.k) .ws-mtools{display:flex;justify-content:flex-end;padding:var(--sp-2) var(--m-gutter,16px) 0}
:where(.k) .ws-mtools .btn{min-block-size:44px}
/* A column switch is not a .menu__item: picking one must not close the menu (kui.js closes menus on a .menu__item). */
:where(.k) .ws-col{display:flex;align-items:center;gap:var(--sp-2);min-block-size:32px;padding:0 var(--sp-3);border-radius:var(--r-sm);font-size:var(--fs-13);color:var(--c-ink);cursor:pointer;white-space:nowrap}
:where(.k) .ws-col:hover{background:var(--c-hover)}
:where(.k) .ws-col input{accent-color:var(--c-accent);inline-size:16px;block-size:16px}
/* The bar is the last child of the screen (a flex column): under the list on a desktop, above the bottom navigation on a phone. */
:where(.k) .ws-selbar{flex:none}
@media (max-width:759px){
  :where(.k) .ws-selbar{padding:var(--sp-3) var(--sp-4)}
  :where(.k) .ws-selbar .grow{display:none}
  :where(.k) .ws-selbar__n{flex:1 1 100%}
  :where(.k) .ws-selbar .btn{min-block-size:44px}
}

/* ------------------------------------------------------------------ 6. contacts */
:where(.k) .ct-search{padding-block:0 var(--sp-3)}
:where(.k) .ct-search .field{inline-size:100%;max-inline-size:420px}
:where(.k) .ct-mtools{display:grid;grid-template-columns:1fr 1fr;gap:var(--sp-2)}
:where(.k) .ct-mtools .btn--primary{grid-column:1/-1}
:where(.k) .ct-mtools .btn{min-block-size:44px}
:where(.k) .ct-reach small{display:block;color:var(--c-text-3)}
:where(.k) .ct-pick{margin-block-end:var(--sp-3);padding-block-end:var(--sp-3);border-block-end:1px solid var(--c-line)}
:where(.k) .ct-pick .form__label{display:inline-flex;align-items:center;gap:var(--sp-1)}

/* ------------------------------------------------------------------ 7 / 13. RFI and submittals */
:where(.k) .rfi-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:var(--sp-3);margin-block-end:var(--sp-4)}
:where(.k) .rfi-kpi{display:grid;gap:2px;justify-items:start;padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-surface);color:var(--c-text-2);font:inherit;font-size:var(--fs-13);text-align:start;cursor:pointer;transition:border-color var(--t-fast) var(--ease)}
:where(.k) .rfi-kpi b{font-size:var(--fs-20);line-height:var(--lh-20);color:var(--c-ink);font-weight:600}
:where(.k) .rfi-kpi:hover{border-color:var(--c-line-strong)}
:where(.k) .rfi-kpi.is-on{border-color:var(--c-accent);box-shadow:0 0 0 1px var(--c-accent)}
:where(.k) .rfi-kpi:focus-visible{outline:2px solid var(--c-accent);outline-offset:1px}
:where(.k) .rfi-kpi--late b{color:var(--c-accent)}      /* overdue = the one attention colour, never red (Liav 8.11) */
:where(.k) .rfi-filters{margin-block-end:var(--sp-3)}
:where(.k) .rfi-row{grid-template-columns:72px minmax(0,1fr) auto auto;grid-template-areas:"lead who a1 a2"}
:where(.k) .rfi-num{font-size:var(--fs-13);font-weight:600;color:var(--c-text-2)}
:where(.k) .rfi-row.is-mine .rfi-num{color:var(--c-accent)}
:where(.k) .rfi-row .a2{display:flex;gap:var(--sp-2);align-items:center;white-space:nowrap}
:where(.k) .rfi-urg{font-size:var(--fs-12);font-weight:600;color:var(--c-ink)}
:where(.k) .rfi-urg--urgent{color:var(--c-accent)}
:where(.k) .rfi-kind{flex:none}
:where(.k) .rfi-item__state{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap;margin:0 0 var(--sp-3)}
:where(.k) .rfi-item__q{padding:var(--sp-3) var(--sp-4);border-radius:var(--r-md);background:var(--c-subtle)}
:where(.k) .rfi-answer{margin-block-start:var(--sp-4);padding-inline-start:var(--sp-3);border-inline-start:2px solid var(--c-accent)}
:where(.k) .rfi-reply{margin-block-start:var(--sp-4);display:grid;gap:var(--sp-3)}
:where(.k) .rfi-edit{margin-block-start:var(--sp-4)}
:where(.k) .vrfi{inline-size:100%;text-align:start;border:0;background:none;font:inherit;cursor:pointer}
/* the RFI marker on a sheet: a square (comments are round), the one blue, grey once closed */
:where(.k) .pin--rfi{border-radius:4px;background:var(--c-surface);color:var(--c-accent);box-shadow:0 0 0 2px var(--c-accent),0 1px 3px rgba(20,23,26,.25)}
:where(.k) .pin--rfi-me{background:var(--c-accent);color:#fff;box-shadow:0 0 0 2px #fff,0 1px 3px rgba(20,23,26,.3)}
:where(.k) .pin--rfi-closed{color:#7A828D;box-shadow:0 0 0 2px #7A828D}
@media (max-width:759px){
  :where(.k) .rfi-row{grid-template-columns:64px minmax(0,1fr);grid-template-areas:"lead who" "lead a1" "lead a2"}
  :where(.k) .m-pg>.rfi-kpis,:where(.k) .m-pg>.rfi-filters,:where(.k) .m-pg>.xp-m{padding-inline:var(--m-gutter)}
  :where(.k) .m-pg>.rfi-kpis{margin-block-end:0}
  :where(.k) .rfi-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  :where(.k) .rfi-kpi{min-block-size:56px}
}

/* ------------------------------------------------------------------ 8. markups (drawing colours are the status tokens, on the drawing layer only) */
:where(.k) .vmk{position:absolute;inset:0;inline-size:100%;block-size:100%;pointer-events:none;overflow:visible}
:where(.k) .vmk.is-tool{pointer-events:all;cursor:crosshair;touch-action:none;z-index:4}      /* above the pins' layer while drawing */
:where(.k) .vmk.is-hidden,:where(.k) .is-compare .vmk,:where(.k) .is-compare .vmk-host{display:none}
:where(.k) .vmk__item.is-selected{filter:drop-shadow(0 0 3px var(--c-accent))}
:where(.k) .vmk.is-tool .vmk__item{cursor:pointer}
:where(.k) .vmk-host:empty{display:none}
:where(.k) .vmk-host{position:relative;z-index:6}
:where(.k) .vmk-bar{display:flex;align-items:center;gap:var(--sp-1);flex-wrap:wrap;padding:var(--sp-1) var(--sp-3);background:var(--c-surface);border-block-end:1px solid var(--c-line)}
:where(.k) .vmk-bar--m{position:absolute;inset-inline:var(--sp-2);inset-block-start:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-lg);box-shadow:0 4px 12px rgba(20,23,26,.12)}
:where(.k) .vmk-bar--m .btn{min-block-size:40px;min-inline-size:40px}
:where(.k) .vmk-tool[aria-pressed="true"]{background:var(--c-accent-tint);color:var(--c-accent)}
:where(.k) .vmk-swatch{inline-size:22px;block-size:22px;border-radius:50%;border:2px solid var(--c-surface);box-shadow:0 0 0 1px var(--c-line-strong);cursor:pointer;padding:0}
:where(.k) .vmk-swatch[aria-pressed="true"]{box-shadow:0 0 0 2px var(--c-ink)}
:where(.k) .vmk-swatch:focus-visible{outline:2px solid var(--c-accent);outline-offset:2px}
:where(.k) .vmk-swatch--red{background:var(--c-return)} :where(.k) .vmk-swatch--blue{background:var(--c-accent)} :where(.k) .vmk-swatch--green{background:var(--c-ok)}
:where(.k) .vmk-swatch--amber{background:var(--c-wait)} :where(.k) .vmk-swatch--ink{background:var(--c-ink)}
:where(.k) .vmk-bar--m .vmk-swatch{inline-size:28px;block-size:28px}
:where(.k) .vmk-note{font-size:var(--fs-12);padding-inline:var(--sp-2)}
:where(.k) .mk-attach{margin-block-start:var(--sp-2)}

/* ------------------------------------------------------------------ 9. meeting minutes */
:where(.k) .mt-row--guest .field{flex:1 1 150px;min-inline-size:0}
:where(.k) .mt-row.is-carried{background:var(--c-subtle);border-radius:var(--r-md)}
:where(.k) .mt-carried{white-space:nowrap}

/* ------------------------------------------------------------------ 10. tasks overview, tags, groups */
:where(.k) .tk-kpis{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))}
:where(.k) .tk-tag{margin-inline-start:var(--sp-1);font-size:var(--fs-12)}
:where(.k) .lrow--task.is-cancelled .lrow__name .clip{text-decoration:line-through;color:var(--c-text-3)}
:where(.k) .opts--4{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:759px){
  :where(.k) .m-pg>.tk-kpis,:where(.k) .m-pg>#tk-kpis{padding-inline:var(--m-gutter)}
  :where(.k) .tk-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  :where(.k) .opts--4{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ------------------------------------------------------------------ 11. signing an approval */
:where(.k) .sg-box{margin-block-start:var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-md);padding:var(--sp-2) var(--sp-3)}
:where(.k) .sg-box>summary{display:flex;align-items:center;gap:var(--sp-2);cursor:pointer;font-weight:500;color:var(--c-accent);min-block-size:32px}
:where(.k) .sg-box[open]>summary{margin-block-end:var(--sp-2)}
:where(.k) .sg-box .form{margin-block:var(--sp-2)}
:where(.k) .sg-pad{display:flex;align-items:flex-end;gap:var(--sp-2);flex-wrap:wrap}
:where(.k) .sg-pad .sg-canvas{flex:1 1 200px;min-inline-size:0}
:where(.k) .sg-canvas{inline-size:100%;max-inline-size:360px;aspect-ratio:480/150;border:1px dashed var(--c-line-strong);border-radius:var(--r-sm);background:#fff;touch-action:none;cursor:crosshair}
:where(.k) .sg-line{display:flex;align-items:center;gap:var(--sp-1);flex-wrap:wrap;color:var(--c-ok)}
:where(.k) .sg-line span{color:var(--c-text-2)}

/* ------------------------------------------------------------------ 12. calibrated measurement (the one blue) */
:where(.k) .vms{position:absolute;inset:0;inline-size:100%;block-size:100%;pointer-events:none;overflow:visible}
:where(.k) .vms.is-tool{pointer-events:all;cursor:crosshair;touch-action:none;z-index:4}
:where(.k) .vms.is-hidden,:where(.k) .is-compare .vms{display:none}
:where(.k) .vms .is-selected{filter:drop-shadow(0 0 3px var(--c-accent))}
:where(.k) .vms.is-tool .vms__item{cursor:pointer}

/* ------------------------------------------------------------------ 14. print orders */
:where(.k) .pr-shop{margin-block-end:var(--sp-4)}
:where(.k) .pr-row{grid-template-columns:64px minmax(0,1fr) auto auto;grid-template-areas:"lead who a1 acts"}
:where(.k) .pr-num{font-size:var(--fs-13);font-weight:600;color:var(--c-text-2)}
:where(.k) .pr-lines{display:flex;flex-direction:column;gap:2px;white-space:normal}
:where(.k) .pr-row .lrow__acts{grid-area:acts;display:flex;gap:var(--sp-2);flex-wrap:wrap;justify-content:flex-end}
:where(.k) .pr-pick{max-block-size:min(46vh,420px);overflow:auto;margin-block:var(--sp-3)}
:where(.k) .pr-table td{vertical-align:middle}
:where(.k) .pr-table input[type=checkbox]{inline-size:18px;block-size:18px;accent-color:var(--c-accent)}
:where(.k) .pr-size{min-inline-size:76px}
:where(.k) .pr-copies{inline-size:76px}
:where(.k) .pr-scale{inline-size:72px}
:where(.k) .pr-color{min-inline-size:104px}
/* Spec ט part 2: the edition sits beside the title (the separate column made the form scroll sideways). */
:where(.k) .pr-table th:nth-child(3),:where(.k) .pr-table td:nth-child(3){display:none}
:where(.k) .pr-table .table__title{white-space:normal;min-inline-size:180px}
:where(.k) .pr-warn{color:var(--c-warn-ink, var(--c-text));margin-block:var(--sp-2)}
:where(.k) [data-unapproved-chip]{margin-inline-start:var(--sp-2)}
:where(.k) [data-unapproved-chip][hidden]{display:none}
:where(.k) .pr-edsel{display:block;max-inline-size:200px;margin-block-start:4px}
:where(.k) .po__main{max-inline-size:760px;margin-inline:auto;padding:var(--sp-6) var(--sp-4) var(--sp-8);display:grid;gap:var(--sp-4)}
:where(.k) .po__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3)}
:where(.k) .po__steps{flex-wrap:wrap}
:where(.k) .po__foot{text-align:center}
:where(.k) .po__item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2) var(--sp-3);padding:var(--sp-3) var(--sp-4);border-block-end:1px solid var(--c-line)}
:where(.k) .po__item:last-child{border-block-end:0}
:where(.k) .po__item-text{display:flex;flex-direction:column;gap:2px;min-inline-size:0;flex:1 1 220px}
:where(.k) .po__item-name{font-weight:500;overflow-wrap:anywhere}
:where(.k).gv.po{block-size:auto;min-block-size:100dvh}
:where(.k) .pr-sum{font-size:var(--fs-13)}
:where(.k) .pr-ed{display:inline}
:where(.k) .pr-table thead th{position:sticky;inset-block-start:0;z-index:1;background:var(--c-surface)}
@media (max-width:759px){
  :where(.k) .pr-row{grid-template-columns:52px minmax(0,1fr) auto;grid-template-areas:"lead who a1" "acts acts acts"}
  :where(.k) .pr-row .lrow__acts{justify-content:flex-start}
  :where(.k) .pr-sum{display:none}
  /* Spec ט part 2: seven columns do not fit a phone; each sheet becomes a two-line card (name, then its print details). */
  :where(.k) .pr-table,:where(.k) .pr-table tbody{display:block;inline-size:100%;min-inline-size:0}
  :where(.k) .pr-table thead{display:none}
  :where(.k) .pr-table tr{display:grid;grid-template-columns:32px minmax(0,1fr) minmax(0,1fr);gap:6px var(--sp-2);padding:var(--sp-2) var(--sp-3);border-block-end:1px solid var(--c-line)}
  :where(.k) .pr-table td{display:block;padding:0;border:0;min-inline-size:0;block-size:auto;height:auto}
  :where(.k) .pr-table td:nth-child(1){grid-row:1;align-self:center}
  :where(.k) .pr-table td:nth-child(2){grid-row:1;grid-column:2 / -1}
  :where(.k) .pr-table td:nth-child(3){display:none}
  :where(.k) .pr-table td:nth-child(4){grid-row:2;grid-column:1 / span 2}
  :where(.k) .pr-table td:nth-child(6){grid-row:2;grid-column:3}
  :where(.k) .pr-table td:nth-child(5){grid-row:3;grid-column:1 / span 2}
  :where(.k) .pr-table td:nth-child(7){grid-row:3;grid-column:3}
  :where(.k) .pr-table tr:not(.is-picked) td[data-l]{display:none}      /* bug round 30.10 #37: only the chosen sheets' print fields */
  :where(.k) .pr-table td[data-l]::before{content:attr(data-l);display:block;font-size:var(--fs-12, 12px);color:var(--c-text-2);margin-block-end:2px}
  :where(.k) .pr-table .table__title{white-space:normal;overflow-wrap:anywhere}
  :where(.k) .pr-size,:where(.k) .pr-scale,:where(.k) .pr-color{min-inline-size:0;inline-size:100%}
  :where(.k) .pr-ed{display:inline}
  :where(.k) .pr-copies{inline-size:100%}
}

/* The language choice of the public viewer: four languages, so a compact select instead of the old toggle button. */
:where(.k) .gv__lang{display:inline-flex;align-items:center;gap:6px;color:var(--c-text-2);flex:none}
:where(.k) .gv__lang-sel{block-size:32px;max-inline-size:120px;padding-inline:8px;border:1px solid var(--c-line-strong);border-radius:var(--r-sm);background:var(--c-surface);color:var(--c-ink);font:inherit;font-size:var(--fs-13)}
/* Night QA 27.10 #11: sortable headers of the sheets table read as the header text, with a focus ring and the arrow. */
:where(.k) .ws-sort{display:inline-flex;align-items:center;gap:4px;padding:0;border:0;background:none;font:inherit;color:inherit;cursor:pointer;text-align:start}
:where(.k) .ws-sort:hover{color:var(--c-text)}
:where(.k) .ws-sort:focus-visible{outline:2px solid var(--c-focus, var(--c-accent));outline-offset:2px;border-radius:4px}
:where(.k) .ws-sort.is-on{color:var(--c-text)}

/* New versions (update.js): the apps' "update to continue" screen, and the site's "refresh" bar. */
:where(.k).k-update{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:var(--c-surface, #fff);overscroll-behavior:contain;
  padding:max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left))}
:where(.k) .k-update__box{max-inline-size:420px;text-align:center;display:grid;gap:var(--sp-3, 12px);justify-items:center}
:where(.k) .k-update__mark{inline-size:56px;block-size:56px;margin-block-end:var(--sp-2, 8px)}
:where(.k) .k-update__t{font-size:var(--fs-20, 20px);line-height:1.3;margin:0}
:where(.k) .k-update__p{margin:0;color:var(--c-text-2, #555)}
:where(.k) .k-update__a{min-block-size:48px;padding-inline:24px}
:where(.k).k-webup{position:fixed;inset-inline:16px;inset-block-end:16px;z-index:9000;display:flex;align-items:center;justify-content:space-between;gap:12px;
  max-inline-size:520px;margin-inline:auto;padding:10px 12px;border-radius:12px;background:var(--c-surface, #fff);box-shadow:0 6px 24px rgba(0,0,0,.16)}

/* ------------------------------------------------------------------ spec ט part 3: signing a sheet (signsheet.js) */
:where(.k) .ss__choices{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-block:var(--sp-3)}
:where(.k) .ss__choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;inline-size:132px;min-block-size:88px;padding:var(--sp-2);border:1px solid var(--c-line-strong);border-radius:var(--r-md, 8px);background:var(--c-surface);color:var(--c-ink);font:inherit;font-size:var(--fs-13);cursor:pointer;transition:border-color var(--t-fast) var(--ease),box-shadow var(--t-fast) var(--ease)}
:where(.k) .ss__choice img{max-inline-size:100%;max-block-size:48px;object-fit:contain}
:where(.k) .ss__choice.is-on{border-color:var(--c-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--c-accent) 25%,transparent)}
:where(.k) .ss__choice--new,:where(.k) .ss__choice--stamp{color:var(--c-text-2)}
:where(.k) .ss__new{display:grid;gap:var(--sp-3);padding:var(--sp-3);border:1px dashed var(--c-line-strong);border-radius:var(--r-md, 8px);margin-block-end:var(--sp-3)}
:where(.k) .ss__pad .sg-canvas{inline-size:100%;max-inline-size:none;block-size:auto;aspect-ratio:3/1;background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-sm);touch-action:none}
:where(.k) .ss__range{inline-size:100%;accent-color:var(--c-accent)}
:where(.k) .ss__stage{position:relative;max-inline-size:100%;border:1px solid var(--c-line);background:var(--c-canvas);overflow:hidden;direction:ltr}
:where(.k) .ss__page{display:block;inline-size:100%;block-size:auto}
:where(.k) .ss__mark{position:absolute;cursor:grab;touch-action:none;user-select:none;outline-offset:2px;filter:drop-shadow(0 0 1px rgba(10,61,143,.6))}
:where(.k) .ss__mark:active{cursor:grabbing}
:where(.k) .ss__mark:focus-visible{outline:2px solid var(--c-accent)}
:where(.k) .ss__legal{margin-block-start:var(--sp-3)}
:where(.k) .ss__list{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:4px}
:where(.k) .ss__list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2)}
:where(.k) .pf-sig img{max-inline-size:100%;max-block-size:100%;object-fit:contain}

/* ------------------------------------------------------------------ spec כ: urban renewal (renewal.js) */
:where(.k) .ur-tabs{display:flex;gap:var(--sp-2);flex-wrap:wrap;margin-block-end:var(--sp-4)}
:where(.k) .ur-tabs .chip.is-on{background:var(--c-accent);color:#fff;border-color:var(--c-accent)}
:where(.k) .ur-big{font-size:var(--fs-20, 20px);margin:0 0 var(--sp-2)}
:where(.k) .ur-bar{block-size:8px;border-radius:4px;background:var(--c-line);overflow:hidden;margin-block:6px}
:where(.k) .ur-bar>span{display:block;block-size:100%;inline-size:var(--p,0%);background:var(--c-ok);transition:inline-size var(--t-base) var(--ease)}
:where(.k) .ur-legend{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-block:0 var(--sp-3)}
:where(.k) .ur-floors{display:grid;gap:6px;padding:var(--sp-3) var(--sp-4)}
:where(.k) .ur-floor{display:grid;grid-template-columns:64px 1fr;align-items:center;gap:var(--sp-2)}
:where(.k) .ur-floor__units{display:flex;flex-wrap:wrap;gap:6px}
:where(.k) .ur-unit{display:flex;flex-direction:column;align-items:flex-start;gap:2px;inline-size:112px;min-block-size:48px;padding:6px 8px;border:1px solid var(--c-line-strong);border-radius:var(--r-sm);background:var(--c-surface);font:inherit;font-size:var(--fs-12, 12px);color:var(--c-ink);cursor:pointer;text-align:start}
:where(.k) .ur-unit .clip{max-inline-size:100%;color:var(--c-text-2)}
:where(.k) .ur-unit--signed{background:color-mix(in srgb,var(--c-ok) 18%,var(--c-surface));border-color:var(--c-ok)}
:where(.k) .ur-unit--partial{background:color-mix(in srgb,var(--c-warn, #C98A00) 16%,var(--c-surface))}
:where(.k) .ur-unit--refuser{background:color-mix(in srgb,var(--c-return, #C0392B) 16%,var(--c-surface));border-color:var(--c-return, #C0392B)}
:where(.k) .ur-unit--missing{border-style:dashed;color:var(--c-text-3)}
:where(.k) .ur-filters{margin-block-end:var(--sp-3);align-items:end}
@media (max-width:759px){:where(.k) .ur-unit{inline-size:calc(50% - 3px)} :where(.k) .ur-floor{grid-template-columns:1fr}}

/* ------------------------------------------------------------------ spec כ: assembly invitation letters (one page each, printed by the manager) */
:where(.k) .ur-letter{border:1px solid var(--c-line);border-radius:var(--r-lg);padding:var(--sp-6);margin-block:var(--sp-4);background:var(--c-surface);font-size:var(--fs-16);line-height:1.6}
:where(.k) .ur-letter p{margin-block:0 var(--sp-3)}
:where(.k) .ur-letter__to{color:var(--c-text-2)}
:where(.k) .ur-letter__title{font-size:var(--fs-20);margin-block:var(--sp-4) var(--sp-3)}
:where(.k) .ur-letter__h{font-weight:600;margin-block-end:var(--sp-1)}
@media print{
  :where(.k) .ur-letter{border:0;border-radius:0;padding:0;margin:0;break-after:page}
  :where(.k) .ur-letter:last-child{break-after:auto}
}
:where(.k) .ur-letter__agenda{white-space:pre-line}
:where(.k) .renewal .pre{white-space:pre-line}
:where(.k) .m-pg>.ur-tabs{padding-inline:var(--sp-4)}

/* ------------------------------------------------------------------ spec כ: the owners' portal (#/portal, portal.js) */
:where(.k) .pt{display:grid;gap:var(--sp-4)}
:where(.k) .pt__head{display:flex;align-items:center;gap:var(--sp-2)}
:where(.k) .pt__head .auth__title{margin:0}
:where(.k) .pt-proj{display:grid;gap:var(--sp-3)}
:where(.k) .pt-proj__t{font-size:var(--fs-20);line-height:var(--lh-20);margin:var(--sp-2) 0 0}
:where(.k) .pt-card{border:1px solid var(--c-line);border-radius:var(--r-lg);padding:var(--sp-4);background:var(--c-surface);display:grid;gap:var(--sp-2)}
:where(.k) .pt-card h3{margin:0;font-size:var(--fs-16)}
:where(.k) .pt-card p{margin:0}
:where(.k) .pt-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .pt-list>li{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2);flex-wrap:wrap;padding-block:var(--sp-1);border-block-end:1px solid var(--c-line)}
:where(.k) .pt-list>li:last-child{border-block-end:0}
:where(.k) .pt-list--stack>li{display:grid;justify-content:stretch;gap:2px}
:where(.k) .pt-list a{display:inline-flex;align-items:center;gap:var(--sp-1);overflow-wrap:anywhere}
:where(.k) .pt-pre{white-space:pre-line;overflow-wrap:anywhere}
:where(.k) .pt-answer{background:var(--c-subtle);border-radius:var(--r-md);padding:var(--sp-2) var(--sp-3)}
:where(.k) .ur-vopt{display:grid;grid-template-columns:1fr auto;gap:2px var(--sp-2)}
:where(.k) .ur-vopt .ur-bar{grid-column:1/-1;margin-block:2px 0}
:where(.k) .pt-vote{border:0;margin:0;padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .pt-vote legend{margin-block-end:var(--sp-2)}
:where(.k) .pt-list>li.ur-vopt{display:grid;grid-template-columns:1fr auto;align-items:center}
:where(.k) .pt-vote .check input[type=radio]{border-radius:50%}
:where(.k) .ur-hrow{display:flex;align-items:center;gap:var(--sp-2);padding-inline-start:var(--sp-4)}
:where(.k) .ur-hrow>.lrow{flex:1;min-inline-size:0}
:where(.k) .ur-bulk{margin-block:0 var(--sp-3);padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-subtle)}
:where(.k) .m-pg>.ur-filters,:where(.k) .m-pg>.ur-bulk{margin-inline:var(--sp-4)}

/* ------------------------------------------------------------------ spec ל 2א: tasks (priority tag, bulk bar, overview) */
:where(.k) .tk-pri{font-weight:600}
:where(.k) .tk-pri--urgent{color:var(--c-accent)}      /* "דחוף": attention in the one blue, not red (Liav 8.11) */
:where(.k) .tk-pickrow{display:flex;align-items:center;gap:var(--sp-2);padding-inline-start:var(--sp-4)}
:where(.k) .tk-pickrow>.lrow{flex:1;min-inline-size:0}
:where(.k) .tk-bulk{margin-block:var(--sp-2) var(--sp-3);padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-subtle)}
:where(.k) .tk-ov{margin-block:var(--sp-2)}
:where(.k) .tk-ov__grid{display:grid;gap:var(--sp-3);grid-template-columns:repeat(auto-fit,minmax(260px,1fr));margin-block-start:var(--sp-2)}
:where(.k) .tk-ov__table{inline-size:100%;border-collapse:collapse;font-size:var(--fs-14)}
:where(.k) .tk-ov__table th,:where(.k) .tk-ov__table td{padding:6px var(--sp-3);text-align:start;border-block-start:1px solid var(--c-line)}
:where(.k) .tk-ov__table thead th{color:var(--c-text-3);font-weight:500;font-size:var(--fs-12)}
:where(.k) .tk-subs{display:grid;gap:4px}
:where(.k) .m-pg>.tk-bulk{margin-inline:var(--sp-4)}

/* ------------------------------------------------------------------ finance (finance.js; Liav 28.10: PlanBox's own design) */
:where(.k) .fn-kpis{display:grid;gap:var(--sp-3);grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-block:0 var(--sp-4)}
:where(.k) .fn-kpi{display:grid;gap:4px;padding:var(--sp-3) var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-surface)}
:where(.k) .fn-kpi b,:where(.k) .fn-kpi .fn-amt{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .fn-kpi--main{border-color:var(--c-accent)}
:where(.k) .fn-amt{white-space:nowrap;font-variant-numeric:tabular-nums}
:where(.k) .fn-in{color:var(--c-ok)}
:where(.k) .fn-out{color:var(--c-danger)}
:where(.k) .fn-add{position:relative}
:where(.k) .fn-add__menu{position:absolute;inset-inline-end:0;inset-block-start:calc(100% + 4px);z-index:20;display:grid;min-inline-size:180px;padding:var(--sp-1);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-surface);box-shadow:0 8px 24px rgb(0 0 0 / .12)}
:where(.k) .fn-add__menu .btn{justify-content:flex-start}
:where(.k) .fn-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
:where(.k) .fn-tx{inline-size:100%;text-align:start;background:none;border:0;cursor:pointer}
:where(.k) .fn-chart{inline-size:100%;block-size:auto;max-block-size:220px;margin-block:var(--sp-3)}
:where(.k) .fn-zero{stroke:var(--c-line-strong);stroke-dasharray:4 4}
:where(.k) .fn-line{fill:none;stroke:var(--c-accent);stroke-width:2;vector-effect:non-scaling-stroke}
:where(.k) .fn-short{fill:var(--c-danger)}
:where(.k) .fn-bar-in{fill:var(--c-ok);background:var(--c-ok)}
:where(.k) .fn-bar-out{fill:var(--c-danger);background:var(--c-danger)}
:where(.k) .fn-axis{font-size:11px;fill:var(--c-text-3)}
:where(.k) .fn-dot{display:inline-block;inline-size:10px;block-size:10px;border-radius:50%;margin-inline:6px 4px;vertical-align:middle}
:where(.k) .fn-legend-line{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
:where(.k) .fn-donut{display:flex;gap:var(--sp-4);align-items:center;flex-wrap:wrap}
:where(.k) .fn-donut svg{inline-size:160px;block-size:160px;transform:rotate(-90deg)}
:where(.k) .fn-slice{fill:none;stroke-width:28}
:where(.k) .fn-legend{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:var(--fs-14)}
:where(.k) .fn-c0{stroke:#1F4FD8;background:#1F4FD8}
:where(.k) .fn-c1{stroke:#0E9F6E;background:#0E9F6E}
:where(.k) .fn-c2{stroke:#D97706;background:#D97706}
:where(.k) .fn-c3{stroke:#C2410C;background:#C2410C}
:where(.k) .fn-c4{stroke:#7C3AED;background:#7C3AED}
:where(.k) .fn-c5{stroke:#0891B2;background:#0891B2}
:where(.k) .fn-c6{stroke:#BE185D;background:#BE185D}
:where(.k) .fn-c7{stroke:#64748B;background:#64748B}
:where(.k) .fn-two{display:grid;gap:var(--sp-4);grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
:where(.k) .fn-table td,:where(.k) .fn-table th{white-space:nowrap}
:where(.k) .fn-row-short td{background:color-mix(in srgb,var(--c-danger) 8%,transparent)}
:where(.k) .fn-periods{margin-block:0 var(--sp-3)}
:where(.k) .fn-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;margin-block-start:var(--sp-3)}
:where(.k) .fn-cal__head{font-size:var(--fs-12);color:var(--c-text-3);text-align:center}
:where(.k) .fn-cal__cell{min-block-size:72px;border:1px solid var(--c-line);border-radius:var(--r-md);padding:4px;display:grid;align-content:start;gap:2px;background:var(--c-surface)}
:where(.k) .fn-cal__cell--pad{border:0;background:none}
:where(.k) .fn-cal__cell.has{border-color:var(--c-line-strong)}
:where(.k) .fn-cal__day{font-size:var(--fs-12);color:var(--c-text-3)}
:where(.k) .fn-cal__item{border:0;background:none;padding:0;font-size:11px;text-align:start;cursor:pointer;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:where(.k) .fn-cal__item.is-late{text-decoration:underline}
:where(.k) .m-pg>.fn-kpis,:where(.k) .m-pg>.fn-periods,:where(.k) .m-pg>.fn-two{margin-inline:var(--sp-4)}
/* a list row with an amount, a status and actions (finance.js, sales.js): the plain .lrow has no column template */
:where(.k) .fn-row{grid-template-columns:minmax(0,1fr) auto auto auto;grid-template-areas:"who a1 a2 acts"}
:where(.k) .fn-row>.lrow__who{grid-area:who;min-inline-size:0}
@media (max-width:640px){
  :where(.k) .fn-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who who" "a1 a2" "acts acts"}
  :where(.k) .fn-row .lrow__acts{justify-content:flex-start}
}

/* ------------------------------------------------------------------ the Gantt (gantt.js; spec ל 2ב) */
:where(.k) .gn-grid{display:grid;grid-template-columns:minmax(140px,240px) minmax(0,1fr);align-items:start}
:where(.k) .gn-names{list-style:none;margin:34px 0 0;padding:0}
:where(.k) .gn-names li{block-size:30px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding-inline:var(--sp-3);border-block-end:1px solid var(--c-line);font-size:var(--fs-14);overflow:hidden;white-space:nowrap}
:where(.k) .gn-names li a{overflow:hidden;text-overflow:ellipsis;color:inherit}
:where(.k) .gn-names li.is-crit a{color:var(--c-danger);font-weight:600}
:where(.k) .gn-wrap{overflow-x:auto;direction:ltr}
:where(.k) .gn{display:block}
:where(.k) .gn-bg{fill:var(--c-surface)}
:where(.k) .gn-off{fill:var(--c-subtle)}
:where(.k) .gn-tick{stroke:var(--c-line)}
:where(.k) .gn-label{font-size:10px;fill:var(--c-text-3)}
:where(.k) .gn-bar__bg{fill:color-mix(in srgb,var(--c-accent) 25%,var(--c-surface))}
:where(.k) .gn-bar__done{fill:var(--c-accent)}
:where(.k) .gn-bar.is-crit .gn-bar__bg{fill:color-mix(in srgb,var(--c-danger) 22%,var(--c-surface))}
:where(.k) .gn-bar.is-crit .gn-bar__done{fill:var(--c-danger)}
:where(.k) .gn-bar.is-done{opacity:.55}
:where(.k) [data-gn-drag]{cursor:grab}
:where(.k) .gn-bar.is-drag{cursor:grabbing;opacity:.8}
:where(.k) .gn-ms{fill:var(--c-ink)}
:where(.k) .gn-ms.is-crit{fill:var(--c-danger)}
:where(.k) .gn-base{fill:var(--c-text-3)}
:where(.k) .gn-dep{fill:none;stroke:var(--c-text-3);stroke-width:1}
:where(.k) .gn-dep__end{fill:var(--c-text-3)}
:where(.k) .gn-legend{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
:where(.k) .gn-key{display:inline-block;inline-size:14px;block-size:8px;border-radius:2px}
:where(.k) .gn-key--crit{background:var(--c-danger)}
:where(.k) .gn-key--base{background:var(--c-text-3);block-size:3px}
:where(.k) .gn-key--off{background:var(--c-subtle);border:1px solid var(--c-line)}
:where(.k) .gn-moves{max-block-size:300px;overflow:auto}
@media (max-width:640px){:where(.k) .gn-grid{grid-template-columns:110px minmax(0,1fr)}}
@media print{:where(.k) .gn-wrap{overflow:visible}}
/* the daily work log (worklog.js; spec ל 2ו) */
:where(.k) .fgrid>.wl-crew,:where(.k) .fgrid>.banner,:where(.k) .fgrid>.t3,:where(.k) [data-form="day"] .form:has(textarea){grid-column:1/-1}
:where(.k) .wl-crew{border:0;padding:0;margin:0;display:grid;gap:var(--sp-2);justify-items:start}
:where(.k) .wl-crew__list{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-2);inline-size:100%}
:where(.k) .wl-crew__row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 5.5rem auto;gap:var(--sp-2);align-items:center}
:where(.k) .wl-text{white-space:pre-wrap;margin:0}
@media (max-width:640px){
  :where(.k) .wl-crew__row{grid-template-columns:minmax(0,1fr) 5rem auto;grid-template-areas:"t t t" "c n x"}
  :where(.k) .wl-crew__row>:nth-child(1){grid-area:t}
  :where(.k) .wl-crew__row>:nth-child(2){grid-area:c}
  :where(.k) .wl-crew__row>:nth-child(3){grid-area:n}
  :where(.k) .wl-crew__row>:nth-child(4){grid-area:x}
}
/* a subcontractor's personal link (subs.js; spec ל 2ח) */
:where(.k).sb-pub{block-size:auto;min-block-size:100dvh}
:where(.k) .sb-pub__body{inline-size:100%;max-inline-size:760px;margin-inline:auto;padding:var(--sp-5) var(--sp-4);display:grid;gap:var(--sp-4)}
:where(.k) .sb-pub__title{margin:0;font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .sb-pub__body>.t3{margin:0}
:where(.k) .sb-task{padding:var(--sp-4) var(--sp-5);display:grid;gap:var(--sp-2);border-block-end:1px solid var(--c-line)}
:where(.k) .sb-task:last-child{border-block-end:0}
:where(.k) .sb-task__head{display:flex;justify-content:space-between;align-items:center;gap:var(--sp-3)}
:where(.k) .sb-task p{margin:0}
/* quality control (qc.js; spec ע 6א-6ב) */
:where(.k) .qc-map{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:var(--sp-2)}
:where(.k) .qc-apt{display:grid;gap:2px;padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);border-inline-start-width:4px}
:where(.k) .qc-apt__n{font-weight:700}
:where(.k) .qc-apt--ready{border-inline-start-color:var(--c-ok,#1F8A4C)}
:where(.k) .qc-apt--open{border-inline-start-color:var(--c-warn,#C47F00)}
:where(.k) .qc-apt--critical{border-inline-start-color:var(--c-error,#C2352B)}
:where(.k) .qc-apt--unchecked{border-inline-start-color:var(--c-line)}
:where(.k) .qc-legend{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block:var(--sp-3) 0}
:where(.k) .qc-key{display:inline-block;inline-size:14px;block-size:14px;border:1px solid var(--c-line);border-inline-start-width:4px;border-radius:3px}
:where(.k) .qc-items{list-style:none;margin:0;padding:0}
:where(.k) .qc-item{display:grid;gap:var(--sp-2);padding:var(--sp-4) var(--sp-5);border-block-end:1px solid var(--c-line)}
:where(.k) .qc-item:last-child{border-block-end:0}
:where(.k) .qc-item--defect{background:color-mix(in srgb,var(--c-error,#C2352B) 6%,transparent)}
:where(.k) .qc-item__btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}
:where(.k) .qc-item__btns .btn{min-block-size:48px;justify-content:center}
:where(.k) .qc-item p{margin:0}
:where(.k) .qc-defect{padding-block-start:var(--sp-2)}
/* a chosen result: the base .btn[aria-pressed] (pressed, light) would beat .btn--primary; this keeps it solid */
:where(.k) .qc-item__btns .btn[aria-pressed="true"]{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
:where(.k) .sb-task .btn[aria-pressed="true"]{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
/* requests for quotes (tenders.js; spec נ 4ד): the comparison table */
:where(.k) .bd-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
:where(.k) .bd-table{inline-size:100%;border-collapse:collapse;font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .bd-table th,:where(.k) .bd-table td{padding:var(--sp-2) var(--sp-3);border-block-end:1px solid var(--c-line);text-align:start;white-space:nowrap}
:where(.k) .bd-table thead th{color:var(--c-text-2);font-weight:600;background:var(--c-subtle)}
:where(.k) .bd-table .num{text-align:end}
:where(.k) .bd-table tbody th{font-weight:600;white-space:normal;min-inline-size:12rem}
:where(.k) .bd-table tfoot th,:where(.k) .bd-table tfoot td{font-weight:600}
:where(.k) .td-low{background:color-mix(in srgb,var(--c-ok,#1F8A4C) 12%,transparent);font-weight:700}
:where(.k) .td-over{box-shadow:inset 0 -3px 0 var(--c-warn,#C47F00)}
:where(.k) .td-missing{color:var(--c-error,#C2352B);font-weight:600}
:where(.k) .td-q{inline-size:5.5rem;min-block-size:36px;padding:var(--sp-1) var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-sm)}

/* the house committee (house.js; spec פ) */
:where(.k) .hs-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .hs-pre{white-space:pre-wrap;margin:var(--sp-1) 0}
:where(.k) .hs-chip{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .hs-chip::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .hs-chip--ok::before{background:var(--c-ok)}
:where(.k) .hs-chip--warn::before{background:var(--c-wait)}
:where(.k) .hs-chip--bad::before{background:var(--c-wait)}
:where(.k) .hs-chip--info::before{background:var(--c-old)}
:where(.k) .hs-unread{border-inline-start:3px solid var(--c-accent)}
:where(.k) .hs-overdue{border-inline-start:3px solid var(--c-error,#C2352B)}
:where(.k) .hs-soon{border-inline-start:3px solid var(--c-warn,#C47F00)}
:where(.k) .hs-inline{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block-start:var(--sp-2)}
:where(.k) .hs-inline .field{flex:1 1 9rem;min-inline-size:0}
:where(.k) .hs-counts{list-style:none;margin:var(--sp-2) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .hs-att{border:1px solid var(--c-line);border-radius:var(--r-sm);padding:var(--sp-2) var(--sp-3);display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .hs-check{display:inline-flex;align-items:center;gap:var(--sp-2);min-block-size:36px}
:where(.k) .hs-role{inline-size:auto;min-block-size:36px}

/* contracts and progress bills (contracts.js; spec נ 4ה-4ז) */
:where(.k) .cx-sums{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:var(--sp-3) var(--sp-4);margin:0}
:where(.k) .cx-sums div{min-inline-size:0}
:where(.k) .cx-sums dt{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .cx-sums dd{margin:var(--sp-1) 0 0;font-variant-numeric:tabular-nums}
:where(.k) .cx-st{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .cx-st::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .cx-st--approved::before,:where(.k) .cx-st--signed::before{background:var(--c-ok)}
:where(.k) .cx-st--returned::before,:where(.k) .cx-st--rejected::before{background:var(--c-wait)}
:where(.k) .cx-st--submitted::before,:where(.k) .cx-st--quantities::before,:where(.k) .cx-st--manager::before,:where(.k) .cx-st--pending::before{background:var(--c-wait)}
:where(.k) .cx-q{inline-size:6.5rem;min-block-size:36px;padding:var(--sp-1) var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-sm);text-align:end}
:where(.k) .cx-diff{color:var(--c-warn,#C47F00);font-weight:600}
:where(.k) .cx-calc .cx-pay th,:where(.k) .cx-calc .cx-pay td{border-block-start:2px solid var(--c-line-strong)}

/* the contractors' dashboard (contracts.js; spec נ 3.10) */
:where(.k) .cd-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:var(--sp-4)}
:where(.k) .cd-h{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600;color:var(--c-text-2);margin:0 0 var(--sp-2)}
:where(.k) .cd-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .cd-list li{display:grid;gap:2px;padding-inline-start:var(--sp-2);border-inline-start:3px solid var(--c-line)}
:where(.k) .cd-list .cd-warn{border-inline-start-color:var(--c-warn,#C47F00)}
:where(.k) .cd-list .cd-bad{border-inline-start-color:var(--c-error,#C2352B)}
/* the budget by chapters (budget.js; spec מ 3ב) */
:where(.k) .bd-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
:where(.k) .bd-table{inline-size:100%;border-collapse:collapse;font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .bd-table th,:where(.k) .bd-table td{padding:var(--sp-2) var(--sp-3);border-block-end:1px solid var(--c-line);text-align:start;white-space:nowrap}
:where(.k) .bd-table thead th{color:var(--c-text-2);font-weight:600;background:var(--c-subtle)}
:where(.k) .bd-table .num{text-align:end}
:where(.k) .bd-table tbody th{font-weight:600;white-space:normal;min-inline-size:10rem}
:where(.k) .bd-table tfoot th,:where(.k) .bd-table tfoot td{font-weight:700;border-block-end:0}
:where(.k) .bd-row{cursor:pointer}
:where(.k) .bd-row:hover,:where(.k) .bd-row:focus-visible{background:var(--c-subtle);outline:none}
:where(.k) .bd-row--warn{box-shadow:inset 3px 0 0 var(--c-warn,#C47F00)}
:where(.k) .bd-row--over{box-shadow:inset 3px 0 0 var(--c-error,#C2352B)}
[dir="rtl"] :where(.k) .bd-row--warn{box-shadow:inset -3px 0 0 var(--c-warn,#C47F00)}
[dir="rtl"] :where(.k) .bd-row--over{box-shadow:inset -3px 0 0 var(--c-error,#C2352B)}

/* the buyers' portal and change requests (buyers.js; spec ס 3.9-3.10) */
:where(.k) .bp-sums{display:grid;grid-template-columns:repeat(auto-fill,minmax(8rem,1fr));gap:var(--sp-2) var(--sp-4);margin:var(--sp-2) 0}
:where(.k) .bp-sums dt{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .bp-sums dd{margin:2px 0 0;font-variant-numeric:tabular-nums}
:where(.k) .bp-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .bp-chip{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .bp-chip::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .bp-chip--ok::before{background:var(--c-ok)}
:where(.k) .bp-chip--warn::before{background:var(--c-wait)}
:where(.k) .bp-chip--bad::before{background:var(--c-wait)}
:where(.k) .bp-chip--info::before{background:var(--c-old)}
:where(.k) .bp-docs,:where(.k) .bp-log{list-style:none;margin:var(--sp-2) 0;padding:0;display:grid;gap:var(--sp-1)}
:where(.k) .bp-after{display:grid;gap:var(--sp-3);margin-block-start:var(--sp-2)}
:where(.k) .bp-cat{margin-block-end:var(--sp-3)}

/* the house committee's facilities, documents and overview (housex.js; spec פ 3.11-3.13) */
:where(.k) .hx-nav{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-block-end:var(--sp-3)}
:where(.k) .hx-days{display:flex;gap:var(--sp-2);overflow-x:auto;-webkit-overflow-scrolling:touch;padding-block-end:var(--sp-2);margin-block-end:var(--sp-3)}
:where(.k) .hx-day{flex:0 0 auto;min-block-size:44px;display:inline-flex;align-items:center;padding:0 var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-sm);color:var(--c-text-2);text-decoration:none;font-size:var(--fs-13)}
:where(.k) .hx-day--on{border-color:var(--c-accent);background:var(--c-accent-tint);color:var(--c-accent);font-weight:600}
:where(.k) .hx-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(7.5rem,1fr));gap:var(--sp-2)}
:where(.k) .hx-slot{min-block-size:44px;display:inline-flex;align-items:center;justify-content:center;gap:var(--sp-1);border-radius:var(--r-sm);font-size:var(--fs-13);font-variant-numeric:tabular-nums;padding:0 var(--sp-2)}
:where(.k) .hx-slot--free{border:1px solid var(--c-line);background:var(--c-surface);color:var(--c-ink);cursor:pointer}
:where(.k) .hx-slot--free:disabled{opacity:.5;cursor:default}
:where(.k) .hx-slot--taken{background:var(--c-subtle);color:var(--c-text-3)}
:where(.k) .hx-slot--mine{background:var(--c-accent-tint);color:var(--c-accent);font-weight:600}
:where(.k) .hx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:var(--sp-3)}
:where(.k) .hx-tile{display:grid;gap:var(--sp-1);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}
:where(.k) .hx-kv{font-size:var(--fs-13);color:var(--c-text-2);padding-inline-start:var(--sp-2);border-inline-start:3px solid var(--c-line)}
:where(.k) .hx-kv--warn{border-inline-start-color:var(--c-warn,#C47F00)}
:where(.k) .hx-kv--bad{border-inline-start-color:var(--c-error,#C2352B)}

/* sales part 2 (pricing.js; spec ס 5ג-5ה) */
:where(.k) .pc-chip{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .pc-chip::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .pc-chip--ok::before{background:var(--c-ok)}
:where(.k) .pc-chip--warn::before{background:var(--c-wait)}
:where(.k) .pc-chip--bad::before{background:var(--c-wait)}
:where(.k) .pc-h{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600;color:var(--c-text-2);margin:0 0 var(--sp-2)}
:where(.k) .pc-changed td{font-weight:600}
:where(.k) .pc-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2)}
:where(.k) .pc-sel{inline-size:auto;min-inline-size:10rem}
:where(.k) .pc-idx{inline-size:5.5rem;min-block-size:36px;padding:var(--sp-1) var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-sm)}
:where(.k) .pc-sums{display:grid;grid-template-columns:repeat(auto-fill,minmax(9rem,1fr));gap:var(--sp-3) var(--sp-4);margin:0}
:where(.k) .pc-sums dt{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .pc-sums dd{margin:var(--sp-1) 0 0;font-variant-numeric:tabular-nums}

/* the house committee's money (housebook.js; spec פ 7ג-7ד) */
:where(.k) .hb-owe{color:var(--c-warn,#C47F00);font-weight:600}
:where(.k) .hb-neg{color:var(--c-error,#C2352B)}

/* price lists (pricelists.js; spec נ 3.11) and the three-stage handover (handover.js; spec ע 6ה) */
:where(.k) .pz-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .pz-list{border-inline-start:3px solid transparent}
:where(.k) .pz-high{border-inline-start-color:var(--c-warn,#C47F00)}
:where(.k) .pz-over{border-inline-start-color:var(--c-error,#C2352B)}
:where(.k) .pz-chip{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .pz-chip::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .pz-chip--ok::before{background:var(--c-ok)}
:where(.k) .pz-chip--high::before{background:var(--c-wait)}
:where(.k) .pz-chip--over::before{background:var(--c-wait)}
:where(.k) .pz-pick{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);grid-column:1/-1}
:where(.k) .pz-pick .field{flex:1 1 12rem;min-inline-size:0}
:where(.k) .h3-stages{border:0;margin:0;padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .h3-stage{display:flex;gap:var(--sp-2);align-items:flex-start;padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-sm);min-block-size:44px}
:where(.k) .h3-stage>span{display:grid;gap:2px}
:where(.k) .h3-docs{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .h3-check{display:inline-flex;align-items:center;gap:var(--sp-2);min-block-size:36px}
:where(.k) .h3-id{margin-block:var(--sp-4);display:grid;gap:var(--sp-2)}
:where(.k) .h3-id[hidden]{display:none}
:where(.k) .h3-row{display:flex;flex-wrap:wrap;gap:var(--sp-2);align-items:center}
:where(.k) .h3-row .field{flex:1 1 14rem;min-inline-size:0}
:where(.k) .h3-earlier{margin-block:var(--sp-2)}

/* the partner report (partners.js; spec מ 3.9) */
:where(.k) .pn-pre{white-space:pre-wrap}
:where(.k) .pn-st{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .pn-st::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .pn-st--done::before{background:var(--c-ok)}
:where(.k) .pn-pick{border:1px solid var(--c-line);border-radius:var(--r-sm);padding:var(--sp-2) var(--sp-3);display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .pn-check{display:inline-flex;align-items:center;gap:var(--sp-2);min-block-size:36px}

/* marketing mailings (mailings.js; spec ס 3.13) */
:where(.k) .ml-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .ml-st{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap}
:where(.k) .ml-st::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-old)}
:where(.k) .ml-st--sent::before{background:var(--c-ok)}
:where(.k) .ml-preview{margin-block-start:var(--sp-3);padding:var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-sm);display:grid;gap:var(--sp-2)}
:where(.k) .ml-rcpt{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-1);max-block-size:16rem;overflow:auto}
:where(.k) .ml-rcpt li{overflow-wrap:anywhere}
:where(.k) .ml-sample{padding:var(--sp-3);background:var(--c-subtle);border-radius:var(--r-sm)}
:where(.k) .ml-pre{white-space:pre-wrap;margin:var(--sp-1) 0}
:where(.k) .ml-fs{border:1px solid var(--c-line);border-radius:var(--r-sm);padding:var(--sp-2) var(--sp-3);display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .ml-check{display:inline-flex;align-items:center;gap:var(--sp-2);min-block-size:36px}
:where(.k) .ml-nums{font-variant-numeric:tabular-nums}

/* the quality dashboard (qdash.js; spec ע 3.11) */
:where(.k) .qd-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(8rem,1fr));gap:var(--sp-3)}
:where(.k) .qd-stat{display:grid;gap:2px;padding:var(--sp-2) var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-sm)}
:where(.k) .qd-stat__n{font-size:var(--fs-14);font-weight:700}
:where(.k) .qd-stat__l{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .qd-stat--bad .qd-stat__n{color:var(--c-error,#C2352B)}
:where(.k) .qd-score--ok{color:var(--c-ok,#1F8A4C)}
:where(.k) .qd-score--warn{color:var(--c-warn,#C47F00)}
:where(.k) .qd-score--bad{color:var(--c-error,#C2352B)}
:where(.k) .qd-list{margin:0 0 var(--sp-2);padding-inline-start:var(--sp-4);display:grid;gap:var(--sp-1)}
:where(.k) .cy-task{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .cy-task .field{flex:1 1 14rem;min-inline-size:0}
:where(.k) .gk-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block-start:var(--sp-1)}
:where(.k) .gk-row .field{flex:1 1 10rem;min-inline-size:0}

/* the committee's collection page and the buyers' meetings (houseops.js, bmeet.js) */
:where(.k) .hq-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2)}
:where(.k) .hq-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(7rem,1fr));gap:var(--sp-2) var(--sp-3)}
:where(.k) .hq-sel{min-inline-size:12rem;min-block-size:36px}
:where(.k) .hq-ok td:first-child{box-shadow:inset 3px 0 0 var(--c-ok,#1F8A4C)}
:where(.k) .hq-miss td:first-child{box-shadow:inset 3px 0 0 var(--c-warn,#C47F00)}
:where(.k) .bm-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2);margin-block-end:var(--sp-2)}
:where(.k) .bm-who{min-inline-size:0}

/* buyers' extras (buyerplus.js): the apartment plan in the portal, the files of a change request, commission payouts */
:where(.k) .bx-plan{min-block-size:16rem;border:1px solid var(--c-line);border-radius:var(--r-sm);overflow:hidden}
:where(.k) .bx-plan--dlg{min-block-size:24rem}
:where(.k) .bx-files{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3)}
:where(.k) .bx-files a{display:inline-flex;align-items:center;gap:var(--sp-1);min-block-size:36px}
:where(.k) .bx-inline{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block-start:var(--sp-2)}
:where(.k) .bx-inline .field{flex:1 1 9rem;min-inline-size:0}

/* the ownership-transfer screen (transfer.js) */
:where(.k) .tf-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));gap:var(--sp-3) var(--sp-4);margin:0}
:where(.k) .tf-facts dt{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .tf-facts dd{margin:var(--sp-1) 0 0}

/* folders and restricted folders (folders.js) */
:where(.k) .fo-row{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
:where(.k) .fo-check{display:flex;align-items:flex-start;gap:var(--sp-2);min-block-size:36px}
:where(.k) .fo-check>span{display:grid;gap:2px}
:where(.k) .fo-who{border:1px solid var(--c-line);border-radius:var(--r-sm);padding:var(--sp-2) var(--sp-3);display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);margin:0}
:where(.k) .fo-move-bar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block-end:var(--sp-3)}
:where(.k) .fo-move-bar .field{flex:1 1 12rem;min-inline-size:0}
:where(.k) .fo-sheet{padding:var(--sp-1) 0}

/* issue purposes and file requests (issuestamp.js, filereq.js) */
:where(.k) .ip-chip{position:relative;display:inline-block;vertical-align:bottom;font-size:var(--fs-12);line-height:var(--lh-12);padding:2px 0;padding-inline-start:14px;border-radius:0;background:none;color:var(--c-text-2);white-space:nowrap;font-weight:600}
:where(.k) .ip-chip::before{content:"";position:absolute;inset-inline-start:0;inset-block-start:50%;margin-block-start:-4px;inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-wait)}      /* Liav 8.11: a purpose is a status tag too: neutral words, a dot; "לביצוע" is the final one (green) */
:where(.k) .ip-chip--construction::before{background:var(--c-ok)}
:where(.k) .ip-line{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .ip-pick{border:0;margin:0;padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .ip-opt{display:flex;align-items:center;gap:var(--sp-2);min-block-size:40px}
:where(.k) .fr-filters{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-block-end:var(--sp-3)}
:where(.k) .fr-filters .chip{display:inline-flex;align-items:center;gap:var(--sp-1);min-block-size:36px;padding:0 var(--sp-3);border:1px solid var(--c-line);border-radius:999px;color:var(--c-text-2);text-decoration:none;font-size:var(--fs-13)}
:where(.k) .fr-filters .chip--on{border-color:var(--c-accent);color:var(--c-accent);background:var(--c-accent-tint)}
:where(.k) .fr-list{list-style:none;margin:0;padding:0}
:where(.k) .fr-row{padding:var(--sp-3) var(--sp-4);border-block-end:1px solid var(--c-line);display:grid;gap:var(--sp-1)}
:where(.k) .fr-row__main{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .fr-desc,:where(.k) .fr-note{white-space:pre-wrap;margin:0}
:where(.k) .fr-acts{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-block-start:var(--sp-1)}
:where(.k) .fr-hist{margin:var(--sp-1) 0 0;padding-inline-start:var(--sp-4);font-size:var(--fs-13);color:var(--c-text-2)}

/* field inspections with no internet (qcoffline.js; spec ע 6ב) */
:where(.k) .qo-bar{position:sticky;inset-block-start:0;z-index:3;display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding:var(--sp-2) var(--sp-3);margin-block-end:var(--sp-3);border-radius:var(--r-sm);font-size:var(--fs-13);line-height:var(--lh-13);border:1px solid var(--c-line);background:var(--c-surface)}
:where(.k) .qo-bar--off{background:var(--c-ink);border-color:var(--c-ink);color:#fff}
:where(.k) .qo-bar--off .t3{color:#D5D9DF}
:where(.k) .qo-bar--wait{border-color:var(--c-warn,#C47F00);background:color-mix(in srgb,var(--c-warn,#C47F00) 10%,var(--c-surface))}
:where(.k) .qo-bar--ok{border-color:color-mix(in srgb,var(--c-ok,#1F8A4C) 40%,var(--c-line))}
:where(.k) .qo-problems{list-style:none;margin:0 0 var(--sp-3);padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .qo-problems li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--sp-2)}
:where(.k) .qo-tag{background:color-mix(in srgb,var(--c-warn,#C47F00) 14%,transparent);color:var(--c-warn,#C47F00)}

/* the legal review's notes and states (legalfix.py, 31.10.2026) */
:where(.k) .lf-note{color:var(--c-text-3);font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .lf-sec{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);margin-block-start:var(--sp-2)}
:where(.k) .lf-warn{display:grid;gap:2px;margin-block-start:var(--sp-1);color:var(--c-warn,#C47F00);font-size:var(--fs-12);line-height:var(--lh-12);white-space:normal;text-align:start}
:where(.k) .lf-consent{align-items:flex-start}
:where(.k) .lf-privacy{margin-block:var(--sp-2)}

/* bug round 31.10 (b2fix): a deleted chat message, a cancelled task's box, the date field's own hint (item 38) */
:where(.k) .ch-msg__gone{font-style:italic;color:var(--c-text-3)}
:where(.k) .taskbox--cancelled{border-color:var(--c-line-strong);color:var(--c-text-3)}
:where(.k) .tk-del{margin-inline-end:auto}
/* Liav 3.11.2026: a date field always reads day/month/year, whatever the browser and the device language (kui.js data-dmy) */
:where(.k) .field[data-dmy]{position:relative}
:where(.k) .field[data-dmy] input[type=date]{color:transparent}
:where(.k) .field[data-dmy] input[type=date]::-webkit-datetime-edit{color:transparent}
:where(.k) .field[data-dmy]::after{content:attr(data-dmy);position:absolute;inset-inline-start:10px;inset-block-start:50%;transform:translateY(-50%);color:var(--c-ink);pointer-events:none;font-size:var(--fs-14);unicode-bidi:isolate;font-variant-numeric:tabular-nums}
:where(.k) .field[data-dmy][data-date-empty]::after{color:var(--c-text-3)}

/* QA 31.10 #14: the uploads tray sits under confirmations and dialogs (--z-pop 40) and above menus (--z-menu 30) */
.legacy .uploads{z-index:35}

/* ------------------------------------------------------------------ the platform console (ops.js, P1 #15, 31.10.2026) */
:where(.k) .ox-tabs{margin-block:var(--sp-3) var(--sp-4)}
:where(.k) .ox-pad{margin:0;padding:var(--sp-3) var(--sp-5)}
:where(.k) .ox-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who acts"}
:where(.k) .ox-row .lrow__acts{flex-wrap:wrap}
:where(.k) .ox-row .lrow__meta{overflow-wrap:anywhere}
:where(.k) .ox-tile{color:inherit;text-decoration:none}
:where(.k) a.ox-tile:hover{border-color:var(--c-accent-line);background:var(--c-hover)}
:where(.k) .ox-tile__top{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-2)}
:where(.k) .ox-tile__ic{display:inline-flex;color:var(--c-text-3)}
:where(.k) .ox-tile__ic--bad{color:var(--c-danger)}
:where(.k) .ox-tile__ic--warn{color:var(--c-wait)}
:where(.k) .ox-cols{display:grid;gap:var(--sp-4);grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start}
:where(.k) .ox-main,:where(.k) .ox-side{display:grid;gap:var(--sp-4);min-inline-size:0}
:where(.k) .ox-plain{list-style:none;margin:0;padding:0;display:grid;gap:var(--sp-1)}
:where(.k) .ox-split{display:flex;align-items:baseline;justify-content:space-between;gap:var(--sp-3)}
:where(.k) .ox-h4{margin:0;font-size:var(--fs-14);font-weight:600}
:where(.k) .ox-steps{margin:0;padding-inline-start:1.25em;display:grid;gap:var(--sp-2)}
:where(.k) .ox-secret{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--c-subtle);padding:2px 6px;border-radius:var(--r-sm);overflow-wrap:anywhere}
:where(.k) .ox-narrow{max-inline-size:560px}
:where(.k) .ox-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-3);margin-block-end:var(--sp-4)}
:where(.k) .ox-toolbar>.field{flex:1 1 240px}
:where(.k) .ox-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:var(--sp-3) var(--sp-4);margin:0}
:where(.k) .ox-facts--one{grid-template-columns:minmax(0,1fr)}
:where(.k) .ox-facts dt{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .ox-facts dd{margin:0;overflow-wrap:anywhere}
:where(.k) .ox-actions{padding:0 var(--sp-5) var(--sp-5)}
:where(.k) .ox-usage{display:grid;gap:4px}
:where(.k) .ox-usage progress{inline-size:100%;accent-color:var(--c-accent)}
:where(.k) .ox-stack{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-3)}
:where(.k) .ox-check{display:inline-flex;align-items:center;gap:var(--sp-2);min-block-size:32px}
:where(.k) .ox-checks{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4);min-inline-size:0}
:where(.k) .ox-checks>legend{inline-size:100%;padding:0;margin-block-end:var(--sp-1)}
:where(.k) .fgrid>.ox-checks,:where(.k) .fgrid>.ox-check,:where(.k) .fgrid>.ox-grid2,:where(.k) .fgrid>.ox-grid3,:where(.k) .fgrid>.factions,:where(.k) .fgrid>.ox-steps,:where(.k) .fgrid>p,:where(.k) .fgrid>.kd__foot,:where(.k) .fgrid>.sc__list{grid-column:1/-1}
:where(.k) .ox-grid2{display:grid;gap:var(--sp-4);grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.k) .ox-grid3{display:grid;gap:var(--sp-4);grid-template-columns:repeat(3,minmax(0,1fr))}
:where(.k) .fgrid.ox-grid4{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
:where(.k) .ox-plans{display:grid;gap:var(--sp-4);grid-template-columns:repeat(auto-fill,minmax(280px,1fr));margin-block:var(--sp-4)}
:where(.k) .ox-dim{opacity:.72}
:where(.k) .ox-thread{list-style:none;margin:0;padding:0}
:where(.k) .ox-thread>li{padding:var(--sp-3) var(--sp-5);border-block-end:1px solid var(--c-line)}
:where(.k) .ox-thread p{margin:var(--sp-1) 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
:where(.k) .ox-internal{background:color-mix(in srgb,var(--c-wait) 8%,var(--c-surface))}
:where(.k) .ox-staff{background:var(--c-accent-tint)}
:where(.k) .ox-ok{color:var(--c-ok)}
:where(.k) .ox-red{color:var(--c-danger)}
:where(.k) .ox-link{color:var(--c-accent);text-decoration:underline;text-underline-offset:2px}
:where(.k) .ox-sel{min-inline-size:140px}
@media (max-width:1000px){:where(.k) .ox-cols{grid-template-columns:minmax(0,1fr)}}
@media (max-width:720px){
  :where(.k) .ox-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:calc(-1 * var(--sp-4));padding-inline:var(--sp-4);padding-block-end:2px}
  :where(.k) .ox-tabs::-webkit-scrollbar{display:none}
  :where(.k) .ox-row{grid-template-columns:minmax(0,1fr);grid-template-areas:"who" "acts"}
  :where(.k) .ox-row .lrow__acts{justify-content:flex-start}
  :where(.k) .ox-grid2,:where(.k) .ox-grid3{grid-template-columns:minmax(0,1fr)}
  :where(.k) .ox-pad,:where(.k) .ox-thread>li,:where(.k) .ox-actions{padding-inline:var(--sp-4)}
}
/* #/design (design.js) */
:where(.k) .dz-palette{list-style:none;margin:0 0 var(--sp-4);padding:0;display:grid;gap:var(--sp-2);grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
:where(.k) .dz-palette li{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);font-size:var(--fs-13);min-inline-size:0}
:where(.k) .dz-palette i{flex:none;inline-size:28px;block-size:28px;border-radius:var(--r-sm);border:1px solid var(--c-line)}
:where(.k) .dz-palette code{color:var(--c-text-3);font-size:var(--fs-12)}

/* Tenant changes (tenantchanges.js, 3.11.2026): the tenant's read-only page scrolls inside the guest frame, with the page gutter;
   the request's facts wrap on a phone. Tokens only, no new visual language. */
:where(.k) .tc-guest{flex:1;min-block-size:0;overflow-y:auto;padding:var(--sp-4) var(--sp-4) var(--sp-8)}
:where(.k) .tc-guest .pg__in{margin-inline:auto}
:where(.k) .tc-guest .sc{margin-block-end:var(--sp-3)}
:where(.k) .tc-lines{inline-size:100%}
:where(.k) .tc-row__main{display:flex;flex-direction:column;gap:var(--sp-1);color:inherit;text-decoration:none}
:where(.k) .tc-row__head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .tc-dl{flex-wrap:wrap}
:where(.k) .tc-impact{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--sp-2)}

/* ───────── Pilot board lights + email typo hint (lights.js, typo.js; Liav 9.11.2026 "תן לי אור ירוק אם הוא הצליח, אור אדום אם לא") ─────────
   The same status dot as everywhere (8 px, words in --c-text-2). Red is allowed here because it is an error the operator has to act
   on: "המייל לא נמסר", "פג תוקף", "כתובת שגויה" (DESIGN.md 8.11: danger/error reds stay). Never colour alone: the words are always there. */
:where(.k) .status--bad::before{background:var(--c-danger)}
:where(.k) .sc__body.lt-sum{flex-direction:row;flex-wrap:wrap;gap:var(--sp-2) var(--sp-5);margin:0}
:where(.k) .lt-sum .status{font-size:var(--fs-14);font-weight:600;color:var(--c-ink)}
:where(.k) .lt-acts{align-items:center;gap:var(--sp-2) var(--sp-3)}
:where(.k) .lt-st{white-space:normal;max-inline-size:22rem}
:where(.k) .typo-hint{margin:6px 0 0}
:where(.k) .typo-hint__fix{min-block-size:32px}
@media (max-width:767px){
  :where(.k) .lt-st{max-inline-size:none;inline-size:100%}
  :where(.k) .typo-hint__fix{min-block-size:44px}
}
