/* ClubTraffic — interface styles (Dec 2026 polish).
   Rules of this skin: flat colour only (no gradients), Montserrat, one accent (the logo blue),
   light + dark theme through <html data-theme>, one quiet hover per element, no pulsing. */

/* ---------- themes ---------- */
:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --text-display: clamp(2.25rem, 1rem + 4vw, 3.75rem);
  --text-large-title: 2rem;
  --text-title-1: 1.625rem;
  --text-title-2: 1.25rem;
  --text-title-3: 1.125rem;
  --text-headline: 1rem;
  --text-body: .9375rem;
  --text-callout: .9375rem;
  --text-subhead: .875rem;
  --text-footnote: .8125rem;
  --text-caption: .75rem;
  --leading-normal: 1.55;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-xl: 18px;
  --topbar-h: 60px;
  --brand-cyan: var(--accent-text);            /* old names, kept for older markup */
  --brand-blue: var(--accent);
  --brand-accent: var(--accent);
  --brand-accent-hover: var(--accent-hover);
  --brand-accent-text: var(--accent-text);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
}
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B0C0F; --bg-secondary: #111318; --bg-tertiary: #0E1014;
  --surface: #15171C; --surface-hover: #1D2027;
  --text: #F4F5F7; --text-secondary: #A6AAB3; --text-tertiary: #7F848E; --on-surface-muted: #C9CCD3;
  --border: rgba(255,255,255,.11); --separator: rgba(255,255,255,.07);
  --fill: rgba(255,255,255,.06); --fill-2: rgba(255,255,255,.11);
  --accent: #2B7BFF; --accent-hover: #4A8FFF; --accent-text: #74B4FF; --accent-soft: rgba(43,123,255,.16);
  --on-accent: #fff;
  --lvl-calm: #3ACB70; --lvl-medium: #F2C230; --lvl-busy: #FF9330; --lvl-packed: #FF4D6A; --lvl-closed: #6E737D; --lvl-camonly: #B98AF7;
  --live: #E5173F; --danger: #FF4D6A; --success: #3ACB70;
  --marker-ring: #0B0C0F; --scroll: rgba(255,255,255,.2); --scroll-hover: rgba(255,255,255,.34);
  --overlay: rgba(4,5,8,.6);
  --shadow-1: 0 1px 2px rgba(0,0,0,.4); --shadow-2: 0 6px 20px rgba(0,0,0,.45); --shadow-3: 0 16px 44px rgba(0,0,0,.55);
  --bar-bg: rgba(11,12,15,.88);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F5F2; --bg-secondary: #EDECE8; --bg-tertiary: #F1F0EC;
  --surface: #FFFFFF; --surface-hover: #F3F2EE;
  --text: #121419; --text-secondary: #585D68; --text-tertiary: #7B808B; --on-surface-muted: #3A3E47;
  --border: rgba(18,20,25,.13); --separator: rgba(18,20,25,.08);
  --fill: rgba(18,20,25,.05); --fill-2: rgba(18,20,25,.09);
  --accent: #0A5CFF; --accent-hover: #0048D6; --accent-text: #0A4FDB; --accent-soft: rgba(10,92,255,.1);
  --on-accent: #fff;
  --lvl-calm: #1A8A45; --lvl-medium: #9A6A00; --lvl-busy: #C25600; --lvl-packed: #D61F45; --lvl-closed: #8C919B; --lvl-camonly: #7C3AED;
  --live: #D8143A; --danger: #D61F45; --success: #1A8A45;
  --marker-ring: #FFFFFF; --scroll: rgba(18,20,25,.22); --scroll-hover: rgba(18,20,25,.38);
  --overlay: rgba(18,20,25,.42);
  --shadow-1: 0 1px 2px rgba(18,20,25,.07); --shadow-2: 0 6px 20px rgba(18,20,25,.1); --shadow-3: 0 16px 44px rgba(18,20,25,.16);
  --bar-bg: rgba(246,245,242,.9);
}

/* ---------- base ---------- */
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); max-width: 100%; overflow-x: clip; }
body { margin: 0; min-height: 100vh; font-size: var(--text-body); line-height: var(--leading-normal); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -.015em; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
[data-lucide], svg.lucide { width: 18px; height: 18px; stroke-width: 1.9; flex: none; }
main { outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }

/* scrollbars in the look of the page: thin, rounded, no track */
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); background-clip: content-box; }
}
.chips, .vnav, .events, .nearest-list { scrollbar-width: none; }
.chips::-webkit-scrollbar, .vnav::-webkit-scrollbar, .events::-webkit-scrollbar, .nearest-list::-webkit-scrollbar { display: none; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 1000; height: var(--topbar-h); display: flex; align-items: center; gap: var(--space-md); padding: 0 var(--gutter);
  background: var(--bar-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--separator); }
