/* PERSEC — מערכת העיצוב (048 T070). הטוקנים מהמעצב («PERSEC 047 · מסמך אפיון למפתח», 15.10.2026):
   כל צבע מוגדר פעם אחת, שתי ערכות (data-theme על <html>), RTL, מספרים ברוחב קבוע.
   הגופן: Heebo (OFL, הקובץ המשתנה מ-google/fonts, אושר 16.10.2026) מקומי ב-/fonts/heebo/ — אין CDN;
   IBM Plex Sans Hebrew נשאר כגיבוי. */
@font-face { font-family: "Heebo"; font-weight: 100 900; font-display: swap; src: url("/fonts/heebo/Heebo%5Bwght%5D.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 400; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-latin-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-hebrew-500.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 500; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF, U+FB1D-FB4F; }
@font-face { font-family: "IBM Plex Sans Hebrew"; font-weight: 600; font-display: swap; src: url("/fonts/plex/PlexSansHebrew-latin-600.woff2") format("woff2"); }

:root {
  --page: #14151F; --surface: #1B1D2A; --sunken: #232536; --raised: #22253A;
  --ink: #ECEEF7; --ink2: #9FA3BC; --pri: #4E8FCB; --on-pri: #0B0C14;
  --mint: #17C3A2; --amber: #F5A524; --red: #E5484D; --red-text: #FF9B95;
  --line: rgba(255,255,255,.10); --line-strong: rgba(255,255,255,.22);
  --new-bg: #163029; --q-bg: #2E2614; --ok-bg: #1E4D40; --ok-ink: #5FD3B6;
  --plot-bg: #171925; --plot-line: #AEB3C8; --bldg: #2B4560; --bldg-line: #7FA9D3; --core: #E3E6F0; --tmura: #1F3A33;
  --cell-ok: #5FD3B6; --cell-near: #F5C451; --cell-bad: #FF8F88; --cell-ok-ink: #04261D; --cell-near-ink: #2B1C00; --cell-bad-ink: #3A0709;
  --st-dev: #3D6A94; --st-tm: #2FA884; --st-tm-line: #7FE3C6; --st-ink: #F4F7FF;
  --on-mint: #06281F; --on-amber: #2B1C00;
  --font: "Heebo", "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --shadow: 0 16px 40px rgba(0,0,0,.35);
}
:root[data-theme="light"] {
  --page: #F4F2EF; --surface: #FFFFFF; --sunken: #F1EFEB; --raised: #FFFFFF;
  --ink: #15162B; --ink2: #646880; --pri: #1F5C96; --on-pri: #FFFFFF; --red-text: #B42318;
  --line: rgba(21,22,43,.10); --line-strong: rgba(21,22,43,.22);
  --new-bg: #E6F5F1; --q-bg: #FFF4E0; --ok-bg: #D3F1E7; --ok-ink: #0E7C63;
  --plot-bg: #EDEBE6; --plot-line: #5B6075; --bldg: #CFDDEC; --bldg-line: #1F5C96; --core: #15162B; --tmura: #E6F5F1;
  --cell-ok: #8FE3C9; --cell-near: #FFD27A; --cell-bad: #FFAAA3; --cell-bad-ink: #4A0B0E;
  --st-dev: #9DBEE0; --st-tm: #7AD9BC; --st-tm-line: #0E7C63; --st-ink: #15162B;
  --shadow: 0 16px 40px rgba(21,22,43,.18);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; }
body { min-height: 100vh; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; }
h1 { font-size: 40px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--pri); }
button, input, select { font: inherit; color: inherit; }
.num, .mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink2); } .small { font-size: 13px; } .sub { font-size: 13px; color: var(--ink2); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 36px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.card.pri { border: 2px solid var(--pri); } .card.ok { border: 2px solid var(--mint); } .card.bad { border: 2px solid var(--red); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.btn { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--pri); color: var(--on-pri); border-color: transparent; }
.btn.primary[aria-disabled="true"], .btn.primary:disabled { background: var(--sunken); color: var(--ink2); cursor: not-allowed; }
.btn.icon { width: 44px; padding: 0; justify-content: center; }
.btn.ghost { border: 0; background: var(--sunken); }
.chip { min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip[aria-checked="true"] { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.chip[aria-disabled="true"] { color: var(--ink2); cursor: not-allowed; text-decoration: line-through; }
.chip.pill { border-radius: 999px; min-height: 44px; }
.chip.pill[aria-checked="true"] { background: var(--pri); border-color: var(--pri); color: var(--on-pri); }
.tag { font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 999px; display: inline-block; line-height: 18px; }
.tag.assume { background: var(--amber); color: var(--on-amber); } .tag.updated { background: var(--mint); color: var(--on-mint); }
.tag.learned { background: var(--mint); color: var(--on-mint); } .tag.unverified { border: 1px dashed var(--ink2); color: var(--ink2); }
.tag.missing { border: 1px dashed var(--ink2); color: var(--ink2); } .tag.opening { background: var(--q-bg); color: var(--ink); border: 1px dashed var(--amber); }
.tag.override { border: 1px solid var(--ink); color: var(--ink); } .tag.current { background: var(--pri); color: var(--on-pri); font-size: 12px; padding: 1px 8px; }
.pill-word { padding: 1px 8px; border-radius: 6px; box-decoration-break: clone; }
.pill-word.ok { background: var(--mint); color: var(--on-mint); } .pill-word.bad { background: var(--red); color: #fff; } .pill-word.near { background: var(--amber); color: var(--on-amber); }
.brand { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--ink2); text-decoration: none; }
.banner { padding: 10px 40px; font-size: 14px; text-align: center; border-bottom: 1px solid var(--line); background: var(--sunken); color: var(--ink2); }
.banner.warn { background: var(--q-bg); color: var(--ink); display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.banner.warn::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }

/* מסך 1 · חיפוש */
.search-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 0 0 80px; min-height: 70vh; }
.search-main h1 { text-align: center; max-width: 720px; text-wrap: balance; }
.search-form { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 12px; }
.mode { align-self: center; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.mode .chip { border: 0; border-radius: 999px; color: var(--ink2); } .mode .chip[aria-checked="true"] { background: var(--pri); color: var(--on-pri); }
.field { display: flex; gap: 10px; align-items: stretch; }
.field .box { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); }
.field .box[aria-invalid="true"] { border: 2px solid var(--red); }
.field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 20px; text-align: right; }
.field input:focus-visible { outline: 2px solid var(--pri); outline-offset: 4px; border-radius: 6px; }
.field .btn { height: 60px; padding: 0 36px; font-size: 18px; border-radius: 12px; }
.help { font-size: 14px; color: var(--ink2); text-align: center; }
.alert { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--red-text); }
.alert::before { content: "!"; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags li { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tags li.bad { background: rgba(229,72,77,.12); border-color: var(--red); color: var(--red-text); }
.tags li.pending { border-style: dashed; color: var(--ink2); }
.tags li button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink2); cursor: pointer; }
.mine { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.mine-card { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.mine-card .verdict-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: 6px; }
.dot-passes { background: var(--mint); } .dot-near { background: var(--amber); } .dot-fails, .dot-loss { background: var(--red); } .dot-undecided, .dot-blocked, .dot-planning, .dot-complex, .dot-no-route { background: var(--ink2); }
.star { border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--ink2); min-width: 44px; min-height: 44px; }
.star[aria-pressed="true"] { color: var(--amber); }

