/* PlanBox — dark mode (Liav 2026-11-07 21:23: "תעשה גם שהמצב כרגע (בהיר) זה ברירת מחדל, ותוסיף גם dark mode אם רוצים לשנות
   בהגדרות"). Light stays everybody's default. The account setting "מראה" (account.js, POST /api/me/theme, users.theme, schema 88)
   picks בהיר / כהה / לפי המכשיר; boot-title.js and theme.js set html[data-theme="light"|"dark"] before the first paint
   ("לפי המכשיר" = data-theme-pref="system", resolved from prefers-color-scheme and followed live).
   Loaded last (after koma-native.css), screen only: printing stays light.
   The same approved option 3 "כמו אפליקציה" (DESIGN.md), on dark neutrals with the one PlanBox blue:
   - the tokens are set on <body>, not on <html>: the canvas-drawn documents (minutes-pdf.js, report-pdf.js, defects.js, stamp.js,
     markup.js, measure.js, signsheet.js) read their colours from document.documentElement, so PDFs, stamps, markup and measures
     keep the light colours. The drawings and paper themselves stay white (--sheet, --plan-*: not redefined here);
   - the blue has two roles in dark: --c-accent is the light blue of text, links, icons and rings (≥ 4.5:1 on every dark surface),
     --c-accent-fill the PlanBox blue of filled controls with white text (4.96:1). The same split for danger;
   - section 2 is the dark mirror of the light colours written directly in the earlier sheets (app.css … koma-native.css), made
     from them by a colour-role mapping and then reviewed. Each override has exactly the weight of the light rule it mirrors
     (:where() adds none) and wins only by coming last, so a stronger light rule keeps winning in dark as it does in light.
     Things on the white paper (pins, sheets, QR codes, the signature pad, markup and chart swatches) are deliberately absent. */

/* ───────── 1. tokens ───────── */
html[data-theme="dark"]{color-scheme:dark}
html[data-theme="dark"] body{
  /* surfaces: grouped cards one step above the app background (the iOS grouped look, dark) */
  --c-app:#0E1218; --c-surface:#1A1F28; --c-subtle:#222936; --c-hover:#232B37; --c-hover-app:#1A202A; --c-pressed:#2E3746;
  --c-stage:#151A22; --c-canvas:#10141B; --c-paper:#222936;
  /* text (contrast on --c-surface / on --c-app) */
  --c-ink:#E8EDF5;          /* 14.1 / 16.0 */
  --c-ink-hover:#FFFFFF;
  --c-text-2:#B7C1D1;       /* 9.1 / 10.3 */
  --c-text-3:#93A0B5;       /* 6.3 / 7.1; 5.0 on the grey pill */
  --c-text-off:#5E6878;     /* disabled only */
  --c-text:var(--c-ink);
  /* lines */
  --c-line:#2A3240; --c-line-strong:#3A4558; --c-line-soft:#232A35;
  /* the one blue */
  --c-accent:#82B1FF;       /* text, links, icons, rings: 7.6 on surface, 8.7 on app */
  --c-accent-hover:#A9C9FF;
  --c-accent-tint:#1B2D4D;  /* selected row, mine marker (accent text on it 6.3) */
  --c-accent-line:#36588F;
  --c-accent-ring:rgba(130,177,255,.30);
  --c-accent-fill:#82B1FF;  /* Liav 8.11.2026 12:25: every blue fill in dark is the light accent (was the saturated #2D6BDB), dark text on it */
  --c-accent-fill-hover:#A9C9FF;
  /* Liav 8.11.2026: in dark the primary button, the selection state (10:5x) and, since 12:25, every other blue fill (counts,
     unread dots, avatars, progress, the greeting card's lead number, own chat bubbles, "אצלך", the company header) are the
     light accent of the tokens with dark text (#0E1218 on #82B1FF 8.66:1, on the hover #A9C9FF ≈ 11:1) */
  --c-accent-solid:#82B1FF; --c-accent-solid-hover:#A9C9FF; --c-on-accent:#0E1218;
  --c-ink-fill:#2E3746;     /* toasts, tooltips, the offline banner: white text 12.0 */
  --c-focus:var(--c-accent);
  /* status */
  --c-wait:#E5A645; --c-warn:#F0B04A; --c-warn-ink:#F0B04A;
  --c-return:#FF8A80; --c-return-text:#FF8A80; --c-return-tint:#3A1F22; --c-error:#FF8A80;
  --c-ok:#4CC38A; --c-old:#7D8797;
  --c-danger:#FF8A80; --c-danger-hover:#FFA59D; --c-danger-fill:#C93C38;
  /* option 3 fills */
  --c-tint-btn:#1E2B40; --c-tint-btn-hover:#253550; --c-chip:#262E3A; --c-chip-hover:#2F3846; --c-seg:#262E3A; --c-seg-on:#3A4456;
  --c-bar:rgba(22,27,35,.94); --c-bar-nav:rgba(20,24,31,.96);      /* theme-color of the phone's status bar: #161B23 (theme.js) */
  /* elevation and focus (re-made here: :root's values were computed with the light tokens) */
  --e-1:0 1px 2px rgba(0,0,0,.4),0 4px 12px rgba(0,0,0,.45);
  --e-2:0 2px 6px rgba(0,0,0,.45),0 16px 40px rgba(0,0,0,.6);
  --focus:0 0 0 2px var(--c-surface),0 0 0 4px var(--c-accent);
  /* the compatibility names of themes.css and the product colours of koma-polish.css, for the same reason */
  --bg:var(--c-app); --surface:var(--c-surface); --surface-2:var(--c-subtle); --line:var(--c-line); --line-2:#232A35; --line-strong:var(--c-line-strong);
  --ink:var(--c-ink); --ink-2:var(--c-text-2); --muted:var(--c-text-3); --faint:#7D8797;
  --accent:var(--c-accent); --accent-ink:var(--c-accent-hover); --accent-soft:var(--c-accent-tint); --accent-soft-2:var(--c-hover); --accent-line:var(--c-accent-line); --accent-line-2:#2A426B;
  --ok:#4CC38A; --ok-soft:#143022; --warn:var(--c-text-2); --warn-soft:var(--c-subtle); --bad:var(--c-return-text); --bad-soft:var(--c-return-tint); --info:var(--c-accent); --info-soft:var(--c-accent-tint);
  --viewer:var(--c-canvas); --art-bg:var(--c-stage); --topbar-bg:var(--c-surface); --scrim:rgba(0,0,0,.6); --shadow-lg:var(--e-2);
  --px-docs:var(--c-accent); --px-docs-bg:#1B2D4D; --px-site:#4FD1C0; --px-site-bg:#12302D; --px-money:#4CC38A; --px-money-bg:#143022;
  --px-sales:#B9A3FF; --px-sales-bg:#2A2346;
  --px-e-menu:0 1px 2px rgba(0,0,0,.4),0 10px 28px rgba(0,0,0,.45),0 28px 60px rgba(0,0,0,.35);
  --px-e-card:0 1px 2px rgba(0,0,0,.3),0 6px 18px rgba(0,0,0,.25);
  background:var(--c-app); color:var(--c-ink);
}
/* a theme switch is instant: no element fades on its own transition while the rest jumps (theme.js sets this for two frames) */
html.pb-theme-switch *,html.pb-theme-switch *::before,html.pb-theme-switch *::after{transition:none!important}

