/* ============================================================
   National Forum 2026 — event app
   Ai Group design tokens + app styles
   ============================================================ */

:root {
  /* Brand */
  --midnight-900: #1a1d28; --midnight-800: #23273a; --midnight-700: #2b3043; --midnight-600: #32374b;
  --midnight-500: #454b63; --midnight-400: #5d6480; --midnight-300: #868ca3; --midnight-200: #b6bac9;
  --midnight-100: #dcdee6; --midnight-50: #f1f2f6;
  --seagreen-700: #324957; --seagreen-600: #3d5566; --seagreen-500: #4b697d; --seagreen-400: #6a8499;
  --seagreen-300: #93a7b8; --seagreen-200: #c0cdd8; --seagreen-100: #e4eaef;
  --sunbeam: #ffe473; --sunbeam-600: #f5cf3a; --sunbeam-300: #ffeea3; --sunbeam-100: #fff7d6;
  --tangerine-600: #ef7148; --tangerine-100: #fee5da;
  --lilac-100: #ebecf4;
  --aqua-600: #4faa98; --aqua-500: #78c8b9; --aqua-400: #9cd7cc; --aqua-300: #abded3; --aqua-100: #e2f4f0;

  /* Neutrals */
  --white: #fff; --paper: #f8f9fb;
  --neutral-50: #f4f5f8; --neutral-100: #e9ebf0; --neutral-200: #d8dbe4; --neutral-300: #bbc0ce;
  --neutral-400: #939aac; --neutral-500: #6c7384; --neutral-700: #3a4054;

  /* Semantic */
  --danger: #ef7148; --danger-bg: #fee5da;
  --text-strong: var(--midnight-600);
  --text-body: var(--neutral-700);
  --border-default: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-focus: var(--seagreen-500);
  --focus-ring: color-mix(in srgb, var(--seagreen-500) 45%, transparent);

  --font-sans: "Satoshi", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --radius-sm: 8px; --radius-md: 12px;
  --control-h-md: 44px; --control-h-lg: 56px;

  --shadow-sm: 0 2px 6px rgba(26, 29, 40, .07);
  --shadow-md: 0 8px 20px -6px rgba(26, 29, 40, .14);
  --shadow-lg: 0 18px 44px -12px rgba(26, 29, 40, .20);
  --shadow-xl: 0 32px 72px -20px rgba(26, 29, 40, .28);
  --ring: 0 0 0 3px var(--focus-ring);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--midnight-900); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
body { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text-body); text-rendering: optimizeLegibility; }
h1, h2, h3 { margin: 0; font-family: var(--font-sans); color: var(--text-strong); line-height: 1.16; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--seagreen-500); text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
:where(button, a, input, select, textarea, [tabindex]):focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.b2 { stroke-width: 2; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---- Motion ---- */
@keyframes nfInR { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes nfInL { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes nfUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes nfReveal { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes nfParallax { from { transform: translateY(0) scale(1); } to { transform: translateY(22%) scale(1.06); } }
@keyframes nfPulse { 0% { box-shadow: 0 0 0 0 rgba(120,200,185,.6); } 70% { box-shadow: 0 0 0 9px rgba(120,200,185,0); } 100% { box-shadow: 0 0 0 0 rgba(120,200,185,0); } }
@keyframes nfSheetIn { from { transform: translateY(100%); } to { transform: none; } }
@keyframes nfSheetOut { from { transform: none; } to { transform: translateY(100%); } }
@keyframes nfFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes nfFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes nfSpin { to { transform: rotate(360deg); } }
@keyframes nfDraw { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes nfPop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }

.up { animation: nfUp 700ms var(--ease-out) both; }
.panel-r { animation: nfInR 440ms var(--ease-out) both; }
.panel-l { animation: nfInL 440ms var(--ease-out) both; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-500); flex: none; }
.dot.s6 { width: 6px; height: 6px; }
.dot.dk { background: var(--aqua-600); }
.pulse { animation: nfPulse 2.4s ease-out infinite; }

/* Scroll-driven effects, where supported */
@supports (animation-timeline: view()) {
  .rv { animation: nfReveal linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  .rv25 { animation: nfReveal linear both; animation-timeline: view(); animation-range: entry 0% entry 25%; }
  .plx { animation: nfParallax linear both; animation-timeline: scroll(root); animation-range: 0 300px; }
  .plx-home { animation: nfParallax linear both; animation-timeline: scroll(root); animation-range: 0 640px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---- Backdrop + desktop side panels ---- */
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--midnight-900); overflow: hidden; }
.backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.1); }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(26,29,40,.92) 0%, rgba(26,29,40,.55) 50%, rgba(26,29,40,.92) 100%); }

