/* ═══════════════════════════════════════════════════════════════════
   Togapa landing demo
   ─ Marketing chrome (dark "booth") wraps three real app surfaces:
     · .tg = the app's own semantic tokens (globals.css), dark default,
       .t-light = light theme. Tailwind utility values are reproduced 1:1.
     · Phone renders the guest page at 390 CSS px and is scaled to fit.
     · TV renders VenueDisplay at 1920×1080 and is scaled to fit.
     · Dashboard is the real max-w-4xl layout with container-query breakpoints.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0a1322; --paper: #eef3fb; --paper-muted: #9fb0cb; --paper-faint: #7d90ad;
  --line: rgba(176, 201, 245, 0.14); --line-strong: rgba(176, 201, 245, 0.28);
  --brand: #2d6bff; --brand-rgb: 45, 107, 255;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  --max: 1280px;
  /* live branding (set by app.js) */
  --accent: #da5b07; --accent-hover: #b94d06; --accent-rgb: 218, 91, 7; --on-accent: #ffffff;
  --accent-text-light: #b94d06;   /* accent darkened until it passes 4.5:1 on white */
}

/* ── App tokens (mirror of globals.css @theme) ── */
.tg {
  --color-background: #0a1322; --color-foreground: #eef3fb; --color-muted: #9fb0cb;
  --color-accent: var(--accent); --color-accent-hover: var(--accent-hover); --color-on-accent: var(--on-accent);
  --color-header-accent: #7d90ad;
  --color-surface: rgba(176, 201, 245, 0.06); --color-surface-hover: rgba(176, 201, 245, 0.11); --color-border: rgba(176, 201, 245, 0.14);
  --color-success: #3fd29a; --color-danger: #ff6182; --color-warning: #f0b65a;
  --glass-bg: rgba(255, 255, 255, 0.04); --glass-border: rgba(255, 255, 255, 0.08);
  --logo-filter: invert(1);
  --accent-text: var(--accent);   /* accent as TEXT: raw on dark, darkened on light */
  font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-foreground); background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
.tg.t-light {
  --color-background: #f4f7fc; --color-foreground: #0a1322; --color-muted: #475468;
  --color-header-accent: #8896ab;
  --color-surface: #ffffff; --color-surface-hover: #eef3fb; --color-border: #e6ebf3;
  --color-success: #1f9d6b; --color-danger: #e23a5e; --color-warning: #d9912b;
  --glass-bg: rgba(255, 255, 255, 0.72); --glass-border: #e6ebf3;
  --logo-filter: none;
  --accent-text: var(--accent-text-light);
}
.tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
.tg p, .tg h2, .tg h3, .tg h4, .tg h5 { margin: 0; }
:where(.tg) :where(button, input, select) { font: inherit; color: inherit; }
:where(.tg) :where(button) { cursor: pointer; background: none; border: 0; padding: 0; }
.tg img { display: block; max-width: 100%; }
.tg-logo { filter: var(--logo-filter); }
.tg-muted { color: var(--color-muted); }
.glass { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); }

