/* Postdoc Showcase 2026 — app styles (dark & bold) */
:root {
  --bg: #0c0b10;
  --bg-2: #121118;
  --card: #18171e;
  --card-2: #201f27;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f2ec;
  --text-2: #c9c4bb;
  --muted: #8f8a81;
  --red: #ed1c24;
  --red-text: #ff5a60;
  --red-deep: #7a0b10;
  --red-glow: rgba(237, 28, 36, 0.32);
  --amber: #ffb547;
  --green: #4cd27f;
  --blue: #5aa9ff;
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Brandon Text', 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --topbar: 58px;
  --tabbar: 64px;
  --gutter: 16px;
  --maxw: 1040px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(237, 28, 36, 0.14), transparent 60%), radial-gradient(800px 500px at -10% 30%, rgba(90, 40, 60, 0.18), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
.card, .session, .trow, .opt, .person, .tile, .ann { min-width: 0; overflow-wrap: anywhere; }
a { color: var(--red-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
a, button, .tile, .trow, .opt, .stamp, .check { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tabbar, .rail, .topbar, .stamp, .tile { user-select: none; -webkit-user-select: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
::selection { background: rgba(237, 28, 36, 0.5); }
svg.ic { width: 1.1em; height: 1.1em; vertical-align: -0.2em; display: inline-block; flex: none; }

/* ---------- App frame ---------- */
.app { min-height: 100dvh; display: grid; grid-template-rows: var(--topbar) 1fr; grid-template-columns: minmax(0, 1fr); }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar); display: flex; align-items: center; gap: 8px; padding: 0 12px 0 var(--gutter);
  background: rgba(12, 11, 16, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar .brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: var(--text); }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand .mark { width: auto; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(237, 28, 36, 0.35)); }
.topbar .brand .t { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .brand .t small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--text-2); }
.iconbtn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn .tb .badge { position: absolute; top: 4px; right: 2px; }
.topbar .back { margin-left: -8px; color: var(--text); }
.iconbtn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
main.view { padding: 0 var(--gutter) calc(var(--tabbar) + 28px + env(safe-area-inset-bottom)); max-width: var(--maxw); width: 100%; min-width: 0; margin: 0 auto; }
main.view.enter > * { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Bottom tab bar (mobile) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding: 6px 6px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(14, 13, 19, 0.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.02em; position: relative; }
.tabbar a:hover { text-decoration: none; color: var(--text-2); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { color: var(--red-text); filter: drop-shadow(0 0 8px var(--red-glow)); }
.tabbar a .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }

/* Desktop rail */
.rail { display: none; }
@media (min-width: 960px) {
  .app { grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: var(--topbar) 1fr; }
  .topbar { grid-column: 1 / -1; }
  .rail { display: block; position: sticky; top: var(--topbar); height: calc(100dvh - var(--topbar)); overflow: auto; padding: 18px 12px; border-right: 1px solid var(--line); }
  .rail a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 500; font-size: 15px; }
  .rail a:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; color: var(--text); }
  .rail a.active { background: rgba(237, 28, 36, 0.14); color: var(--text); }
  .rail a.active svg { color: var(--red-text); }
  .rail a svg { width: 20px; height: 20px; flex: none; }
  .rail .sect { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; font-weight: 700; }
  .tabbar { display: none; }
  main.view { padding: 0 32px 60px; }
  :root { --gutter: 32px; }
}

/* ---------- Typography helpers ---------- */
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-text); }
.eyebrow.muted { color: var(--muted); }
.h1 { font-size: clamp(30px, 6.2vw, 46px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; }
.h2 { font-size: clamp(22px, 4.6vw, 30px); font-weight: 900; letter-spacing: -0.02em; }
.h3 { font-size: 18px; font-weight: 700; }
.lead { font-size: 17px; color: var(--text-2); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.page-head { padding: 18px 0 12px; }
@media (min-width: 960px) { .page-head { padding: 26px 0 14px; } }
.page-head .h1 { margin-top: 6px; }
.page-head .lead { margin-top: 8px; max-width: 60ch; }
.section { margin: 24px 0 0; }
@media (min-width: 960px) { .section { margin: 30px 0 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head .h2 { font-size: 20px; }
.section-head a { font-size: 13px; font-weight: 700; white-space: nowrap; }

/* ---------- Cards, chips, buttons ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.tight { padding: 12px 14px; }
.card.glow { border-color: rgba(237, 28, 36, 0.55); box-shadow: 0 0 0 1px rgba(237, 28, 36, 0.35), 0 14px 44px -12px var(--red-glow); }
.card.link { display: block; color: inherit; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
@media (hover: hover) { .card.link:hover { text-decoration: none; border-color: var(--line-2); background: var(--card-2); transform: translateY(-1px); } }
.stack > * + * { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, 0.07); color: var(--text-2); border: 1px solid transparent; line-height: 1.2; }
.chip svg { width: 14px; height: 14px; }
.chip.red { background: rgba(237, 28, 36, 0.16); color: var(--red-text); }
.chip.amber { background: rgba(255, 181, 71, 0.16); color: var(--amber); }
.chip.green { background: rgba(76, 210, 127, 0.16); color: var(--green); }
.chip.outline { background: transparent; border-color: var(--line-2); }
.chip.sdg { color: #fff; font-weight: 700; padding-left: 8px; }
.chip.sdg b { font-weight: 900; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--text); font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease; text-decoration: none; }
.btn:hover { background: rgba(255, 255, 255, 0.1); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 24px -10px var(--red-glow); }
.btn.primary:hover { background: #ff2f37; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.on { background: rgba(255, 181, 71, 0.14); border-color: rgba(255, 181, 71, 0.5); color: var(--amber); }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(255, 181, 71, 0.1); border: 1px solid rgba(255, 181, 71, 0.3); color: var(--text-2); font-size: 14px; }
.notice.red { background: rgba(237, 28, 36, 0.1); border-color: rgba(237, 28, 36, 0.35); }
.notice.green { background: rgba(76, 210, 127, 0.1); border-color: rgba(76, 210, 127, 0.35); }
.notice.grey { background: rgba(255, 255, 255, 0.05); border-color: var(--line); }

/* ---------- Avatars ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--card-2); flex: none; border: 1px solid var(--line-2); }
.avatar.lg { width: 72px; height: 72px; }
.avatar.xl { width: 112px; height: 112px; border-width: 2px; }
.avatar.ph { display: grid; place-items: center; font-weight: 900; color: var(--text-2); font-size: 15px; background: linear-gradient(135deg, #2a2731, #1a1920); }
.avatar.xl.ph { font-size: 32px; }
.avatars { display: flex; }
.avatars .avatar { width: 32px; height: 32px; margin-left: -8px; border: 2px solid var(--card); }
.avatars .avatar:first-child { margin-left: 0; }
.avatars .avatar.ph { font-size: 11px; }
.person { display: flex; gap: 12px; align-items: center; }
.person .who { min-width: 0; }
.person .name { font-weight: 700; color: var(--text); }
a.person:hover { text-decoration: none; border-color: var(--line-2); background: var(--card-2); }
.person .role { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 0 calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; filter: grayscale(0.85) contrast(1.05); opacity: 0.55; }
.hero .tint { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(122, 11, 16, 0.6) 0%, rgba(40, 12, 16, 0.4) 45%, rgba(12, 11, 16, 0.98) 100%); }
.hero .tint::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237, 28, 36, 0.25), transparent 60%); mix-blend-mode: screen; opacity: 0.6; }
.hero .inner { padding: 64px 0 20px; }
.hero .logo { height: 26px; width: auto; opacity: 0.95; margin-bottom: 16px; }
.hero .h1 { max-width: 12ch; }
.hero .h1 .yr { color: var(--red-text); }
.hero .theme { font-size: clamp(17px, 3.6vw, 22px); font-weight: 500; color: var(--text-2); margin-top: 10px; letter-spacing: -0.005em; }
.hero .chips { margin-top: 14px; }
.hero .chips .chip { max-width: 100%; }
.hero .bracket { position: absolute; top: 24px; right: var(--gutter); width: 34px; height: 34px; border-top: 5px solid var(--red); border-right: 5px solid var(--red); z-index: 0; opacity: 0.9; }
@media (min-width: 960px) { .hero { border-radius: 24px; margin: 22px 0 0; padding: 0 36px; min-height: 440px; } .hero .inner { padding: 140px 0 32px; } .hero .logo { height: 30px; } }

/* Now / next */
.now-card { margin-top: 14px; }
.now-card .label { display: flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 var(--red-glow); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.6); } 100% { box-shadow: 0 0 0 12px rgba(237, 28, 36, 0); } }
.now-card .big { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin-top: 6px; }
.now-card .next { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--text-2); }
.countdown { display: flex; gap: 10px; margin-top: 10px; }
.countdown div { flex: 1; text-align: center; padding: 10px 6px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; }
.countdown b { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.countdown span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); min-height: 96px; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
@media (hover: hover) { .tile:hover { text-decoration: none; background: var(--card-2); border-color: var(--line-2); transform: translateY(-1px); } }
.tile:active, .trow:active, .opt:active, .card.link:active { transform: scale(0.985); transition-duration: 0.05s; }
.tile svg { width: 24px; height: 24px; color: var(--red-text); }
.tile b { font-weight: 700; font-size: 15px; }
.tile small { color: var(--muted); font-size: 12px; margin-top: -10px; }

/* Horizontal scroller */
.scroller { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 10px; margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none; min-width: 0; contain: inline-size; -webkit-overflow-scrolling: touch; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: 0 0 min(78vw, 300px); scroll-snap-align: start; }
.scroller .card b { display: block; font-size: 16px; margin-bottom: 6px; }
.scroller .card p { font-size: 14px; color: var(--text-2); }
.scroller .card .n { font-size: 34px; font-weight: 900; color: rgba(255, 255, 255, 0.08); line-height: 1; margin-bottom: 10px; letter-spacing: -0.04em; }

/* Pinned bar */
.pinbar { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: linear-gradient(90deg, rgba(237, 28, 36, 0.22), rgba(237, 28, 36, 0.08)); border: 1px solid rgba(237, 28, 36, 0.45); display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.pinbar svg { width: 18px; height: 18px; color: var(--red-text); flex: none; margin-top: 2px; }
.pinbar b { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-text); margin-bottom: 2px; }

/* ---------- Timeline / programme ---------- */
.timeline { position: relative; margin-top: 8px; }
.timeline::before { content: ''; position: absolute; left: 62px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--red), rgba(237, 28, 36, 0.15)); border-radius: 2px; }
.slot { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding: 6px 0; position: relative; }
.slot .time { font-weight: 700; font-size: 14px; color: var(--text-2); text-align: right; padding-top: 14px; line-height: 1.2; }
.slot .time small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.slot::after { content: ''; position: absolute; left: 57px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.slot.now::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.25); }
.slot.past { opacity: 0.62; }
.slot.past::after { background: var(--red-deep); border-color: var(--red-deep); }
.slot.parallel { margin-left: 0; }
.slot.parallel .session { border-style: dashed; }
.session { padding: 14px 16px; }
.session.break { padding: 10px 16px; background: transparent; border-style: dashed; }
.session .title { font-weight: 700; font-size: 16px; }
.session.break .title { font-weight: 500; color: var(--text-2); font-size: 15px; }
.session .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.session .meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.session .body { margin-top: 12px; display: none; }
.session.open .body { display: block; }
.session .toggle { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--red-text); background: none; border: 0; padding: 8px 0; cursor: pointer; min-height: 40px; }
.session .toggle svg { width: 16px; height: 16px; transition: transform 0.2s; }
.session.open .toggle svg { transform: rotate(180deg); }
.session .now-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); margin-bottom: 6px; }

