/* ‎mechir — רכיבים, "שולחן שרטוט". צבע, מידה ופונט נכתבים רק ב-tokens.css.
 *
 * ‎פריסה:
 * ‎  טלפון     כותרת קונסולה ← תוכן ← dock תחתון
 * ‎  מסך רחב   סרגל צד קבוע (אותו ‎.nav) ← כותרת + תוכן
 * ‎אותו HTML לשניהם; רק ה-CSS מחליט איפה הניווט יושב.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: 1.65rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }
.soft { color: var(--ink-soft); }
.small { font-size: .86rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* הרשת הטכנית — המוטיב של הקונסולה. קווים, לא אור. */
.top, .nav, .bar, .console, .doc-band {
  background-color: var(--panel); color: var(--panel-ink);
  background-image:
    linear-gradient(var(--panel-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--panel-grid) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
}
.top :focus-visible, .nav :focus-visible, .bar :focus-visible, .console :focus-visible { outline-color: var(--signal); }

/* ── שלד ─────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--panel-rule); }
.top-in {
  max-width: var(--wide); margin: 0 auto; padding: 8px var(--gap);
  display: flex; align-items: center; gap: 10px; min-height: 56px;
}
.top-title { flex: 1; min-width: 0; font-weight: 700; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.15rem; color: inherit; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--r-s); border: 1.5px solid var(--signal); color: var(--signal);
  display: grid; place-items: center; font-weight: 900; font-size: 1rem;
}
.brand-sub { font-family: var(--mono); font-size: .66rem; font-weight: 500; color: var(--panel-soft); letter-spacing: .08em; }
.icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-s); border: 1px solid var(--rule); background: var(--sheet);
  display: grid; place-items: center; color: var(--ink); text-decoration: none; font-size: 1.2rem; cursor: pointer;
  font-family: inherit; flex-shrink: 0;
}
.top .icon-btn { background: var(--panel-up); border-color: var(--panel-rule); color: var(--panel-ink); }
.top .tag { background: var(--panel-up); color: var(--panel-ink); border-color: var(--panel-rule); }
.top .btn { background: var(--panel-up); border-color: var(--panel-rule); color: var(--panel-ink); }
.top .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.page { max-width: var(--wide); margin: 0 auto; padding: var(--gap) var(--gap) calc(var(--bar) + 44px); }
.page.has-bar { padding-bottom: calc(var(--bar) * 2 + 110px); }
.stack > * + * { margin-top: var(--gap); }
.stack-s > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ── ניווט: dock בטלפון, סרגל צד במסך רחב ───────────────────────── */
.nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  border-top: 1px solid var(--panel-rule); padding-bottom: env(safe-area-inset-bottom);
}
.nav-in { max-width: var(--wide); margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--bar); }
.nav-brand, .nav-foot, .nav .nav-wide { display: none; }
.nav-link {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--panel-soft); text-decoration: none; font-size: .72rem; font-weight: 600;
  background: transparent; border: 0; font-family: inherit; cursor: pointer;
}
.nav-link svg { width: 22px; height: 22px; }
.nav-link[aria-current='page'] { color: var(--signal); font-weight: 800; }
.nav-link[aria-current='page']::before { content: ''; position: absolute; top: -1px; inset-inline: 22%; height: 2px; background: var(--signal); }
.nav-new .plus {
  width: 44px; height: 44px; border-radius: var(--r-m); background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1; font-weight: 400;
}
.nav-new .nav-label { display: none; }