.side { display: none; position: fixed; top: 50%; transform: translateY(-50%); z-index: 1; color: #fff; animation: nfFadeIn 600ms var(--ease-out) both; }
@media (min-width: 1100px) { .side { display: block; } }
.side-l { left: max(40px, calc(50vw - 640px)); width: min(300px, calc(50vw - 300px)); }
.side-r { right: max(40px, calc(50vw - 640px)); width: min(260px, calc(50vw - 300px)); text-align: right; animation-delay: 120ms; }
.side-l .logo { height: 34px; width: auto; display: block; margin-bottom: 40px; }
.side-l h2 { color: #fff; margin: 0 0 16px; font-size: 48px; line-height: .98; font-weight: 900; letter-spacing: -.035em; }
.side .clock { margin: 0 0 6px; font-size: 44px; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* White logo fallback: recolour the midnight logo until a negative logo is supplied */
.logo-whiten { filter: brightness(0) invert(1); }

/* ---- App shell ---- */
.shell { position: relative; z-index: 2; max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--paper); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 120px rgba(0,0,0,.55); }

.topbar { position: sticky; top: 0; z-index: 40; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
  background: rgba(26,29,40,0); border-bottom: 1px solid rgba(255,255,255,0);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background-color 320ms var(--ease-out), border-color 320ms var(--ease-out); }
.topbar.scrolled { background: rgba(26,29,40,.82); border-bottom-color: rgba(255,255,255,.06); }
.topbar .home-btn { display: flex; align-items: center; background: none; border: 0; padding: 6px 0; cursor: pointer; transition: opacity 200ms; }
.topbar .home-btn:active { opacity: .7; }
.topbar .home-btn img { height: 26px; width: auto; display: block; }
.live-pill { display: flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(120,200,185,.16); color: var(--aqua-300); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; animation: nfFadeIn 400ms var(--ease-out) both; }
.brand-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.82); }
.brand-label span { color: var(--sunbeam); }

/* ---- Shared type ---- */
.eyebrow { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--seagreen-500); }
.eyebrow.muted { color: var(--neutral-500); }
.label-xs { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--neutral-500); }
.h-card { margin: 0; font-size: 26px; line-height: 1.1; font-weight: 900; letter-spacing: -.025em; color: var(--midnight-600); text-wrap: balance; }

