/* Lazuz Pro Max — iOS-inspired: system font, grouped lists, frosted bars, one tint. */
:root {
  --bg: #f2f2f7;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --fill: rgba(118, 118, 128, 0.12);
  --fill-2: rgba(118, 118, 128, 0.08);
  --line: rgba(60, 60, 67, 0.14);
  --line-strong: rgba(60, 60, 67, 0.24);
  --text: #000000;
  --muted: rgba(60, 60, 67, 0.6);
  --faint: rgba(60, 60, 67, 0.3);
  --tint: #007aff;
  --tint-ink: #ffffff;
  --brand: var(--tint);
  --brand-ink: #ffffff;
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --pink: #ff2d55;
  --free: #248a3d;
  --free-bg: rgba(52, 199, 89, 0.14);
  --taken-bg: var(--fill-2);
  --taken-ink: rgba(60, 60, 67, 0.45);
  --danger: var(--red);
  --ball: #e8f87a;
  --ball-ink: #1c2400;
  --bar: rgba(249, 249, 249, 0.82);
  --radius: 12px;
  --tabbar-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow-lg: 0 -10px 40px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
    --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.16);
    --line: rgba(84, 84, 88, 0.6); --line-strong: rgba(84, 84, 88, 0.9);
    --text: #ffffff; --muted: rgba(235, 235, 245, 0.6); --faint: rgba(235, 235, 245, 0.3);
    --tint: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --pink: #ff375f;
    --free: #30d158; --free-bg: rgba(48, 209, 88, 0.16); --taken-ink: rgba(235, 235, 245, 0.35);
    --bar: rgba(22, 22, 24, 0.78); --shadow-lg: 0 -10px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e;
  --fill: rgba(118, 118, 128, 0.24); --fill-2: rgba(118, 118, 128, 0.16);
  --line: rgba(84, 84, 88, 0.6); --line-strong: rgba(84, 84, 88, 0.9);
  --text: #ffffff; --muted: rgba(235, 235, 245, 0.6); --faint: rgba(235, 235, 245, 0.3);
  --tint: #0a84ff; --green: #30d158; --orange: #ff9f0a; --red: #ff453a; --pink: #ff375f;
  --free: #30d158; --free-bg: rgba(48, 209, 88, 0.16); --taken-ink: rgba(235, 235, 245, 0.35);
  --bar: rgba(22, 22, 24, 0.78);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--red); font-size: 13px; min-height: 1.2em; margin-top: 10px; }
.empty { color: var(--muted); text-align: center; padding: 56px 24px; font-size: 15px; }
.empty .big { font-size: 40px; display: block; margin-bottom: 10px; }
svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 50px; padding: 0 20px; border-radius: 14px; border: 0;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: opacity 0.15s;
}
.btn:active { opacity: 0.6; }
.btn:disabled { opacity: 0.35; pointer-events: none; }
.btn.primary { background: var(--tint); color: var(--tint-ink); }
.btn.secondary { background: var(--fill); color: var(--tint); }
.btn.ghost { background: transparent; color: var(--tint); font-weight: 400; }
.btn.danger { background: transparent; color: var(--red); font-weight: 400; }
.btn.destructive { background: var(--fill); color: var(--red); }
.btn.ball { background: var(--tint); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 30px; padding: 0 14px; border-radius: 15px; font-size: 15px; }
.link-btn { background: none; border: 0; color: var(--tint); font: inherit; padding: 6px 0; cursor: pointer; }
.icon-btn { width: 34px; height: 34px; border-radius: 17px; border: 0; display: grid; place-items: center; background: var(--fill); color: var(--tint); cursor: pointer; }
.icon-btn svg.i { width: 18px; height: 18px; }
.icon-btn.float { position: absolute; background: rgba(30, 30, 30, 0.35); color: #fff; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.icon-btn.active { background: var(--tint); color: #fff; }

.field { display: block; margin-bottom: 12px; }
.label { display: block; font-size: 13px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; margin: 0 4px 6px; }
input[type="text"], input[type="tel"], input[type="date"], input[type="time"], input[type="search"], select {
  width: 100%; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 0;
  background: var(--surface); color: var(--text); font: inherit; font-size: 17px;
}
input:focus, select:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 35%, transparent); }
.code-input { text-align: center; letter-spacing: 0.5em; font-size: 24px !important; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-bottom: 0; }

