/* ============================================================
   CreatorStack — design system  (light, minimalist, modern)
   "Glacier": cold steel-teal accent, warm coral kept only for
   live/alerts as a deliberate temperature contrast.
   Per-game colours · dark variant.
   ============================================================ */
:root {
  /* surfaces */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #fbfbfc;
  --surface-3: #f3f4f6;
  /* ink */
  --ink: #16181d;
  --ink-2: #585e6b;
  --ink-3: #888e9b;
  /* lines */
  --line: #ebecf0;
  --line-2: #dfe1e6;
  /* accent (used sparingly) — glacier teal */
  --accent: #0e7c8c;
  --accent-ink: #0a606d;
  --accent-weak: #e6f3f4;
  --accent-line: #c2e2e5;
  /* semantic */
  --ok: #12936a;
  --ok-weak: #e7f6ef;
  --warn: #b07d0a;
  --warn-weak: #fbf3dc;
  --danger: #df453b;
  --danger-weak: #fcebe9;
  --tl-emote: #9b5de5;
  --live: #df453b;
  /* shape */
  --r-lg: 22px;
  --r: 14px;
  --r-sm: 10px;
  --sh-sm: 0 1px 2px rgba(18, 20, 26, 0.06), 0 1px 1px rgba(18, 20, 26, 0.04);
  --sh: 0 8px 24px -10px rgba(18, 20, 26, 0.16);
  --sh-lg: 0 30px 70px -28px rgba(18, 20, 26, 0.28);
  --ring: 0 0 0 4px rgba(14, 124, 140, 0.16);
  --maxw: 1220px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grotesk: "Space Grotesk", "Inter", sans-serif;
}
[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: #14171e;
  --surface-2: #181c24;
  --surface-3: #1e232c;
  --ink: #eef0f4;
  --ink-2: #a6adba;
  --ink-3: #727a89;
  --line: #242a34;
  --line-2: #2e3540;
  --accent: #34c6d6;
  --accent-ink: #63d6e3;
  --accent-weak: rgba(52, 198, 214, 0.14);
  --accent-line: rgba(52, 198, 214, 0.32);
  --ok: #3fcf8e;
  --ok-weak: rgba(63, 207, 142, 0.13);
  --warn: #e2b04a;
  --warn-weak: rgba(226, 176, 74, 0.13);
  --danger: #ff6b61;
  --danger-weak: rgba(255, 107, 97, 0.13);
  --tl-emote: #c79bff;
  --live: #ff6b61;
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --sh: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --sh-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.7);
  --ring: 0 0 0 4px rgba(52, 198, 214, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
.boot { padding: 30vh 2rem; text-align: center; color: var(--ink-3); letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }
::selection { background: rgba(14, 124, 140, 0.2); }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-variant-numeric: tabular-nums; }

/* CreatorStack · base — glyphs, dots, tooltips, buttons, pills — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ---------- inline glyph alignment (monoline icon set) ---------- */
.pill svg, .chip svg, .fchip svg, .vote svg, .btn svg, .selectpill .chip svg,
.result__top .ts svg, .vodhero__sub span svg { flex-shrink: 0; }
.gglyph { display: inline-block; vertical-align: -0.18em; opacity: 0.92; }
.pill .gglyph, .chip .gglyph, .fchip .gglyph { vertical-align: middle; }

/* ---------- status dots ---------- */
.dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; display: inline-block; }
.dot--pulse { position: relative; }
.dot--pulse::after { content: ""; position: absolute; inset: 0; border-radius: 99px; background: currentColor; animation: dotpulse 1.7s ease-out infinite; }
@keyframes dotpulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- tooltips ---------- */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  background: var(--ink); color: var(--surface);
  padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 500; line-height: 1.3;
  white-space: nowrap; max-width: 260px;
  box-shadow: var(--sh); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
[data-tip-pos="bottom"]::after { bottom: auto; top: calc(100% + 9px); transform: translateX(-50%) translateY(-4px); }
[data-tip-pos="bottom"]:hover::after { transform: translateX(-50%) translateY(0); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 11px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--sh-sm); transition: 0.16s ease;
}
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -8px rgba(14, 124, 140, 0.55); }
.btn--primary:hover { filter: brightness(1.06); border-color: transparent; }
.btn--ghost { background: transparent; box-shadow: none; border-color: var(--line-2); }
.btn--sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn--live { color: var(--live); border-color: color-mix(in srgb, var(--live) 40%, var(--line-2)); }
.iconbtn {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  color: var(--ink-2); box-shadow: var(--sh-sm); transition: 0.16s ease;
}
.iconbtn:hover { color: var(--ink); border-color: var(--ink-3); }

/* pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2);
}
.pill--live { background: var(--danger-weak); border-color: color-mix(in srgb, var(--live) 30%, transparent); color: var(--live); }
.pill--live .blip { width: 7px; height: 7px; border-radius: 99px; background: var(--live); animation: blip 1.6s infinite; }
@keyframes blip { 0% { box-shadow: 0 0 0 0 rgba(223, 69, 59, 0.5); } 70% { box-shadow: 0 0 0 7px rgba(223, 69, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(223, 69, 59, 0); } }
.pill--accent { background: var(--accent-weak); border-color: var(--accent-line); color: var(--accent-ink); }
.pill--ok { background: var(--ok-weak); border-color: color-mix(in srgb, var(--ok) 26%, transparent); color: var(--ok); }
.pill--warn { background: var(--warn-weak); border-color: color-mix(in srgb, var(--warn) 28%, transparent); color: var(--warn); }
.pill--game { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--sh-sm); }

.avatar { border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }

/* A profile photo overlaid on any initials-monogram host (account chip, studio
   sidebar, …). The host shows initials; .av-photo covers them when the image
   loads and is removed (revealing the initials) if it's missing or 404s. */
.av-host { position: relative; }
.av-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; z-index: 1; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-head h2 { font-size: clamp(20px, 2.3vw, 27px); margin: 4px 0 0; letter-spacing: -0.02em; font-weight: 800; }
.section-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; max-width: 60ch; }

/* CreatorStack · boot skeleton — concatenated into dist/styles.css by tools/build-styles.mjs.
   A full-viewport placeholder shown from first paint (html.js) until the SPA's
   first render, then faded out by app.js. Uses theme tokens so it matches
   light/dark, set by the pre-paint script before this paints. */
.bootskel { display: none; }
html.js #boot-skel {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.35s ease;
}
#boot-skel.is-done { opacity: 0; pointer-events: none; }

.bootskel__bar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.bootskel__spacer { flex: 1; }
.bootskel__wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 30px 24px; }
.bootskel__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 0; }
.bootskel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }

/* shimmer block */
.sk { display: block; background: var(--surface-3); border-radius: var(--r-sm); position: relative; overflow: hidden; }
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 7%, transparent), transparent);
  animation: sk-shimmer 1.4s ease-in-out infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }

.sk-logo { width: 124px; height: 24px; }
.sk-chip { width: 96px; height: 32px; border-radius: 99px; }
.sk-chip--av { width: 120px; }
.sk-hero { height: clamp(180px, 28vw, 240px); border-radius: var(--r-lg); }
.sk-stat { height: 72px; border-radius: var(--r); }
.sk-line { height: 18px; }
.sk-line--title { height: 30px; width: 38%; margin: 30px 0 0; }
.sk-card { height: 230px; border-radius: var(--r); }

@media (max-width: 760px) {
  .bootskel__stats { grid-template-columns: repeat(2, 1fr); }
  .bootskel__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .bootskel__grid { grid-template-columns: 1fr; }
}

/* CreatorStack · app bar + language switch — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   APP BAR
   ============================================================ */
.appbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.appbar__inner { height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; appearance: none; border: 0; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 10px; font: inherit; color: inherit; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.brand:hover { background: var(--surface-2, rgba(127,127,127,.1)); }
.brand:active { opacity: .8; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #189fb0, #0e7c8c 58%, #0a5965);
  box-shadow: 0 6px 16px -7px rgba(14, 124, 140, 0.7); font-size: 15px;
}
.brand__mark svg { width: 18px; height: 18px; }
.brand__name { font-family: var(--grotesk); font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; }
.brand__name b { color: var(--ink); }
.brand__name span { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.brand__tag { font-size: 11.5px; color: var(--ink-3); margin-left: 2px; }
.appbar__spacer { flex: 1; }
.appbar__tools { display: flex; align-items: center; gap: 8px; }

/* streamer studio button */
.studiochip { white-space: nowrap; }
.studiochip.is-active { border-color: var(--accent); color: var(--accent); }

/* language switch */
/* small rounded flag used in the switcher and its menu */
.flag { display: block; width: 22px; height: 15px; border-radius: 3px; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.flag svg { display: block; width: 100%; height: 100%; }

/* language flag — just the current flag; opens a 2-option menu whose
   options are real links to the same page on the other URL (root ⇄ /de). */
.langmenu { position: relative; display: flex; align-items: center; }
.langmenu__btn {
  display: inline-flex; align-items: center; padding: 4px;
  border: none; border-radius: 99px; background: none;
  cursor: pointer; opacity: 0.85; transition: opacity 0.14s;
}
.langmenu__btn:hover, .langmenu.is-open .langmenu__btn { opacity: 1; }
.langmenu__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; width: 176px;
  padding: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--sh); animation: menuPop 0.14s ease; transform-origin: top right;
}
.lang-opt {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px;
  border-radius: 8px; font: 600 13px/1 var(--sans); color: var(--ink); transition: background 0.13s;
}
.lang-opt:hover { background: var(--surface-3); }
.lang-opt__chk { margin-left: auto; display: grid; color: var(--accent); }
.menu-pick { text-decoration: none; }

/* CreatorStack · how-it-works modal — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   MODAL (How it works)
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(18, 20, 26, 0.42); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; animation: fadeIn 0.2s ease; }
[data-theme="dark"] .modal-overlay { background: rgba(0, 0, 0, 0.62); }
.modal {
  width: min(720px, 100%); max-height: 86vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); animation: pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}
.modal__head { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.modal__body { padding: 22px 24px 26px; }
.modal__intro { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; line-height: 1.6; }
.howrow { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.howrow__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-weak); color: var(--accent-ink); font-size: 17px; }
.howrow b { font-size: 14.5px; display: block; }
.howrow p { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.kbd-list { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.kbd-list .row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
kbd { font-family: var(--sans); font-weight: 700; font-size: 11.5px; min-width: 22px; text-align: center; padding: 3px 7px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 1.5px 0 var(--line-2); color: var(--ink); }

/* CreatorStack · viewer page — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   VIEWER
   ============================================================ */
.viewer { padding-bottom: 76px; }
.hero {
  position: relative; margin-top: 22px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh);
}
.hero__art { position: absolute; inset: 0; z-index: 0; opacity: 0.16; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--surface) 30%, transparent 75%); }
[data-theme="dark"] .hero__art { opacity: 0.3; }
.hero__inner { position: relative; z-index: 1; padding: clamp(26px, 4vw, 50px); display: grid; gap: 20px; max-width: 760px; }
.hero__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__title { font-size: clamp(32px, 5.6vw, 58px); line-height: 1.02; margin: 0; letter-spacing: -0.03em; font-weight: 800; }
.hero__title em { font-style: normal; color: var(--accent-ink); }
.hero__sub { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 17px); max-width: 58ch; margin: 0; line-height: 1.6; }
.hero__sub i { color: var(--ink); font-style: italic; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__streamer { display: flex; align-items: center; gap: 12px; }
.hero__streamer .avatar { width: 46px; height: 46px; font-size: 17px; }
.hero__streamer .who b { display: block; font-size: 15px; }
.hero__streamer .who b span { color: var(--accent-ink); }
.hero__streamer .who small { font-size: 12.5px; color: var(--ink-2); }

.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--sh-sm); }
.stat .n { font-family: var(--grotesk); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; }
.stat .n small { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.stat .l { font-size: 12px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 5px; }

.block { margin-top: 50px; }
.topicbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 30px 0 4px; }
.topicbar .lead { display: flex; flex-direction: column; margin-right: 6px; }
.topicbar .lead .eyebrow { margin-bottom: 1px; }
.topicbar .lead small { font-size: 11.5px; color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 10px;
  font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--ink-2); box-shadow: var(--sh-sm); transition: 0.15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-3); transform: translateY(-1px); }
