/* PlanBox — round "light", option 3 "כמו אפליקציה" (Native). Liav 2026-11-07 15:59 "אני בוחר 3"; DESIGN.md.
   Loaded last, product-wide (not per screen): the platform conventions on top of the approved layout — tinted buttons with the
   platform press, grey / ink filters, the phone's project areas as one segmented control (4 + "הכול"), grouped inset cards,
   translucent bars, the areas sheet ("עוד", native.js), push / pop screen transitions (View Transitions API), and the touch
   fixes that stop the app feeling like "a website added to the home screen". Tokens live in koma.css (:root).
   Previews: design/concepts/2026-11-06-light/option-3/. Emil Kowalski's design engineering governs the values:
   press 120 ms strong ease-out, drawer curve for sheets and pushes, exit faster than entrance, hover only with a fine
   pointer, reduced motion = fades only.
   ─ sheet   .ar-layer .ar-scrim .ar-sheet .ar-grab .ar-head .ar-title .ar-x .ar-filter .ar-body .ar-sec .ar-sec__title
             .ar-grid .ar-tile (.ar-tile__ic .ar-tile__label .ar-tile__count) .ar-empty     state: html.ar-open, .ar-layer.is-open
   ─ shell   .m-nav__more  .m-search-btn  .m-ptabs .m-seg .m-ptab--all      transitions: html[data-nav=push|pop|fade]
   (`html:root` prefix: equal weight to the reviewed preview layer, so it wins over the earlier extension sheets.) */

/* ───────── 1. touch: no page bounce, no tap flash, no 300 ms wait, no text selection when a control is held ───────── */
html:root{overscroll-behavior:none;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%}
html:root body{overscroll-behavior:none}
html:root :is(button,a,[role=button],[role=tab],summary,label.check,.ar-tile){touch-action:manipulation}
/* controls that run their own gesture keep touch-action:none (integration 7.11): the chat microphone (hold to record, slide to
   cancel, chat.js) and the viewer sheet's grab handle (drag, viewer.js); `manipulation` would let the browser take the gesture */