/* segmented control */
.seg { display: inline-flex; background: var(--fill); padding: 2px; border-radius: 9px; }
.seg.full { display: flex; width: 100%; }
.seg-btn { flex: 1; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.seg-btn.active { background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg-btn.active { background: #636366; } }
:root[data-theme="dark"] .seg-btn.active { background: #636366; }

/* chips */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: var(--fill); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip.active { background: var(--text); color: var(--bg); }
.chip .count { opacity: 0.55; font-size: 13px; }
.chip.sm { padding: 6px 12px; font-size: 14px; }
.chip-ico { width: 15px !important; height: 15px !important; }
.chip.active .chip-ico { fill: currentColor; }
.ball-chip { background: var(--tint); color: #fff; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 24px 16px; }
.login-hero { text-align: center; margin-bottom: 28px; }
.login-hero h1 { font-size: 34px; margin: 18px 0 6px; }
.login-hero p { color: var(--muted); }
.login-card { background: var(--surface); padding: 20px 16px; border-radius: 16px; max-width: 420px; width: 100%; align-self: center; }
.login-card input { background: var(--fill-2); }
.fineprint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px; }
.logo-ball { width: 64px; height: 64px; border-radius: 16px; display: inline-block; margin: 0 auto; position: relative; background: linear-gradient(145deg, #1c1c1e, #3a3a3c); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.logo-ball::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6ffb0, #d4f43c 55%, #9fbf1d); }
.logo-ball.sm { display: none; }

/* ---------- app shell ---------- */
.app { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); max-width: 720px; margin: 0 auto; }
.view { min-height: calc(100vh - var(--tabbar-h)); }
.appbar {
  position: sticky; top: 0; z-index: 30; padding: 10px 16px;
  background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--line);
}
.appbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.appbar-row.tools { margin-top: 10px; }
.appbar-actions { display: flex; gap: 8px; }
.brand { font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.title { font-size: 28px; }
.search { flex: 1; position: relative; }
.search input { padding-left: 34px; min-height: 36px; border-radius: 10px; background: var(--fill); }
.search-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search-ico svg.i { width: 17px; height: 17px; }

/* date strip */
.date-strip { display: flex; gap: 4px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar { display: none; }
.date-strip.inset { margin: 12px -4px; }
.day { flex: none; width: 46px; padding: 6px 0; border-radius: 12px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.day .dow { display: block; font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; }
.day .dnum { display: block; font-size: 20px; font-weight: 500; margin-top: 1px; }
.day.active { background: var(--text); color: var(--bg); }
.day.active .dow { color: inherit; opacity: 0.7; }
.day.locked { opacity: 0.4; }

/* club list */
.club-list { padding: 16px; display: grid; gap: 16px; }
@media (min-width: 620px) { .club-list { grid-template-columns: 1fr 1fr; } }
.club-card { background: var(--surface); border-radius: 16px; overflow: hidden; cursor: pointer; transition: transform 0.15s; }
.club-card:active { transform: scale(0.98); }
.club-photo { aspect-ratio: 3 / 2; background: var(--fill) center / cover no-repeat; position: relative; }
.club-photo.noimg { display: grid; place-items: center; color: var(--muted); }
.club-photo .pill { position: absolute; top: 10px; left: 10px; background: rgba(30, 30, 30, 0.35); color: #fff; backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-radius: 999px; padding: 4px 9px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.club-photo .pill.bottom { top: auto; bottom: 10px; }
.club-photo .pill svg.i { width: 13px; height: 13px; }
.club-photo .pill svg.star { color: #ffd60a; fill: #ffd60a; stroke: none; }
.club-info { padding: 12px 14px 14px; }
.club-title { font-weight: 600; font-size: 17px; line-height: 1.25; }
.club-meta { text-transform: capitalize; color: var(--muted); font-size: 15px; margin-top: 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sep::before { content: "·"; }
.skeleton { background: linear-gradient(90deg, var(--fill-2), var(--fill), var(--fill-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-card { height: 260px; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* maps */
.explore-map { height: calc(100dvh - 200px - var(--tabbar-h)); min-height: 320px; }
.explore-map, .mini-map { position: relative; isolation: isolate; z-index: 0; }
.leaflet-container { background: var(--fill); font: inherit; }
.leaflet-control-attribution { font-size: 10px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.4); } }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.4); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.map-pop { width: 200px; font-family: inherit; }
.map-pop .ph { height: 100px; border-radius: 10px; background: #ddd center / cover; margin-bottom: 8px; }
.map-pop b { display: block; font-size: 15px; }
.map-pop span { color: #667; font-size: 13px; }
.map-pop button { margin-top: 8px; width: 100%; border: 0; background: #007aff; color: #fff; border-radius: 10px; padding: 9px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pin { width: 22px; height: 22px; border-radius: 50%; background: var(--tint); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #007aff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.2); }

/* ---------- club detail ---------- */
.club-view { padding-bottom: 24px; }
.hero { position: relative; background: #000; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; max-height: 50vh; width: 100%; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.hero-track .noimg { flex: none; width: 100%; display: grid; place-items: center; color: #888; }
.hero-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transition: background 0.2s; }
.hero-dots i.on { background: #fff; }
.back { top: calc(12px + env(safe-area-inset-top, 0px)); left: 12px; }
.club-body { padding: 0 16px; }
.club-head { padding: 18px 4px 4px; }
.club-sub { color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; }
.star { color: #ff9f0a; }
.price-row { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.price { background: var(--surface); border-radius: 8px; padding: 5px 10px; font-size: 13px; color: var(--muted); }
.price b { color: var(--text); font-weight: 600; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 14px 16px 16px; margin-top: 16px; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.legend { display: none; }
.slots { margin: 0 0 14px; }
.slot-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); margin: 16px 0 8px; font-weight: 400; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.slot { border: 0; border-radius: 10px; min-height: 44px; font: inherit; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.slot small { display: none; }
.slot.free { background: var(--free-bg); color: var(--free); font-weight: 600; }
.slot.taken { background: var(--taken-bg); color: var(--taken-ink); }
.slot.watched { background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); }
.slot.watched::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--tint); margin-left: 5px; }
.slot:active { transform: scale(0.94); }
.notice { display: flex; gap: 8px; align-items: center; background: var(--fill-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.notice svg.i { width: 16px; height: 16px; }
.notice.err { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); display: block; margin-top: 12px; }
.address { margin: 6px 0 12px; color: var(--muted); font-size: 15px; }
.mini-map { height: 170px; border-radius: 10px; overflow: hidden; }
.nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.nav-btns .btn { min-height: 44px; font-size: 15px; }
.about { white-space: pre-line; margin-top: 6px; color: var(--muted); font-size: 15px; }
.about.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- grouped lists ---------- */
.stack { padding: 16px; }
.group-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; margin: 18px 16px 6px; }
.group-label:first-child { margin-top: 0; }
.card-row { display: flex; gap: 12px; padding: 11px 14px 11px 12px; align-items: center; background: var(--surface); position: relative; cursor: pointer; }
.stack > .card-row:first-child, .group-label + .card-row { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.stack > .card-row:last-child, .card-row:has(+ .group-label) { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.card-row + .card-row::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: 0.5px solid var(--line); }
.card-row:active { background: var(--fill-2); }
.thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--fill) center / cover; flex: none; display: grid; place-items: center; color: var(--muted); }
.thumb svg.i { width: 18px; height: 18px; }
.thumb.sm { width: 36px; height: 36px; border-radius: 8px; }
.card-main { flex: 1; min-width: 0; }
.card-title { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-row.paused .card-main, .card-row.paused .thumb { opacity: 0.45; }
.card-row.unread .card-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); margin-right: 6px; vertical-align: middle; }
.card-side { display: flex; align-items: center; gap: 8px; }
.chev { color: var(--faint); display: flex; }
.chev svg.i { width: 15px; height: 15px; stroke-width: 2.6; }
.time-ago { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sb-line { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 3px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.sb-line bdi { overflow: hidden; text-overflow: ellipsis; }
.sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.sb-dot.ok { background: var(--green); }
.sb-dot.wait { background: var(--orange); }
.sb-dot.err { background: var(--red); }
.sb-dot.sync { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: 0.3; } }
.status-pill { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); white-space: nowrap; }
.status-pill.ok { background: var(--free-bg); color: var(--free); }
.status-pill.warn { background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); }
.status-pill.tint { background: color-mix(in srgb, var(--tint) 14%, transparent); color: var(--tint); }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--fill); transition: background 0.25s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 27px; height: 27px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 3px 1px rgba(0, 0, 0, 0.06); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

.push-card { margin: 16px 16px 0; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.push-card strong { font-weight: 600; font-size: 16px; }
.push-card.on { display: none; }
.push-actions { display: flex; gap: 6px; flex: none; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; justify-content: center; background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-top: 0.5px solid var(--line); }
.tab { flex: 1; max-width: 160px; border: 0; background: none; color: #999; font: inherit; font-size: 10px; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; position: relative; letter-spacing: 0; }
.tab.active { color: var(--tint); }
.tab-ico svg.i { width: 25px; height: 25px; stroke-width: 1.7; }
.tab.active .tab-ico svg.i { stroke-width: 2.1; }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* ---------- sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 60; animation: fade 0.25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 14px 14px 0 0; box-shadow: var(--shadow-lg); padding: 6px 16px calc(16px + var(--safe-b)); max-height: 92vh; max-height: 92dvh; overflow-y: auto; animation: up 0.35s cubic-bezier(0.2, 0.9, 0.25, 1); }
.sheet-grip { width: 36px; height: 5px; border-radius: 3px; background: var(--faint); margin: 2px auto 14px; }
.sheet h2 { font-size: 22px; font-weight: 700; margin: 0 4px 2px; }
.sheet .lead { color: var(--muted); margin: 0 4px 16px; font-size: 15px; }
.sheet .actions { display: grid; gap: 8px; margin-top: 18px; }
.sheet .badge-free, .sheet .badge-taken { display: inline-flex; gap: 5px; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 13px; font-weight: 600; margin: 0 4px 8px; }
.sheet .badge-free { background: var(--free-bg); color: var(--free); }
.sheet .badge-taken { background: var(--fill); color: var(--muted); }
.sheet .badge-free svg.i, .sheet .badge-taken svg.i { width: 14px; height: 14px; }
.sheet .label { margin-top: 18px; }
.sheet .field .label { margin-top: 0; }
.footnote { font-size: 13px; color: var(--muted); margin: 6px 16px 0; line-height: 1.35; }

/* grouped options inside sheets */
.opt-list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; position: relative; }
.opt + .opt::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--line); }
.opt input[type="radio"] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; order: 2; flex: none; }
.opt input[type="radio"]:checked { background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007aff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.opt > div { flex: 1; }
.opt b { display: block; font-weight: 400; font-size: 17px; }
.opt span { color: var(--muted); font-size: 13px; }
.opt.as-btn { width: 100%; background: transparent; border: 0; color: var(--text); font: inherit; text-align: start; }
.opt-list.sub { margin-top: 8px; }
.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-top: 6px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: var(--surface); cursor: pointer; position: relative; }
.group > .toggle-row + .toggle-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 0.5px solid var(--line); }
.toggle-row > div { flex: 1; }
.toggle-row b { display: block; font-weight: 400; font-size: 17px; }
.toggle-row > div > span { display: block; color: var(--muted); font-size: 13px; margin-top: 1px; line-height: 1.3; }
.chk-chip { position: relative; }
.chk-chip input { position: absolute; opacity: 0; }
.chk-chip span { display: inline-block; background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 15px; cursor: pointer; }
.chk-chip input:checked + span { background: var(--text); color: var(--bg); }
.free-courts { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 4px 6px; }
.free-courts span { background: var(--free-bg); color: var(--free); border-radius: 8px; padding: 4px 9px; font-size: 14px; font-weight: 500; }
.ab-note { margin: 8px 16px 0; font-size: 13px; line-height: 1.4; color: var(--muted); display: grid; gap: 4px; }
.ab-note.warn { color: var(--orange); }
.ab-note .ok-text { color: var(--free); display: inline-flex; align-items: center; gap: 5px; }
.ab-note .ok-text svg.i { width: 14px; height: 14px; }

/* batch sheet bits */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; }
.sec-head .label { margin-top: 0; }
.sel-clubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.sel-club { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; font: inherit; font-size: 15px; background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 10px 4px 4px; max-width: 100%; }
.sel-club i { width: 24px; height: 24px; border-radius: 50%; background: var(--fill) center / cover; flex: none; }
.sel-club bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.sel-club span { color: var(--faint); font-size: 18px; line-height: 1; }
.search.compact { display: block; }
.search.compact input { min-height: 36px; background: var(--fill); }
.pool { background: var(--surface); border-radius: var(--radius); margin-top: 8px; max-height: 250px; overflow-y: auto; }
.pool-item { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 10px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: start; cursor: pointer; width: 100%; position: relative; }
.pool-item + .pool-item::before { content: ""; position: absolute; top: 0; left: 58px; right: 0; border-top: 0.5px solid var(--line); }
.pool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pool-main bdi { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pool-main small { color: var(--muted); font-size: 13px; text-transform: capitalize; }
.fav-mark { color: var(--pink); font-size: 13px; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--faint); color: transparent; font-size: 0; }
.pool-item.on .tick { background: var(--tint); border-color: var(--tint); color: #fff; }
.pool-item.on .tick svg.i { width: 13px; height: 13px; stroke-width: 3.2; }
.center { text-align: center; padding: 8px 0; }
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.quick-row .chip { background: var(--surface); }
.quick-row .chip.active { background: var(--text); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--surface); border-radius: var(--radius); padding: 8px; }
.cal-day { border: 0; background: transparent; color: var(--text); border-radius: 10px; padding: 6px 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.cal-day span { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 500; }
.cal-day b { font-size: 17px; font-weight: 500; }
.cal-day.on { background: var(--tint); color: #fff; }
.cal-day.on span { color: inherit; opacity: 0.85; }
.sticky-actions { position: sticky; bottom: calc(-16px - var(--safe-b)); background: var(--bg); margin: 16px -16px calc(-16px - var(--safe-b)); padding: 10px 16px calc(14px + var(--safe-b)); border-top: 0.5px solid var(--line); }
.summary { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 8px; }

/* favorites */
.heart { border: 0; cursor: pointer; display: grid; place-items: center; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; background: var(--fill); }
.heart svg.i { width: 18px; height: 18px; }
.heart:active { transform: scale(0.85); }
.heart.on { color: var(--pink); }
.heart.on svg.i { fill: currentColor; }
.heart.on-photo { position: absolute; top: 10px; right: 10px; background: rgba(30, 30, 30, 0.35); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.heart.on-photo.on, .heart.float.on { color: var(--pink); }
.heart.float { position: absolute; background: rgba(30, 30, 30, 0.35); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.fav-float { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
.chip-row.tight { padding: 10px 0 0; }

/* booking receipt */
.receipt { background: var(--surface); border-radius: var(--radius); padding: 2px 16px; font-size: 16px; }
.receipt > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.receipt > div + div { border-top: 0.5px solid var(--line); }
.receipt > div > span:first-child { color: var(--muted); }
.receipt .strong > span { color: var(--text) !important; font-weight: 600; }
.receipt hr { display: none; }
.receipt p { padding: 0 0 12px; margin: 0; font-size: 13px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--bar); color: var(--text); padding: 12px 18px; border-radius: 18px; font-size: 15px; font-weight: 500; backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.16); max-width: 440px; animation: drop 0.35s cubic-bezier(0.2, 0.9, 0.25, 1); pointer-events: auto; }
.toast.err { color: var(--red); }

@keyframes up { from { transform: translateY(100%); } }
@keyframes drop { from { transform: translateY(-30px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* Mixed Hebrew/English names: keep list text left-aligned like iOS, but render each name in its own direction. */
.club-title, .card-title, .pool-main bdi, #club-name, .sheet h2 { text-align: left; unicode-bidi: plaintext; }

/* no-refund opt-in */
.nr-box { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border-radius: var(--radius); overflow: hidden; margin-top: 2px; }
.nr-title { color: var(--red); font-weight: 600; font-size: 15px; padding: 12px 16px 2px; }
.nr-list { color: var(--red); font-size: 14px; padding: 0 16px 10px; line-height: 1.45; opacity: 0.9; }
.nr-toggle { background: transparent; border-top: 0.5px solid color-mix(in srgb, var(--red) 30%, transparent); }
.nr-toggle b { color: var(--red); }
.nr-toggle > div > span { color: color-mix(in srgb, var(--red) 75%, var(--text)) !important; }
.switch.red input:checked + span { background: var(--red); }
.ab-note { margin-left: 0; margin-right: 0; }
.club-meta { justify-content: space-between; }
.club-price { color: var(--text); font-weight: 600; font-size: 15px; text-transform: none; font-variant-numeric: tabular-nums; }

/* =====================================================================
   HIG pass: Apple text styles (rem, Large default), collapsing nav bars,
   44pt hit areas, focus rings, page-sheet presentation.
   ===================================================================== */
:root {
  --bar-solid: #f9f9f9;
  /* text styles: size / line-height / tracking (SF Pro values from the HIG typography tables) */
  --t-large: 2.125rem;  --lh-large: 2.5625rem;  --tr-large: 0.025rem;   /* 34/41 +12 */
  --t-title1: 1.75rem;  --lh-title1: 2.125rem;  --tr-title1: 0.024rem;  /* 28/34 */
  --t-title2: 1.375rem; --lh-title2: 1.75rem;   --tr-title2: -0.016rem; /* 22/28 */
  --t-title3: 1.25rem;  --lh-title3: 1.5625rem; --tr-title3: -0.029rem; /* 20/25 */
  --t-body: 1.0625rem;  --lh-body: 1.375rem;    --tr-body: -0.027rem;   /* 17/22 −26 */
  --t-callout: 1rem;    --lh-callout: 1.3125rem; --tr-callout: -0.02rem;/* 16/21 */
  --t-sub: 0.9375rem;   --lh-sub: 1.25rem;      --tr-sub: -0.015rem;    /* 15/20 */
  --t-foot: 0.8125rem;  --lh-foot: 1.125rem;    --tr-foot: -0.005rem;   /* 13/18 */
  --t-cap1: 0.75rem;    --lh-cap1: 1rem;        --tr-cap1: 0;           /* 12/16 */
  --t-cap2: 0.6875rem;  --lh-cap2: 0.8125rem;   --tr-cap2: 0.004rem;    /* 11/13 */
  --nav-h: 44px;
  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bar-solid: #161618; } }
:root[data-theme="dark"] { --bar-solid: #161618; }

html { font-size: 100%; }
body { font-size: var(--t-body); line-height: var(--lh-body); letter-spacing: var(--tr-body); }
.btn { font-size: var(--t-body); letter-spacing: var(--tr-body); }
.btn.sm { font-size: var(--t-sub); }
.label, .group-label, .slot-group h3 { font-size: var(--t-foot); line-height: var(--lh-foot); letter-spacing: var(--tr-foot); }
.footnote, .ab-note, .notice, .summary, .sb-line, .time-ago { font-size: var(--t-foot); line-height: var(--lh-foot); letter-spacing: var(--tr-foot); }
.card-title { font-size: var(--t-body); letter-spacing: var(--tr-body); }
.card-sub, .club-meta, .club-sub, .address, .about, .pool-main small { font-size: var(--t-sub); letter-spacing: var(--tr-sub); }
.club-title { font-size: var(--t-body); font-weight: 600; letter-spacing: var(--tr-body); }
.club-price { font-size: var(--t-sub); }
.opt b, .toggle-row b { font-size: var(--t-body); letter-spacing: var(--tr-body); }
.opt span, .toggle-row > div > span { font-size: var(--t-foot); letter-spacing: var(--tr-foot); }
.chip, .chk-chip span, .seg-btn { letter-spacing: var(--tr-sub); }
.seg-btn { font-size: var(--t-foot); }
.chip, .chk-chip span { font-size: var(--t-sub); }
.tab { font-size: var(--t-cap2); letter-spacing: var(--tr-cap2); }
.day .dow, .cal-day span { font-size: var(--t-cap2); }
.day .dnum { font-size: var(--t-title3); letter-spacing: var(--tr-title3); }
.sheet h2 { font-size: var(--t-title2); line-height: var(--lh-title2); letter-spacing: var(--tr-title2); font-weight: 700; }
.club-head h1, #club-name { font-size: var(--t-title1); line-height: var(--lh-title1); letter-spacing: var(--tr-title1); font-weight: 700; }
.receipt { font-size: var(--t-body); }
.badge { font-size: var(--t-cap1); }

/* ---- navigation bar + large title ---- */
.navbar {
  position: sticky; top: 0; z-index: 31; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 8px;
  background: transparent; border-bottom: 0.5px solid transparent;
  transition: background-color 0.2s, border-color 0.2s;
}
.navbar.scrolled {
  background: var(--bar); border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav-title {
  font-size: var(--t-body); font-weight: 600; letter-spacing: var(--tr-body);
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; unicode-bidi: plaintext;
}
.navbar.scrolled .nav-title { opacity: 1; transform: none; }
.nav-side { display: flex; align-items: center; gap: 2px; }
.nav-side.end { justify-content: flex-end; }
.nav-icon, .nav-text, .nav-back {
  border: 0; background: none; color: var(--tint); font: inherit; cursor: pointer;
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px;
}
.nav-icon svg.i { width: 22px; height: 22px; stroke-width: 2; }
.nav-text { padding: 0 8px; font-size: var(--t-body); }
.nav-back { padding: 0 6px 0 0; gap: 0; font-size: var(--t-body); }
.nav-back svg.i { width: 24px; height: 24px; stroke-width: 2.4; }
.nav-icon:active, .nav-text:active, .nav-back:active { opacity: 0.4; }
.large-title {
  font-size: var(--t-large); line-height: var(--lh-large); letter-spacing: var(--tr-large); font-weight: 700;
  margin: 0; padding: 2px 16px 8px;
}
.toolbar { position: sticky; top: var(--nav-h); z-index: 30; padding: 0 16px 10px; background: var(--bg); }
.navbar.scrolled + .large-title + .toolbar {
  background: var(--bar); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 0.5px solid var(--line);
}
.navbar.scrolled:has(+ .large-title + .toolbar) { border-bottom-color: transparent; }
.toolbar .date-strip { margin-top: 0; }
.toolbar-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.view > .stack { padding-top: 8px; }
.push-card { margin-top: 8px; }

/* club page: transparent nav over the hero that turns solid once the photo scrolls away */
.navbar.overlay { position: fixed; left: 0; right: 0; max-width: 720px; margin: 0 auto; }
.navbar.overlay:not(.scrolled) .nav-side { visibility: hidden; }
.club-view .icon-btn.float.back, .club-view .fav-float { transition: opacity 0.2s; }
.club-view:has(.navbar.scrolled) .icon-btn.float.back { opacity: 0; pointer-events: none; }

/* ---- tab bar: filled icon when selected ---- */
.tab { min-height: 44px; }
.tab .tab-ico svg.i { stroke-width: 1.7; }
.tab.active .tab-ico svg.i { stroke-width: 1.7; }

/* ---- 44pt hit areas without changing the look ---- */
.chip, .chk-chip span, .heart, .icon-btn, .seg-btn, .day, .cal-day, .btn.sm, .link-btn, .sel-club { position: relative; }
.chip::after, .chk-chip span::after, .heart::after, .icon-btn::after, .seg-btn::after, .btn.sm::after, .link-btn::after, .sel-club::after {
  content: ""; position: absolute; inset: -7px -2px; min-height: 44px;
}
.heart::after, .icon-btn::after { inset: -5px; }
.day { min-height: 44px; }
.cal-day { min-height: 44px; justify-content: center; }
.slot { min-height: 44px; }

/* ---- keyboard focus (never remove outlines without a replacement) ---- */
input:focus { box-shadow: none; }
input:focus-visible, select:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint) 40%, transparent); }
button:focus-visible, [role="button"]:focus-visible, a:focus-visible, .switch input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--tint) 55%, transparent); outline-offset: 2px;
}
.card-row:focus-visible { outline-offset: -3px; }

/* ---- page-sheet presentation: the screen behind recedes like iOS card sheets ---- */
html, body { background: var(--bg); }
body.sheet-open { background: #000; }
#app-view { transition: transform 0.45s var(--ease-ios), border-radius 0.45s var(--ease-ios), filter 0.45s; transform-origin: 50% 0; }
body.sheet-open #app-view { transform: translateY(14px) scale(0.93); border-radius: 12px; overflow: hidden; filter: brightness(0.85); }
body.sheet-open .tabbar { opacity: 0; transition: opacity 0.2s; }
.sheet { animation: sheet-up 0.5s var(--ease-ios); transition: transform 0.35s var(--ease-ios); touch-action: pan-y; }
.sheet-backdrop { background: rgba(0, 0, 0, 0.18); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-grip { cursor: grab; padding: 6px 0; box-sizing: content-box; background-clip: content-box; margin-top: -4px; }
.toast { animation-timing-function: var(--ease-ios); }
.club-card { transition: transform 0.25s var(--ease-ios); }

/* the old app bar is gone */
.appbar, .brand { display: none; }

@media (prefers-reduced-motion: reduce) {
  body.sheet-open #app-view { transform: none; filter: none; }
}

/* ---- bars: size to content + respect iPhone safe areas (no clipping with larger text) ---- */
:root { --safe-t: env(safe-area-inset-top, 0px); }
.tabbar {
  height: auto; min-height: calc(50px + var(--safe-b));
  padding: 6px 0 max(var(--safe-b), 6px); align-items: flex-start; overflow: visible;
}
.tab { padding: 0 4px; min-height: 44px; justify-content: flex-start; gap: 3px; line-height: 1.1; }
.tab-ico { display: flex; height: 26px; align-items: center; }
.badge { top: -2px; }
.app { padding-bottom: calc(64px + var(--safe-b)); }
.toasts { top: calc(10px + var(--safe-t)); }
.navbar { height: calc(var(--nav-h) + var(--safe-t)); padding-top: var(--safe-t); }
.toolbar { top: calc(var(--nav-h) + var(--safe-t)); padding-top: 6px; }
.date-strip { padding: 2px 0; }
.back, .fav-float { top: calc(8px + var(--safe-t)); }
.sheet { max-height: calc(100dvh - var(--safe-t) - 12px); }

/* ---------- Hebrew / RTL: logical positioning, mirrored chevrons & switches ---------- */
.card-row + .card-row::before { left: auto; right: auto; inset-inline-start: 72px; inset-inline-end: 0; }
.opt + .opt::before, .group > .toggle-row + .toggle-row::before { left: auto; right: auto; inset-inline-start: 16px; inset-inline-end: 0; }
.pool-item + .pool-item::before { left: auto; right: auto; inset-inline-start: 58px; inset-inline-end: 0; }
.search input { padding-left: 14px; padding-inline-start: 34px; }
.search-ico { left: auto; inset-inline-start: 9px; }
.club-photo .pill { left: auto; inset-inline-start: 10px; }
.heart.on-photo { right: auto; inset-inline-end: 10px; }
.back { left: auto; inset-inline-start: 12px; }
.fav-float { right: auto; inset-inline-end: 12px; }
.card-row { padding: 11px; padding-inline: 12px 14px; }
.sel-club { padding: 4px; padding-inline-end: 10px; }
.nav-back { padding: 0; padding-inline-end: 6px; }
.slot.watched::after { margin-left: 0; margin-inline-start: 5px; }
.club-title, .card-title, .pool-main bdi, #club-name, .sheet h2 { text-align: start; }
[dir="rtl"] .chev svg, [dir="rtl"] .nav-back svg, [dir="rtl"] #club-back svg { transform: scaleX(-1); }
[dir="rtl"] .switch span::after { left: auto; right: 2px; }
[dir="rtl"] .switch input:checked + span::after { transform: translateX(-20px); }
[dir="rtl"] .badge { left: auto; right: calc(50% + 6px); }
[dir="rtl"] .leaflet-container { direction: ltr; }
[dir="rtl"] .receipt > div > span:last-child { unicode-bidi: isolate; }
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .large-title, [dir="rtl"] .nav-title, [dir="rtl"] .sheet h2 { letter-spacing: 0; }
.card-sub.wrap { white-space: normal; }
/* Hebrew system font on Apple devices is SF Hebrew via -apple-system; keep a good fallback elsewhere */
[dir="rtl"] body { font-family: -apple-system, BlinkMacSystemFont, "SF Hebrew", "Arial Hebrew", "Segoe UI", system-ui, sans-serif; }

/* ---------- brand ---------- */
.app-icon { width: 104px; height: 104px; border-radius: 23%; display: block; margin: 0 auto; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.12); }
.wordmark { font-weight: 800; letter-spacing: -0.03em; direction: ltr; unicode-bidi: isolate; }
.wordmark span {
  background: linear-gradient(100deg, #9fcf00 0%, #d4f43c 35%, #f2c24f 75%, #c58d1c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-hero .wordmark { font-size: var(--t-large); margin: 20px 0 6px; }
.brand-row { display: flex; align-items: center; gap: 10px; margin: 0 4px 14px; }
.brand-row img { width: 40px; height: 40px; border-radius: 23%; }
.wordmark.sm { font-size: var(--t-title3); }
.login { position: relative; }
.login-lang { position: absolute; top: calc(14px + var(--safe-t)); inset-inline-end: 16px; }
.login-lang .seg-btn { padding: 6px 14px; }

/* ---------- "Free at…" filter ---------- */
.tint-chip { background: var(--tint) !important; color: #fff !important; }
.chip-x { margin-inline-start: 4px; opacity: 0.8; font-size: 12px; }
.free-times { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.slot.mini { min-height: 34px; padding: 0 10px; font-size: var(--t-sub); border-radius: 9px; position: relative; }
.slot.mini::after { content: ""; position: absolute; inset: -5px -2px; }
.slot.mini i { font-style: normal; font-size: var(--t-cap1); opacity: 0.7; margin-inline-start: 3px; }
.free-times .more { align-self: center; color: var(--muted); font-size: var(--t-foot); padding: 0 4px; }
.search-note { color: var(--muted); font-size: var(--t-foot); text-align: center; margin: 0 0 4px; }

/* ---------- error banners ---------- */
.toast { cursor: pointer; line-height: 1.3; }
.toast.err { display: flex; align-items: flex-start; gap: 10px; color: var(--text); text-align: start; padding: 12px 16px 12px 12px; }
.toast-ico {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; line-height: 1; margin-top: 1px;
}
.toast-text { flex: 1; }
.people-add { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; margin-top: 8px; align-items: center; }
.people-add input { background: var(--surface); min-height: 40px; }
.opt .btn.danger.sm { flex: none; }