.logo { display: flex; align-items: center; }
.logo-img { height: 22px; width: auto; display: block; }
:root[data-theme="light"] .logo-on-dark, :root:not([data-theme="light"]) .logo-on-light { display: none; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topnav a { display: flex; align-items: center; gap: 7px; padding: 8px 12px; min-height: 38px; border-radius: var(--radius-md); color: var(--text-secondary); font-weight: 600; font-size: var(--text-footnote); white-space: nowrap; }
.topnav a:hover { color: var(--text); }
.topnav a.active { color: var(--text); background: var(--fill); }
.topnav a svg.lucide { width: 16px; height: 16px; }
.theme-btn { display: grid; place-items: center; width: 38px; height: 38px; margin-left: 6px; border: 1px solid var(--border); border-radius: 50%; background: none; color: var(--text-secondary); }
.theme-btn:hover { color: var(--text); background: var(--fill); }
.theme-btn svg.lucide { width: 17px; height: 17px; }
:root[data-theme="light"] .theme-btn .t-sun, :root:not([data-theme="light"]) .theme-btn .t-moon { display: none; }

.demo-btn { display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; min-height: 34px; margin: 0 6px; border: 1px solid var(--border); border-radius: var(--radius-full); background: none; color: var(--text); font: inherit; font-size: var(--text-footnote); font-weight: 700; white-space: nowrap; cursor: pointer; }
.demo-btn:hover { background: var(--fill); }
.demo-btn svg.lucide { width: 13px; height: 13px; fill: currentColor; }
.demo-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-btn[aria-pressed="false"] .d-on, .demo-btn[aria-pressed="true"] .d-off { display: none; }
.seg { display: inline-flex; padding: 3px; background: var(--fill); border-radius: var(--radius-md); }
.seg button { border: 0; background: none; padding: 6px 12px; min-height: 32px; border-radius: 8px; font-size: var(--text-footnote); font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg.sm button { padding: 4px 10px; min-height: 28px; font-size: var(--text-caption); }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; min-height: 44px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: var(--text-subhead); transition: background var(--dur-fast), border-color var(--dur-fast); }
.btn:hover { background: var(--surface-hover); }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sm { min-height: 36px; padding: 6px 13px; font-size: var(--text-footnote); border-radius: 9px; }
.btn.sm svg.lucide { width: 15px; height: 15px; }
.btn.lg { min-height: 52px; padding: 12px 26px; font-size: var(--text-body); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: transparent; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.icon-btn { width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.icon-btn.add { width: 40px; height: 40px; flex: none; font-size: 20px; line-height: 1; background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.icon-btn.add[aria-expanded="true"] { background: var(--accent); color: #fff; }
.link-btn, .linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: var(--text-footnote); font-weight: 600; cursor: pointer; }
.link-btn { margin-top: var(--space-xs); color: var(--text-secondary); }
.link-btn:hover { color: var(--danger); }
.link-btn svg.lucide { width: 14px; height: 14px; }
.linkbtn { margin-top: var(--space-md); color: var(--accent-text); }
.linkbtn:hover { color: var(--text); }

.chips { display: flex; gap: var(--space-xs); overflow-x: auto; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; min-height: 38px; border-radius: var(--radius-full); border: 1px solid var(--border); background: transparent; font-size: var(--text-footnote); font-weight: 600; color: var(--text-secondary); transition: background var(--dur-fast), color var(--dur-fast); }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip svg.lucide { width: 15px; height: 15px; }
.chips-lbl { display: none; }
.select { appearance: none; padding: 8px 32px 8px 12px; min-height: 38px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8f99' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--text); font: inherit; font-size: var(--text-footnote); font-weight: 500; }
.input { width: 100%; padding: 10px 12px; min-height: 42px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: var(--text-subhead); }
.input::placeholder { color: var(--text-tertiary); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-footnote); color: var(--text-secondary); white-space: nowrap; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 18px; height: 18px; }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 13px; background: var(--fill-2); transition: background var(--dur-fast); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--dur-fast) var(--ease-out); }
.switch input:checked + span { background: var(--success); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-md); }
.field label { font-size: var(--text-footnote); color: var(--text-secondary); font-weight: 600; }
.field .select, .field .seg { width: 100%; }
.field .seg button { flex: 1; padding: 6px 8px; }
.field input[type=range] { accent-color: var(--accent); width: 100%; }
.field .pubhint { margin-top: 2px; font-size: var(--text-caption); color: var(--text-tertiary); }
.pubhint { margin: 0; font-size: var(--text-footnote); color: var(--text-secondary); line-height: var(--leading-normal); }
.status { font-size: var(--text-footnote); color: var(--text-secondary); display: flex; align-items: center; gap: 8px; min-height: 22px; }
.status.ok { color: var(--success); }
.status.err { color: var(--danger); }

/* ---------- shared bits ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-lg); }
.card + .card { margin-top: var(--space-md); }
.card h2 { margin: 0 0 var(--space-md); font-size: var(--text-headline); font-weight: 700; }
.actions { display: flex; gap: var(--space-xs); flex-wrap: wrap; margin-top: var(--space-md); }
.empty { padding: var(--space-2xl) var(--space-md); text-align: center; color: var(--text-secondary); }
.empty svg.lucide { width: 28px; height: 28px; color: var(--text-tertiary); }
.empty p { margin: var(--space-xs) 0 var(--space-md); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.lvl-calm { color: var(--lvl-calm); } .lvl-medium { color: var(--lvl-medium); } .lvl-busy { color: var(--lvl-busy); }
.lvl-packed { color: var(--lvl-packed); } .lvl-camonly { color: var(--lvl-camonly); } .lvl-closed { color: var(--text-tertiary); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-sm); background: var(--fill); font-size: var(--text-caption); font-weight: 500; color: var(--text-secondary); }
.tag.q { color: var(--lvl-busy); }
.tag.cam { color: #fff; background: var(--live); font-weight: 700; font-size: 10px; letter-spacing: .05em; padding: 2px 6px; border-radius: 4px; vertical-align: middle; }
.tag.dist { color: var(--accent-text); background: var(--accent-soft); font-weight: 600; }
.tag [data-lucide], .tag svg.lucide { width: 13px; height: 13px; }
.trend-up { color: var(--lvl-packed); } .trend-down { color: var(--lvl-calm); }
.gtags { display: flex; flex-wrap: wrap; gap: 5px; }
.gtag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--radius-full); font-size: var(--text-caption); font-weight: 600; color: var(--text-secondary); border: 1px solid var(--border); }
.gtag svg.lucide { width: 12px; height: 12px; }
.meter { height: 4px; border-radius: 2px; background: var(--fill-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 2px; background: currentColor; transition: width var(--dur-slow) var(--ease-out); }
.vlogo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #000; flex: none; box-shadow: 0 0 0 1px var(--border); }
.vlogo img { width: 82%; height: 82%; object-fit: contain; }
.vlogo.ico img, .pop-logo.ico img, .leaflet-container .mk-logo .mk-in.ico img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.vlogo.ini { background: var(--text); color: var(--bg); font-weight: 800; font-size: 1rem; letter-spacing: .01em; box-shadow: none; }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: var(--text-caption); letter-spacing: .1em; text-transform: uppercase; }
#toast { visibility: hidden; position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); padding: 12px 18px; border-radius: var(--radius-md); background: var(--text); color: var(--bg); font-weight: 600; font-size: var(--text-subhead); box-shadow: var(--shadow-3); transition: transform var(--dur-base) var(--ease-out); z-index: 2000; max-width: calc(100vw - 32px); }
#toast.show { visibility: visible; transform: translate(-50%, 0); }

/* ---------- home: list + map ---------- */
.home { display: grid; grid-template-columns: minmax(380px, 480px) 1fr; height: calc(100vh - var(--topbar-h)); height: calc(100dvh - var(--topbar-h)); }
.home-list { overflow-y: auto; padding: var(--space-lg) var(--gutter) var(--space-3xl); container-type: inline-size; container-name: list; }
.home-map { position: relative; isolation: isolate; }
#map { position: absolute; inset: 0; background: var(--bg-secondary); }

.hero h1 { font-size: var(--text-title-1); line-height: 1.15; margin: 0 0 6px; font-weight: 800; letter-spacing: -.025em; }
.hero p { margin: 0; color: var(--text-secondary); font-size: var(--text-subhead); max-width: 46ch; }
.pulse-stats { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: var(--space-md) 0 var(--space-xs); font-size: var(--text-footnote); color: var(--text-secondary); }
.pstat b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.pstat.packed b { color: var(--lvl-packed); }

.filters { display: flex; align-items: center; position: sticky; top: calc(-1 * var(--space-lg)); z-index: 5; margin-bottom: var(--space-sm); padding: var(--space-sm) 0; background: var(--bg); }
.filter-row { display: flex; gap: var(--space-xs); align-items: center; flex-wrap: wrap; }
.fmain { width: 100%; flex-wrap: nowrap; }
.fmain #locate { margin-left: auto; }
.l-short { display: none; }
.fopen { display: inline-flex; flex: none; }
.fopen[aria-expanded="true"], .fopen:has(.fbadge:not([hidden])) { border-color: var(--text); color: var(--text); }
.fbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.fbadge[hidden] { display: none; }
.factive { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 var(--space-sm); }
.factive[hidden] { display: none; }
.fa-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 12px; min-height: 30px; border: 0; border-radius: var(--radius-full); background: var(--fill); color: var(--text); font: inherit; font-size: var(--text-caption); font-weight: 600; cursor: pointer; }
.fa-chip:hover { background: var(--fill-2); }
.fa-chip svg.lucide { width: 13px; height: 13px; color: var(--text-tertiary); }
.fa-clear { border: 0; background: none; padding: 4px 6px; color: var(--accent-text); font: inherit; font-size: var(--text-caption); font-weight: 600; cursor: pointer; }
.fsheet-hint { margin: 0 auto 0 12px; font-size: var(--text-caption); color: var(--text-tertiary); }
#locate[aria-busy="true"] { opacity: .6; }

.fsheet { position: absolute; z-index: 1200; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0 var(--space-lg);
  box-shadow: var(--shadow-3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.fsheet.open { opacity: 1; visibility: visible; transform: none; }
.fsheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; padding: 14px 0 6px; background: inherit; }
.fsheet-head b { font-size: var(--text-headline); }
.fsheet-x { background: none; border: 0; color: inherit; padding: 8px; margin-right: -8px; cursor: pointer; }
.fsec { padding: var(--space-sm) 0 var(--space-md); border-bottom: 1px solid var(--separator); width: 100%; min-width: 0; }
.fsec-lbl { display: block; font-size: var(--text-caption); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.fsheet .chips { flex-wrap: wrap; overflow: visible; }
.fsheet .filter-row { flex-wrap: wrap; gap: var(--space-md); }
.fsheet-foot { display: flex; gap: var(--space-xs); position: sticky; bottom: 0; padding: 12px 0; background: inherit; }
.fsheet-foot .btn { justify-content: center; } .fsheet-foot .primary { flex: 1; }
.fsheet-bg { position: fixed; inset: 0; z-index: 1100; background: var(--overlay); opacity: .5; }
.fsheet-bg[hidden] { display: none; }
body.sheet-open .filters { z-index: 1300; }

.sortdd { position: relative; min-width: 0; }
.sortbtn { display: inline-flex; align-items: center; gap: 8px; width: 100%; cursor: pointer; text-align: left; white-space: nowrap; border-radius: var(--radius-full); background-color: transparent; font-weight: 600; color: var(--text-secondary); }
.sortbtn i, .sortbtn svg { width: 15px; height: 15px; flex: none; }
.sortbtn span { overflow: hidden; text-overflow: ellipsis; }
.sortmenu { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 6px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-3); }
.sortmenu[hidden] { display: none; }
.sortmenu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: var(--text-subhead); text-align: left; cursor: pointer; }
.sortmenu button:hover, .sortmenu button:focus-visible { background: var(--fill); outline: none; box-shadow: none; }
.sortmenu button svg { width: 16px; height: 16px; color: var(--text-secondary); }
.sortmenu .sortok { margin-left: auto; visibility: hidden; color: var(--accent-text); }
.sortmenu [aria-selected="true"] { font-weight: 700; }
.sortmenu [aria-selected="true"] .sortok { visibility: visible; }