/* shared app atoms */
.tg-field { display: flex; flex-direction: column; gap: 6px; }
.tg-field > label { font-size: 14px; line-height: 20px; color: var(--color-muted); }
.tg-field > label small { font-size: 12px; opacity: .8; margin-left: 4px; }
.tg-input, .tg-field input[type="text"], .tg-field input[type="email"], .tg-field input[type="number"], .tg-field input[type="date"] {
  width: 100%; min-width: 0; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-foreground);
  padding: 10px 12px; font-size: 16px; line-height: 24px; outline: none;
}
.tg-field input::placeholder, .tg-input::placeholder { color: color-mix(in srgb, var(--color-muted) 50%, transparent); }
.tg-field input:focus, .tg-input:focus { box-shadow: 0 0 0 2px var(--color-accent); }
.tg-input--sm { padding: 6px 12px; font-size: 14px; line-height: 20px; }
.tg-input--mono { font-family: var(--font-mono); font-size: 14px; padding: 8px 12px; }
#accent-hex { width: 112px; flex: none; }
.tg-err { font-size: 12px; color: var(--color-danger); }
.tg-select { border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-foreground); padding: 6px 12px; font-size: 14px; line-height: 20px; min-width: 0; }
.tg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; text-decoration: none; }
.tg-btn--accent, .tg-btn--accent:hover, .tg-btn--accent:disabled { color: var(--color-on-accent); }
.tg-btn--accent { background: var(--color-accent); }
.tg-btn--accent:hover { background: var(--color-accent-hover); }
.tg-btn--outline { border: 1px solid var(--color-border); color: var(--color-foreground); font-weight: 500; }
.tg-btn--outline:hover { background: var(--color-surface-hover); }
.tg-btn--danger-outline { border: 1px solid color-mix(in srgb, var(--color-danger) 30%, transparent); color: var(--color-danger); font-weight: 500; }
.tg-btn--danger-outline:hover { background: color-mix(in srgb, var(--color-danger) 10%, transparent); }
.tg-btn--sm { padding: 6px 12px; }
.tg-btn--xs { padding: 4px 10px; font-size: 12px; line-height: 16px; }
.tg-btn:disabled { opacity: .5; cursor: default; }
.tg-btn--accent:disabled { opacity: .92; cursor: not-allowed; }
.tg-btn svg { width: 16px; height: 16px; }
.tg-badge { display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid; padding: 2px 8px; font-size: 12px; line-height: 16px; font-weight: 500; }
.tg-badge--accent { background: rgba(var(--accent-rgb), .1); color: var(--accent-text); border-color: rgba(var(--accent-rgb), .2); }
.tg-badge--danger { background: color-mix(in srgb, var(--color-danger) 10%, transparent); color: var(--color-danger); border-color: color-mix(in srgb, var(--color-danger) 20%, transparent); }
.tg-card { border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 16px; }
.tg-h3 { font-size: 14px; line-height: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--color-header-accent); margin: 0 0 16px; }
.tg-iconbtn { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-muted); transition: color .15s; }
.tg-iconbtn:hover { color: var(--color-foreground); }
.tg-powered { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 24px; color: color-mix(in srgb, var(--color-muted) 70%, transparent); text-decoration: none; }
.tg-powered span { font-size: 10px; line-height: 15px; text-transform: uppercase; letter-spacing: .05em; }
.tg-toggle { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--color-border); transition: background .15s; flex: none; }
.tg-toggle span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.tg-toggle.is-on { background: var(--color-accent); }
.tg-toggle.is-on span { transform: translateX(20px); }
.tg-seg { display: flex; gap: 4px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 4px; }
.tg-seg__btn { border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--color-muted); transition: color .15s, background .15s; }
.tg-seg__btn.is-active { background: rgba(var(--accent-rgb), .15); color: var(--accent-text); }
.tg-statsbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; }
.tg-statsbar > div { text-align: center; }
.tg-statsbar p:first-child { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--color-foreground); }
.tg-statsbar p:last-child { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-header-accent); }
.album-art { position: relative; flex: none; overflow: hidden; border-radius: 6px; width: 48px; height: 48px; background: var(--color-surface); }
.album-art img { width: 100%; height: 100%; object-fit: cover; }
@keyframes tg-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tg-vote-pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
.animate-fade-in { animation: tg-fade-in .2s ease-out; }
.animate-vote-pop { animation: tg-vote-pop .3s ease-out; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* ═══════════════ Site header — 1:1 copy of togapa.com's nav (sections.css / styles.css), dark palette ═══════════════ */
.site-nav {
  --s-ink: #0a1322; --s-body: #475468; --s-muted: #8896ab; --s-on-dark: #eaf0fa; --s-on-dark-mut: #9fb0cb; --s-line-dark: rgba(255,255,255,.10);
  --s-accent: #2d6bff; --s-accent-deep: #1a50e6; --s-shadow-blue: 0 24px 60px -22px rgba(45,107,255,.45); --s-ease: cubic-bezier(.22,1,.36,1);
  position: sticky; top: 0; z-index: 50; font-family: var(--font-body); font-size: 17px; line-height: 1.6; letter-spacing: -.01em;
  transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; background: transparent;
}
.site-nav.is-scrolled { background: rgba(10,19,34,.82); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom-color: var(--s-line-dark); box-shadow: 0 1px 0 rgba(255,255,255,.02); }
.site-nav a { color: inherit; text-decoration: none; }
.site-nav .wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.site-nav .nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav .nav-logo .logo-svg { height: 24px; width: auto; display: block; fill: #fff; transition: fill .2s; }
.site-nav .nav-links { display: flex; align-items: center; gap: 34px; }
.site-nav .nav-links a { font-size: 15px; font-weight: 500; color: var(--s-on-dark-mut); transition: color .2s; white-space: nowrap; }
.site-nav .nav-links a:hover, .site-nav .nav-links a.is-current { color: var(--s-on-dark); }
.site-nav .nav-actions { display: flex; align-items: center; gap: 18px; }
.site-nav .nav-signin { font-size: 15px; font-weight: 550; color: var(--s-on-dark); white-space: nowrap; }
.site-nav .nav-signin:hover { color: var(--s-accent); }
.site-nav .btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 26px; border-radius: 999px; border: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; transition: transform .25s var(--s-ease), box-shadow .3s var(--s-ease), background .2s, color .2s, border-color .2s; white-space: nowrap; }
.site-nav .btn svg { width: 18px; height: 18px; }
.site-nav .btn--primary { background: var(--s-accent); color: #fff; box-shadow: var(--s-shadow-blue); }
.site-nav .btn--primary:hover { background: var(--s-accent-deep); transform: translateY(-2px); box-shadow: 0 30px 70px -20px rgba(45,107,255,.6); filter: none; }
.site-nav .btn--sm { height: 44px; padding: 0 20px; font-size: 14.5px; }
/* second row: everything specific to the demo page */
.site-nav .nav-sub { border-top: 1px solid var(--s-line-dark); }
.site-nav .nav-sub-inner { height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav .nav-sub-links { display: flex; align-items: center; gap: 26px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.site-nav .nav-sub-links::-webkit-scrollbar { display: none; }
.site-nav .nav-sub-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--s-muted); white-space: nowrap; }
.site-nav .nav-sub-links a { font-size: 14px; font-weight: 500; color: var(--s-on-dark-mut); white-space: nowrap; transition: color .2s; }
.site-nav .nav-sub-links a:hover { color: var(--s-on-dark); }
.site-nav .nav-sub-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.site-nav .hint-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--s-on-dark-mut); cursor: pointer; white-space: nowrap; }
.site-nav .hint-toggle input { accent-color: var(--s-accent); margin: 0; }
.site-nav .nav-sub-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid rgba(255,255,255,.16); font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; cursor: pointer; transition: background .2s; }
.site-nav .nav-sub-btn:hover { background: rgba(255,255,255,.12); }
/* hamburger + dropdown (mobile breakpoint, same 900px as the site) */
.site-nav .nav-burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); padding: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none; }
.site-nav .nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s var(--s-ease), opacity .2s; }
.site-nav .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav .nav-dropdown { border-top: 1px solid var(--s-line-dark); background: rgba(10,19,34,.96); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); padding: 18px 0 22px; }
.site-nav .nav-dropdown__links { display: flex; flex-direction: column; }
.site-nav .nav-dropdown__links a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; color: var(--s-on-dark-mut); border-bottom: 1px solid var(--s-line-dark); }
.site-nav .nav-dropdown__links a:hover, .site-nav .nav-dropdown__links a.is-current { color: var(--s-on-dark); }
.site-nav .nav-dropdown .nav-sub-label { margin: 22px 0 6px; }
.site-nav .nav-dropdown__actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.site-nav .nav-dropdown__actions .hint-toggle { display: inline-flex; }
@media (max-width: 900px) { .site-nav .nav-links { display: none; } .site-nav .nav-sub { display: none; } .site-nav .nav-burger { display: flex; } }
@media (min-width: 901px) { .site-nav .nav-dropdown { display: none !important; } }
@media (max-width: 760px) { .site-nav .wrap { padding: 0 22px; } }
@media (max-width: 520px) { .site-nav .nav-signin { display: none; } .site-nav .hint-toggle { display: none; } }