html:root .k :is(.ch__mic,.m-sheet__grab){touch-action:none}
@media (hover:none) and (pointer:coarse){
  html:root :is(button,[role=button],[role=tab],.btn,.chip,.m-chip,.m-nav__item,.ar-tile,.m-iconbtn){-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
}
@media (max-width:899px){html:root :is(input,select,textarea){font-size:16px;font-size:max(16px,1rem)}}      /* never under 16 px (iOS zooms into smaller fields), larger with the user's text size */


@media (hover:none){
  html:root .k .btn:not(.btn--primary):not(.btn--ghost):not(.btn--link):hover:not(:active){background:var(--c-surface)}
  html:root .k .btn--primary:hover:not(:active):not(:disabled):not(.is-disabled){background:var(--c-accent)}
  html:root .k :is(.btn--ghost,.btn--link,.tabs__tab,.menu__item):hover:not(:active){background:transparent}
}


html:root .k :is(.btn,.m-btn,.chip,.m-chip,.m-iconbtn,.seg__btn,.m-nav__item,.ar-tile,.m-card,.sheet-card,.m-fab,.tabs__tab){transition:transform var(--t-press) var(--ease-out),background-color 120ms ease,border-color 120ms ease,color 120ms ease,box-shadow 120ms ease}
html:root .k :is(.btn,.m-btn,.chip,.m-chip,.m-iconbtn,.seg__btn,.ar-tile,.m-fab):active{transform:scale(.98)}
html:root .k :is(.sheet-card,.m-card):active{transform:scale(.985)}
/* a confirm popover lives inside its trigger (kui.js confirmAction): pressing inside it must not press the trigger, or the
   popover would move under the pointer */
html:root .k :is(.pop-anchor,:has(> .dialog--pop)):active{transform:none;opacity:1}
html:root .k .m-nav__item:active .m-nav__ic{transform:scale(.9)}
html:root .k .m-nav__ic{transition:transform var(--t-press) var(--ease-out)}


html:root .m-app{block-size:100dvh}
html:root .m-bar{padding-block-start:env(safe-area-inset-top,0px);block-size:calc(var(--m-h-bar) + env(safe-area-inset-top,0px))}
html:root .m-nav{padding-block-end:env(safe-area-inset-bottom,0px)}


html:root .m-nav .m-nav__more{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0;margin:0}
html:root .m-nav .m-nav__more[aria-expanded="true"]{color:var(--c-accent)}
html:root .m-bar .m-search-btn{color:var(--c-ink)}


/* only the screen content is captured: the top bar and the bottom bar stay live (taps on them are never lost); the root is
   not captured at all */
html:root{view-transition-name:none}
/* Motion tokens (7.11 21:22, "כמו שאפל עושים"): a critically damped spring — damping ratio 1, response 0.27 s
   (ω = 2π/0.27 ≈ 23.3 rad/s, x(t) = 1 − (1+ωt)·e^(−ωt)), sampled over 320 ms where it reaches 99.5 %; no overshoot (a
   navigation or a sheet opened by a tap carries no momentum). Where linear() is missing: the drawer curve over 300 ms. */
html:root{--ease-spring:cubic-bezier(.32,.72,0,1);--t-spring:300ms}
@supports (transition-timing-function:linear(0,1)){html:root{--ease-spring:linear(0, 0.054, 0.171, 0.307, 0.439, 0.555, 0.654, 0.734, 0.798, 0.848, 0.886, 0.915, 0.937, 0.954, 0.966, 0.975, 0.982, 0.987, 0.991, 0.993, 1);--t-spring:320ms}}
/* named only while a transition runs: a view-transition-name makes a stacking context, which would keep popovers inside
   #main (kui.js confirm) under the overlays' scrim */
html:root[data-nav] #main{view-transition-name:pb-main}
/* a push / pop into or out of a full screen without bars (the phone's chat thread, native.js setWideNav): the whole app column
   travels, bars included */
html:root[data-nav][data-nav-wide] #main{view-transition-name:none}
html:root[data-nav][data-nav-wide] .m-app .app__main{view-transition-name:pb-main}
/* a tap during the 300 ms push reaches the new screen underneath instead of the transition's picture (no lost taps) */
::view-transition{pointer-events:none}
::view-transition-group(*){animation-duration:var(--t-spring);animation-timing-function:var(--ease-spring)}
::view-transition-old(root),::view-transition-new(root){animation:none}
html[data-nav="fade"]::view-transition-old(pb-main){animation:pb-fade-out 120ms ease both}
html[data-nav="fade"]::view-transition-new(pb-main){animation:pb-fade-in 160ms ease both}

html[dir="rtl"][data-nav="push"]::view-transition-new(pb-main){animation:pb-in-from-left var(--t-spring) var(--ease-spring) both}
html[dir="rtl"][data-nav="push"]::view-transition-old(pb-main){animation:pb-out-to-right var(--t-spring) var(--ease-spring) both}
html[dir="rtl"][data-nav="pop"]::view-transition-new(pb-main){animation:pb-in-from-right-back var(--t-spring) var(--ease-spring) both}
html[dir="rtl"][data-nav="pop"]::view-transition-old(pb-main){animation:pb-out-to-left var(--t-spring) var(--ease-spring) both;z-index:2}
/* LTR (English, Russian): the mirror — forward comes in from the right */
html[dir="ltr"][data-nav="push"]::view-transition-new(pb-main){animation:pb-in-from-right var(--t-spring) var(--ease-spring) both}
html[dir="ltr"][data-nav="push"]::view-transition-old(pb-main){animation:pb-out-to-left-third var(--t-spring) var(--ease-spring) both}
html[dir="ltr"][data-nav="pop"]::view-transition-new(pb-main){animation:pb-in-from-left-back var(--t-spring) var(--ease-spring) both}
html[dir="ltr"][data-nav="pop"]::view-transition-old(pb-main){animation:pb-out-to-right-full var(--t-spring) var(--ease-spring) both;z-index:2}
/* iOS parallax: the screen underneath moves a third of the way (30 %) and dims slightly (brightness .9) — it is behind,
   not gone; the screen on top travels the full width */
@keyframes pb-in-from-right{from{transform:translateX(100%)}to{transform:none}}
@keyframes pb-out-to-left-third{to{transform:translateX(-30%);filter:brightness(.9)}}
@keyframes pb-in-from-left-back{from{transform:translateX(-30%);filter:brightness(.9)}to{transform:none;filter:none}}
@keyframes pb-out-to-right-full{to{transform:translateX(100%)}}
@keyframes pb-in-from-left{from{transform:translateX(-100%)}to{transform:none}}
@keyframes pb-out-to-right{to{transform:translateX(30%);filter:brightness(.9)}}
@keyframes pb-in-from-right-back{from{transform:translateX(30%);filter:brightness(.9)}to{transform:none;filter:none}}
@keyframes pb-out-to-left{to{transform:translateX(-100%)}}
/* the screen on top casts a soft edge over the one underneath while it travels */
html[data-nav="push"]::view-transition-new(pb-main),html[data-nav="pop"]::view-transition-old(pb-main){box-shadow:0 0 28px rgba(15,26,46,.14)}
@keyframes pb-fade-in{from{opacity:0}}
@keyframes pb-fade-out{to{opacity:0}}


.ar-layer{position:fixed;inset:0;z-index:80;font-family:inherit}
.ar-scrim{position:absolute;inset:0;background:rgba(15,26,46,.38);opacity:0;transition:opacity var(--t-sheet-out) ease}
.ar-layer.is-open .ar-scrim{opacity:1;transition-duration:var(--t-sheet-in)}
.ar-sheet{position:absolute;inset-inline:0;inset-block-end:0;max-block-size:min(86dvh,760px);display:flex;flex-direction:column;
  background:var(--c-surface);border-start-start-radius:14px;border-start-end-radius:14px;
  box-shadow:0 -1px 0 rgba(15,26,46,.06),0 -16px 48px rgba(15,26,46,.18);padding-block-end:env(safe-area-inset-bottom,0px);
  transform:translateY(100%);transition:transform var(--t-sheet-out) var(--ease-out);touch-action:pan-y;will-change:transform}
.ar-layer.is-open .ar-sheet{transform:translateY(0);transition:transform var(--t-spring) var(--ease-spring)}
.ar-grab,.ar-head{touch-action:none}
/* the sheet's surface continues below its edge, so a rubber-band pull up never shows a gap at the bottom */
.ar-sheet::after{content:"";position:absolute;inset-inline:0;inset-block-start:100%;block-size:20vh;background:inherit;pointer-events:none}
.ar-grab{display:grid;place-items:center;block-size:24px;cursor:grab;flex:none}
.ar-grab span{inline-size:40px;block-size:5px;border-radius:3px;background:var(--c-line-strong)}
.ar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 16px 8px;flex:none}
.ar-title{display:flex;align-items:center;gap:8px;font-size:1.25rem;line-height:1.75rem;font-weight:600;color:var(--c-ink)}
.ar-title .ic{inline-size:20px;block-size:20px;color:var(--c-accent)}
.ar-x{display:grid;place-items:center;inline-size:44px;block-size:44px;border-radius:50%;color:var(--c-text-2);background:none;border:0}
.ar-x .ic{inline-size:20px;block-size:20px}
.ar-filter{display:flex;align-items:center;gap:8px;margin:0 16px 8px;padding-inline:12px;min-block-size:44px;border-radius:12px;background:var(--c-app);color:var(--c-text-2);flex:none}
.ar-filter input::placeholder{color:var(--c-text-2);opacity:1}
.ar-filter input{flex:1;min-inline-size:0;border:0;background:none;font:inherit;font-size:1rem;color:var(--c-ink);outline:none;min-block-size:44px}
.ar-filter:focus-within{box-shadow:0 0 0 2px var(--c-accent)}
.ar-filter input:focus-visible{box-shadow:none}      /* L7: one ring, on the frame (the global :focus-visible ring drew a second one inside it) */
.ar-body{overflow-y:auto;overscroll-behavior:contain;padding:4px 16px 20px;-webkit-overflow-scrolling:touch}
.ar-sec + .ar-sec{margin-block-start:16px}
.ar-sec__title{font-size:.8125rem;line-height:1.125rem;font-weight:600;color:var(--c-text-3);margin:0 2px 8px}
.ar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ar-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-block-size:88px;padding:12px 6px;
  border-radius:14px;background:var(--c-app);color:var(--c-ink);text-align:center;font:inherit;font-size:.875rem;line-height:1.125rem;border:1px solid transparent;cursor:pointer;text-decoration:none}
