@font-face {
  font-family: 'Heebo';
  src: url('../fonts/heebo-hebrew-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  src: url('../fonts/heebo-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  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 {
  --paper: #f5f1e8;
  --card: #fffdf8;
  --ink: #1f2a44;
  --ink-2: #47506a;
  --muted: #7b8193;
  --line: #e6dfd0;
  --gold: #d9a43a;
  --gold-soft: #fbf0d6;
  --good: #2f8a63;
  --mid: #c08a1e;
  --late: #c0533d;
  --late-soft: #fbe7e2;
  --counsel: #6d57a8;
  --counsel-soft: #eee9f8;
  --soft: #ebe6da;
  --shadow: 0 1px 2px rgba(31, 42, 68, 0.06), 0 4px 14px rgba(31, 42, 68, 0.06);
  --r: 16px;
  --tabs-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12162a;
    --card: #1b2038;
    --ink: #e9ecf5;
    --ink-2: #c2c7d8;
    --muted: #8d93a8;
    --line: #2b3150;
    --gold: #e2b24f;
    --gold-soft: #3a3220;
    --good: #4fb487;
    --mid: #d9a53c;
    --late: #e07a63;
    --late-soft: #3d2520;
    --counsel: #a993e6;
    --counsel-soft: #2d2747;
    --soft: #262c48;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
  :root .logo .lg-bg { fill: #2a3256; }
}
.logo .lg-bg { fill: #1f2a44; }
.logo .lg-st { stroke: #f5f1e8; fill: none; }
.logo .lg-dot { fill: var(--gold); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0.4em 0; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
[hidden] { display: none !important; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45em;
  border: 0; border-radius: 12px; padding: 0.7em 1.2em; cursor: pointer;
  font-weight: 600; transition: transform 0.08s, background 0.2s, box-shadow 0.2s;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.btn.soft { background: var(--soft); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink-2); }
.btn.danger { background: var(--late); color: #fff; }
.btn.big { font-size: 1.05rem; padding: 0.85em 1.6em; min-height: 52px; }
.btn.sm { padding: 0.5em 0.95em; min-height: 38px; font-size: 0.92rem; }
.btn.wide { width: 100%; margin: 14px 0 4px; }
.link { background: none; border: 0; padding: 0.4em 0.2em; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.danger-link { color: var(--late); display: inline-flex; gap: 0.3em; align-items: center; margin-top: 10px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
}
.icon-btn:hover { background: var(--soft); }
.row-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }

/* ---------- שדות ---------- */
.field {
  width: 100%; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 0.7em 0.85em; outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
  font-size: 16px; /* מונע זום אוטומטי באייפון */
}
.field:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent); }
textarea.field { line-height: 1.6; }
.lbl { display: block; font-weight: 600; margin: 14px 0 0; border: 0; padding: 0; }
.lbl > .field, .lbl > textarea, .lbl > input, .lbl > select { margin-top: 6px; font-weight: 400; }
.lbl.inline { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.lbl.inline .field { width: auto; margin: 0; }
legend { padding: 0; margin-bottom: 6px; }

.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; padding: 0.7em 0; width: 100%; color: var(--ink); font-size: 16px; }
.search:focus-within { border-color: var(--ink-2); }
.search.big { padding: 4px 14px; box-shadow: var(--shadow); margin: 6px 0 4px; }
.search.big input { font-size: 1.05rem; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 0.45em 1em; border-radius: 999px; background: var(--soft); font-weight: 500; transition: all 0.15s; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.seg + .field { margin-top: 8px; }

.switch { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .knob { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background 0.2s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.2s; }
.switch input:checked + .knob { background: var(--counsel); }
.switch input:checked + .knob::after { transform: translateX(-18px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--gold); }

/* ---------- מסכי כניסה ---------- */
body.gate { display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--gold-soft), transparent 70%), var(--paper); }
.gate-card { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gate-card .logo { width: 76px; height: 76px; border-radius: 20px; box-shadow: var(--shadow); margin-bottom: 8px; }
.brand { font-size: 2.6rem; font-weight: 800; letter-spacing: 0.01em; }
.tag { color: var(--ink-2); font-size: 1.1rem; margin: 0 0 14px; }
.perks { list-style: none; padding: 0; margin: 6px 0 22px; text-align: start; display: grid; gap: 10px; width: 100%; }
.perks li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); }
.perks .ic { color: var(--gold); margin-top: 2px; }
.gate-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 10px; }
.copy { font-size: 0.78rem; color: var(--muted); margin-top: 22px; }

.pin h1 { font-size: 1.5rem; }
.pin-sub { min-height: 3em; }
.dots { display: flex; gap: 14px; justify-content: center; margin: 14px 0 22px; direction: ltr; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-2); transition: all 0.15s; }
.dots i.on { background: var(--ink); border-color: var(--ink); transform: scale(1.1); }
.dots.shake { animation: shake 0.4s; }
.dots.shake i { border-color: var(--late); }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; direction: ltr; margin-bottom: 14px; }
.pad button { width: 76px; height: 76px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 1.7rem; font-weight: 500; cursor: pointer; transition: background 0.1s, transform 0.08s; }
.pad button:active { background: var(--soft); transform: scale(0.94); }
.pad button[data-del] { background: transparent; box-shadow: none; color: var(--ink-2); }
.pad button[data-del] .ic { width: 1.1em; height: 1.1em; }

.recovery { text-align: center; }
.recovery .lbl { text-align: start; width: 100%; }
.recovery .row-btns { justify-content: center; }
.rcode {
  font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em;
  background: var(--card); border: 2px dashed var(--gold); border-radius: 14px; padding: 14px 10px; margin: 12px 0 4px;
  user-select: all; word-break: break-all; width: 100%; text-align: center;
}
.rcode-in { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.05em; text-align: center; margin-top: 8px; }
.check { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.wipe-more { margin-top: 18px; }
.wipe-more summary { cursor: pointer; }

/* ---------- מסגרת האפליקציה ---------- */
.demo-bar { position: sticky; top: 0; z-index: 30; background: var(--gold); color: #1f2a44; text-align: center; font-size: 0.88rem; font-weight: 600; padding: 6px 12px; padding-top: max(6px, env(safe-area-inset-top)); }
.demo-bar .link { color: #1f2a44; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top));
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.demo-bar + .side + .top { top: 33px; padding-top: 8px; }
.top h1 { font-size: 1.2rem; font-weight: 700; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-logo .logo { width: 34px; height: 34px; border-radius: 10px; display: block; margin: 4px; }
.top-actions { display: flex; align-items: center; }
.sync { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; position: relative; color: var(--good); }
.sync::after { content: ''; position: absolute; bottom: 10px; left: 10px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; border: 2px solid var(--paper); }
.sync.busy { color: var(--mid); animation: pulse 1.2s infinite; }
.sync.warn { color: var(--late); }
@keyframes pulse { 50% { opacity: 0.45; } }

.content { padding: 12px 16px calc(var(--tabs-h) + 28px + env(safe-area-inset-bottom)); max-width: 760px; margin: 0 auto; }

.tabs {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom); height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
}
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 0.72rem; color: var(--muted); position: relative; }
.tabs a .ic { width: 24px; height: 24px; }
.tabs a.on { color: var(--ink); font-weight: 700; }
.tabs a.on:not(.tab-new)::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.tabs .fab { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 6px 16px rgba(31, 42, 68, 0.3); border: 4px solid var(--paper); }
.tabs .tab-new { color: var(--ink); }
.badge { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--counsel); color: #fff; font-size: 0.68rem; display: grid; place-items: center; padding: 0 5px; font-weight: 700; }

.side { display: none; }

@media (min-width: 900px) {
  body.in-app { padding-inline-start: 250px; }
  .side {
    display: flex; flex-direction: column; position: fixed; inset-block: 0; inset-inline-start: 0; width: 250px;
    background: var(--card); border-inline-end: 1px solid var(--line); padding: 22px 14px; z-index: 25;
  }
  .side-brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; padding: 0 8px 22px; }
  .side-brand .logo { width: 44px; height: 44px; border-radius: 12px; }
  .side nav { display: grid; gap: 4px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; position: relative; }
  .side nav a:hover { background: var(--soft); }
  .side nav a.on { background: var(--ink); color: var(--paper); font-weight: 700; }
  .side nav a.nav-new { margin-block: 6px; border: 1.5px dashed var(--line); }
  .side nav a.nav-new.on { border-color: transparent; }
  .side .badge { position: static; margin-inline-start: auto; }
  .side .copy { margin-top: auto; padding: 0 8px; }
  .tabs, .top-logo { display: none; }
  .top { padding: 14px 28px; }
  .top h1 { font-size: 1.4rem; }
  .content { padding: 18px 28px 60px; }
  .demo-bar { padding-inline-start: 250px; }
}

/* ---------- רכיבים ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin: 12px 0; }
.card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin-bottom: 6px; }
.card.empty { text-align: center; padding: 28px 20px; }
.card.empty .btn { margin: 10px 0 4px; }
.cards { display: grid; gap: 12px; margin: 10px 0; }
.cards .card { margin: 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }

.hello h2 { font-size: 1.7rem; font-weight: 800; }
.hello { margin: 6px 0 12px; }
.sec { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 26px 0 6px; }
.sec .ic { color: var(--gold); }
.calm { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 500; margin: 8px 0; }
.warn-text { display: flex; align-items: center; gap: 8px; color: var(--late); font-weight: 500; }
.pad-s { padding: 8px 4px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 4px; }
.stat { background: var(--card); border-radius: 14px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat b { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.stat b small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.stat.hot b { color: var(--late); }
.stat.warm b { color: var(--counsel); }

.av { --h: 200; flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; font-size: 0.95rem;
  background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 45% 28%); }
@media (prefers-color-scheme: dark) { .av { background: hsl(var(--h) 30% 26%); color: hsl(var(--h) 60% 85%); } }
.av.sm { width: 28px; height: 28px; font-size: 0.72rem; }
.av.lg { width: 60px; height: 60px; font-size: 1.25rem; }

.person { display: flex; flex-direction: column; gap: 10px; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-head div { display: flex; flex-direction: column; }
.person .btn { align-self: flex-start; }
.remember { background: var(--gold-soft); border-radius: 12px; padding: 10px 12px; font-size: 0.95rem; }
.remember > span { font-weight: 700; }
.remember.big { padding: 14px 16px; margin: 12px 0; }
.remember.big h3 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin-bottom: 4px; }
.remember.big .ic { color: var(--mid); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border-radius: 999px; padding: 5px 12px 5px 6px; box-shadow: var(--shadow); }
.chip small { color: var(--late); font-weight: 600; }

.toolbar { display: flex; gap: 10px; margin: 6px 0 12px; }
.toolbar .search { flex: 1; }
.list { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.list li + li { border-top: 1px solid var(--line); }
.list a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.list a:hover { background: color-mix(in srgb, var(--soft) 50%, transparent); }
.list .grow { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.fresh { font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.fresh.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.fresh.mid { background: color-mix(in srgb, var(--mid) 16%, transparent); color: var(--mid); }
.fresh.late, .fresh.none { background: var(--late-soft); color: var(--late); }
.legend { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; font-size: 0.8rem; }

.profile { display: flex; align-items: center; gap: 14px; }
.profile h2 { font-size: 1.4rem; }
.notes { background: var(--card); border-inline-start: 4px solid var(--gold); padding: 10px 14px; border-radius: 10px; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; inset-block: 8px; inset-inline-start: 7px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-inline-start: 26px; }
.timeline li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--paper); }
.talk { display: block; transition: transform 0.1s; }
.talk:active { transform: scale(0.99); }
.talk-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.talk p { white-space: pre-line; }
.next { color: var(--ink-2); }
.next span { font-weight: 700; }
.tag-c { display: inline-flex; align-items: center; gap: 4px; font-size: 0.76rem; font-weight: 600; color: var(--counsel); background: var(--counsel-soft); border-radius: 999px; padding: 2px 9px; margin-inline-start: auto; }
.tag-c.done { opacity: 0.6; }

.lbl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lbl-head + .field { margin-top: 6px; font-weight: 400; }
.mic {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; border-radius: 999px;
  padding: 0.4em 0.9em; background: var(--gold-soft); color: var(--ink); font-weight: 600; font-size: 0.88rem; min-height: 36px;
  transition: background 0.2s, color 0.2s;
}
.mic.big { padding: 0.55em 1.15em; font-size: 0.98rem; min-height: 44px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.mic.on { background: var(--late); color: #fff; animation: listen 1.4s infinite; }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--late) 45%, transparent); } 50% { box-shadow: 0 0 0 9px transparent; } }

.speech-warn {
  display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; padding: 10px 12px; border-radius: 12px;
  background: var(--gold-soft); color: var(--ink-2); font-size: 0.86rem; line-height: 1.5; transition: background 0.2s, color 0.2s;
}
.speech-warn .ic { color: var(--mid); margin-top: 2px; }
.speech-warn b { color: var(--ink); }
.speech-warn.on { background: var(--late-soft); color: var(--ink); outline: 2px solid var(--late); }
.speech-warn.on .ic { color: var(--late); }

.who { display: inline-flex; align-items: center; gap: 10px; font-size: 1.15rem; margin: 4px 0 10px; }
.form { margin-bottom: 20px; }
.tip { margin-top: 4px; }
.sticky { position: sticky; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + 8px); background: linear-gradient(transparent, var(--paper) 30%); padding-top: 14px; margin-top: 18px; }
.sticky .btn.big { flex: 1; }
@media (min-width: 900px) { .sticky { bottom: 8px; } .sticky .btn.big { flex: 0 1 260px; } }

.counsel { display: flex; flex-direction: column; gap: 8px; }
.counsel .btn { align-self: flex-start; }
.counsel details summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }
.reply { background: var(--counsel-soft); border-radius: 10px; padding: 8px 12px; }
.done-list { margin-top: 24px; }
.done-list > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 8px 0; }

.steps { padding-inline-start: 1.3em; margin: 8px 0; }
.steps li { margin: 5px 0; }
.kbd { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; background: var(--paper); font-weight: 700; }
.welcome-in { background: linear-gradient(135deg, var(--gold-soft), var(--card)); }
.welcome-in h2 { font-size: 1.3rem; }
.danger-zone h3 { color: var(--late); }
.about { text-align: center; margin-top: 24px; font-size: 0.85rem; }
.content .copy { text-align: center; margin-top: 4px; }

/* ---------- חלונות ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(18, 22, 42, 0.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity 0.22s; }
.sheet-wrap.in { opacity: 1; }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 520px; max-height: 90dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform 0.25s; }
.sheet-wrap.in .sheet { transform: none; }
.sheet h2 { font-size: 1.25rem; margin: 0 0 8px; padding-inline-end: 40px; }
.sheet-x { position: absolute; top: 12px; inset-inline-end: 10px; }
@media (min-width: 640px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 22px; } }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); transition: all 0.25s; max-width: 90vw; text-align: center; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--late); color: #fff; }
body.gate .toast { bottom: 32px; }

/* ---------- מצב דיסקרטי ---------- */
body.discreet .sens { filter: blur(6px); transition: filter 0.2s; user-select: none; }
body.discreet .sens:hover, body.discreet .sens:focus-within { filter: none; }
body.discreet .top [data-discreet] { color: var(--counsel); background: var(--counsel-soft); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