/* ---- Page heroes ---- */
.page-hero { position: relative; margin-top: -60px; padding: 100px 22px 30px; overflow: hidden; background: var(--midnight-900); color: #fff; }
.page-hero > img { position: absolute; left: 0; top: 0; width: 100%; height: 130%; object-fit: cover; opacity: .7; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,29,40,.55), rgba(26,29,40,.92)); }
.page-hero > div { position: relative; z-index: 1; }
.page-hero .kick { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sunbeam); }
.page-hero h1 { color: #fff; margin: 0 0 8px; font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: -.035em; }
.page-hero .sub { margin: 0; font-size: 14px; line-height: 1.55; color: var(--midnight-200); text-wrap: pretty; }

.home-hero { position: relative; margin-top: -60px; height: calc(min(88svh, 640px) - 70px); min-height: 470px; overflow: hidden; background: var(--midnight-900); color: #fff; }
.home-hero > img { position: absolute; left: 0; top: -4%; width: 100%; height: 112%; object-fit: cover; object-position: 42% 50%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,29,40,.7) 0%, rgba(26,29,40,.1) 28%, rgba(26,29,40,.35) 55%, rgba(26,29,40,.94) 88%, #1a1d28 100%); }
.home-hero .inner { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 24px 96px; }
.home-hero .date { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sunbeam); }
.home-hero h1 { color: #fff; margin: 0 0 16px; font-size: clamp(48px, 14vw, 64px); line-height: .92; font-weight: 900; letter-spacing: -.04em; }
.home-hero h1 span { color: var(--sunbeam); }
.home-hero .theme { margin: 0 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.home-hero .lede { margin: 0; font-size: 15px; line-height: 1.5; color: var(--midnight-200); max-width: 32ch; text-wrap: pretty; }
.partner { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.partner div { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--midnight-200); }
.partner img { display: block; width: 132px; height: 26px; }

/* ---- Buttons (Ai Group design system) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h-md); padding: 0 22px; font-family: var(--font-sans); font-weight: 700; font-size: 15px; letter-spacing: -.01em; line-height: 1; color: var(--midnight-600); background: var(--aqua-500); border: 1.5px solid transparent; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color 200ms var(--ease-out), transform 120ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn:hover { background: var(--aqua-400); }
.btn:active { transform: scale(.98); }
.btn.lg { height: var(--control-h-lg); padding: 0 30px; font-size: 17px; }
.btn.full { width: 100%; }
.btn.secondary { background: transparent; border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--neutral-50); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--aqua-500); }
.btn:disabled:active { transform: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(50,55,75,.25); border-top-color: var(--midnight-600); animation: nfSpin 700ms linear infinite; }

.btn-sm { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); background: #fff; font-size: 13.5px; font-weight: 700; color: var(--midnight-600); cursor: pointer; transition: background-color 200ms, transform 150ms; }
.btn-sm:hover { background: var(--neutral-50); }
.btn-sm:active { transform: scale(.97); }
.btn-sm.aqua { border: 0; background: var(--aqua-500); }
.btn-sm.aqua:hover { background: var(--aqua-400); }
.btn-sm.dark { border: 0; background: var(--midnight-600); color: #fff; }
.btn-out { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-strong); color: var(--midnight-600); font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color 200ms, transform 150ms; }
.btn-out:hover { background: var(--neutral-50); }
.btn-out:active { transform: scale(.97); }

/* ---- Cards ---- */
.card { background: #fff; border: 1px solid var(--neutral-100); border-radius: 20px; }
.card-pad { padding: 20px; }
.tap { cursor: pointer; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms; }
.tap:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tap:active { transform: scale(.985); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section { padding: 36px 16px 0; }
.section-pad { padding: 16px 16px 0; }
.section-title { margin: 0 0 14px 6px; }

/* Status card on home */
.status-wrap { position: relative; z-index: 2; margin: -64px 16px 0; animation: nfUp 700ms 400ms var(--ease-out) both; }
.status-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.countdown > div { background: var(--midnight-50); border-radius: 14px; padding: 12px 4px 10px; text-align: center; }
.countdown .v { font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -.03em; color: var(--midnight-600); font-variant-numeric: tabular-nums; }
.countdown .l { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-500); }
.facts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--text-body); }
.facts div { display: flex; align-items: center; gap: 10px; }
.facts .ico { color: var(--seagreen-500); }
.chip-live { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--aqua-100); color: var(--midnight-600); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chip-live.sm { display: inline-flex; gap: 6px; height: 24px; padding: 0 9px; font-size: 10.5px; }
.onstage { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; margin-bottom: 16px; border: 1px solid var(--neutral-100); border-radius: 16px; background: var(--paper); text-align: left; cursor: pointer; transition: background-color 200ms, transform 200ms var(--ease-out); }
.onstage:hover { background: var(--midnight-50); }
.onstage:active { transform: scale(.98); }
.avatar { border-radius: 50%; overflow: hidden; flex: none; background: var(--seagreen-100); display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--seagreen-500); }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.bar { height: 6px; border-radius: 999px; background: var(--neutral-100); overflow: hidden; }
.bar > div { height: 100%; border-radius: 999px; background: var(--aqua-500); transition: width 1s linear; }
.meta-row { display: flex; justify-content: space-between; margin: 8px 0 18px; font-size: 12.5px; color: var(--neutral-500); font-variant-numeric: tabular-nums; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.starts-in { display: flex; align-items: baseline; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--midnight-50); margin-bottom: 18px; }
.upnext { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 22px; border: 0; border-top: 1px solid var(--neutral-100); background: var(--paper); text-align: left; cursor: pointer; transition: background-color 200ms; }
.upnext:hover { background: var(--midnight-50); }
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feedback { display: flex; gap: 16px; align-items: center; padding: 18px 18px 18px 20px; border-radius: 20px; background: var(--sunbeam); color: var(--midnight-600); }
.feedback .t { font-size: 17px; font-weight: 900; letter-spacing: -.01em; margin-bottom: 3px; }
.feedback .d { font-size: 13.5px; line-height: 1.45; }
.btn-dark { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--midnight-600); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background-color 200ms, transform 150ms; }
.btn-dark:hover { background: var(--midnight-800); color: #fff; }
.btn-dark:active { transform: scale(.97); }

/* Program at a glance */
.ev-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 1px solid var(--neutral-100); border-radius: 20px; background: #fff; text-align: left; }
.ev-row:hover { border-color: var(--neutral-200); }
.ev-date { width: 56px; height: 60px; flex: none; border-radius: 14px; background: var(--midnight-50); color: var(--midnight-600); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background-color 300ms; }
.ev-date.live { background: var(--aqua-500); }
.ev-date .dow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ev-date .dom { font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.chev { color: var(--neutral-400); }
.tag-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--aqua-600); }
.tag-done { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--neutral-400); }