/* ── קונסולה: בלוק כהה עם מספרים ─────────────────────────────────── */
.console { border-radius: var(--r-l); border: 1px solid var(--panel-rule); padding: 18px var(--gap); }
.console-bleed { margin: calc(var(--gap) * -1) calc(var(--gap) * -1) 0; border-radius: 0; border-inline: 0; border-top: 0; padding-top: 22px; }
.console h1 { font-size: 1.5rem; }
.kicker {
  display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .1em; color: var(--panel-soft);
}
.kicker::before { content: ''; width: 7px; height: 7px; background: var(--signal); }
.readout { margin-top: 18px; }
.readout-label { font-size: .8rem; color: var(--panel-soft); font-weight: 600; }
.readout-value { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--signal); display: block; }
.gauges { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--panel-rule); }
.gauge { padding: 12px 0 2px; padding-inline-end: 10px; color: inherit; text-decoration: none; display: block; }
.gauge + .gauge { border-inline-start: 1px solid var(--panel-rule); padding-inline-start: 12px; }
.gauge-label { font-size: .74rem; color: var(--panel-soft); font-weight: 600; display: block; }
.gauge-value { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.console .btn-primary { margin-top: 18px; }

/* ── משטחים ──────────────────────────────────────────────────────── */
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: var(--gap); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:active { background: var(--mist); }
.card-accent { border-inline-start: 3px solid var(--accent); }
.list { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.list > * { display: flex; align-items: center; gap: 12px; padding: 13px var(--gap); color: inherit; text-decoration: none; min-height: var(--tap); }
.list > * + * { border-top: 1px solid var(--rule); }
.list > a:active { background: var(--mist); }
.list .end { margin-inline-start: auto; text-align: end; flex-shrink: 0; }
.list strong { display: block; font-weight: 700; }
.go { color: var(--ink-soft); font-family: var(--mono); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.stat { background: var(--sheet); padding: 14px; color: inherit; text-decoration: none; display: block; }
.stat-label { font-size: .78rem; color: var(--ink-soft); font-weight: 600; }
.stat-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 2px; }
.stat-value.is-text { font-size: 1.05rem; letter-spacing: 0; }

/* כותרת מקטע: ריבוע מבטא, טקסט, וקו מידה שנמתח עד הקצה. */
.section-title {
  display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink-soft);
  margin: 26px 0 10px; letter-spacing: .01em;
}
.section-title::before { content: ''; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.spread > .section-title { flex: 1; }

/* ── כפתורים ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 20px; border-radius: var(--r-m);
  border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { background: var(--mist); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:active { background: var(--ink); border-color: var(--ink); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #FFFFFF; }
.btn-danger { color: var(--stop); border-color: var(--stop); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 0 10px; }
.btn-block { display: flex; width: 100%; }
.btn-huge { min-height: 64px; font-size: 1.2rem; font-weight: 800; }
.btn-s { min-height: 40px; padding: 0 14px; font-size: .88rem; border-radius: var(--r-s); }
.btn[disabled], .btn[aria-disabled='true'] { background: var(--mist); border-color: var(--rule); color: var(--ink-soft); cursor: not-allowed; }
.btn-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.btn-google { border-color: var(--rule-strong); gap: 10px; }
.btn-google svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: .84rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ── טפסים ───────────────────────────────────────────────────────── */
.field { display: block; }
.field + .field { margin-top: 14px; }
.label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.hint { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 4px; }
input[type='text'], input[type='tel'], input[type='email'], input[type='password'], input[type='number'],
input[type='date'], input[type='search'], select, textarea {
  width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: var(--r-s);
  border: 1.5px solid var(--rule-strong); background: var(--sheet); color: var(--ink);
  font: inherit; font-size: 1.05rem; appearance: none;
}
input[type='file'] { width: 100%; font: inherit; padding: 12px; border: 1.5px dashed var(--rule-strong); border-radius: var(--r-s); background: var(--sheet); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B0F14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: left 14px center; background-size: 12px 8px; background-repeat: no-repeat; padding-inline-end: 38px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
input[dir='ltr'], input[type='number'] { text-align: start; }
.errorlist { list-style: none; margin: 6px 0 0; padding: 0; color: var(--stop); font-size: .88rem; font-weight: 600; }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); cursor: pointer; }
.check input { width: 26px; height: 26px; accent-color: var(--accent); flex-shrink: 0; }

/* שדה מידה: ספרות ענק, צעדים בצדדים. כמו תצוגה של מד-מרחק. */
.measure { display: grid; grid-template-columns: 58px 1fr 58px; gap: 0; align-items: stretch; border: 1.5px solid var(--ink); border-radius: var(--r-m); overflow: hidden; background: var(--sheet); }
.measure input { text-align: center; font-size: 1.75rem; font-weight: 800; min-height: 62px; padding: 6px; border: 0; border-radius: 0; letter-spacing: -0.02em; }
.measure input:focus { outline-offset: -3px; }
.measure button { border: 0; background: var(--mist); font: inherit; font-size: 1.5rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.measure button:first-child { border-inline-end: 1.5px solid var(--ink); }
.measure button:last-child { border-inline-start: 1.5px solid var(--ink); }
.measure button:active { background: var(--rule); }
.measure-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.measure-grid > .field + .field { margin-top: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair > .field + .field { margin-top: 0; }
.unit-tag { font-family: var(--mono); font-weight: 500; color: var(--ink-soft); font-size: .76rem; }

/* בחירה מתוך כמה — מקטעים צמודים, כמו מתג. */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1.5px solid var(--ink); border-radius: var(--r-m); overflow: hidden; }
.seg label { position: relative; }
.seg label + label { border-inline-start: 1.5px solid var(--ink); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; appearance: none; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: var(--tap); font-weight: 700; padding: 4px 8px; text-align: center; background: var(--sheet); }
.seg input:checked + span { background: var(--ink); color: #FFFFFF; }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -3px; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 14px;
  color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-height: 88px;
  font: inherit; text-align: start; cursor: pointer; position: relative;
  border-top: 3px solid var(--ink);
}
.tile:active { background: var(--mist); }
.tile strong { font-size: 1.02rem; font-weight: 800; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; appearance: none; border-radius: var(--r-m); cursor: pointer; }
.tile:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }

details.fold { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); }
details.fold > summary { list-style: none; cursor: pointer; padding: 14px var(--gap); font-weight: 700; display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '+'; font-family: var(--mono); font-size: 1.3rem; color: var(--ink-soft); line-height: 1; }
details.fold[open] > summary::after { content: '−'; }
details.fold > .fold-body { padding: 0 var(--gap) var(--gap); }
.fold-in-card { margin-top: 8px; }