.nearest { margin: 0 0 var(--space-sm); }
.nearest-h { font-size: var(--text-caption); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.nearest-h svg { width: 13px; height: 13px; }
.nearest-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.nearest-i { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: var(--radius-md); background: var(--fill); color: var(--text); min-width: 0; }
.nearest-i:hover { background: var(--fill-2); }
.nl-logo { width: 30px; height: 30px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #000; color: #fff; font-size: 11px; font-weight: 700; }
.nl-logo.ini { background: var(--fill-2); color: var(--text); }
.nl-logo img { width: 84%; height: 84%; object-fit: contain; }
.nl-txt { display: grid; min-width: 0; line-height: 1.3; }
.nl-txt b { font-size: var(--text-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-txt span { font-size: var(--text-caption); font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nearest-cta { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0 10px; border: 0; background: none; color: var(--accent-text); font: inherit; font-size: var(--text-footnote); font-weight: 600; text-align: left; cursor: pointer; }
.nearest-cta svg { width: 15px; height: 15px; flex: none; }
.nearest-cta:hover { color: var(--text); }

/* venue rows: compact by default, details on click */
.vlist { display: flex; flex-direction: column; border-top: 1px solid var(--separator); }
.vcard { border-bottom: 1px solid var(--separator); color: var(--text); }
.vc-head { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 18px; gap: 0 12px; align-items: center; padding: 14px 8px; margin: 0 -8px; border-radius: var(--radius-md); cursor: pointer; transition: background var(--dur-fast); }
.vc-head:hover, .vcard.hl .vc-head { background: var(--fill); }
.vcard h3 { margin: 0; font-size: var(--text-callout); font-weight: 700; letter-spacing: -.01em; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.vcard .verified { width: 15px; height: 15px; color: var(--accent-text); }
.vcard .sub { display: block; color: var(--text-secondary); font-size: var(--text-footnote); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-occ { text-align: right; line-height: 1.2; }
.vc-dist { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
/* paid plan: the row carries the venue's own photo under a flat dark veil */
.vcard.premium { position: relative; margin: 10px 0; padding: 0 12px; border: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0B0C0F var(--cover) center / cover; color: #fff; isolation: isolate; }
.vcard.premium::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(6,7,10,.68); }
.vcard.premium .vc-head { padding: 22px 8px; margin: 0 -8px; }
.vcard.premium .vc-head .vlogo { margin-left: 4px; }
.vcard.premium .vc-head:hover, .vcard.premium.hl .vc-head { background: rgba(255,255,255,.08); }
.vcard.premium h3 { font-size: var(--text-headline); color: #fff; }
.vcard.premium .sub, .vcard.premium .vc-chev { color: rgba(255,255,255,.78); }
.vcard.premium .vc-dist, .vcard.premium .vc-occ b { color: #fff; }
.vcard.premium .verified { color: #fff; }
.vcard.premium .vlogo { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.vcard.premium .vc-occ.lvl-closed small { color: rgba(255,255,255,.78); }
.vcard.premium .tag, .vcard.premium .gtag { background: rgba(255,255,255,.14); color: #fff; border-color: transparent; }
.vcard.premium .meter { background: rgba(255,255,255,.22); }
.vcard.premium .btn:not(.primary) { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.vc-occ b { display: block; font-size: var(--text-title-3); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--text); }
.vc-occ small { font-size: var(--text-caption); font-weight: 700; }
.vc-occ.lvl-closed small { font-weight: 600; }
.vc-chev { width: 16px !important; height: 16px !important; color: var(--text-tertiary); transition: transform var(--dur-base) var(--ease-out); }
.vcard.open .vc-chev { transform: rotate(180deg); }
.vc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.vcard.open .vc-more { grid-template-rows: 1fr; }
.vc-more-in { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility var(--dur-base); }
.vcard.open .vc-more-in { visibility: visible; }
.vc-body { padding: 2px 0 18px 64px; display: grid; gap: 12px; }
.vc-body .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vc-body .actions { margin: 2px 0 0; }
.camonly-ic { color: var(--lvl-camonly); display: grid; place-items: center; justify-content: end; }
.camonly-ic svg.lucide { width: 22px; height: 22px; }
a.vcard.link { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 4px 14px 12px; }
a.vcard.link .vc-head { grid-template-columns: 52px minmax(0, 1fr) auto; }
a.vcard.link .meta { padding-left: 64px; display: flex; gap: 6px; flex-wrap: wrap; }

/* map */
.mk { position: relative; border-radius: 50%; background: currentColor; border: 2.5px solid var(--marker-ring); box-shadow: 0 1px 4px rgba(0,0,0,.45); transition: transform var(--dur-fast) var(--ease-out); }
.mk.hl { transform: scale(1.3); z-index: 1000; }
.mk-logo { display: grid; place-items: center; background: var(--marker-ring); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.45); }
.mk-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-logo .mk-track { fill: none; stroke: var(--fill-2); stroke-width: 4; }
.mk-logo .mk-arc { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray var(--dur-slow) var(--ease-out); }
.mk-logo .mk-in { position: relative; width: 74%; height: 74%; border-radius: 50%; background: #000; display: grid; place-items: center; overflow: hidden; }
.leaflet-container .mk-logo .mk-in img { width: 84%; height: 84%; max-width: 84% !important; object-fit: contain; }   /* Leaflet resets marker images to their natural size */
.mk-logo.hl { transform: scale(1.12); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 28%, transparent); }
.leaflet-container { font-family: var(--font-sans); background: var(--bg-secondary); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); }
.leaflet-popup-content-wrapper { border-radius: var(--radius-lg); }
.leaflet-popup-content { margin: 14px 16px; font-size: var(--text-footnote); line-height: 1.5; min-width: 190px; }
.leaflet-popup-content b { font-size: var(--text-subhead); }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-tertiary); top: 6px; right: 6px; }
.leaflet-control-attribution { background: var(--bar-bg) !important; color: var(--text-tertiary) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--text-secondary) !important; }
.leaflet-bar { border: 1px solid var(--border) !important; box-shadow: var(--shadow-2) !important; border-radius: var(--radius-md) !important; overflow: hidden; }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--text); border-color: var(--separator); }
.leaflet-bar a:hover { background: var(--surface-hover); }
.locate-ctl { display: grid !important; place-items: center; width: 32px; height: 32px; background: var(--surface) !important; color: var(--text) !important; }
.locate-ctl svg.lucide { width: 16px; height: 16px; }
.leaflet-overlay-pane img.leaflet-tile { filter: none; }
:root:not([data-theme="light"]) .leaflet-overlay-pane img.leaflet-tile { filter: brightness(1.25); }
.pop-h { display: flex; align-items: center; gap: 10px; margin: 0 18px 10px 0; }
.pop-h > div { display: grid; min-width: 0; line-height: 1.3; }
.pop-logo { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #000; overflow: hidden; font-size: 13px; font-weight: 800; color: #fff; }
.pop-logo.ini { background: var(--text); color: var(--bg); }
.pop-logo img { width: 84%; height: 84%; object-fit: contain; }
.pop-sub { color: var(--text-secondary); font-size: var(--text-caption); }
.pop-st { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--text-footnote); color: var(--text); }
.pop-st i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pop-st.lvl-calm i { color: var(--lvl-calm); } .pop-st.lvl-medium i { color: var(--lvl-medium); } .pop-st.lvl-busy i { color: var(--lvl-busy); } .pop-st.lvl-packed i { color: var(--lvl-packed); } .pop-st.lvl-camonly i { color: var(--lvl-camonly); } .pop-st.lvl-closed { color: var(--text-secondary); } .pop-st.lvl-closed i { color: var(--lvl-closed); }
.pop-dist { display: block; color: var(--text-secondary); font-size: var(--text-caption) !important; font-weight: 600; margin-top: 2px; }
.pop-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pop-go, .pop-route { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border-radius: var(--radius-md); font-weight: 700; font-size: var(--text-caption); white-space: nowrap; }
.pop-go { background: var(--accent); color: #fff !important; }
.pop-route { background: var(--fill); color: var(--text) !important; }
.pop-act svg.lucide { width: 15px; height: 15px; }
.map-legend { position: absolute; z-index: 500; left: 12px; bottom: 22px; max-width: calc(100% - 24px); display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 11px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.map-full { display: none; }

/* desktop: draggable border between the list and the map */
/* computer / tablet: the filter panel is a compact popover — no rules between the groups, smaller chips */
@media (min-width: 701px) {
  .fsheet { padding: 4px var(--space-lg) 0; max-height: min(78vh, 720px); }
  .fsheet .fsec { border-bottom: 0; padding: 6px 0 10px; }
  .fsheet .fsec-lbl { margin-bottom: 8px; }
  .fsheet .chips { gap: 6px; }
  .fsheet .chip { min-height: 32px; padding: 4px 12px; }
  .fsheet .chip[aria-pressed="true"]:not([data-type="all"]):not([data-genre="all"]):not([data-cam="all"])::before { content: '✓'; font-weight: 800; }
}
@media (min-width: 901px) {
  .home { grid-template-columns: var(--list-w, 480px) 9px minmax(0, 1fr); }
  .split { position: relative; cursor: col-resize; touch-action: none; background: var(--bg); z-index: 6; outline: none; }
  .split-line { position: absolute; top: 0; bottom: 0; left: 4px; width: 1px; background: var(--border); transition: background var(--dur-fast); }
  .split-grip { position: absolute; top: 50%; left: 50%; width: 5px; height: 44px; transform: translate(-50%, -50%); border-radius: 3px; background: var(--text-tertiary); opacity: .55; transition: opacity var(--dur-fast), background var(--dur-fast); }
  .split-grip svg { display: none; }
  .split:hover .split-grip, .split:focus-visible .split-grip, .home.resizing .split-grip { opacity: 1; background: var(--accent); }
  .split:hover .split-line, .home.resizing .split-line { background: var(--accent); }
  .home.resizing { cursor: col-resize; user-select: none; }
  .home.resizing #map { pointer-events: none; }
}
@media (max-width: 900px) { .split { display: none; } }
@container list (min-width: 700px) {
  .vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); column-gap: var(--space-xl); align-items: start; }
  .vlist .empty { grid-column: 1 / -1; }
  .fsheet { padding: 0 var(--space-xl); }
  .fsheet .fsec { border-bottom: 0; padding: var(--space-xs) 0 var(--space-sm); }
}
@container list (min-width: 1000px) { .nearest-list { grid-template-columns: repeat(3, minmax(0, 280px)); } }

/* ---------- venue page ---------- */
.page { max-width: var(--content-width-wide); margin: 0 auto; padding: var(--space-lg) var(--gutter) var(--space-4xl); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: var(--text-footnote); font-weight: 600; margin-bottom: var(--space-md); min-height: 36px; }
.back:hover { color: var(--text); }
.vhead { display: flex; align-items: flex-end; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.vhead h1 { margin: 0; font-size: var(--text-large-title); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.vhead .sub { color: var(--text-secondary); margin-top: 4px; }

.vpage { max-width: none; padding: 0 0 var(--space-4xl); }
.vwrap { max-width: var(--content-width-wide); margin: 0 auto; padding: 0 var(--gutter); }

/* cover: the venue's own photo, a flat dark veil over it, white text */
.vhero { position: relative; isolation: isolate; color: #fff; background: #0B0C0F; }
.vhero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.vhero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(6,7,10,.66); }
.vhero-in { max-width: var(--content-width-wide); margin: 0 auto; padding: var(--space-md) var(--gutter) var(--space-xl); display: flex; flex-direction: column; min-height: min(62vh, 560px); }
.vhero-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.vhero .back { margin: 0; color: rgba(255,255,255,.78); }
.vhero .back:hover { color: #fff; }
.socials { display: flex; gap: 6px; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.26); color: #fff; transition: background var(--dur-fast), color var(--dur-fast); }
.soc:hover { background: #fff; color: #0B0C0F; }
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.vhero-main { margin-top: auto; padding-top: var(--space-2xl); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); align-items: end; }
.vhero-id { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.vhero-logo { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 1px solid rgba(255,255,255,.2); overflow: hidden; flex: none; }
.vhero-logo img { width: 82%; height: 82%; object-fit: contain; }
.vhero-logo.wide { width: auto; height: 76px; border-radius: 0; background: none; border: 0; overflow: visible; } .vhero-logo.wide img { width: auto; height: 100%; }
.vhero-logo.ini { font-size: 1.6rem; font-weight: 800; color: #fff; background: rgba(255,255,255,.12); }
.verified-row { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); font-weight: 700; color: rgba(255,255,255,.82); letter-spacing: .1em; text-transform: uppercase; }
.verified-row svg.lucide { width: 15px; height: 15px; color: #74B4FF; }
.vhero h1 { margin: 0; font-size: clamp(2.5rem, 1.2rem + 5.2vw, 5.25rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; color: #fff; text-wrap: balance; }
.tagline { margin: var(--space-sm) 0 0; font-size: var(--text-title-3); font-weight: 500; color: rgba(255,255,255,.86); }
.vhero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: var(--space-md); font-size: var(--text-subhead); font-weight: 500; color: rgba(255,255,255,.8); }
.vhero-meta > span { display: inline-flex; align-items: center; gap: 7px; }
.vhero-meta svg.lucide { width: 15px; height: 15px; }
.vhero .pill { font-size: var(--text-subhead); }
.vhero .lvl-closed { color: rgba(255,255,255,.7); }
.vhero .lvl-calm { color: #3ACB70; } .vhero .lvl-medium { color: #F2C230; } .vhero .lvl-busy { color: #FF9330; } .vhero .lvl-packed { color: #FF6E86; } .vhero .lvl-camonly { color: #C9A4FA; }
.vdist { display: inline-flex; align-items: center; gap: 6px; }
.vhero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-md); }
.vhero .gtag { color: #fff; border-color: rgba(255,255,255,.3); }
.vhero-cta { display: flex; flex-direction: column; gap: var(--space-xs); min-width: 210px; }
.vhero-cta .btn { width: 100%; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); color: #fff; }
.vhero-cta .btn:hover { background: rgba(255,255,255,.2); }
.vhero-cta .btn.primary { background: #fff; border-color: #fff; color: #0B0C0F; }
.vhero-cta .btn.primary:hover { background: #E8E9EC; }
/* a venue without a cover photo (free listing): the same block, plain and compact */
.vhero.plain { color: var(--text); background: var(--bg); border-bottom: 1px solid var(--separator); }
.vhero.plain::after { display: none; }
.vhero.plain .vhero-in { min-height: 0; padding-bottom: var(--space-lg); }
.vhero.plain .vhero-main { padding-top: var(--space-lg); }
.vhero.plain h1 { color: var(--text); font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); }
.vhero.plain .back { color: var(--text-secondary); } .vhero.plain .back:hover { color: var(--text); }
.vhero.plain .soc { color: var(--text); border-color: var(--border); } .vhero.plain .soc:hover { background: var(--text); color: var(--bg); }
.vhero.plain .vhero-meta, .vhero.plain .tagline, .vhero.plain .verified-row { color: var(--text-secondary); }
.vhero.plain .gtag { color: var(--text-secondary); border-color: var(--border); }
.vhero.plain .vhero-logo { border-color: var(--border); } .vhero.plain .vhero-logo.ini { background: var(--fill-2); color: var(--text); }
.vhero.plain .lvl-closed { color: var(--text-tertiary); } .vhero.plain .lvl-calm { color: var(--lvl-calm); } .vhero.plain .lvl-medium { color: var(--lvl-medium); } .vhero.plain .lvl-busy { color: var(--lvl-busy); } .vhero.plain .lvl-packed { color: var(--lvl-packed); } .vhero.plain .lvl-camonly { color: var(--lvl-camonly); }
.vhero.plain .vhero-cta .btn { background: var(--surface); border-color: var(--border); color: var(--text); }
.vhero.plain .vhero-cta .btn:hover { background: var(--surface-hover); }
.vhero.plain .vhero-cta .btn.primary { background: var(--accent); border-color: transparent; color: #fff; }

/* section tabs */
.vnav-bar { position: sticky; top: var(--topbar-h); z-index: 20; background: var(--bar-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid var(--separator); margin-bottom: var(--space-xl); }
.vnav { display: flex; gap: var(--space-lg); align-items: stretch; max-width: var(--content-width-wide); margin: 0 auto; padding: 0 var(--gutter); overflow-x: auto; }
.vnav button, .vnav a { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 52px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--text-secondary); font-weight: 600; font-size: var(--text-subhead); white-space: nowrap; }
.vnav button svg, .vnav a svg { width: 16px; height: 16px; }
.vnav button small { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--fill-2); color: var(--text-secondary); }
.vnav button:hover { color: var(--text); }
.vnav button[aria-current="true"] { color: var(--text); border-bottom-color: var(--text); }
.vnav-call { margin-left: auto; color: var(--text) !important; font-variant-numeric: tabular-nums; }
.vsec { scroll-margin-top: calc(var(--topbar-h) + 76px); }
.vsec + .vsec { margin-top: var(--space-3xl); }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.sec-h h2 { margin: 0; font-size: var(--text-title-1); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sec-h a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--text-footnote); color: var(--text-secondary); }
.sec-h a:hover { color: var(--text); }
.sec-h a svg.lucide { width: 15px; height: 15px; }
.sec-tools { display: flex; align-items: center; gap: var(--space-md); }
.rail-nav { display: flex; gap: 6px; }
.rail-nav button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: none; color: var(--text); }
.rail-nav button:hover { background: var(--fill); }
.rail-nav button:disabled { opacity: .35; cursor: default; }

/* live cameras */
.vgrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: var(--space-xl); align-items: start; }
.player { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.player canvas, .player img, .player #realv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.player img.pixel { image-rendering: pixelated; }
.ov { position: absolute; display: flex; align-items: center; gap: 8px; font-size: var(--text-caption); font-weight: 600; color: #fff; }
.ov-tl { top: 12px; left: 12px; } .ov-tr { top: 12px; right: 12px; font-variant-numeric: tabular-nums; } .ov-bl { bottom: 12px; left: 12px; } .ov-br { bottom: 12px; right: 12px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; background: var(--live); font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.glass { padding: 4px 9px; border-radius: 5px; background: rgba(0,0,0,.62); }
.glass:empty { display: none; }
.glass svg.lucide { width: 14px; height: 14px; }
.closed-ov { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.72); font-weight: 600; line-height: 1.6; }
.closed-ov small { font-weight: 500; color: rgba(255,255,255,.5); }
.privacy-note { display: flex; gap: 8px; align-items: flex-start; margin: var(--space-sm) 0 0; color: var(--text-tertiary); font-size: var(--text-caption); }
.privacy-note b { color: var(--text-secondary); }
.privacy-note svg.lucide { width: 15px; height: 15px; margin-top: 1px; }
canvas.blurred { filter: blur(5px) saturate(1.1); transform: scale(1.04); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-xs); margin-top: var(--space-xs); }
.thumb { position: relative; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; opacity: .6; outline: 2px solid transparent; outline-offset: -2px; transition: opacity var(--dur-fast), outline-color var(--dur-fast); }
.thumb:hover { opacity: 1; }
.thumb[aria-selected="true"] { opacity: 1; outline-color: var(--text); }
.thumb canvas, .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-name { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 4px; font-size: 11px; font-weight: 600; color: #fff; background: rgba(0,0,0,.66); }
.thumb-name svg.lucide { width: 13px; height: 13px; }
.thumb-live { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 4px; background: var(--live); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.player.swap canvas, .player.swap img { animation: swapin var(--dur-base) var(--ease-out); }
@keyframes swapin { from { opacity: .3; } to { opacity: 1; } }

.now { padding: 0 0 var(--space-lg); border-bottom: 1px solid var(--separator); }
.now h2, .side h2 { margin: 0 0 var(--space-sm); font-size: var(--text-caption); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em; }
#nocount h2 { text-transform: none; letter-spacing: -.01em; font-size: var(--text-title-3); color: var(--text); }   /* a state message, not a label */
.bigocc { display: flex; align-items: baseline; gap: var(--space-sm); }
.bigocc b { font-size: 4.5rem; line-height: .95; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bigocc span { font-weight: 700; font-size: var(--text-headline); }
.gauge { height: 6px; border-radius: 3px; background: var(--fill-2); margin: var(--space-md) 0 var(--space-lg); overflow: hidden; }
.gauge i { display: block; height: 100%; width: 0; border-radius: 3px; background: currentColor; transition: width var(--dur-slow) var(--ease-out); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--space-lg); }
.stat small { display: block; color: var(--text-secondary); font-size: var(--text-caption); margin-bottom: 1px; }
.stat b { font-size: var(--text-title-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.side { padding: var(--space-lg) 0; border-bottom: 1px solid var(--separator); }
.side:last-child { border-bottom: 0; }
.side .pubhint { margin-top: 4px; }
.info { display: grid; grid-template-columns: auto 1fr; gap: 10px var(--space-md); font-size: var(--text-subhead); margin: 0; }
.info dt { color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.info dt svg.lucide { width: 15px; height: 15px; }
.info dd { margin: 0; text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.info dd a { color: var(--text); }

.chartbox { margin-top: var(--space-xl); }
.chartbox h2 { margin: 0 0 var(--space-lg); font-size: var(--text-headline); font-weight: 700; }
.chart { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; }
.chart .bar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.chart .bar i { display: block; width: 100%; border-radius: 2px; background: var(--fill-2); min-height: 2px; }
.chart .bar.now i { background: var(--accent); }
.chart .bar.now::after { content: "сега"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: var(--accent-text); }
.chart .livemark { position: absolute; left: -3px; right: -3px; height: 0; border-top: 3px solid var(--text); border-radius: 2px; transition: bottom var(--dur-slow) var(--ease-out); }
.chart-x { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin-top: 6px; font-size: 10px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.chart-x span { text-align: center; }
.chart-cap { font-size: var(--text-footnote); color: var(--text-secondary); margin: var(--space-sm) 0 0; }

/* events: the next one large, the rest in a rail */
.ev-next { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--space-xl); align-items: center; margin-bottom: var(--space-xl); color: var(--text); }
.ev-next img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-lg); display: block; background: #000; }
.ev-next .ev-when { font-size: var(--text-caption); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.ev-next h3 { margin: var(--space-sm) 0; font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
.ev-next p { margin: 0 0 var(--space-lg); color: var(--text-secondary); font-size: var(--text-callout); text-transform: capitalize; }
.ev-next .ev-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: var(--radius-md); background: var(--text); color: var(--bg); font-weight: 700; font-size: var(--text-subhead); }
.events { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 220px); gap: var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.events .event { display: flex; flex-direction: column; gap: 10px; color: var(--text); scroll-snap-align: start; }
.events .event img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius-md); display: block; background: #000; transition: opacity var(--dur-fast); }
.events .event:hover img { opacity: .82; }
.ev-date { font-size: var(--text-caption); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.ev-body small { display: block; color: var(--text-secondary); font-size: var(--text-caption); text-transform: capitalize; }
.ev-body h3 { margin: 2px 0 0; font-size: var(--text-subhead); line-height: 1.25; font-weight: 700; }

/* drinks menu */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.menu-pg { padding: 0; border: 0; border-radius: var(--radius-md); overflow: hidden; background: #000; aspect-ratio: 2 / 3; }
.menu-pg img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: opacity var(--dur-fast); }
.menu-pg:hover img { opacity: .82; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4,5,8,.9); }
.lightbox img { display: block; max-width: 100%; max-height: 92vh; border-radius: var(--radius-md); }
.lightbox button { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0B0C0F; display: grid; place-items: center; }
.lb-x { top: -14px; right: -14px; }
.lb-prev { left: -22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: -22px; top: 50%; transform: translateY(-50%); }

/* about + where */
.info-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.about { margin: 0 0 var(--space-xl); font-size: var(--text-title-3); line-height: 1.5; font-weight: 500; color: var(--text); text-wrap: pretty; }
.vmap { height: 320px; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-secondary); isolation: isolate; }
.vmap-cap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-sm); font-size: var(--text-subhead); font-weight: 600; }
.vmap-cap a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-footnote); }
.nearby { margin-top: var(--space-3xl); }
.nearby .vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-md); border: 0; }
.callbar { display: none; }

/* call dialog */
.calldlg { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); color: var(--text); padding: var(--space-xl) var(--space-lg) var(--space-lg); width: min(380px, calc(100vw - 32px)); text-align: center; position: relative; box-shadow: var(--shadow-3); }
.calldlg::backdrop { background: var(--overlay); }
.calldlg-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; opacity: .7; }
.calldlg-num { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 var(--space-md); color: var(--text); font-variant-numeric: tabular-nums; }
.calldlg-qr { background: #fff; border-radius: var(--radius-md); padding: 10px; width: 200px; height: 200px; margin: 0 auto var(--space-sm); }
.calldlg-qr svg { width: 100%; height: 100%; display: block; }
.calldlg .actions { justify-content: center; flex-wrap: wrap; margin-top: var(--space-md); }

/* ---------- for venues (sign-up) ---------- */
.ph { max-width: 780px; margin: var(--space-xl) 0 var(--space-2xl); }
.ph-logo { width: 200px; height: auto; display: block; margin-bottom: var(--space-xl); }
.ph h1 { font-size: var(--text-display); line-height: 1.02; letter-spacing: -.04em; margin: var(--space-sm) 0 var(--space-md); font-weight: 800; text-wrap: balance; }
.ph p { font-size: var(--text-title-3); color: var(--text-secondary); line-height: 1.5; margin: 0 0 var(--space-sm); }
.ph p.pubhint { font-size: var(--text-subhead); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); margin-bottom: var(--space-3xl); }
.steps .card { margin: 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; padding: var(--space-md) 0 0; }
.step .n { font-size: var(--text-footnote); font-weight: 700; color: var(--accent-text); margin-bottom: var(--space-xs); font-variant-numeric: tabular-nums; }
.step .n::before { content: "0"; }
.step h3 { margin: 0 0 6px; font-size: var(--text-title-3); font-weight: 700; }
.step p { margin: 0; color: var(--text-secondary); font-size: var(--text-subhead); }
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.offers .card { margin: 0; }
.offer svg.lucide { width: 24px; height: 24px; color: var(--accent-text); }
.offer h3 { margin: var(--space-sm) 0 6px; font-size: var(--text-headline); }
.offer p { margin: 0; color: var(--text-secondary); font-size: var(--text-subhead); }
.reg { max-width: 880px; padding: var(--space-xl); }
.reg h2 { font-size: var(--text-title-2); font-weight: 800; margin-bottom: var(--space-lg); }
.reg fieldset { border: 0; padding: 0; margin: 0 0 var(--space-lg); }
.reg legend { padding: 0; margin-bottom: var(--space-sm); font-size: var(--text-caption); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .1em; }
.form-grid, .reg .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-md); }
.form-grid .span2, .reg .span2 { grid-column: 1 / -1; }
.form-grid .field .input, .form-grid .field .select { width: 100%; }
.reg textarea.input { resize: vertical; min-height: 84px; }
.reg input[type=file].input { padding: 8px; }
.logo-prev { height: 28px; vertical-align: middle; border-radius: 6px; background: #000; margin-right: 6px; }
.acc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
.acc-opt { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); border: 1px solid var(--border); cursor: pointer; }
.acc-opt input { position: absolute; opacity: 0; }
.acc-opt svg.lucide { grid-row: span 2; color: var(--text-secondary); margin-top: 2px; }
.acc-opt b { font-size: var(--text-subhead); }
.acc-opt small { color: var(--text-secondary); font-size: var(--text-caption); line-height: 1.4; }
.acc-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.acc-opt:has(input:checked) svg.lucide { color: var(--accent-text); }
.acc-opt:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.consent { margin: var(--space-xs) 0 0 !important; white-space: normal !important; align-items: flex-start !important; line-height: 1.45; }
.reg.done { text-align: center; padding: var(--space-3xl) var(--space-xl); }
.reg.done > svg.lucide { width: 44px; height: 44px; color: var(--accent-text); }
.reg.done p { color: var(--text-secondary); }

/* ---------- admin + venue owner (working screens) ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: var(--space-lg); align-items: start; }
.steps .card, .studio .card { margin-top: 0; }
.studio .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.studio .player canvas { object-fit: contain; }
.studio .player.mirror video, .studio .player.mirror #ovl { transform: scaleX(-1); }
.pubview { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: var(--space-md); align-items: center; margin-top: var(--space-md); }
.player.small { border-radius: var(--radius-md); }
.player.small canvas { object-fit: contain; }
.player.small .placeholder { font-size: var(--text-caption); }
.player.small .placeholder svg.lucide { width: 24px; height: 24px; }
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.62); padding: var(--space-lg); }
.placeholder [data-lucide], .placeholder svg.lucide { width: 36px; height: 36px; margin: 0 auto var(--space-sm); display: block; color: rgba(255,255,255,.4); }
.counter { display: flex; align-items: baseline; gap: 10px; margin: var(--space-md) 0; }
.counter b { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
#accnote { align-items: flex-start; }
.acc-card { padding: 0; overflow-x: auto; scroll-margin-top: 80px; }
.acc { width: 100%; border-collapse: collapse; font-size: var(--text-subhead); }
.acc th { text-align: left; font-size: var(--text-caption); font-weight: 600; color: var(--text-secondary); padding: 14px 16px; border-bottom: 1px solid var(--separator); white-space: nowrap; }
.acc td { padding: 10px 16px; border-bottom: 1px solid var(--separator); vertical-align: middle; }
.acc tr:last-child td { border-bottom: 0; }
.acc td:first-child a { color: var(--text); font-weight: 600; display: block; }
.acc td small, .acc .muted { color: var(--text-tertiary); font-size: var(--text-caption); }
.acc-ro { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--text-footnote); }
.cam-edit > td { background: var(--bg-secondary); }
.camed { padding: var(--space-xs) 0; }
.camlist { list-style: none; margin: var(--space-sm) 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-xs); max-width: 640px; }
.camlist li { display: flex; align-items: center; gap: var(--space-xs); padding: 6px 8px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.camlist li.dragging { opacity: .4; }
.camlist li.over { border-color: var(--accent); }
.camlist .grip { cursor: grab; color: var(--text-tertiary); font-size: 18px; padding: 0 4px; user-select: none; }
.camlist .camno { width: 22px; text-align: center; font-weight: 700; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.camlist .input { flex: 1; min-height: 34px; padding: 6px 10px; }
.camlist .camid { font-family: var(--font-mono); font-size: var(--text-caption); color: var(--text-tertiary); width: 36px; }
.tabdot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-left: 2px; }
#feeds { display: flex; flex-direction: column; gap: var(--space-md); }
.card.feed { margin: 0; scroll-margin-top: 80px; transition: border-color var(--dur-base); }
.card.feed.on { border-color: color-mix(in srgb, var(--live) 55%, transparent); }
.feed-head { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.feed-head h3 { margin: 0; font-size: var(--text-headline); }
.feed-head .f-remove { margin-left: auto; }
.feed-head .f-hgo { margin-left: var(--space-xs); }
.feed-head .f-hgo.danger { color: #fff; background: var(--live); border-color: transparent; }
.feed-head .f-hgo:disabled { opacity: .45; cursor: not-allowed; }
.feed-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.feed-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.feed-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: var(--space-lg); align-items: start; }
.feed .player video, .feed .player .f-srv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.feed .player canvas { object-fit: contain; }
.feed .player.mirror video, .feed .player.mirror .f-ovl { transform: scaleX(-1); }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.add-feed { margin-top: var(--space-md); width: 100%; border-style: dashed; min-height: 56px; }
.pcam-row { display: flex; gap: var(--space-xs); }
.pcam-row .select { flex: 1; min-width: 0; }
.pcam-row .btn { white-space: nowrap; flex: none; }
.addcam { margin: calc(-1 * var(--space-xs)) 0 var(--space-md); padding: var(--space-md); border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--border); }
.addcam label { display: block; font-size: var(--text-footnote); color: var(--text-secondary); margin-bottom: var(--space-xs); }
.addcam-row { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.addcam-row .input { flex: 1; min-width: 160px; }
.addcam .chips { margin-top: var(--space-sm); flex-wrap: wrap; }
.addcam .chip { min-height: 32px; padding: 4px 12px; }
.attach-box { padding: var(--space-md); margin-bottom: var(--space-md); border-radius: var(--radius-md); background: var(--bg-secondary); border: 1px solid var(--separator); }
.attach-box .field:last-child { margin-bottom: 0; }
.attach-state { display: flex; align-items: center; gap: 6px; margin: var(--space-xs) 0 0; font-size: var(--text-footnote); color: var(--success); }
.attach-state.none { color: var(--lvl-busy); }
.attach-state svg.lucide { width: 15px; height: 15px; }
.zone-bar { margin: 0 0 var(--space-md); display: grid; grid-template-columns: 1fr; gap: var(--space-md); align-items: end; }
.zone-bar .field, .zone-bar .actions { margin: 0; }
.zone-bar .addcam { grid-column: 1 / -1; margin: 0; }
.zone-tools { display: inline-flex; gap: 4px; margin-left: var(--space-xs); }
.zone-tools .icon-btn { width: 30px; height: 30px; font-size: 14px; }
.f-boxes { position: absolute; inset: 0; pointer-events: none; }
.f-boxes i { position: absolute; border: 2px solid #FF2E93; background: rgba(255,46,147,.10); border-radius: 2px; transition: all .45s linear; }
.f-boxes b { position: absolute; left: -2px; top: -17px; padding: 1px 4px; background: #FF2E93; color: #fff; font: 700 11px/15px Montserrat, system-ui, sans-serif; border-radius: 2px; white-space: nowrap; }
.f-nolbl { display: none; position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 6px 10px; border-radius: var(--radius-sm); background: rgba(0,0,0,.6); color: rgba(255,255,255,.75); font-size: var(--text-caption); }
.player.count-only { background: #101116; }
.player.count-only .f-nolbl { display: block; }

.av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-md); }
.av-grid .card { margin: 0; }
.av-new { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 160px; padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px dashed var(--border); color: var(--text); text-align: center; transition: background var(--dur-fast); }
.av-new:hover { background: var(--fill); }
.av-plus { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 30px; font-weight: 300; line-height: 1; margin-bottom: 6px; }
.av-new b { font-size: var(--text-headline); }
.av-new small { color: var(--text-secondary); }
.card.av { display: flex; flex-direction: column; gap: 4px; color: var(--text); transition: background var(--dur-fast); }
.card.av:hover { background: var(--surface-hover); }
.av-top { display: flex; align-items: center; gap: var(--space-xs); }
.av h3 { margin: 0; font-size: var(--text-headline); }
.av .sub { color: var(--text-secondary); font-size: var(--text-footnote); }
.av-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: var(--space-sm); font-size: var(--text-caption); color: var(--text-secondary); }
.av-live { margin-left: auto; padding: 2px 7px; border-radius: 4px; background: var(--live); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.form-map { height: 280px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); margin-bottom: 4px; }
.acc-edit { display: flex; gap: var(--space-xl); flex-wrap: wrap; align-items: flex-start; }
.acc-edit .field { margin: 0; }
#vform, #acc { margin-top: var(--space-md); }
#vform .actions .status { margin-left: var(--space-sm); }
.cands { flex-wrap: wrap; margin-top: var(--space-xs); }
.cands .chip { max-width: 100%; white-space: normal; text-align: left; font-weight: 500; }
#f-coords { margin: 0 0 var(--space-md); }
body.public .topnav a[data-nav="admin"] { display: none !important; }
.card.login { max-width: 420px; margin: 10vh auto 0; }
.card.login h1 { margin: 4px 0 var(--space-lg); font-size: var(--text-title-1); font-weight: 800; }
.card.login .status { min-height: 20px; margin-bottom: var(--space-sm); }
.login-alt { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--separator); display: grid; gap: var(--space-sm); }
.login-alt .btn { justify-content: center; width: 100%; }
.login-alt p { margin: 0; }
#ff { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--separator); }
#ff .status.ok { color: var(--text-secondary); }
.apps { margin-bottom: var(--space-xl); }
.apps h2 { font-size: var(--text-title-3); margin: 0 0 var(--space-md); display: flex; align-items: center; gap: 8px; }
.apps .count { font-size: var(--text-caption); padding: 2px 8px; border-radius: 10px; background: var(--live); color: #fff; }
.apps .count:empty { display: none; }
.app { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--space-md); align-items: start; }
.app + .app { margin-top: var(--space-sm); }
.app h3 { margin: 0 0 4px; font-size: var(--text-headline); }
.app .sub { color: var(--text-secondary); font-size: var(--text-footnote); margin-top: 2px; }
.app-logo { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: #000; }
.app-act { display: flex; gap: 6px; align-items: center; }
.mailprev { margin-top: var(--space-md); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #f6f7fb; color: #111; }
.mailprev-tag { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #E6EEFF; color: #0A4FDB; font-size: var(--text-caption); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mailprev-tag svg { width: 14px; height: 14px; }
.mailprev-head { padding: 12px 16px; border-bottom: 1px solid #e3e5ee; background: #fff; font-size: 14px; }
.mailprev-head .sub { color: #666; font-size: 13px; }
.mailprev-subj { margin-top: 6px; font-weight: 700; font-size: 15px; }
.mailprev-body { padding: 14px 16px; font-size: 14px; line-height: 1.5; }
.mailprev-body p { margin: 0 0 10px; }
.mailprev-body .sub { color: #666; font-size: 13px; margin-top: 12px; }
.mailprev-body .btn { margin: 4px 0; }

.topnav a[data-nav="my"] { white-space: nowrap; }
/* ---- settings page of a logged-in venue (#/my) ---- */
.own { max-width: 1180px; margin: 0 auto; padding: var(--space-xl) var(--gutter) var(--space-3xl); }
.own-top { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; padding-bottom: var(--space-lg); border-bottom: 1px solid var(--separator); }
.own-id { display: flex; align-items: center; gap: var(--space-md); min-width: 0; }
.own-id .vlogo { width: 64px; height: 64px; }
.own-top h1 { margin: 2px 0; font-size: var(--text-title-1); font-weight: 800; letter-spacing: -.02em; }
.own-top .sub { color: var(--text-secondary); font-size: var(--text-footnote); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.own-top .actions { margin: 0 0 0 auto; }
.plan, .plan-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-full); background: var(--fill); color: var(--text-secondary); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan.prem { background: var(--text); color: var(--bg); }
.plan-tag svg.lucide { width: 12px; height: 12px; }
.own-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-2xl); align-items: start; margin-top: var(--space-lg); }
.own-nav { position: sticky; top: calc(var(--topbar-h, 60px) + var(--space-lg)); display: grid; gap: 2px; }
.own-nav button { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-secondary); font: inherit; font-size: var(--text-footnote); font-weight: 600; text-align: left; cursor: pointer; white-space: nowrap; }
.own-nav button:hover { color: var(--text); }
.own-nav button.on { background: var(--fill); color: var(--text); }
.own-nav svg.lucide { width: 16px; height: 16px; flex: none; }
.own-main { min-width: 0; }
.own-now { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: var(--space-lg); padding: var(--space-lg); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.own-now small { display: block; color: var(--text-secondary); font-size: var(--text-caption); font-weight: 600; }
.own-now b { font-size: var(--text-headline); font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.now-main { display: flex; align-items: center; gap: 12px; }
.now-main i { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--lvl-closed); }
.now-main.lvl-calm i { background: var(--lvl-calm); } .now-main.lvl-medium i { background: var(--lvl-medium); } .now-main.lvl-busy i { background: var(--lvl-busy); } .now-main.lvl-packed i { background: var(--lvl-packed); } .now-main.lvl-camonly i { background: var(--lvl-camonly); }
.now-main b { font-size: var(--text-title-3); }
.own-sec { padding: var(--space-xl) 0; border-bottom: 1px solid var(--separator); scroll-margin-top: calc(var(--topbar-h, 60px) + var(--space-md)); }
.own-sec h2 { margin: 0 0 6px; font-size: var(--text-title-3); font-weight: 800; letter-spacing: -.01em; }
.own-sec > .pubhint { margin-bottom: var(--space-lg); max-width: 62ch; }
.own-sec > .form-grid { margin-top: var(--space-md); }
.own-look { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: var(--space-xl); align-items: start; }
.own-ups { display: grid; gap: var(--space-sm); }
.up-tile { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: var(--space-md); align-items: center; padding: var(--space-sm); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.up-pv { width: 72px; height: 72px; border-radius: var(--radius-md); overflow: hidden; display: grid; place-items: center; background: #0B0C0F; color: rgba(255,255,255,.6); }
.up-pv img { width: 100%; height: 100%; object-fit: contain; }
#o-cover-pv img, #o-icon-pv img { object-fit: cover; }
.up-txt { display: grid; gap: 2px; min-width: 0; }
.up-txt b { font-size: var(--text-subhead); }
.up-txt span { color: var(--text-secondary); font-size: var(--text-caption); line-height: 1.4; }
.up-tile.locked .up-pv { opacity: .5; }
.own-prev { display: grid; gap: var(--space-sm); padding: var(--space-md); border-radius: var(--radius-lg); background: var(--fill); }
.prev-lbl { font-size: var(--text-caption); font-weight: 700; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .08em; }
.prev-hero { position: relative; isolation: isolate; display: grid; align-content: end; gap: 2px; min-height: 150px; padding: 14px; border-radius: var(--radius-md); overflow: hidden; background: #0B0C0F center / cover; color: #fff; }
.prev-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(6,7,10,.6); }
.prev-hero.plain { background: var(--surface); color: var(--text); border: 1px solid var(--border); } .prev-hero.plain::before { display: none; }
.prev-hero b { font-size: var(--text-title-3); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.prev-hero > span:last-child { font-size: var(--text-caption); opacity: .85; }
.prev-logo { height: 26px; margin-bottom: 6px; } .prev-logo img { height: 100%; width: auto; display: block; }
.prev-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px; border-radius: var(--radius-md); overflow: hidden; background: var(--surface) center / cover; }
.prev-row.premium { color: #fff; } .prev-row.premium::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(6,7,10,.68); }
.prev-row .vlogo { width: 44px; height: 44px; }
.pv-name { display: grid; min-width: 0; line-height: 1.3; } .pv-name b { font-size: var(--text-footnote); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-name small, .pv-occ small { font-size: 11px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-occ { text-align: right; line-height: 1.2; } .pv-occ b { display: block; font-weight: 800; } .pv-occ small { color: var(--lvl-busy); opacity: 1; font-weight: 700; }
.prev-pin { display: flex; align-items: center; gap: 12px; padding: 4px 2px 0; }
.prev-pin small { color: var(--text-secondary); font-size: var(--text-caption); line-height: 1.4; }
.pv-pin { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--lvl-busy); box-shadow: 0 0 0 2px var(--marker-ring); margin: 0 14px; }
.pv-pin.ring { width: 50px; height: 50px; margin: 0; display: grid; place-items: center; background: conic-gradient(var(--lvl-busy) 0 78%, var(--fill-2) 78% 100%); box-shadow: none; }
.pv-pin.ring .vlogo { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--marker-ring); }
.menu-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-sm); }
.menu-edit, .menu-add { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; background: var(--fill); }
.menu-edit img { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-del { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(6,7,10,.75); color: #fff; cursor: pointer; }
.menu-del svg.lucide { width: 15px; height: 15px; }
.menu-add { display: grid; place-content: center; justify-items: center; gap: 6px; border: 1px dashed var(--border); background: none; color: var(--text-secondary); font-size: var(--text-caption); font-weight: 600; cursor: pointer; text-align: center; padding: 8px; }
.menu-add:hover { color: var(--text); border-color: var(--text-tertiary); }
.own .savebar { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-md); padding: var(--space-md) 0; margin-top: 0; border-top: 0; }
.save-note { display: none; color: var(--text-secondary); font-size: var(--text-footnote); font-weight: 600; }
.savebar.dirty .save-note { display: inline; }
.savebar.dirty { border-top: 1px solid var(--separator); }
.own #o-pw { margin-top: var(--space-lg); }
@media (max-width: 900px) {
  .own-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .own-nav { position: sticky; top: var(--topbar-h, 56px); z-index: 4; display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--separator); }
  .own-nav::-webkit-scrollbar { display: none; }
  .own-look { grid-template-columns: minmax(0, 1fr); }
  .own-now { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-top .actions { margin-left: 0; width: 100%; }
  .own-top .actions { display: flex; flex-wrap: nowrap; } .own-top .actions .btn { flex: 1; justify-content: center; white-space: nowrap; }
  .own-now { padding: var(--space-md); gap: var(--space-md); } .now-main b { font-size: var(--text-headline); }
}
.mypage .vhead { align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.mypage .vhead .vhero-logo { width: 64px; height: 64px; border-color: var(--border); }
.mypage .vhero-logo.ini { background: var(--fill-2); color: var(--text); }
.mypage section.card { margin-top: var(--space-lg); }
.mypage .pcam-row .vlogo { width: 48px; height: 48px; flex: none; }
.ev-edit { display: flex; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--separator); }
.ev-thumb { width: 72px; height: 90px; flex: none; border-radius: var(--radius-md); overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--text-secondary); }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ev-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.ev-line { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-line .input[type=date] { width: 160px; } .ev-line .input[type=time] { width: 110px; }
.ev-line .input[data-k=url] { flex: 1; min-width: 180px; }
#o-evadd { margin-top: var(--space-md); }
.savebar { position: sticky; bottom: 0; z-index: 5; padding: var(--space-sm) 0; background: var(--bg); border-top: 1px solid var(--separator); margin-top: var(--space-md); }
.info-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--space-md); margin: 0; }
.info-dl dt { color: var(--text-secondary); } .info-dl dd { margin: 0; overflow-wrap: anywhere; }
.own-pass { margin-top: var(--space-sm); padding: var(--space-md); border: 1px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-soft); }
.own-pass pre { margin: 8px 0; white-space: pre-wrap; font-size: 14px; user-select: all; }
#o-logo-st { font-size: var(--text-footnote); color: var(--text-secondary); align-self: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --topbar-h: 56px; }
  .topnav a span { display: none; }
  .topnav a { padding: 8px 10px; }
  .home { display: flex; flex-direction: column; height: auto; }
  .home-map { order: -1; height: 56vh; height: 56svh; min-height: 300px; position: sticky; top: var(--topbar-h); z-index: 4; }
  .home-list { overflow: visible; position: relative; z-index: 5; background: var(--bg); border-radius: 18px 18px 0 0; margin-top: -18px; padding-top: var(--space-md); box-shadow: 0 -8px 24px rgba(0,0,0,.18); }
  .filters { top: var(--topbar-h); }
  .map-full { display: inline-flex; align-items: center; gap: 7px; position: absolute; z-index: 600; top: 12px; right: 12px; min-height: 38px; padding: 0 13px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: var(--text-footnote); font-weight: 600; box-shadow: var(--shadow-2); }
  .map-full svg { width: 16px; height: 16px; }
  .map-full .mf-open { display: inline-flex; align-items: center; gap: 7px; }
  .map-full .mf-close, body.map-open .map-full .mf-open { display: none; }
  body.map-open .map-full .mf-close { display: inline-flex; align-items: center; gap: 7px; }
  body.map-open { overflow: hidden; }
  body.map-open .home-map { position: fixed; inset: var(--topbar-h) 0 0 0; height: auto; z-index: 950; }
  body.map-open .map-legend { bottom: calc(22px + env(safe-area-inset-bottom)); }
  .map-legend { bottom: 30px; }
  .vgrid, .studio, .feed-grid, .field-row, .info-grid, .pubview { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: var(--space-lg); }
  .offers { grid-template-columns: 1fr 1fr; }
  .vhead h1 { font-size: var(--text-title-1); }
  .bigocc b { font-size: 3.5rem; }
  .vhero-in { min-height: min(70svh, 520px); }
  .vhero-main { grid-template-columns: 1fr; gap: var(--space-lg); }
  .vhero-cta { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .vhero-cta .btn { width: auto; flex: 1 1 140px; }
  .vnav-call { display: none !important; }
  .ev-next { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: var(--space-lg); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .reg .form-grid, .acc-pick { grid-template-columns: 1fr; }
  .reg { padding: var(--space-lg); }
  .app { grid-template-columns: 44px minmax(0, 1fr); } .app-act { grid-column: 1 / -1; }
  .vpage { padding-bottom: 96px; }
  .callbar { display: flex; gap: var(--space-xs); position: fixed; z-index: 900; left: 0; right: 0; bottom: 0; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--bar-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--separator); }
  .callbar .btn { flex: 1; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-x { top: 6px; right: 6px; }
}
@media (max-width: 700px) {
  .leaflet-control-zoom { display: none; }   /* phone: pinch to zoom; the top of the map stays free for the popup */
  .demo-btn .d-long { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .fmain .sortdd { flex: 1; min-width: 0; }
  .fmain .sortmenu { left: 50%; transform: translateX(-50%); }
  .fmain #locate { margin-left: 0; flex: none; }
  .fmain #locate .l-long { display: none; } .fmain #locate .l-short { display: inline; }
  .fsheet { position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-height: 86vh; border: 0; border-top: 1px solid var(--border); border-radius: 20px 20px 0 0;
    padding: 0 var(--gutter); opacity: 1; transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility .28s; }
  .fsheet.open { transform: none; }
  .fsheet::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--fill-2); margin: 8px auto 0; }
  .fsheet-head { padding: 10px 0; } .fsheet-head b { font-size: var(--text-title-3); }
  .fsheet-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .fsheet-bg { opacity: 1; }
  body.sheet-open { overflow: hidden; }
}
@media (max-width: 600px) {
  .nearest-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .nearest-i { scroll-snap-align: start; }
  .vhero-logo { width: 60px; height: 60px; }
  .vhero-id { gap: var(--space-sm); }
  .verified-row { font-size: 10px; }
  .tagline { font-size: var(--text-callout); }
  .vhero-cta #call, .vhero-cta #route { display: none; }        /* the sticky call bar has them */
  .vnav { gap: var(--space-md); }
  .sec-h h2 { font-size: var(--text-title-2); }
  .ev-next { grid-template-columns: 1fr; }
  .ev-next img { max-width: 260px; }
  .events { grid-auto-columns: 58vw; }
  .rail-nav { display: none; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .thumb-name { font-size: 10px; }
  .about { font-size: var(--text-callout); }
  .vmap { height: 240px; }
  .ev-edit { flex-direction: column; } .ev-thumb { width: 100%; height: 140px; }
  .info-dl { grid-template-columns: 1fr; } .info-dl dt { margin-top: 6px; }
  .offers { grid-template-columns: 1fr; }
  .vc-body { padding-left: 0; }
  a.vcard.link .meta { padding-left: 0; }
}
@media (max-width: 420px) {
  .topbar { gap: var(--space-xs); padding: 0 var(--space-md); }
  .topnav a[data-nav="home"] { display: none; }
  .demo-btn { padding: 0 11px; margin: 0 2px; }
  .logo-img { height: 18px; }
  .fmain .chip, .fmain .select { padding-left: 11px; padding-right: 11px; }
}
@media (max-width: 380px) {
  .fmain #locate .l-short { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