.ar-tile__ic{display:grid;place-items:center;inline-size:28px;block-size:28px;color:var(--c-accent)}
.ar-tile__ic .ic{inline-size:24px;block-size:24px;stroke-width:1.6}
.ar-tile__label{overflow-wrap:normal;hyphens:none;max-inline-size:100%}      /* M2: whole words, 2-3 lines; the grid below gives a tile room for its longest word */
.ar-tile__count{position:absolute;inset-block-start:8px;inset-inline-end:8px;min-inline-size:20px;min-block-size:20px;padding-inline:6px;border-radius:10px;background:var(--c-accent);color:var(--c-surface);font-size:.75rem;line-height:1.25rem;font-weight:600}
.ar-tile[aria-current="page"]{border-color:var(--c-accent-line);background:var(--c-accent-tint)}
.ar-tile:focus-visible,.ar-x:focus-visible{outline:none;box-shadow:0 0 0 2px var(--c-surface),0 0 0 4px var(--c-accent)}
.ar-empty{padding:24px 0;text-align:center;color:var(--c-text-2)}
.ar-layer .sr{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}

@media (min-width:900px){
  .ar-sheet{inset:auto;inset-block-start:12vh;left:50%;translate:-50% 0;inline-size:min(720px,92vw);max-block-size:76vh;border-radius:16px;
    transform:scale(.97);opacity:0;transition:transform 150ms var(--ease-out),opacity 150ms ease}
  .ar-layer.is-open .ar-sheet{transform:none;opacity:1;transition:transform 200ms var(--ease-out),opacity 160ms ease}
  .ar-grab,.ar-sheet::after{display:none}
  .ar-head{padding-block-start:16px}
  .ar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ar-tile{min-block-size:76px}
}
@media (hover:hover) and (pointer:fine){.ar-tile:hover{background:var(--c-hover-app)}}
@media (prefers-reduced-motion:reduce){
  .ar-sheet,.ar-layer.is-open .ar-sheet{transition:opacity 150ms ease;transform:none}
  .ar-layer:not(.is-open) .ar-sheet{opacity:0}
  html:root .k :is(.btn,.m-btn,.chip,.m-chip,.m-iconbtn,.ar-tile,.m-card,.sheet-card):active{transform:none}
}