/* Talk / poster rows */
.rows { display: flex; flex-direction: column; gap: 8px; }
.trow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: inherit; transition: background 0.15s ease, border-color 0.15s ease; }
@media (hover: hover) { .trow:hover { text-decoration: none; background: var(--card-2); border-color: var(--line-2); } }
.trow .t { font-weight: 700; font-size: 13px; color: var(--text-2); padding-top: 2px; min-width: 42px; }
.trow .n { width: 34px; height: 34px; border-radius: 10px; background: rgba(237, 28, 36, 0.16); color: var(--red-text); font-weight: 900; display: grid; place-items: center; font-size: 15px; }
.trow .ttl { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }
.trow .who { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.trow .chips { margin-top: 8px; }
.trow .chips:empty { display: none; }
.trow .star { margin: -6px -6px -6px 0; }
.star { width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.star:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.star svg { width: 20px; height: 20px; }
.star.on { color: var(--amber); }
.star.on svg, .star-btn.on svg { fill: currentColor; }

/* Detail pages */
.detail-head { padding: 22px 0 8px; }
.detail-head .h1 { font-size: clamp(24px, 5vw, 34px); margin-top: 8px; }
.detail-head .presenter { margin-top: 14px; }
.abstract { margin-top: 18px; font-size: 16px; color: var(--text-2); max-width: 70ch; }
.abstract p { margin-bottom: 0.9em; }
.backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--text-2); margin-top: 16px; }
.backlink svg { width: 18px; height: 18px; }
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 24px; }
.prevnext a { font-size: 13px; padding: 12px; }
.prevnext a span { display: block; color: var(--muted); font-weight: 500; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px; }
.prevnext a.next { text-align: right; }