/* Explore */
.ask-tile { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; width: 100%; min-height: 128px; padding: 20px; margin-bottom: 10px; border: 0; border-radius: 20px; background: var(--midnight-600); color: #fff; text-align: left; overflow: hidden; }
.ask-tile:hover { box-shadow: var(--shadow-lg); }
.ask-tile .go { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--aqua-500); color: var(--midnight-600); display: flex; align-items: center; justify-content: center; }
.tile { display: flex; flex-direction: column; gap: 22px; padding: 18px; border: 1px solid var(--neutral-100); border-radius: 20px; background: #fff; text-align: left; }
.tile:active { transform: scale(.97); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; color: var(--midnight-600); display: flex; align-items: center; justify-content: center; }
.tile .t { font-size: 16px; font-weight: 800; color: var(--midnight-600); }
.tile .d { font-size: 12.5px; color: var(--neutral-500); margin-top: 2px; }
.bg-aqua { background: var(--aqua-100); } .bg-lilac { background: var(--lilac-100); } .bg-sun { background: var(--sunbeam-100); }
.bg-tang { background: var(--tangerine-100); } .bg-sea { background: var(--seagreen-100); }

.footer { padding: 48px 24px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer img { height: 34px; width: auto; opacity: .9; }
.footer p { font-size: 12px; color: var(--neutral-500); }

/* ---- Sticky sub-bars ---- */
.subbar { position: sticky; top: 60px; z-index: 30; background: rgba(248,249,251,.88); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--neutral-100); }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px; border-radius: 14px; background: var(--neutral-100); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); transition: transform 380ms var(--ease-out); }
.seg button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; border: 0; background: none; cursor: pointer; color: var(--neutral-500); transition: color 250ms; }
.seg button.on { color: var(--midnight-600); }
.seg .n { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; }
.seg .d { font-size: 11px; font-weight: 600; color: var(--neutral-500); }
.chips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--neutral-200); background: #fff; color: var(--midnight-600); font-size: 13.5px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background-color 250ms var(--ease-out), color 250ms, border-color 250ms, transform 150ms; }
.chips button:active { transform: scale(.95); }
.chips button.on { background: var(--midnight-600); color: #fff; border-color: var(--midnight-600); }

/* ---- Agenda ---- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 69px; top: 10px; bottom: 10px; width: 2px; background: var(--neutral-100); border-radius: 2px; }
.slot { position: relative; display: grid; grid-template-columns: 56px 28px minmax(0, 1fr); align-items: start; transition: opacity 400ms; }
.slot.past { opacity: .6; }
.slot .when { padding-top: 16px; text-align: right; }
.slot .when .t { font-size: 13.5px; font-weight: 800; color: var(--midnight-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot .when .d { font-size: 11px; color: var(--neutral-500); margin-top: 2px; }
.slot .pin { display: flex; justify-content: center; padding-top: 20px; }
.pin-live { width: 12px; height: 12px; border-radius: 50%; background: var(--aqua-500); border: 2px solid #fff; animation: nfPulse 2.4s ease-out infinite; }
.pin-past { width: 10px; height: 10px; border-radius: 50%; background: var(--neutral-300); border: 2px solid var(--paper); }
.pin-up { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--seagreen-400); }
.sbox { background: #fff; border: 1px solid var(--neutral-100); border-radius: 20px; padding: 16px 16px 16px 18px; transition: box-shadow 260ms var(--ease-out), border-color 260ms, transform 200ms var(--ease-out); }
.sbox.brk { background: var(--neutral-50); border-color: transparent; padding: 14px 16px; }
.sbox.live { border: 2px solid var(--aqua-500); box-shadow: 0 12px 32px -12px rgba(79,170,152,.45); }
.sbox.open:not(.live) { box-shadow: var(--shadow-md); }
.sbox.exp { cursor: pointer; }
.sbox.exp:active { transform: scale(.99); }
.sbox .ttl { flex: 1; min-width: 0; font-size: 17px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: var(--midnight-600); text-wrap: balance; }
.sbox.brk .ttl { font-size: 15px; }
.sbox .kick { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--seagreen-500); margin-bottom: 3px; }
.sbox .ln { font-size: 13.5px; line-height: 1.45; color: var(--text-body); margin-top: 5px; text-wrap: pretty; }
.toggle { flex: none; width: 28px; height: 28px; margin: -3px -4px 0 0; border-radius: 50%; background: var(--neutral-50); display: flex; align-items: center; justify-content: center; color: var(--midnight-500); transition: transform 320ms var(--ease-out); }
.sbox.open .toggle { transform: rotate(180deg); }
.avs { display: flex; }
.avs .avatar { width: 30px; height: 30px; margin-right: -8px; border: 2px solid #fff; font-size: 10px; }
.sbox .bar { height: 4px; margin-top: 14px; }
.expand { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.sbox.open .expand { grid-template-rows: 1fr; }
.expand > div { min-height: 0; overflow: hidden; }
.items { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 2px; border-top: 1px solid var(--neutral-100); }
.items > div { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.items .t { font-size: 12px; font-weight: 700; color: var(--seagreen-500); font-variant-numeric: tabular-nums; padding-top: 1px; }
.items .x { font-size: 13.5px; line-height: 1.4; font-weight: 700; color: var(--midnight-600); }
.items .x span { font-weight: 500; color: var(--neutral-500); }
.items .s { font-size: 12.5px; line-height: 1.45; color: var(--text-body); margin-top: 3px; }

.float { position: fixed; left: 0; right: 0; bottom: calc(92px + env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; z-index: 45; animation: nfUp 400ms var(--ease-out) both; }
.float button { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--midnight-600); color: #fff; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow-lg); cursor: pointer; white-space: nowrap; transition: transform 150ms, background-color 200ms; }
.float button:hover { background: var(--midnight-800); }
.float button:active { transform: scale(.96); }

/* ---- Speakers ---- */
.sp-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--neutral-100); border-radius: 20px; background: #fff; text-align: left; overflow: hidden; }
.sp-card:hover { transform: translateY(-3px); }
.sp-card:active { transform: scale(.97); }
.sp-photo { position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: var(--seagreen-100); display: flex; align-items: center; justify-content: center; }
.sp-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.sp-photo .ini { font-size: 40px; font-weight: 900; letter-spacing: -.02em; color: var(--seagreen-500); }
.badge-stage { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--midnight-600); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sp-card .nm { font-size: 14.5px; line-height: 1.25; font-weight: 800; color: var(--midnight-600); text-wrap: balance; }
.sp-card .sb { margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--neutral-500); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- Speaker sheet ---- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20,22,31,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: nfFadeIn 320ms ease both; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 90svh; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; box-shadow: var(--shadow-xl); animation: nfSheetIn 460ms var(--ease-out) both; }
.sheet-wrap.closing .sheet-bg { animation: nfFadeOut 280ms ease both; }
.sheet-wrap.closing .sheet { animation: nfSheetOut 280ms var(--ease-out) both; }
.sheet .photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--seagreen-100); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sheet .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; animation: nfFadeIn 500ms var(--ease-out) both; }
.sheet .photo .ini { font-size: 72px; font-weight: 900; letter-spacing: -.03em; color: var(--seagreen-500); }
.sheet .grab { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.8); }
.sheet .close { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--midnight-600); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform 150ms, background-color 200ms; }
.sheet .close:hover { background: #fff; }
.sheet .close:active { transform: scale(.92); }
.sheet .stage { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--midnight-600); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sheet .body { padding: 22px 22px calc(24px + env(safe-area-inset-bottom)); animation: nfUp 460ms 80ms var(--ease-out) both; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--midnight-50); font-size: 12.5px; font-weight: 700; color: var(--midnight-600); }
.pill.aqua { background: var(--aqua-100); }