@media (max-width:899px){
  html:root .k :is(.kd,dialog,.m-sheet) .btn{min-block-size:44px}
  html:root .k :is(.kd,dialog,.m-sheet) :is(.btn--icon,button[aria-label]:not(.btn)){min-block-size:44px;min-inline-size:44px}
}

/* ───────── 2. option 3 visual language ───────── */
html:root .m-app{font-size:1rem;line-height:1.375rem}
html:root .k :is(h1,.topbar__title,.pg__title,.kd__title){font-weight:600;letter-spacing:-.01em}
/* the bars keep their height (56 / 64 px), so their own text grows only up to 1.5×; the content and the large title grow freely */
html:root .k .m-bar__title{font-size:1.375rem;line-height:1.75rem;font-size:min(1.375rem,33px);line-height:min(1.75rem,40px);font-weight:700;letter-spacing:-.015em}
html:root .k .m-bar__stack .m-bar__title{font-size:1.0625rem;font-size:min(1.0625rem,20px);font-weight:600}
/* L4 (persona QA 8.11): on the phone the bar's text button (projects: "פרויקט חדש") is an icon, like the bar's other buttons, so the title keeps its space
   next to the count (it was cut to "פרויק..." at 390). The label stays for screen readers (aria-label + visually hidden). */
html:root .k .m-bar #top-actions .btn{inline-size:var(--m-tap-min);min-inline-size:var(--m-tap-min);block-size:var(--m-tap-min);padding:0;justify-content:center}
html:root .k .m-bar #top-actions .btn__label{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%)}
html:root .k .m-bar__stack small{font-size:min(.8125rem,15px);line-height:1.2}
html:root .k .hello__hi{font-size:1.625rem;line-height:2rem;font-weight:700;letter-spacing:-.02em}
html:root .k :is(.m-row__title,.sheet-card__title,.row__title,.lrow__name){font-weight:500}
html:root .k .m-now__title{font-size:1.25rem;line-height:1.625rem;font-weight:600}
html:root .k :is(.sheet-card__num,.row__num,.m-edchip,.ed-badge){font-stretch:87.5%;font-weight:600}

html:root .k .btn{border-radius:10px;font-weight:600}
@media (min-width:900px){html:root .k .btn:not(.btn--sm):not(.btn--icon):not(.btn--link){padding-inline:14px}}
html:root .k .btn:not(.btn--primary):not(.btn--ghost):not(.btn--link):not(.btn--danger){background:var(--c-tint-btn);border-color:transparent;color:var(--c-accent)}
html:root .k .btn--ghost{color:var(--c-accent)}
html:root .k .m-btn{border-radius:14px;font-size:1.0625rem;font-weight:600}

html:root .k :is(.btn,.m-btn,.m-iconbtn,.ar-tile,.m-card,.sheet-card):active{opacity:.6;transition-duration:0ms}
/* the microphone is held for the whole recording: no dimmed / pressed look while it is held (chat.js shows the recorder) */
html:root .k .btn.ch__mic:active{opacity:1;transform:none}
html:root .k :is(.btn,.m-btn,.m-iconbtn,.ar-tile,.m-card,.sheet-card){transition:opacity 200ms ease,transform var(--t-press) var(--ease-out)}

