/* סטודיו 31 — עיצוב. שפה עיצובית: זכוכית בהירה, פינות רכות, כחול כצבע פעולה, יום/לילה. */
:root {
  --bg: #f6f8fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #fff;
  --surface-muted: #f1f3f6;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --accent: #0a7cff;
  --accent-soft: rgba(10, 124, 255, 0.1);
  --positive: #1a8f4c;
  --positive-soft: rgba(26, 143, 76, 0.12);
  --negative: #c9352b;
  --negative-soft: rgba(201, 53, 43, 0.1);
  --warning: #b86e00;
  --warning-soft: rgba(184, 110, 0, 0.12);
  --brand: #69afff;
  --glass-bg: rgba(118, 118, 128, 0.12);
  --silver: rgba(255, 255, 255, 0.52);
  --silver-line: rgba(255, 255, 255, 0.7);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(15, 30, 60, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 30, 60, 0.18);
  --radius: 20px;
  --radius-sm: 12px;
  --topbar-h: 72px;
  --sidebar-w: 248px;
  --tabbar-h: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --c-olam: #69afff;
  --c-reshut: #ff9f0a;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0b0c0f;
  --surface: rgba(28, 28, 30, 0.82);
  --surface-solid: #1c1c1e;
  --surface-muted: #2a2a2d;
  --ink: #f5f5f7;
  --ink-2: #c7c7cc;
  --ink-3: #8e8e93;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #4da3ff;
  --accent-soft: rgba(77, 163, 255, 0.16);
  --positive: #34c759;
  --positive-soft: rgba(52, 199, 89, 0.16);
  --negative: #ff6b5e;
  --negative-soft: rgba(255, 107, 94, 0.15);
  --warning: #ffb340;
  --warning-soft: rgba(255, 179, 64, 0.15);
  --glass-bg: rgba(118, 118, 128, 0.24);
  --silver: rgba(44, 44, 48, 0.55);
  --silver-line: rgba(255, 255, 255, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* רקע עדין — הילות צבע של שני הפודקאסטים */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(80px); opacity: 0.35;
}
.bg-glow::before { background: radial-gradient(circle, rgba(105, 175, 255, 0.55), transparent 65%); top: -30vmax; right: -20vmax; }
.bg-glow::after { background: radial-gradient(circle, rgba(255, 159, 10, 0.28), transparent 65%); bottom: -35vmax; left: -25vmax; }
[data-theme="dark"] .bg-glow::before, [data-theme="dark"] .bg-glow::after { opacity: 0.18; }

/* ---------- כרטיסים ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  padding: 20px;
}
.silver-card { background: var(--silver); border: 1px solid var(--silver-line); border-radius: 16px; padding: 14px 16px; }
.card h2, .card h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14px;
  background: var(--glass-bg); color: var(--ink);
  transition: transform 0.16s var(--ease-out), background-color 0.2s, opacity 0.2s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { background: var(--negative-soft); color: var(--negative); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--glass-bg); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink-2); transition: transform 0.16s var(--ease-out), background-color 0.2s;
}
.icon-btn:hover { background: var(--glass-bg); color: var(--ink); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 10px; }
.icon-btn.sm svg.i { width: 17px; height: 17px; }

/* ---------- טפסים ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface-solid); outline: none; transition: border-color 0.2s, box-shadow 0.2s; font-size: 16px;
}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[type="date"], .input[type="time"] { direction: ltr; text-align: right; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.stack { display: grid; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--glass-bg); position: relative; transition: background 0.2s; cursor: pointer; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.25s var(--ease-out); }
.switch input:checked { background: var(--positive); }
.switch input:checked::after { transform: translateX(-18px); }

/* ---------- מעטפת ---------- */
.shell { min-height: 100vh; min-height: 100dvh; padding-right: var(--sidebar-w); }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: var(--sidebar-w); z-index: 30;
  padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
}
.logo { display: block; padding: 4px 8px 14px; }
.logo img { height: 38px; width: auto; display: block; }
[data-theme="dark"] .logo img, [data-theme="dark"] img.logo-img { filter: invert(1); }
.brand-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin: 0 2px 10px; border-radius: 12px; background: var(--glass-bg); font-size: 13px; font-weight: 600; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c, var(--brand)); }
.quick-btn { width: 100%; height: 44px; margin-bottom: 10px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.16s var(--ease-out); box-shadow: 0 6px 18px rgba(10, 124, 255, 0.28); }
.quick-btn:active { transform: scale(0.97); }
.nav-group { font-size: 11.5px; font-weight: 700; color: var(--ink-3); padding: 14px 12px 4px; letter-spacing: 0.02em; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 12px;
  color: var(--ink-2); font-weight: 500; transition: background-color 0.18s, color 0.18s, transform 0.16s var(--ease-out);
}
.nav-item:hover { background: var(--glass-bg); color: var(--ink); }
.nav-item:active { transform: scale(0.97); }
.nav-item.active { background: var(--accent); color: #fff; font-weight: 600; }
.nav-item .badge { margin-inline-start: auto; }
.nav-item.nav-alert:not(.active) { color: var(--warning); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--negative); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-item.active .badge { background: rgba(255, 255, 255, 0.28); }

.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h); padding: 0 24px;
  display: flex; align-items: center; gap: 14px;
}
.header-fade::before {
  content: ""; position: absolute; inset: 0 0 -24px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.greet { display: grid; line-height: 1.25; min-width: 0; }
.greet b { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet small { color: var(--ink-3); font-size: 12.5px; }
.search { flex: 1; max-width: 440px; margin: 0 auto; position: relative; }
.search .input { height: 40px; padding-right: 40px; background: var(--surface); border-color: var(--line); }
.search svg.i { position: absolute; right: 12px; top: 10px; color: var(--ink-3); }
.search-results { position: absolute; top: 46px; right: 0; left: 0; max-height: 60vh; overflow: auto; padding: 6px; z-index: 40; }
.search-results button { width: 100%; text-align: right; padding: 10px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.search-results button:hover, .search-results button.on { background: var(--glass-bg); }
.top-actions { display: flex; align-items: center; gap: 4px; }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); padding: 0 6px; direction: ltr; }
.who-last { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--c, var(--brand)); position: absolute; bottom: -2px; left: -2px; border: 2px solid var(--bg); }
.new-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--negative); border: 2px solid var(--bg); }
.theme-btn svg.i { transition: transform 0.5s var(--ease-out); }
.theme-btn:active svg.i { transform: rotate(40deg); }