/* Speakers / team grids */
.people-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.people-grid .pcard { flex: 0 0 calc(50% - 5px); }
@media (min-width: 640px) { .people-grid .pcard { flex-basis: calc(33.333% - 7px); } }
@media (min-width: 960px) { .people-grid .pcard { flex-basis: calc(25% - 8px); } }
.pcard { text-align: center; padding: 18px 12px 16px; color: inherit; }
.pcard .avatar { margin: 0 auto 10px; }
.pcard .name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.pcard .role { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.speaker-list { display: flex; flex-direction: column; gap: 10px; }
.speaker-list .person { padding: 12px 14px; }
.speaker-list .person .avatar { width: 56px; height: 56px; }
.speaker-list .person .role { font-size: 12.5px; }

/* Search */
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); margin-top: 12px; }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 16px; outline: none; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { cursor: pointer; white-space: nowrap; border: 1px solid transparent; }
.filters .chip.on { background: var(--text); color: var(--bg); font-weight: 700; }

/* ---------- Passport ---------- */
.ring-wrap { display: flex; align-items: center; gap: 18px; }
.ring { width: 104px; height: 104px; flex: none; position: relative; }
.ring svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: rgba(255, 255, 255, 0.08); }
.ring .bar { stroke: var(--red); transition: stroke-dashoffset 0.6s ease; filter: drop-shadow(0 0 6px var(--red-glow)); }
.ring .val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 900; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.ring .val small { display: block; font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: 0.08em; margin-top: 4px; }
.stamps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 760px; }
@media (min-width: 560px) { .stamps { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--line-2); background: var(--card); display: grid; place-items: center; cursor: pointer; position: relative; color: var(--text-2); transition: transform 0.15s ease, border-color 0.15s ease; }
.stamp:hover { transform: scale(1.04); border-color: var(--text-2); }
.stamp b { font-size: 20px; font-weight: 900; letter-spacing: -0.03em; }
.stamp small { position: absolute; bottom: 12%; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stamp.on { border: 3px double var(--red); color: var(--red-text); transform: rotate(-8deg); background: rgba(237, 28, 36, 0.08); box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(237, 28, 36, 0.5); }
.stamp.on.just { animation: stampSlam 0.55s cubic-bezier(0.18, 1.2, 0.3, 1) both; z-index: 1; }
.stamp.on.just::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--red); animation: burst 0.7s ease-out 0.12s both; pointer-events: none; }
@keyframes stampSlam { 0% { transform: rotate(-28deg) scale(2.6); opacity: 0; } 55% { transform: rotate(-6deg) scale(0.92); opacity: 1; } 75% { transform: rotate(-9deg) scale(1.06); } 100% { transform: rotate(-8deg) scale(1); } }
@keyframes burst { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.stamp.on small { color: var(--red-text); }
.stamp.on:hover { transform: rotate(-8deg) scale(1.04); }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; text-align: left; width: 100%; }
.check > span:not(.box) { flex: 1; min-width: 0; }
.check .box { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.check.on .box { background: var(--green); border-color: var(--green); }
.check .box svg { width: 16px; height: 16px; opacity: 0; }
.check.on .box svg { opacity: 1; }
.check b { font-weight: 700; }
.check small { display: block; color: var(--muted); font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; }
.field input:focus { border-color: var(--red); outline: none; }
.code-input { font-size: 28px !important; font-weight: 900; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; height: 60px !important; }

/* ---------- Vote ---------- */
.options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.opt { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); cursor: pointer; text-align: left; width: 100%; color: inherit; }
.opt:hover { border-color: var(--line-2); background: var(--card-2); }
.opt .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 2px; display: grid; place-items: center; }
.opt .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--red); transform: scale(0); transition: transform 0.15s ease; }
.opt.on { border-color: var(--red); background: rgba(237, 28, 36, 0.08); }
.opt.on .radio { border-color: var(--red); }
.opt.on .radio::after { transform: scale(1); }
.opt .ttl { display: block; font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.opt .who { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { font-size: 13.5px; }
.bar .lbl { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.bar .lbl b { font-weight: 700; min-width: 0; }
.bar .lbl b.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bar .lbl .num { flex: none; }
.bar .trk { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar .fill { height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red)); border-radius: 4px; }

/* ---------- Live ---------- */
.feed { display: flex; flex-direction: column; gap: 10px; }
.ann { padding: 14px 16px; border-left: 3px solid var(--line-2); }
.ann.pinned { border-left-color: var(--red); }
.ann .when { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.ann .when svg { width: 13px; height: 13px; color: var(--red-text); }
.ann .txt { margin-top: 6px; font-size: 15.5px; white-space: pre-wrap; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.status .led { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok .led { background: var(--green); box-shadow: 0 0 8px rgba(76, 210, 127, 0.7); }
.status.bad .led { background: var(--amber); }

/* ---------- Photos ---------- */
.photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; position: relative; background: var(--card); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); font-size: 13px; color: #fff; }
.photo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.photo-grid .photo { aspect-ratio: 4/3; }
.banner-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ---------- Toasts & sheet ---------- */
#toasts { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px); pointer-events: none; }
.toast { pointer-events: auto; background: #f5f2ec; color: #111; padding: 12px 16px; border-radius: 14px; font-weight: 500; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); animation: rise 0.25s ease both; width: 100%; display: flex; gap: 10px; align-items: center; }
.toast.red { background: var(--red); color: #fff; }
.toast svg { width: 18px; height: 18px; flex: none; }
@media (min-width: 960px) { #toasts { bottom: 24px; } }
#sheet { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
#sheet[hidden] { display: none; }
#sheet .panel { background: var(--bg-2); border-radius: 22px 22px 0 0; padding: 12px var(--gutter) calc(20px + env(safe-area-inset-bottom)); max-height: 88dvh; overflow: auto; border-top: 1px solid var(--line-2); animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
#sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 0 auto 14px; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 960px) { #sheet { align-items: center; justify-items: center; } #sheet .panel { width: min(560px, 92vw); border-radius: 22px; border: 1px solid var(--line-2); } }
.menu { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: 14px; }
.menu a:hover { text-decoration: none; background: var(--card-2); }
.menu a svg { width: 18px; height: 18px; color: var(--red-text); }

/* ---------- Misc ---------- */
.footer { margin-top: 44px; padding: 24px 0 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer .logos { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.footer .logos img { height: 28px; width: auto; opacity: 0.85; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 10px; color: var(--line-2); }
.demo-tag { position: fixed; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); left: 12px; z-index: 39; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--amber); color: #111; padding: 4px 8px; border-radius: 6px; }
.tag-list { display: grid; gap: 8px; }
.tag-list .item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.tag-list .item .i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(237, 28, 36, 0.14); color: var(--red-text); font-weight: 900; flex: none; }
@media print { .topbar, .tabbar, .rail, #toasts { display: none !important; } body { background: #fff; color: #000; } .card { border-color: #ccc; } }
@media (min-width: 960px) { .demo-tag { bottom: 16px; left: 266px; } }

/* ---------- Update bar ---------- */
#updatebar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); z-index: 65; }
#updatebar[hidden] { display: none; }
.ubar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 6px 10px 14px; border-radius: 16px; background: #f5f2ec; color: #111; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55); animation: rise 0.3s ease both; }
.ubar > span svg { width: 22px; height: 22px; color: var(--red); }
.ubar b { display: block; font-size: 14px; line-height: 1.2; }
.ubar small { display: block; font-size: 12px; color: #555; margin-top: 2px; }
.ubar .iconbtn { color: #555; width: 36px; height: 36px; }
.ubar .iconbtn:hover { background: rgba(0, 0, 0, 0.06); color: #111; }
@media (min-width: 960px) { #updatebar { left: auto; right: 24px; bottom: 24px; width: min(460px, 92vw); } }

/* ---------- First-run welcome ---------- */
#intro { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: auto; opacity: 0; transition: opacity 0.4s ease; }
#intro.in { opacity: 1; }
#intro.out { opacity: 0; pointer-events: none; }
#intro .ibg { position: absolute; inset: 0; background-size: cover; background-position: center 25%; filter: grayscale(0.85) contrast(1.05); opacity: 0.5; }
#intro .itint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(122, 11, 16, 0.65) 0%, rgba(30, 10, 14, 0.55) 35%, rgba(12, 11, 16, 0.97) 62%, var(--bg) 100%); }
#intro .ibody { position: relative; min-height: 100%; display: flex; flex-direction: column; justify-content: flex-end; max-width: 520px; margin: 0 auto; padding: max(48px, env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom)); }
#intro .ilogo { height: 28px; width: auto; align-self: flex-start; margin-bottom: 20px; }
#intro .h1 { margin-top: 8px; }
#intro .h1 .yr { color: var(--red-text); }
#intro .theme { font-size: 19px; font-weight: 500; color: var(--text-2); margin: 10px 0 0; }
#intro .ifeat { display: grid; gap: 10px; margin-top: 26px; }
#intro .if { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#intro .ii { width: 38px; height: 38px; border-radius: 11px; background: rgba(237, 28, 36, 0.18); color: var(--red-text); display: grid; place-items: center; flex: none; }
#intro .ii svg { width: 20px; height: 20px; }
#intro .if b { display: block; font-size: 15px; }
#intro .if small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.4; margin-top: 2px; }
#intro .iactions { display: grid; gap: 10px; margin-top: 24px; }
#intro .ios-hint { text-align: center; margin: 0; }
#intro.in .ilogo, #intro.in .eyebrow, #intro.in .h1, #intro.in .theme, #intro.in .if, #intro.in .iactions { animation: rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#intro.in .eyebrow { animation-delay: 0.08s; } #intro.in .h1 { animation-delay: 0.14s; } #intro.in .theme { animation-delay: 0.2s; }
#intro.in .if:nth-child(1) { animation-delay: 0.3s; } #intro.in .if:nth-child(2) { animation-delay: 0.38s; } #intro.in .if:nth-child(3) { animation-delay: 0.46s; }
#intro.in .iactions { animation-delay: 0.56s; }
@media (min-width: 960px) { #intro .ibody { justify-content: center; } }

/* ---------- Home welcome card ---------- */
.welcome-mini { margin-top: 12px; padding: 14px 16px; }
.welcome-mini .who { min-width: 0; }
.welcome-mini b { display: block; font-size: 16px; margin-top: 4px; }
.welcome-mini small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.welcome-mini .chev, .card.link .chev { width: 22px; height: 22px; color: var(--muted); flex: none; }
.backlink { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Feedback form ---------- */
.fform .fq + .fq { margin-top: 18px; }
.fform label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.fform textarea, .fform input[type=email] { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 16px; }
.fform textarea { resize: vertical; min-height: 84px; }
.fform textarea:focus, .fform input:focus { border-color: var(--red); outline: none; }
.stars { display: flex; gap: 6px; }
.starpick { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.starpick svg { width: 26px; height: 26px; }
.starpick.on { color: var(--amber); border-color: rgba(255, 181, 71, 0.5); background: rgba(255, 181, 71, 0.12); }
.starpick.on svg { fill: currentColor; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: inline-block; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 500; font-size: 14px; cursor: pointer; }
.pill input:checked + span { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pill input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- Venue map ---------- */
.map-card { padding: 10px 10px 12px; }
.map { height: 280px; border-radius: 12px; overflow: hidden; background: #15141a; position: relative; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.leaflet-container { background: #15141a; font-family: var(--font); }
.leaflet-control-attribution { background: rgba(12, 11, 16, 0.7) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
.leaflet-bar { border: 1px solid var(--line-2) !important; box-shadow: none !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--text) !important; border-bottom-color: var(--line) !important; }
.pin { position: relative; }
.pin-dot { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(237, 28, 36, 0.35), 0 8px 20px rgba(0, 0, 0, 0.5); }
.osm-dark { filter: invert(1) hue-rotate(180deg) brightness(0.82) contrast(0.92) saturate(0.55); }
.pin-lbl { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); white-space: nowrap; background: rgba(12, 11, 16, 0.9); color: var(--text); font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); }

/* ---------- Announcement overlay ---------- */
#annbar { position: fixed; top: calc(var(--topbar) + 8px); left: 10px; right: 10px; z-index: 45; }
#annbar[hidden] { display: none; }
.abar { padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, #2a0b0f, #1a1216 60%); border: 1px solid rgba(237, 28, 36, 0.55); box-shadow: 0 0 0 1px rgba(237, 28, 36, 0.25), 0 18px 40px rgba(0, 0, 0, 0.6); animation: drop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.abar .ahead { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-text); }
.abar .ahead svg { width: 16px; height: 16px; }
.abar .ahead .num { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12px; margin-left: auto; }
.abar .ahead .chip { padding: 2px 8px; font-size: 11px; }
.abar .atxt { margin-top: 6px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.abar .aacts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
@media (min-width: 960px) { #annbar { left: auto; right: 24px; width: min(460px, 92vw); } }

.wrap-card .big { font-size: 24px; }