/* מסך 2 · דשבורד */
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.metrics { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; }
.metric { position: relative; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; border-inline-start: 1px solid var(--line); }
.metric:first-child { border-inline-start: 0; } .metric.updated { background: var(--new-bg); }
.metric .value { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font-size: 26px; font-weight: 600; line-height: 1.25; text-decoration: underline dotted var(--ink2); text-underline-offset: 6px; font-variant-numeric: tabular-nums; }
.metric .value.missing { text-decoration: none; color: var(--ink2); cursor: default; }
.bubble { position: absolute; z-index: 5; top: calc(100% - 6px); right: 8px; width: 300px; padding: 14px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--sunken); margin-top: 6px; }
.bar > i { position: absolute; inset-block: 0; right: 0; border-radius: 3px; background: var(--mint); } .bar > b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--ink); }
.selectors { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.selector { display: flex; flex-direction: column; gap: 6px; max-width: 100%; }
.selector .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.levers { padding: 12px 14px; border-radius: 10px; background: var(--q-bg); font-size: 14px; }
.quick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--sunken); }
.quick input { width: 90px; height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 10px; font-size: 16px; }
.missing-item { padding: 14px; border-radius: 10px; background: var(--sunken); display: flex; flex-direction: column; gap: 8px; }
.missing-item.done { background: var(--new-bg); border: 1px solid var(--mint); }
.missing-item input[type=number], .missing-item input[type=text] { height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 10px; font-size: 16px; max-width: 220px; }
.alt { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.alt.selected { border: 2px solid var(--pri); } .alt.off { border-style: dashed; color: var(--ink2); }
.alt .big { font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
figure { margin: 0; }
.plan { background: var(--plot-bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; position: relative; }
.plan svg, .section svg, .typical svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; gap: 6px; align-items: center; } .legend i { width: 14px; height: 14px; display: inline-block; }
.sw-plot { border: 1.5px solid var(--plot-line); } .sw-bldg { background: var(--bldg); border: 1px solid var(--bldg-line); } .sw-roof { border: 1.5px dashed var(--bldg-line); } .sw-core { background: var(--core); } .sw-bas { border: 1.5px dashed var(--amber); } .sw-tm { background: var(--tmura); border: 1px dashed var(--bldg-line); }
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.trow { display: grid; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: center; font-size: 14px; }
.trow.head { background: var(--sunken); font-size: 13px; font-weight: 600; color: var(--ink2); border-top: 0; }
.trow.sub { padding: 8px 16px 8px 42px; border-top: 1px dashed var(--line); color: var(--ink2); }
.bld-cols { grid-template-columns: 36px 1.1fr .7fr 1fr .8fr 1.6fr 1fr; }
.rights-cols { grid-template-columns: 1.4fr 1.2fr 1fr .6fr .8fr; }
.ref-cols { grid-template-columns: 1.4fr .9fr 1.3fr .7fr .7fr; }
.conv-cols { grid-template-columns: 1.6fr 1fr .8fr .9fr .9fr .8fr .7fr 1fr; }
.toggle { width: 100%; display: grid; gap: 10px; align-items: center; padding: 12px 16px; border: 0; background: transparent; text-align: right; cursor: pointer; min-height: 48px; }
.toggle .chev { transition: transform .15s; } .toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.stack { display: flex; flex-direction: column; gap: 3px; }
.stack-row { display: flex; align-items: stretch; gap: 8px; } .stack-row .lbl { flex: 0 0 64px; font-size: 12px; color: var(--ink2); display: flex; align-items: center; }
.stack-row .apts { flex: 1; display: flex; gap: 3px; min-width: 0; } .stack-row .sum { flex: 0 0 96px; font-size: 12px; color: var(--ink2); display: flex; align-items: center; justify-content: flex-end; }
.apt { flex: 1 1 0; min-width: 0; height: 28px; border-radius: 4px; background: var(--st-dev); color: var(--st-ink); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; }
.apt.tm { background: var(--st-tm); border: 1px dashed var(--st-tm-line); }
.typical .unit { fill: var(--bldg); stroke: var(--bldg-line); stroke-width: 1.2; } .typical .unit.garden { fill: var(--tmura); } .typical .core { fill: var(--core); } .typical .corridor { fill: var(--sunken); } .typical .label { font-size: 11px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; } .typical .core-label { fill: var(--page); font-size: 9px; }
.budget-line { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: space-between; padding: 8px 0 8px 26px; border-top: 1px dashed var(--line); font-size: 14px; align-items: center; }
.budget-line .amt { min-width: 64px; text-align: left; font-variant-numeric: tabular-nums; }
.budget-line input { width: 110px; height: 36px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 8px; font-size: 14px; }
.bar-h { flex: 0 0 160px; height: 6px; border-radius: 3px; background: var(--sunken); } .bar-h > i { display: block; height: 6px; border-radius: 3px; background: var(--pri); }
.sens { display: grid; grid-template-columns: 120px repeat(3, minmax(0, 1fr)); gap: 6px; }
.cell { padding: 10px 6px; border-radius: 8px; text-align: center; display: flex; flex-direction: column; border: 1px solid transparent; }
.cell.current { border: 3px solid var(--ink); } .cell .v { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; } .cell .w { font-size: 12px; font-weight: 600; }
.cell.passes { background: var(--cell-ok); color: var(--cell-ok-ink); } .cell.near { background: var(--cell-near); color: var(--cell-near-ink); } .cell.fails, .cell.loss { background: var(--cell-bad); color: var(--cell-bad-ink); } .cell.none { background: var(--sunken); color: var(--ink2); }
.tmura-row { display: flex; gap: 6px; overflow-x: auto; } .tmura-row .cell { flex: 1 0 72px; padding: 8px 6px; }
.finding { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.finding::before { content: ""; flex: 0 0 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--mint); } .finding.warn::before { background: var(--amber); } .finding.error::before { background: var(--red); }
.skeleton { border-radius: 8px; background: var(--sunken); animation: ppulse 1.6s ease-in-out infinite; }
@keyframes ppulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.progress { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; position: relative; } .progress > i { position: absolute; inset: 0; width: 35%; border-radius: 3px; background: var(--pri); animation: pslide 1.8s linear infinite; }
@keyframes pslide { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
footer.foot { padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; }
.section-head { padding-top: 14px; border-top: 2px solid var(--ink); }
.fab { display: none; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 7; background: rgba(5,6,12,.55); }
.sheet { position: fixed; z-index: 8; left: 0; right: 0; bottom: 0; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: var(--raised); display: flex; flex-direction: column; gap: 10px; }
.gone { min-height: 100vh; justify-content: center; align-items: center; text-align: center; } .gone h1 { font-size: 26px; }
.placeholder { max-width: 560px; margin: 15vh auto; padding: 0 16px; } .placeholder h1 { letter-spacing: .08em; } .tagline { color: var(--pri); font-size: 20px; margin: 4px 0 24px; }

@media (max-width: 767px) {
  html, body { font-size: 15px; }
  h1 { font-size: 28px; } h2 { font-size: 20px; }
  .wrap { padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); gap: 28px; }
  .card { padding: 16px; }
  .btn, .chip, .star { min-height: 48px; } .btn.icon { width: 48px; }
  .field { flex-wrap: wrap; } .field .btn { flex: 1 1 100%; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metric .value { font-size: 22px; }
  .metric:nth-child(odd) { border-inline-start: 0; } .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .selectors { gap: 14px; } .selector { flex: 1 1 100%; min-width: 0; } .selector .opts { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; max-width: 100%; }
  .wrap > *, .row > *, .col > *, .grid2 > *, .grid3 > * { min-width: 0; } html, body { overflow-x: hidden; }
  .finding, .alt, .card { overflow-wrap: anywhere; } .plan, figure { min-width: 0; max-width: 100%; }
  .bubble { display: none; }
  .mine-card { grid-template-columns: 1fr auto; }
  .bar-h { display: none; }
  .sens { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); }
  .trow.bld-cols, .trow.rights-cols, .trow.ref-cols, .trow.conv-cols { grid-template-columns: 1fr auto; }
  .stack-row .lbl { flex-basis: 52px; } .stack-row .sum { flex-basis: 44px; }
  .fab { display: block; position: fixed; z-index: 6; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 52px; border-radius: 12px; border: 0; background: var(--pri); color: var(--on-pri); font-size: 17px; font-weight: 700; box-shadow: var(--shadow); cursor: pointer; }
  .banner { padding: 10px 16px; }
}
@media print {
  :root { --page: #fff; --surface: #fff; --sunken: #f1efeb; --ink: #15162B; --ink2: #646880; --line: rgba(21,22,43,.15); --line-strong: rgba(21,22,43,.3); --new-bg: #E6F5F1; --plot-bg: #fff; --plot-line: #5B6075; --bldg: #CFDDEC; --bldg-line: #1F5C96; --core: #15162B; --tmura: #E6F5F1; --cell-ok: #8FE3C9; --cell-near: #FFD27A; --cell-bad: #FFAAA3; --st-dev: #9DBEE0; --st-tm: #7AD9BC; --st-ink: #15162B; }
  @page { size: A4; margin: 14mm; }
  .wrap { padding: 0; gap: 18px; max-width: none; }
  section, .card { break-inside: avoid; }
  .head-actions, .selectors, .fab, .banner, .bubble, #missing, .missing-inline, button.value { display: none !important; }
  .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* מסך המנהל (048 T090) */
.field-input { height: 44px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); padding: 0 10px; font-size: 16px; min-width: 0; }
textarea.field-input { height: auto; padding: 8px 10px; font-family: inherit; }
.admin-cols { grid-template-columns: 1.4fr .7fr 1.6fr .8fr .6fr .6fr 1.8fr; }
.admin-er { grid-template-columns: .7fr .8fr 1.4fr 2fr auto; }
.alert-text { color: var(--red-text); font-weight: 600; }
.addr-list { list-style: none; margin: 0; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.addr-list li button { width: 100%; text-align: right; min-height: 48px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.addr-list li button:hover, .addr-list li button:focus-visible { background: var(--sunken); }
@media (max-width: 767px) { .admin-cols, .admin-er { grid-template-columns: 1fr; } }
/* תכנון אדריכל (R17): השוואת החלופות ושקפי המצגת */
.trow.arch-cols { grid-template-columns: minmax(180px, 2.4fr) .6fr .8fr 1.6fr .5fr 1.6fr .8fr .8fr 1fr; }
.trow.arch-cols.sel { background: var(--sunken); }
.plan.slide img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
@media screen and (max-width: 767px) { .trow.arch-cols { grid-template-columns: 1fr 1fr; } }
.trow.ex-cols { grid-template-columns: 1fr .6fr .8fr 1.2fr 1.2fr 1fr .9fr; }
@media screen and (max-width: 767px) { .trow.ex-cols { grid-template-columns: 1fr 1fr; } }
.trow.conv-cols { grid-template-columns: 1.6fr 1.4fr .8fr .7fr .9fr .9fr .9fr .8fr; }
@media screen and (max-width: 767px) { .trow.conv-cols { grid-template-columns: 1fr 1fr; } }