.chip .ct { font-size: 11px; color: var(--ink-3); background: var(--surface-3); padding: 1px 7px; border-radius: 99px; }
.chip.is-active { color: #fff; border-color: transparent; background: var(--accent); box-shadow: 0 8px 18px -8px rgba(14, 124, 140, 0.55); }
.chip.is-active .ct { background: rgba(255, 255, 255, 0.24); color: #fff; }

.vsearch { display: flex; gap: 12px; align-items: center; margin: 20px 0 4px; flex-wrap: wrap; }
.searchbox { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--sh-sm); }
.searchbox:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.searchbox input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font-size: 14.5px; }
.searchbox input::placeholder { color: var(--ink-3); }
.searchbox .ic { color: var(--ink-3); display: grid; place-items: center; }
.searchbox .clear { color: var(--ink-3); font-size: 16px; padding: 2px; border-radius: 6px; }
.searchbox .clear:hover { color: var(--ink); background: var(--surface-3); }
.suggest { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.suggest .lbl { font-size: 12px; color: var(--ink-3); }
.suggest .tag { font-size: 12px; color: var(--ink-2); padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); transition: 0.15s; }
.suggest .tag:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-weak); }

.grid { display: grid; gap: 16px; }
.grid--vods { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); transition: 0.18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }
.thumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .thumb__img { transform: scale(1.04); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.34)); }
.thumb__glyph { font-family: var(--grotesk); font-weight: 700; font-size: 40px; color: rgba(255, 255, 255, 0.95); z-index: 1; letter-spacing: 0.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3); }
.thumb__dur { position: absolute; right: 9px; bottom: 9px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.62); color: #fff; }
.thumb__type { position: absolute; left: 9px; top: 9px; z-index: 2; }
.thumb__play { position: absolute; z-index: 2; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.95); box-shadow: var(--sh); opacity: 0; transform: scale(0.85); transition: 0.2s; }
.card:hover .thumb__play { opacity: 1; transform: scale(1); }
.thumb__play svg { margin-left: 3px; fill: var(--accent); }
.card__body { padding: 13px 15px 15px; }
.card__title { font-weight: 650; font-size: 14.5px; line-height: 1.34; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.card__meta .sep { opacity: 0.5; }
.card__tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mintag { font-size: 11px; color: var(--ink-2); padding: 3px 8px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--line); }
.empty { text-align: center; padding: 46px 20px; color: var(--ink-2); border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--surface-2); }
.empty b { color: var(--accent-ink); }

.reel { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.reel .card { min-width: 312px; scroll-snap-align: start; }
.reel .thumb { aspect-ratio: 16 / 10; }

.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mate { display: flex; align-items: center; gap: 11px; padding: 13px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); transition: 0.15s; text-align: left; }
.mate:hover { border-color: var(--line-2); transform: translateY(-2px); }
.mate .avatar { width: 40px; height: 40px; font-size: 14px; flex-shrink: 0; }
.mate b { font-size: 14px; display: block; }
.mate span { font-size: 12px; color: var(--ink-3); }

.sponsor {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: center;
  border-radius: var(--r-lg); padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm);
}
.sponsor .eyebrow { color: var(--warn); }
.sponsor h3 { font-size: clamp(21px, 3vw, 30px); margin: 10px 0 8px; letter-spacing: -0.02em; }
.sponsor p { color: var(--ink-2); margin: 0 0 18px; line-height: 1.55; }
.codebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code { font-family: var(--grotesk); font-weight: 700; font-size: 19px; letter-spacing: 0.12em; padding: 11px 17px; border-radius: 11px; border: 1px dashed color-mix(in srgb, var(--warn) 50%, var(--line-2)); background: var(--warn-weak); color: var(--warn); }
.sponsor__art { aspect-ratio: 1.4; border-radius: var(--r); display: grid; place-items: center; }
.sponsor__art span { font-family: var(--grotesk); font-weight: 700; font-size: clamp(30px, 5vw, 52px); color: rgba(255, 255, 255, 0.95); }

.vfooter { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }
.vfooter .built { display: inline-flex; align-items: center; gap: 6px; }
.vfooter .built b { color: var(--accent-ink); }

/* CreatorStack · studio + responsive — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   STUDIO
   ============================================================ */
.studio { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 64px); }
.sidebar { border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; background: var(--surface-2); }
.sidebar .who { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-sm); margin-bottom: 18px; }
.sidebar .who .avatar { width: 38px; height: 38px; font-size: 14px; }
.sidebar .who b { font-size: 13.5px; display: block; }
.sidebar .who span { font-size: 11px; color: var(--ink-3); }
.navgroup { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin: 16px 8px 7px; }
.navitem { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: 0.14s; text-align: left; }
.navitem:hover { background: var(--surface-3); color: var(--ink); }
.navitem.is-active { background: var(--accent-weak); color: var(--accent-ink); }
.navitem .ic { width: 18px; height: 18px; display: grid; place-items: center; opacity: 0.9; }
.navitem .ic svg { display: block; }
.navitem.is-active .ic { opacity: 1; }
.navitem .badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line); color: var(--ink-2); }
.navitem.is-active .badge { background: var(--surface); border-color: var(--accent-line); color: var(--accent-ink); }
.navitem .badge--pink { background: var(--danger-weak); border-color: transparent; color: var(--danger); }

.studio__main { padding: 28px 32px 78px; max-width: 1080px; }
.studio__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.studio__head h1 { font-size: 25px; margin: 0 0 4px; letter-spacing: -0.02em; font-weight: 800; }
.studio__head p { margin: 0; color: var(--ink-2); font-size: 13.5px; max-width: 64ch; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpi { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); position: relative; }
.kpi .ic { color: var(--accent); display: flex; }
.kpi .ic svg { display: block; }
.kpi .n { font-family: var(--grotesk); font-size: 27px; font-weight: 700; margin-top: 7px; letter-spacing: -0.02em; }
.kpi .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.kpi .trend { position: absolute; top: 15px; right: 15px; font-size: 11px; font-weight: 700; color: var(--ok); background: var(--ok-weak); padding: 2px 7px; border-radius: 99px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm); }
.panel + .panel { margin-top: 18px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.panel__head h3 { margin: 0; font-size: 15.5px; letter-spacing: -0.01em; }
.panel__head .sub { font-size: 12px; color: var(--ink-3); }
.panel__head .actions { display: flex; gap: 8px; align-items: center; }
.panel__caption { padding: 13px 18px; font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); display: flex; gap: 9px; align-items: flex-start; line-height: 1.5; }
.panel__caption .ic { color: var(--accent-ink); flex-shrink: 0; margin-top: 1px; display: flex; }
.panel__body { padding: 8px; }

.toolbar { display: flex; gap: 10px; padding: 13px 13px 5px; flex-wrap: wrap; align-items: center; }
.toolbar .searchbox { flex: 1; min-width: 210px; padding: 9px 13px; }
.filterchips { display: flex; gap: 6px; flex-wrap: wrap; }
.fchip { font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: 0.14s; }
.fchip:hover { color: var(--ink); border-color: var(--ink-3); }
.fchip.is-active { background: var(--accent-weak); border-color: var(--accent-line); color: var(--accent-ink); }
.selectbox { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.selectbox select { font-size: 12.5px; font-weight: 600; color: var(--ink); padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }

.lib__row { display: grid; grid-template-columns: 1fr 132px 86px 92px 122px; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 11px; transition: 0.12s; }
.lib__row:hover { background: var(--surface-2); }
.lib__row + .lib__row { border-top: 1px solid var(--line); }
.lib__head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 6px 14px 9px; }
.lib__head:hover { background: none; }
.lib__title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lib__thumb { width: 52px; height: 31px; border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--grotesk); font-weight: 700; font-size: 12px; color: rgba(255, 255, 255, 0.95); }
.lib__name { min-width: 0; }
.lib__name b { display: block; font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib__name span { font-size: 11.5px; color: var(--ink-3); }
.lib__cell { font-size: 13px; color: var(--ink-2); }

.result { padding: 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); margin: 10px; transition: 0.18s; }
.result.is-approved { border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: var(--ok-weak); }
.result.is-rejected { opacity: 0.52; }
.result__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; flex-wrap: wrap; }
.result__top .ts { display: inline-flex; align-items: center; gap: 5px; font-family: var(--grotesk); font-weight: 700; font-size: 12.5px; color: var(--accent-ink); padding: 3px 8px; border-radius: 7px; background: var(--accent-weak); }
.result__top .src { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.result__top .score { margin-left: auto; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.result__quote { font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0 0 13px; }
.result__quote mark { background: var(--warn-weak); color: var(--warn); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.result__actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.vote { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); transition: 0.14s; color: var(--ink-2); }
.vote--yes:hover, .vote--yes.is-on { background: var(--ok-weak); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.vote--no:hover, .vote--no.is-on { background: var(--danger-weak); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.result__actions .spacer { flex: 1; }
.result__actions .seg { font-size: 11.5px; color: var(--ink-3); }

.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; padding: 13px; }
.topiccard { padding: 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); transition: 0.15s; }
.topiccard:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--surface); }
.topiccard .name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.topiccard .meta { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.topiccard .bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 11px; overflow: hidden; }
.topiccard .bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