/* ═══════════════ Marketing chrome ═══════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.mono { font-family: var(--font-mono); font-size: .8em; letter-spacing: .02em; }
.wordmark-img { height: auto; }
.closing .wordmark-img { filter: invert(1); }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--paper); font-weight: 600; font-size: .92rem; text-decoration: none; line-height: 1; transition: transform .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); border-color: var(--paper-muted); }
.btn--primary { background: var(--brand); border-color: transparent; color: #fff; box-shadow: 0 8px 24px rgba(var(--brand-rgb), .35); }
.btn--primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn--ghost { background: rgba(255,255,255,.03); }
.btn--lg { padding: .9rem 1.5rem; font-size: 1.02rem; }
.btn--sm { padding: .45rem .8rem; font-size: .82rem; }
.linkish { background: none; border: 0; color: var(--paper-faint); text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }


.eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #4b80ff; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #4b80ff; box-shadow: 0 0 0 4px rgba(75,128,255,.2); }
.section-head { max-width: 760px; margin: 0 auto 2.5rem; padding: 0 1rem; text-align: center; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .9rem; font-weight: 700; }
.section-lede { color: var(--paper-muted); font-size: 1.05rem; margin: 0; }
section { position: relative; z-index: 1; }

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 1rem 3rem; text-align: center; overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; z-index: -1; background: radial-gradient(60% 50% at 50% 30%, rgba(var(--brand-rgb), .28), transparent 70%), radial-gradient(35% 35% at 20% 60%, rgba(var(--brand-rgb), .12), transparent 70%); filter: blur(20px); }
.hero__inner { max-width: 900px; margin: 0 auto; }
.hero__title { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(2.3rem, 6vw, 4.6rem); margin: 0 0 1.3rem; }
.hero__title em { font-style: normal; color: #4b80ff; }
.hero__lede { max-width: 700px; margin: 0 auto 2rem; color: var(--paper-muted); font-size: 1.1rem; }
.hero__lede strong { color: var(--paper); }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero__map--unused { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.hero__map a { display: inline-flex; gap: .5rem; align-items: baseline; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--paper-muted); background: rgba(255,255,255,.02); }
.hero__map b { font-family: var(--font-mono); font-size: .72rem; color: #4b80ff; }

/* ═══════════════ Stage: phone + TV ═══════════════ */
.stage { padding: 2.5rem 1rem 4rem; }
.stage__grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.device-label { font-size: .78rem; color: var(--paper-faint); margin-bottom: .8rem; letter-spacing: .04em; display: flex; align-items: center; gap: .4rem; white-space: nowrap; overflow: hidden; }
.device-label .mono { overflow: hidden; text-overflow: ellipsis; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fd29a; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(63,210,154,.55); } 70% { box-shadow: 0 0 0 7px rgba(63,210,154,0); } 100% { box-shadow: 0 0 0 0 rgba(63,210,154,0); } }

/* Phone: frame is 414×868 at scale 1 (390×844 screen + 12px bezel). JS sets --pscale so it fits the viewport. */
.phone-col { position: sticky; top: 136px; }
.phone-wrap { --pscale: 1; width: calc(414px * var(--pscale)); height: calc(868px * var(--pscale)); }
.phone { width: 414px; height: 868px; padding: 12px; border-radius: 54px; background: linear-gradient(160deg, #2a3446, #0b1220); box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,.08); transform: scale(var(--pscale)); transform-origin: top left; position: relative; }
.phone__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 18px; background: #050912; z-index: 5; }
.phone__screen { width: 390px; height: 844px; border-radius: 42px; overflow: hidden; background: #0a1322; position: relative; }
.phone__viewport { width: 390px; height: 844px; position: relative; overflow: hidden; }

/* ── Guest entry (GuestEntryForm) ── */
.gp-entry { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; overflow-y: auto; background-image: var(--guest-bg); background-attachment: local; }
.gp-entry__inner { width: 100%; max-width: 384px; }
.gp-entry__head { margin-bottom: 24px; text-align: center; }
.gp-header-img { width: 100%; overflow: hidden; border-radius: 8px; margin-bottom: 16px; }
.gp-header-img img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; }
.gp-header-img:not(.has-image) { display: none; }
.gp-form { border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.gp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gp-optin { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 20px; }
.gp-optin input { margin-top: 2px; accent-color: var(--color-accent); }
.gp-form__submit { width: 100%; margin-top: 4px; padding: 10px; }
.gp-form__returning { width: 100%; text-align: center; font-size: 12px; line-height: 16px; color: var(--color-muted); margin-top: 4px; }
.gp-form__returning:hover { color: var(--color-foreground); }

/* ── Guest main (GuestPage) ── */
.gp-main { position: absolute; inset: 0; display: flex; flex-direction: column; }
.gp-main__bg { position: absolute; inset: 0; z-index: 0; background-image: var(--guest-bg); }
.gp-main__scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; scrollbar-width: none; }
.gp-main__scroll::-webkit-scrollbar { display: none; }
.gp-home { padding: 24px 16px 80px; }
.gp-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-top: 28px; }
.gp-top .tg-logo { opacity: .7; }
.gp-top__actions { display: flex; align-items: center; gap: 8px; }
.tg.t-light .ico-sun, .tg:not(.t-light) .ico-moon { display: none; }
.gp-header-img--main { margin-bottom: 12px; }
.gp-welcome { font-size: 14px; line-height: 20px; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.tg-search { position: relative; margin-bottom: 24px; }
.tg-search__icon { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--color-muted); }
.tg-search input { width: 100%; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 12px 40px; color: var(--color-foreground); font-size: 16px; line-height: 24px; outline: none; }
.tg-search input::placeholder { color: color-mix(in srgb, var(--color-muted) 50%, transparent); }
.tg-search input:focus { box-shadow: 0 0 0 2px var(--color-accent); }
.tg-search__clear { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--color-muted); }
.tg-search__clear svg { width: 16px; height: 16px; display: block; }
.tg-search__clear .ico-spin { display: none; animation: spin 1s linear infinite; }
.tg-search.is-loading .ico-spin { display: block; } .tg-search.is-loading .ico-x { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.gp-results { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.gp-results__msg { padding: 16px 0; text-align: center; font-size: 14px; color: var(--color-muted); }
.gp-results__msg--warn { color: var(--color-warning); padding: 8px 0; }
.song-card { display: flex; width: 100%; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 12px; animation: tg-fade-in .2s ease-out; }
.song-card__meta { min-width: 0; flex: 1; }
.song-card__title { font-weight: 500; }
.song-card__artist { font-size: 14px; line-height: 20px; color: var(--color-muted); }
.song-card__album, .song-card__by { font-size: 12px; line-height: 16px; color: var(--color-header-accent); }
.song-card__req { flex: none; border-radius: 6px; background: var(--color-accent); color: var(--color-on-accent); padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 600; }
.song-card__req:hover { background: var(--color-accent-hover); }
.song-card--request { border-color: rgba(var(--accent-rgb), .3); }
.gp-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.gp-divider div { height: 1px; flex: 1; background: var(--color-border); }
.gp-divider span { font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-header-accent); }
.gp-list { display: flex; flex-direction: column; gap: 8px; }
.gp-more { margin-top: 12px; width: 100%; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 10px; font-size: 14px; color: var(--color-muted); }
.gp-more:hover { color: var(--color-foreground); }
.dq-undo { font-size: 12px; color: var(--color-muted); }
.dq-undo:hover { color: var(--color-foreground); }
.gp-list__empty { padding: 32px 0; text-align: center; font-size: 14px; color: var(--color-muted); }
.vote-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--color-border); padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-muted); transition: color .15s, border-color .15s, background .15s; flex: none; }
.vote-btn:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--accent-text); }
.vote-btn.is-voted { border-color: rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .1); color: var(--accent-text); }
.vote-btn svg { width: 14px; height: 14px; }
.gp-nav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 50; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-background) 80%, transparent); backdrop-filter: blur(8px); display: flex; padding-bottom: 14px; }
.gp-nav__tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; color: var(--color-muted); font-size: 12px; line-height: 16px; transition: color .15s; }
.gp-nav__tab svg { width: 20px; height: 20px; }
.gp-nav__tab.is-active { color: var(--accent-text); }
.gp-nav__tab:hover { color: var(--color-foreground); }
.gp-nav__unread { position: absolute; top: -2px; right: 25%; }

