/* ════════════════════════════════════════════════════════════════════════
   Koma — owner and team screens (stage F3): team, project settings, profile, activity, tasks, search, updates,
   and the dialog of the system. Built from koma.css tokens and components; this file adds only the page
   frames those screens share. Tokens only, logical properties only, scoped with :where(.k).

   CLASS INDEX
   ─ dialog   .kd  .kd--wide  .kd__head  .kd__title  .kd__sub  .kd__x  .kd__form  .kd__body  .kd__text  .kd__foot
   ─ page     .pg (scroller)  .pg__in  .pg__in--narrow  .pg__head  .pg__title  .pg__lead  .pg__tools
   ─ card     .sc  .sc__head  .sc__title  .sc__lead  .sc__body  .sc__list  .sc__foot  .sc__note  .sc__state
   ─ forms    .fgrid  .fgrid--3  .factions  .field--select  .opts  .opt  .opt__t  .opt__p  .copy  .kv
   ─ rows     .lrow (+ --member --invite --trash --job --audit --event --task --hit)  .lrow__who  .lrow__name
              .lrow__meta  .lrow__c  .lrow__foot  .lrow__acts
   ─ settings .set  .set__nav  .set__link
   ─ phone    .m-wrap  .m-sticky  .m-pg
   ════════════════════════════════════════════════════════════════════════ */

/* ───────── 1. dialog ───────── */
:where(.k) .kd{margin:auto;inline-size:480px;max-inline-size:calc(100vw - 32px);max-block-size:min(86vh,760px);border:0;border-radius:var(--r-xl);background:var(--c-surface);color:var(--c-ink);box-shadow:var(--e-2);overflow:hidden;font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .kd[open]{display:flex;flex-direction:column}
.kd::backdrop{background:rgba(20,23,26,.4)}
:where(.k) .kd--wide{inline-size:760px}
:where(.k) .kd__head{display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-5) var(--sp-6) var(--sp-2);flex:none}
:where(.k) .kd__titles{flex:1;min-inline-size:0}
:where(.k) .kd__title{font-size:var(--fs-16);line-height:var(--lh-16);font-weight:600;overflow-wrap:anywhere}
:where(.k) .kd__sub{margin-block-start:2px;font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .kd__x{margin-block-start:-4px;margin-inline-end:calc(var(--sp-2)*-1)}
:where(.k) .kd__form{display:flex;flex-direction:column;flex:1 1 auto;min-block-size:0}
:where(.k) .kd__body{display:flex;flex-direction:column;gap:var(--sp-4);flex:1 1 auto;min-block-size:0;overflow-y:auto;padding:var(--sp-2) var(--sp-6) var(--sp-5)}
:where(.k) .kd__body>*{flex:none}
:where(.k) .kd__text{color:var(--c-text-2);overflow-wrap:anywhere;text-wrap:pretty}
:where(.k) .kd__text b{font-weight:600;color:var(--c-ink)}
:where(.k) .kd__foot{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--sp-2);flex:none;padding:var(--sp-3) var(--sp-6);background:var(--c-subtle);border-block-start:1px solid var(--c-line)}
:where(.k) .kd__foot .k-end{margin-inline-start:0;margin-inline-end:auto}
:where(.k) .kd:not(.kd--wide) .opts--3:not(.opts--row){grid-template-columns:minmax(0,1fr)}
:where(.k) .opts--row .opt{align-items:center}
:where(.k) .opts--row .opt input{margin-block-start:0}
:where(.k) .kd .fgrid:has(>[data-other][hidden]){grid-template-columns:minmax(0,1fr)}
:where(.k) .kd .banner--inline{align-items:flex-start}
:where(.k) .kd .banner--inline>.ic{margin-block-start:2px}

/* ───────── 2. page frame and cards ───────── */
:where(.k) .pg{flex:1;min-block-size:0;overflow:auto}
:where(.k) .pg__in{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-6);max-inline-size:1080px}
:where(.k) .pg__in--narrow{max-inline-size:760px}
:where(.k) .pg__head{display:flex;align-items:flex-end;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .pg__title{font-size:var(--fs-16);line-height:var(--lh-16);font-weight:600}
:where(.k) .pg__lead{margin-block-start:2px;font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2);max-inline-size:72ch;text-wrap:pretty}
:where(.k) .pg__tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);margin-inline-start:auto}
/* Brief 3 A5 (RFI, print orders): the action sits on the line of the page title, and the lead keeps a readable width. */
:where(.k) .pg__head--top{align-items:flex-start}
:where(.k) .pg__head--top>.pg__text{flex:1 1 360px;min-inline-size:0;max-inline-size:640px}
:where(.k) .sc{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg);min-inline-size:0;container-type:inline-size;scroll-margin-block-start:var(--sp-4)}
:where(.k) .sc__head{display:flex;align-items:flex-start;gap:var(--sp-3);padding:var(--sp-4) var(--sp-5) 0}
:where(.k) .sc__head>div:first-child{flex:1;min-inline-size:0}
:where(.k) .sc__title{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);font-size:var(--fs-16);line-height:var(--lh-16);font-weight:600}
:where(.k) .sc__title .list__count{font-size:var(--fs-13);font-weight:500}
:where(.k) .sc__lead{margin-block-start:2px;font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2);max-inline-size:72ch;text-wrap:pretty}
:where(.k) .sc__lead b{font-weight:600;color:var(--c-ink)}
:where(.k) .sc__body{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-4) var(--sp-5) var(--sp-5)}
:where(.k) .sc__body>*{flex:none;min-inline-size:0}
:where(.k) .sc__body>.seg,:where(.k) .sc__body>.check{align-self:flex-start}
:where(.k) .sc__list{margin-block-start:var(--sp-4);border-block-start:1px solid var(--c-line)}
:where(.k) .sc__list>li+li,:where(.k) .sc__list>.lrow+.lrow{border-block-start:1px solid var(--c-line)}
:where(.k) .sc__list>li:last-child>.lrow,:where(.k) .sc__list>.lrow:last-child{border-end-start-radius:var(--r-lg);border-end-end-radius:var(--r-lg)}
:where(.k) .sc__sub{padding:var(--sp-4) var(--sp-5) 0;font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600}
:where(.k) .sc__sub+.sc__list{margin-block-start:var(--sp-2)}
:where(.k) .sc__foot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);padding:var(--sp-3) var(--sp-5);border-block-start:1px solid var(--c-line)}
:where(.k) .sc__note{display:flex;align-items:flex-start;gap:var(--sp-2);font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .sc__note>.ic{margin-block-start:2px}
:where(.k) .sc__state{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3)}
:where(.k) .sc__state>.grow{flex:1 1 240px}
:where(.k) .sc__state b{font-weight:600}
:where(.k) .sc .empty{padding-block:var(--sp-8)}
:where(.k) .sc .skel-rows{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-2) 0}
:where(.k) .sc--quiet{background:transparent}

