/* מיתוג "עושות עסק" (מט"י ירושלים) לפי ספר המותג: פטל לכותרות ומשטחים מרכזיים, חול להדגשות, שמנת כרקע.
   הפונט הרשמי FUP Tzofia; עד שיהיה רישיון לאתר משתמשים ב-Rubik (עגול וגיאומטרי, עם משקל 800).
   המוטיב הגרפי: ריבועים בצבע חול. */
:root {
  --bg: #FFF4EA;
  --surface: #FFFFFF;
  --surface-2: #F8E7D7;
  --ink: #2B1520;
  --muted: #6D5560;
  --line: #EED6C3;
  --line-strong: #D9B9A3;
  --primary: #A32359;
  --primary-dark: #861B49;
  --primary-ink: #FFF4EA;
  --hl: #A32359;
  --hl-soft: #F7DDE7;
  --sand: #E0AD80;
  --sand-soft: #F6E2CF;
  --talk: #A32359;
  --talk-soft: #F7DDE7;
  --talking: #85532A;
  --talking-soft: #F6E2CF;
  --collab: #3E5B4A;
  --collab-soft: #DDE9E1;
  --danger: #B3261E;
  /* צבעי קישוט בלבד (עיגולי שם, קונפטי). לא לטקסט קטן */
  --p-raspberry: #A32359; --p-sand: #E0AD80; --p-wine: #7E1A45; --p-blush: #E7A9C0; --p-plum: #5C1A3A; --p-honey: #EBC49F;

  --font-display: 'Rubik', 'Arial Hebrew', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', Arial, sans-serif;

  --r: 12px;
  --nav-h: 62px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.5;
  -webkit-tap-highlight-color: transparent; overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
a { color: var(--hl); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p, li, dd, b, small, .hint, label, .card a, .card span { text-wrap: pretty; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.block { display: block; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
/* כפתורים ותפריטים: לחיצה ארוכה לא פותחת תפריט ולא מסמנת טקסט */
.btn, .nav a, .type-opt, .filter-chips button, .mcard, .game-chip, .kiosk-person, .stat { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ───── הלוגו: "עושות" רגיל, "עסק" עבה, ריבוע חול במקום נקודה ───── */
.logo { display: inline-flex; align-items: baseline; gap: 0; font-family: var(--font-display); font-size: 22px; line-height: 1; color: var(--primary); white-space: nowrap; letter-spacing: -.01em; }
.logo-a { font-weight: 400; }
.logo-b { font-weight: 800; margin-inline-start: .22em; }
.logo-sq { display: inline-block; width: .3em; height: .3em; background: var(--sand); margin-inline-start: .08em; flex: none; }
.logo.sm { font-size: 18px; }
.logo.xl { font-size: clamp(46px, 14vw, 64px); }
/* ריבועי החול: קישוט בפינה */
.squares { display: inline-flex; gap: 6px; }
.squares i { width: 12px; height: 12px; background: var(--sand); display: block; }
.squares i:nth-child(2) { opacity: .7; }
.squares i:nth-child(3) { opacity: .45; }
.squares i:nth-child(4) { opacity: .25; }

/* ───── מעטפת ───── */
.shell { min-height: 100vh; display: grid; grid-template-rows: auto auto auto 1fr; }
.demo-bar {
  background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  padding: 5px max(12px, env(safe-area-inset-right, 0px)) 5px max(12px, env(safe-area-inset-left, 0px));
}
.demo-bar button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 2px 4px; font-size: 13px; }
.demo-roles { display: inline-flex; gap: 2px; background: rgb(255 244 234 / .12); border-radius: 999px; padding: 2px; }
.demo-roles button { text-decoration: none; border-radius: 999px; padding: 2px 9px; }
.demo-roles button[aria-pressed="true"] { background: var(--sand); color: var(--ink); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px;
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
/* הלוגו בפינה מופיע בדף הבית ככל שהלוגו הגדול נכנס מתחת לפס העליון (--mark מ-0 עד 1, לפי הגלילה) */
.topbar .brand .logo { opacity: var(--mark, 1); transform: translateY(calc((1 - var(--mark, 1)) * 8px)); }
#me-link { text-decoration: none; border-radius: 50%; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); }
main {
  width: 100%; max-width: 720px; margin: 0 auto; min-width: 0;
  padding-block: 14px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: grid; gap: 14px; align-content: start; grid-template-columns: minmax(0, 1fr);
}
.no-nav main { padding-bottom: 32px; }
main > *, .stack > *, .card > * { min-width: 0; }

.nav {
  position: fixed; inset: auto 0 0 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.nav a {
  min-height: var(--nav-h); display: grid; place-items: center; align-content: center; gap: 3px; padding: 6px 2px; min-width: 0;
  text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 500; position: relative; text-align: center; line-height: 1.2;
}
.nav a > span:not(.dot) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a svg { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--primary); font-weight: 700; }
/* הלשונית הפעילה: ריבוע חול קטן מעל האייקון */
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 5px; width: 6px; height: 6px; background: var(--sand); }
.nav .dot { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.nav .dot[data-dot-info] { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 10px; }

@media (min-width: 900px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .no-nav .layout { grid-template-columns: minmax(0, 1fr); }
  .nav {
    position: sticky; inset: auto; top: 57px; height: calc(100vh - 57px); align-self: start;
    display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-top: 0; background: transparent;
    border-inline-end: 1px solid var(--line);
  }
  .nav a { min-height: 0; display: flex; justify-content: flex-start; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 16px; }
  .nav a > span:not(.dot) { white-space: normal; }
  .nav a[aria-current="page"] { background: var(--surface); }
  .nav a[aria-current="page"]::before { top: 50%; margin-top: -3px; inset-inline-start: -15px; }
  .nav .dot { position: static; margin-inline-start: auto; }
  main { padding-bottom: 40px; padding-top: 22px; }
}

/* ───── טיפוגרפיה ───── */
.page-title { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--primary); overflow-wrap: anywhere; }
.page-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.section-title { font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; overflow-wrap: anywhere; }
.section-title a { font-size: 14px; font-weight: 600; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--hl); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.prose { white-space: pre-line; overflow-wrap: anywhere; max-width: 65ch; }
.lead { font-weight: 600; }
.selectable { user-select: all; }
.ltr-inline { direction: ltr; unicode-bidi: isolate; }
/* תוכן שהמשתתפות כתבו מקבל את הכיוון של השפה שבה נכתב */
.slot h3, .prose, .person .name, .person .line, .announce h3, .info-item h3, .profile-head h1, .profile-head p, .lead { unicode-bidi: plaintext; text-align: start; }
.center { text-align: center; }
.back { text-decoration: none; font-weight: 600; justify-self: start; }
.back::before { content: "→ "; }

/* ───── הכרזה: משטח פטל עם הלוגו בשמנת ───── */
.hero { position: relative; overflow: hidden; background: var(--primary); color: var(--primary-ink); border-radius: var(--r); padding: 22px 20px 18px; display: grid; gap: 8px; }
.hero > .squares { position: absolute; top: 14px; inset-inline-end: 14px; }
.hero .logo { color: var(--primary-ink); }
.hero-logo { margin: 6px 0 0; line-height: 1; }
.hero-tag { font-size: 17px; color: var(--sand-soft); font-weight: 500; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgb(255 244 234 / .22); }
.hero-hello { font-size: 18px; font-weight: 700; line-height: 1.3; flex: 1; min-width: 0; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 14px; color: rgb(255 244 234 / .85); }
.hero-meta b { color: var(--primary-ink); font-weight: 600; }
.hero-org { font-size: 13px; font-weight: 600; color: var(--sand); }
.countdown { display: grid; justify-items: end; text-align: end; flex: none; max-width: 60%; line-height: 1.15; }
.cd-num { font-family: var(--font-display); font-weight: 800; font-size: 46px; line-height: .95; color: var(--sand); }
.cd-label { font-size: 14px; font-weight: 600; }
.cd-eyebrow { font-size: 12px; font-weight: 700; color: var(--sand); }
.cd-sub { font-size: 13px; color: rgb(255 244 234 / .85); }
.hero-staff { margin-bottom: 4px; }

/* ───── רכיבים ───── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.callout { border: 1.5px solid var(--primary); }
.stack { display: grid; gap: 10px; }
.stack.tight { gap: 4px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.plain { text-decoration: none; color: inherit; }
a.card.plain:hover { border-color: var(--line-strong); }
.card.row { flex-wrap: nowrap; }
.chev { align-self: center; flex: none; width: 9px; height: 9px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--hl); padding: 0 8px; }
.btn.ghost:hover { background: var(--hl-soft); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.small-btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
label.btn { user-select: none; }

.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
textarea.input.short { min-height: 64px; }
.input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.input.ltr { direction: ltr; text-align: right; }
.code-input { font-size: 22px; letter-spacing: .3em; text-align: center !important; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.prefs { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; }
.prefs legend { padding: 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--av-bg, var(--primary)); color: var(--av-ink, var(--bg));
}
.avatar.lg { width: 72px; height: 72px; font-size: 25px; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.fly-avatar { position: fixed; z-index: 70; margin: 0; transform-origin: 0 0; pointer-events: none; will-change: transform; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px;
  border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--ink); white-space: normal;
}
.chip.talk { background: var(--talk-soft); color: var(--talk); }
.chip.talking { background: var(--talking-soft); color: var(--talking); }
.chip.collab { background: var(--collab-soft); color: var(--collab); }
.chip.reason { background: var(--sand-soft); color: var(--talking); }
.chip.mutual { background: var(--primary); color: var(--primary-ink); }
.chip.danger { background: var(--hl-soft); color: var(--danger); }
.chip.link-chip { text-decoration: none; background: var(--surface); border: 1px solid var(--line); color: var(--hl); margin: 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 9px; height: 9px; background: currentColor; flex: none; }

.filter-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.filter-chips button { flex: none; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer; font-size: 14px; font-weight: 600; }
.filter-chips button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .filter-chips { flex-wrap: wrap; overflow-x: visible; margin-inline: 0; padding-inline: 0; } }

.empty { text-align: center; color: var(--muted); padding: 24px 16px; display: grid; gap: 8px; justify-items: center; }
.empty b { color: var(--ink); }

/* רשימת משתתפות */
.people { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.person { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person:hover { background: var(--bg); }
.person > .grow, .person .name, .person .line { min-width: 0; overflow-wrap: anywhere; }
.person .name { font-weight: 700; display: block; }
.person .line { display: block; font-size: 14px; color: var(--muted); }
.person .line.sub { color: var(--ink); }
.person .chips { margin-top: 6px; }
.person.message.fresh { background: var(--talk-soft); }
.intro-quote { display: block; background: var(--talk-soft); padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; margin-top: 6px; }
.incoming { background: var(--talk-soft); border-radius: 10px; padding: 10px 12px; font-size: 15px; display: grid; gap: 6px; }

/* בית */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; text-decoration: none; color: inherit; display: grid; gap: 0; align-content: start; }
.stat b { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--primary); }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.3; overflow-wrap: anywhere; }
.announce h3 { font-size: 17px; }
.news { border: 1.5px solid var(--primary); }
.news-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; }
.news-item:first-of-type { border-top: 0; }
.game-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.game-chip:hover { border-color: var(--primary); }
.game-chip .squares { gap: 3px; }
.game-chip .squares i { width: 9px; height: 9px; }

/* לו"ז */
.timeline { display: grid; grid-template-columns: minmax(0, 1fr); }
.slot { display: grid; grid-template-columns: 3.4em 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.slot:last-child { border-bottom: 0; }
.slot time { font-weight: 700; padding-top: 6px; font-size: 16px; }
.slot time small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.slot h3 { font-size: 16px; padding-top: 6px; line-height: 1.3; }
.slot-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--sand-soft); color: var(--talking); }
.slot-icon svg { width: 20px; height: 20px; }
.slot.personal .slot-icon { background: var(--primary); color: var(--primary-ink); }
.slot.personal h3 { color: var(--primary); }
.slot.now { background: var(--hl-soft); margin-inline: -16px; padding-inline: 16px; border-radius: 10px; border-bottom-color: transparent; }
.slot.past { opacity: .5; }
.now-tag { color: var(--hl); font-weight: 700; font-size: 12px; padding-top: 4px; }
.slot .now-tag + h3 { padding-top: 0; }
.day-card .timeline { margin-top: -4px; }
.day-card .slot { padding: 8px 0; }
.day-card .note { border: 0; padding: 12px 14px; }
.note { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; background: var(--sand-soft); border-color: transparent; }
.note > svg { grid-row: span 2; width: 26px; height: 26px; color: var(--talking); }
.note.followup > svg { color: var(--primary); }

/* כרטיס QR */
.qr-card { position: relative; overflow: hidden; background: var(--primary); color: var(--primary-ink); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.qr-card > .squares { position: absolute; top: 14px; inset-inline-end: 14px; }
.qr-top { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; }
.qr-name { display: block; font-size: 20px; font-weight: 800; line-height: 1.2; }
.qr-top span { font-size: 14px; color: var(--sand-soft); }
.qr { width: min(230px, 100%); background: #fff; border-radius: 10px; padding: 12px; line-height: 0; }
.qr svg { width: 100%; height: auto; aspect-ratio: 1; display: block; }
.qr-hint { font-size: 14px; font-weight: 600; }
.qr-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 13px; color: var(--sand-soft); padding-top: 10px; border-top: 1px solid rgb(255 244 234 / .22); }
.qr-foot .logo { color: var(--primary-ink); }

/* פרופיל */
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head h1 { font-size: 24px; line-height: 1.2; }
.profile-head .biz { font-weight: 600; color: var(--primary); }
.types { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.type-opt { display: flex; gap: 12px; align-items: center; text-align: start; width: 100%; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.type-opt b { display: block; }
.type-opt small { color: var(--muted); font-size: 14px; }
.type-opt .swatch { width: 12px; height: 12px; }
.type-opt[data-type="talk"] { color: var(--talk); }
.type-opt[data-type="talking"] { color: var(--talking); }
.type-opt[data-type="collab"] { color: var(--collab); }
.type-opt > span:last-child { color: var(--ink); }
.type-opt[aria-pressed="true"] { border-color: currentColor; border-width: 2px; background: var(--bg); }
.report-box { color: var(--muted); }
.report-box summary { cursor: pointer; padding: 6px 0; }
.report-box form { margin-top: 8px; color: var(--ink); }
.contact-actions { gap: 8px; }
.staff-links .row { gap: 8px; }

/* מידע */
.address { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.addr-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); flex: none; }
.addr-icon svg { width: 22px; height: 22px; }
.info-list { display: grid; padding: 0; }
.info-list > * { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.info-list > *:last-child { border-bottom: 0; }
.info-item { display: grid; gap: 4px; }
.info-item h3 { font-size: 16px; }

/* פס עדכון חי */
.live-banner {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 56px); z-index: 4;
  display: flex; align-items: center; gap: 8px; background: var(--primary); color: var(--primary-ink);
  padding: 6px max(16px, env(safe-area-inset-right, 0px)) 6px max(16px, env(safe-area-inset-left, 0px));
}
.live-banner a { color: inherit; text-decoration: none; flex: 1; min-width: 0; display: grid; }
.live-banner .eyebrow { color: var(--sand); }
.live-banner .icon-btn { color: inherit; font-size: 18px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex: none; }
.offline-bar { background: var(--ink); color: var(--bg); text-align: center; font-size: 14px; font-weight: 600; padding: 6px 16px; }

/* כניסה */
.login { min-height: 100vh; display: grid; place-items: center; padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login-box { width: 100%; max-width: 440px; display: grid; gap: 12px; }
.login .card { padding: 18px; }
.login-hero { padding-top: 28px; }
.err { color: var(--danger); font-size: 15px; }
.err:empty { display: none; }
.login-privacy { font-size: 13px; color: var(--muted); text-align: center; text-wrap: balance; }
.credit { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; text-wrap: balance; }
.credit a { color: inherit; }

/* משוב */
.rating { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.rating legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.scale { display: flex; flex-wrap: wrap; gap: 6px; }
.scale label { cursor: pointer; }
.scale input { position: absolute; opacity: 0; pointer-events: none; }
.scale span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; background: var(--surface); }
.scale .skip span { font-weight: 600; font-size: 14px; color: var(--muted); }
.scale input:checked + span { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.scale input:focus-visible + span { outline: 3px solid var(--hl); outline-offset: 2px; }

#toast {
  position: fixed; z-index: 80; inset-inline: 16px; bottom: calc(var(--nav-h) + 14px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto; max-width: 420px; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px;
  font-weight: 600; text-align: center; box-shadow: 0 6px 20px rgb(43 21 32 / .2);
}
@media (min-width: 900px) { #toast { bottom: 24px; } }

/* מעבר עמוד: התוכן עולה קצת. רק transform */
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: rise .28s cubic-bezier(.2, .7, .3, 1) both; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}
.confetti { position: fixed; left: 50%; top: 62%; width: 0; height: 0; z-index: 200; pointer-events: none; }
.confetti i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; will-change: transform, opacity; }

/* ───── עמדת צ'ק-אין: בלי תפריט, על כל המסך ───── */
.shell.bare .topbar, .shell.bare .nav, .shell.bare #live-banner { display: none !important; }
.shell.bare .layout { display: block; }
.shell.bare main#view { max-width: 1100px; padding: 16px; margin: 0 auto; }
.kiosk-head { display: flex; align-items: center; gap: 14px; }
.kiosk-head .logo { font-size: 20px; }
.k-count { font-size: 18px; color: var(--primary); }
.kiosk-tools { gap: 6px; }
.kiosk-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .kiosk-grid { grid-template-columns: 1fr 1fr; } }
.cam-wrap { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.kiosk video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.kiosk-person { display: grid; gap: 2px; justify-items: start; text-align: start; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.kiosk-person:hover { border-color: var(--primary); }
.k-pop { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: safe center; justify-items: center; gap: 10px; overflow-y: auto; padding: 24px 16px; text-align: center; color: var(--primary-ink); background: var(--primary); animation: k-pop .18s ease-out; }
.k-pop > * { max-width: 560px; width: 100%; }
.k-pop.bad { background: var(--ink); }
.k-pop .btn { background: var(--primary-ink); color: var(--ink); border-color: var(--primary-ink); }
.k-pop .btn.ghost { background: transparent; color: var(--primary-ink); }
.k-pop .row { justify-content: center; }
.k-check { font-size: 56px; line-height: 1; font-weight: 800; color: var(--sand); }
.kiosk-hello { font-size: clamp(26px, 5vw, 40px); font-family: var(--font-display); line-height: 1.15; }
.k-biz { font-size: 18px; color: var(--sand-soft); }
.k-warn { background: var(--sand); color: var(--ink); border-radius: 8px; padding: 6px 12px; font-weight: 700; }
.k-day { background: rgb(255 244 234 / .12); border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; text-align: start; }
.k-item { display: flex; gap: 12px; font-size: 16px; }
.k-item .num { font-weight: 700; color: var(--sand); flex: none; }
.k-follow { color: var(--sand-soft); }
.k-note { display: grid; gap: 4px; text-align: start; }
.k-note .input { background: var(--primary-ink); color: var(--ink); }
@keyframes k-pop { from { transform: scale(.97); } }

/* ───── משחק זיכרון ───── */
body.no-scroll { overflow: hidden; }
.memory { position: fixed; inset: 0; z-index: 60; background: rgb(43 21 32 / .55); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) 12px 12px; animation: mem-in .2s ease-out; }
.memory-box { position: relative; width: min(460px, 100%, calc(100dvh - 140px)); max-height: 100%; overflow: auto; background: var(--bg); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.memory-head { display: flex; align-items: center; gap: 10px; }
.memory-head b { font-size: 18px; flex: 1; color: var(--primary); }
.memory-x { width: 40px; height: 40px; border: 0; background: var(--surface-2); border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; }
.memory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mcard { aspect-ratio: 3 / 4; border: 0; padding: 0; background: none; cursor: pointer; perspective: 600px; }
.mcard-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .32s cubic-bezier(.3, .7, .3, 1); transform-style: preserve-3d; }
.mcard.up .mcard-in, .mcard.done .mcard-in { transform: rotateY(180deg); }
.mcard-back, .mcard-face { position: absolute; inset: 0; border-radius: 10px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* גב הקלף: פטל עם ריבוע חול, כמו הנקודה בלוגו */
.mcard-back { background: var(--primary); display: grid; place-items: center; }
.mcard-back i { width: 24%; aspect-ratio: 1; background: var(--sand); }
.mcard-face { transform: rotateY(180deg); background: var(--surface); border: 1px solid var(--line); display: grid; place-content: center; justify-items: center; gap: 8px; padding: 6px; }
.mcard-ic { width: min(48px, 11vw); aspect-ratio: 1; display: grid; place-items: center; background: var(--sand-soft); color: var(--primary); }
.mcard-ic svg { width: 64%; height: 64%; }
.mcard-face .logo { font-size: min(15px, 3.6vw); flex-wrap: wrap; justify-content: center; white-space: normal; }
.mcard-face small { font-size: 13px; font-weight: 700; line-height: 1.1; text-align: center; color: var(--ink); }
.mcard-face[data-k="logo"] small { display: none; }
.mcard.done .mcard-face { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.memory-who { min-height: 2.6em; font-size: 15px; text-align: center; }
.memory-win { position: absolute; inset: 0; background: rgb(255 244 234 / .96); border-radius: 16px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; animation: mem-in .25s ease-out; padding: 16px; }
.memory-win b { font-size: 30px; color: var(--primary); }
.memory-board { width: min(300px, 100%); text-align: start; }
.memory-board small { display: block; text-align: center; color: var(--muted); margin-bottom: 4px; }
.memory-board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.memory-board li { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 10px; font-size: 14px; }
.memory-board li.me { background: var(--talk-soft); font-weight: 600; }
@keyframes mem-in { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mcard-in { transition: none; }
  .memory, .memory-win, .k-pop { animation: none; }
}

/* ───── תוסף נגישות (js/a11y.js) ───── */
.a11y-btn { position: fixed; z-index: 50; inset-inline-end: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--primary-ink); background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgb(43 21 32 / .25); }
.a11y-btn svg { width: 24px; height: 24px; }
.login ~ .a11y-btn, body:has(#app:not(.shell)) .a11y-btn, body:has(.no-nav) .a11y-btn, body:has(.bare) .a11y-btn { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .a11y-btn { bottom: 20px; } }
.a11y-panel { position: fixed; z-index: 51; inset-inline-end: 12px; bottom: calc(var(--nav-h) + 64px + env(safe-area-inset-bottom, 0px)); width: min(280px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 12px; display: grid; gap: 6px; box-shadow: 0 8px 28px rgb(43 21 32 / .2); }
body:has(#app:not(.shell)) .a11y-panel, body:has(.no-nav) .a11y-panel, body:has(.bare) .a11y-panel { bottom: 68px; }
@media (min-width: 900px) { .a11y-panel { bottom: 72px; } }
.a11y-top { display: flex; justify-content: space-between; align-items: center; }
.a11y-x { border: 0; background: none; font-size: 18px; cursor: pointer; width: 36px; height: 36px; }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size span { flex: 1; }
.a11y-panel button:not(.a11y-x) { min-height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); cursor: pointer; padding: 0 10px; font-weight: 600; }
.a11y-panel .a11y-t[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.a11y-panel a { font-size: 14px; text-align: center; padding-top: 4px; }
html.a11y-contrast { --muted: #2B1520; --line: #6D5560; --line-strong: #2B1520; --sand-soft: #FFFFFF; --surface-2: #FFFFFF; }
html.a11y-contrast .hero, html.a11y-contrast .qr-card { background: #5C1A3A; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; }
html.a11y-font body, html.a11y-font .logo, html.a11y-font .page-title { font-family: Arial, sans-serif; letter-spacing: .02em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }

/* ───── דפים בודדים: הצהרת נגישות, מדיניות פרטיות, הסרה מהמיילים ───── */
.doc-page { min-height: 100dvh; display: grid; place-items: start center; padding: 20px 16px 32px; }
.doc { width: min(640px, 100%); display: grid; gap: 12px; }
.doc .hero { padding: 18px 20px; }
.doc .hero .logo { font-size: 34px; }
.doc .card { padding: 18px 20px; display: grid; gap: 8px; }
.doc h1 { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--primary); line-height: 1.2; }
.doc h2 { font-size: 17px; font-weight: 700; margin-top: 8px; }
.doc ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; }
.doc .btn { justify-self: start; margin-top: 6px; }
.incoming .intro-quote { background: var(--surface); margin-top: 0; }
.qr-card .avatar:not(:has(img)), .hero .avatar:not(:has(img)) { background: var(--primary-ink); color: var(--primary); }
.person.message.fresh .intro-quote { background: var(--surface); }
.address { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.address .btn { grid-column: 2; justify-self: start; margin-top: 6px; }
.hero-row { flex-wrap: wrap; }
.countdown.live, .countdown.today { flex: 1 0 100%; max-width: none; justify-items: start; text-align: start; background: rgb(255 244 234 / .12); padding: 10px 12px; border-radius: 10px; gap: 2px; }
.countdown.live .cd-label, .countdown.today .cd-label { font-size: 17px; font-weight: 700; }
.scale { gap: 5px; flex-wrap: nowrap; }
.scale span { min-width: 40px; height: 42px; padding: 0 8px; }
.scale .skip { margin-inline-start: 4px; }
.scale .skip span { white-space: nowrap; }
.scale .skip input:checked + span { background: var(--surface-2); color: var(--ink); border-color: var(--line-strong); }
main { padding-bottom: calc(var(--nav-h) + 76px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { main { padding-bottom: 80px; } }
.no-nav main { padding-bottom: 80px; }