/* Chat tab */
.gp-chat { display: flex; flex-direction: column; min-height: 100%; padding: 36px 16px 140px; }
.gp-host { margin-bottom: 16px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 16px; }
.gp-host__row { display: flex; align-items: flex-start; gap: 12px; }
.gp-host__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--color-border); flex: none; }
.gp-host__meta { min-width: 0; flex: 1; }
.gp-host__name { font-size: 16px; font-weight: 600; }
.gp-host__bio { margin-top: 2px; font-size: 14px; line-height: 20px; }
.gp-chat__empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px 32px; text-align: center; }
.gp-chat__bubble { width: 64px; height: 64px; border-radius: 50%; background: rgba(var(--accent-rgb), .15); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.gp-chat__bubble svg { width: 32px; height: 32px; color: var(--accent-text); }
.gp-chat__empty h2 { font-size: 18px; line-height: 28px; font-weight: 600; margin-bottom: 4px; }
.gp-chat__empty p { font-size: 14px; color: var(--color-muted); margin-bottom: 24px; }
.gp-chat__prompts { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.gp-chat__prompt { border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 10px 16px; text-align: left; font-size: 14px; line-height: 20px; color: var(--color-foreground); }
.gp-chat__prompt:hover { background: rgba(var(--accent-rgb), .1); border-color: rgba(var(--accent-rgb), .3); }
.gp-msgs { display: flex; flex-direction: column; gap: 12px; }
.gp-msg { max-width: 80%; border-radius: 16px; padding: 8px 12px; font-size: 14px; line-height: 20px; animation: tg-fade-in .2s; }
.gp-msg--me { align-self: flex-end; background: var(--color-accent); color: var(--color-on-accent); border-bottom-right-radius: 4px; }
.gp-msg--host { align-self: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-bottom-left-radius: 4px; }
.gp-msg__who { display: block; font-size: 12px; font-weight: 500; color: var(--accent-text); margin-bottom: 2px; }
.gp-chat__inputbar { position: absolute; left: 0; right: 0; bottom: 70px; z-index: 40; border-top: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-background) 80%, transparent); backdrop-filter: blur(8px); padding: 12px 16px; }
.gp-chat__form { display: flex; gap: 8px; }
.gp-chat__form input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 8px 16px; font-size: 14px; line-height: 20px; color: var(--color-foreground); outline: none; }
.gp-chat__form input:focus { box-shadow: 0 0 0 2px var(--color-accent); }
.gp-chat__send { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); flex: none; }
.gp-chat__send svg { width: 16px; height: 16px; }