.main { padding: 8px 24px 40px; max-width: 1280px; margin: 0 auto; }
.page-title { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.page-title h1 { font-size: 26px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.page-title p { margin: 0; color: var(--ink-3); width: 100%; }
.view-enter { animation: rise 0.35s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- טלפון ---------- */
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { padding-right: 0; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .sidebar { display: none; }
  .topbar { padding: 0 14px; gap: 8px; height: 60px; }
  .search { display: none; }
  .search.open { display: block; position: fixed; top: 64px; right: 12px; left: 12px; max-width: none; z-index: 45; }
  .clock { display: none; }
  .greet b { font-size: 16px; }
  .main { padding: 4px 14px 24px; }
  .page-title h1 { font-size: 22px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; bottom: 0; right: 0; left: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 0 6px env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line);
    backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  }
  .tab { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--ink-3); padding: 6px 0; transition: transform 0.16s var(--ease-out); }
  .tab:active { transform: scale(0.94); }
  .tab.active { color: var(--accent); font-weight: 700; }
  .tab-plus { justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(10, 124, 255, 0.35); margin-top: -18px; transition: transform 0.16s var(--ease-out); }
  .tab-plus:active { transform: scale(0.92); }
  .tab-plus svg.i { width: 26px; height: 26px; stroke-width: 2.2; }
  .only-desk { display: none !important; }
}
@media (min-width: 901px) { .only-phone { display: none !important; } }

/* ---------- חלונות ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.32); animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 61; top: 50%; left: 50%; width: min(560px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow: auto;
  transform: translate(-50%, -50%); background: var(--surface-solid); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 22px;
  animation: pop 0.3s var(--ease-out);
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); } }
.modal h2 { margin: 0 0 16px; font-size: 20px; font-weight: 800; }
.modal-foot { display: flex; gap: 10px; margin-top: 20px; align-items: center; }
@media (max-width: 900px) {
  .modal { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: sheet 0.42s var(--ease-drawer); }
  @keyframes sheet { from { transform: translateY(100%); } }
}
.drawer {
  position: fixed; z-index: 61; top: 0; bottom: 0; right: 0; width: min(420px, 100vw); background: var(--surface-solid);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide 0.42s var(--ease-drawer);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer-head { padding: 18px 18px 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow: auto; padding: 8px 10px 24px; }

/* יומן פעולות */
.act { display: flex; gap: 12px; padding: 12px 8px; border-radius: 14px; }
.act + .act { border-top: 1px solid var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; background: var(--c, var(--brand)); }
.act-text { font-size: 14px; line-height: 1.45; }
.act-text b { font-weight: 700; }
.act-meta { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.act.undone .act-text { text-decoration: line-through; color: var(--ink-3); }
.confirm { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; }
.seg { display: inline-flex; background: var(--glass-bg); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-2); transition: background-color 0.2s; }
.seg button.on { background: var(--surface-solid); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* הודעות קופצות */
#toasts { position: fixed; z-index: 90; bottom: 24px; left: 24px; display: grid; gap: 8px; }
.toast { background: #1d1d1f; color: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 380px; animation: rise 0.3s var(--ease-out); }
.toast.err { background: var(--negative); }
[data-theme="dark"] .toast:not(.err) { background: #f5f5f7; color: #1d1d1f; }
@media (max-width: 900px) { #toasts { left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); } }

/* ---------- רכיבים ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat small { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
.stat b { display: block; font-size: 26px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat b { font-size: 21px; } }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cols { grid-template-columns: 1fr; } }
.list { display: grid; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 12px; text-align: right; width: 100%; transition: background-color 0.15s; }
.item + .item { border-top: 1px solid var(--line); }
button.item:hover { background: var(--glass-bg); }
.item-main { flex: 1; min-width: 0; }
.item-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-main small { color: var(--ink-3); font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: var(--glass-bg); color: var(--ink-2); white-space: nowrap; }
.chip.blue { background: var(--accent-soft); color: var(--accent); }
.chip.green { background: var(--positive-soft); color: var(--positive); }
.chip.red { background: var(--negative-soft); color: var(--negative); }
.chip.orange { background: var(--warning-soft); color: var(--warning); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.muted { color: var(--ink-3); }
.empty { text-align: center; color: var(--ink-3); padding: 28px 12px; }
.empty svg.i { width: 34px; height: 34px; stroke-width: 1.4; margin-bottom: 6px; opacity: 0.7; }
.check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background-color 0.2s, border-color 0.2s; }
.check.on { background: var(--positive); border-color: var(--positive); color: #fff; }
.check svg.i { width: 14px; height: 14px; stroke-width: 3; }
.check:not(.on) svg.i { opacity: 0; }

/* לוח הפקות */
.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.lane { padding: 12px; min-height: 160px; scroll-snap-align: start; }
.lane-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 2px 4px 10px; }
.lane-head .chip { margin-inline-start: auto; }
.lane.drop { outline: 2px dashed var(--accent); outline-offset: -4px; }
.pcard { display: grid; gap: 6px; width: 100%; text-align: right; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); cursor: grab; transition: transform 0.16s var(--ease-out), box-shadow 0.2s; }
.pcard:hover { box-shadow: var(--shadow); }
.pcard:active { transform: scale(0.98); }
.pcard b { font-weight: 600; }
.pcard .row { gap: 6px; font-size: 12.5px; }

/* יומן אולפן */
.cal-nav { display: flex; align-items: center; gap: 8px; }
.cal-legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); align-items: center; flex-wrap: wrap; }
.cal-legend span { display: inline-flex; gap: 6px; align-items: center; }
.cal { position: relative; display: grid; grid-template-columns: 52px repeat(var(--days, 7), 1fr); overflow: hidden; padding: 0; }
.cal-hd { position: sticky; top: 0; z-index: 2; text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--line); background: var(--surface-solid); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cal-hd.today { color: var(--accent); }
.cal-hd b { display: block; font-size: 19px; font-weight: 800; color: var(--ink); }
.cal-hd.today b { color: #fff; background: var(--accent); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 0; font-size: 16px; }
.cal-times { position: relative; }
.cal-time { height: var(--hh, 48px); font-size: 11.5px; color: var(--ink-3); text-align: center; transform: translateY(-8px); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-right: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hh, 48px)); cursor: copy; }
.cal-col.past { background-color: rgba(127, 127, 127, 0.05); cursor: default; }
.cal-col .now-line { position: absolute; right: 0; left: 0; height: 2px; background: var(--negative); z-index: 3; pointer-events: none; }
.cal-col .now-line::before { content: ""; position: absolute; right: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--negative); }
.slot {
  position: absolute; right: 4px; left: 4px; z-index: 2; border-radius: 10px; padding: 5px 8px; overflow: hidden; text-align: right;
  font-size: 12.5px; line-height: 1.3; color: #fff; background: var(--c); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  transition: transform 0.16s var(--ease-out), filter 0.2s; display: block; cursor: pointer;
}
.slot:hover { filter: brightness(1.05); }
.slot:active { transform: scale(0.98); }
.slot.other { cursor: default; background: repeating-linear-gradient(-45deg, var(--c) 0 8px, color-mix(in srgb, var(--c) 82%, #000) 8px 16px); }
.slot b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot span { opacity: 0.92; font-variant-numeric: tabular-nums; }
.slot.ghost { background: var(--accent-soft); border: 2px dashed var(--accent); color: var(--accent); box-shadow: none; pointer-events: none; }
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.day-strip button { flex: none; width: 46px; padding: 6px 0; border-radius: 14px; display: grid; justify-items: center; font-size: 12px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.day-strip button b { font-size: 17px; color: var(--ink); }
.day-strip button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.day-strip button.on b { color: #fff; }
.day-strip button i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.6; display: block; margin-top: 2px; }

/* הוצאות משותפות */
.balance { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.balance-big { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; }
.split-bar { height: 10px; border-radius: 5px; overflow: hidden; display: flex; background: var(--glass-bg); }
.split-bar i { display: block; height: 100%; }

/* כניסה */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login .card { width: min(420px, 100%); padding: 30px 26px; }
.login img.logo-img { height: 54px; display: block; margin: 0 auto 6px; }
.login h1 { text-align: center; font-size: 15px; color: var(--ink-3); font-weight: 500; margin: 0 0 24px; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pick button { padding: 16px 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--surface-solid); font-weight: 700; display: grid; justify-items: center; gap: 8px; transition: border-color 0.2s, transform 0.16s var(--ease-out); line-height: 1.3; }
.pick button:active { transform: scale(0.97); }
.pick button.on { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.pick .dot { width: 14px; height: 14px; }
.err-text { color: var(--negative); font-size: 14px; font-weight: 500; min-height: 20px; }

/* מצב שקט — בלי תנועה למי שביקש */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* שדה מוסתר נשאר מוסתר גם כשיש לו display משלו */
[hidden] { display: none !important; }
.stat b.green { color: var(--positive); }
.stat b.orange { color: var(--warning); }
