@font-face{font-family:"Heebo";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/heebo-hebrew-400-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/heebo-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Heebo";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/heebo-hebrew-500-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/heebo-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Heebo";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/heebo-hebrew-600-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/heebo-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Heebo";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/heebo-hebrew-700-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/heebo-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Heebo";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/heebo-hebrew-800-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Heebo";font-style:normal;font-weight:800;font-display:swap;src:url(fonts/heebo-latin-800-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Suez One";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/suez-one-hebrew-400-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Suez One";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/suez-one-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Frank Ruhl Libre";font-style:normal;font-weight:900;font-display:swap;src:url(fonts/frank-ruhl-libre-hebrew-900-normal.woff2) format("woff2");unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F}
@font-face{font-family:"Frank Ruhl Libre";font-style:normal;font-weight:900;font-display:swap;src:url(fonts/frank-ruhl-libre-latin-900-normal.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* מערך המדידה של בבא דע · שפת העיצוב "מעבדה"
   מהלוגו: טורקיז, שחור ולבן, העיגול, הבועות והפסים האלכסוניים.
   מבנה: סרגל צד עם סמלים, פס כותרת מפוספס עם איור, כרטיסים רכים, מספרים גדולים באות ספר. */

:root {
  --bg: #f1f6f6;
  --card: #ffffff;
  --card-2: #f2f7f7;
  --ink: #0b1214;
  --ink-2: #3f4f52;
  --ink-3: #6b7d80;
  --line: #e0e8e9;
  --line-2: #c3d0d2;
  --teal: #258592;
  --teal-d: #1c6670;
  --teal-dd: #0f4a52;
  --teal-l: #79bcc5;
  --tint: #d9eef1;
  --tint-2: #eef7f8;
  --pen: #1b6f7a;
  --on-stripe: #ffffff;
  --r1: #79bcc5; --r1-ink: #0b1214;
  --r2: #258592; --r2-ink: #ffffff;
  --r3: #17616b; --r3-ink: #ffffff;
  --r4: #0a3d44; --r4-ink: #ffffff;
  --p1: #79bcc5; --p2: #258592; --p3: #0f4a52;
  --absent: #bcc7c9;
  --alert: #b8372b;
  --alert-bg: #fbecea;
  --good: #1b7f4b;
  --stripe: repeating-linear-gradient(135deg, var(--teal) 0 13px, var(--teal-d) 13px 16px);
  --shadow: 0 1px 2px rgba(11, 18, 20, .05), 0 12px 28px -20px rgba(15, 74, 82, .45);
  --shadow-up: 0 1px 2px rgba(11, 18, 20, .06), 0 22px 36px -20px rgba(15, 74, 82, .6);
  --f-display: "Suez One", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --f-ui: "Heebo", "Assistant", "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --f-num: "Frank Ruhl Libre", "Suez One", Georgia, serif;
  --rad: 18px;
  --gut: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #081417; --card: #0f2327; --card-2: #142c31;
    --ink: #eaf4f5; --ink-2: #b4c8cb; --ink-3: #829a9e;
    --line: #1d373c; --line-2: #2f4f55;
    --teal: #2f8894; --teal-d: #256b74; --teal-dd: #9bd8df; --teal-l: #6cc0cb;
    --tint: #17383e; --tint-2: #12292e; --pen: #7fd0da;
    --r1: #2f8894; --r1-ink: #ffffff; --r2: #58b3bf; --r2-ink: #071417;
    --r3: #9bd8df; --r3-ink: #071417; --r4: #e3f5f7; --r4-ink: #071417;
    --p1: #2f8894; --p2: #6cc0cb; --p3: #d9f1f4;
    --absent: #345257; --alert: #ff9485; --alert-bg: #3a1f24; --good: #5bd69a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -22px rgba(0, 0, 0, .9);
    --shadow-up: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 40px -22px rgba(0, 0, 0, 1);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081417; --card: #0f2327; --card-2: #142c31;
  --ink: #eaf4f5; --ink-2: #b4c8cb; --ink-3: #829a9e;
  --line: #1d373c; --line-2: #2f4f55;
  --teal: #2f8894; --teal-d: #256b74; --teal-dd: #9bd8df; --teal-l: #6cc0cb;
  --tint: #17383e; --tint-2: #12292e; --pen: #7fd0da;
  --r1: #2f8894; --r1-ink: #ffffff; --r2: #58b3bf; --r2-ink: #071417;
  --r3: #9bd8df; --r3-ink: #071417; --r4: #e3f5f7; --r4-ink: #071417;
  --p1: #2f8894; --p2: #6cc0cb; --p3: #d9f1f4;
  --absent: #345257; --alert: #ff9485; --alert-bg: #3a1f24; --good: #5bd69a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 30px -22px rgba(0, 0, 0, .9);
  --shadow-up: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 40px -22px rgba(0, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 16px; line-height: 1.5; }
#app { direction: rtl; text-align: right; min-height: 60vh; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 44px); }
h2 { font-weight: 800; font-size: 18px; }
h3 { font-weight: 700; font-size: 16.5px; }
p { margin: 0; }
a { color: var(--pen); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--teal-l); outline-offset: 2px; }
.mono { font-weight: 800; letter-spacing: .02em; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sub { color: var(--ink-2); font-size: 14.5px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--ink-3); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.mark { background: linear-gradient(transparent 58%, var(--tint) 58%, var(--tint) 94%, transparent 94%); }
.ic { width: 20px; height: 20px; flex: none; display: block; }
.g { width: 20px; height: 20px; display: block; }

/* ---------- מסגרת: סרגל צד ואזור עבודה ---------- */
.app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { background: #fff; border-radius: 14px; padding: 10px 12px; display: flex; justify-content: center; margin-bottom: 4px; }
.side-brand img { height: 54px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.side-sys { text-align: center; font-family: var(--f-display); font-size: 17px; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.navi { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink-2); font-weight: 600; font-size: 15px; text-align: right; width: 100%; transition: background-color .15s, color .15s, transform .12s; }
.navi:hover { background: var(--tint-2); color: var(--ink); }
.navi:active { transform: scale(.98); }
.navi.is-on { background: var(--stripe); color: #fff; box-shadow: 0 8px 16px -10px rgba(15, 74, 82, .9); }
.navi .ns { display: none; }
.side-brand b { font-family: var(--f-display); font-weight: 400; font-size: 22px; color: #0b1214; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.userchip { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 6px; border-radius: 12px; text-align: right; width: 100%; }
.userchip:hover { background: var(--tint-2); }
.userchip b { display: block; font-size: 14.5px; line-height: 1.2; }
.userchip small { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.av { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--teal-dd); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.av.av-ink { background: var(--ink); color: var(--card); }
.ver { font-size: 11.5px; color: var(--ink-3); text-align: center; direction: ltr; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut) 0; max-width: 1180px; width: 100%; margin-inline: auto; }
.topbar .tlogo { display: none; background: #fff; border-radius: 10px; padding: 4px 8px; }
.topbar .tlogo img { height: 36px; width: auto; display: block; }
.yearsel { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 5px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.yearsel select { border: 0; background: transparent; font-weight: 800; color: var(--ink); padding: 2px 0; }
.wrap { max-width: 1180px; width: 100%; margin-inline: auto; padding-inline: var(--gut); padding-block: 12px 96px; display: flex; flex-direction: column; gap: 16px; }
.banner { background: #0b1214; color: #fff; padding: 8px 16px; font-weight: 600; font-size: 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.banner button { background: #fff; color: #0b1214; border: 0; border-radius: 99px; padding: 4px 14px; font-weight: 700; font-size: 13.5px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-3); padding-top: 8px; }

/* ---------- פס הכותרת ---------- */
.hero { position: relative; border-radius: 24px; background: var(--stripe); color: var(--on-stripe); padding: 22px 24px 24px; padding-inline-end: 232px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-height: 148px; }
.hero.has-kpis { padding-bottom: 68px; }
.hero-txt { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; min-width: 0; }
.hero .eyebrow { color: #fff; opacity: .88; }
.hero h1 { color: #fff; }
.hero .sub { color: #fff; opacity: .9; max-width: 560px; }
.hero-act, .hero-filters { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: flex-start; align-items: flex-end; }
.hero .field > span { color: #fff; opacity: .92; }
.hero .input, .hero select.input { background: rgba(255, 255, 255, .96); color: #0b1214; border-color: transparent; min-height: 40px; }
.hero .seg2 { background: rgba(11, 18, 20, .22); }
.hero .seg2 .btn { background: none; color: #fff; }
.hero .seg2 .btn.btn-p { background: #fff; color: #0b1214; }
.hero-check { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; color: #fff; font-weight: 600; font-size: 14.5px; }
.hero-check input { width: 18px; height: 18px; accent-color: #0b1214; }
.hero .btn { background: rgba(255, 255, 255, .96); color: #0b1214; border-color: transparent; }
.hero .btn:hover { background: #fff; transform: translateY(-1px); }
.hero .btn-p { background: #0b1214; color: #fff; }
.hero .btn-p:hover { background: #0f4a52; }
.hero-art { position: absolute; inset-inline-end: 18px; top: 50%; margin-top: -68px; width: 190px; height: 136px; color: #fff; opacity: .92; pointer-events: none; }
.hero.has-kpis .hero-art { margin-top: -84px; height: 120px; width: 168px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-bottom: 2px; }
.crumb { background: none; border: 0; padding: 0; color: #fff; opacity: .9; font-weight: 600; font-size: 13.5px; display: inline-flex; gap: 4px; align-items: center; }
.crumb:hover { opacity: 1; text-decoration: underline; }
.crumb .ic { width: 14px; height: 14px; }

/* ---------- כרטיסים ---------- */
.sheet { background: var(--card); border-radius: var(--rad); box-shadow: var(--shadow); min-width: 0; }
.sheet-h { padding: 16px 18px 8px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.sheet-b { padding: 6px 18px 18px; }
.sheet-b.flush { padding: 0 0 6px; }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.cols > * { min-width: 0; }
.empty { padding: 30px 18px 34px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty h3 { color: var(--ink); font-size: 18px; }
.art { display: block; color: var(--teal); }

/* ---------- כפתורים ושדות ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; font-size: 14.5px; border-radius: 12px; text-decoration: none; transition: background-color .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s; }
.btn:hover { background: var(--tint-2); border-color: var(--teal-l); }
.btn:active { transform: scale(.97); }
.btn-p { background: var(--ink); color: var(--card); border-color: var(--ink); }
.btn-p:hover { background: var(--teal-d); border-color: var(--teal-d); color: #fff; }
.btn-s { min-height: 34px; padding: 4px 12px; font-size: 13.5px; border-radius: 10px; }
.btn-q { border-color: transparent; background: none; color: var(--pen); padding-inline: 6px; }
.btn-q:hover { background: none; border-color: transparent; text-decoration: underline; }
.btn-d { color: var(--alert); border-color: var(--alert); }
.btn-d:hover { background: var(--alert-bg); border-color: var(--alert); }
.btn[disabled] { opacity: .45; cursor: default; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn.btn-p + .btn.btn-p, .row > .btn + .btn[style*="border-inline-start:0"] { margin: 0; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 42px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--teal); outline: 0; box-shadow: 0 0 0 3px var(--tint); }
textarea.input { min-height: 74px; resize: vertical; }
.form { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); align-items: end; }
.err { color: var(--alert); font-weight: 700; font-size: 14px; }
.hint { font-size: 13px; color: var(--ink-3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; background: var(--card); }
.chip.is-open { border-color: var(--teal); color: var(--teal-dd); background: var(--tint-2); }
.chip.is-alert { border-color: var(--alert); color: var(--alert); background: var(--alert-bg); }
.chip.is-done { border-color: var(--good); color: var(--good); }
.chip.is-pick { cursor: pointer; transition: background-color .15s, color .15s; }
.chip.is-pick:hover { background: var(--tint-2); }
.chip.is-pick.is-on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.seg2 { display: inline-flex; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg2 .btn { border: 0; background: none; min-height: 36px; border-radius: 10px; }
.seg2 .btn.btn-p { background: var(--ink); color: var(--card); }

/* ---------- לשוניות ---------- */
.tabs { display: flex; gap: 4px; background: var(--card); border-radius: 14px; padding: 4px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 9px 16px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; border-radius: 11px; display: inline-flex; gap: 8px; align-items: center; transition: background-color .15s, color .15s; }
.tab:hover { background: var(--tint-2); color: var(--ink); }
.tab.is-on { color: #fff; background: var(--ink); }
.tab .ic { width: 18px; height: 18px; }
:root[data-theme="dark"] .tab.is-on { color: #071417; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab.is-on { color: #071417; } }

/* ---------- רשומות קבוצה ---------- */
.glist { display: flex; flex-direction: column; padding: 0 8px 8px; }
.gcard { display: grid; grid-template-columns: auto minmax(0, 1.4fr) repeat(3, minmax(84px, .5fr)) auto; gap: 6px 16px; align-items: center; padding: 12px 10px; border: 0; border-top: 1px solid var(--line); background: none; width: 100%; text-align: right; border-radius: 0; transition: background-color .15s, transform .15s; }
.gcard:first-child { border-top: 0; }
.gcard:hover { background: var(--tint-2); border-radius: 14px; border-top-color: transparent; }
.gcard:hover + .gcard { border-top-color: transparent; }
.gcard-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.gcard-meta { font-size: 13.5px; color: var(--ink-2); }
.kv { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.kv b { font-family: var(--f-num); font-weight: 900; font-size: 22px; line-height: 1.15; color: var(--teal-dd); }
.kv span { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.kv-inline { flex-direction: row; align-items: baseline; gap: 6px; }
.kv b.kv-t { font-family: var(--f-ui); font-weight: 800; font-size: 15px; line-height: 1.75; color: var(--ink); }
.gcard .av { width: 42px; height: 42px; border-radius: 14px; font-size: 14.5px; background: var(--tint); }
.gcard:hover .av { background: var(--stripe); color: #fff; }
.gcard-go { font-weight: 700; color: var(--pen); white-space: nowrap; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.gcard-go .ic { width: 16px; height: 16px; transform: scaleX(-1); transition: transform .15s; }
.gcard:hover .gcard-go .ic { transform: scaleX(-1) translateX(3px); }
.school-h { align-items: center; }
.school-h h2 { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.gflag { display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 99px; background: var(--alert-bg); color: var(--alert); font-size: 11.5px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
@media (max-width: 760px) {
  .gcard { grid-template-columns: 42px repeat(3, minmax(0, 1fr)); gap: 8px 10px; }
  .gcard > .stack-s { grid-column: 2 / -1; }
  .gcard > .stack-s + .kv { grid-column: 2; }
  .gcard-go { display: none; }
  .gcard .kv b { font-size: 19px; }
  .gcard .kv b.kv-t { font-size: 13.5px; line-height: 1.7; }
  .gcard .kv span { font-size: 11px; line-height: 1.25; }
}

/* ---------- מדדים ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.hero.has-kpis + .kpis { margin-top: -58px; padding-inline: 14px; position: relative; z-index: 2; }
.kpi { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; border: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: center; min-width: 0; text-align: right; transition: transform .18s, box-shadow .18s; }
.kpi-l { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.kpi-v { font-family: var(--f-num); font-weight: 900; font-size: 40px; line-height: 1.05; color: var(--teal-dd); }
.kpi-v small { font-size: 19px; font-weight: 900; margin-inline-start: 1px; opacity: .8; }
.kpi-n { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); }
.kpi-btn { cursor: pointer; }
.kpi-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.ring { width: 46px; height: 46px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 6.5; }
.ring .rt { stroke: var(--tint); }
.ring .rv { stroke: var(--teal); stroke-linecap: round; }
.headline { background: #0b1214; color: #fff; border-radius: var(--rad); padding: 16px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; overflow: hidden; }
:root[data-theme="dark"] .headline, :root[data-theme="dark"] .banner { background: #02080a; box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .headline, :root:not([data-theme="light"]) .banner { background: #02080a; box-shadow: inset 0 0 0 1px var(--line); } }
.headline b { font-family: var(--f-num); font-weight: 900; font-size: 52px; line-height: 1; color: #79bcc5; }
.headline b small { font-size: 26px; }
.headline p { font-size: 17px; font-weight: 500; line-height: 1.35; color: #fff; max-width: 620px; }
.headline svg { color: #79bcc5; width: 150px; height: 60px; }

/* ---------- נוכחות ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); align-items: center; }
.legend i { display: inline-flex; align-items: center; gap: 6px; font-style: normal; }
.sw { width: 12px; height: 12px; display: inline-block; flex: none; border-radius: 3px; }
.sw-3 { background: var(--p3); } .sw-2 { background: var(--p2); } .sw-1 { background: var(--p1); }
.sw-0, .hatch { background: repeating-linear-gradient(135deg, var(--absent) 0 2px, transparent 2px 5px); outline: 1px solid var(--absent); outline-offset: -1px; }
.sw-4, .mx-4 { background: var(--card-2); outline: 1.5px solid var(--p2); outline-offset: -1.5px; }
.sw-l1 { background: var(--r1); } .sw-l2 { background: var(--r2); } .sw-l3 { background: var(--r3); } .sw-l4 { background: var(--r4); }
.sw-n { background: var(--card-2); outline: 1px solid var(--line-2); outline-offset: -1px; }
.datebar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.datebar .input { width: auto; min-width: 150px; }
.datebar .btn-s { width: 38px; padding: 0; min-height: 42px; }
.datebar .btn-s.txt { width: auto; padding: 0 12px; }
.srow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: 8px 10px; align-items: center; padding: 8px 18px; border-top: 1px solid var(--line); transition: background-color .2s; }
.srow.is-off .sname { color: var(--ink-3); }
.srow-cap { padding-block: 6px; border-top: 0; background: var(--card-2); }
.srow-cap > .eyebrow { grid-column: 1 / 3; }
.srow-2 { grid-template-columns: auto minmax(0, 1fr) auto; }
.srow-plain { grid-template-columns: minmax(0, 1fr) auto; }
.sname { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sname small { font-weight: 500; color: var(--ink-3); font-size: 12.5px; margin-inline-start: 6px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 42px; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { height: 36px; border: 0; background: none; border-radius: 9px; display: grid; place-items: center; padding: 0; color: var(--ink-3); transition: background-color .15s, transform .12s; }
.seg button:hover { background: var(--tint); }
.seg button:active { transform: scale(.9); }
.seg button.is-on { background: var(--card); box-shadow: 0 0 0 2px var(--teal), 0 6px 12px -8px rgba(15, 74, 82, .8); }
.seg button:not(.is-on) .g { opacity: .45; }
.seg button:not(.is-on):hover .g { opacity: 1; }
.seg button[disabled] { opacity: .3; cursor: default; }
.seg-cap { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 42px; gap: 2px; padding-inline: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.att-cap { width: 92px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.note-cap { width: 36px; }
.att { width: 92px; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 99px; background: var(--teal); color: #fff; font-weight: 800; font-size: 14px; padding: 0 10px; transition: background-color .18s, color .18s, transform .12s; }
.att:hover { background: var(--teal-d); }
.att:active { transform: scale(.94); }
.att .g { width: 16px; height: 16px; }
.att.is-absent { background: var(--alert-bg); color: var(--alert); }
.att.is-unset { background: var(--card); color: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.srow.is-absent { background: repeating-linear-gradient(135deg, transparent 0 9px, var(--card-2) 9px 11px); }
.srow.is-absent .sname { color: var(--ink-2); }
.srow.is-absent .av { background: var(--alert-bg); color: var(--alert); }
.att.pop { animation: pop .24s ease-out; }
.note-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); display: grid; place-items: center; padding: 0; transition: background-color .15s, color .15s; }
.note-btn:hover { color: var(--pen); background: var(--tint-2); }
.note-btn.has { color: #fff; background: var(--teal); }
.note-box { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.note-read { grid-column: 2 / -1; font-size: 13.5px; color: var(--ink-2); padding-bottom: 2px; }
.savebar { position: sticky; bottom: 0; z-index: 5; background: var(--card); border-top: 1px solid var(--line); border-radius: 0 0 var(--rad) var(--rad); padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 -10px 20px -18px rgba(11, 18, 20, .5); }
.count { font-size: 14px; color: var(--ink-2); font-weight: 700; }
.sesslist { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- מדידת צמיחה ---------- */
.dimtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dimtab { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 10px 8px; display: flex; flex-direction: column; gap: 3px; align-items: center; text-align: center; min-width: 0; transition: transform .15s, background-color .15s, border-color .15s; }
.dimtab:hover { transform: translateY(-2px); border-color: var(--teal-l); }
.dimtab .ic { width: 24px; height: 24px; color: var(--teal); }
.dimtab b { font-weight: 800; font-size: 16px; line-height: 1.15; }
.dimtab span { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.dimtab.is-on { background: var(--stripe); color: #fff; border-color: transparent; box-shadow: 0 10px 18px -12px rgba(15, 74, 82, .9); }
.dimtab.is-on .ic, .dimtab.is-on span { color: #fff; opacity: .95; }
.rub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 14px; }
.rub-c { padding: 12px 14px 14px; background: var(--card-2); border-radius: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rub-t { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.rub-k { font-size: 12.5px; color: var(--teal-dd); font-weight: 700; }
.rub-c ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.rub-c li { padding-inline-start: 12px; position: relative; }
.rub-c li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal-l); }
.rb-head { padding: 12px 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.rb-ask { font-size: 15px; font-weight: 700; }
.rb-dim { padding-top: 6px; border-top: 1px solid var(--line); }
.rb-dim h3 { font-family: var(--f-display); font-weight: 400; font-size: 22px; display: flex; gap: 10px; align-items: center; }
.rb-dim h3 .ic { width: 26px; height: 26px; color: var(--teal); }
.lv { width: 26px; height: 20px; display: inline-flex; align-items: flex-end; gap: 2px; flex: none; color: var(--teal); }
.lv i { flex: 1; background: var(--line-2); border-radius: 2px 2px 0 0; }
.lv i:nth-child(1) { height: 25%; } .lv i:nth-child(2) { height: 50%; } .lv i:nth-child(3) { height: 75%; } .lv i:nth-child(4) { height: 100%; }
.lv[data-l="1"] i:nth-child(-n+1), .lv[data-l="2"] i:nth-child(-n+2), .lv[data-l="3"] i:nth-child(-n+3), .lv[data-l="4"] i:nth-child(-n+4) { background: currentColor; }
.lseg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 44px; background: var(--card-2); border-radius: 12px; padding: 3px; gap: 2px; }
.lseg button { height: 36px; border: 0; background: none; border-radius: 9px; display: grid; place-items: center; padding: 0; font-weight: 800; font-size: 15px; color: var(--ink-2); transition: background-color .15s, transform .12s; }
.lseg button:hover { background: var(--tint); }
.lseg button:active { transform: scale(.9); }
.lseg button.is-on[data-l="1"] { background: var(--r1); color: var(--r1-ink); }
.lseg button.is-on[data-l="2"] { background: var(--r2); color: var(--r2-ink); }
.lseg button.is-on[data-l="3"] { background: var(--r3); color: var(--r3-ink); }
.lseg button.is-on[data-l="4"] { background: var(--r4); color: var(--r4-ink); }
.lseg button.is-on[data-l="0"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 2px var(--ink-3); }
.lseg-cap { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 44px; gap: 2px; padding-inline: 3px; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-align: center; }
.progress { height: 8px; background: var(--tint); border-radius: 99px; min-width: 120px; flex: 1 1 160px; max-width: 320px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.mspick { display: flex; flex-wrap: wrap; gap: 10px; }
.ms { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 9px 14px; display: flex; flex-direction: column; gap: 1px; text-align: right; min-width: 140px; box-shadow: var(--shadow); transition: transform .15s; }
.ms:hover { transform: translateY(-2px); }
.ms b { font-size: 16px; font-weight: 800; direction: ltr; text-align: right; }
.ms span { font-size: 13.5px; font-weight: 700; }
.ms small { font-size: 12px; color: var(--ink-3); }
.ms.is-on { border-color: transparent; background: var(--stripe); color: #fff; }
.ms.is-on small { color: #fff; opacity: .88; }
.ms[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- טבלאות ---------- */
.tscroll { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.t th { text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-3); padding: 9px 14px; background: var(--card-2); white-space: nowrap; }
.t td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.t tbody tr { transition: background-color .12s; }
.t tbody tr:hover { background: var(--tint-2); }
.t td.n, .t th.n { text-align: left; font-variant-numeric: tabular-nums; direction: ltr; }
.t .name { font-weight: 700; white-space: nowrap; }
.t tr.is-off td { color: var(--ink-3); }
.t input.input { min-height: 36px; padding: 5px 9px; border-radius: 9px; }
.tbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 18px; }
.t-sort th { padding: 0; }
.t-sort th button { background: none; border: 0; width: 100%; padding: 9px 14px; text-align: inherit; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.t-sort th button:hover, .t-sort th button.is-on { color: var(--ink); }
.cell-link { min-height: 0; padding: 0; font-weight: 700; text-align: right; }
.colgrp { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.colgrp legend { font-weight: 800; font-size: 13.5px; padding: 0 6px; }
.colgrp label { display: flex; gap: 8px; align-items: center; font-size: 14.5px; }

/* ---------- תרשימים ---------- */
.chart { width: 100%; min-height: 40px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-t { font-size: 11.5px; fill: var(--ink-3); font-family: var(--f-ui); }
.cols-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 3px; height: 150px; padding-top: 6px; border-bottom: 1.5px solid var(--line-2); direction: rtl; }
.cc { flex: 1 1 0; max-width: 24px; min-width: 5px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-radius: 5px 5px 0 0; }
.cc i { display: block; min-height: 0; }
.cc i:first-child { border-radius: 4px 4px 0 0; }
.cc .c3 { background: var(--p3); } .cc .c2 { background: var(--p2); } .cc .c1 { background: var(--p1); }
.cc .c4 { background: var(--card-2); outline: 1.5px solid var(--p2); outline-offset: -1.5px; }
.cc .c0 { background: repeating-linear-gradient(135deg, var(--absent) 0 2px, transparent 2px 5px); }
.cc:hover, .cc:focus { outline: 2px solid var(--teal-l); outline-offset: 2px; }
.axis-x { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); padding-top: 4px; direction: rtl; }
.lik { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
.lik-l { font-weight: 700; font-size: 14.5px; }
.lik-l small { display: block; font-weight: 800; font-size: 11.5px; color: var(--ink-3); direction: ltr; text-align: right; }
.lik-bar { display: flex; gap: 2px; height: 20px; direction: rtl; border-radius: 6px; overflow: hidden; }
.lik-bar i { display: block; min-width: 0; height: 100%; transition: filter .15s; }
.lik-bar i:hover { filter: brightness(1.12); }
.lik-bar .l1 { background: var(--r1); } .lik-bar .l2 { background: var(--r2); } .lik-bar .l3 { background: var(--r3); } .lik-bar .l4 { background: var(--r4); }
.lik-bar .l0 { background: var(--card-2); }
.lik-bar.is-empty { background: var(--card-2); outline: 1px dashed var(--line-2); outline-offset: -1px; }
.lik-v { font-size: 13px; color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 34px; text-align: left; direction: ltr; }
.lik-sep { grid-column: 1 / -1; height: 1px; background: var(--line); margin: 4px 0; }
.hb { display: grid; grid-template-columns: minmax(90px, max-content) minmax(0, 1fr) 48px; gap: 9px 12px; align-items: center; }
.hb-l { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.hb-go { background: none; border: 0; padding: 0; text-align: right; color: var(--pen); cursor: pointer; }
.hb-go:hover { text-decoration: underline; }
.hb-track { height: 12px; background: var(--tint-2); border-radius: 99px; position: relative; overflow: hidden; }
.hb-track i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--teal); border-radius: 99px; }
.hb-v { font-size: 13.5px; font-variant-numeric: tabular-nums; text-align: left; direction: ltr; font-weight: 800; color: var(--teal-dd); }
.scale { position: relative; height: 26px; }
.scale::before { content: ""; position: absolute; inset-inline: 0; top: 12px; height: 2px; background: var(--line-2); border-radius: 2px; }
.scale .tick { position: absolute; top: 8px; width: 2px; height: 10px; background: var(--line-2); border-radius: 2px; }
.scale .dot { position: absolute; top: 6px; width: 14px; height: 14px; margin-inline-start: -7px; border-radius: 50%; border: 2px solid var(--card); background: var(--teal-dd); }
.scale .dot.is-prev { background: var(--card); border: 2px solid var(--ink-3); }
.scale .link { position: absolute; top: 11px; height: 4px; background: var(--teal); border-radius: 4px; }
.scale-ax { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); direction: rtl; }
.matrix { border-collapse: separate; border-spacing: 2px; font-size: 13.5px; }
.matrix th { font-weight: 700; font-size: 11px; color: var(--ink-3); padding: 2px 1px 4px; text-align: center; }
.matrix th.nm, .matrix td.nm { text-align: right; padding-inline-end: 12px; white-space: nowrap; font-size: 14px; position: sticky; inset-inline-start: 0; background: var(--card); z-index: 1; }
.matrix td { padding: 0; }
.matrix td.nm { font-weight: 700; color: var(--ink); }
.mx { width: 20px; height: 20px; display: block; border-radius: 5px; }
.mx-3 { background: var(--p3); } .mx-2 { background: var(--p2); } .mx-1 { background: var(--p1); }
.mx-0 { background: repeating-linear-gradient(135deg, var(--absent) 0 2px, transparent 2px 5px); outline: 1px solid var(--absent); outline-offset: -1px; }
.mx-n { background: none; outline: 1px dotted var(--line-2); outline-offset: -1px; }
.lvpill { display: inline-grid; place-items: center; width: 26px; height: 24px; border-radius: 7px; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lvpill.l1 { background: var(--r1); color: var(--r1-ink); } .lvpill.l2 { background: var(--r2); color: var(--r2-ink); }
.lvpill.l3 { background: var(--r3); color: var(--r3-ink); } .lvpill.l4 { background: var(--r4); color: var(--r4-ink); }
.lvpill.l0 { background: var(--card-2); color: var(--ink-3); }
.delta { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.delta.up { color: var(--good); } .delta.down { color: var(--alert); }
.flags { display: flex; flex-direction: column; }
.flag { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.flag:first-child { border-top: 0; }
.flag b { white-space: nowrap; }
.strip { display: flex; flex-wrap: wrap; gap: 8px 6px; direction: rtl; }
.strip-c { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.strip-c small { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.strip .mx { width: 28px; height: 28px; border-radius: 8px; }
.step-card { background: var(--card-2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.step-card ul { margin: 0; padding-inline-start: 18px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.step-next { font-size: 14px; color: var(--ink-2); border-top: 1px dashed var(--line-2); padding-top: 8px; }

/* ---------- שכבות: רמז, הודעה, חלונית ---------- */
#tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--card); padding: 7px 11px; border-radius: 10px; font-size: 13px; line-height: 1.35; max-width: 250px; direction: rtl; text-align: right; white-space: pre-line; box-shadow: var(--shadow-up); }
.toast { position: fixed; inset-inline: 0; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; justify-content: center; pointer-events: none; padding-inline: 16px; }
.toast div { position: relative; background: var(--ink); color: var(--card); padding: 11px 20px; border-radius: 99px; font-weight: 700; font-size: 14.5px; max-width: 520px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-up); animation: toastIn .28s cubic-bezier(.2, .9, .3, 1.2); }
.toast div.is-err { background: var(--alert); color: #fff; }
.toast .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.toast .tick svg { width: 13px; height: 13px; }
.toast .burst { position: absolute; inset-inline-start: 22px; top: 50%; width: 0; height: 0; }
.toast .burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-l); opacity: 0; animation: burst .7s ease-out forwards; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(8, 20, 23, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; overflow-y: auto; animation: fadeIn .15s ease-out; }
.modal-in { background: var(--card); border-radius: 22px; box-shadow: var(--shadow-up); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; direction: rtl; text-align: right; animation: modalIn .22s cubic-bezier(.2, .9, .3, 1.1); }
.modal-in.wide { width: min(860px, 100%); }
.modal-h { padding: 18px 22px 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-h h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.modal-b { padding: 10px 22px 18px; display: flex; flex-direction: column; gap: 14px; }
.modal-f { padding: 14px 22px 18px; display: flex; gap: 10px; justify-content: flex-start; flex-wrap: wrap; }
.x { background: var(--card-2); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--ink-2); display: grid; place-items: center; padding: 0; }
.x:hover { background: var(--tint); }
.codebox { font-size: 26px; font-weight: 800; letter-spacing: .1em; padding: 14px 16px; border: 2px dashed var(--teal); border-radius: 14px; background: var(--tint-2); direction: ltr; text-align: center; user-select: all; }
.steps { display: flex; gap: 6px; }
.steps span { flex: 1; padding: 6px 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--card-2); border-radius: 99px; text-align: center; }
.steps span.is-on { background: var(--stripe); color: #fff; }
.drop { border: 2px dashed var(--line-2); border-radius: 16px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--tint-2); }

/* ---------- כניסה ---------- */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gut); }
.gate-in { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 26px; box-shadow: var(--shadow-up); overflow: hidden; }
.gate-art { background: var(--stripe); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; position: relative; min-height: 420px; }
.gate-art .plate { background: #fff; border-radius: 16px; padding: 10px 14px; align-self: flex-start; }
.gate-art .plate img { height: 62px; width: auto; display: block; }
.gate-art svg.big { width: 100%; max-width: 320px; height: auto; align-self: center; }
.gate-art h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; color: #fff; }
.gate-art p { opacity: .92; font-size: 15px; }
.gate-body { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.gate-body h1 { font-size: 34px; }
.gate-art .plate b { font-family: var(--f-display); font-weight: 400; font-size: 26px; color: #0b1214; }
@media (max-width: 760px) {
  .gate-in { grid-template-columns: 1fr; }
  .gate-art { min-height: 0; padding: 20px; }
  .gate-art svg.big { display: none; }
  .gate-body { padding: 24px 20px; }
}

/* ---------- מחוון ---------- */
.key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 18px; }
.key > div { padding: 12px 14px; background: var(--card-2); border-radius: 14px; display: flex; flex-direction: column; gap: 4px; }
.key b { display: flex; gap: 8px; align-items: center; }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: r; display: flex; flex-direction: column; }
.rules li { counter-increment: r; padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 15px; }
.rules li:first-child { border-top: 0; }
.rules li::before { content: counter(r); width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--teal-dd); font-weight: 800; font-size: 13px; display: grid; place-items: center; }

/* ---------- מצב הצגה ---------- */
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.pbar-brand { background: #fff; border-radius: 10px; padding: 4px 8px; }
.pbar-brand img { height: 44px; width: auto; display: block; }
.pbar-t { font-weight: 700; color: var(--ink-2); }
.app.is-present { grid-template-columns: minmax(0, 1fr); }
.app.is-present .wrap { max-width: 1320px; font-size: 17px; padding-top: 16px; }
.app.is-present .kpi-v { font-size: 50px; }
.app.is-present h1 { font-size: clamp(38px, 5vw, 58px); }

/* ---------- טעינה ---------- */
.loader { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 30px; }
.loader i { width: 14px; height: 14px; border-radius: 50%; background: var(--teal); animation: bounce 1s ease-in-out infinite; }
.loader i:nth-child(2) { width: 20px; height: 20px; animation-delay: .12s; background: var(--stripe); }
.loader i:nth-child(3) { width: 9px; height: 9px; animation-delay: .24s; background: var(--teal-l); }

/* ---------- תנועה ---------- */
@keyframes pop { 0% { transform: scale(.88); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: var(--o, 1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes growY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ringIn { from { stroke-dashoffset: var(--c); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
@media (prefers-reduced-motion: no-preference) {
  .is-enter .ch-line, .modal .ch-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s ease-out .15s forwards; }
  .is-enter .ch-area { --o: .14; animation: fade .8s ease-out .5s both; }
  .is-enter .ch-dot { animation: fade .3s ease-out 1s both; }
  .is-enter .cc i { transform-origin: bottom; animation: growY .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms); }
  .is-enter .hb-track i, .modal .hb-track i { transform-origin: right; animation: growX .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
  .is-enter .lik-bar { transform-origin: right; animation: growX .6s cubic-bezier(.2, .8, .2, 1) both; }
  .wrap.is-enter > * { animation: rise .32s ease-out both; }
  .wrap.is-enter > *:nth-child(2) { animation-delay: .04s; } .wrap.is-enter > *:nth-child(3) { animation-delay: .08s; } .wrap.is-enter > *:nth-child(n+4) { animation-delay: .12s; }
  .wrap.is-enter > .kpis { animation: none; }
  .is-enter .kpis > * { animation: rise .36s ease-out both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
  .is-enter .ring .rv { animation: ringIn 1s cubic-bezier(.2, .8, .2, 1) .15s both; }
  .is-enter .ln, .gate .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s ease-out .3s forwards; }
  .spin { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
  .spin.rev { animation-direction: reverse; animation-duration: 18s; }
  .flt { animation: float 6s ease-in-out infinite; }
  .flt.b { animation-duration: 8s; }
  .gate-in { animation: modalIn .35s cubic-bezier(.2, .9, .3, 1.05) both; }
}
@media (prefers-reduced-motion: reduce) { .ch-area { opacity: .14; } }

/* ---------- מובייל: הסרגל יורד לתחתית ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-inline: 0; bottom: 0; top: auto; height: auto; z-index: 30; flex-direction: row; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); border-inline-end: 0; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(11, 18, 20, .6); overflow-x: auto; overflow-y: hidden; }
  .side-brand, .side-sys, .side-foot { display: none; }
  .side-nav { flex-direction: row; gap: 2px; width: 100%; justify-content: space-around; }
  .navi { flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10.5px; font-weight: 700; min-width: 48px; flex: 1 1 0; text-align: center; white-space: nowrap; border-radius: 12px; }
  .navi .nl { display: none; }
  .navi .ns { display: block; }
  .topbar .tlogo { display: block; }
  .wrap { padding-bottom: 110px; }
  .hero { padding: 18px 18px 20px; border-radius: 20px; min-height: 120px; }
  .hero.has-kpis { padding-bottom: 64px; }
  .hero-art, .hero.has-kpis .hero-art { width: 132px; height: 94px; opacity: .3; top: 8px; margin-top: 0; inset-inline-end: 8px; }
  .savebar { bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 901px) { .topbar .usr-m { display: none; } }
@media (max-width: 760px) {
  .rub, .key { grid-template-columns: 1fr; }
  .dimtabs { gap: 5px; }
  .dimtab b { font-size: 13.5px; }
  .dimtab span { display: none; }
  .headline { grid-template-columns: auto minmax(0, 1fr); }
  .headline svg { display: none; }
}
@media (max-width: 520px) {
  .sheet-h, .sheet-b, .srow, .savebar, .tbar { padding-inline: 12px; }
  .glist { padding-inline: 2px; }
  .seg, .seg-cap { grid-auto-columns: 36px; }
  .lseg, .lseg-cap { grid-auto-columns: 38px; }
  .kpi-v { font-size: 32px; }
  .hero.has-kpis + .kpis { padding-inline: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 12px; }
  .ring { width: 38px; height: 38px; }
  .sname { white-space: normal; font-size: 15px; line-height: 1.25; }
  .sname small { display: none; }
  .srow .av { display: none; }
  .srow { grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 6px; }
  .srow > .av + .sname, .srow-cap > .eyebrow { grid-column: 1; }
  .srow-2 { grid-template-columns: minmax(0, 1fr) auto; }
  .note-read { grid-column: 1 / -1; }
  .att, .att-cap { width: 70px; }
  .att .att-ic { display: none; }
  .tab { padding: 8px 11px; font-size: 14px; }
  .yearsel > span { display: none; }
  .note-btn { width: 30px; }
}
@media print {
  body { background: #fff; }
  .side, .topbar, .banner, .foot, .hero-act, .crumbs, .tabs, .toast, .tbar { display: none !important; }
  .app { display: block; }
  .hero { background: none; color: #000; border-bottom: 3px solid #000; border-radius: 0; min-height: 0; padding: 0 0 10px; }
  .hero h1, .hero .eyebrow, .hero .sub { color: #000; }
  .hero-art { display: none; }
  .sheet, .kpi { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
  .wrap { padding: 0; max-width: none; }
}