/* ── TV / VenueDisplay (1920×1080, scaled) ── */
.tv-col { min-width: 0; }
.tv { position: relative; border-radius: 14px; padding: 10px; background: linear-gradient(160deg, #1b2434, #060a12); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06); }
.tv__screen { --vscale: .5; position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #101010; }
.tv__stand { width: 34%; height: 14px; margin: 0 auto; background: linear-gradient(#141c2a, #0a0f18); border-radius: 0 0 10px 10px; }
.venue { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform: scale(var(--vscale)); transform-origin: top left; overflow: hidden; cursor: none; }
.venue__bg { position: absolute; inset: 0; background: var(--venue-bg, linear-gradient(to bottom right, #101010, #1a1a2e)); background-size: cover; background-position: center; }
.venue__content { position: relative; z-index: 10; display: flex; height: 100%; flex-direction: column; padding: 32px 64px; }
.venue__cols { display: flex; min-height: 0; flex: 1; flex-direction: row; gap: 32px; }
.venue__left { display: flex; width: 30%; flex-direction: column; }
.venue-panel { display: flex; min-height: 0; flex: 1; flex-direction: column; border-radius: 16px; background: rgba(255,255,255,.95); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); backdrop-filter: blur(8px); color: #111827; }
.venue-panel__head { border-bottom: 1px solid rgba(229,231,235,.6); padding: 16px 20px; }
.venue-panel__head h2 { font-size: 24px; line-height: 32px; font-weight: 800; letter-spacing: -.025em; color: #111827; }
.venue-panel__list { min-height: 0; flex: 1; overflow: hidden; padding: 8px 20px 8px; display: flex; flex-direction: column; }
.venue-panel__empty { display: flex; height: 100%; align-items: center; justify-content: center; text-align: center; font-size: 14px; color: #9ca3af; }
.venue-row { display: flex; align-items: center; min-height: 0; flex: 1; border-bottom: 1px solid #f3f4f6; }
.venue-row:last-child { border-bottom: 0; }
.venue-song-row { display: flex; width: 100%; align-items: center; gap: 12px; overflow: hidden; animation: venue-song-enter .4s ease-out both; }
@keyframes venue-song-enter { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.venue-rank-1 { border-left: 3px solid var(--color-accent); padding-left: 12px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .06) 0%, transparent 100%); border-radius: 8px; margin: 2px 0; }
.venue-fire-icon { flex: none; font-size: 24px; line-height: 32px; animation: venue-fire-pulse 1.5s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255,100,0,.4)); }
@keyframes venue-fire-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.venue-rank { flex: none; font-size: 16px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: #d1d5db; }
.venue-song__meta { min-width: 0; flex: 1; overflow: hidden; }
.venue-song__title { font-weight: 700; line-height: 1.25; font-size: 20px; color: #111827; }
.venue-rank-1 .venue-song__title { font-size: 24px; }
.venue-song__artist { font-size: 16px; line-height: 1.25; font-weight: 500; color: #6b7280; }
.venue-song__by { font-size: 14px; line-height: 1.25; color: #9ca3af; }
.venue-votes { display: flex; flex: none; align-items: center; gap: 4px; border-radius: 8px; border: 1px solid rgba(229,231,235,.8); background: rgba(249,250,251,.6); padding: 2px 8px; }
.venue-votes svg { width: 14px; height: 14px; }
.venue-votes span { font-size: 12px; line-height: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: #374151; }
.venue-vote-bump { animation: venue-vote-bump .5s ease-out; }
@keyframes venue-vote-bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes venue-panel-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .15), 0 0 15px rgba(var(--accent-rgb), .08), 0 0 30px rgba(var(--accent-rgb), .04), inset 0 0 15px rgba(var(--accent-rgb), .02); }
  50% { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .3), 0 0 20px rgba(var(--accent-rgb), .15), 0 0 45px rgba(var(--accent-rgb), .08), inset 0 0 20px rgba(var(--accent-rgb), .04); }
}
.venue-panel-glow { animation: venue-panel-glow 3s ease-in-out infinite; }
.venue__footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.venue__live { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.6); }
.venue__live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fd29a; animation: pulse 1.8s infinite; }
.venue__powered { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.5); text-decoration: none; }
.venue__powered span { font-size: 10px; line-height: 15px; text-transform: uppercase; letter-spacing: .05em; }
.venue__right { position: relative; display: flex; width: 70%; flex-direction: column; align-items: flex-end; justify-content: flex-start; padding-top: 32px; padding-right: 8px; }
.venue__logo img { max-height: 500px; max-width: 800px; object-fit: contain; filter: drop-shadow(0 25px 25px rgba(0,0,0,.35)); }
.venue__logo:not(.has-image) { display: none; }
.venue-qr-card { position: absolute; bottom: 0; right: 0; display: flex; flex-direction: column; align-items: center; border-radius: 12px; padding: 20px; box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .1), 0 8px 32px rgba(0,0,0,.5), 0 0 60px rgba(var(--accent-rgb), .06); }
.venue-qr-card--dark { border: 1px solid rgba(255,255,255,.15); background: #000; color: #fff; }
.venue-qr-card--light { border: 1px solid rgba(0,0,0,.1); background: #fff; color: #000; }
.venue-qr-card__label { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.venue-qr-card__label p { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.venue-qr-card__line { height: 1px; width: 16px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .6)); }
.venue-qr-card__line--r { transform: scaleX(-1); }
.venue-qr-glow { display: inline-block; border-radius: 8px; background: #fff; padding: 8px; box-shadow: 0 0 20px rgba(255,255,255,.15), 0 0 40px rgba(var(--accent-rgb), .08); }
.venue-qr-glow svg { display: block; }
.venue-qr-card__slug { margin-top: 8px; text-align: center; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .025em; opacity: .7; }

.crowd-sim { margin-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.crowd-sim__status { color: var(--paper-faint); }
.switch { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid var(--line-strong); transition: background .2s; flex: none; }
.switch__thumb { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--brand); border-color: transparent; }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(16px); }

/* ═══════════════ Dashboard (DashboardPage) ═══════════════ */
.dash-section { padding: 2rem 1rem 4rem; }
.dash-frame { max-width: 1080px; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dash { container-type: inline-size; min-height: 600px; }
.dash__inner { margin: 0 auto; max-width: 896px; padding: 24px 16px 32px; }
.dash__header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; }
.dash__logo { opacity: .6; }
.dash__user { display: flex; align-items: center; gap: 8px; border-radius: 6px; padding: 6px 8px; font-size: 14px; color: var(--color-muted); }
.dash__user svg { width: 20px; height: 20px; }
.dash__user span { display: none; }
.dash__selector { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash__selector-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dash__editbtn { flex: none; border-radius: 6px; border: 1px solid var(--color-border); padding: 6px 10px; color: var(--color-muted); }
.dash__editbtn svg { width: 16px; height: 16px; display: block; }
.dash__selector-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash__stats { margin-bottom: 24px; }
.dash__tabs { margin-bottom: 24px; display: flex; gap: 4px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 4px; }
.dash__tab { display: flex; flex: 1; align-items: center; justify-content: center; gap: 8px; border-radius: 6px; padding: 10px 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--color-muted); transition: color .15s, background .15s; }
.dash__tab svg { width: 16px; height: 16px; flex: none; }
.dash__tab span:not(.tg-badge) { display: none; }
.dash__tab.is-active { background: rgba(var(--accent-rgb), .15); color: var(--accent-text); }
.dash__tab:hover { color: var(--color-foreground); }
.dash__panel { display: none; }
.dash__panel.is-active { display: block; }
@container (min-width: 640px) { .dash__tab span:not(.tg-badge) { display: inline; } .dash__user span { display: inline; } }

/* Queue tab */
.dq-head { margin-bottom: 16px; display: flex; align-items: center; }
.dq-head .tg-h3 { width: 25%; margin: 0; }
.dq-head__center { display: flex; flex: 1; justify-content: center; }
.dq-head__right { display: flex; width: 25%; justify-content: flex-end; }
.dq-list { display: flex; flex-direction: column; gap: 8px; }
.dq-row { display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 12px; animation: tg-fade-in .2s ease-out; }
.dq-row__meta { min-width: 0; flex: 1; }
.dq-row__title { font-weight: 500; }
.dq-row__artist { font-size: 14px; line-height: 20px; color: var(--color-muted); }
.dq-row__sub { margin-top: 2px; display: flex; min-width: 0; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--color-header-accent); }
.dq-row__votes { display: flex; flex-direction: column; align-items: center; color: var(--accent-text); }
.dq-row__votes svg { width: 14px; height: 14px; }
.dq-row__votes span { font-size: 14px; line-height: 20px; font-weight: 700; }
.dq-row__actions { display: flex; gap: 6px; }
.dq-act { border-radius: 6px; border: 1px solid; padding: 8px; transition: background .15s, color .15s; }
.dq-act svg { width: 16px; height: 16px; display: block; }
.dq-act--ok { border-color: color-mix(in srgb, var(--color-success) 30%, transparent); color: color-mix(in srgb, var(--color-success) 70%, transparent); }
.dq-act--ok:hover { background: color-mix(in srgb, var(--color-success) 10%, transparent); color: var(--color-success); }
.dq-act--no { border-color: color-mix(in srgb, var(--color-danger) 30%, transparent); color: color-mix(in srgb, var(--color-danger) 70%, transparent); }
.dq-act--no:hover { background: color-mix(in srgb, var(--color-danger) 10%, transparent); color: var(--color-danger); }
.dq-act--block { border-color: var(--color-border); color: color-mix(in srgb, var(--color-muted) 70%, transparent); }
.dq-row--done { background: color-mix(in srgb, var(--color-surface) 50%, transparent); opacity: .6; }
.dq-row--done .dq-row__title { text-decoration: line-through; }
.dq-played { margin-top: 32px; }
.dq-played__toggle { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-muted); }
.dq-played__toggle svg { width: 16px; height: 16px; transition: transform .15s; }
.dq-played__toggle.is-open svg { transform: rotate(180deg); }
.dq-empty { padding: 32px 0; text-align: center; font-size: 14px; color: var(--color-muted); }

/* Chat tab (host side) */
.dc { display: grid; grid-template-columns: 1fr; gap: 12px; }
@container (min-width: 640px) { .dc { grid-template-columns: 240px 1fr; } }
.dc__list { display: flex; flex-direction: column; gap: 6px; }
.dc__item { display: flex; flex-direction: column; gap: 2px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 10px 12px; text-align: left; }
.dc__item.is-active { border-color: rgba(var(--accent-rgb), .4); background: rgba(var(--accent-rgb), .08); }
.dc__item-name { font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.dc__item-preview { font-size: 12px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc__empty { padding: 24px; text-align: center; font-size: 14px; color: var(--color-muted); border: 1px dashed var(--color-border); border-radius: 8px; }
.dc__thread { display: flex; flex-direction: column; min-height: 320px; border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); }
.dc__thread-head { padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: 14px; font-weight: 600; }
.dc__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; max-height: 360px; }
.dc__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--color-border); }
.dc__form input { flex: 1; min-width: 0; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-background); padding: 8px 16px; font-size: 14px; outline: none; color: var(--color-foreground); }
.dc__form input:focus { box-shadow: 0 0 0 2px var(--color-accent); }

/* Analytics tab */
.an-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 32px; }
.tg-field--inline label { font-size: 12px; }
.an-export { margin-left: auto; }
.an-content { display: flex; flex-direction: column; gap: 32px; }
.an-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@container (min-width: 640px) { .an-tiles { grid-template-columns: repeat(3, 1fr); } }
@container (min-width: 1024px) { .an-tiles { grid-template-columns: repeat(6, 1fr); } }
.an-tile { border-radius: 8px; border: 1px solid var(--color-border); background: var(--color-surface); padding: 12px; text-align: center; }
.an-tile p:first-child { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--color-foreground); }
.an-tile p:first-child.tick { animation: tick .35s ease; }
@keyframes tick { 0% { color: var(--accent-text); transform: translateY(-2px); } 100% { transform: none; } }
.an-tile p:last-child { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--color-muted); }
.an-charts { display: grid; gap: 24px; }
@container (min-width: 1024px) { .an-charts { grid-template-columns: 1fr 1fr; } }
.an-chart { height: 256px; position: relative; }
.an-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.an-chart .grid { stroke: rgba(127,127,127,.15); stroke-dasharray: 3 3; }
.an-chart .axis { fill: #727B84; font-size: 11px; }
.an-chart .bar { fill: #f59e0b; }
.an-chart .bar:hover { fill: #fbbf24; }
.an-chart--pie { display: flex; align-items: center; justify-content: center; gap: 24px; }
.an-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--color-muted); }
.an-legend span { display: inline-flex; align-items: center; gap: 8px; }
.an-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; padding: 8px 12px; border-radius: 6px; background: #1a1a1a; border: 1px solid #333; color: #fff; font-size: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }
.chart-tip b { display: block; color: #727B84; font-weight: 500; margin-bottom: 2px; }
.an-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--color-border); }
.an-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.an-table thead tr { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.an-table th { padding: 10px 16px; text-align: left; font-weight: 500; color: var(--color-muted); }
.an-table td { padding: 10px 16px; border-bottom: 1px solid var(--color-border); }
.an-table tr:last-child td { border-bottom: 0; }
.an-table .r, .an-table td.r { text-align: right; }
.an-table tr.is-me td { color: var(--accent-text); font-weight: 500; }

/* AI card (AiAnalysisCard) */
.ai__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ai__title { display: flex; align-items: center; gap: 8px; }
.ai__title svg { width: 20px; height: 20px; color: var(--accent-text); }
.ai__title h3 { font-size: 14px; line-height: 20px; font-weight: 600; }
.ai__credits { font-size: 12px; color: var(--color-muted); }
.ai__desc { margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--color-muted); }
.ai__actions { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai__toggle { font-size: 12px; color: var(--color-muted); }
.ai__hint { margin-top: 8px; font-size: 12px; color: var(--color-muted); }
.ai.is-thinking .tg-btn--accent { animation: think 1.2s ease infinite; }
@keyframes think { 50% { opacity: .6; } }
.ai-report { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--color-border); padding-top: 16px; }
.ai-report__title { font-size: 16px; line-height: 24px; font-weight: 700; }
.ai-report__meta { margin-top: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.ai-report__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-report__chips span { border-radius: 999px; border: 1px solid rgba(var(--accent-rgb), .3); background: rgba(var(--accent-rgb), .1); padding: 2px 10px; font-size: 12px; line-height: 16px; color: var(--accent-text); }
.ai-report__vibe { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.625; color: var(--color-muted); }
.ai-report__h5 { margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--color-muted); }
.ai-report__artists { display: flex; flex-direction: column; gap: 6px; }
.ai-report__artist { display: flex; align-items: baseline; gap: 8px; font-size: 14px; flex-wrap: wrap; }
.ai-report__artist .n { width: 20px; flex: none; text-align: right; font-size: 12px; color: var(--color-muted); }
.ai-report__artist .name { font-weight: 500; }
.ai-report__artist .stat { flex: none; font-size: 12px; color: var(--accent-text); }
.ai-report__artist .note { font-size: 12px; color: var(--color-muted); }
.ai-report__grid { display: grid; gap: 16px; }
@container (min-width: 640px) { .ai-report__grid { grid-template-columns: 1fr 1fr; } }
.ai-report__bars { display: flex; flex-direction: column; gap: 6px; }
.ai-bar { font-size: 12px; }
.ai-bar__row { margin-bottom: 2px; display: flex; justify-content: space-between; color: var(--color-muted); }
.ai-bar__row span:first-child { color: var(--color-foreground); }
.ai-bar__track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--color-border); }
.ai-bar__fill { height: 100%; border-radius: 999px; background: var(--color-accent); transition: width .5s; }
.ai-report__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-report__list li { display: flex; gap: 8px; font-size: 12px; line-height: 16px; color: var(--color-muted); }
.ai-report__list li::before { content: "•"; color: var(--accent-text); flex: none; margin-top: 1px; }
.typing::after { content: "▍"; color: var(--accent-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Settings tab */
.ds { display: flex; flex-direction: column; gap: 24px; }
.ds__save { width: 100%; padding: 12px; }
.ds__card { padding: 20px; }
.ds__stack { display: flex; flex-direction: column; gap: 16px; }
.ds__row2 { display: grid; gap: 16px; }
@container (min-width: 640px) { .ds__row2 { grid-template-columns: 1fr 1fr; } }
.ds__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ds__pick { border-radius: 6px; padding: 6px 16px; font-size: 14px; line-height: 20px; font-weight: 500; border: 1px solid var(--color-border); color: var(--color-muted); transition: color .15s, background .15s; }
.ds__pick:hover { color: var(--color-foreground); }
.ds__pick.is-active { background: var(--color-accent); color: var(--color-on-accent); border-color: transparent; }
.ds__accent { display: flex; align-items: center; gap: 12px; }
.ds__accent input[type="color"], .ds__grad input[type="color"] { width: 40px; height: 40px; padding: 0; border-radius: 4px; border: 1px solid var(--color-border); background: transparent; cursor: pointer; flex: none; }
.ds__accent-bar { height: 40px; flex: 1; border-radius: 6px; background: var(--color-accent); }
.ds__swatches { display: flex; gap: 8px; margin-top: 4px; }
.ds__swatch { width: 24px; height: 24px; border-radius: 50%; background: var(--sw); border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); transition: transform .15s; }
.ds__swatch:hover { transform: scale(1.15); }
.ds__swatch.is-active { border-color: var(--color-foreground); }
.ds__grad { display: flex; align-items: center; gap: 12px; }
.ds__help { font-size: 12px; color: var(--color-muted); }
.ds__imgs { display: grid; grid-template-columns: 1fr; gap: 16px; }
@container (min-width: 640px) { .ds__imgs { grid-template-columns: repeat(3, 1fr); } }
.ds__img { display: flex; flex-direction: column; align-items: center; gap: 8px; border-radius: 8px; border: 1px solid var(--color-border); padding: 16px; }
.ds__img:not(.has-image) { border-style: dashed; cursor: pointer; }
.ds__img:not(.has-image):hover { border-color: rgba(var(--accent-rgb), .5); background: var(--color-surface); }
.ds__img-box { display: flex; height: 80px; width: 100%; align-items: center; justify-content: center; border-radius: 6px; background: var(--color-surface); overflow: hidden; }
.ds__img-box img { height: 80px; width: 100%; object-fit: contain; }
.ds__img-box svg { width: 24px; height: 24px; color: var(--color-muted); }
.ds__img.has-image .ds__img-box svg, .ds__img:not(.has-image) .ds__img-box img { display: none; }
.ds__img:not(.has-image) .ds__img-actions .ds__img-btn--danger { display: none; }
#img-logo .ds__img-box { background: #0a1322; }
.ds__img-label { font-size: 12px; color: var(--color-muted); }
.ds__usage { border-radius: 999px; padding: 1px 8px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.ds__usage--guest { background: rgba(var(--accent-rgb), .12); color: var(--accent-text); }
.ds__usage--venue { background: color-mix(in srgb, var(--color-success) 12%, transparent); color: var(--color-success); }
.ds__img-dims { font-size: 13px; line-height: 18px; color: var(--color-muted); text-align: center; }
.ds__img-actions { display: flex; gap: 8px; }
.ds__img-btn { border-radius: 4px; padding: 4px 10px; font-size: 12px; font-weight: 500; color: var(--accent-text); }
.ds__img-btn:hover { background: rgba(var(--accent-rgb), .1); }
.ds__img-btn--danger { color: var(--color-danger); }
.ds__img-btn--danger:hover { background: color-mix(in srgb, var(--color-danger) 10%, transparent); }
.ds__num { width: 96px !important; }
.ds__toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ds__toggle-title { font-size: 14px; font-weight: 500; }
.ds__toggle-desc { font-size: 12px; color: var(--color-muted); }
.ds__saved { font-size: 12px; color: var(--color-success); display: flex; align-items: center; gap: 6px; }
.ds__saved::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); }
.ds__saved.is-saving { color: var(--color-muted); } .ds__saved.is-saving::before { background: var(--color-muted); }