.builder { padding: 15px; }
.builder__row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.builder__row > label { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.selectpill { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.progress-pub { height: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin: 9px 0 5px; }
.progress-pub > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width 0.7s cubic-bezier(0.2, 0.9, 0.3, 1); }
.pub-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }

.ingest { padding: 6px 16px 12px; }
.ingest__item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.ingest__item:first-child { border-top: none; }
.ingest__item .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ingest__item .st { font-size: 12px; color: var(--ink-3); justify-self: end; }
.ingest__item .st--done { color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.ingest__bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ingest__bar > i { display: block; height: 100%; background: var(--accent); }
.ingest__bar > i.done { background: var(--ok); }

.actlog { padding: 4px 16px 14px; }
.actlog .row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.actlog .row:first-child { border-top: none; }
.actlog .row .ai { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); }
.actlog .row .ai svg { display: block; }
.actlog .row b { color: var(--ink); }
.actlog .row time { color: var(--ink-3); font-size: 12px; }

/* toasts */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 400; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 12px; min-width: 280px; max-width: 360px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-lg); animation: toastIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.toast .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); flex-shrink: 0; }
.toast.ok .ic { background: var(--ok-weak); color: var(--ok); }
.toast.info .ic { background: var(--warn-weak); color: var(--warn); }
.toast b { font-size: 13.5px; }
.toast span { font-size: 12px; color: var(--ink-2); display: block; }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(0.97); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
.fade-in { animation: fadeIn 0.35s ease both; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 960px) {
  .grid--vods { grid-template-columns: repeat(2, 1fr); }
  .statbar, .kpis { grid-template-columns: repeat(2, 1fr); }
  .sponsor { grid-template-columns: 1fr; }
  .sponsor__art { display: none; }
  .studio { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; align-items: center; padding: 12px; }
  .sidebar .who, .navgroup { display: none; }
  .sidebar .navitem { width: auto; white-space: nowrap; }
  .lib__row { grid-template-columns: 1fr auto; }
  .lib__row .hide-sm { display: none; }
  .lib__head { display: none; }
  .brand__tag { display: none; }
}
@media (max-width: 600px) {
  .grid--vods { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .studio__main { padding: 20px 15px 60px; }
  .appbar__inner { gap: 8px; }
}

/* ============================================================
   PAGE EDITOR
   ============================================================ */
.studio__head--sub { margin-top: 26px; }
.studio__head--sub h2 { font-size: 19px; margin: 0; }
.studio__head--sub p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ed-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ed-field--wide { grid-column: 1 / -1; }
.ed-field input[type="text"], .ed-field textarea {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; width: 100%;
}
.ed-field textarea { resize: vertical; line-height: 1.5; }
.ed-field input:focus, .ed-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.ed-field--color { flex-direction: row; align-items: center; justify-content: space-between; }
.ed-field input[type="color"] { width: 46px; height: 32px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.ed-color { display: flex; align-items: center; gap: 8px; }
.ed-color input[type="text"] { font-variant-numeric: tabular-nums; max-width: 120px; }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.ed-hint { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ed-sub { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.ed-sub__h { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.ed-topic .panel__head h3 { display: flex; align-items: center; gap: 8px; }
.ed-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.ed-danger:hover { background: var(--danger-weak); }
.ed-add { border-style: dashed; }

/* crew editor — removable alias / mistranscription chips + add row */
.crew-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.crew-chip--empty { color: var(--ink-3); font-weight: 500; padding: 5px 11px; border-style: dashed; background: none; }
.crew-chip__x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 99px; font-size: 11px; line-height: 1; color: var(--ink-3); background: var(--surface-3); transition: 0.12s; }
.crew-chip__x:hover { background: var(--danger-weak); color: var(--danger); }
.crew-addrow { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.crew-addrow input[type="text"], .crew-addrow select { flex: 1; min-width: 160px; font-size: 13px; color: var(--ink); padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); }
.crew-addrow input:focus, .crew-addrow select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
@media (max-width: 700px) { .ed-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TOPIC PAGES (one editable landing page per stream)
   ============================================================ */
.pg__row { display: grid; grid-template-columns: 1fr 132px 132px 104px; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 11px; transition: 0.12s; }
.pg__row:not(.pg__head):hover { background: var(--surface-2); }
.pg__row + .pg__row { border-top: 1px solid var(--line); }
.pg__head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); padding: 6px 14px 9px; }
.pg__head:hover { background: none; }
.pg__thumb { position: relative; overflow: hidden; }
.pg__act { display: flex; justify-content: flex-end; }

.pg-crumb { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 10px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.pg-crumb svg { transform: rotate(90deg); }
.pg-crumb:hover { color: var(--accent-ink); }
.pg-status .panel__head h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pg-status.is-draft { border-color: color-mix(in srgb, var(--warn) 38%, var(--line)); }
.pg-status.is-draft .panel__head { background: var(--warn-weak); border-top-left-radius: var(--r); border-top-right-radius: var(--r); }

/* AI-proposals / drafts-to-review panel (Landing pages list + Overview) */
.pg-proposals { border-color: color-mix(in srgb, var(--warn) 38%, var(--line)); }
.pg-proposals .panel__head { background: var(--warn-weak); border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.pg-proposals .panel__head h3 { display: flex; align-items: center; gap: 9px; }
.pg-filter { margin: 0 0 16px; }
/* draft rows in the Overview transcription queue → reviewable */
.ingest__item.is-draft { cursor: pointer; border-radius: 8px; }
.ingest__item.is-draft:hover { background: var(--surface-2); }
.ingest__item .st--draft { color: var(--warn); display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }

.pg-hint { font-weight: 500; color: var(--ink-3); }
.pg-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 2px; }
.pg-prev { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; border: 2px solid var(--line-2); background: var(--surface-3); cursor: pointer; transition: 0.14s; }
.pg-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-prev:hover { border-color: var(--ink-3); }
.pg-prev.is-on { border-color: var(--accent); box-shadow: var(--ring); }
.pg-prev__chk { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--accent); color: #fff; box-shadow: var(--sh-sm); }

.pg-quote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--ink); max-width: 60ch; }
.pg-ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.pg-ai-grid .panel + .panel { margin-top: 0; }

/* "upload your own" tile in the preview picker grid */
.pg-prev--upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-style: dashed; color: var(--ink-2); font-size: 12px; font-weight: 650; background: var(--surface-2); }
.pg-prev--upload:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-weak); }

/* content footer — "auto-saved" note + Reset, replaces the Save button */
.ed-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.ed-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.ed-saved svg { color: var(--ok, var(--accent)); }