html:root .k .m-chips{gap:6px}
html:root .k :is(.chip,.m-chip){border:0;background:var(--c-chip);border-radius:999px;font-weight:500;color:var(--c-ink)}
html:root .k :is(.chip,.m-chip)[aria-pressed="true"]{background:var(--c-ink);color:var(--c-surface);box-shadow:none}
html:root .k :is(.chip,.m-chip)[aria-pressed="true"] .chip__count{color:var(--c-surface);opacity:.75}
html:root .k .m-chip{block-size:36px;block-size:max(36px,calc(1lh + 12px));padding-inline:14px;font-size:.9375rem}

html:root .k :is(.m-card,.m-now,.sc,.sheet-card){border:0;border-radius:14px;box-shadow:none}
html:root .k .sc--danger{border:1px solid #E7B4AF}      /* the danger card keeps its red edge (koma-pages.css) */
html:root .k .m-now::before{display:none}
html:root .k .m-row{border:0;border-radius:0;box-shadow:inset 0 -1px 0 var(--c-line)}
html:root .k .hello{background:var(--c-surface);background-image:none;border-radius:14px;box-shadow:none;color:var(--c-ink)}
html:root .k .hello::before,html:root .k .hello::after{display:none}
html:root .k .hello :is(.hello__hi){color:var(--c-ink)}
html:root .k .hello__day{color:var(--c-text-2)}
html:root .k .hello__stat{background:var(--c-app);border:0;border-radius:12px}
html:root .k .hello__stat *{color:var(--c-ink)}
html:root .k .hello__stat--lead{background:var(--c-accent)}
html:root .k .hello__stat--lead *{color:var(--c-surface)}
html:root .k :is(.paper,.paper--tile){background-image:none;background-color:var(--c-paper)}
html:root .k .m-bar{background:var(--c-bar)}
html:root .k .m-nav{background:var(--c-bar-nav)}

html:root .k .m-ptabs{display:block;padding:8px 12px;background:var(--c-surface);border-block-end:1px solid var(--c-line)}
html:root .k .m-ptabs .tabs{display:flex;flex-wrap:wrap;gap:2px;padding:2px;border-radius:10px;background:var(--c-seg);overflow:visible;-webkit-mask-image:none;mask-image:none;border:0}
html:root .k .m-ptabs .tabs__nav{display:none!important}
html:root .k .m-ptabs .m-ptab,html:root .k .m-ptabs .m-ptab--all{display:flex;align-items:center;justify-content:center;gap:4px;block-size:44px;block-size:max(44px,calc(1lh + 12px));min-inline-size:0;padding-inline:2px;border-radius:8px;background:transparent;border:0;font:inherit;font-size:.875rem;font-weight:500;color:var(--c-ink);white-space:nowrap}
html:root .k .m-ptabs .m-ptab::before,html:root .k .m-ptabs .m-ptab::after{display:none}
/* equal segments while they fit (basis 0, equal growth); with a large text size a segment never shrinks below its label and
   the control wraps to a second row instead of overflowing (7.11, accessibility) */
html:root .k .m-ptabs :is(.m-ptab,.m-ptab--all){flex:1 1 0;min-inline-size:max-content}
html:root .k .m-ptabs .m-ptab[aria-selected="true"]{background:var(--c-surface);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.06)}
html:root .k .m-ptabs .m-ptab .tabs__count{font-size:.75rem;color:var(--c-text-2)}
html:root .k .m-ptabs .m-ptab--all{color:var(--c-accent);font-weight:600}
/* M2 (persona QA 8.11): the label follows the user's text size (the old min(…,14px) cap froze it at 14px from 130% up); the four items are 98px wide at 390,
   so even 22px labels fit. The unread badge keeps a modest size so it never grows over the icon (it was 29px high at 200%, covering "עליי"). */
html:root .k .m-nav__item{font-size:.6875rem;line-height:1.2;font-weight:500;overflow-wrap:normal;hyphens:none}
html:root .k .m-nav__ic .badge{font-size:.6875rem;font-size:min(.6875rem,13px);block-size:max(18px,calc(min(.6875rem,13px) + 7px))}
html:root .k .m-nav__item[aria-current="page"] .m-nav__ic{background:transparent}
html:root .k .m-nav__item[aria-current="page"]{color:var(--c-accent)}