/* Share tab */
.sh { display: flex; flex-direction: column; gap: 24px; }
.sh__qr { display: flex; flex-direction: column; align-items: center; padding: 32px; }
.sh__qr-box { border-radius: 12px; background: #fff; padding: 16px; }
.sh__qr-box svg { display: block; }
.sh__qr-note { margin-top: 12px; text-align: center; font-size: 14px; }
.sh__dl { margin-top: 12px; width: 100%; max-width: 280px; }
.sh__links { display: flex; flex-direction: column; gap: 12px; }
.sh__link { display: flex; align-items: center; gap: 12px; }
.sh__link-meta { min-width: 0; flex: 1; }
.sh__link-title { font-size: 14px; font-weight: 500; }
.sh__link-url { font-size: 12px; color: var(--color-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh__link-desc { margin-top: 2px; font-size: 12px; color: var(--color-header-accent); }
.sh__link-actions { display: flex; gap: 8px; flex: none; }
.sh__embed { display: block; margin-top: 12px; white-space: pre-wrap; word-break: break-all; border-radius: 6px; border: 1px solid var(--color-border); background: var(--color-background); padding: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--color-muted); }

/* ═══════════════ Insights pointer, closing, footer ═══════════════ */
.insights { padding: 1rem 1rem 3rem; }
.insights__cta { margin-top: 1.4rem; }
.closing { padding: 2rem 1rem 5rem; }
.closing__inner { max-width: 820px; margin: 0 auto; padding: 3rem 2rem; text-align: center; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(80% 100% at 50% 0%, rgba(var(--brand-rgb), .22), transparent 70%), rgba(255,255,255,.02); }
.closing__inner .wordmark-img { margin: 0 auto 1.2rem; }
.closing__title { margin: 0 0 .6rem; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
.closing__lede { margin: 0 auto 1.6rem; color: var(--paper-muted); max-width: 520px; }
.closing__cta { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.closing__facts { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; font-size: .82rem; color: var(--paper-faint); }
.closing__facts b { color: var(--paper); }
.footer { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem 2.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--paper-faint); border-top: 1px solid var(--line); }
.footer a { color: var(--paper-muted); text-decoration: none; }

/* ═══════════════ Host My Event modal ═══════════════ */
.modal { position: fixed; inset: 0; z-index: 130; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4,9,18,.72); backdrop-filter: blur(6px); }
.modal__card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; border-radius: 20px; background: #fff; color: var(--ink); padding: 2rem 2rem 1.6rem; box-shadow: 0 40px 100px rgba(0,0,0,.6); animation: tg-fade-in .25s ease; }
.modal__close { position: absolute; top: .8rem; right: .9rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #eef3fb; color: #475468; font-size: 22px; line-height: 1; cursor: pointer; }
.modal__close:hover { background: #e6ebf3; color: var(--ink); }
.modal__title { margin: 0 2rem 1.2rem 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.modal__form { display: flex; flex-direction: column; gap: .9rem; }
.modal__row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.modal__field { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; color: #475468; }
.modal__field input, .modal__field textarea { width: 100%; border-radius: 10px; border: 1px solid #e6ebf3; background: #f4f7fc; padding: .7rem .85rem; font: inherit; font-weight: 400; color: var(--ink); outline: none; resize: vertical; }
.modal__field input:focus, .modal__field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .18); background: #fff; }
.modal__field input:user-invalid, .modal__field textarea:user-invalid { border-color: #e23a5e; }
.modal__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal__err { margin: 0; font-size: .85rem; color: #e23a5e; }
.modal__actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .3rem; }
.modal .btn--ghost { color: var(--ink); border-color: #e6ebf3; background: #fff; }
.modal__done { text-align: center; padding: 1rem 0 .4rem; color: #475468; }
.modal__done-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 0 0 .4rem; }
.modal__done p { margin: 0 0 1.2rem; }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) { .modal__row { grid-template-columns: 1fr; } .modal__card { padding: 1.6rem 1.2rem 1.2rem; } }

/* ═══════════════ Hints + tour + toast ═══════════════ */
body.hints-off .hint-tag { display: none; }
.hint-tag { position: absolute; z-index: 30; width: 22px; height: 22px; border-radius: 50%; border: 0; padding: 0; background: var(--brand); color: #fff; font-weight: 800; font-size: 13px; line-height: 1; display: grid; place-items: center; animation: hint-pulse 2.4s infinite; cursor: help; transform: translate(-50%, -50%); }
@keyframes hint-pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .55); } 70% { box-shadow: 0 0 0 9px rgba(var(--brand-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); } }
.hint-pop { position: absolute; z-index: 31; max-width: 240px; padding: .6rem .75rem; border-radius: 10px; background: #fff; color: var(--ink); font-size: .8rem; line-height: 1.35; box-shadow: 0 12px 30px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.hint-pop.is-open { opacity: 1; transform: none; }
.hint-pop::before { content: ""; position: absolute; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
.hint-pop[data-side="top"]::before { bottom: -5px; left: calc(50% - 5px); }
.hint-pop[data-side="bottom"]::before { top: -5px; left: calc(50% - 5px); }
.hint-pop[data-side="left"]::before { right: -5px; top: calc(50% - 5px); }
.hint-pop[data-side="right"]::before { left: -5px; top: calc(50% - 5px); }
.hint-pop b { color: var(--brand); }
.tour { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.tour__spot { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 9999px rgba(4, 9, 18, .72), 0 0 0 3px rgba(var(--brand-rgb), .9), 0 0 40px rgba(var(--brand-rgb), .5); transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1); }
.tour__arrow { position: fixed; inset: 0; width: 100%; height: 100%; color: #4b80ff; pointer-events: none; }
.tour__card { position: fixed; z-index: 101; width: min(360px, calc(100vw - 2rem)); padding: 1.1rem 1.2rem 1rem; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.6); pointer-events: auto; transition: top .35s cubic-bezier(.2,.8,.2,1), left .35s cubic-bezier(.2,.8,.2,1); }
.tour__step { margin: 0 0 .3rem; color: #8896ab; }
.tour__title { margin: 0 0 .4rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.tour__body { margin: 0 0 1rem; color: #475468; font-size: .92rem; }
.tour__body b { color: var(--ink); }
.tour__actions { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.tour__actions > div { display: flex; gap: .4rem; }
.tour__card .btn { color: var(--ink); border-color: #e6ebf3; }
.tour__card .btn--primary { color: #fff; border-color: transparent; }
body.touring .tour-target { position: relative; z-index: 99; }
body.touring .hint-tag, body.touring .hint-pop { display: none; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 120; padding: .7rem 1rem; border-radius: 999px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.45); animation: tg-fade-in .2s ease; }

/* ═══════════════ Responsive ═══════════════ */
@media (max-width: 1100px) {
  .stage__grid { grid-template-columns: 1fr; justify-items: center; }
  .phone-col { position: static; }
  .tv-col { width: 100%; }
}
@media (max-width: 820px) {
  .dq-head { flex-wrap: wrap; gap: 8px; }
  .dq-head .tg-h3, .dq-head__right { width: auto; }
  .dq-head__center { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

@media print {
  body { background: #fff; color: #0a1322; }
  body::before, .site-nav, .hero, .stage, .insights, .closing, .footer, .tour, .hint-tag, .hint-pop, .toast, .dash__header, .dash__selector, .dash__stats, .dash__tabs, .an-filter, .an-tiles, .an-charts, .ai__actions, .ai__credits, .an-content > section { display: none !important; }
  .dash-frame { border: 0; box-shadow: none; max-width: none; }
  .dash, .tg, .tg-card { background: #fff !important; color: #0a1322 !important; border: 0 !important; }
  .dash__panel { display: none !important; } .dash__panel[data-dpanel="analytics"] { display: block !important; }
  .ai-report__vibe, .ai-report__list li, .ai-report__meta { color: #475468 !important; }
}