/* editable chapters */
.pg-chaps { display: flex; flex-direction: column; gap: 8px; }
.pg-chap { display: grid; grid-template-columns: 96px 1fr auto; gap: 8px; align-items: start; }
.pg-chap__ts { text-align: center; }
.pg-chap__titles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.pg-chap input { width: 100%; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.pg-chap input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.pg-chap__del { align-self: stretch; width: 34px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-3); cursor: pointer; transition: 0.14s; }
.pg-chap__del:hover { border-color: var(--danger, #d3455b); color: var(--danger, #d3455b); background: color-mix(in srgb, var(--danger, #d3455b) 10%, transparent); }

/* preview lightbox — almost-full-screen frame browser */
.pglb-overlay { z-index: 260; }
.pglb { position: relative; width: min(1200px, 96vw); max-height: 92vh; display: flex; flex-direction: column; gap: 14px; background: none; border: 0; box-shadow: none; animation: pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.1); }
.pglb__top { display: flex; align-items: center; justify-content: space-between; }
.pglb__count { font-size: 13px; font-weight: 650; color: rgba(255, 255, 255, 0.92); letter-spacing: 0.02em; }
.pglb__close { width: 38px; height: 38px; border-radius: 99px; display: grid; place-items: center; font-size: 17px; color: #fff; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); cursor: pointer; transition: 0.14s; }
.pglb__close:hover { background: rgba(255, 255, 255, 0.26); }
.pglb__main { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 14px; }
.pglb__stage { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: center; justify-content: center; }
.pglb__img { max-width: 100%; max-height: 76vh; border-radius: 12px; box-shadow: var(--sh-lg); background: var(--surface-3); display: block; object-fit: contain; }
.pglb__nav { flex: 0 0 auto; width: 50px; height: 50px; border-radius: 99px; display: grid; place-items: center; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh); cursor: pointer; transition: 0.14s; }
.pglb__nav:hover:not(:disabled) { background: var(--surface-2); transform: scale(1.07); }
.pglb__nav:disabled { opacity: 0.35; cursor: default; }
.pglb__nav--prev svg { transform: rotate(90deg); }
.pglb__nav--next svg { transform: rotate(-90deg); }
.pglb__bar { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pglb__bar .btn--primary.is-chosen { opacity: 0.7; }

@media (max-width: 760px) {
  .pg__row { grid-template-columns: 1fr auto; }
  .pg__row .hide-sm { display: none; }
  .pg__head { display: none; }
  .pg-ai-grid { grid-template-columns: 1fr; }
  .pg-chap { grid-template-columns: 78px 1fr auto; }
  .pg-chap__titles { grid-template-columns: 1fr; }
  .pglb__img { max-height: 64vh; }
  .pglb__nav { width: 42px; height: 42px; }
}

/* ============================================================
   SETTINGS (profile photo + account)
   ============================================================ */
.set-photo { display: flex; align-items: center; gap: 20px; }
.set-avatar { width: 92px; height: 92px; border-radius: 24px; font-size: 30px; flex: none; box-shadow: var(--sh-sm); }
.set-photo__side { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.set-photo__side .ed-hint { margin-top: 8px; }
.set-file { display: none; }
@media (max-width: 700px) { .set-photo { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   AUDIENCE (private — real chat nicknames, streamer-only)
   ============================================================ */
/* "only you can see this" banner above the audience stats */
.privnote {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 18px; padding: 12px 15px; border-radius: var(--r-sm);
  font-size: 13px; line-height: 1.5; color: var(--ink-2);
  background: var(--accent-weak); border: 1px solid var(--accent-line);
}
.privnote svg { flex: none; margin-top: 1px; color: var(--accent-ink); }
.privnote b { color: var(--ink); font-weight: 700; }

/* cross-stream top-chatter leaderboard (richer than the per-VOD .lboard) */
.audboard { display: grid; gap: 4px; }
.audrow {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px 64px 18px;
  gap: 13px; align-items: center; width: 100%; text-align: left;
  font: inherit; color: inherit; background: none; border: 0;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: background 0.14s ease;
}
.audrow:hover { background: var(--surface-2); }
.audrow:hover .audrow__name { color: var(--accent); }
.audrow__rank { font-family: var(--grotesk); font-weight: 700; font-size: 13px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.audrow__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.audrow__txt { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.audrow__name { font-weight: 700; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audrow__sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audrow__bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.audrow__bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.audrow__num { text-align: right; display: flex; flex-direction: column; line-height: 1.15; }
.audrow__num b { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14.5px; color: var(--ink); }
.audrow__num span { font-size: 10.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.03em; }
.audrow__go { color: var(--ink-3); display: flex; opacity: 0; transition: opacity 0.14s ease; }
.audrow:hover .audrow__go { opacity: 1; color: var(--accent); }

/* most-repeated chat lines */
.popmsgs { display: grid; gap: 2px; }
.popmsg { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 9px; }
.popmsg:hover { background: var(--surface-2); }
.popmsg__t { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.popmsg__n { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12px; color: var(--accent-ink); background: var(--accent-weak); border-radius: 99px; padding: 3px 9px; white-space: nowrap; }

/* audience chatter panel — reuses .cmodal but each line shows its source stream
   and the timestamp is informational (no single-VOD context to jump into) */
.cmodal__statline { padding: 0 24px 4px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cmsg__ts--static { cursor: default; color: var(--ink-3); }
.cmsg__main { min-width: 0; }
.cmsg__src { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.cmsg__src svg { opacity: 0.7; flex: none; }

@media (max-width: 640px) {
  .audrow { grid-template-columns: 20px minmax(0, 1fr) 56px 18px; gap: 10px; }
  .audrow__bar { display: none; }
}

/* CreatorStack · per-stream recap page — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   PER-STREAM RECAP PAGE
   ============================================================ */
.vod { padding-top: 18px; }
.vodback { margin: 6px 0 14px; }
.vodhero { position: relative; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh); overflow: hidden; }
.vodhero__art { position: absolute; inset: 0; opacity: 0.1; }
[data-theme="dark"] .vodhero__art { opacity: 0.22; }
.vodhero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, var(--surface) 35%, transparent 80%); }
.vodhero__in { position: relative; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 16px; max-width: 760px; }
.vodhero__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vodhero__title { font-size: clamp(24px, 3.6vw, 38px); margin: 0; letter-spacing: -0.02em; font-weight: 800; line-height: 1.1; }
.vodhero__sub { display: flex; gap: 9px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; align-items: center; }
.vodhero__sub > span { display: inline-flex; align-items: center; gap: 6px; }
.vodhero__sub svg { color: var(--ink-3); }
.vodhero__sub .sep { opacity: 0.45; }
.vodhero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.pullquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 4px 0; font-size: clamp(17px, 2.1vw, 22px); font-weight: 650; letter-spacing: -0.01em; line-height: 1.4; max-width: 48ch; }
.pullquote cite { display: block; margin-top: 9px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-style: normal; }
.pullquote .ts-link { color: var(--accent-ink); cursor: pointer; }
.pullquote .ts-link:hover { text-decoration: underline; }

.ts-btn { font-family: var(--grotesk); font-weight: 700; font-size: 12px; color: var(--accent-ink); background: var(--accent-weak); padding: 5px 9px; border-radius: 8px; cursor: pointer; white-space: nowrap; height: fit-content; }
.ts-btn:hover { filter: brightness(0.97); }

.modgrid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; margin-top: 20px; align-items: start; }
.modcol { display: grid; gap: 18px; }
.mod__body { padding: 14px 16px 16px; }
.summary-text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink); }

.chap { display: grid; grid-template-columns: 70px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.chap:first-child { border-top: none; }
.chap__time { font-family: var(--grotesk); font-weight: 700; font-size: 12.5px; color: var(--accent-ink); background: var(--accent-weak); padding: 5px 0; border-radius: 8px; cursor: pointer; text-align: center; }
.chap__time:hover { filter: brightness(0.97); }
.chap__main b { font-size: 14px; }
.chap__bar { height: 5px; border-radius: 99px; background: var(--surface-3); margin-top: 7px; overflow: hidden; }
.chap__bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }

.fmoment { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.fmoment:first-child { border-top: none; }
.fmoment .q { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.fmoment .q::before { content: "“"; color: var(--ink-3); }
.fmoment .q::after { content: "”"; color: var(--ink-3); }

.numgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.numbox { padding: 12px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.numbox .v { font-family: var(--grotesk); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.numbox .k { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

.energy svg { width: 100%; height: 74px; display: block; border-radius: 8px; }
.energy .cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 7px; text-transform: uppercase; letter-spacing: 0.08em; }

/* CreatorStack · per-stream interactive timeline — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   per-stream interactive timeline
   ============================================================ */
.tl-panel { margin-bottom: 18px; }
.tl-head { flex-wrap: wrap; }
.tl-zoom { display: flex; align-items: center; gap: 6px; }
.tl-zb { width: 30px; height: 30px; border-radius: 9px; font-size: 18px; line-height: 1; font-weight: 500; }
.tl-zb--reset { font-size: 14px; }
.tl-zoom__lvl { min-width: 42px; text-align: center; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); }

.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.tl-leg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.tl-leg i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.tl-leg--activity i { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.tl-leg--emotes i { background: var(--tl-emote); }
.tl-leg--peak i { background: var(--accent); border-radius: 99px; }
.tl-leg--reaction i { background: color-mix(in srgb, var(--accent) 70%, #fff); border-radius: 99px; }
.tl-leg--chapter i { background: var(--ink-3); }
.tl-leg--sponsor i { background: var(--warn); border-radius: 99px; }

.tl-scroll { overflow-x: auto; overflow-y: hidden; padding: 26px 0 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; cursor: grab; }
.tl-scroll.is-grabbing { cursor: grabbing; user-select: none; }
.tl-scroll::-webkit-scrollbar { height: 9px; }
.tl-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.svt-track { position: relative; width: calc(100% * var(--tl-zoom, 1)); min-width: 100%; height: 176px; }

.tl-graph { position: absolute; inset: 0 0 26px 0; background: var(--surface-3); border-radius: 8px; overflow: hidden; }
.tl-graph__svg { width: 100%; height: 100%; display: block; }
.tl-area { fill: var(--accent); opacity: 0.13; }
.tl-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tl-line--emote { stroke: var(--tl-emote); stroke-width: 1.8; stroke-dasharray: 4 2.5; opacity: 0.9; }
.tl-peakline { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: 0.55; vector-effect: non-scaling-stroke; }

.tl-ruler { position: absolute; left: 0; right: 0; bottom: 0; height: 22px; }
.svt-tick { position: absolute; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.svt-tick i { width: 1px; height: 6px; background: var(--line-2); }
.svt-tick span { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.svt-tick:first-child { transform: none; align-items: flex-start; }
.svt-tick:last-child { transform: translateX(-100%); align-items: flex-end; }

.tl-markers { position: absolute; inset: 0 0 26px 0; }
.tl-mk { position: absolute; bottom: 0; top: 0; width: 0; padding: 0; border: 0; background: none; cursor: pointer; z-index: 1; }
.tl-mk:hover, .tl-mk:focus-visible { z-index: 5; outline: none; }
.tl-mk__stem { position: absolute; left: -1px; top: 6px; bottom: 0; width: 2px; border-radius: 2px; background: currentColor; opacity: 0.45; }
.tl-mk__dot { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: currentColor; box-shadow: var(--sh-sm); transition: transform 0.14s ease; }
.tl-mk__dot svg { display: block; color: #fff; }
.tl-mk:hover .tl-mk__dot, .tl-mk:focus-visible .tl-mk__dot { transform: translateX(-50%) scale(1.18); }
.tl-mk--peak { color: var(--accent); }
.tl-mk--reaction { color: color-mix(in srgb, var(--accent) 70%, #4caa7a); }
.tl-mk--chapter { color: var(--ink-2); }
.tl-mk--sponsor { color: var(--warn); }

.tl-mk__pop { position: absolute; top: 22px; left: 50%; transform: translateX(-50%) translateY(-4px); width: 230px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--sh); padding: 10px 12px; text-align: left; opacity: 0; pointer-events: none; transition: opacity 0.14s ease, transform 0.14s ease; z-index: 6; }
.tl-mk--start .tl-mk__pop { left: -10px; right: auto; transform: translateX(0) translateY(-4px); }
.tl-mk--end .tl-mk__pop { left: auto; right: -10px; transform: translateX(0) translateY(-4px); }
.tl-mk:hover .tl-mk__pop, .tl-mk:focus-visible .tl-mk__pop { opacity: 1; transform: translateX(-50%) translateY(0); }
.tl-mk--start:hover .tl-mk__pop, .tl-mk--start:focus-visible .tl-mk__pop, .tl-mk--end:hover .tl-mk__pop, .tl-mk--end:focus-visible .tl-mk__pop { transform: translateX(0) translateY(0); }
.tl-mk__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-mk__head b { font-size: 12.5px; color: var(--ink); }
.tl-mk__ts { font-size: 11px; color: var(--accent-ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.tl-mk__mpm { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11px; color: var(--ink-3); }
.tl-mk__mpm svg { color: var(--ink-3); }
.tl-mk__q { margin: 6px 0 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.tl-hint { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); }
.tl-hint svg { color: var(--ink-3); flex: none; }

.catchbars { display: grid; gap: 10px; }
.cbar { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; }
.cbar .w { font-weight: 600; font-size: 13px; }
.cbar .track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.cbar .track > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.cbar .n { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 700; font-size: 12.5px; }

.crewmini { display: grid; gap: 8px; }
.crewmini .mate { padding: 9px 10px; box-shadow: none; }
.crewmini .mate .avatar { width: 34px; height: 34px; font-size: 12px; }
.muted-note { margin: 0; font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .modgrid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .numgrid { grid-template-columns: repeat(2, 1fr); }
  .chap { grid-template-columns: 62px 1fr; }
}

/* CreatorStack · live semantic search — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   LIVE SEMANTIC SEARCH  — search hero, stream cards, timelines
   ============================================================ */
.search-hero {
  position: relative;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 55%),
    radial-gradient(130% 160% at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 22px 22px 20px;
  margin-bottom: 18px;
  overflow: hidden;
}
.search-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 0);
  background-size: 22px 22px; opacity: 0.5; mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.search-hero > * { position: relative; }
.search-hero__stats {
  font: 600 12px/1 var(--grotesk); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.search-hero__stats::before {
  content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); animation: blip 2s infinite;
}
.bigsearch {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 16px;
  padding: 8px 8px 8px 16px; box-shadow: var(--sh-sm);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.bigsearch:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.bigsearch__ic { color: var(--ink-3); display: grid; place-items: center; flex: none; }
.bigsearch:focus-within .bigsearch__ic { color: var(--accent); }
.bigsearch input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--ink); font-size: 17px; font-weight: 500; padding: 8px 0;
}
.bigsearch input::placeholder { color: var(--ink-3); font-weight: 400; }
.bigsearch__clear { color: var(--ink-3); font-size: 15px; padding: 6px 8px; border-radius: 8px; flex: none; }
.bigsearch__clear:hover { color: var(--ink); background: var(--surface-3); }
.bigsearch__go {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 11px; box-shadow: 0 8px 20px -8px rgba(14,124,140,0.55);
  transition: filter 0.16s, transform 0.16s;
}
.bigsearch__go:hover { filter: brightness(1.07); transform: translateY(-1px); }
.bigsearch__go:active { transform: translateY(0); }

.sg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sg-chips--top { margin-top: 14px; }
.sg-chip {
  font: 600 12.5px/1 var(--sans); padding: 8px 13px; border-radius: 99px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2);
  transition: 0.15s; white-space: nowrap;
}
.sg-chip:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-weak); transform: translateY(-1px); }

/* results summary */
.search-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 4px 14px; color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  animation: fade-in 0.3s ease both;
}
.search-took { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.search-took svg { opacity: 0.7; }

/* loading */
.search-status {
  display: flex; align-items: center; gap: 11px; padding: 4px 4px 16px;
  color: var(--ink-2); font-size: 14px; font-weight: 600;
}
.search-spin {
  width: 17px; height: 17px; border-radius: 99px; flex: none;
  border: 2.4px solid var(--accent-line); border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
}
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-bottom: 12px; animation: fade-in 0.4s ease both; }
.sk-row { display: flex; align-items: center; gap: 12px; }
.sk-dot { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.sk-lines { flex: 1; display: grid; gap: 7px; }
.sk-badge { width: 52px; height: 26px; border-radius: 8px; flex: none; }
.sk-track { height: 44px; border-radius: 10px; margin-top: 16px; }
.sk-line { height: 11px; border-radius: 6px; }
.sk-line.w35 { width: 35%; } .sk-line.w60 { width: 60%; } .sk-line.w80 { width: 80%; }
.sk-dot, .sk-badge, .sk-track, .sk-line {
  background: linear-gradient(100deg, var(--surface-3) 30%, color-mix(in srgb, var(--ink) 7%, var(--surface-3)) 50%, var(--surface-3) 70%);
  background-size: 220% 100%; animation: shimmer 1.25s ease-in-out infinite;
}

/* stream result cards */
.sresults { display: grid; gap: 13px; }
.sresult {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--sh-sm);
  /* Not clipped: marker tooltips (.stip) overflow the card top and must show. */
  overflow: visible;
  padding: 16px 18px 16px 20px;
  animation: sresult-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
/* Lift the hovered card so its overflowing tooltip paints above sibling cards. */
.sresult:hover { box-shadow: var(--sh); border-color: var(--line-2); transform: translateY(-2px); z-index: 4; }
.sresult__spine {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  /* Round the left corners ourselves — the card no longer clips them. */
  border-radius: var(--r) 0 0 var(--r);
  background: linear-gradient(180deg, var(--g), color-mix(in srgb, var(--g) 45%, transparent));
}
.sresult__head { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; }
.sresult__gg {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px;
  background: color-mix(in srgb, var(--g) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--g) 26%, transparent);
}
.sresult__gg svg { width: 19px; height: 19px; }
.sresult__titlewrap { flex: 1; min-width: 0; }
.sresult__title { display: block; font: 700 16px/1.25 var(--grotesk); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sresult__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 500; }
.smeta-dot { width: 3px; height: 3px; border-radius: 99px; background: currentColor; opacity: 0.6; }
.sresult__right { display: flex; align-items: center; gap: 10px; flex: none; }
.match-pill {
  font: 600 11.5px/1 var(--sans); color: var(--ink-2); background: var(--surface-3);
  border: 1px solid var(--line-2); padding: 6px 9px; border-radius: 99px; white-space: nowrap;
}
.score-badge {
  font: 800 13px/1 var(--grotesk); padding: 7px 10px; border-radius: 10px; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--g) 75%, var(--ink));
  background: color-mix(in srgb, var(--g) calc(8% + var(--r) * 14%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--g) calc(20% + var(--r) * 30%), transparent);
}
.sresult__chev { color: var(--ink-3); display: grid; place-items: center; transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
.sresult.is-open .sresult__chev { transform: rotate(90deg); color: var(--g); }

/* timeline */
.timeline { margin: 15px 2px 4px; }
.tl-track {
  position: relative; height: 46px; border-radius: 11px;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--line);
  overflow: visible;
}
.tl-track::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 14%, transparent) 0 2px, transparent 2px 7px);
  opacity: 0.5;
}
.tl-tick { position: absolute; top: 6px; bottom: 6px; width: 1px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.tl-marker {
  position: absolute; bottom: 8px; transform: translateX(-50%);
  width: 5px; height: calc(34% + var(--r) * 56%);
  border-radius: 99px; padding: 0; background: none;
  transform-origin: bottom center;
  animation: marker-grow 0.55s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: calc(140ms + var(--mi) * 45ms);
}
.tl-dot {
  display: block; width: 100%; height: 100%; border-radius: 99px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g) 92%, #fff), var(--g));
  opacity: calc(0.5 + var(--r) * 0.5);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--g) 60%, transparent);
  transition: box-shadow 0.18s, opacity 0.18s;
}
.tl-marker::after {
  content: ""; position: absolute; bottom: -3px; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 99px; background: var(--g);
  box-shadow: 0 0 0 2px var(--surface); opacity: calc(0.55 + var(--r) * 0.45);
}
.tl-marker:hover { height: 100%; z-index: 5; }
.tl-marker:hover .tl-dot { opacity: 1; box-shadow: 0 0 14px 1px color-mix(in srgb, var(--g) 65%, transparent); }
/* tooltip */
.stip {
  position: absolute; bottom: calc(100% + 11px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: 256px; max-width: 60vw; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--sh-lg);
  padding: 10px 12px; text-align: left; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity 0.16s, transform 0.16s; z-index: 20;
}
.stip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%) rotate(45deg) translateY(-4px);
  width: 9px; height: 9px; background: var(--surface); border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.tl-marker:hover .stip { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.stip__t { display: flex; align-items: center; gap: 5px; font: 700 11.5px/1 var(--grotesk); color: var(--g); margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.stip__q { display: block; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.tl-axis { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 2px; color: var(--ink-3); font: 500 10.5px/1 var(--grotesk); font-variant-numeric: tabular-nums; }

/* top match preview */
.sresult__top {
  display: flex; gap: 8px; margin: 10px 2px 0; padding-top: 12px;
  border-top: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; line-height: 1.5;
}
.sresult__quoteic { color: var(--g); flex: none; margin-top: 2px; opacity: 0.8; }

/* expanding detail */
.sresult__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s cubic-bezier(0.4,0,0.2,1); }
.sresult.is-open .sresult__detail { grid-template-rows: 1fr; }
.sresult__detailinner { overflow: hidden; min-height: 0; }
.sresult.is-open .sresult__detailinner { margin-top: 14px; }
.smatch {
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  padding: 12px 13px; margin-top: 9px; transition: border-color 0.18s, background 0.18s, opacity 0.18s;
}
.smatch:first-child { margin-top: 0; }
.smatch.is-kept { border-color: color-mix(in srgb, var(--ok) 42%, transparent); background: var(--ok-weak); }
.smatch.is-disc { opacity: 0.5; }
.smatch__head { display: flex; align-items: center; gap: 10px; }
.smatch__ts {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font: 700 12px/1 var(--grotesk); color: var(--g); font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--g) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--g) 24%, transparent);
  padding: 5px 9px; border-radius: 8px; transition: 0.15s;
}
.smatch__ts:hover { background: color-mix(in srgb, var(--g) 22%, var(--surface)); transform: translateY(-1px); }
.smatch__bar { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.smatch__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--g) 60%, transparent), var(--g)); }
.smatch__pc { font: 700 12px/1 var(--grotesk); color: var(--ink-2); flex: none; font-variant-numeric: tabular-nums; }
.smatch__chat { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-3); flex: none; }
.smatch__text { margin: 9px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.smatch__chatline { margin: 7px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.smatch__chatline svg { flex: none; margin-top: 2px; opacity: 0.7; }
.smatch__actions { display: flex; gap: 8px; margin-top: 11px; }
.svote {
  display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--sans);
  padding: 8px 13px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: 0.15s;
}
.svote--yes:hover, .svote--yes.is-on { background: var(--ok-weak); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.svote--no:hover, .svote--no.is-on { background: var(--danger-weak); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }

/* idle + error */
.search-idle { text-align: center; padding: 40px 20px 30px; color: var(--ink-2); }
.search-idle__glyph { color: var(--accent); opacity: 0.85; display: grid; place-items: center; margin-bottom: 6px; }
.search-idle__lead { font: 600 15px/1.4 var(--sans); color: var(--ink); margin: 6px 0 4px; }
.search-idle__hint { font-size: 13px; color: var(--ink-3); max-width: 460px; margin: 0 auto; }
.search-err { border-color: color-mix(in srgb, var(--warn) 40%, var(--line-2)); background: var(--warn-weak); }
.search-err__t { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--warn); }
.search-err__d { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

@keyframes sresult-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes marker-grow { from { transform: translateX(-50%) scaleY(0); opacity: 0; } to { transform: translateX(-50%) scaleY(1); opacity: 1; } }
@keyframes shimmer { from { background-position: 220% 0; } to { background-position: -120% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .sresult__right .match-pill { display: none; }
  .bigsearch__go span { display: none; }
  .stip { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .sresult, .tl-marker, .sk-card, .search-summary { animation: none !important; }
}

/* CreatorStack · chat & community stats — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   CHAT & COMMUNITY  — real stats pulled from the live chat logs
   (per-stream recap panels + archive-wide community band)
   ============================================================ */

/* peak-viewers badge on a VOD thumbnail */
.thumb__views {
  position: absolute; right: 9px; top: 9px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px;
  background: rgba(0, 0, 0, 0.62); color: #fff;
}
.thumb__views svg { opacity: 0.85; }

/* chat stat band — adapts from 6 down to 2 across */
.statbar--chat { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin-top: 18px; }
.statbar--chat .stat { padding: 14px 16px; }
.statbar--chat .stat .n { font-size: 23px; }

/* chat-reaction moment: timestamp + msgs/min badge above the quote */
.fmoment { display: block; padding: 13px 0; border-top: 1px solid var(--line); }
.fmoment:first-child { border-top: none; padding-top: 2px; }
.fmoment__top { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.mpmtag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--accent-ink);
  background: var(--accent-weak); border: 1px solid var(--accent-line);
  padding: 2px 7px; border-radius: 99px; font-variant-numeric: tabular-nums;
}

/* peak marker label under the activity chart */
.energy .cap .cap__peak {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent-ink); letter-spacing: 0; text-transform: none; font-weight: 700;
}

/* leaderboard — top chatters / community regulars */
.lboard { display: grid; gap: 9px; }
.lbrow { display: grid; grid-template-columns: 18px 28px 1fr 70px auto; gap: 10px; align-items: center; }
.lbrank { font-family: var(--grotesk); font-weight: 700; font-size: 13px; color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.lbav {
  width: 28px; height: 28px; border-radius: 8px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; letter-spacing: 0.01em;
}
.lbname { font-weight: 600; font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbtrack { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.lbtrack > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.lbn { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; color: var(--ink-2); text-align: right; min-width: 34px; }

/* clickable top-chatter rows open the per-chatter message panel */
button.lbrow--btn {
  grid-template-columns: 18px 28px 1fr 70px auto 18px;
  width: 100%; text-align: left; font: inherit; color: inherit;
  background: none; border: 0; padding: 5px 8px; margin: -5px -8px;
  border-radius: 9px; cursor: pointer; transition: background 0.14s ease;
}
button.lbrow--btn:hover { background: var(--surface-2); }
button.lbrow--btn:hover .lbname { color: var(--accent); }
.lbgo { color: var(--ink-3); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.14s ease; }
button.lbrow--btn:hover .lbgo { opacity: 1; color: var(--accent); }

/* per-chatter message panel */
.cmodal { width: min(560px, 100%); display: flex; flex-direction: column; }
.cmodal__id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cmodal__id .lbav { width: 38px; height: 38px; border-radius: 10px; font-size: 14px; flex-shrink: 0; }
.cmodal__id h2 { font-size: 17px; }
.cmodal__sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.cmodal__cap { color: var(--ink-3); }
.cmodal__body { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; padding-bottom: 14px; }
.cmsg { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 9px; }
.cmsg:hover { background: var(--surface-2); }
.cmsg__ts { font: inherit; font-family: var(--grotesk); font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 600; color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.cmsg__ts:hover { color: var(--accent); }
.cmsg__body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.cmsg-empty { color: var(--ink-3); font-size: 14px; padding: 8px; }
.cmodal__pager { position: sticky; bottom: 0; background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--line); }
.cmodal__pageinfo { font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* moment-context panel — speech + chat on one scrollable timeline */
.mmodal { width: min(620px, 100%); display: flex; flex-direction: column; }
.mmodal__id { min-width: 0; }
.mmodal__id h2 { font-size: 18px; font-variant-numeric: tabular-nums; }
.mmodal__sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmodal__bar { position: sticky; top: 65px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 24px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mmodal__legend { display: flex; gap: 16px; }
.mleg { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.mleg i { width: 11px; height: 11px; border-radius: 4px; flex-shrink: 0; }
.mleg--speech i { background: var(--accent); }
.mleg--chat i { background: color-mix(in srgb, var(--accent) 60%, #4caa7a); border-radius: 99px; }
.mmodal__vod { text-decoration: none; }
.mmodal__vod.is-disabled { opacity: 0.45; pointer-events: none; }
.mmodal__feed { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px 22px; max-height: 60vh; overflow-y: auto; scroll-behavior: smooth; }
.mrow { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 8px 10px; border-radius: 10px; align-items: start; }
.mrow__av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-family: var(--grotesk); font-weight: 700; font-size: 11px; color: #fff; flex-shrink: 0; }
.mrow__av--host { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.mrow__main { min-width: 0; }
.mrow__meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 1px; }
.mrow__name { font-size: 12.5px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow--speech .mrow__name { color: var(--accent-ink); }
.mrow__ts { font-family: var(--grotesk); font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600; color: var(--ink-3); background: none; border: 0; padding: 0; cursor: pointer; flex-shrink: 0; }
.mrow__ts:hover { color: var(--accent); }
.mrow__here { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-weak); padding: 1px 7px; border-radius: 99px; flex-shrink: 0; }
.mrow__body { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.mrow--speech .mrow__body { color: var(--ink); }
.mrow--focal { background: var(--accent-weak); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); scroll-margin: 120px; }
.mrow--focal .mrow__body { color: var(--ink); font-weight: 500; }

/* moment panel — transcript & chat as two synced, independently scrolling columns */
.mmodal--split { width: min(880px, 100%); }
.mmodal__panes { display: grid; grid-template-columns: 1fr 1fr; }
.mpane { display: flex; flex-direction: column; min-width: 0; }
.mpane + .mpane { border-left: 1px solid var(--line); }
.mpane__head { display: flex; align-items: center; gap: 7px; padding: 11px 18px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mpane--speech .mpane__head { color: var(--accent-ink); }
.mpane__feed { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 22px; height: 58vh; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .mmodal__panes { grid-template-columns: 1fr; }
  .mpane + .mpane { border-left: 0; border-top: 1px solid var(--line); }
  .mpane__feed { height: 38vh; }
}

/* emote chips */
.emotes { display: flex; flex-wrap: wrap; gap: 8px; }
.echip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 6px 5px 10px; border-radius: 99px;
  background: var(--surface-3); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.echip b { font-weight: 700; }
.echip--img { padding-left: 5px; }
.echip__img {
  width: 24px; height: 24px; flex: none; display: block; object-fit: contain;
}
.echip__n {
  font-variant-numeric: tabular-nums; font-size: 11.5px; font-weight: 700;
  color: var(--accent-ink); background: var(--accent-weak);
  border-radius: 99px; padding: 2px 7px;
}

/* community band: two side-by-side panels (regulars + emotes) */
.commgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.topcrown { display: inline-flex; vertical-align: -1px; color: var(--accent-ink); }
.topcrown svg { display: block; }

@media (max-width: 760px) {
  .commgrid { grid-template-columns: 1fr; }
  .lbrow { grid-template-columns: 16px 26px 1fr 54px auto; }
}

/* CreatorStack · auth — login, account chip — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   AUTH — login page, account chip, login button
   ============================================================ */
.account { position: relative; display: flex; align-items: center; }
.account__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 9px 5px 6px;
  border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface-2);
  transition: border-color 0.14s, background 0.14s;
}
.account__chip:hover { border-color: var(--ink-3); }
.account.is-open .account__chip { border-color: var(--accent); background: var(--surface); }
.account__av {
  width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; flex: none;
  font: 800 11px/1 var(--grotesk); color: #fff; overflow: hidden;
  background: linear-gradient(140deg, var(--accent), #1aa6b8);
}
.account__name { font: 600 13px/1 var(--sans); color: var(--ink); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__caret { display: grid; color: var(--ink-3); transition: transform 0.16s; }
.account.is-open .account__caret { transform: rotate(180deg); }
.loginchip { white-space: nowrap; }
@media (max-width: 720px) { .account__name { display: none; } }

/* account dropdown panel */
.account__panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 120; width: 246px;
  padding: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--sh); animation: menuPop 0.14s ease;
  transform-origin: top right;
}
@keyframes menuPop { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.account__head { display: flex; align-items: center; gap: 11px; padding: 8px 8px 9px; }
.account__av--lg { width: 38px; height: 38px; font-size: 14px; }
.account__id { min-width: 0; }
.account__id b { display: block; font: 700 14px/1.2 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__id span { display: block; font: 500 12px/1.3 var(--sans); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__sep { height: 1px; margin: 5px 0; background: var(--line); }
.menu-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px;
  border-radius: 9px; font: 600 13px/1 var(--sans); color: var(--ink); text-align: left;
  transition: background 0.13s, color 0.13s;
}
.menu-item svg { color: var(--ink-3); flex: none; transition: color 0.13s; }
.menu-item:hover { background: var(--surface-3); }
.menu-item--danger:hover { background: color-mix(in srgb, #e5484d 12%, transparent); color: #e5484d; }
.menu-item--danger:hover svg { color: #e5484d; }
.menu-sec { padding: 4px 8px 6px; }
.menu-sec__lbl { display: block; margin: 0 2px 6px; font: 700 11px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
/* segmented light/dark + language option rows */
.menu-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-pick {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid transparent; font: 600 13px/1 var(--sans); color: var(--ink-3); text-align: left;
  opacity: 0.7; transition: opacity 0.13s, background 0.13s, border-color 0.13s, color 0.13s;
}
.menu-pick svg { flex: none; }
.menu-pick:hover { opacity: 1; background: var(--surface-3); }
.menu-pick.is-active { opacity: 1; color: var(--ink); background: var(--surface-3); border-color: var(--line-2); }

.loginpage {
  min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 18px;
  background:
    radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 50%),
    radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%);
}
.logincard {
  width: 100%; max-width: 408px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 30px 30px 24px;
  animation: sresult-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.logincard__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.logincard__brand .brand__mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; }
.logincard__brand .brand__name { font: 800 17px/1 var(--grotesk); letter-spacing: 0.02em; }
.logincard__brand .brand__name span { color: var(--accent-ink); }
.logincard h1 { font: 800 22px/1.2 var(--grotesk); margin: 0 0 6px; color: var(--ink); }
.logincard__sub { margin: 0 0 22px; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
#login-form { display: grid; gap: 13px; }
/* Twitch OAuth is a real link (full-page navigation to /auth/login), so it sits
   outside #login-form; give it the spacing the form grid-gap used to provide. */
.loginerror {
  display: none; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px;
  border-radius: 10px; font-size: 12.5px; line-height: 1.4; font-weight: 600;
  background: color-mix(in srgb, #e5484d 12%, transparent);
  border: 1px solid color-mix(in srgb, #e5484d 36%, transparent); color: #c4292e;
}
.twitchbtn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #9146ff; color: #fff; font: 700 14px/1 var(--sans); padding: 13px; border-radius: 11px;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(145, 70, 255, 0.7); transition: filter 0.16s, transform 0.16s;
}
.twitchbtn::before { content: ""; width: 16px; height: 16px; background: #fff; flex: none;
  -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3 3 7v12h4v3h3l3-3h4l5-5V3H4zm16 9-3 3h-4l-3 3v-3H7V5h13v7z'/%3E%3Cpath d='M15 8h2v4h-2zM10 8h2v4h-2z'/%3E%3C/svg%3E");
  mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3 3 7v12h4v3h3l3-3h4l5-5V3H4zm16 9-3 3h-4l-3 3v-3H7V5h13v7z'/%3E%3Cpath d='M15 8h2v4h-2zM10 8h2v4h-2z'/%3E%3C/svg%3E"); }
.twitchbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.field { display: grid; gap: 6px; }
.field span { font: 600 12.5px/1 var(--sans); color: var(--ink-2); }
.field input {
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; font-size: 14.5px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.loginbtn { width: 100%; justify-content: center; padding: 13px; font-size: 14.5px; margin-top: 2px; }
.loginnote { display: flex; align-items: flex-start; gap: 7px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-weak); border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 12px; line-height: 1.45; }
.loginnote svg { flex: none; margin-top: 1px; }
.loginback { display: block; margin: 16px auto 0; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.loginback:hover { color: var(--ink); }
body.is-login .appbar { border-bottom-color: transparent; background: transparent; }

/* CreatorStack · streamer-branded pages — avatar, recolour, home hero — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   image avatar (real streamer pfp) — sits inside .avatar, with a
   monogram fallback shown only if the <img> fails / is removed.
   ============================================================ */
.avatar--img { position: relative; background: var(--surface-3); border: 1px solid var(--line-2); }
.avatar--img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.avatar--img .avatar__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: var(--ink-2); z-index: 0; }
.footlink { color: inherit; font-weight: 700; background: none; border: none; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.footlink:hover { color: var(--accent-ink); }
.btn--lg { padding: 13px 20px; font-size: 15px; border-radius: 13px; }
.section-head--center { justify-content: center; text-align: center; }
.section-head--center > div { max-width: 64ch; }
.section-head--center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   acid_fired's pages — recolour the accent to the channel's red
   (the product chrome in the appbar keeps its glacier teal).
   ============================================================ */
.viewer--acid {
  --accent: #d8392e; --accent-ink: #b22a20;
  --accent-weak: #fdeceb; --accent-line: #f4c8c3;
  --ring: 0 0 0 4px rgba(216, 57, 46, 0.16);
}
[data-theme="dark"] .viewer--acid {
  --accent: #ff5a4d; --accent-ink: #ff7d72;
  --accent-weak: rgba(255, 90, 77, 0.15); --accent-line: rgba(255, 90, 77, 0.34);
}
.viewer--acid .btn--primary { box-shadow: 0 8px 20px -8px rgba(216, 57, 46, 0.6); }
.viewer--acid .chip.is-active { box-shadow: 0 8px 18px -8px rgba(216, 57, 46, 0.6); }

/* breadcrumb back to the streamer home */
.vcrumb { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; font-size: 13px; color: var(--ink-3); }
.vcrumb__home { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); background: none; border: none; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 99px; transition: 0.15s; }
.vcrumb__home:hover { color: var(--ink); background: var(--surface-3); }
.vcrumb__home .avatar { flex: none; }
.vcrumb__sep { opacity: 0.5; }
.vcrumb__here { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }

/* ============================================================
   streamer home hero — real banner + avatar + bio
   ============================================================ */
.shero { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); }
.shero__banner { position: absolute; inset: 0; height: 190px; }
.shero__banner img { width: 100%; height: 100%; object-fit: cover; }
.shero__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.18), var(--surface) 92%); }
.shero__inner { position: relative; z-index: 1; padding: 130px clamp(22px, 3.6vw, 40px) clamp(22px, 3.6vw, 36px); display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 26px); flex-wrap: wrap; }
.shero__inner .avatar--img { flex: none; border: 4px solid var(--surface); box-shadow: var(--sh); border-radius: 26px; }
.shero__inner .avatar--img img { border-radius: 22px; }
.shero__body { flex: 1; min-width: 260px; display: grid; gap: 12px; }
.shero__top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.shero__name { font-size: clamp(28px, 4.4vw, 44px); margin: 0; letter-spacing: -0.03em; font-weight: 800; line-height: 1; }
.shero__name span { color: var(--accent-ink); font-weight: 700; font-size: 0.5em; letter-spacing: 0; }
.shero__bio { color: var(--ink-2); font-size: clamp(14px, 1.4vw, 16px); line-height: 1.6; max-width: 64ch; margin: 0; }
.shero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

/* games grid (doorways into each topic page) */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gtile { position: relative; display: flex; gap: 14px; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); transition: 0.18s ease; overflow: hidden; cursor: pointer; }
.gtile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--g1), var(--g2)); }
.gtile:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }
.gtile__art { flex: none; width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.gtile__body { display: grid; gap: 4px; align-content: start; min-width: 0; }
.gtile__name { font-size: 16px; letter-spacing: -0.01em; }
.gtile__sub { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gtile__meta { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gtile__go { color: var(--accent-ink); font-weight: 700; }
.archnote { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; font-size: 13px; color: var(--ink-3); }
.archnote svg { color: var(--accent-ink); flex: none; }
/* archnote rendered as a button — a quiet text link into the search page */
.archnote--btn { width: auto; background: none; border: 0; cursor: pointer; text-align: left; padding: 0; transition: color 0.15s; }
.archnote--btn:hover { color: var(--ink); }
.archnote__go { color: var(--accent-ink); font-weight: 700; }

/* streamer-home cross-stream search band — a big tappable bar that opens the
   public /<handle>/search page. Looks like a search box, acts like a link. */
.homesearch {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 20px 0 6px;
  background:
    radial-gradient(130% 180% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 16px;
  padding: 13px 13px 13px 16px; box-shadow: var(--sh-sm); cursor: pointer; text-align: left;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.homesearch:hover { border-color: var(--accent); box-shadow: var(--ring); transform: translateY(-1px); }
.homesearch__ic { color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.homesearch__txt {
  flex: 1; min-width: 0; color: var(--ink-3); font-size: 14.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.homesearch__go {
  flex: none; display: inline-flex; align-items: center; gap: 6px; color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #000));
  font: 700 13px/1 var(--grotesk); padding: 10px 14px; border-radius: 11px;
}
.homesearch__go svg { flex: none; }
@media (max-width: 560px) { .homesearch__go span { display: none; } }

/* CreatorStack · landing page (product home at /) — concatenated into dist/styles.css by tools/build-styles.mjs (cascade order). */
/* ============================================================
   LANDING PAGE (product home at /)
   ============================================================ */
.landing { padding-bottom: 0; }
.lblock { margin-top: clamp(56px, 8vw, 96px); }

/* ---- scroll-reveal ----
   mountLanding() observes [data-reveal] and adds .is-in as each scrolls into
   view (staggered per row via an inline transition-delay). The static markup is
   already correct, so .fx-instant (reduced motion / re-render) just shows it. */
.landing [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.landing [data-reveal].reveal--fade { transform: none; }
.landing [data-reveal].is-in { opacity: 1; transform: none; }
.landing.fx-instant [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---- hero ---- */
.lhero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 92px) 0 clamp(30px, 5vw, 60px); background:
    radial-gradient(1100px 480px at 78% -8%, var(--accent-weak), transparent 60%),
    radial-gradient(800px 420px at 6% 12%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 55%); }
.lhero__wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lhero__copy { display: grid; gap: 18px; }
.lhero__title { font-size: clamp(34px, 5.6vw, 62px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 4px 0 0; }
.lhero__title em { font-style: normal; color: var(--accent-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lhero__title em { background: linear-gradient(100deg, var(--accent), var(--accent-ink) 55%, var(--accent)); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: lshimmer 7s linear infinite; }
}
.lhero__sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); line-height: 1.62; max-width: 56ch; margin: 0; }
.lhero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.lhero__note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0; }
.lhero__note svg { flex: none; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); display: inline-block; vertical-align: middle; margin-right: 8px; box-shadow: 0 0 0 4px var(--accent-weak); animation: lpulse 2.4s ease-in-out infinite; }

/* decorative hero backdrop — drifting glows over a faded grid */
.lhero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lhero__grid { position: absolute; inset: -2px; opacity: 0.5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(680px 420px at 76% 6%, #000, transparent 70%);
  mask-image: radial-gradient(680px 420px at 76% 6%, #000, transparent 70%); }
.lhero__orb { position: absolute; border-radius: 50%; filter: blur(48px); opacity: 0.55; }
.lhero__orb--1 { width: 360px; height: 360px; right: -50px; top: -90px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%); animation: lorb1 15s ease-in-out infinite; }
.lhero__orb--2 { width: 300px; height: 300px; left: -60px; bottom: -130px; background: radial-gradient(circle, color-mix(in srgb, var(--accent-ink) 42%, transparent), transparent 70%); animation: lorb2 19s ease-in-out infinite; }

/* find-that-moment illustration card */
.lhero__demo { position: relative; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-lg); display: grid; gap: 14px; }
.lhero__demo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, var(--accent-line), transparent 38%, transparent 62%, var(--accent-line));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.9; }
@media (prefers-reduced-motion: no-preference) {
  .lhero__demo { animation: lfloat 7s ease-in-out infinite; }
}
.ldemo__head { display: flex; align-items: center; justify-content: space-between; }
.ldemo__dots { display: inline-flex; gap: 6px; }
.ldemo__dots i { width: 9px; height: 9px; border-radius: 99px; background: var(--line-2); }
.ldemo__dots i:first-child { background: color-mix(in srgb, var(--live) 55%, var(--line-2)); }
.ldemo__dots i:nth-child(2) { background: color-mix(in srgb, var(--warn) 55%, var(--line-2)); }
.ldemo__live { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.ldemo__livedot { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); position: relative; }
.ldemo__livedot::after { content: ""; position: absolute; inset: 0; border-radius: 99px; background: var(--accent); animation: ldot 1.8s ease-out infinite; }
.lsearch { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); }
.lsearch__ic { color: var(--accent-ink); display: grid; place-items: center; }
.lsearch__txt { font-size: 14.5px; color: var(--ink); font-weight: 500; min-height: 18px; }
.lsearch__cursor { width: 2px; height: 18px; background: var(--accent); margin-left: -6px; animation: blip 1.1s steps(1) infinite; }
.lsearch__lbl { font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.lsearch__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lchip { font-size: 12.5px; color: var(--ink-2); padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: 0.15s; }
.lchip:hover { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-weak); transform: translateY(-1px); }
.ldemo__hits { display: grid; gap: 8px; margin-top: 2px; }
.ldemo__hit { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; }
.ldemo__hit > span:nth-child(2) { flex: 1; color: var(--ink); }
.ldemo__ts { font-family: var(--grotesk); font-weight: 700; font-size: 12px; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 7px; }
.ldemo__score { font-weight: 700; color: var(--ok); font-size: 12.5px; }
@media (prefers-reduced-motion: no-preference) {
  .ldemo__hit { animation: lhit 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .ldemo__hit:nth-child(2) { animation-delay: 0.16s; }
}

/* ---- stats band ---- */
.lstats-sec .eyebrow { display: block; text-align: center; margin-bottom: 18px; }
.lstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lstat { position: relative; overflow: hidden; text-align: center; padding: 28px 18px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--sh-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.lstat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-ink)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.lstat:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--accent-line); }
.lstat:hover::before { transform: scaleX(1); }
.lstat__n { display: block; font-family: var(--grotesk); font-weight: 700; font-size: clamp(30px, 4.4vw, 48px); line-height: 1; letter-spacing: -0.025em; color: var(--accent-ink); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .lstat__n { background: linear-gradient(155deg, var(--ink), var(--accent-ink)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.lstat__l { display: block; margin-top: 11px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* problem statement */
.lprob { max-width: 820px; }
.lprob h2 { font-size: clamp(24px, 3.4vw, 38px); letter-spacing: -0.025em; margin: 8px 0 12px; font-weight: 800; }
.lprob p { font-size: clamp(15px, 1.6vw, 18px); color: var(--ink-2); line-height: 1.65; margin: 0; }

/* two-audience split */
.laud { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.laud__card { position: relative; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); display: grid; gap: 14px; align-content: start; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.laud__card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.laud__card--view { background: linear-gradient(160deg, var(--accent-weak), var(--surface) 55%); border-color: var(--accent-line); }
.laud__card--view:hover { border-color: var(--accent); }
.laud__tag { display: inline-flex; align-items: center; gap: 7px; width: fit-content; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-ink); background: var(--surface); border: 1px solid var(--accent-line); padding: 5px 11px; border-radius: 99px; }
.laud__card--create .laud__tag { color: var(--ink-2); border-color: var(--line-2); }
.laud__card h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 0; letter-spacing: -0.02em; font-weight: 800; }
.laud__card > p { color: var(--ink-2); line-height: 1.6; margin: 0; font-size: 14.5px; }
.lticks { list-style: none; padding: 0; margin: 2px 0 6px; display: grid; gap: 9px; }
.lticks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--ink); }
.lticks svg { color: var(--accent-ink); flex: none; margin-top: 1px; }
.laud__card .btn { width: fit-content; }

/* differentiator feature grid */
.lfeatgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lfeat { position: relative; overflow: hidden; padding: 24px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); display: grid; gap: 9px; align-content: start; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.lfeat::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), var(--accent-weak), transparent 60%); }
.lfeat:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--accent-line); }
.lfeat:hover::after { opacity: 1; }
.lfeat > * { position: relative; z-index: 1; }
.lfeat__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent-weak); border: 1px solid var(--accent-line); margin-bottom: 4px; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.lfeat:hover .lfeat__ic { transform: translateY(-2px) scale(1.06); background: var(--accent); color: #fff; border-color: transparent; }
.lfeat b { font-size: 16px; letter-spacing: -0.01em; }
.lfeat p { color: var(--ink-2); line-height: 1.55; margin: 0; font-size: 13.5px; }

/* how it works */
.lsteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lstep { position: relative; display: flex; gap: 14px; align-items: flex-start; }
.lstep__n { position: relative; z-index: 1; flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-family: var(--grotesk); font-weight: 700; font-size: 17px; color: #fff; background: var(--accent); box-shadow: 0 8px 18px -8px rgba(14, 124, 140, 0.55); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.lstep:hover .lstep__n { transform: scale(1.08); box-shadow: 0 12px 22px -8px rgba(14, 124, 140, 0.7); }
.lstep b { font-size: 16px; }
.lstep p { color: var(--ink-2); line-height: 1.55; margin: 5px 0 0; font-size: 13.5px; }

/* channel directory */
.lvsearch { max-width: 460px; margin-bottom: 22px; }
.ldir { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.chan { display: grid; gap: 12px; padding: 0 0 16px; text-align: left; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-sm); overflow: hidden; cursor: pointer; transition: 0.18s ease; }
.chan:hover { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--line-2); }
.chan__banner { height: 84px; background: var(--surface-3); }
.chan__banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.chan:hover .chan__banner img { transform: scale(1.05); }
.chan__row { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin-top: -34px; }
.chan__row .avatar--img { border: 3px solid var(--surface); border-radius: 18px; flex: none; }
.chan__row .avatar--img img { border-radius: 15px; }
.chan__id { display: grid; flex: 1; min-width: 0; margin-top: 18px; }
.chan__id b { font-size: 16px; letter-spacing: -0.01em; }
.chan__id span { font-size: 12.5px; color: var(--ink-3); }
.chan__open { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.chan__meta { font-size: 12.5px; color: var(--ink-2); padding: 0 16px; }
.chan__tags { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px; }
.chan__tags .mintag { display: inline-flex; align-items: center; gap: 5px; }
.chan--ghost { display: grid; gap: 8px; place-content: center; justify-items: center; text-align: center; padding: 26px; border-style: dashed; cursor: default; background: var(--surface-2); }
.chan--ghost:hover { transform: none; box-shadow: var(--sh-sm); border-color: var(--line-2); }
.chan__ghosth { color: var(--accent-ink); }
.chan--ghost b { font-size: 15px; }
.chan--ghost p { font-size: 13px; color: var(--ink-2); margin: 0 0 6px; max-width: 28ch; }

/* closing CTA band */
.lcta { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 64px) 28px; border-radius: var(--r-lg); border: 1px solid var(--accent-line); background:
    radial-gradient(700px 300px at 50% -20%, var(--accent-weak), transparent 70%), var(--surface); box-shadow: var(--sh-sm); }
.lcta::before { content: ""; position: absolute; left: 50%; top: -32%; width: 720px; height: 400px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--accent-weak), transparent); animation: lglow 6.5s ease-in-out infinite; }
.lcta > * { position: relative; z-index: 1; }
.lcta h2 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
.lcta p { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 17px); margin: 0 auto 22px; max-width: 46ch; }
.lcta__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* primary buttons on the landing get a glint sweep on hover */
.landing .btn--primary { position: relative; overflow: hidden; }
.landing .btn--primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; transform: skewX(-18deg); background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent); }
.landing .btn--primary:hover::after { animation: lglint 0.85s ease; }