/* ───────── 3. forms ───────── */
:where(.k) .fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-4)}
:where(.k) .fgrid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
:where(.k) .fgrid>.fgrid__all{grid-column:1/-1}
/* project stages (Liav 8.11.2026): "אחר" shows its name field right under the stage select; the stages not relevant to the project */
:where(.k) .stage-pick{display:flex;flex-direction:column;gap:var(--sp-4);min-inline-size:0}
:where(.k) [data-stage-other][hidden]{display:none}
:where(.k) .st-skip{grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr));gap:var(--sp-2) var(--sp-4)}
:where(.k) .st-skip>.form__help{grid-column:1/-1;margin:0 0 var(--sp-1)}
:where(.k) .st-skip>.check{align-items:flex-start;min-inline-size:0}
:where(.k) .st-skip>.check input{margin-block-start:1px}
:where(.k) .factions{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .field--select{position:relative;padding-inline-end:var(--sp-2)}
:where(.k) .field--select select{appearance:none;-webkit-appearance:none;cursor:pointer;text-overflow:ellipsis;block-size:100%}
:where(.k) .field--select .ic{color:var(--c-text-3);pointer-events:none}
:where(.k) .field input[type=number]{appearance:textfield;-moz-appearance:textfield}
:where(.k) .field input:disabled{color:var(--c-text-3)}
:where(.k) .form>.form__label+.field,:where(.k) .form>.form__label+.textarea{margin-block-start:2px}
:where(.k) .opts{display:grid;gap:var(--sp-2);border:0;min-inline-size:0}
:where(.k) .opts--3{grid-template-columns:repeat(3,minmax(0,1fr))}
:where(.k) .opts>legend{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:500;margin-block-end:6px;padding:0}
:where(.k) .opt{display:flex;align-items:flex-start;gap:var(--sp-2);min-inline-size:0;padding:10px var(--sp-3);border:1px solid var(--c-line-strong);border-radius:var(--r-md);background:var(--c-surface);cursor:pointer;transition:border-color var(--t-fast) var(--ease),background var(--t-fast) var(--ease)}
:where(.k) .opt:hover{border-color:#B4BBC4}
:where(.k) .opt:has(input:checked){border-color:var(--c-accent);background:var(--c-accent-tint);box-shadow:0 0 0 1px var(--c-accent)}
:where(.k) .opt:has(input:focus-visible){box-shadow:var(--focus)}
:where(.k) .opt input{appearance:none;-webkit-appearance:none;display:grid;place-items:center;inline-size:16px;block-size:16px;margin-block-start:2px;border:1px solid var(--c-line-strong);border-radius:50%;background:var(--c-surface);flex:none}
:where(.k) .opt input:focus-visible{box-shadow:none}
:where(.k) .opt input:checked{border-color:var(--c-accent)}
:where(.k) .opt input:checked::after{content:"";inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-accent)}
:where(.k) .opt>span{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
:where(.k) .opt__t{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600}
:where(.k) .opt__p{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .check--block{display:flex;align-items:flex-start;gap:var(--sp-3)}
:where(.k) .check--block input{margin-block-start:2px}
:where(.k) .check--block>span{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
:where(.k) .check--block b{font-weight:600}
:where(.k) .check--block small{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .check input:disabled{background:var(--c-subtle);border-color:var(--c-line);cursor:not-allowed}
:where(.k) .check input:focus-visible{box-shadow:var(--focus)}
:where(.k) .copy{display:flex;gap:var(--sp-2);min-inline-size:0}
:where(.k) .copy .field{flex:1 1 auto;min-inline-size:0}
:where(.k) .kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:var(--sp-3) var(--sp-4)}
:where(.k) .kv dt{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .kv dd{margin-block-start:2px;font-weight:500;overflow-wrap:anywhere}
:where(.k) .k-typed{font-weight:600;color:var(--c-ink);user-select:all}
:where(.k) .stepfield{display:inline-flex;align-items:center;gap:var(--sp-2)}
:where(.k) .stepfield .field{inline-size:88px}
:where(.k) .banner--inline .copy{margin-block-start:var(--sp-2)}
:where(.k) .banner--stack{align-items:flex-start}
:where(.k) .banner--stack>.ic{margin-block-start:2px}
:where(.k) .banner--stack>span{flex:1 1 auto}

/* ───────── 4. rows: one grid per list, restacked when the card is narrow ───────── */
:where(.k) .lrow{display:grid;align-items:center;column-gap:var(--sp-3);row-gap:2px;min-block-size:64px;padding:var(--sp-3) var(--sp-5);min-inline-size:0;color:var(--c-ink);background:var(--c-surface)}
:where(.k) a.lrow{cursor:pointer;transition:background var(--t-fast) var(--ease)}
:where(.k) a.lrow:hover{background:var(--c-hover)}
:where(.k) a.lrow:focus-visible{box-shadow:inset 0 0 0 2px var(--c-accent)}
:where(.k) .lrow>*{min-inline-size:0}
:where(.k) .lrow__lead{grid-area:lead;align-self:center}
:where(.k) .lrow__who{grid-area:who;display:flex;flex-direction:column;gap:2px}
:where(.k) .lrow__name{display:flex;align-items:center;gap:var(--sp-2);min-inline-size:0;font-weight:500}
:where(.k) .lrow__name>.clip{flex:0 1 auto}
:where(.k) .lrow__name>.t2{flex:none;white-space:nowrap;font-weight:500}
:where(.k) .lrow__name>.tag,:where(.k) .lrow__name>.mine{flex:none}
:where(.k) .lrow__meta{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .lrow__c{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .lrow__c small{display:block;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .lrow__acts{grid-area:acts;display:flex;align-items:center;justify-content:flex-end;gap:var(--sp-1)}
:where(.k) .lrow__foot{display:contents}
:where(.k) .lrow .a1{grid-area:a1} :where(.k) .lrow .a2{grid-area:a2} :where(.k) .lrow .a3{grid-area:a3} :where(.k) .lrow .a4{grid-area:a4}
:where(.k) .lrow.is-unread .lrow__name{font-weight:600}
:where(.k) .lrow.is-done .lrow__name{color:var(--c-text-2);font-weight:400}
:where(.k) .lrow .unread{flex:none}
:where(.k) .lrow--member{grid-template-columns:auto minmax(0,1.5fr) minmax(0,1fr) 112px 152px 32px;grid-template-areas:"lead who a1 a2 a3 acts"}
:where(.k) .lrow--invite{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) 104px 152px auto;grid-template-areas:"who a1 a2 a3 acts"}
:where(.k) .lrow--trash{grid-template-columns:auto minmax(0,1.5fr) minmax(0,1fr) 152px auto;grid-template-areas:"lead who a1 a2 acts"}
:where(.k) .lrow--job{grid-template-columns:minmax(0,1.4fr) 112px minmax(0,1fr) auto;grid-template-areas:"who a1 a2 acts"}
:where(.k) .lrow--audit{grid-template-columns:132px minmax(0,1fr) minmax(0,1.1fr) minmax(0,1.6fr);grid-template-areas:"a1 a2 who a3";min-block-size:48px;align-items:baseline}
:where(.k) .lrow--event{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a1";min-block-size:52px;padding-block:var(--sp-2)}
:where(.k) .lrow--task{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"lead who a1 a2";min-block-size:56px}
:where(.k) .lrow--hit{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a1";min-block-size:56px}
:where(.k) .lrow--oi{grid-template-columns:minmax(0,1.5fr) 132px 152px auto;grid-template-areas:"who a1 a2 acts"}
:where(.k) .lrow__msg{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--c-text-2)}
:where(.k) .lrow.lrow--req{grid-template-columns:auto auto minmax(0,1fr);grid-template-areas:"who who who" "a1 a2 acts";row-gap:var(--sp-2)}
:where(.k) .lrow--req .lrow__acts{flex-wrap:wrap}
:where(.k) .lrow--req .a2{flex-direction:row;gap:var(--sp-2)}
:where(.k) .lrow--dl{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who acts";min-block-size:56px}
:where(.k) .sc__body.oi-board{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding-block-end:0}
:where(.k) .oi-board .chip{flex:none;inline-size:auto}
:where(.k) .oi-stage{min-inline-size:132px}
:where(.k) .lrow--audit .lrow__name{font-weight:500}
:where(.k) .lrow--audit .a3{overflow-wrap:anywhere}
@container (max-width:899px){
  :where(.k) .lrow--trash{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who acts" "lead a1 acts" "lead a2 acts";align-items:start;row-gap:2px}
  :where(.k) .lrow--trash .a2 small{display:inline}
  :where(.k) .lrow--trash .a2 small::before{content:" · "}
}
@container (max-width:559px){
  :where(.k) .lrow--trash{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead who" "lead a1" "lead a2" "lead acts"}
}
@container (max-width:639px){
  :where(.k) .lrow{padding-inline:var(--sp-4);row-gap:var(--sp-1)}
  :where(.k) .lrow__foot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-1) var(--sp-3);grid-area:foot}
  :where(.k) .lrow--member{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who acts" "lead a1 acts" "lead foot foot";align-items:start}
  :where(.k) .lrow--member .lrow__lead{align-self:start}
  :where(.k) .lrow--invite{grid-template-columns:minmax(0,1fr);grid-template-areas:"who" "a1" "foot" "acts"}
  :where(.k) .lrow--invite .lrow__acts,:where(.k) .lrow--job .lrow__acts,:where(.k) .lrow--trash .lrow__acts,:where(.k) .lrow--oi .lrow__acts{justify-content:flex-start;margin-block-start:var(--sp-1)}
  /* 6.11: on a phone the invitation's buttons and the "resend from" note wrap instead of running past the card */
  :where(.k) .lrow--invite .lrow__acts{flex-wrap:wrap;row-gap:var(--sp-1)}
  :where(.k) .lrow--invite .lrow__acts [data-resend-when]{flex-basis:100%}
  :where(.k) .lrow--job{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who a1" "a2 a2" "acts acts"}
  :where(.k) .lrow--oi{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who a1" "a2 a2" "acts acts"}
  :where(.k) .lrow--audit{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who a1" "a2 a2" "a3 a3"}
  :where(.k) .lrow--task{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a2" "lead a1 a1"}
  :where(.k) .lrow--rf{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a1" "lead a2 a2"}
  :where(.k) .lrow--rf .lrow__c{align-items:flex-start}
}
:where(.k) .taskbox{display:grid;place-items:center;inline-size:20px;block-size:20px;border-radius:var(--r-sm);border:1.5px solid var(--c-line-strong);color:#fff;flex:none}
:where(.k) .taskbox .ic{inline-size:12px;block-size:12px;stroke-width:2}
:where(.k) .taskbox--done{background:var(--c-ok);border-color:var(--c-ok)}
:where(.k) .taskbox--progress{border-color:var(--c-accent)}
:where(.k) .k-day{padding:var(--sp-4) var(--sp-1) var(--sp-2);font-size:var(--fs-12);line-height:var(--lh-12);font-weight:600;color:var(--c-text-2)}
:where(.k) .k-day:first-child{padding-block-start:0}
:where(.k) .k-quiet{color:var(--c-text-3)}
:where(.k) details.k-more>summary{display:flex;align-items:center;gap:var(--sp-2);min-block-size:44px;padding-inline:var(--sp-5);font-size:var(--fs-13);font-weight:500;color:var(--c-text-2);cursor:pointer;list-style:none;border-block-start:1px solid var(--c-line)}
:where(.k) details.k-more>summary::-webkit-details-marker{display:none}
:where(.k) details.k-more>summary:hover{color:var(--c-ink)}
:where(.k) details.k-more[open]>summary .ic{transform:rotate(180deg)}
:where(.k) details.k-more>ul{border-block-start:1px solid var(--c-line)}
:where(.k) .board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4);align-items:start}
:where(.k) .board .lrow{padding-inline:var(--sp-4)}

/* ───────── 5. project settings: section list + cards ───────── */
:where(.k) .set{display:grid;grid-template-columns:200px minmax(0,760px);gap:var(--sp-6);padding:var(--sp-6);align-items:start}
:where(.k) .set__nav{position:sticky;inset-block-start:var(--sp-6);display:flex;flex-direction:column;gap:2px}
:where(.k) .set__link{display:flex;align-items:center;gap:var(--sp-2);min-block-size:var(--h-ctl);padding-inline:var(--sp-2);border-radius:var(--r-md);font-size:var(--fs-13);line-height:var(--lh-13);font-weight:500;color:var(--c-text-2);inline-size:100%}
:where(.k) .set__link:hover{background:var(--c-hover-app);color:var(--c-ink)}
:where(.k) .set__link .ic{color:var(--c-text-3)}
:where(.k) .set__link .badge{margin-inline-start:auto}
:where(.k) .set__cards{display:flex;flex-direction:column;gap:var(--sp-4);min-inline-size:0}
@media (max-width:1100px){
  :where(.k) .set{grid-template-columns:minmax(0,760px)}
  :where(.k) .set__nav{display:none}
}

/* ───────── 6. phone ───────── */
:where(.k) .m-wrap{position:relative;flex:1;min-block-size:0;display:flex;flex-direction:column}
:where(.k) .m-sticky{flex:none;display:flex;gap:var(--sp-2);padding:var(--sp-3) var(--m-gutter);background:var(--c-surface);border-block-start:1px solid var(--c-line);position:relative;z-index:3}
:where(.k) .m-sticky .btn{flex:1 1 0}
:where(.k) .m-pg{display:flex;flex-direction:column;gap:var(--sp-4);padding:var(--sp-4) 0 var(--sp-6)}
:where(.k) .m-pg>.pg__head{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc{border-inline:0;border-radius:0}
:where(.k) .m-pg .sc__head{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc__body{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc__sub{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc__foot{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc__title{font-size:var(--m-fs-18);line-height:var(--m-lh-18)}
:where(.k) .m-pg .sc__lead,:where(.k) .m-pg .pg__lead{font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .m-pg .lrow{padding-inline:var(--m-gutter);min-block-size:72px}
:where(.k) .m-pg .lrow__name{font-size:var(--fs-16);line-height:var(--lh-16)}
:where(.k) .m-pg .lrow__meta,:where(.k) .m-pg .lrow__c{font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .m-pg .sc__list>li:last-child>.lrow{border-radius:0}
:where(.k) .m-pg .k-day{padding-inline:var(--m-gutter)}
:where(.k) .m-pg .sc--quiet .sc__head,:where(.k) .m-pg .sc--quiet .sc__body{padding-inline:var(--m-gutter)}
@media (max-width:759px){
  :where(.k) .kd{margin:auto 0 0;inline-size:100%;max-inline-size:100%;max-block-size:92dvh;border-radius:0;border-start-start-radius:var(--m-r-sheet);border-start-end-radius:var(--m-r-sheet);box-shadow:var(--m-e-sheet)}
  :where(.k) .kd__head{padding:var(--sp-5) var(--m-gutter) var(--sp-2)}
  :where(.k) .kd__title{font-size:var(--fs-20);line-height:var(--lh-20)}
  :where(.k) .kd__sub,:where(.k) .kd__text{font-size:var(--m-fs-15);line-height:var(--m-lh-15)}
  :where(.k) .kd__x{inline-size:var(--m-tap-min);block-size:var(--m-tap-min);margin-block-start:-10px}
  :where(.k) .kd__body{padding:var(--sp-2) var(--m-gutter) var(--sp-4)}
  :where(.k) .kd__foot{flex-direction:column-reverse;flex-wrap:nowrap;padding:var(--sp-3) var(--m-gutter) calc(var(--sp-3) + var(--m-safe-b));background:var(--c-surface)}
  :where(.k) .kd__foot .btn{inline-size:100%;block-size:var(--m-tap-lg);border-radius:var(--r-lg);font-size:var(--fs-16)}
  :where(.k) .kd__foot .k-end{margin-inline-end:0}
  :where(.k) .kd .field,:where(.k) .m-pg .field,:where(.k) .m-sticky .btn{block-size:var(--m-tap)}
  :where(.k) .kd .field__input,:where(.k) .kd .textarea,:where(.k) .m-pg .field__input,:where(.k) .m-pg .textarea{font-size:var(--fs-16);line-height:var(--lh-16)}
  :where(.k) .kd .form__label,:where(.k) .m-pg .form__label{font-size:var(--fs-14);line-height:var(--lh-14)}
  :where(.k) .kd .form__help,:where(.k) .m-pg .form__help{font-size:var(--m-fs-13);line-height:var(--m-lh-13)}
  :where(.k) .m-sticky .btn{border-radius:var(--r-lg);font-size:var(--fs-16)}
  :where(.k) .fgrid,:where(.k) .fgrid--3,:where(.k) .opts--3{grid-template-columns:minmax(0,1fr)}
  :where(.k) .opt{min-block-size:var(--m-tap-lg);padding-block:var(--sp-3)}
  :where(.k) .opt__t{font-size:var(--m-fs-15);line-height:var(--m-lh-15)}
  :where(.k) .opt__p{font-size:var(--m-fs-13);line-height:var(--m-lh-13)}
  :where(.k) .m-pg .btn,:where(.k) .kd__body .btn{min-block-size:var(--m-tap-min);font-size:var(--m-fs-15)}
  :where(.k) .m-pg .btn--icon,:where(.k) .m-pg .more>.btn{inline-size:var(--m-tap-min);block-size:var(--m-tap-min)}
  :where(.k) .m-pg .menu__item{block-size:var(--m-tap-min);font-size:var(--m-fs-15)}
  :where(.k) .m-pg .check{min-block-size:var(--m-tap-min);font-size:var(--m-fs-15);line-height:var(--m-lh-15)}
  :where(.k) .m-pg .check--block small{font-size:var(--fs-14);line-height:var(--lh-14)}
  :where(.k) .m-pg .chip{block-size:40px;position:relative;font-size:var(--m-fs-15)}
  :where(.k) .m-pg .chip::after{content:"";position:absolute;inset-inline:0;inset-block:calc(var(--sp-1)*-1)}   /* 48px touch height, as .m-chip */
  :where(.k) .m-pg .seg__btn{block-size:var(--m-tap-min);font-size:var(--m-fs-15)}
  :where(.k) .m-pg .seg{inline-size:100%}
  :where(.k) .m-pg .seg__btn{flex:1 1 0;justify-content:center}
  :where(.k) .board{grid-template-columns:minmax(0,1fr)}
  :where(.k) .copy{flex-wrap:wrap}
  :where(.k) .copy .btn{flex:1 1 auto}
}

/* ───────── 7. small pieces ───────── */
:where(.k) .k-scrollx{overflow-x:auto}
:where(.k) .k-reason{display:block;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3);white-space:normal}
:where(.k) .k-stack{display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .k-stack:empty{display:none}
:where(.k) .k-fill{inline-size:100%}
:where(.k) .k-pre{white-space:pre-wrap}
:where(.k) .k-center{margin-block:auto}
:where(.k) .k-layers{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);border-radius:var(--r-lg);background:var(--c-subtle);font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .k-layers li{display:flex;align-items:flex-start;gap:var(--sp-2)}
:where(.k) .k-layers .ic{margin-block-start:2px;color:var(--c-text-3)}
:where(.k) .k-layers b{font-weight:600;color:var(--c-ink)}
:where(.k) .k-tools{row-gap:var(--sp-2)}
:where(.k) .k-search{flex:0 1 264px;min-inline-size:160px}
:where(.k) .k-list>li>.lrow{inline-size:100%}
:where(.k) button.lrow{text-align:start;cursor:pointer}
:where(.k) button.lrow:hover{background:var(--c-hover)}
:where(.k) .sc__list.k-flat{margin-block-start:0;border-block-start:0}
:where(.k) .sc__list.k-flat>li:first-child>.lrow{border-start-start-radius:var(--r-lg);border-start-end-radius:var(--r-lg)}
:where(.k) details.k-more--first>summary{border-block-start:0}
:where(.k) .k-log{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .k-log summary{cursor:pointer;font-weight:500;color:var(--c-ink)}
:where(.k) .k-log ul{display:flex;flex-direction:column;gap:var(--sp-1);margin-block-start:var(--sp-2)}
:where(.k) .k-log b{font-weight:600;color:var(--c-ink)}
:where(.k) .k-days{display:flex;flex-direction:column}
:where(.k) .sc__state>form.k-fill,:where(.k) form.sc__state{flex:1 1 auto}
:where(.k) form.sc__state>.form-error{flex:1 1 100%}
/* upload dialog */
:where(.k) .up-zone{cursor:pointer;padding:var(--sp-6)}
:where(.k) .up-zone>.ic{inline-size:20px;block-size:20px;color:var(--c-text-3)}
:where(.k) .up-zone:focus-within{border-color:var(--c-accent)}
:where(.k) .up-list{display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .up-file{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .up-file__head{display:flex;align-items:center;gap:var(--sp-3);min-inline-size:0}
:where(.k) .up-file__name{display:flex;flex-direction:column;flex:1 1 auto;min-inline-size:0;font-weight:500}
:where(.k) .up-file__name>*{align-self:flex-start;max-inline-size:100%}
:where(.k) .up-file__name small{font-weight:400;font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .up-file__ext{font-size:10px;font-weight:600;letter-spacing:.02em}
:where(.k) .up-notify{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--sp-2) var(--sp-4);margin:0;padding:var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-lg);min-inline-size:0}
:where(.k) .up-notify[hidden]{display:none}
/* Liav 9.11.2026: "תוכנית חדשה או גרסה חדשה של תוכנית קיימת?" at the top of each file — the segmented control and, for a new
   version, the project's sheets as a list to search and pick from. Existing components only (.seg, .check--block, .field). */
:where(.k) .up-kind{display:grid;gap:var(--sp-2);min-inline-size:0}
:where(.k) .up-kind__q{font-weight:600;color:var(--c-ink)}
:where(.k) .up-kind__seg{inline-size:100%}
:where(.k) .up-kind__seg .seg__btn{flex:1 1 0;min-inline-size:0;justify-content:center;text-align:center;white-space:normal;min-block-size:36px;block-size:auto;padding-block:var(--sp-1)}
:where(.k) .up-kind__found{display:flex;align-items:flex-start;gap:var(--sp-2);color:var(--c-text-2)}
:where(.k) .up-kind__found>.ic{flex:none;inline-size:16px;block-size:16px;margin-block-start:2px;color:var(--c-accent)}
:where(.k) .up-pick{display:flex;flex-direction:column;max-block-size:264px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .up-pick--error{border-color:var(--c-return)}
:where(.k) .up-pick__row{flex:none;min-block-size:44px;padding:var(--sp-2) var(--sp-3);cursor:pointer}
:where(.k) .up-pick__row+.up-pick__row{border-block-start:1px solid var(--c-line)}
:where(.k) .up-pick__row:has(input:checked){background:var(--c-accent-tint)}
:where(.k) .up-pick__row input{border-radius:50%}
:where(.k) .up-pick__none{padding:var(--sp-3)}
@media (max-width:759px){
  :where(.k) .up-kind__seg .seg__btn{min-block-size:var(--m-tap-min,44px);font-size:var(--m-fs-15)}
}
@media (pointer:coarse){:where(.k) .up-kind__seg .seg__btn{min-block-size:44px}}      /* a tablet is touch too */
/* C2/C4 (2026-10-26): "גלוי ל" — who sees a sheet: two choices, then the groups and people to pick. */
:where(.k) .aud{border:0;margin:0;padding:0;min-inline-size:0;display:grid;gap:var(--sp-2)}
:where(.k) .aud__row{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .aud__pick{display:grid;gap:var(--sp-3);padding:var(--sp-3);border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .aud__pick[hidden]{display:none}
:where(.k) .aud__set{border:0;margin:0;padding:0;min-inline-size:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-2) var(--sp-4)}
:where(.k) .aud__set>legend{padding:0;margin-block-end:var(--sp-2)}
:where(.k) .aud .check input[type=radio]{border-radius:50%}
:where(.k) .up-notify .check input:disabled,:where(.k) .up-notify .check input:disabled+span{opacity:.45;cursor:not-allowed}
@media (max-width:759px){
  :where(.k) .m-pg .k-tools{padding-inline:var(--m-gutter)}
  :where(.k) .m-pg .k-search{flex:1 1 100%}
  :where(.k) .m-pg>.factions,:where(.k) .m-pg>.k-days,:where(.k) .m-pg>#task-results>.empty{padding-inline:0}
  :where(.k) .m-pg>.factions{padding-inline:var(--m-gutter)}
  :where(.k) .m-pg .group{border-inline:0;border-radius:0}
  :where(.k) .m-pg .select{block-size:var(--m-tap-min);font-size:var(--m-fs-15)}
  :where(.k) .m-pg .factions{row-gap:var(--sp-3)}
}

/* Profile: documents and support links, and the account deletion (danger) section and dialog. */
:where(.k) .pf-legal{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin-inline:calc(var(--sp-3)*-1)}
/* the help centre's footer (support.js): the public documents as small links */
:where(.k) .sp-legal{display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-4)}
:where(.k) .sp-legal .auth__link{color:var(--c-text-2);font-weight:400}
:where(.k) .sc--danger{border-color:#E7B4AF}
:where(.k) .sc--danger .sc__title{color:var(--c-return-text)}
:where(.k) .pf-del{display:flex;flex-direction:column;gap:var(--sp-2)}
:where(.k) .pf-del__h{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600;color:var(--c-ink)}
:where(.k) .pf-del__list{display:flex;flex-direction:column;gap:2px;padding-inline-start:var(--sp-5);list-style:disc;color:var(--c-text-2)}
:where(.k) .pf-blockers{margin-block:0;border:1px solid var(--c-line);border-radius:var(--r-md);overflow:hidden}
:where(.k) .pf-blockers .lrow{padding-inline:var(--sp-4)}

/* ════════ Stage B (2026-10-25, Liav's decision 1): the screens moved from the legacy layer ════════
   chat  .ch  .ch__side  .ch__main  .ch-conv  .ch-msg  .ch-day  .ch__composer  .ch-doc  (D-11)
   other pages reuse .pg / .sc / .lrow / .table / .kd and add only what is below. */
:where(.k) .ch{display:grid;grid-template-columns:300px minmax(0,1fr);flex:1;min-block-size:0;margin:var(--sp-4) var(--sp-6) var(--sp-6);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg);overflow:hidden}
:where(.k) .ch__side{display:flex;flex-direction:column;min-block-size:0;border-inline-end:1px solid var(--c-line);background:var(--c-surface)}
:where(.k) .ch__search{padding:var(--sp-3);border-block-end:1px solid var(--c-line)}
:where(.k) .ch__search .field{inline-size:100%}
:where(.k) .ch__convs{flex:1;min-block-size:0;overflow-y:auto}
:where(.k) .ch__count{padding:var(--sp-3) var(--sp-4) var(--sp-1);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch-conv{display:flex;align-items:center;gap:var(--sp-3);min-block-size:60px;padding:var(--sp-2) var(--sp-4);border-block-end:1px solid var(--c-line);color:var(--c-ink);transition:background var(--t-fast) var(--ease)}
:where(.k) .ch-conv:hover{background:var(--c-hover)}
:where(.k) .ch-conv[aria-current="page"]{background:var(--c-accent-tint);box-shadow:inset 3px 0 0 var(--c-accent)}
[dir="rtl"] :where(.k) .ch-conv[aria-current="page"]{box-shadow:inset -3px 0 0 var(--c-accent)}
:where(.k) .ch-conv:focus-visible{box-shadow:inset 0 0 0 2px var(--c-accent)}
:where(.k) .ch-conv__txt{display:flex;flex-direction:column;gap:2px;flex:1 1 auto;min-inline-size:0}
:where(.k) .ch-conv__top{display:flex;align-items:baseline;gap:var(--sp-2);min-inline-size:0}
:where(.k) .ch-conv__top b{font-weight:500;flex:1 1 auto}
:where(.k) .ch-conv.is-unread .ch-conv__top b{font-weight:700}
:where(.k) .ch-conv__top small{flex:none;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch-conv__last{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-3)}
:where(.k) .ch-group{background:var(--c-accent-tint);color:var(--c-accent)}
:where(.k) .ch__main{display:flex;flex-direction:column;min-block-size:0;min-inline-size:0;background:var(--c-app)}
:where(.k) .ch__head{display:flex;align-items:center;gap:var(--sp-3);min-block-size:60px;padding:var(--sp-2) var(--sp-5);background:var(--c-surface);border-block-end:1px solid var(--c-line)}
:where(.k) .ch__who{display:flex;flex-direction:column;min-inline-size:0}
:where(.k) .ch__who b{font-weight:600}
:where(.k) .ch__who small{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch__privacy{display:flex;align-items:flex-start;gap:var(--sp-2);padding:var(--sp-2) var(--sp-5);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3);background:var(--c-surface);border-block-end:1px solid var(--c-line)}
:where(.k) .ch__privacy .ic{inline-size:14px;block-size:14px;flex:none}
:where(.k) .ch__log{flex:1;min-block-size:0;overflow-y:auto;display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-5)}
:where(.k) .ch__log>.empty{margin-block:auto}
:where(.k) .ch-day{display:flex;justify-content:center}
:where(.k) .ch-day span{padding:2px 10px;border-radius:999px;background:var(--c-surface);border:1px solid var(--c-line);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch-msg{display:flex;align-items:flex-end;gap:var(--sp-2);max-inline-size:min(620px,88%)}
:where(.k) .ch-msg--mine{align-self:flex-end;flex-direction:row-reverse}
:where(.k) .ch-msg__bubble{display:flex;flex-direction:column;gap:var(--sp-1);min-inline-size:0;padding:var(--sp-2) var(--sp-3);border-radius:var(--r-lg);background:var(--c-surface);border:1px solid var(--c-line)}
:where(.k) .ch-msg--mine .ch-msg__bubble{background:var(--c-accent-tint);border-color:var(--c-accent-line)}
:where(.k) .ch-msg.is-sending .ch-msg__bubble{opacity:.7}
:where(.k) .ch-msg.is-failed .ch-msg__bubble{border-color:var(--c-return)}
:where(.k) .ch-msg__who{font-size:var(--fs-12);line-height:var(--lh-12);font-weight:600;color:var(--c-text-2)}
:where(.k) .ch-msg__text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .ch-msg__text a{color:var(--c-accent);text-decoration:underline;text-underline-offset:2px}
:where(.k) .ch-msg__meta{display:flex;align-items:center;gap:var(--sp-1);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch-msg__meta .ic{inline-size:12px;block-size:12px;color:var(--c-return)}
:where(.k) .ch-msg__more{align-self:center;opacity:0;transition:opacity var(--t-fast) var(--ease)}
:where(.k) .ch-msg:hover .ch-msg__more,:where(.k) .ch-msg:focus-within .ch-msg__more,:where(.k) .ch-msg__more:has([aria-expanded="true"]){opacity:1}
@media (hover:none){ :where(.k) .ch-msg__more{opacity:1} }
:where(.k) .ch-msg__task{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-1) var(--sp-2);border-radius:var(--r-md);background:var(--c-subtle);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-ink);min-inline-size:0}
:where(.k) .ch-doc{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);color:var(--c-ink);min-inline-size:0}
:where(.k) .ch-doc:hover{border-color:var(--c-line-strong)}
:where(.k) .ch-doc__txt{display:flex;flex-direction:column;gap:2px;min-inline-size:0}
:where(.k) .ch-doc__txt b{font-weight:600}
:where(.k) .ch-doc__txt small{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch-doc__warn{display:flex;align-items:center;gap:4px;color:var(--c-text-2)!important}
:where(.k) .ch-doc__warn .ic{inline-size:12px;block-size:12px;color:var(--c-wait)}
:where(.k) .ch__composer{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);background:var(--c-surface);border-block-start:1px solid var(--c-line)}
:where(.k) .ch__row{display:flex;align-items:flex-end;gap:var(--sp-2)}
:where(.k) .ch__input{flex:1 1 auto;min-block-size:var(--h-ctl-lg);max-block-size:160px;resize:none}
:where(.k) .ch__hint{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .ch__chip{display:inline-flex;align-items:center;gap:var(--sp-2);max-inline-size:100%;padding:2px 4px 2px 10px;border-radius:999px;background:var(--c-subtle);border:1px solid var(--c-line);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .ch__readonly{display:flex;align-items:center;gap:var(--sp-2);padding:var(--sp-3) var(--sp-5);background:var(--c-surface);border-block-start:1px solid var(--c-line);font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .ch-pick{border:1px solid var(--c-line);border-radius:var(--r-md);max-block-size:50vh;overflow-y:auto}
@media (max-width:759px){
  :where(.k) .ch{grid-template-columns:minmax(0,1fr);margin:0;border:0;border-radius:0}
  :where(.k) .ch--list .ch__main,:where(.k) .ch--thread .ch__side{display:none}
  :where(.k) .ch__side{border:0}
  :where(.k) .ch-conv{min-block-size:var(--m-tap-lg,56px);padding-inline:var(--m-gutter)}
  :where(.k) .ch__search{padding-inline:var(--m-gutter)}
  :where(.k) .ch__search .field{block-size:var(--m-tap-min)}
  :where(.k) .ch__head{padding-inline:var(--sp-2) var(--m-gutter);min-block-size:56px}
  :where(.k) .ch__log{padding:var(--sp-4) var(--m-gutter)}
  :where(.k) .ch-msg{max-inline-size:94%}
  :where(.k) .ch__composer{padding:var(--sp-2) var(--sp-3) calc(var(--sp-2) + var(--m-safe-b,0px))}
  :where(.k) .ch__composer .btn--icon{inline-size:var(--m-tap-min);block-size:var(--m-tap-min)}
  :where(.k) .ch__input{font-size:var(--fs-16);min-block-size:var(--m-tap-min)}
  :where(.k) .ch-msg__more .btn{inline-size:var(--m-tap-min);block-size:var(--m-tap-min)}
}
/* meetings */
:where(.k) .mt-cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:var(--sp-4);align-items:start}
:where(.k) .mt-back a{display:inline-flex;align-items:center;gap:var(--sp-1);color:var(--c-accent);font-weight:500}
:where(.k) .mt-steps{display:flex;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .mt-steps li{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;border:1px solid var(--c-line);background:var(--c-surface);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .mt-steps li.is-on{color:var(--c-ink);border-color:var(--c-accent-line);background:var(--c-accent-tint)}
:where(.k) .mt-steps li.is-mid{color:var(--c-text-2)}
:where(.k) .mt-steps .ic{inline-size:12px;block-size:12px}
:where(.k) .mt-ok{color:var(--c-ok)}
:where(.k) .mt-edit{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--sp-4);align-items:start}
:where(.k) .mt-edit--src{grid-template-columns:minmax(0,360px) minmax(0,1fr)}
:where(.k) .mt-src{position:sticky;inset-block-start:0;max-block-size:calc(100vh - 220px);display:flex;flex-direction:column}
:where(.k) .mt-lines{flex:1;min-block-size:0;overflow-y:auto;margin-block-start:var(--sp-3);border-block-start:1px solid var(--c-line);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .mt-lines li{display:flex;gap:var(--sp-3);padding:6px var(--sp-5)}
:where(.k) .mt-lines li.is-hl{background:var(--c-accent-tint)}
:where(.k) .mt-ln{flex:none;inline-size:28px;color:var(--c-text-3);text-align:end}
:where(.k) .mt-rows{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-3) var(--sp-5) var(--sp-5)}
:where(.k) .mt-rows:empty{display:none}
:where(.k) .mt-row{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .mt-grow{flex:1 1 220px;min-inline-size:0}
:where(.k) .mt-row .field--select{flex:0 1 180px}
:where(.k) .mt-date{flex:0 0 150px}
:where(.k) .mt-foot{justify-content:flex-end}
:where(.k) .mt-people{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
:where(.k) .mt-people__bar{grid-column:1/-1;display:flex;margin-block-end:calc(-1 * var(--sp-1))}
/* Meeting reminders (meetremind.py, 8.11): the chosen ones as checkboxes, then amount + unit + add */
:where(.k) .mt-rem{display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .mt-rem__list{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .mt-rem__add{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
:where(.k) .mt-rem__n{flex:0 0 88px}
:where(.k) .mt-rem__u{flex:0 1 150px}
:where(.k) .mt-rem .form__help{margin:0}
:where(.k) .mt-rem-wrap{grid-column:1/-1;min-inline-size:0}
:where(.k) .mt-rem--off .mt-rem__list{opacity:.55}
:where(.k) .mt-rem__need{margin:0;color:var(--c-text-2);font-weight:500}
@media (max-width:767px),(pointer:coarse){
  :where(.k) .mt-people__all,:where(.k) .mt-people__bar .btn,:where(.k) .mt-rem__add .btn{min-block-size:44px}
}
:where(.k) .kd__text{white-space:pre-line}
@media (max-width:1100px){
  :where(.k) .mt-cols,:where(.k) .mt-edit--src{grid-template-columns:minmax(0,1fr)}
  :where(.k) .mt-src{position:static;max-block-size:320px}
}
@media (max-width:759px){
  :where(.k) .m-pg>.mt-steps,:where(.k) .m-pg>.mt-back,:where(.k) .m-pg>.banner,:where(.k) .m-pg>.mt-foot{margin-inline:var(--m-gutter)}
  :where(.k) .mt-rows{padding-inline:var(--m-gutter)}
  :where(.k) .mt-date,:where(.k) .mt-row .field--select{flex:1 1 140px}
}
/* market */
:where(.k) .mk-cats{gap:var(--sp-2)}
:where(.k) .mk-cats .chip[aria-pressed="true"]{background:var(--c-accent);border-color:var(--c-accent);color:#fff}
:where(.k) .mk-group{display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .mk-group__t{font-size:var(--fs-13);line-height:var(--lh-13);font-weight:600;color:var(--c-text-2)}
:where(.k) .mk-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--sp-4)}
:where(.k) .mk-card{display:flex;flex-direction:column;gap:var(--sp-3);padding:var(--sp-4) var(--sp-5);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg);min-inline-size:0}
:where(.k) .mk-card__head{display:flex;align-items:flex-start;gap:var(--sp-3)}
:where(.k) .mk-card__logo{display:grid;place-items:center;inline-size:40px;block-size:40px;flex:none;border-radius:var(--r-md);background:var(--c-subtle);color:var(--c-text-3);overflow:hidden}
:where(.k) .mk-card__logo img{inline-size:100%;block-size:100%;object-fit:cover}
:where(.k) .mk-card__titles{flex:1;min-inline-size:0}
:where(.k) .mk-card__name{font-size:var(--fs-14);line-height:var(--lh-14);font-weight:600;overflow-wrap:anywhere}
:where(.k) .mk-card__cat{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .mk-card__text{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .mk-card__area{display:flex;align-items:center;gap:6px;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .mk-card__area .ic{inline-size:12px;block-size:12px}
:where(.k) .mk-card__foot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);margin-block-start:auto}
:where(.k) .mk-card__why{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .mk-docs{grid-template-columns:minmax(0,1fr);max-block-size:240px;overflow-y:auto}
/* "שותף מומלץ" (schema 99, Liav 9.11.2026): the system .tag filled with the accent (#0A3D8F, white text 10.6:1); dark: koma-dark.css */
:where(.k) .tag--partner{background:var(--c-accent);color:#fff;font-weight:600}
:where(.k) .mk-card__head>.tag,:where(.k) .mk-card__head>.status{flex:none}
@media (max-width:759px){
  :where(.k) .m-pg>.mk-group,:where(.k) .m-pg>.banner{margin-inline:var(--m-gutter)}
  :where(.k) .mk-cats{flex-wrap:nowrap;overflow-x:auto;padding-block:var(--sp-1);scrollbar-width:none}
  :where(.k) .mk-card__foot .btn{min-block-size:var(--m-tap-min)}
  :where(.k) .mk-cats .chip{block-size:var(--m-tap-min);font-size:var(--m-fs-15)}
}
/* support */
:where(.k) .sp-search{flex:1 1 320px}
:where(.k) .sp-faq{display:flex;flex-direction:column;margin-block-start:var(--sp-3);border-block-start:1px solid var(--c-line)}
:where(.k) .sp-q{border-block-end:1px solid var(--c-line)}
:where(.k) .sp-q:last-child{border-block-end:0}
:where(.k) .sp-q>summary{display:flex;align-items:center;justify-content:space-between;gap:var(--sp-3);min-block-size:48px;padding:var(--sp-2) var(--sp-5);font-weight:500;cursor:pointer;list-style:none}
:where(.k) .sp-q>summary::-webkit-details-marker{display:none}
:where(.k) .sp-q>summary:hover{background:var(--c-hover)}
:where(.k) .sp-q>summary:focus-visible{box-shadow:inset 0 0 0 2px var(--c-accent)}
:where(.k) .sp-q[open]>summary .ic{transform:rotate(180deg)}
:where(.k) .sp-q>p{padding:0 var(--sp-5) var(--sp-4);font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .sp-thread{display:flex;flex-direction:column}
:where(.k) .sp-msg{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-4) var(--sp-5);border-block-end:1px solid var(--c-line)}
:where(.k) .sp-msg--staff{background:var(--c-accent-tint)}
:where(.k) .sp-msg__head{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .sp-msg__head b{font-weight:600}
@media (max-width:759px){ :where(.k) .m-pg>.mt-cols{gap:var(--sp-4)} :where(.k) .sp-q>summary,:where(.k) .sp-msg{padding-inline:var(--m-gutter)} }
/* import */
:where(.k) .im-map{margin-block-start:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-md)}
:where(.k) .im-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who a1";min-block-size:56px}
:where(.k) .im-row--file{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a1";cursor:pointer}
:where(.k) .im-row--file.is-disabled{cursor:default;color:var(--c-text-3)}
:where(.k) .im-row--report{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"who a1 acts"}
:where(.k) .im-row .field--select{inline-size:200px}
:where(.k) .im-row input[type=checkbox]{inline-size:18px;block-size:18px;accent-color:var(--c-accent)}
:where(.k) .im-file{padding-block:6px}
@media (max-width:759px){ :where(.k) .m-pg>.im-steps,:where(.k) .m-pg>.k-stack>.banner{margin-inline:var(--m-gutter)} :where(.k) .im-row .field--select{inline-size:150px} }
/* company, billing, onboarding, checkout */
:where(.k) .cs-head{display:flex;align-items:center;gap:var(--sp-4)}
:where(.k) .cs-head__t{min-inline-size:0}
:where(.k) .cs-head__t .pg__lead{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .cs-head__more{display:inline-flex;align-items:center;gap:var(--sp-2)}
:where(.k) .cs-logo{display:grid;place-items:center;inline-size:48px;block-size:48px;flex:none;border-radius:var(--r-lg);border:1px solid var(--c-line);background:var(--c-surface);color:var(--c-accent);overflow:hidden}
:where(.k) .cs-logo img{inline-size:100%;block-size:100%;object-fit:contain}
:where(.k) .cs-logo--lg{inline-size:72px;block-size:72px}
:where(.k) .cs-tabs{--tabs-bg:var(--c-app)}
:where(.k) .cs-usage{display:flex;flex-direction:column;gap:6px}
:where(.k) .cs-usage__row{display:flex;justify-content:space-between;gap:var(--sp-3);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .cs-bar{appearance:none;-webkit-appearance:none;inline-size:100%;block-size:6px;border:0;border-radius:3px;background:var(--c-pressed);overflow:hidden;accent-color:var(--c-accent)}
:where(.k) .cs-bar::-webkit-progress-bar{background:var(--c-pressed);border-radius:3px}
:where(.k) .cs-bar::-webkit-progress-value{background:var(--c-accent);border-radius:3px}
:where(.k) .cs-bar::-moz-progress-bar{background:var(--c-accent);border-radius:3px}
:where(.k) .cs-step .ob__mark{margin:0}
:where(.k) .cs-step.is-done .ob__mark{background:var(--c-accent);box-shadow:none;color:#fff}
:where(.k) .cs-step.is-done .lrow__name{color:var(--c-text-3)}
:where(.k) .cs-step,:where(.k) .cs-proj{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who acts"}
:where(.k) .cs-proj .lrow__acts{flex-wrap:wrap}
:where(.k) .cs-io{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who acts";min-block-size:48px}
:where(.k) .cs-person{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who acts"}
:where(.k) .cs-role{display:flex;align-items:center;gap:var(--sp-2)}
:where(.k) .cs-role .field{inline-size:176px}
:where(.k) .cs-logo-edit{display:flex;align-items:center;gap:var(--sp-4)}
:where(.k) .cs-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-4)}
/* "החברים שהזמנת" (referrals.py, 2026-11-09): up to four numbers in a row; the rules as a checked list above the link */
:where(.k) .rf-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
:where(.k) .rf-stat__v{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700;color:var(--c-ink)}
:where(.k) .lrow--rf{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-areas:"lead who a1 a2"}
:where(.k) .lrow--rf .lrow__c{display:flex;flex-direction:column;align-items:flex-end;gap:2px}
:where(.k) .rf-rules{list-style:none;margin:0 0 var(--sp-4);padding:0;display:grid;gap:var(--sp-2)}
:where(.k) .rf-rules li{display:flex;gap:var(--sp-2);align-items:flex-start;color:var(--c-text-2)}
:where(.k) .rf-rules .ic{flex:none;margin-block-start:3px;color:var(--c-ok)}
:where(.k) .rf-stats+.banner{margin-block-start:var(--sp-4)}
:where(.k) .cs-stat{display:flex;flex-direction:column;align-items:flex-start;gap:var(--sp-1);padding:var(--sp-4) var(--sp-5);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .cs-stat__l{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cs-stat__n{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .cs-price b{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .cs-mods{display:flex;flex-direction:column;gap:var(--sp-2)}
:where(.k) .cs-mods li{display:flex;align-items:flex-start;gap:var(--sp-2);color:var(--c-text-3)}
:where(.k) .cs-mods li.is-on{color:var(--c-ink)}
:where(.k) .cs-mods li .ic{margin-block-start:2px;flex:none}
:where(.k) .cs-mods li.is-on .ic{color:var(--c-ok)}
:where(.k) .cs-mods li>span{display:flex;flex-direction:column;min-inline-size:0}
:where(.k) .cs-mods b{font-weight:500}
:where(.k) .cs-mods small{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cs-plans{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--sp-3)}
:where(.k) .cs-plan{display:flex;flex-direction:column;gap:var(--sp-2);padding:var(--sp-4);border:1px solid var(--c-line);border-radius:var(--r-lg);background:var(--c-surface)}
:where(.k) .cs-plan.is-current{border-color:var(--c-accent);box-shadow:0 0 0 1px var(--c-accent)}
:where(.k) .cs-plan__name{font-size:var(--fs-14);line-height:var(--lh-14);font-weight:600}
:where(.k) .cs-plan__p{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cs-plan__price b{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .cs-plan__price small{display:block;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cs-plan__list{display:flex;flex-direction:column;gap:4px;font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .cs-plan__list li{display:flex;gap:6px}
:where(.k) .cs-plan__list .ic{inline-size:14px;block-size:14px;margin-block-start:3px;flex:none;color:var(--c-ok)}
:where(.k) .cs-plan .btn,:where(.k) .cs-plan__now{margin-block-start:auto;align-self:flex-start}
:where(.k) .cs-table td,:where(.k) .cs-table th{vertical-align:top}
:where(.k) .cs-sub{display:block;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cs-total td{font-weight:700;border-block-start:2px solid var(--c-line-strong)}
:where(.k) .cs-card{display:flex;align-items:center;gap:var(--sp-2);font-weight:500}
:where(.k) .cs-pick{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
:where(.k) .cs-pick--2{grid-template-columns:repeat(2,minmax(0,1fr))}
:where(.k) .cs-inv__head{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--sp-3)}
:where(.k) .ob2-steps li .num,:where(.k) .im-steps li .num{font-weight:600}
:where(.k) .mt-steps li.is-now{color:#fff;background:var(--c-accent);border-color:var(--c-accent);font-weight:600}
:where(.k) .co-result{text-align:center}
:where(.k) .co-result .sc__body{align-items:center}
:where(.k) .co-result__ic{display:grid;place-items:center;inline-size:44px;block-size:44px;border-radius:50%;background:var(--c-subtle);color:var(--c-text-2)}
:where(.k) .co-result--ok .co-result__ic{background:var(--c-accent-tint);color:var(--c-ok)}
:where(.k) .co-result--bad .co-result__ic{background:var(--c-return-tint);color:var(--c-return)}
:where(.k) .co-result .factions{justify-content:center}
@media (max-width:759px){
  :where(.k) .m-pg>.cs-head,:where(.k) .m-pg>.banner,:where(.k) .m-pg>#card-wait,:where(.k) .m-pg>.cs-stats,:where(.k) .m-pg>.ob2-steps{margin-inline:var(--m-gutter)}
  :where(.k) .m-pg>.cs-tabs{padding-inline:var(--sp-2);background:var(--c-surface)}
  :where(.k) .cs-stats{grid-template-columns:minmax(0,1fr)}
  :where(.k) .rf-stats{grid-template-columns:repeat(2,minmax(0,1fr))}      /* "החברים שהזמנת": four short numbers, two by two */
  :where(.k) .cs-proj{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead who" "acts acts"}
  :where(.k) .cs-proj .lrow__acts{justify-content:flex-start}
  :where(.k) .cs-person{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"lead who" "acts acts"}
  :where(.k) .cs-role .field{flex:1}
  :where(.k) .cs-pick--2{grid-template-columns:minmax(0,1fr)}
}
@media print{
  .app__side,.app__top,.app__banner,.app__bottom,.uploads,.no-print,#k-overlays{display:none!important}
  .app,.app__main,#main,.view,.pg{display:block!important;overflow:visible!important;block-size:auto!important}
  :where(.k) .pg__in{max-inline-size:none;padding:0}
  :where(.k) .invoice-sheet{border:0}
}
/* ───────── 8. apartments, tenants and contractors (בדק בית, milestone 1) ─────────
   .lrow--apt (phone list of apartments) .lrow--type .lrow--crew  .bk-table .bk-who .bk-plan-cell .bk-warn
   .bk-res* (tenants inside the apartment dialog)  .bk-home .bk-eyebrow .bk-plan (the tenant's plan box)
   Existing tokens and components only. */
:where(.k) .bk-tools{padding-block:var(--sp-3) 0}
/* a suggestion list (datalist) stays a plain field: the browser's own black arrow is not part of the system (Chrome needs !important here) */
.k .field__input[list]::-webkit-calendar-picker-indicator{display:none !important}
:where(.k) .bk-tools .k-tools{padding-inline:0}
:where(.k) .bk-table tbody tr[data-apt]{cursor:pointer}
:where(.k) .bk-table tbody tr[data-apt]:focus-visible td{box-shadow:inset 0 2px 0 var(--c-accent),inset 0 -2px 0 var(--c-accent)}
:where(.k) .bk-who{display:inline-flex;align-items:center;gap:var(--sp-2);max-inline-size:280px;min-inline-size:0}
:where(.k) .bk-who>.clip{min-inline-size:0}
:where(.k) .bk-who>.tag,:where(.k) .bk-who>.status{flex:none}
:where(.k) .bk-plan-cell{display:flex;flex-direction:column;max-inline-size:240px;min-inline-size:0}
:where(.k) .bk-plan-cell small{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .bk-plan-cell .status{margin-block-start:2px}
:where(.k) .lrow--apt{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"who a1 end";text-align:start;inline-size:100%}
:where(.k) .lrow--apt .lrow__name .t3{font-weight:400;font-size:var(--fs-13)}
:where(.k) .lrow--apt .lrow__end{grid-area:end;color:var(--c-text-3)}
:where(.k) .lrow--type{grid-template-columns:minmax(0,1fr) minmax(200px,1.3fr) minmax(0,1.4fr);grid-template-areas:"who a1 a2"}
:where(.k) .lrow--type .field{inline-size:100%}
:where(.k) .lrow--crew{grid-template-columns:minmax(0,1.5fr) 112px 132px auto;grid-template-areas:"who a1 a2 acts"}
@container (max-width:639px){
  :where(.k) .lrow--type{grid-template-columns:minmax(0,1fr);grid-template-areas:"who" "a1" "a2"}
  :where(.k) .lrow--crew{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who a2" "a1 a1" "acts acts"}
  :where(.k) .lrow--crew .lrow__acts{justify-content:flex-start;flex-wrap:wrap;margin-block-start:var(--sp-1)}
}
:where(.k) .bk-dlg{gap:var(--sp-5)}
:where(.k) .bk-fs{display:flex;flex-direction:column;gap:var(--sp-3);margin:0;padding:var(--sp-4) 0 0;border:0;border-block-start:1px solid var(--c-line);min-inline-size:0}
:where(.k) .bk-section{display:flex;flex-direction:column;gap:var(--sp-3);padding-block-start:var(--sp-4);border-block-start:1px solid var(--c-line)}
:where(.k) .bk-section>h3{display:flex;align-items:center;gap:var(--sp-2)}
:where(.k) .bk-res__list{border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .bk-res{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who st" "acts acts";align-items:center;gap:var(--sp-2) var(--sp-3);padding:var(--sp-3) var(--sp-4)}
:where(.k) .bk-res+.bk-res{border-block-start:1px solid var(--c-line)}
:where(.k) .bk-res__who{grid-area:who;display:flex;flex-direction:column;gap:2px;min-inline-size:0}
:where(.k) .bk-res__who b{font-weight:500}
:where(.k) .bk-res>.status{grid-area:st}
:where(.k) .bk-res__acts{grid-area:acts;display:flex;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .bk-addres>summary{list-style:none;align-self:flex-start;inline-size:max-content}
:where(.k) .bk-addres>summary::-webkit-details-marker{display:none}
:where(.k) .bk-addres[open]>summary{margin-block-end:var(--sp-3)}
/* the tenant's home */
:where(.k) .bk-eyebrow{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .bk-title{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700}
:where(.k) .bk-plan{display:flex;flex-direction:column;border:1px solid var(--c-line);border-radius:var(--r-lg);overflow:hidden;background:var(--c-canvas)}
:where(.k) .bk-plan .bk-plan__canvas{flex:none;block-size:min(62vh,600px)}      /* two classes: wins over the viewer's .vcanvas{flex:1} whatever the load order */
:where(.k) .bk-plan__tools{display:flex;align-items:center;gap:var(--sp-1);padding:var(--sp-1) var(--sp-2);background:var(--c-surface);border-block-start:1px solid var(--c-line)}
:where(.k) .bk-plan__tools[hidden]{display:none}
@media (max-width:759px){
  :where(.k) .bk-plan .bk-plan__canvas{block-size:58vh}
  :where(.k) .bk-plan__tools .btn{min-block-size:var(--m-tap-min)}
  :where(.k) .bk-plan__tools .btn--icon{inline-size:var(--m-tap-min)}
  :where(.k) .bk-home .sc__body>.bk-plan{margin-inline:calc(var(--m-gutter) * -1);border-inline:0;border-radius:0}
  :where(.k) .bk-res__acts .btn{min-block-size:var(--m-tap-min)}
}

/* ───────── 9. warranty defects, handover and the module switch (בדק בית, stage D milestones 2-4) ─────────
   .bk-switch (the two views of the Apartments tab)  .lrow--defect .lrow--ho  .df-table  .df-dlg .df-state .df-text .df-facts
   .df-photos .df-photo  .df-log  .df-shot (camera / file + preview)  .df-periods  .pin--df-* (pins of defects by state)
   .bk-plan--tall (the handover plan)  .ho-pad (a larger signature pad)  .sc__tools
   Existing tokens and components only: status dots for states, the accent for "waiting on you", hairlines, 44px phone targets. */
:where(.k) .bk-switch{margin-block:0 var(--sp-4);align-self:flex-start}
:where(.k) .sc__tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .lrow--defect{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"who a1 end";text-align:start;inline-size:100%}
:where(.k) .lrow--defect .lrow__name .num{flex:none;color:var(--c-text-3);font-weight:500}
:where(.k) .lrow--defect .lrow__end{grid-area:end;color:var(--c-text-3)}
:where(.k) div.lrow--defect{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"who acts"}
:where(.k) .lrow--defect .a1~.lrow__acts,:where(.k) div.lrow--defect>.a1{grid-area:acts}
:where(.k) .lrow--ho{grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"lead who a1"}
:where(.k) .df-table tbody tr[data-defect]{cursor:pointer}
:where(.k) .df-table tbody tr[data-defect]:hover td{background:var(--c-hover)}
:where(.k) .df-table tbody tr[data-defect]:focus-visible td{box-shadow:inset 0 2px 0 var(--c-accent),inset 0 -2px 0 var(--c-accent)}
:where(.k) .df-table__text{max-inline-size:340px}
:where(.k) .df-table__text .clip{display:block}
:where(.k) .df-dlg{gap:var(--sp-4)}
:where(.k) .df-state{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2) var(--sp-3);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .df-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:var(--fs-16);line-height:var(--lh-16)}
:where(.k) .df-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--sp-3) var(--sp-4);margin:0}
:where(.k) .df-facts dt{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .df-facts dd{margin:2px 0 0;overflow-wrap:anywhere}
:where(.k) .df-photos{display:flex;flex-wrap:wrap;gap:var(--sp-2);margin:0;padding:0;list-style:none}
:where(.k) .df-photos li{position:relative}
:where(.k) .df-photos .tag{position:absolute;inset-block-end:var(--sp-1);inset-inline-start:var(--sp-1)}
:where(.k) .df-photo{display:block;inline-size:96px;block-size:96px;border-radius:var(--r-md);overflow:hidden;border:1px solid var(--c-line);background:var(--c-subtle)}
:where(.k) .df-photo img{inline-size:100%;block-size:100%;object-fit:cover;display:block}
:where(.k) .df-photo:focus-visible{outline:2px solid var(--c-accent);outline-offset:2px}
:where(.k) .df-log{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .df-log li{display:grid;grid-template-columns:12px minmax(0,1fr);gap:var(--sp-2);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .df-log__dot{inline-size:8px;block-size:8px;border-radius:50%;background:var(--c-line-strong);margin-block-start:6px}
:where(.k) .df-log li:last-child .df-log__dot{background:var(--c-accent)}
:where(.k) .df-log__detail{margin:2px 0 0;color:var(--c-text-2);white-space:pre-wrap;overflow-wrap:anywhere}
:where(.k) .df-shot{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2)}
:where(.k) .df-shot__preview img{display:block;inline-size:72px;block-size:72px;object-fit:cover;border-radius:var(--r-md);border:1px solid var(--c-line)}
:where(.k) .df-addphoto{align-self:flex-start}
:where(.k) .df-periods td,:where(.k) .df-periods th{white-space:nowrap}
:where(.k) .df-pick{align-items:center}
:where(.k) .df-pick .btn{margin-inline-start:auto}
:where(.k) .df-foot{flex-wrap:wrap}
/* pins of defects: the dot of their state (the same meaning as the status dots), the number inside */
:where(.k) .pin--df{background:var(--c-surface);color:var(--c-ink);box-shadow:0 0 0 2px var(--c-ink),0 1px 3px rgba(20,23,26,.25)}
:where(.k) .pin--df-new,:where(.k) .pin--df-fixed{background:var(--c-accent);color:#fff;box-shadow:0 0 0 2px #fff,0 1px 3px rgba(20,23,26,.3)}
:where(.k) .pin--df-closed{color:var(--c-ok);box-shadow:0 0 0 2px var(--c-ok)}
:where(.k) .pin--df-rejected{color:#7A828D;box-shadow:0 0 0 2px #7A828D}
:where(.k) .pin--df.is-selected{box-shadow:0 0 0 2px #fff,0 0 0 5px var(--c-accent);z-index:2}
:where(.k) .bk-plan.bk-plan--tall .bk-plan__canvas{block-size:min(70vh,680px)}
:where(.k) .ho-pad .sg-canvas{max-inline-size:none;aspect-ratio:720/240}
:where(.k) .kd .bk-plan .bk-plan__canvas{block-size:min(42vh,380px)}      /* a pin to look at inside a dialog */
:where(.k) .df-log__detail[dir="auto"]{text-align:start}
:where(.k) .ho-done{display:flex;flex-direction:column;gap:var(--sp-3)}
@media (max-width:759px){
  :where(.k) .df-photo{inline-size:84px;block-size:84px}
  :where(.k) .df-shot .btn,:where(.k) .df-foot .btn,:where(.k) .lrow--defect .lrow__acts .btn{min-block-size:var(--m-tap-min)}
  :where(.k) .bk-switch{inline-size:100%}
  :where(.k) .bk-switch .seg__btn{flex:1;justify-content:center;min-block-size:var(--m-tap-min)}
  :where(.k) .handover .m-pg .bk-plan{margin-inline:calc(var(--m-gutter) * -1);border-inline:0;border-radius:0}
  :where(.k) .bk-plan.bk-plan--tall .bk-plan__canvas{block-size:62vh}
}

/* "{used} of {limit}" is a sentence: it follows the page direction (only the two numbers with their units are isolated left-to-right) */
:where(.k) .cs-of{font-variant-numeric:tabular-nums}

/* The project's groups (groups.js, Liav 6.11.2026): the tab "קבוצות", one group's members and the people picker.
   Existing tokens and components only (.lrow--hit rows, .sc cards, .check, .field). */
:where(.k) .gp-note{display:flex;align-items:center;gap:var(--sp-2);margin:0 0 var(--sp-4);color:var(--c-text-2);font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .gp-note .ic{flex:none;color:var(--c-text-3)}
:where(.k) .gp-ro{margin-block-start:var(--sp-1)}
:where(.k) .gp-crumb{margin:0 0 var(--sp-2);font-size:var(--fs-13)}
:where(.k) .gp-crumb a{display:inline-flex;align-items:center;gap:var(--sp-1);min-block-size:32px}
:where(.k) .gp-ic{display:grid;place-items:center;inline-size:32px;block-size:32px;border-radius:var(--r-md);background:var(--c-accent-tint);color:var(--c-accent)}
:where(.k) [data-groups] .a1 .ic{color:var(--c-text-3)}
:where(.k) .gp-search{margin-block-end:var(--sp-2)}
:where(.k) .gp-pick{list-style:none;margin:0;padding:0;border:1px solid var(--c-line);border-radius:var(--r-md);max-block-size:min(52vh,420px);overflow-y:auto;overscroll-behavior:contain}
:where(.k) .gp-pick>li+li{border-block-start:1px solid var(--c-line)}
:where(.k) .gp-pick>li[hidden]{display:none}
:where(.k) .gp-pick .check{display:flex;align-items:center;gap:var(--sp-3);min-block-size:48px;padding:var(--sp-2) var(--sp-3);inline-size:100%;min-inline-size:0}
:where(.k) .gp-pick .check:hover{background:var(--c-hover)}
:where(.k) .gp-pick .check>span{display:flex;flex-direction:column;min-inline-size:0}
:where(.k) .gp-pick .check small,:where(.k) .gp-pick__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(.k) .gp-none{margin-block-start:var(--sp-2)}
:where(.k) [data-members] .a1 .btn,:where(.k) [data-out] .a1 .btn{white-space:nowrap}
@container (max-width:639px){
  :where(.k) [data-members] .a1 .btn__label{display:none}
  :where(.k) [data-members] .a1 .btn{min-inline-size:44px;min-block-size:44px}
}

/* Group chats like WhatsApp (chat.js, groupchat.py, Liav 6.11.2026): replies, photos, files, voice notes, ✓ / ✓✓, the
   first unread line, the recorder. Existing tokens only. */
:where(.k) .ch-quote{display:flex;flex-direction:column;gap:0;min-inline-size:0;padding:var(--sp-1) var(--sp-2);border-inline-start:3px solid var(--c-accent);border-radius:var(--r-md);background:var(--c-subtle);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-2);text-align:start}
:where(.k) .ch-quote b{color:var(--c-accent);font-weight:600}
:where(.k) button.ch-quote{cursor:pointer;border-block:0;border-inline-end:0;font:inherit;inline-size:100%}
:where(.k) button.ch-quote:focus-visible{outline:2px solid var(--c-accent);outline-offset:1px}
:where(.k) .ch-replybar{display:flex;align-items:center;gap:var(--sp-2)}
:where(.k) .ch-replybar .ch-quote{flex:1}
:where(.k) .ch-img{display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:var(--r-md);overflow:hidden;max-inline-size:min(280px,100%)}
:where(.k) .ch-img img{display:block;inline-size:100%;max-block-size:320px;object-fit:cover;background:var(--c-subtle);min-block-size:80px}
:where(.k) .ch-img:focus-visible{outline:2px solid var(--c-accent);outline-offset:2px}
:where(.k) .ch-lightbox{display:grid;place-items:center}
:where(.k) .ch-lightbox img{max-inline-size:100%;max-block-size:70vh;object-fit:contain}
:where(.k) .ch-file{display:flex;align-items:center;gap:var(--sp-2);min-inline-size:0;max-inline-size:280px;padding:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);color:var(--c-ink);text-decoration:none}
:where(.k) .ch-file:hover{background:var(--c-hover)}
:where(.k) .ch-file__txt{display:flex;flex-direction:column;min-inline-size:0;flex:1}
:where(.k) .ch-file__txt small{font-size:var(--fs-12);color:var(--c-text-3)}
:where(.k) .ch-voice{display:flex;align-items:center;gap:var(--sp-2);min-inline-size:200px;max-inline-size:280px}
:where(.k) .ch-voice__btn{flex:none;display:grid;place-items:center;inline-size:36px;block-size:36px;border:0;border-radius:50%;background:var(--c-accent);color:#fff;cursor:pointer}
:where(.k) .ch-voice__btn:focus-visible{outline:2px solid var(--c-accent);outline-offset:2px}
:where(.k) .ch-voice__bar{flex:1;block-size:4px;border-radius:2px;background:var(--c-line);overflow:hidden}
:where(.k) .ch-voice__fill{display:block;block-size:100%;inline-size:0;background:var(--c-accent);transition:inline-size .2s linear}
:where(.k) .ch-voice.is-played .ch-voice__btn{background:var(--c-text-2)}
:where(.k) .ch-voice__t{font-size:var(--fs-12);color:var(--c-text-3);min-inline-size:32px}
:where(.k) .ch-tick{display:inline-grid;place-items:center;min-inline-size:24px;min-block-size:24px;margin-inline-start:2px;padding:0;border:0;background:none;color:var(--c-text-3);cursor:pointer}
:where(.k) .ch-msg__meta .ch-tick .ic{inline-size:14px;block-size:14px;color:inherit}
:where(.k) .ch-tick.is-read{color:var(--c-accent)}
:where(.k) .ch-tick:focus-visible{outline:2px solid var(--c-accent);border-radius:var(--r-sm)}
:where(.k) .ch-new{display:flex;justify-content:center}
:where(.k) .ch-new span{padding:2px 10px;border-radius:999px;background:var(--c-accent-tint);color:var(--c-accent);font-size:var(--fs-12);line-height:var(--lh-12);font-weight:600}
:where(.k) .ch-msg.is-flash .ch-msg__bubble{box-shadow:0 0 0 2px var(--c-accent)!important}
:where(.k) .ch__mic{touch-action:none;user-select:none;-webkit-user-select:none}
:where(.k) .ch__rec{display:flex;align-items:center;gap:var(--sp-2);min-block-size:var(--h-ctl-lg)}
:where(.k) .ch__rec[hidden],:where(.k) .ch__row[hidden]{display:none}
:where(.k) .ch__rec-dot{inline-size:10px;block-size:10px;border-radius:50%;background:var(--c-return)}
@media (prefers-reduced-motion:no-preference){ :where(.k) .ch__rec-dot{animation:ch-rec 1s ease-in-out infinite alternate} }
@keyframes ch-rec{to{opacity:.3}}
:where(.k) .ch__rec-t{font-weight:600;min-inline-size:40px}
:where(.k) .ch__rec-hint{flex:1;min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:where(.k) .ch-info__h{display:flex;align-items:center;gap:var(--sp-2);margin:var(--sp-2) 0;font-size:var(--fs-14);font-weight:600}
:where(.k) .ch-info__list{list-style:none;margin:0 0 var(--sp-3);padding:0;display:flex;flex-direction:column;gap:var(--sp-2)}
:where(.k) .ch-info__list li{display:flex;align-items:center;gap:var(--sp-2)}
:where(.k) .ch-info__who{display:flex;flex-direction:column;min-inline-size:0}
:where(.k) .ch-info__who small{font-size:var(--fs-12);color:var(--c-text-3)}
/* WhatsApp's ticks and swipes (Liav 8.11.2026, schema 90): ✓ sent, ✓✓ grey delivered, ✓✓ accent read (the colours of
   .ch-tick above; inside one's own filled bubble koma-polish.css makes them white / light blue). A message follows a
   horizontal swipe (chat.js swipeMessages): right = reply, left on one's own = its info; .ch-swipe is the round icon in the
   gap. "פרטי ההודעה": groups as inset cards (read · delivered · not delivered yet) in the dialog and on its phone screen. */
:where(.k) .ch__log{overflow-x:hidden}
:where(.k) .ch-msg{position:relative}
:where(.k) .ch-msg__bubble{touch-action:pan-y}
:where(.k) .ch-msg.is-swiping{-webkit-user-select:none;user-select:none}
:where(.k) .ch-swipe{position:absolute;inset-block:0;margin-block:auto;display:grid;place-items:center;inline-size:32px;block-size:32px;border-radius:50%;background:var(--c-subtle);border:1px solid var(--c-line);color:var(--c-text-2);opacity:0;pointer-events:none}
:where(.k) .ch-swipe--l{left:0}
:where(.k) .ch-swipe--r{right:0}
:where(.k) .ch-swipe .ic{inline-size:16px;block-size:16px}
:where(.k) .ch--info{grid-template-columns:minmax(0,1fr)}
:where(.k) .ch-info__card{margin:0 0 var(--sp-3)}
:where(.k) .ch-info__ticks{display:inline-grid;place-items:center;color:var(--c-text-3)}
:where(.k) .ch-info__ticks .ic{inline-size:16px;block-size:16px}
:where(.k) .ch-info__ticks.is-read{color:var(--c-accent)}
:where(.k) .ch-info__h .list__count{margin-inline-start:auto}
:where(.k) .ch-info__who{flex:1 1 auto}
:where(.k) .ch-info__who b{font-weight:600}
:where(.k) .ch-info__when{flex:none;margin-inline-start:auto;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3);white-space:nowrap}
:where(.k) .ch-info__none{margin:0 0 var(--sp-2)}
:where(.k) .ch-info__more{margin-block-start:var(--sp-1)}
:where(.k) .ch-info--page{gap:var(--sp-4)}
:where(.k) .ch-info--page .ch-info__msg{max-inline-size:min(520px,88%)}
:where(.k) .ch-info--page .ch-info__card{margin:0;padding:var(--sp-2) var(--sp-4);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg)}
:where(.k) .ch-info--page .ch-info__list{gap:0;margin:0}
:where(.k) .ch-info--page .ch-info__list li{min-block-size:48px;padding-block:var(--sp-2)}
:where(.k) .ch-info--page .ch-info__list li + li{border-block-start:1px solid var(--c-line)}
:where(.k) .ch-info__list li[hidden]{display:none}
/* Chat thread as a full screen on a phone (Liav 8.11.2026 15:42, with a recording from the iPhone app: "תראה איך בוואטצאפ זה
   עובד חלק"). html.m-chatfull (app.js shell) is on while a conversation or its "פרטי ההודעה" is open at ≤ 759 px: no top bar,
   project tabs or bottom bar (they are not drawn); the thread's head is the bar (it clears the notch); the app column is fixed
   to the visible part of the screen (viewport.js: --vv-h, --vv-top), so the keyboard pushes only the composer up and the
   document never scrolls; html.m-kb (keyboard open) drops the home-indicator padding under the composer. A thread kept alive
   under its info screen (app.js keep) is .view--kept: laid out (its scroll position stays) but invisible and inert. */
html:root.m-chatfull,html:root.m-chatfull body{overflow:hidden;overscroll-behavior:none}
html:root.m-chatfull .m-app{position:fixed;inset-inline:0;inset-block-start:var(--vv-top,0px);block-size:var(--vv-h,100dvh)}
html:root.m-chatfull .ch__head{padding-block-start:calc(var(--sp-2) + env(safe-area-inset-top,0px));min-block-size:calc(56px + env(safe-area-inset-top,0px))}
html:root.m-chatfull #banner:not(:empty){padding-block-start:env(safe-area-inset-top,0px)}
html:root.m-chatfull #banner:not(:empty) ~ #main .ch__head{padding-block-start:var(--sp-2);min-block-size:56px}
html:root.m-chatfull.m-kb .ch__composer{padding-block-end:var(--sp-2)}
:where(.k) .ch__h1{margin:0;font:inherit;line-height:inherit;color:inherit;min-inline-size:0}
#main:has(> .view--kept){position:relative}
#main > .view--kept{position:absolute;inset:0;visibility:hidden;pointer-events:none}
:where(.k) .ch-info__wait{margin:0;padding:var(--sp-2) var(--sp-1)}
/* a file / voice chip inside one's own filled bubble (the info screen's message): it was white on white */
:where(.k) .ch-msg--mine .ch__chip{background:rgba(255,255,255,.16)!important;border-color:rgba(255,255,255,.35)!important}
html[data-theme="dark"] .k .ch-msg--mine .ch__chip{background:rgba(14,18,24,.08)!important;border-color:rgba(14,18,24,.30)!important}

/* ───────── 10. the full marketplace card (cardprofile.js, schema 87, Liav 7.11.2026) ─────────
   The list card keeps its size: a 16:9 cover (or the first work photo) on top when there is one, the logo in the 40px mark,
   the name is the link stretched over the card (its buttons stay above it). The card's page: a head panel with the cover,
   the logo overlapping it, the contact / WhatsApp buttons, the links; then .sc sections. Photos: a square grid, a lightbox
   on a dark scrim (the photo is the only thing on it). No new colours: tokens only; the accent stays the one blue. */
:where(.k) .mk-card{position:relative}
:where(.k) .mk-card--cover{padding-block-start:0;overflow:hidden}
:where(.k) .mk-card__cover{display:block;margin-inline:calc(var(--sp-5)*-1);aspect-ratio:16/7;background:var(--c-subtle);overflow:hidden}
:where(.k) .mk-card__cover img{inline-size:100%;block-size:100%;object-fit:cover;display:block}
:where(.k) .mk-card__link{color:inherit;text-decoration:none}
:where(.k) .mk-card__link::after{content:"";position:absolute;inset:0;border-radius:inherit}
@media (hover:hover){:where(.k) .mk-card__link:hover{text-decoration:underline}}
:where(.k) .mk-card__link:focus-visible{box-shadow:none}
:where(.k) .mk-card__link:focus-visible::after{box-shadow:var(--focus)}
:where(.k) .mk-card__foot{position:relative;z-index:1}
:where(.k) .cp{display:flex;flex-direction:column;gap:var(--sp-4);max-inline-size:960px;margin-inline:auto;inline-size:100%}
:where(.k) .cp-back{display:inline-flex;align-items:center;gap:var(--sp-1);align-self:flex-start;font-size:var(--fs-13);color:var(--c-text-2);text-decoration:none}
:where(.k) .cp-back:hover{color:var(--c-ink);text-decoration:underline}
/* chev points to inline-end in LTR: "back" (toward inline-start) is the plain icon in RTL and the mirrored one in LTR */
[dir="ltr"] :where(.k) .ic--back{transform:scaleX(-1)}
:where(.k) .cp-declared{display:block;font-size:var(--fs-12);line-height:var(--lh-12)}
:where(.k) .cp-head{padding:0;overflow:hidden;gap:0}
:where(.k) .cp-hero__cover{aspect-ratio:16/5;background:var(--c-subtle);overflow:hidden}
:where(.k) .cp-hero__cover img{inline-size:100%;block-size:100%;object-fit:cover;display:block}
:where(.k) .cp-hero__row{display:flex;align-items:flex-end;gap:var(--sp-4);padding-inline:var(--sp-5);margin-block-start:-36px}
:where(.k) .cp-hero__logo{display:grid;place-items:center;inline-size:88px;block-size:88px;flex:none;border-radius:var(--r-lg);background:var(--c-surface);border:1px solid var(--c-line);color:var(--c-text-3);overflow:hidden}
:where(.k) .cp-hero__logo img{inline-size:100%;block-size:100%;object-fit:cover}
:where(.k) .cp-hero__logo .ic{inline-size:28px;block-size:28px}
:where(.k) .cp-hero__titles{flex:1;min-inline-size:0;padding-block-start:44px}
:where(.k) .cp-hero__name{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:600;overflow-wrap:anywhere}
:where(.k) .cp-hero__sub{font-size:var(--fs-13);line-height:var(--lh-13);color:var(--c-text-2)}
:where(.k) .cp-hero__tags{display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);margin-block-start:var(--sp-1)}
:where(.k) .cp-hero__area{display:inline-flex;align-items:center;gap:6px;font-size:var(--fs-12);color:var(--c-text-3)}
:where(.k) .cp-hero__area .ic{inline-size:12px;block-size:12px}
:where(.k) .cp-actions,:where(.k) .cp-links{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2);padding-inline:var(--sp-5)}
:where(.k) .cp-actions{padding-block-start:var(--sp-4)}
:where(.k) .cp-contact{padding-inline:var(--sp-5);padding-block-start:var(--sp-2)}
:where(.k) .cp-contact:empty{display:none}
:where(.k) .cp-links{padding-block:var(--sp-3) var(--sp-5)}
:where(.k) .cp-head>.cp-actions:last-child,:where(.k) .cp-head>.cp-contact:last-child{padding-block-end:var(--sp-5)}
:where(.k) .cp-about{white-space:pre-line;font-size:var(--fs-14);line-height:var(--lh-16);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .cp-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:var(--sp-3) var(--sp-4);margin-block-start:var(--sp-4)}
:where(.k) .cp-facts dt{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .cp-facts dd{font-size:var(--fs-14);line-height:var(--lh-14);color:var(--c-ink);overflow-wrap:anywhere}
:where(.k) .cp-chips{display:flex;flex-wrap:wrap;gap:var(--sp-2);list-style:none;padding:0;margin:0}
:where(.k) .cp-sub{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3);font-weight:600;margin-block:var(--sp-4) var(--sp-2)}
:where(.k) .cp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:var(--sp-3);list-style:none;padding:0;margin:0}
:where(.k) .cp-grid__item{display:block;inline-size:100%;aspect-ratio:1;padding:0;border:1px solid var(--c-line);border-radius:var(--r-md);overflow:hidden;background:var(--c-subtle);cursor:zoom-in}
:where(.k) .cp-grid__item img{inline-size:100%;block-size:100%;object-fit:cover;display:block;transition:transform var(--t-fast) var(--ease)}
@media (hover:hover){:where(.k) .cp-grid__item:hover img{transform:scale(1.03)}}
:where(.k) .cp-grid__cap{margin-block-start:var(--sp-1);font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-2);overflow-wrap:anywhere}
:where(.k) .cp-projects{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--sp-3);list-style:none;padding:0;margin:0}
:where(.k) .cp-project{display:flex;align-items:center;gap:var(--sp-3);min-inline-size:0}
:where(.k) .cp-project img,:where(.k) .cp-project__ic{inline-size:56px;block-size:56px;flex:none;border-radius:var(--r-md);object-fit:cover;background:var(--c-subtle);display:grid;place-items:center;color:var(--c-text-3)}
:where(.k) .cp-project div{display:flex;flex-direction:column;min-inline-size:0;font-size:var(--fs-13);line-height:var(--lh-13)}
/* the lightbox: the photo on a dark scrim, the caption under it, the arrows at the sides (RTL: "next" on the left) */
:where(.k) .cp-lb{position:fixed;inset:0;inline-size:100%;block-size:100%;max-inline-size:none;max-block-size:none;margin:0;padding:0;border:0;background:var(--c-ink);color:#fff;display:grid;grid-template-rows:auto 1fr}
:where(.k) .cp-lb::backdrop{background:transparent}
:where(.k) .cp-lb__bar{display:flex;align-items:center;justify-content:space-between;padding:var(--sp-3) var(--sp-4)}
:where(.k) .cp-lb__count{font-size:var(--fs-13)}
:where(.k) .cp-lb .btn--icon{color:#fff;background:rgba(255,255,255,.08);border-color:transparent}
:where(.k) .cp-lb .btn--icon:hover{background:rgba(255,255,255,.18)}
:where(.k) .cp-lb__fig{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--sp-3);min-block-size:0;margin:0;padding:0 var(--sp-12) var(--sp-6)}
:where(.k) .cp-lb__fig img{max-inline-size:100%;max-block-size:calc(100dvh - 150px);object-fit:contain;border-radius:var(--r-sm)}
:where(.k) .cp-lb__fig figcaption{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;font-size:var(--fs-14);line-height:var(--lh-14);max-inline-size:60ch}
:where(.k) .cp-lb__fig figcaption span{color:rgba(255,255,255,.75);font-size:var(--fs-13)}
:where(.k) .cp-lb__nav{position:absolute;inset-block-start:50%;transform:translateY(-50%)}
:where(.k) .cp-lb__prev{inset-inline-start:var(--sp-3)}
:where(.k) .cp-lb__next{inset-inline-end:var(--sp-3)}
/* the owner's page */
:where(.k) .cp-brand{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:var(--sp-4)}
:where(.k) .cp-brand__item{display:flex;align-items:flex-start;gap:var(--sp-3)}
:where(.k) .cp-brand__item .cp-hero__logo{inline-size:72px;block-size:72px}
:where(.k) .cp-brand__cover{display:grid;place-items:center;inline-size:128px;aspect-ratio:16/7;flex:none;border-radius:var(--r-md);background:var(--c-subtle);border:1px solid var(--c-line);color:var(--c-text-3);overflow:hidden}
:where(.k) .cp-brand__cover img{inline-size:100%;block-size:100%;object-fit:cover}
:where(.k) .cp-file{position:relative;overflow:hidden;cursor:pointer}
:where(.k) .cp-file input{position:absolute;inset:0;opacity:0;cursor:pointer;font-size:0}
:where(.k) .cp-file:focus-within{box-shadow:var(--focus)}
:where(.k) .cp-edit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:var(--sp-3);list-style:none;padding:0;margin:0 0 var(--sp-3)}
:where(.k) .cp-tile{display:flex;flex-direction:column;gap:var(--sp-1);padding:var(--sp-2);border:1px solid var(--c-line);border-radius:var(--r-md);background:var(--c-surface);min-inline-size:0}
:where(.k) .cp-tile.is-drag{opacity:.5}
:where(.k) .cp-tile[draggable="true"]{cursor:grab}
:where(.k) .cp-tile img{inline-size:100%;aspect-ratio:1;object-fit:cover;border-radius:var(--r-sm);background:var(--c-subtle)}
:where(.k) .cp-tile__text{display:flex;gap:var(--sp-1);font-size:var(--fs-12);line-height:var(--lh-12);min-inline-size:0}
:where(.k) .cp-tile__tools{display:flex;gap:2px;flex-wrap:wrap}
:where(.k) .cp-checks{display:flex;flex-wrap:wrap;gap:var(--sp-2) var(--sp-4)}
:where(.k) .cp-set{border:0;padding:0;margin:0 0 var(--sp-4);display:flex;flex-direction:column;gap:var(--sp-2)}
:where(.k) .cp-form{display:flex;flex-direction:column;gap:var(--sp-4)}
:where(.k) .cp-prow{border:1px solid var(--c-line);border-radius:var(--r-md);padding:var(--sp-3);margin:0 0 var(--sp-3)}
:where(.k) .cp-save{position:sticky;inset-block-end:0;display:flex;align-items:center;flex-wrap:wrap;gap:var(--sp-2);padding:var(--sp-3) var(--sp-4);background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--r-lg);z-index:2}
:where(.k) .cp-new{display:flex;gap:var(--sp-3);border:0;border-block-end:1px solid var(--c-line);padding:0 0 var(--sp-4);margin:0 0 var(--sp-4)}
:where(.k) .cp-new__img{inline-size:96px;block-size:96px;flex:none;object-fit:cover;border-radius:var(--r-md);background:var(--c-subtle)}
:where(.k) .kd__body>.cp-new__img{inline-size:120px;block-size:120px}
:where(.k) .cp-new__f{flex:1;min-inline-size:0;display:flex;flex-direction:column;gap:var(--sp-3)}
@media (max-width:759px){
  :where(.k) .m-pg>.cp{gap:var(--sp-3)}
  :where(.k) .m-pg .cp>.cp-back,:where(.k) .m-pg .cp>.banner,:where(.k) .m-pg .cp-save,:where(.k) .m-pg .cp>.pg__head{margin-inline:var(--m-gutter)}
  :where(.k) .cp-hero__cover{aspect-ratio:16/7}
  :where(.k) .cp-hero__row{padding-inline:var(--sp-4);margin-block-start:-28px;gap:var(--sp-3)}
  :where(.k) .cp-hero__logo{inline-size:64px;block-size:64px}
  :where(.k) .cp-hero__titles{padding-block-start:32px}
  :where(.k) .cp-actions,:where(.k) .cp-links,:where(.k) .cp-contact{padding-inline:var(--sp-4)}
  :where(.k) .cp-actions .btn,:where(.k) .cp-links .btn,:where(.k) .cp-contact .btn,:where(.k) .cp-tile__tools .btn,:where(.k) .cp-file{min-block-size:var(--m-tap-min)}
  :where(.k) .cp-actions .btn{flex:1 1 auto}
  :where(.k) .cp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-2)}
  :where(.k) .cp-lb__fig{padding:0 var(--sp-2) var(--sp-4)}
  :where(.k) .cp-lb__fig img{max-block-size:calc(100dvh - 170px)}
  :where(.k) .cp-lb__nav{inset-block-start:auto;inset-block-end:var(--sp-4);transform:none;min-block-size:var(--m-tap-min);min-inline-size:var(--m-tap-min)}
  :where(.k) .cp-new{flex-direction:column}
  :where(.k) .cp-save{inset-block-end:var(--sp-2)}
  :where(.k) .cp-tile__tools .btn{min-inline-size:var(--m-tap-min)}
}
@media (prefers-reduced-motion:reduce){:where(.k) .cp-grid__item img{transition:none}}

/* ───────── 10b. the card page as a profile (option 3, Liav 7.11: the card page was "פשוט מדי וגנרי") ─────────
   cover with a soft scrim · the logo overlapping it in a surface ring · name and trade · a stats row (years, works, projects,
   areas) · links as chips · a mosaic gallery (the first work large) · one contact bar that stays at the bottom of the screen
   while the page scrolls (WhatsApp first). Tokens only; the one blue stays the only accent; works in dark mode by tokens. */
:where(.k) .cp-head{border:0;border-radius:var(--r-xl);overflow:hidden;box-shadow:0 1px 2px rgba(15,26,46,.05),0 10px 30px rgba(15,26,46,.07)}
:where(.k) .cp-hero__cover{position:relative;aspect-ratio:16/6}
:where(.k) .cp-hero__cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,26,46,0) 55%,rgba(15,26,46,.28))}
:where(.k) .cp-hero__row{position:relative;z-index:1;margin-block-start:-52px;padding-inline:var(--sp-6);align-items:flex-end}
:where(.k) .cp-hero__logo{inline-size:104px;block-size:104px;border-radius:24px;border:4px solid var(--c-surface);background:var(--c-surface);box-shadow:0 2px 6px rgba(15,26,46,.12),0 12px 28px rgba(15,26,46,.14)}
:where(.k) .cp-hero__titles{padding-block-start:56px}
:where(.k) .cp-hero__name{font-size:1.5rem;line-height:1.25;font-weight:700;letter-spacing:-.015em}
:where(.k) .cp-hero__sub{font-size:var(--fs-14);line-height:var(--lh-14)}
:where(.k) .cp-stats{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);margin:var(--sp-5) var(--sp-6) 0;padding-block:var(--sp-3);border-block:1px solid var(--c-line)}
:where(.k) .cp-stats>div{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding-inline:var(--sp-2);min-inline-size:0}
:where(.k) .cp-stats>div+div{border-inline-start:1px solid var(--c-line)}
:where(.k) .cp-stats dd{order:-1;font-size:1.5rem;line-height:1.2;font-weight:700;color:var(--c-ink);letter-spacing:-.02em}
:where(.k) .cp-stats dt{font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3);overflow-wrap:anywhere}
:where(.k) .cp-owner{display:flex;flex-wrap:wrap;gap:var(--sp-2);padding:var(--sp-4) var(--sp-6) 0}
:where(.k) .cp-head .cp-links{padding:var(--sp-4) var(--sp-6) var(--sp-5)}
:where(.k) .cp-head .cp-links .btn{border-radius:999px;background:var(--c-tint-btn);color:var(--c-accent);border-color:transparent}
:where(.k) .cp-head>:last-child:not(.cp-links){margin-block-end:var(--sp-5)}
:where(.k) .cp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-2)}
:where(.k) .cp-grid>li:first-child{grid-column:span 2;grid-row:span 2}
:where(.k) .cp-grid>li:first-child .cp-grid__item{aspect-ratio:auto;block-size:calc(100% - 22px);min-block-size:200px}
:where(.k) .cp-grid__item{border:0;border-radius:var(--r-lg)}
:where(.k) .cp-bar{position:sticky;inset-block-end:var(--sp-3);z-index:4;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:var(--sp-2);margin-block-start:var(--sp-2);padding:var(--sp-3);
  border-radius:20px;background:var(--c-surface);box-shadow:0 1px 0 var(--c-line),0 -2px 10px rgba(15,26,46,.05),0 14px 36px rgba(15,26,46,.16)}
:where(.k) .cp-bar .cp-contact{padding:0 var(--sp-1)}
:where(.k) .cp-bar__btns{display:flex;gap:var(--sp-2);align-items:center;flex-wrap:wrap}
:where(.k) .cp-bar__btns .btn{flex:1 1 0;min-inline-size:max-content;block-size:max(44px,calc(1lh + 20px));font-size:var(--fs-14)}
@media (max-width:899px){
  :where(.k) .cp-hero__cover{aspect-ratio:16/10}
  :where(.k) .cp-hero__row{padding-inline:var(--sp-4);margin-block-start:-44px;gap:var(--sp-3)}
  :where(.k) .cp-hero__logo{inline-size:88px;block-size:88px;border-radius:22px}
  :where(.k) .cp-hero__titles{padding-block-start:48px}
  :where(.k) .cp-stats{margin-inline:var(--sp-4)}
  :where(.k) .cp-owner{padding-inline:var(--sp-4)}
  :where(.k) .cp-head .cp-links{padding-inline:var(--sp-4)}
  :where(.k) .cp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  :where(.k) .cp-grid>li:first-child{grid-row:auto}
  :where(.k) .cp-grid>li:first-child .cp-grid__item{block-size:auto;min-block-size:0;aspect-ratio:16/10}
  :where(.k) .cp-bar{inset-block-end:calc(var(--sp-6) * -1);margin-block-end:calc(var(--sp-6) * -1);border-radius:18px 18px 0 0;box-shadow:0 -1px 0 var(--c-line),0 -10px 26px rgba(15,26,46,.12)}
  :where(.k) .cp-bar__btns .btn{block-size:max(48px,calc(1lh + 24px));font-size:var(--m-fs-15,15px)}
}

/* a professional of the free registration in the marketplace (market.js proCard, mpros.py; 9.11.2026) */
:where(.k) .mk-card__photos{display:flex;gap:var(--sp-1);margin:0;overflow:hidden}
:where(.k) .mk-card__photos img{inline-size:56px;block-size:42px;object-fit:cover;border-radius:var(--r-sm);border:1px solid var(--c-line)}
:where(.k) .mk-pro-filter{flex-wrap:wrap}
:where(.k) .mk-pro-filter .field{min-inline-size:160px}
:where(.k) .ox-until{display:flex;flex-direction:column;gap:2px;min-inline-size:150px}
/* ───────── 11. ratings of the professionals (mkratings.js, schema 104, Liav 9.11.2026) ─────────
   No new colours or tokens: the star is the rating box's star (rating.js .rate__star.is-on, the same #E3A008 / dark #F1CE7E);
   the numbers are ink, the words text-3, the comments the system text sizes. The list card gets one line (star, average,
   count) only from 3 ratings; the card page a .sc section. The input is the rating box's own .rate__star radio row. */
:where(.k) .mr-star{display:inline-grid;place-items:center;color:var(--c-line-strong)}
:where(.k) .mr-star .ic{inline-size:14px;block-size:14px}
:where(.k) .mr-star.is-on{color:#E3A008}
:where(.k) .mr-star.is-on .ic{fill:currentColor}
:where(.k) .mr-stars{display:inline-flex;gap:1px;vertical-align:-2px}
:where(.k) .mk-card__stars{display:flex;align-items:center;gap:6px;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-ink)}
:where(.k) .mk-card__stars b{font-weight:600}
:where(.k) .mk-rated .ic{inline-size:12px;block-size:12px;color:#E3A008;fill:currentColor}
:where(.k) .cp-hero__stars{margin-block-start:var(--sp-1)}
:where(.k) .cp-hero__stars .mk-card__stars{font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .mr{display:flex;flex-direction:column;gap:var(--sp-3)}
:where(.k) .mr-sum{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
:where(.k) .mr-sum__n{font-size:var(--fs-20);line-height:var(--lh-20);font-weight:700;color:var(--c-ink)}
:where(.k) .mr-sum .mr-star .ic{inline-size:18px;block-size:18px}
:where(.k) .mr-new{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;font-size:var(--fs-13);line-height:var(--lh-13)}
:where(.k) .mr-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
:where(.k) .mr-item{display:flex;flex-direction:column;gap:var(--sp-2);padding-block:var(--sp-3);border-block-start:1px solid var(--c-line)}
:where(.k) .mr-list > .mr-item:first-child{border-block-start:0;padding-block-start:0}
:where(.k) .mr-list--mine{padding:var(--sp-3);background:var(--c-subtle);border-radius:var(--r-md)}
:where(.k) .mr-list--mine > .mr-item{padding:0}
:where(.k) .mr-item__head{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;font-size:var(--fs-12);line-height:var(--lh-12);color:var(--c-text-3)}
:where(.k) .mr-item__who b{color:var(--c-ink);font-weight:600}
:where(.k) .mr-item__text{margin:0;font-size:var(--fs-14);line-height:var(--lh-14);color:var(--c-text-2);overflow-wrap:anywhere;white-space:pre-line}
:where(.k) .mr-item__acts:empty{display:none}
:where(.k) .mr-reply{padding-inline-start:var(--sp-3);border-inline-start:2px solid var(--c-line-strong);display:flex;flex-direction:column;gap:2px}
:where(.k) .mr-reply__by{margin:0;font-size:var(--fs-12);line-height:var(--lh-12);font-weight:600;color:var(--c-text-2)}
:where(.k) .mr-quote{padding:var(--sp-2) var(--sp-3);background:var(--c-subtle);border-radius:var(--r-md);white-space:pre-line;overflow-wrap:anywhere}
:where(.k) .mr-ops__text{white-space:normal;overflow-wrap:anywhere}
@media (max-width:759px){
  :where(.k) .mr-item__acts .btn{min-block-size:var(--m-tap-min)}
  :where(.k) .mr-item__text{font-size:var(--m-fs-15,15px)}
}