/* ── תגיות מצב: נקודה + טקסט ─────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: var(--r-s);
  font-size: .76rem; font-weight: 700; background: var(--mist); color: var(--ink); white-space: nowrap;
  border: 1px solid transparent;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tag-warn { background: var(--warn-bg); color: var(--warn); }
.tag-stop { background: var(--stop-bg); color: var(--stop); }
.tag-accent { background: var(--accent-tint); color: var(--accent); }

.note { border-radius: var(--r-m); padding: 12px 14px; border: 1px solid var(--rule); border-inline-start-width: 3px; background: var(--sheet); font-size: .94rem; }
.note-warn { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.note-stop { background: var(--stop-bg); border-color: var(--stop); color: var(--stop); }
.note-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }

/* ── מצב ריק ─────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 40px 20px; background: var(--sheet); border: 1.5px dashed var(--rule-strong); border-radius: var(--r-l); }
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--ink-soft); margin-bottom: 20px; }
.empty-art { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: var(--r-m); border: 1.5px solid var(--ink); color: var(--ink); display: grid; place-items: center; }
.empty-art svg { width: 32px; height: 32px; }

/* ── סרגל פעולה דביק: לוח מכשירים ────────────────────────────────── */
.bar {
  position: fixed; inset-inline: 0; bottom: calc(var(--bar) + env(safe-area-inset-bottom)); z-index: 25;
  border-top: 1px solid var(--panel-rule);
}
.bar.no-tabs { bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
.bar-in { max-width: var(--wide); margin: 0 auto; padding: 10px var(--gap) 12px; }
.bar-figures { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: flex-end; padding-bottom: 10px; }
.figure { flex-shrink: 0; }
.figure-label { font-size: .7rem; color: var(--panel-soft); font-weight: 600; display: block; }
.figure-value { font-weight: 700; font-size: 1rem; }
.figure-main { margin-inline-start: auto; text-align: end; }
.figure-main .figure-value { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; color: var(--signal); line-height: 1.1; display: block; }
.cost-only[data-hidden='1'] { display: none; }
.bar .btn { background: transparent; border-color: var(--panel-rule); color: var(--panel-ink); }
.bar .btn:active { background: var(--panel-up); }
.bar .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.bar .btn[disabled] { background: var(--panel-up); color: var(--panel-soft); }
.bar .chip { background: transparent; border-color: var(--panel-rule); color: var(--panel-soft); min-height: 34px; font-size: .78rem; }
.bar .chip[aria-pressed='true'] { background: var(--panel-up); border-color: var(--signal); color: var(--signal); }
.busy .figure-value { color: var(--panel-soft); }

/* ── שורות הצעה ──────────────────────────────────────────────────── */
.item { background: var(--sheet); border: 1px solid var(--rule); border-inline-start: 3px solid var(--ink); border-radius: var(--r-m); padding: 14px var(--gap); }
.item-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.item-title { font-weight: 800; font-size: 1.05rem; }
.item-price { font-weight: 800; font-size: 1.12rem; white-space: nowrap; letter-spacing: -0.02em; }
.item-meta { color: var(--ink-soft); font-size: .88rem; margin-top: 2px; }
.item-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--rule); align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-s); border: 1px solid var(--rule-strong); background: var(--sheet); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; color: var(--ink); text-decoration: none; }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip select { min-height: 36px; border: 0; padding: 0; padding-inline-end: 22px; background-position: left 2px center; font-size: .86rem; font-weight: 700; background-color: transparent; width: auto; }
.chip-danger { color: var(--stop); border-color: var(--stop); }
.theme-chip input { accent-color: var(--accent); }
.theme-chip::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }

.mats { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mats td { padding: 7px 0; border-top: 1px solid var(--rule); }
.mats td:last-child { text-align: end; white-space: nowrap; font-weight: 700; }
.mats tr:first-child td { border-top: 0; }

.totals { width: 100%; border-collapse: collapse; }
.totals td { padding: 6px 0; }
.totals td:last-child { text-align: end; font-weight: 700; }
.totals .grand td { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 1.3rem; font-weight: 900; letter-spacing: -0.02em; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
.timeline li:first-child { border-top: 0; }
.dot { width: 8px; height: 8px; background: var(--accent); margin-top: 8px; flex-shrink: 0; }

.linkbox { display: flex; gap: 8px; align-items: stretch; }
.linkbox input { font-family: var(--mono); font-size: .8rem; direction: ltr; background: var(--mist); }
.signature { background: var(--sheet); border-radius: var(--r-s); border: 1px solid var(--rule); }
.contents { display: contents; }
fieldset.card { margin-inline: 0; min-width: 0; }
fieldset.card > legend { padding: 0 6px; }

/* טבלת ניהול (סופר-אדמין) — שורות, לא כרטיסים. */
.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.table th { text-align: start; font-size: .74rem; color: var(--ink-soft); font-weight: 700; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ── הודעות צפות ─────────────────────────────────────────────────── */
.toasts { position: fixed; inset-inline: var(--gap); bottom: calc(var(--bar) * 2 + 60px); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  pointer-events: auto; background: var(--panel); color: var(--panel-ink); border: 1px solid var(--signal); border-radius: var(--r-m); padding: 12px 16px;
  font-weight: 600; display: flex; gap: 14px; align-items: center; max-width: 100%;
}
.toast button { background: transparent; border: 0; color: var(--signal); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 4px; }
.toast-stop { background: var(--stop); border-color: var(--stop); color: #FFFFFF; }
.skel { display: inline-block; min-width: 3.5em; height: 1em; border-radius: 4px; background: var(--mist); vertical-align: middle; }

/* ── כניסה ונחיתה ────────────────────────────────────────────────── */
.auth { max-width: 440px; margin: 0 auto; padding: 0 var(--gap) 60px; }
.auth > .console-bleed { margin-bottom: 22px; padding-bottom: 26px; }
.auth .brand { margin-bottom: 26px; }
.hero h1 { font-size: 2.1rem; line-height: 1.08; letter-spacing: -0.035em; }
.hero p { font-size: 1.05rem; color: var(--panel-soft); margin-top: 12px; }
.hero em { font-style: normal; color: var(--signal); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1.5px solid var(--ink); }
.steps li { counter-increment: step; display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.steps li::before { content: '0' counter(step); font-family: var(--mono); font-weight: 500; font-size: .86rem; color: var(--accent); min-width: 1.6em; }

/* ── מסך רחב: סרגל צד קבוע ───────────────────────────────────────── */
@media (min-width: 560px) {
  .measure-grid { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  body { font-size: 17px; }
  body:has(.nav) { padding-inline-start: var(--side); }
  .nav { inset-inline: 0 auto; top: 0; bottom: 0; width: var(--side); border-top: 0; border-inline-end: 1px solid var(--panel-rule); padding: 18px 14px; display: flex; flex-direction: column; }
  .nav-in { display: flex; flex-direction: column; gap: 2px; height: auto; max-width: none; margin: 0; flex: 1; }
  .nav-brand { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 22px; }
  .nav .nav-wide { display: flex; }
  .nav-foot { display: block; border-top: 1px solid var(--panel-rule); padding-top: 12px; }
  .nav-link { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 12px; min-height: 44px; font-size: .95rem; border-radius: var(--r-s); width: 100%; }
  .nav-link:hover { background: var(--panel-up); color: var(--panel-ink); }
  .nav-link[aria-current='page'] { background: var(--panel-up); }
  .nav-link[aria-current='page']::before { top: 22%; bottom: 22%; inset-inline: 0 auto; width: 2px; height: auto; }
  .nav-new { order: -1; margin-bottom: 14px; background: var(--accent); color: var(--accent-ink); justify-content: center; font-weight: 800; min-height: 48px; }
  .nav-new:hover { background: var(--accent); color: var(--accent-ink); }
  .nav-new .plus { width: auto; height: auto; background: transparent; font-size: 1.3rem; }
  .nav-new .nav-label { display: inline; }
  body:has(.nav) .top .brand { display: none; }
  .page { padding-bottom: 60px; }
  .page.has-bar { padding-bottom: 190px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .bar { bottom: 0; }
  body:has(.nav) .bar { inset-inline-start: var(--side); }
  .toasts { bottom: 150px; }
  .console-bleed { margin: 0; border-radius: var(--r-l); border: 1px solid var(--panel-rule); }
  .readout-value { font-size: 3rem; }
  .split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
  .split > * { margin-top: 0; }
}

/* תנועה: רק כניסת הודעה צפה, ורק למי שלא ביקש פחות תנועה. */
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .16s ease-out; }
  @keyframes toast-in { from { transform: translateY(8px); } to { transform: none; } }
}