/* ---- Ask ---- */
.ask-live { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-radius: 20px; background: var(--aqua-100); animation: nfUp 500ms var(--ease-out) both; }
.form-card { background: #fff; border: 1px solid var(--neutral-100); border-radius: 20px; box-shadow: var(--shadow-md); overflow: hidden; }
.form { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.control { width: 100%; height: var(--control-h-md); padding: 0 14px; font-family: var(--font-sans); font-size: 15px; color: var(--text-strong); background: #fff; border: 1.5px solid var(--border-default); border-radius: var(--radius-md); outline: none; transition: border-color 200ms, box-shadow 200ms; }
.control:focus { border-color: var(--border-focus); box-shadow: var(--ring); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.select-wrap select.picked { border-color: var(--aqua-500); }
.select-wrap .ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--neutral-500); }
textarea.control { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.55; resize: none; overflow: hidden; }
.optional { padding-top: 18px; border-top: 1px solid var(--neutral-100); display: flex; flex-direction: column; gap: 14px; }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--danger-bg); color: var(--midnight-600); font-size: 13.5px; line-height: 1.45; animation: nfUp 300ms var(--ease-out) both; }
.done { padding: 36px 24px 28px; text-align: center; }
.done .badge { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.done h2 { margin: 0 0 8px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--midnight-600); }
.done p { margin: 0 auto; max-width: 32ch; font-size: 14.5px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }

/* ---- Resources / venue ---- */
.report { position: relative; padding: 24px 22px 22px; border-radius: 20px; background: var(--midnight-600); color: #fff; overflow: hidden; }
.btn-sun { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--radius-sm); background: var(--sunbeam); color: var(--midnight-600); font-size: 14.5px; font-weight: 700; text-decoration: none; transition: background-color 200ms, transform 150ms; }
.btn-sun:hover { background: var(--sunbeam-600); color: var(--midnight-600); }
.btn-sun:active { transform: scale(.97); }
.h-sm { margin: 0 0 4px; font-size: 17px; font-weight: 900; letter-spacing: -.01em; color: var(--midnight-600); }
.muted-sm { font-size: 13px; color: var(--neutral-500); }
.gallery { position: relative; display: block; min-height: 170px; border-radius: 20px; overflow: hidden; text-decoration: none; color: #fff; background: var(--midnight-900); }
.gallery:hover { box-shadow: var(--shadow-lg); color: #fff; }
.gallery > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 55%; }
.gallery::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,29,40,.1), rgba(26,29,40,.85)); }
.gallery .cap { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--neutral-100); }
.round { width: 40px; height: 40px; flex: none; border-radius: 50%; color: var(--midnight-600); display: flex; align-items: center; justify-content: center; transition: background-color 200ms, transform 150ms; }
.round:active { transform: scale(.92); }
.round.call { background: var(--aqua-100); } .round.call:hover { background: var(--aqua-300); color: var(--midnight-600); }
.round.mail { background: var(--neutral-50); } .round.mail:hover { background: var(--neutral-100); color: var(--midnight-600); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; color: var(--midnight-600); display: flex; align-items: center; justify-content: center; }
.prose { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.55; color: var(--text-body); }
.prose p { text-wrap: pretty; }
.prose strong { color: var(--midnight-600); }
.timed { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.timed .t { font-size: 13px; font-weight: 700; color: var(--seagreen-500); font-variant-numeric: tabular-nums; padding-top: 1px; }
.stops { position: relative; display: flex; flex-direction: column; gap: 18px; }
.stops::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--neutral-100); }
.stop { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.stop .mk { position: relative; flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--seagreen-400); transition: background-color 300ms; }
.stop.now .mk { background: var(--aqua-500); box-shadow: 0 0 0 1.5px var(--aqua-500); }
.stop.done .mk { background: var(--neutral-300); box-shadow: 0 0 0 1.5px var(--neutral-300); }
.wifi { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; padding: 14px 16px; border-radius: 14px; background: var(--paper); font-size: 14px; }
.wifi .k { color: var(--neutral-500); }
.wifi .v { font-weight: 800; color: var(--midnight-600); user-select: all; }