/* landing footer */
.lfooter { margin-top: clamp(56px, 8vw, 90px); border-top: 1px solid var(--line); padding: 34px 0 40px; }
.lfooter__wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.lfooter__brand .brand__name { font-family: var(--grotesk); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.lfooter__brand .brand__name span { color: var(--accent-ink); }
.lfooter__brand p { color: var(--ink-3); font-size: 13px; margin: 8px 0 0; max-width: 40ch; }
.lfooter__links { display: flex; gap: 18px; flex-wrap: wrap; }
.lfooter__links .footlink { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.lfooter__links .footlink:hover { color: var(--accent-ink); }
.lfooter__legal { color: var(--ink-3); font-size: 12.5px; margin-top: 22px; }

/* ---- keyframes ---- */
@keyframes lshimmer { to { background-position: 220% center; } }
@keyframes lpulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-weak); } 50% { box-shadow: 0 0 0 5px transparent; } }
@keyframes ldot { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes lfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lhit { from { opacity: 0; transform: translateX(12px); } }
@keyframes lorb1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-28px, 30px) scale(1.1); } }
@keyframes lorb2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(26px, -24px) scale(1.12); } }
@keyframes lglow { 0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); } 50% { opacity: 0.85; transform: translateX(-50%) scale(1.1); } }
@keyframes lglint { to { left: 135%; } }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .lhero__wrap { grid-template-columns: 1fr; }
  .lhero__demo { order: -1; }
  .laud, .lfeatgrid, .lsteps { grid-template-columns: 1fr; }
  .lstats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .lfeatgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shero__inner { padding-top: 96px; }
  .shero__banner { height: 150px; }
}