html:root .ar-sheet{font-family:var(--sans);background:var(--c-app)}
/* four columns while the text is the normal size; a column never gets narrower than 3.75rem or a quarter of the row, so a larger text size drops to 3 / 2 columns
   and every label keeps whole words on 2-3 lines (M2, persona QA 8.11) instead of breaking mid-word */
html:root .ar-grid{grid-template-columns:repeat(auto-fill,minmax(max(3.75rem,calc((100% - 18px) / 4)),1fr));gap:14px 6px}
html:root .ar-tile{background:transparent;border:0;min-block-size:84px;padding:4px 0;font-size:.8125rem;line-height:1rem;font-weight:500;gap:6px}
/* L7 (QA 8.11): the icons of a row sit on one line whatever the number of label lines (the tile starts at its top, not its centre) */
html:root .ar-tile{justify-content:flex-start}
html:root .ar-tile__ic{inline-size:52px;block-size:52px;border-radius:14px;background:var(--c-surface);box-shadow:0 1px 2px rgba(15,26,46,.08)}
html:root .ar-tile__ic .ic{inline-size:24px;block-size:24px}
html:root .ar-tile[aria-current="page"] .ar-tile__ic{background:var(--c-accent);color:var(--c-surface)}
html:root .ar-tile[aria-current="page"]{background:transparent;border:0}
html:root .ar-tile__count{inset-block-start:0;inset-inline-end:calc(50% - 34px)}
html:root .ar-filter{background:var(--c-seg);border-radius:10px}
html:root .ar-sec{background:var(--c-surface);border-radius:14px;padding:12px 8px 6px}
html:root .ar-sec .ar-tile__ic{background:var(--c-app);box-shadow:none}
html:root .ar-sec__title{margin-inline:6px}
@media (min-width:900px){html:root .ar-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}

/* hover, only where there is a fine pointer (Emil / mobile-native): the tinted button and the filter pills */
@media (hover:hover) and (pointer:fine){
  html:root .k .btn:not(.btn--primary):not(.btn--ghost):not(.btn--link):not(.btn--danger):hover{background:var(--c-tint-btn-hover);color:var(--c-accent-hover)}
  html:root .k :is(.chip,.m-chip):not([aria-pressed="true"]):hover{background:var(--c-chip-hover);color:var(--c-ink)}
  html:root .k .m-ptabs .m-ptab:not([aria-selected="true"]):hover{background:rgba(255,255,255,.6)}
}
/* no backdrop-filter on the bars: it would make the top bar the containing block of the fixed menus inside it (the account
   menu's bottom sheet), and the bars never sit over scrolling content here, so a blur would show nothing */

@media (prefers-reduced-motion:reduce){
  html:root .k :is(.btn,.m-btn,.m-iconbtn,.ar-tile,.m-row,.lrow,.m-card,.sheet-card,.chip,.m-chip):active{transform:none}
}

/* ───────── 3. motion and accessibility, refined (Liav 7.11 21:22 "שיהיה יותר ידידותי, שהמעברים יהיו כמו שאפל עושים, שיהיה
   נגיש. תשתמש בemil"). The approved look stays; values from Emil Kowalski and Apple's "Designing Fluid Interfaces". ───────── */

/* rows: an instant tint on touch-down, a 150 ms fade on release (Apple: highlight on press, commit on release) */
html:root .k :is(.m-row,.lrow,.row,.sc__list > a){transition:background-color 150ms ease}
/* --c-row-press keeps the rows' tertiary text at 4.5:1 while pressed (light #E6ECF5: text-3 4.55, text-2 7.27; dark
   --c-pressed #2E3746: text-3 4.53) — the general --c-pressed #D9E2EF would drop text-3 to 4.14 */