/* ---- Bottom nav ---- */
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 50; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.88); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); border-top: 1px solid var(--neutral-100); }
.tabbar > div { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tabbar .ind { position: absolute; top: 4px; left: 0; width: calc(100% / 6); height: 30px; display: flex; justify-content: center; transition: transform 420ms var(--ease-out); pointer-events: none; }
.tabbar .ind div { width: 52px; height: 30px; border-radius: 999px; background: var(--sunbeam-300); }
.tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 4px; border: 0; background: none; cursor: pointer; color: var(--neutral-500); transition: color 250ms, transform 150ms; }
.tabbar button[aria-current="page"] { color: var(--midnight-600); }
.tabbar button:active { transform: scale(.9); }
.tabbar span { font-size: 10.5px; font-weight: 700; letter-spacing: .01em; }

/* ---- Update available bar ---- */
.update-bar { position: fixed; top: calc(68px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 90; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; animation: nfUp 400ms var(--ease-out) both; }
.update-bar > div { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; max-width: 456px; padding: 8px 8px 8px 14px; border-radius: 16px; background: var(--midnight-600); color: #fff; box-shadow: var(--shadow-lg); }
.update-bar .msg { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.update-bar .go { flex: none; height: 34px; padding: 0 14px; border: 0; border-radius: var(--radius-sm); background: var(--aqua-500); color: var(--midnight-600); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color 200ms, transform 150ms; }
.update-bar .go:hover { background: var(--aqua-400); }
.update-bar .go:active { transform: scale(.96); }
.update-bar .x { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
