/* ═══ בסיס לשער (המדף והקלטת) — v4 ═══
   עד v3.10 השער ישב על app.css. מ-v4 האתר עצמו בעיצוב אפל (apple-app.css), ו-app.css לא נטען.
   כאן נשארו רק המשתנים של app.css (gate.css משתמש בהם) וכללי הבסיס — מוגבלים לשער, כדי שלא ייגעו באתר. */
:root{
  --bg:#141312; --surface:#1f1d1c; --text:#eeebe8;
  --divider:color-mix(in srgb,#eeebe8 30%,transparent);
  --mute:#bab6b6;
  --accent:#5b82f5;
  --accent-hi:color-mix(in srgb,var(--accent) 86%,#fff);
  --accent-lo:color-mix(in srgb,var(--accent) 80%,#000);
  --on-accent:#141312;                                /* טקסט על כחול: כהה, לא לבן */
  --link:#9fb5ee;
  --c2:#8cbcff; --c2-ink:#0d1a33;
  --mon:#0c0b0b; --mon-fg:#eeebe8; --mon-2:#2c2a28;
  --paper:#e6e2de; --ink:#201e1d; --n3:#c9c6c3; --n5:#8d8985; --n7:#4d4a47; --n8:#343230; --n9:#262423;
  --heb:'Heebo'; --num:'IBM Plex Mono'; --osd:'VT323';
  --body:'Archivo','Heebo',system-ui,sans-serif;
  --ease:cubic-bezier(.3,.9,.3,1);
  --shadow:0 3px 10px rgba(0,0,0,.55);
  color-scheme:dark;
}
/* ── מצב בהיר: לפי הטלפון, או data-theme="light" (מתג ידני בגרסה הגנרית).
   אותו Modernist, רק צבעים: נייר חם (לא לבן מסנוור), דיו כמעט שחור, כחולים כהים שקריאים על בהיר.
   הפס העליון, רצועת הימים ואייקוני העצירות (--mon) נשארים שחורים — "המסך" של המכשיר מעל דף נייר */
@media (prefers-color-scheme:light){:root:not([data-theme=dark]){
  --bg:#f2efea; --surface:#e6e2dc; --text:#1a1817;
  --divider:color-mix(in srgb,#1a1817 26%,transparent);
  --mute:#5c5855;
  --accent:#2f5bd9; --on-accent:#ffffff; --link:#2448b3;
  --c2:#2b5fc2; --c2-ink:#ffffff;
  --shadow:0 3px 10px rgba(26,24,23,.2);
  color-scheme:light;
}}
:root[data-theme=light]{
  --bg:#f2efea; --surface:#e6e2dc; --text:#1a1817;
  --divider:color-mix(in srgb,#1a1817 26%,transparent);
  --mute:#5c5855;
  --accent:#2f5bd9; --on-accent:#ffffff; --link:#2448b3;
  --c2:#2b5fc2; --c2-ink:#ffffff;
  --shadow:0 3px 10px rgba(26,24,23,.2);
  color-scheme:light;
}
/* "המסך" — הפס העליון (עם רצועת הימים) ורצועת הביטול — כהים תמיד, גם במצב בהיר */
.bar,.toast{
  --bg:#141312; --surface:#1f1d1c; --text:#eeebe8;
  --divider:color-mix(in srgb,#eeebe8 30%,transparent);
  --mute:#bab6b6; --accent:#5b82f5; --on-accent:#141312; --link:#9fb5ee;
  --c2:#8cbcff; --c2-ink:#0d1a33;
}

html:not(.ax-on),html:not(.ax-on) body{margin:0;height:100%;background:var(--bg);color:var(--text);overflow:hidden;overscroll-behavior:none}
.gate,.gate *,.gate *::before,.gate *::after{box-sizing:border-box}
.gate{font-family:var(--body);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;letter-spacing:normal}
.gate :is(button,input,select,textarea){font:inherit;color:inherit}
.gate button{cursor:pointer}
.gate a{color:var(--link);text-decoration:none}
.gate,.gate *{scrollbar-width:none}.gate ::-webkit-scrollbar{display:none}
.gate :focus{outline:none}.gate :focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.gate :is(h2,h3){font-family:var(--heb);font-weight:900;margin:0}
.ic{width:1em;height:1em;display:inline-block;vertical-align:-.14em;flex:none}
bdi{unicode-bidi:isolate}
.gate .mono{font-family:var(--num)}
.gate .muted{color:var(--mute)}
[hidden]{display:none!important}

.app.gate{height:100vh;height:100dvh;max-width:430px;margin:0 auto;display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--bg)}
.gate .btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;background:transparent;
  font-family:'Archivo',var(--heb);font-weight:800;font-size:14px;line-height:1.2;padding:8px 14px;border-radius:0;color:var(--text);text-decoration:none;white-space:nowrap}
.gate .btn .ic{font-size:15px}