html:root{--c-row-press:#E6ECF5}
html:root[data-theme="dark"]{--c-row-press:var(--c-pressed)}
html:root .k :is(.m-row,.lrow,.row,.sc__list > a):active{background-color:var(--c-row-press);transition-duration:0ms}

/* 200 % text: fields and their inputs may shrink to the row (an input's default size would push the row off-screen) */
html:root .k .field{min-inline-size:0;max-inline-size:100%}
html:root .k .field__input{min-inline-size:0}

/* focus is always visible: the selected segment's own shadow must not hide the ring */
html:root .k .m-ptabs :is(.m-ptab,.m-ptab--all):focus-visible,html:root .k .seg__btn:focus-visible{box-shadow:var(--focus)}
/* option 3 took the cards' and pills' shadows away (box-shadow:none above); the keyboard ring comes back on focus */
html:root .k :is(.m-card,.m-now,.sc,.sheet-card,.btn,.m-btn,.chip,.m-chip,.m-row,.lrow,.hello__stat):focus-visible{box-shadow:var(--focus)}
html:root .ar-filter:focus-within{box-shadow:var(--focus)}

/* large title (native.js): large at the top of the content, the bar's own title appears as it scrolls under the bar */
@media (max-width:899px){
  html:root .k .nt-large{padding:8px var(--m-gutter,16px) 4px}
  html:root .k .nt-large::before{content:attr(data-title);display:block;font-size:1.75rem;line-height:2.125rem;font-weight:700;letter-spacing:-.02em;color:var(--c-ink);overflow-wrap:anywhere}
  html:root .k .m-bar--large > .m-bar__title{font-size:1.0625rem;font-size:min(1.0625rem,22px);font-weight:600;letter-spacing:-.01em;transition:opacity 150ms ease}
  html:root .k .m-bar--large:not(.is-collapsed) > .m-bar__title{opacity:0}
  @supports (animation-timeline:view()) and (timeline-scope:--a){
    html:root .m-app{timeline-scope:--nt-large}
    html:root .k .nt-large{view-timeline:--nt-large block}
    html:root .k .m-bar--large > .m-bar__title{transition:none;animation:nt-bar-title linear both;animation-timeline:--nt-large;animation-range:exit 35% exit 90%}
  }
}
@keyframes nt-bar-title{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* edge swipe back (native.js): the screen follows the finger over a dim that clears as it goes */
html:root:not(.nt-zoomed) .m-app:not(.is-viewer) #main .m-scroll{touch-action:pan-y pinch-zoom}
/* M4 (persona QA 8.11): the chat's own scrollers (conversation list #conv, message log #messages) are not .m-scroll; with touch-action:auto the browser took the
   edge drag (pointercancel) and the swipe back never started. Same value as .m-scroll; the microphone keeps its own `none`, horizontal strips keep their own. */
html:root:not(.nt-zoomed) .m-app:not(.is-viewer) #main :is(#conv,.ch__convs,.ch__log){touch-action:pan-y pinch-zoom}
html:root .nt-shade{position:fixed;z-index:0;background:rgba(15,26,46,.16);pointer-events:none}
html:root.nt-swiping #main{position:relative;z-index:1;background:var(--c-app);box-shadow:0 0 28px rgba(15,26,46,.16);will-change:transform}
html:root.nt-swiping #main .m-scroll{overflow-y:hidden}
/* motion round 8.11: the screen the swipe goes back to, under the moving one (its stored picture, native.js shots), and the
   same picture covering the loading frame on the way back (a sticky layer over the screen, gone at the screen's first paint) */
html:root .nt-under{position:absolute;z-index:0;overflow:hidden;display:flex;flex-direction:column;background:var(--c-app);pointer-events:none;will-change:transform}
html:root .nt-under > .view{flex:1 1 auto;min-block-size:0}
html:root .nt-cache{position:sticky;inset-block-start:0;z-index:2;flex:none;overflow:hidden;display:flex;flex-direction:column;background:var(--c-app);pointer-events:none}
html:root .nt-cache > .view{flex:1 1 auto;min-block-size:0}

/* motion round 8.11: the on-screen keyboard (native.js §9). The app keeps to the visible part of the screen, its header stays
   where it is, and the bottom bar steps aside while a field is being typed in; nothing slides (the keyboard is the motion). */
@media (max-width:899px){
  html:root.nt-kb:not(.m-chatfull) :is(.m-app,.auth){position:fixed;inset-inline:0;inset-block-start:var(--nt-vvtop,0px);block-size:var(--nt-vvh,100dvh)}
  html:root.nt-kb:not(.m-chatfull) .m-nav{display:none}
  html:root.nt-kb:not(.m-chatfull) body{overflow:hidden}
}

/* the segmented thumb that slides between segments (native.js copies the selected segment's fill, shadow and radius) */
html:root .k .nt-sliding{position:relative}
html:root .k .nt-sliding > :not(.nt-thumb){position:relative;z-index:1}
html:root .k .nt-thumb{position:absolute;z-index:0;transform-origin:0 50%;pointer-events:none;will-change:transform}
html:root .k .nt-sliding :is(.m-ptab[aria-selected="true"],.seg__btn[aria-pressed="true"]){background:transparent!important;box-shadow:none!important}

/* toasts: a short spring up from below on arrival (a transition, so a replaced toast never restarts from zero); they
   leave faster, 160 ms (native.js) */
html:root .k .toast-host .toast:not(.nt-leaving){transition:transform var(--t-spring) var(--ease-spring),opacity 200ms ease}
@starting-style{html:root .k .toast-host .toast:not(.nt-leaving){transform:translateY(calc(100% + 8px));opacity:0}}
html:root .k .toast-host .toast.nt-leaving{position:absolute}

/* the app's own confirm sheet (kui.js) rises with the same spring; its scrim fades */
@media (max-width:899px){
  html:root .k .m-sheet--modal{transition:transform var(--t-spring) var(--ease-spring)}
  @starting-style{html:root .k .m-sheet--modal{transform:translateY(100%)}}
  html:root .k [data-pop-scrim].m-scrim{transition:opacity 200ms ease}
  @starting-style{html:root .k [data-pop-scrim].m-scrim{opacity:0}}
}

/* reduced motion: cross-fades only — no slide, spring, parallax or travelling thumb */
@media (prefers-reduced-motion:reduce){
  html:root .k .toast-host .toast:not(.nt-leaving){transition:opacity 150ms ease}
  @starting-style{html:root .k .toast-host .toast:not(.nt-leaving){transform:none;opacity:0}}
  html:root .k .m-sheet--modal{transition:opacity 150ms ease}
  @starting-style{html:root .k .m-sheet--modal{transform:none;opacity:0}}
  html:root .k .m-bar--large > .m-bar__title{animation-name:nt-fade-in}
  .ar-layer.is-open .ar-sheet{transition:opacity 150ms ease}
}
@keyframes nt-fade-in{from{opacity:0}to{opacity:1}}

/* contrast (review 8.11 F-3): the phone section labels, search titles and activity times were #6B7A93 / #8594AB (3.1–4.0:1);
   they use the tertiary text token (≥ 4.9:1 on the app grey); the bottom bar's count: see below */
html:root .m-app :is(.m-head,.m-pg .sc__title,.search.k .sc__title){color:var(--c-text-3)!important}
html:root .m-app :is(.activity.k,.updates.k) .lrow--event .a1{color:var(--c-text-3)}      /* L8 (QA 8.11): the updates' times too (2.91:1 on the unread tint) */
html:root .k .m-nav__ic .badge{background:var(--c-accent-fill,var(--c-accent))}      /* Liav 8.11.2026: the count is the one blue (light #0A3D8F, dark fill #82B1FF, dark digits (koma-dark.css) ≥ 4.9:1), never red */

/* L9 (QA 8.11): tap targets. On a touch phone every control's hit area is at least 44 × 44; the hit area grows (an invisible
   ::after, or a taller row for the sign-in text links), the look stays. With a fine pointer the size stays as it is and the hit
   area is at least 24 × 24 (WCAG 2.2 AA 2.5.8). Chips that already extend to 44 (.chip / .m-chip ::after) are not touched. */
html:root .k :is(.auth__links,.auth__legal,.auth__pilot) .auth__link{position:relative}
html:root .k :is(.auth__links,.auth__legal,.auth__pilot) .auth__link::after{content:"";position:absolute;inset:-2px}      /* 20 → 24 */
@media (pointer:coarse),(max-width:759px){
  html:root .k .m-grid .ws-star{inline-size:44px;block-size:44px;inset-block-start:6px;inset-inline-start:6px}      /* the favourite star 40 → 44, same centre */
  html:root .k .rfi-kpi{position:relative}
  html:root .k .rfi-kpi::after{content:"";position:absolute;inset-inline:0;inset-block:-5px;border-radius:inherit}      /* the tasks / RFI count pills 36 → 44 (their strip has 6 / 4 px of room) */
  html:root .k .seg--lang .seg__btn{position:relative}
  html:root .k .seg--lang .seg__btn::after{content:"";position:absolute;inset-inline:0;inset-block:-8px}      /* the language buttons 28 → 44 */
  html:root .k :is(.auth__links,.auth__pilot) .auth__link{position:relative;display:inline-flex;align-items:center;min-block-size:44px}      /* "שכחתי סיסמה" / "אין לי חשבון" / "בקשת פיילוט": the row is 44 tall */
  html:root .k :is(.auth__links,.auth__pilot) .auth__link::after{content:"";position:absolute;inset-inline:-8px;inset-block:0}
  html:root .k .field__eye{inline-size:44px;block-size:44px;margin:-4px}      /* show password 36 → 44; the negative margin keeps the field's layout as it was */
  html:root .k .m-chips--wrap{row-gap:8px}      /* wrapped chips (home): 8 px between rows, so one row's 4 px extension does not take the other's (42 → 44) */
}