/* ───────── 2. the dark mirror of the light colours written in the earlier sheets ───────── */

/* ── from app.css ── */
:where(html[data-theme="dark"]) .legacy .button.danger-ghost{border-color:#72313F}
:where(html[data-theme="dark"]) .legacy .avatar.a1{background:var(--c-seg);color:#9BD4B8}
:where(html[data-theme="dark"]) .legacy .avatar.a2{background:#3D2F1A;color:#F1C97E}
:where(html[data-theme="dark"]) .legacy .avatar.a3{background:var(--c-accent-tint);color:var(--c-accent)}
:where(html[data-theme="dark"]) .legacy .avatar.a4{background:#3D1A23;color:#DF90A1}
:where(html[data-theme="dark"]) .legacy .avatar.a5{background:var(--c-seg);color:var(--c-text-2)}
:where(html[data-theme="dark"]) .legacy .file-icon.pdf{background:#3D1A1E;color:#E08F9F;border-color:#72313B}
:where(html[data-theme="dark"]) .legacy .file-icon.cad{background:var(--c-accent-tint);color:var(--c-accent);border-color:#315272}
:where(html[data-theme="dark"]) .legacy .file-icon.img{background:var(--c-seg);color:#97D8B8;border-color:var(--c-line)}
:where(html[data-theme="dark"]) .legacy .notice.info{color:var(--c-accent)}
:where(html[data-theme="dark"]) .legacy .notice.warn{color:#F1C87E}
:where(html[data-theme="dark"]) .legacy .notice.ok{color:#96D9B8}
:where(html[data-theme="dark"]) .legacy .notice.bad{color:#E18EA1}
:where(html[data-theme="dark"]) .legacy .banner.warn{color:#F1C87E}
:where(html[data-theme="dark"]) .legacy .project-switch img{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .callout{background:linear-gradient(135deg, var(--accent-soft-2), var(--c-surface))}
:where(html[data-theme="dark"]) .legacy .project-art .stage{background:rgba(26,31,40,0.94)}
:where(html[data-theme="dark"]) .legacy .project-art .company-logo{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .hero-logo{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .hero-actions .button:not(.primary){background:rgba(26,31,40,0.95)}
:where(html[data-theme="dark"]) .legacy .hero-actions .icon-button{background:rgba(26,31,40,0.95)}
:where(html[data-theme="dark"]) .legacy .viewer-body iframe{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .text-preview{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .uploads header .icon-button:hover{background:rgba(255,255,255,0.12)}
:where(html[data-theme="dark"]) .legacy .conv-list a:hover{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .conv-list a.active{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .bubble{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .msg.failed .bubble{border-color:#72313F}
:where(html[data-theme="dark"]) .legacy .attachment{background:rgba(26,31,40,0.8)}
:where(html[data-theme="dark"]) .legacy .composer{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .attach-chip button:hover{background:rgba(26,31,40,0.6)}
:where(html[data-theme="dark"]) .legacy .board-col .task-list > li{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .company-logo-lg{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .logo-preview img{background:var(--c-surface)}
:where(html[data-theme="dark"]) .legacy .provider{background:repeating-linear-gradient(-45deg, var(--c-surface) 0 12px, var(--accent-soft-2) 12px 24px)}
:where(html[data-theme="dark"]) .legacy .auth-quote{background:rgba(26,31,40,0.92)}

/* ── from themes.css ── */
:where(html[data-theme="dark"]) .legacy .button:hover:not(:disabled){border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) .legacy .button.primary,:where(html[data-theme="dark"]) .legacy .button.success{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .legacy .button.primary:hover:not(:disabled),:where(html[data-theme="dark"]) .legacy .button.success:hover:not(:disabled){background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .legacy input:hover,:where(html[data-theme="dark"]) .legacy select:hover,:where(html[data-theme="dark"]) .legacy textarea:hover{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) .legacy .segmented > [aria-pressed=true],:where(html[data-theme="dark"]) .legacy .segmented > .active{box-shadow:0 0 0 1px rgba(0,0,0,0.18)}
:where(html[data-theme="dark"]) .legacy .counter{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) .legacy .bell .dot,:where(html[data-theme="dark"]) .legacy .bottom-nav .dot{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) .legacy .notice.info{border-color:#314572;color:var(--c-accent)}
:where(html[data-theme="dark"]) .legacy .notice.bad{border-color:#723731}
:where(html[data-theme="dark"]) .legacy dialog::backdrop{background:rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) .legacy .dropzone{border:1px dashed var(--c-line-strong)}

/* ── from koma.css ── */
:where(html[data-theme="dark"]) :where(.k) .btn:hover,:where(html[data-theme="dark"]) :where(.k) .btn.is-hover{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .btn:active,:where(html[data-theme="dark"]) :where(.k) .btn.is-active,:where(html[data-theme="dark"]) :where(.k) .btn[aria-pressed="true"]{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .btn--primary{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .btn--primary:hover,:where(html[data-theme="dark"]) :where(.k) .btn--primary.is-hover{background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .btn--primary:active,:where(html[data-theme="dark"]) :where(.k) .btn--primary.is-active{background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .btn--danger:active,:where(html[data-theme="dark"]) :where(.k) .btn--danger.is-active{background:#3D1E1A}
:where(html[data-theme="dark"]) :where(.k) .btn--danger.btn--primary:active,:where(html[data-theme="dark"]) :where(.k) .btn--danger.btn--primary.is-active{border-color:#E05A52}
:where(html[data-theme="dark"]) :where(.k) .field:hover,:where(html[data-theme="dark"]) :where(.k) .field.is-hover{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .textarea:hover{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .check input:checked{background:var(--c-accent-solid)}
:where(html[data-theme="dark"]) :where(.k) .check input:checked::after{border-color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .seg__btn[aria-pressed="true"]{box-shadow:0 0 0 1px rgba(0,0,0,0.18)}
:where(html[data-theme="dark"]) :where(.k) .unread{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .badge--accent{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .tag--partner{background:var(--c-accent-fill);color:var(--c-on-accent)}      /* the light accent with dark text (Liav 8.11) */
:where(html[data-theme="dark"]) :where(.k) .thumb__mark{background:var(--c-accent-fill);box-shadow:0 0 0 1.5px var(--c-surface)}
:where(html[data-theme="dark"]) :where(.k) .legend .legend__old::before{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card:hover,:where(html[data-theme="dark"]) :where(.k) .sheet-card.is-hover{box-shadow:0 1px 2px rgba(0,0,0,0.13)}
:where(html[data-theme="dark"]) :where(.k) .project-card:hover,:where(html[data-theme="dark"]) :where(.k) .project-card.is-hover{box-shadow:0 1px 2px rgba(0,0,0,0.13)}
:where(html[data-theme="dark"]) :where(.k) .toast{background:var(--c-ink-fill)}
:where(html[data-theme="dark"]) :where(.k) .toast--ok .ic:first-child{color:#93DCB5}
:where(html[data-theme="dark"]) :where(.k) .toast--error .ic:first-child{color:#F1887E}
:where(html[data-theme="dark"]) :where(.k) .banner--info{border-color:#314572;color:var(--c-accent)}
:where(html[data-theme="dark"]) :where(.k) .banner--info b{color:var(--c-accent)}
:where(html[data-theme="dark"]) :where(.k) .banner--error{border-color:#723731}
:where(html[data-theme="dark"]) :where(.k) .banner--error b{color:#EB8C85}
:where(html[data-theme="dark"]) :where(.k) .banner--offline{background:var(--c-ink-fill)}
:where(html[data-theme="dark"]) :where(.k) .dropzone{border:1px dashed var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .tooltip{background:var(--c-ink-fill)}
:where(html[data-theme="dark"]) :where(.k) .scrim{background:rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) :where(.k) .scrim--light{background:rgba(0,0,0,0.24)}
:where(html[data-theme="dark"]) :where(.k) .pl-big:hover,:where(html[data-theme="dark"]) :where(.k) .pl-big.is-hover{box-shadow:0 1px 2px rgba(0,0,0,0.13)}

/* ── from koma-mobile.css ── */
:where(html[data-theme="dark"]) :where(.k) .m-chip[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}

/* ── from koma-app.css ── */
:where(html[data-theme="dark"]) .skip-link{background:var(--c-ink-fill)}
:where(html[data-theme="dark"]) :where(.k) .ws-minechip.has-items .chip__count,:where(html[data-theme="dark"]) :where(.k) .ws-minechip.has-items[aria-pressed="true"] .chip__count{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ob__fill{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ob__step.is-done .ob__mark{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .nav__item--proj[aria-current="page"] .nav__init{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .pj-pop__stages li.is-now{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .banner__x:hover{background:rgba(255,255,255,0.06)}
:where(html[data-theme="dark"]) :where(.k) .rate__star.is-on{color:#F1CE7E}
:where(html[data-theme="dark"]) :where(.k) .rate__star:hover{color:#F1CE7E}
:where(html[data-theme="dark"]) :where(.k) .mr-star.is-on,:where(html[data-theme="dark"]) :where(.k) .mk-rated .ic{color:#F1CE7E}      /* marketplace ratings: the rating box's dark star (mkratings.js) */

/* ── from koma-viewer.css ── */
:where(html[data-theme="dark"]) :where(.k) .m-fab{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .m-fab:active{background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .m-fab[aria-pressed="true"]{background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) progress.vw-meter::-webkit-progress-value{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) progress.vw-meter::-moz-progress-bar{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .v3d{background:var(--c-app)}

/* ── from koma-pages.css ── */
:where(html[data-theme="dark"]) .kd::backdrop{background:rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) :where(.k) .opt:hover{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .opt input:checked::after{background:var(--c-accent-solid)}
:where(html[data-theme="dark"]) :where(.k) .mk-cats .chip[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .cs-bar::-webkit-progress-value{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .cs-bar::-moz-progress-bar{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .cs-step.is-done .ob__mark{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .mt-steps li.is-now{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .df-log li:last-child .df-log__dot{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ch-voice__btn{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ch-voice__fill{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .cp-lb{background:var(--c-ink-fill)}

/* ── from koma-landing.css ── */
:where(html[data-theme="dark"]) :where(.k) .ln-bar{background:var(--c-app)}
:where(html[data-theme="dark"]) :where(.k) .st__num{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ln-field__phone{box-shadow:0 24px 60px rgba(0,0,0,0.48)}

/* ── from koma-stagec.css ── */
:where(html[data-theme="dark"]) :where(.k) .gv__tools{box-shadow:0 1px 2px rgba(0,0,0,0.13),0 4px 12px rgba(0,0,0,0.18)}
:where(html[data-theme="dark"]) :where(.k) .ws-star{background:rgba(26,31,40,0.88)}
:where(html[data-theme="dark"]) :where(.k) .ws-pick{background:rgba(26,31,40,0.92)}
:where(html[data-theme="dark"]) :where(.k) .ws-selbar{box-shadow:0 -4px 12px rgba(0,0,0,0.13)}
:where(html[data-theme="dark"]) :where(.k) .vmk-bar--m{box-shadow:0 4px 12px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) :where(.k).k-webup{box-shadow:0 6px 24px rgba(0,0,0,0.35)}
:where(html[data-theme="dark"]) :where(.k) .ur-tabs .chip.is-on{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .fn-add__menu{box-shadow:0 8px 24px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) :where(.k) .qc-item__btns .btn[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .sb-task .btn[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .qo-bar--off{background:var(--c-ink-fill)}

/* ── from koma-home.css ── */
:where(html[data-theme="dark"]) :where(.k) .hm-legend i{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .hm-cl__step.is-done .ob__mark{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) .demo-bar{box-shadow:0 8px 24px rgba(0,0,0,0.31)}

/* ── from koma-polish.css ── */
:where(html[data-theme="dark"]) :where(.k) .menu.more__menu{border-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .acct-card{background:linear-gradient(135deg,var(--c-app) 0%,var(--c-accent-tint) 100%);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .acct-card:hover{background:linear-gradient(135deg,var(--c-accent-tint) 0%,var(--c-accent-tint) 100%)}
:where(html[data-theme="dark"]) :where(.k) .acct-card__av{background:var(--c-accent-fill);box-shadow:0 0 0 3px var(--c-surface),0 0 0 4.5px var(--px-sky)}
:where(html[data-theme="dark"]) :where(.k) .acct-lang[aria-checked="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .acct-lang[aria-checked="true"]:hover{background:var(--c-accent-solid-hover);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .acct-menu .nav__item--quiet .nav__count{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .m-bar .mx-menu,:where(html[data-theme="dark"]) :where(.k) .m-bar .acct-menu{box-shadow:0 0 0 100vmax rgba(0,0,0,0.6),0 -12px 40px rgba(0,0,0,0.55)}
:where(html[data-theme="dark"]) :where(.k) .m-bar .mx-grab{background:var(--c-pressed)}
:where(html[data-theme="dark"]) :where(.k) .m-bar .acct-menu::before{background:var(--c-pressed)}
:where(html[data-theme="dark"]) :where(.k) .m-bar .mx-item{background:var(--c-app)}
:where(html[data-theme="dark"]) :where(.k) .hello{background:radial-gradient(120% 140% at 100% 0%,var(--c-accent-fill) 0%,var(--c-accent-fill) 48%,var(--c-accent-fill) 100%);box-shadow:0 10px 30px rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) :where(.k) .hello::after{border:2px solid rgba(130,177,255,0.28)}
:where(html[data-theme="dark"]) :where(.k) .m-now{border-color:#314B72!important}
:where(html[data-theme="dark"]) :where(.k) .m-now .m-btn{box-shadow:0 6px 16px rgba(0,0,0,0.55)}
:where(html[data-theme="dark"]) :where(.k) .m-chip[aria-pressed="true"]{box-shadow:0 4px 12px rgba(0,0,0,0.55)}
:where(html[data-theme="dark"]) :where(.k) .m-nav{background:rgba(26,31,40,0.88);border-block-start-color:var(--c-line-strong)}
:where(html[data-theme="dark"]) :where(.k) .m-nav__ic .badge{box-shadow:0 0 0 2px var(--c-surface)}
:where(html[data-theme="dark"]) :where(.k) .m-bar{background:var(--c-surface)}
:where(html[data-theme="dark"]) :where(.k) .k-acct .avatar--me{background:linear-gradient(135deg,var(--c-accent-fill),var(--c-accent-fill));box-shadow:0 0 0 2px var(--c-surface),0 0 0 3.5px var(--px-sky)}
:where(html[data-theme="dark"]) :where(.k) .m-more__pill{background:rgba(0,0,0,0.72)!important;color:#fff!important;box-shadow:0 8px 20px rgba(0,0,0,0.55)}
:where(html[data-theme="dark"]) :where(.k) .userbtn .avatar--me{background:linear-gradient(135deg,var(--c-accent-fill),var(--c-accent-fill))}
:where(html[data-theme="dark"]) :where(.k) .sidebar .nav__item[aria-current="page"]::after{background:var(--c-accent-solid)}
:where(html[data-theme="dark"]) :where(.k) .paper--tile,:where(html[data-theme="dark"]) :where(.k) .thumb--tile{background-color:var(--c-app);background-image:linear-gradient(rgba(255,255,255,0.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,0.06) 1px,transparent 1px);color:#9EB1D1}
:where(html[data-theme="dark"]) :where(.k) .paper--tile .ic{background:var(--c-surface);box-shadow:0 2px 6px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) :where(.k) .paper--tile b{color:#9EB1D1}
:where(html[data-theme="dark"]) :where(.k) .sheet-card{border-color:var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card .paper{border-block-end:1px solid var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card__thumb{background:var(--c-subtle)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card:hover{box-shadow:0 10px 26px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card .mine,:where(html[data-theme="dark"]) :where(.k) .sheet-card .m-mine{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .ws-star{background:rgba(26,31,40,0.9);box-shadow:0 1px 4px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) :where(.k) .ws-star[aria-pressed="true"]{color:#F1CE7E}
:where(html[data-theme="dark"]) .projects.k .m-row{border:1px solid var(--c-line);background:var(--c-surface)}
:where(html[data-theme="dark"]) .projects.k .m-row:active{background:var(--c-surface)}
:where(html[data-theme="dark"]) .projects.k .m-row .thumb{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .projects.k .m-row .tag{background:var(--c-seg)}
:where(html[data-theme="dark"]) .projects.k .m-row .m-mine{background:var(--c-accent-fill)}
:where(html[data-theme="dark"]) :where(.k) .pl-big{border-color:var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .pl-big:hover{box-shadow:0 14px 34px rgba(0,0,0,0.29)}
:where(html[data-theme="dark"]) :where(.k) .pl-big__head{background:linear-gradient(135deg,var(--c-app) 0%,var(--c-accent-tint) 100%);border-block-end:1px solid var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .pl-wait .row:hover{background:var(--c-subtle)}
:where(html[data-theme="dark"]) :where(.k) .vcanvas{background-color:var(--c-seg);background-image:radial-gradient(rgba(0,0,0,0.2) 1px,transparent 1.2px)}
:where(html[data-theme="dark"]) :where(.k) .m-tools{background:rgba(26,31,40,0.9);border-color:var(--c-line-strong);box-shadow:0 8px 24px rgba(0,0,0,0.35)}
:where(html[data-theme="dark"]) :where(.k) .m-toolmenu__btn{background:rgba(26,31,40,0.9)!important;box-shadow:0 8px 24px rgba(0,0,0,0.35)!important}
:where(html[data-theme="dark"]) :where(.k) .m-fab{background:linear-gradient(135deg,var(--c-accent-solid),var(--c-accent-solid));box-shadow:0 10px 24px rgba(0,0,0,0.6),inset 0 1px 0 rgba(255,255,255,.18);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .m-sheet{box-shadow:0 -10px 34px rgba(0,0,0,0.4)}
:where(html[data-theme="dark"]) :where(.k) .m-sheet__grab::before{background:var(--c-pressed)}
:where(html[data-theme="dark"]) :where(.k) .m-edchip{background:var(--c-app);border-color:#314A72}
:where(html[data-theme="dark"]) :where(.k) .vwait{background:linear-gradient(90deg,var(--c-app),var(--c-surface) 70%)}
:where(html[data-theme="dark"]) :where([dir="rtl"]) .vwait{background:linear-gradient(270deg,var(--c-app),var(--c-surface) 70%)}
:where(html[data-theme="dark"]) :where(.k) .m-viewer .btn--primary.m-btn{box-shadow:0 8px 20px rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) :where(.k) .vtools{background:linear-gradient(var(--c-surface),var(--c-surface))}
:where(html[data-theme="dark"]) :where(.k) .vtools__zoom{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app .m-scroll{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app .m-chip{background:var(--c-surface);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-chip[aria-pressed="true"]{background:var(--c-accent-solid);box-shadow:0 4px 12px rgba(0,0,0,0.55);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .m-head{color:var(--c-text-3)}
:where(html[data-theme="dark"]) .m-app .m-search .m-field,:where(html[data-theme="dark"]) .m-app .m-pg .k-search,:where(html[data-theme="dark"]) .m-app .ch__search .field{background:var(--c-seg)}
:where(html[data-theme="dark"]) .m-app .ws-seltoggle{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-more__pill{background:rgba(0,0,0,0.72)!important;color:#fff!important}
:where(html[data-theme="dark"]) .m-app .m-list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-list > li + li{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-card .sheet-card__top .m-mine{box-shadow:0 2px 6px rgba(0,0,0,0.6)}
:where(html[data-theme="dark"]) .m-app .m-pg .sc__title{color:var(--c-text-3)}
:where(html[data-theme="dark"]) .m-app .m-pg .sc__list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-pg .sc__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .m-pg .lrow{background:var(--c-surface)}
:where(html[data-theme="dark"]) .m-app .m-pg .lrow:active{background:var(--c-subtle)}
:where(html[data-theme="dark"]) .m-app .lrow--member .lrow__meta{color:var(--c-text-3)}
:where(html[data-theme="dark"]) .m-app .lrow--member .lrow__lead{background:linear-gradient(135deg,var(--c-accent-tint),var(--c-accent-tint))}
:where(html[data-theme="dark"]) .m-app .lrow--member .avatar--me{background:linear-gradient(135deg,var(--c-accent-fill),var(--c-accent-fill))}
:where(html[data-theme="dark"]) .m-app .tk-kpis .rfi-kpi{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .tk-kpis .rfi-kpi[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .seg{background:var(--c-seg)}
:where(html[data-theme="dark"]) .m-app .seg__btn[aria-pressed="true"],:where(html[data-theme="dark"]) .m-app .seg__btn[aria-selected="true"]{background:var(--c-seg-on);box-shadow:0 1px 3px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) .m-app .m-sticky{background:var(--c-app)}
:where(html[data-theme="dark"]) :where(.k) .ch-conv .avatar,:where(html[data-theme="dark"]) :where(.k) .ch__head .avatar{background:linear-gradient(135deg,var(--c-accent-tint),var(--c-accent-tint))}
:where(html[data-theme="dark"]) .m-app .ch__list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .ch__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .ch__log{background:var(--c-app)}
:where(html[data-theme="dark"]) :where(.k) .ch-msg__bubble{background:var(--c-surface)!important;box-shadow:0 1px 2px rgba(0,0,0,0.18)}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__bubble{background:linear-gradient(135deg,var(--c-accent-fill),var(--c-accent-fill))!important}
:where(html[data-theme="dark"]) :where(.k) .ch-day{color:var(--c-text-3);background:rgba(26,31,40,0.8)}
:where(html[data-theme="dark"]) :where(.k) .ch__composer{background:var(--c-surface);border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) :where(.k) .ch__input{background:var(--c-app)!important}
:where(html[data-theme="dark"]) .team.k .sc,:where(html[data-theme="dark"]) .tasks.k .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .tasks.k .rfi-kpi:hover{box-shadow:0 6px 16px rgba(0,0,0,0.22)}
:where(html[data-theme="dark"]) :where(.k) .lrow--member .lrow__lead{background:linear-gradient(135deg,var(--c-accent-tint),var(--c-accent-tint))}
:where(html[data-theme="dark"]) .m-app .tk-morefilters{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .tk-morefilters__in{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .settings.k .m-chips{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app .settings.k .sc{background:var(--c-surface)!important;border:1px solid var(--c-line)!important}
:where(html[data-theme="dark"]) .m-app .settings.k .field--lg{background:var(--c-app);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .settings.k .field--lg:focus-within{background:var(--c-surface)}
:where(html[data-theme="dark"]) .m-app .settings.k .check--block{background:var(--c-app)}
:where(html[data-theme="dark"]) .settings.k .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .activity.k .pg__tools .check{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .activity.k .k-day{background:linear-gradient(var(--c-app) 75%,rgba(242,245,250,0));color:var(--c-text-3)}
:where(html[data-theme="dark"]) .m-app .activity.k .k-list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .activity.k .k-list > li + li{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .activity.k .lrow--event .a1{color:var(--c-text-3)}
:where(html[data-theme="dark"]) .activity.k .lrow--event .lrow__lead,:where(html[data-theme="dark"]) .search.k .lrow__lead.avatar{background:linear-gradient(135deg,var(--c-accent-tint),var(--c-accent-tint))}
:where(html[data-theme="dark"]) .m-app .search.k .sc__title{color:var(--c-text-3)!important}
:where(html[data-theme="dark"]) .m-app .search.k .sc__list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .search.k .sc__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .search.k .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .search.k .lrow--hit:hover{background:var(--c-subtle)}
:where(html[data-theme="dark"]) .search.k mark{background:#3D361A}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .m-pg > .sc{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .sc__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .field--lg{background:var(--c-app);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .field--lg:focus-within{background:var(--c-surface)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .field--disabled{background:var(--c-seg)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .check--block{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app .view:has(.seg--lang) .sc--danger{border-color:#723531}
:where(html[data-theme="dark"]) .seg--lang{background:var(--c-seg)}
:where(html[data-theme="dark"]) .seg--lang .seg__btn[aria-pressed="true"],:where(html[data-theme="dark"]) .seg--lang .seg__btn[aria-checked="true"]{background:var(--c-accent-solid);box-shadow:0 2px 6px rgba(0,0,0,0.55);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .view:has(.seg--lang) .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .updates.k .pg__tools .btn{background:var(--c-surface);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .updates.k .factions .seg{background:var(--c-seg)}
:where(html[data-theme="dark"]) .m-app .updates.k .factions .seg__btn[aria-pressed="true"]{background:var(--c-seg-on);box-shadow:0 1px 3px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) .m-app .updates.k .factions .select{background:var(--c-surface);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .updates.k .k-list{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .updates.k .k-list > li + li{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .updates.k .lrow--event.is-unread{background:var(--c-subtle)}
:where(html[data-theme="dark"]) .m-app .updates.k .lrow--event .a1{color:var(--c-text-3)}
:where(html[data-theme="dark"]) .updates.k .lrow__lead.avatar{background:linear-gradient(135deg,var(--c-accent-tint),var(--c-accent-tint))}
:where(html[data-theme="dark"]) .updates.k .unread{background:var(--c-accent-fill);box-shadow:0 0 0 3px rgba(0,0,0,0.33)}
:where(html[data-theme="dark"]) .m-app .company.k .cs-head{background:radial-gradient(120% 140% at 100% 0%,var(--c-accent-fill) 0%,var(--c-accent-fill) 55%,var(--c-accent-fill) 100%);box-shadow:0 10px 26px rgba(0,0,0,0.55)}
:where(html[data-theme="dark"]) .m-app .company.k .cs-logo{background:rgba(255,255,255,0.14)}
:where(html[data-theme="dark"]) .m-app .company.k .cs-tabs{background:var(--c-app)}
:where(html[data-theme="dark"]) .m-app .company.k .sc{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .company.k .sc__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .company.k .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .meetings.k .sc,:where(html[data-theme="dark"]) .m-app .prints.k .m-pg > .sc,:where(html[data-theme="dark"]) .m-app .view:has(.fr-filters) .m-pg > .sc{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .prints.k .pr-shop{background:var(--c-accent-tint)}
:where(html[data-theme="dark"]) .m-app .prints.k .m-pg > .empty{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .fr-filters .chip{background:var(--c-surface);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .fr-filters .chip--on{background:var(--c-accent-solid);box-shadow:0 4px 12px rgba(0,0,0,0.55);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .meetings.k .field--lg,:where(html[data-theme="dark"]) .m-app .prints.k .field--lg,:where(html[data-theme="dark"]) .m-app .view:has(.fr-filters) .field--lg,:where(html[data-theme="dark"]) .m-app .view:has(.fr-filters) .textarea{background:var(--c-app);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .meetings.k .sc,:where(html[data-theme="dark"]) .prints.k .sc,:where(html[data-theme="dark"]) .view:has(.fr-filters) .sc{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .fr-filters .chip--on{background:var(--c-accent-solid);color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .handover.k .pg__tools .btn{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .rfi.k .seg,:where(html[data-theme="dark"]) .m-app .apartments.k .bk-switch{background:var(--c-seg)}
:where(html[data-theme="dark"]) .m-app .rfi.k .seg__btn[aria-pressed="true"],:where(html[data-theme="dark"]) .m-app .rfi.k .seg__btn[aria-selected="true"],:where(html[data-theme="dark"]) .m-app .apartments.k .bk-switch .seg__btn[aria-pressed="true"],:where(html[data-theme="dark"]) .m-app .apartments.k .bk-switch .seg__btn[aria-selected="true"]{background:var(--c-seg-on);box-shadow:0 1px 3px rgba(0,0,0,0.26)}
:where(html[data-theme="dark"]) .m-app .rfi.k .rfi-kpi{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .rfi.k .rfi-kpi[aria-pressed="true"]{background:var(--c-accent-solid);color:var(--c-on-accent)}
/* the words and counts inside a selected control follow the dark text on the light accent (Liav 8.11.2026) */
:where(html[data-theme="dark"]) :where(.k) .m-chip[aria-pressed="true"] .chip__count{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .m-chip[aria-pressed="true"] .chip__count{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .tk-kpis .rfi-kpi[aria-pressed="true"] b,:where(html[data-theme="dark"]) .m-app .tk-kpis .rfi-kpi[aria-pressed="true"] span{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .rfi.k .rfi-kpi[aria-pressed="true"] b,:where(html[data-theme="dark"]) .m-app .rfi.k .rfi-kpi[aria-pressed="true"] span{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .fr-filters .chip--on .num,:where(html[data-theme="dark"]) .fr-filters .chip--on .num{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .rfi.k .m-pg > .empty,:where(html[data-theme="dark"]) .m-app .rfi.k .m-pg > div > .empty{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .rfi.k .m-pg > .sc,:where(html[data-theme="dark"]) .m-app .apartments.k .m-pg > .sc,:where(html[data-theme="dark"]) .m-app .apartments.k .m-pg > div > .sc,:where(html[data-theme="dark"]) .m-app .handover.k .m-pg > .sc,:where(html[data-theme="dark"]) .m-app .handover.k .m-pg > .k-stack{background:var(--c-surface);border:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .apartments.k .sc__list > * + *{border-block-start:1px solid var(--c-line)}
:where(html[data-theme="dark"]) .m-app .apartments.k .k-day{color:var(--c-text-3);background:var(--c-subtle)}
:where(html[data-theme="dark"]) .m-app .apartments.k .lrow--apt{background:var(--c-surface)}
:where(html[data-theme="dark"]) .m-app .apartments.k .lrow--apt:active{background:var(--c-subtle)}
:where(html[data-theme="dark"]) .m-app .apartments.k .bk-tools .select{background:var(--c-surface);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .rfi.k .field--lg,:where(html[data-theme="dark"]) .m-app .apartments.k .field--lg,:where(html[data-theme="dark"]) .m-app .handover.k .field--lg,:where(html[data-theme="dark"]) .m-app .handover.k .textarea,:where(html[data-theme="dark"]) .m-app .apartments.k .m-field{background:var(--c-app);border-color:var(--c-line)}
:where(html[data-theme="dark"]) .m-app .handover.k .h3-stage{border:1.5px solid var(--c-line);background:var(--c-subtle)}
:where(html[data-theme="dark"]) .rfi.k .sc,:where(html[data-theme="dark"]) .apartments.k .sc,:where(html[data-theme="dark"]) .handover.k .sc,:where(html[data-theme="dark"]) .handover.k .k-stack{border-color:var(--c-line)}
:where(html[data-theme="dark"]) .rfi.k .rfi-kpi:hover{box-shadow:0 6px 16px rgba(0,0,0,0.22)}

/* ── from koma-native.css ── */
@media (hover:none){html:root:where([data-theme="dark"]) .k .btn--primary:hover:not(:active):not(:disabled):not(.is-disabled){background:var(--c-accent-solid);color:var(--c-on-accent)}}
:where(html[data-theme="dark"]) .ar-scrim{background:rgba(0,0,0,0.57)}
:where(html[data-theme="dark"]) .ar-sheet{box-shadow:0 -1px 0 rgba(0,0,0,0.13),0 -16px 48px rgba(0,0,0,0.4)}
:where(html[data-theme="dark"]) .ar-tile__count{background:var(--c-accent-fill);color:var(--c-on-accent)}
html:root:where([data-theme="dark"]) .k .hello__stat--lead{background:var(--c-accent-fill)}
html:root:where([data-theme="dark"]) .k .m-ptabs .m-ptab[aria-selected="true"]{box-shadow:0 1px 2px rgba(0,0,0,0.18),0 2px 6px rgba(0,0,0,0.13)}
html:root:where([data-theme="dark"]) .ar-tile__ic{box-shadow:0 1px 2px rgba(0,0,0,0.18)}
html:root:where([data-theme="dark"]) .ar-tile[aria-current="page"] .ar-tile__ic{background:var(--c-accent-solid);color:var(--c-on-accent)}
@media (hover:hover) and (pointer:fine){html:root:where([data-theme="dark"]) .k .m-ptabs .m-ptab:not([aria-selected="true"]):hover{background:rgba(26,31,40,0.6)}}

/* ───────── 3. hand-tuned (after the mirror: these win) ───────── */
/* filled controls: the PlanBox blue / the danger red with white text */
html[data-theme="dark"] :where(.k) .btn--danger.btn--primary:not(:disabled):not(.is-disabled){background:var(--c-danger-fill);border-color:var(--c-danger-fill);color:#fff}
/* text editions and the inbox preview of a text: dark ink on the white paper (the paper stays white in dark, review 8.11 F-1) */
html[data-theme="dark"] :where(.k) :is(.vtext,.stage__text){color:#1A1F27}
html[data-theme="dark"] :where(.k) .btn--danger:not(.btn--primary){border-color:#6B3236}
html:root[data-theme="dark"] .k .hello__stat--lead *{color:var(--c-on-accent)}      /* dark digits on the light accent (Liav 8.11.2026 12:25) */
/* segmented controls: the chosen segment is the raised one (as on the platform), never darker than its track */
html[data-theme="dark"] :where(.k) .seg:not(.seg--lang)>.seg__btn:is([aria-pressed="true"],[aria-selected="true"]){background:var(--c-seg-on);box-shadow:none}
html:root[data-theme="dark"] .k .m-ptabs .m-ptab[aria-selected="true"]{background:var(--c-seg-on);box-shadow:none}
html[data-theme="dark"] :where(.k) .seg:not(.seg--lang){background:var(--c-seg)}
/* the viewer: a dark neutral stage around the white sheet, no dot grid */
html[data-theme="dark"] :where(.k) .vcanvas{background-color:var(--c-canvas);background-image:none}
html[data-theme="dark"] :where(.k) .vsheet{box-shadow:0 0 0 1px rgba(255,255,255,.06),0 18px 48px rgba(0,0,0,.55)}
/* the areas sheet ("עוד") and the bars */
html[data-theme="dark"] .ar-scrim{background:rgba(0,0,0,.55)}
html[data-theme="dark"] .ar-sheet{box-shadow:0 -1px 0 rgba(255,255,255,.06),0 -16px 48px rgba(0,0,0,.5)}
html:root[data-theme="dark"] .ar-tile__ic{box-shadow:none}
html:root[data-theme="dark"] .k .m-bar{box-shadow:0 1px 0 var(--c-line)}
/* selection and the native scrollbars follow color-scheme; text selection stays readable */
html[data-theme="dark"] ::selection{background:rgba(130,177,255,.35);color:#fff}

/* the bottom bar's count: the PlanBox fill blue with white digits (4.96:1), no red (Liav 8.11.2026) */
html[data-theme="dark"] :where(.k) .m-nav__ic .badge{background:var(--c-accent-fill);box-shadow:0 0 0 2px var(--c-bar-nav)}

/* ───────── Liav 8.11.2026 12:25: text and digits on the light-accent fills (dark text, ≥ 4.5:1) ─────────
   Only colours; the light rules they mirror are untouched (light mode unchanged). */
:where(html[data-theme="dark"]) .legacy .counter{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .badge--accent{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .m-nav__ic .badge{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .ws-minechip.has-items .chip__count,:where(html[data-theme="dark"]) :where(.k) .ws-minechip.has-items[aria-pressed="true"] .chip__count{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .ob__step.is-done .ob__mark,:where(html[data-theme="dark"]) :where(.k) .hm-cl__step.is-done .ob__mark,:where(html[data-theme="dark"]) :where(.k) .cs-step.is-done .ob__mark{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .st__num{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .ch-voice__btn{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .acct-card__av{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .acct-menu .nav__item--quiet .nav__count{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .k-acct .avatar--me,:where(html[data-theme="dark"]) :where(.k) .userbtn .avatar--me{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .lrow--member .avatar--me{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) :where(.k) .sheet-card .mine,:where(html[data-theme="dark"]) :where(.k) .sheet-card .m-mine{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .projects.k .m-row .m-mine{color:var(--c-on-accent)}
/* own chat bubbles on #82B1FF: dark words, links, meta, ticks and the quoted reply / file / voice inside them */
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__bubble{color:var(--c-on-accent)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta{color:rgba(14,18,24,.78)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-quote{background:rgba(14,18,24,.10)!important;border-inline-start-color:var(--c-on-accent)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-file{background:rgba(14,18,24,.08)!important;border-color:rgba(14,18,24,.30)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-voice__btn,:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-voice.is-played .ch-voice__btn{background:rgba(14,18,24,.16)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-voice__bar{background:rgba(14,18,24,.25)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-voice__fill{background:var(--c-on-accent)!important}
/* ticks on the light bubble (review F-1, 8.11): ✓ / ✓✓ delivered muted (3.1:1 on the bubble), ✓✓ read in deep navy (9.5:1) and a
   heavier stroke, so read and delivered stay apart (3.1:1) — the time keeps its own darker colour */
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta .ch-tick:not(.is-read),:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta .ch-tick:not(.is-read) *{color:rgba(14,18,24,.53)!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta .ch-tick.is-read,:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta .ch-tick.is-read *{color:#000020!important}
:where(html[data-theme="dark"]) :where(.k) .ch-msg--mine .ch-msg__meta .ch-tick.is-read .ic{stroke-width:2}
/* the company header (phone) on the light accent */
:where(html[data-theme="dark"]) .m-app .company.k .cs-head{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .company.k .cs-head .pg__title{color:var(--c-on-accent)}
:where(html[data-theme="dark"]) .m-app .company.k .cs-head .pg__lead,:where(html[data-theme="dark"]) .m-app .company.k .cs-head .pg__lead *{color:#1D2A3E}
:where(html[data-theme="dark"]) .m-app .company.k .cs-head .status--ok::before{background:#0E6B43}
