/* ============================================================
   Smart Bar — modern minimalist stream overlay
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --scale: 1;
  /* Every font-size is calc(Npx * var(--fs)). --fs-base covers the whole bar and the
     middle panel re-declares --fs so it can be nudged on its own. */
  --fs-base: 1;
  --fs-mid: 1;
  --fs: var(--fs-base);
  --bar-h: 112px;
  --bar-w: 1880px;
  --left-col: 15.2%;
  --right-col: 18.5%;
  --radius: 20px;

  --bg-0: #0a0a0f;
  --bg-1: rgba(17, 17, 24, 0.86);
  /* the same colour with no alpha, used when the glass effect is switched off */
  --bg-solid: #111118;
  --bg-2: rgba(255, 255, 255, 0.045);
  --bg-3: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);

  --txt-1: #f4f4f7;
  --txt-2: rgba(244, 244, 247, 0.66);
  --txt-3: rgba(244, 244, 247, 0.4);

  --a: #8b5cf6;
  --b: #22d3ee;
  --c: #f59e0b;
  --ok: #34d399;

  --shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.85);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

[data-theme='cyan']     { --a: #22d3ee; --b: #6366f1; --c: #a3e635; }
[data-theme='ember']    { --a: #fb7185; --b: #f59e0b; --c: #a78bfa; }
[data-theme='mint']     { --a: #34d399; --b: #22d3ee; --c: #fbbf24; }
[data-theme='rose']     { --a: #f43f5e; --b: #ec4899; --c: #fbbf24; }
[data-theme='ocean']    { --a: #0ea5e9; --b: #14b8a6; --c: #38bdf8; }
[data-theme='sunset']   { --a: #f97316; --b: #ec4899; --c: #facc15; }
[data-theme='lime']     { --a: #84cc16; --b: #22c55e; --c: #06b6d4; }
[data-theme='royal']    { --a: #6366f1; --b: #d946ef; --c: #f59e0b; }
[data-theme='aurora']   { --a: #2dd4bf; --b: #a78bfa; --c: #f472b6; }
[data-theme='neon']     { --a: #c6ff00; --b: #00e5ff; --c: #ff3dca; }
[data-theme='gold']     { --a: #fbbf24; --b: #fb923c; --c: #fde68a; }
[data-theme='cherry']   { --a: #e11d48; --b: #fb7185; --c: #f59e0b; }
[data-theme='lavender'] { --a: #a78bfa; --b: #f0abfc; --c: #67e8f9; }
[data-theme='sky']      { --a: #38bdf8; --b: #818cf8; --c: #f472b6; }
[data-theme='mono']     { --a: #e4e4e7; --b: #a1a1aa; --c: #f4f4f5; }
[data-theme='white'] {
  color-scheme: light;
  --bg-0: #eef2f7;
  --bg-1: rgba(255, 255, 255, 0.96);
  --bg-solid: #ffffff;
  --bg-2: rgba(15, 23, 42, 0.055);
  --bg-3: rgba(15, 23, 42, 0.10);
  --line: rgba(15, 23, 42, 0.16);
  --line-soft: rgba(15, 23, 42, 0.09);
  --txt-1: #0f172a;
  --txt-2: rgba(15, 23, 42, 0.70);
  --txt-3: rgba(15, 23, 42, 0.48);
  --a: #7c3aed;
  --b: #0369a1;
  --c: #c2410c;
  --ok: #047857;
  --shadow: 0 22px 55px -20px rgba(15, 23, 42, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: transparent;
  font-family: var(--font-main);
  color: var(--txt-1);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  user-select: none;
}

/* preview backdrop only shows when opened directly in a browser */
body.preview { background: radial-gradient(1200px 600px at 50% 0%, #16121f, #07070b 70%); }
[data-theme='white'] body.preview {
  background: radial-gradient(1200px 600px at 50% 0%, #ffffff, #e6ebf3 72%);
}
[data-theme='white'] .smartbar {
  background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,0) 48%), var(--bg-1);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}
[data-theme='white'] .st4__c { background: var(--bg-2); }
[data-theme='white'] .bar { background: var(--bg-3); }
[data-theme='white'] .bar__ticks i { border-color: rgba(15, 23, 42, 0.18); }

.stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 16px 14px;
}
.stage[data-pos='top'] { align-items: flex-start; padding: 14px 16px 0; }

/* ---------- the bar shell ---------- */
.smartbar {
  position: relative;
  width: var(--bar-w);
  max-width: 100%;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: var(--left-col) 1px minmax(0, 1fr) 1px var(--right-col);
  align-items: stretch;
  gap: 0;
  padding: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 42%),
    var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  transform-origin: bottom center;
  overflow: hidden;
  animation: barIn 0.9s var(--ease) both;
}
.stage[data-pos='top'] .smartbar { transform-origin: top center; }
/* The intro animation keeps its final frame (fill mode both), so the user scale has to
   live inside the keyframes: an inline transform would be overridden by the animation. */
@keyframes barIn {
  from { opacity: 0; transform: translateY(26px) scale(calc(var(--scale, 1) * 0.985)); }
  to   { opacity: 1; transform: scale(var(--scale, 1)); }
}

/* animated accent light along the top edge */
.bar-glow {
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--a), var(--b), var(--c), transparent);
  background-size: 220% 100%;
  opacity: 0.85;
  animation: glowSlide 9s linear infinite;
  pointer-events: none;
}
@keyframes glowSlide { to { background-position: 220% 0; } }

.divider {
  width: 1px;
  margin: 14px 0;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.panel { min-width: 0; padding: 12px 16px; display: flex; flex-direction: column; overflow: hidden; }
.panel--mid { padding: 12px 26px 9px; }
.panel--right { padding: 11px 18px 10px; }

/* ---------- modern inline SVG system ---------- */
.icon {
  width: 1em; height: 1em; display: block; flex: none;
  overflow: visible; shape-rendering: geometricPrecision;
}
.icon__tone { opacity: 0.16; }
.icon__line { vector-effect: non-scaling-stroke; }
.icon--brand { padding: 1px; }

/* Crisp glass icon tiles; SVG stays readable at the compact 16–22px sizes. */
.slide__icon, .gt__ico, .tp__ico, .cd__ico, .alert__ico {
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 6px 16px -10px currentColor;
}
.slide__icon::after, .gt__ico::after, .tp__ico::after, .cd__ico::after, .alert__ico::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.12), transparent 44%);
}
.slide__icon > .icon, .gt__ico > .icon, .tp__ico > .icon, .cd__ico > .icon, .alert__ico > .icon {
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.22));
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: calc(9.5px * var(--fs)); font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--txt-3);
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 18px; padding: 0 7px; border-radius: 6px;
  font-size: calc(10px * var(--fs)); font-weight: 600; color: var(--txt-2);
  background: var(--bg-2); border: 1px solid var(--line-soft);
  white-space: nowrap;
}
.chip .icon { font-size: calc(11px * var(--fs)); color: var(--txt-3); }
.chip--ghost { background: transparent; }
.mono { font-family: var(--font-main); font-variant-numeric: tabular-nums; }

/* ============================================================
   LEFT — now playing
   ============================================================ */
.np { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; height: 100%; }
.np.is-no-art { grid-template-columns: minmax(0, 1fr); }

.np__art { position: relative; width: 48px; height: 64px; border-radius: 9px; overflow: hidden; flex: none; }
.np[data-art-shape='square'], .np[data-art-shape='circle'] { grid-template-columns: 52px 1fr; gap: 10px; }
.np.is-no-art[data-art-shape] { grid-template-columns: minmax(0, 1fr); }
.np[data-art-shape='square'] .np__art, .np[data-art-shape='circle'] .np__art { width: 52px; height: 52px; }
.np[data-art-shape='circle'] .np__art,
.np[data-art-shape='circle'] .np__art::after,
.np[data-art-shape='circle'] .np__art-ring { border-radius: 50%; }
.np__art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  background: linear-gradient(140deg, #262433, #14131c);
}
.np__art::after {
  content: ''; position: absolute; inset: 0; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -22px 28px -22px rgba(0, 0, 0, 0.9);
}
.np__art-ring {
  position: absolute; inset: -1px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(160deg, var(--a), transparent 45%, var(--b));
  opacity: 0.5; mix-blend-mode: screen;
}

.np__meta { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.np__title {
  margin: 0; font-size: calc(15.5px * var(--fs)); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np__tags { display: flex; gap: 4px; overflow: hidden; max-height: 15px; }
.np__tags .tag {
  font-size: calc(9px * var(--fs)); font-weight: 600; letter-spacing: 0.03em;
  padding: 2px 6px; border-radius: 999px; white-space: nowrap;
  color: var(--txt-2); background: var(--bg-2); border: 1px solid var(--line-soft);
}
.np__row { display: flex; gap: 4px; min-width: 0; margin-top: 1px; }
.np__row .chip {
  min-width: 0; flex: 0 1 auto;
  gap: 3px; padding-inline: 5px; font-size: calc(9.5px * var(--fs));
}
.np__row .chip .icon { font-size: calc(10px * var(--fs)); }
#chipViewers { flex-shrink: 1; }

/* Live music mode: service identity and smooth progress. */
.np { --music-accent: var(--a); --music-tint: var(--b); }
.np__music { min-width: 0; display: grid; gap: 2px; }
.np__music[hidden] { display: none !important; }
.np__music-line { display: flex; align-items: center; gap: 5px; min-width: 0; height: 13px; }
.np__service { flex: none; width: 12px; height: 12px; display: grid; place-items: center; color: var(--music-accent); }
.np__service svg { display: block; width: 100%; height: 100%; }
.np__artist {
  flex: 1; min-width: 0; font-size: calc(9.5px * var(--fs)); font-weight: 650; color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.np__time { flex: none; font-size: calc(8.5px * var(--fs)); color: var(--txt-3); white-space: nowrap; }
.np__music-progress {
  position: relative; height: 3px; overflow: hidden; border-radius: 999px;
  background: color-mix(in srgb, var(--music-tint) 16%, var(--bg-3));
}
.np__music-progress i {
  position: absolute; inset: 0; display: block; transform: scaleX(0); transform-origin: left;
  border-radius: inherit; background: linear-gradient(90deg, var(--music-accent), var(--b));
  box-shadow: 0 0 9px color-mix(in srgb, var(--music-accent) 55%, transparent);
}
.np[data-duration-known='false'] .np__music-progress i { opacity: 0; }
.np[data-duration-known='false'] .np__music-progress { opacity: .45; }
.np[data-mode='music'] .np__art-ring {
  opacity: .42;
  box-shadow: inset 0 0 4px color-mix(in srgb, var(--music-accent) 45%, transparent);
}
.np[data-playing='false'] .live-dot { animation-play-state: paused; opacity: .45; }
.np[data-music-connection='retrying'] .live-dot,
.np[data-music-connection='connecting'] .live-dot { background: var(--c); }

/* ============================================================
   MID — hero feed
   ============================================================ */
/* the middle section carries its own text size on top of the bar-wide one */
.panel--mid { position: relative; justify-content: space-between; --fs: calc(var(--fs-base) * var(--fs-mid)); }

.hero { position: relative; flex: 1; min-height: 0; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(14px) scale(0.995);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
}
.slide.is-active { opacity: 1; transform: none; }
.slide.is-out { opacity: 0; transform: translateY(-12px); }

.slide__icon {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: calc(22px * var(--fs)); color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--a) 90%, #fff 0%), color-mix(in srgb, var(--b) 70%, #000 10%));
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--a) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.slide__body { min-width: 0; flex: 1; }

.slide__badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 2px;
  font-size: calc(9.5px * var(--fs)); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
  color: color-mix(in srgb, var(--a) 62%, #fff);
}
.slide__title {
  margin: 0; font-size: calc(30px * var(--fs)); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* oversized ghost glyph fills the empty right side of the mid panel */
.slide__ghost {
  position: absolute; right: -8px; top: 50%; transform: translateY(-50%);
  font-size: calc(108px * var(--fs)); line-height: 0; color: #fff; opacity: 0.04;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
}
.slide__title .accent {
  background: linear-gradient(92deg, var(--a), var(--b) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.slide__sub {
  margin: 2px 0 0; font-size: calc(12.5px * var(--fs)); font-weight: 500; color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* goal variant inside the hero */
.slide__goal { margin-top: 6px; display: flex; align-items: center; gap: 11px; }
.slide__goal .bar { flex: 1; height: 6px; }
.slide__goal .pct { font-size: calc(12px * var(--fs)); font-weight: 700; color: var(--txt-1); }

/* hero footer: the ticker gets the full width, on its own hairline */
.hero__footer {
  display: flex; align-items: center; flex: none;
  margin-top: 4px; padding-top: 5px;
  border-top: 1px solid var(--line-soft);
}

.pips { display: flex; gap: 4px; flex: none; }
.pips--float { position: absolute; top: 12px; right: 26px; z-index: 2; }
.pip {
  width: 11px; height: 2.5px; border-radius: 2px; background: var(--bg-3);
  overflow: hidden; position: relative; transition: width 0.4s var(--ease);
}
.pip.is-active { width: 24px; }
.pip.is-active::after {
  content: ''; position: absolute; inset: 0; transform-origin: left;
  background: linear-gradient(90deg, var(--a), var(--b));
  animation: pipFill linear forwards; animation-duration: var(--dur, 9s);
}
@keyframes pipFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.marquee {
  position: relative; flex: 1; min-width: 0; height: 13px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.marquee__track {
  display: flex; gap: 34px; width: max-content;
  animation: scrollX 34s linear infinite;
}
.marquee__item {
  font-size: calc(10.5px * var(--fs)); font-weight: 600; letter-spacing: 0.02em; color: var(--txt-3);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.marquee__item::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: color-mix(in srgb, var(--a) 70%, #fff); flex: none;
}
/* app.js measures the exact hand-over distance and sets --marquee-shift.
   The -50% fallback is half a gap short, which shows as a small hitch. */
@keyframes scrollX { to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }

/* ============================================================
   RIGHT — one rotating tile at a time
   ============================================================ */
.panel--right { justify-content: space-between; }

.rstack { position: relative; flex: 1; min-height: 0; overflow: hidden; }

.rtile {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
  opacity: 0; transform: translateY(12px) scale(0.995);
  transition: opacity 0.55s var(--ease), transform 0.65s var(--ease);
  pointer-events: none;
}
.rtile.is-active { opacity: 1; transform: none; }
.rtile.is-out { opacity: 0; transform: translateY(-10px); }


.rtile[data-accent='a'] { --gc: var(--a); }
.rtile[data-accent='b'] { --gc: var(--b); }
.rtile[data-accent='c'] { --gc: var(--c); }
.rtile.is-complete { --gc: var(--ok); }

/* ---- goal tile ---- */
.gt { display: flex; align-items: center; gap: 11px; min-width: 0; }
.gt__ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: calc(16px * var(--fs));
  color: color-mix(in srgb, var(--gc) 82%, #fff);
  background: color-mix(in srgb, var(--gc) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.gt__mid { min-width: 0; flex: 1; }

/* label + remaining on one line, then the number + percent — all left-grouped */
.gt__r1 { display: flex; align-items: center; gap: 7px; min-width: 0; margin-bottom: 3px; }
.gt__r2 { display: flex; align-items: center; gap: 7px; min-width: 0; }

.gt__label {
  flex: 0 1 auto; min-width: 0;
  font-size: calc(9px * var(--fs)); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gt__cur {
  flex: none; font-size: calc(20px * var(--fs)); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15;
  white-space: nowrap;
}
.gt__tgt { flex: none; font-size: calc(11px * var(--fs)); font-weight: 600; color: var(--txt-3); white-space: nowrap; }
.gt__pct {
  flex: none; padding: 2px 7px; border-radius: 6px;
  font-size: calc(12.5px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  color: color-mix(in srgb, var(--gc) 78%, #fff);
  background: color-mix(in srgb, var(--gc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gc) 26%, transparent);
}
.gt__pct i { font-size: calc(9px * var(--fs)); font-style: normal; opacity: 0.55; margin-left: 1px; }
.gt__hint {
  flex: none; display: flex; align-items: center; gap: 4px;
  font-size: calc(9.5px * var(--fs)); font-weight: 700; letter-spacing: 0.04em; color: var(--txt-3);
  white-space: nowrap;
}
.gt__hint::before { content: '·'; opacity: 0.45; margin-right: 1px; }
.gt__hint .icon { font-size: calc(11px * var(--fs)); }
.rtile.is-complete .gt__hint { color: color-mix(in srgb, var(--ok) 75%, #fff); }

/* ---- one supporter per tile ---- */
.rtile[data-kind2='top']  { --rk: #fbbf24; }
.rtile[data-kind2='tip']  { --rk: var(--ok); }
.rtile[data-kind2='sub']  { --rk: var(--a); }
.rtile[data-kind2='gift'] { --rk: var(--c); }
.rtile[data-kind2='bits']   { --rk: var(--b); }
/* Kick's paid gift. Theme token, not Kick green, so it stays readable on
   the light and monochrome themes. */
.rtile[data-kind2='kicks']  { --rk: var(--b); }
.rtile[data-kind2='raid']   { --rk: #f472b6; }
.rtile[data-kind2='follow'] { --rk: var(--b); }

.tp { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tp__row { display: flex; align-items: center; gap: 9px; min-width: 0; }

.tp__ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: calc(16px * var(--fs));
  color: color-mix(in srgb, var(--rk) 85%, #fff);
  background: color-mix(in srgb, var(--rk) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--rk) 30%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.tp__mid { flex: 1; min-width: 0; }
.tp__label {
  font-size: calc(9px * var(--fs)); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: color-mix(in srgb, var(--rk) 60%, var(--txt-3)); margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* name shrinks, value sits right beside it — never pinned to the edge */
.tp__name {
  flex: 0 1 auto; min-width: 0;
  font-size: calc(19px * var(--fs)); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tp__val {
  flex: none; display: inline-flex; align-items: baseline; gap: 3px;
  padding: 2px 8px; border-radius: 7px;
  font-size: calc(15px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--rk) 80%, #fff);
  background: color-mix(in srgb, var(--rk) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rk) 26%, transparent);
}
.tp__val span {
  font-size: calc(9.5px * var(--fs)); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--rk) 45%, var(--txt-3)); margin-left: 0;
}

.tp__foot {
  display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 3px;
  font-size: calc(10.5px * var(--fs)); font-weight: 600; color: var(--txt-3);
}
.tp__foot .icon { font-size: calc(11px * var(--fs)); flex: none; color: color-mix(in srgb, var(--ok) 65%, #fff); }
.tp__foot span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp__note { font-style: italic; color: var(--txt-2); }

/* ---- countdown tile ---- */
.cd { display: flex; align-items: center; gap: 11px; min-width: 0; }
.cd__ico {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: calc(16px * var(--fs)); color: color-mix(in srgb, var(--c) 85%, #fff);
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.cd__mid { min-width: 0; flex: 1; }
.cd__label {
  font-size: calc(9px * var(--fs)); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--txt-3); margin-bottom: 2px;
}
.cd__clock {
  display: flex; align-items: baseline; gap: 1px;
  font-size: calc(24px * var(--fs)); font-weight: 700; line-height: 1; letter-spacing: -0.02em;
}
.cd__clock b { font-weight: 700; }
.cd__clock i {
  font-style: normal; font-size: calc(15px * var(--fs)); opacity: 0.32;
  animation: colonBlink 2s steps(1) infinite;
}
.cd__clock u {
  text-decoration: none; font-size: calc(10px * var(--fs)); font-weight: 700; color: var(--txt-3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-left: 4px;
}
@keyframes colonBlink { 50% { opacity: 0.1; } }
.cd__note {
  font-size: calc(10px * var(--fs)); font-weight: 600; color: var(--txt-3); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rtile.is-ending .cd__clock { color: #fca5a5; }

/* ---- stats tile ---- */
/* 2x2 so it fills the narrower column instead of stretching thin */
.st4 { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; }
/* With the stat chips individually switchable, one or two of them look lost in
   a 2x2 grid and their labels still truncate. Give them the full row instead. */
.st4[data-count='1'], .st4[data-count='2'] { grid-template-columns: 1fr; }
.st4[data-count='1'] .st4__c, .st4[data-count='2'] .st4__c { height: 30px; }
.st4__c {
  display: flex; align-items: center; gap: 7px;
  min-width: 0; height: 28px; padding: 0 9px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-soft);
}
.st4__i { order: 1; flex: none; font-size: calc(12px * var(--fs)); color: var(--txt-3); }
.st4__l {
  order: 2; flex: 1; min-width: 0;
  font-size: calc(8.5px * var(--fs)); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--txt-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.st4__v {
  order: 3; flex: none;
  font-size: calc(13px * var(--fs)); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  white-space: nowrap;
}

/* ---- platforms tile (multistream): viewers on each connected platform ---- */
.pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pf[data-count='2'] { grid-template-columns: repeat(2, 1fr); }
.pf[data-count='4'] { grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pf__c {
  --pc: var(--a);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 0; height: 62px; padding: 0 4px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-soft);
  transition: opacity 0.4s var(--ease);
}
.pf__c[data-p='twitch']  { --pc: #9146ff; }
.pf__c[data-p='youtube'] { --pc: #ff3b3b; }
.pf__c[data-p='kick']    { --pc: #53fc18; }
.pf__c[data-p='tiktok']  { --pc: #25f4ee; }
.pf__c.is-off { opacity: 0.5; }
.pf__i { flex: none; font-size: calc(15px * var(--fs)); color: var(--pc); }
.pf__v {
  font-size: calc(16px * var(--fs)); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  white-space: nowrap;
}
.pf__l {
  max-width: 100%; font-size: calc(7.5px * var(--fs)); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--txt-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; order: 3;
}
[data-theme='white'] .pf__c { background: var(--bg-2); }
[data-theme='white'] .pf__c[data-p='kick'] { --pc: #1a9c00; }
[data-theme='white'] .pf__c[data-p='tiktok'] { --pc: #0e9f9a; }

/* ---- footer: pips + next-up label ---- */
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; padding-top: 6px; }
.rnext {
  font-size: calc(9px * var(--fs)); font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--txt-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the progressive bar */
.bar {
  position: relative; height: 7px; border-radius: 999px; overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.bar__fill {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 70%, #000 0%), color-mix(in srgb, var(--gc) 100%, #fff 35%));
  box-shadow: 0 0 14px -2px color-mix(in srgb, var(--gc) 80%, transparent);
  transition: width 0.9s var(--ease);
}
.bar__fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.6s var(--ease) infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.bar--lg { height: 6px; }
.bar__ticks { position: absolute; inset: 0; display: flex; pointer-events: none; }
.bar__ticks i { flex: 1; border-right: 1px solid rgba(10, 10, 15, 0.55); }
.bar__ticks i:last-child { border: 0; }

/* count-up flash */
.flash { animation: flash 0.55s var(--ease); }
@keyframes flash {
  0% { transform: translateY(4px); opacity: 0.4; filter: brightness(2); }
  100% { transform: none; opacity: 1; }
}

/* ============================================================
   mid-panel supporter alerts + confetti
   ============================================================ */
.alert-layer { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.alert-layer:empty { display: none; }

/* An alert owns the middle panel. The card's own background cannot be what
   hides the slide: a custom Bar background with zero alpha makes the card
   transparent too, and the slide and alert text print over each other. So
   the slide, its timer pips and the ticker step aside while an alert plays
   (app.js toggles .is-alerting), and come back once the queue is empty. */
.panel--mid > .hero,
.panel--mid > .hero__footer,
.panel--mid > .pips--float {
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}
.panel--mid.is-alerting > .hero,
.panel--mid.is-alerting > .hero__footer,
.panel--mid.is-alerting > .pips--float {
  opacity: 0; visibility: hidden;
  transition: opacity 0.22s var(--ease), visibility 0s linear 0.22s;
}

.alert {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; align-items: center; gap: 14px; padding: 10px 26px;
  background:
    radial-gradient(85% 165% at 0 50%, color-mix(in srgb, var(--a) 32%, transparent), transparent 62%),
    radial-gradient(80% 155% at 100% 50%, color-mix(in srgb, var(--b) 26%, transparent), transparent 64%),
    color-mix(in srgb, var(--bg-1) 82%, transparent);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  animation: alertIn 0.5s var(--ease) both;
}
.alert.is-out { animation: alertOut 0.42s var(--ease) both; }

/* a single light sweep across the panel as it lands */
.alert::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 26%, rgba(255, 255, 255, 0.17) 45%, transparent 63%);
  transform: translateX(-100%);
  animation: alertSweep 1.45s var(--ease) 0.22s both;
}

.alert__ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; font-size: calc(22px * var(--fs)); color: #fff;
  background: linear-gradient(150deg, var(--a), var(--b));
  animation: alertPop 0.72s var(--ease) both;
}
.alert__body { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.alert__badge {
  font-size: calc(9px * var(--fs)); font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--txt-3);
  animation: alertRise 0.55s var(--ease) 0.05s both;
}
.alert__t {
  margin: 0; font-size: calc(25px * var(--fs)); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: alertRise 0.55s var(--ease) 0.11s both;
}
.alert__s {
  margin: 0; font-size: calc(12px * var(--fs)); font-weight: 600; color: var(--txt-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: alertRise 0.55s var(--ease) 0.17s both;
}
.alert__timer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  transform-origin: left; border-radius: 999px;
  background: linear-gradient(90deg, var(--a), var(--b));
  box-shadow: 0 0 12px -2px color-mix(in srgb, var(--a) 80%, transparent);
  animation: alertTimer linear forwards; animation-duration: var(--dur, 5000ms);
}
@keyframes alertIn  { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
@keyframes alertOut { to   { opacity: 0; transform: translateY(-12px) scale(0.99); } }
@keyframes alertSweep { to { transform: translateX(100%); } }
@keyframes alertPop {
  0%   { opacity: 0; transform: scale(0.4) rotate(-14deg); }
  62%  { opacity: 1; transform: scale(1.13) rotate(4deg); }
  100% { transform: none; }
}
@keyframes alertRise { from { opacity: 0; transform: translateY(11px); } }
@keyframes alertTimer { to { transform: scaleX(0); } }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 25; }

/* ============================================================
   GSAP handover
   Added to <html> only once GSAP is loaded, so these CSS transitions
   remain the fallback whenever the library is missing or blocked.
   The .alert sweep stays on CSS because it animates a pseudo-element.
   ============================================================ */
html.gsap-on .slide,
html.gsap-on .rtile { transition: none; }
html.gsap-on .alert,
html.gsap-on .alert__ico,
html.gsap-on .alert__badge,
html.gsap-on .alert__t,
html.gsap-on .alert__s,
html.gsap-on .alert__timer { animation: none; }

/* ============================================================
   responsive / narrow sources
   ============================================================ */
@media (max-width: 1500px) {
  .slide__title { font-size: calc(24px * var(--fs)); }
  .cd__clock { font-size: calc(21px * var(--fs)); }
}
@media (max-width: 1180px) {
  .slide__title { font-size: calc(21px * var(--fs)); }
  .rnext { display: none; }
  .np__tags { display: none; }
  .st4__v { font-size: calc(12px * var(--fs)); }
  .st4__l { letter-spacing: 0.06em; }
}

/* ============================================================
   REDUCED MOTION

   Honouring this means switching the motion off, not compressing it. The old
   rule set every animation to 0.001s, which for an infinite animation is a
   strobe: the live dot pulsed 60,000 times a minute instead of 30, and the
   ticker restarted so fast it looked like the bar was stuck loading. Being
   `!important`, it also beat the scroll duration the script sets inline, so no
   speed setting could rescue it.

   It is also opt-in now, because this preference belongs to the machine
   running OBS, not to the viewers who actually see the overlay. A streamer who
   turns off Windows animation effects for performance is not asking for a
   frozen overlay. app.js sets data-reduce='on' only when the widget is told to
   honour the setting.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  [data-reduce='on'] *,
  [data-reduce='on'] *::before,
  [data-reduce='on'] *::after {
    animation: none !important;
    transition-duration: 0.12s !important;
  }
  /* The dot's meaning was in the pulse, so it keeps a steady halo instead. */
  [data-reduce='on'] .live-dot { box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28); }
}

/* ============================================================
   LIQUID GLASS — layered refraction, edge light and soft depth
   ============================================================ */
.smartbar {
  isolation: isolate;
  background:
    radial-gradient(90% 160% at -8% -65%, color-mix(in srgb, var(--a) 25%, transparent), transparent 58%),
    radial-gradient(80% 150% at 108% 155%, color-mix(in srgb, var(--b) 19%, transparent), transparent 62%),
    linear-gradient(112deg, rgba(255,255,255,.115), rgba(255,255,255,.025) 35%, rgba(255,255,255,.075) 68%, rgba(255,255,255,.018)),
    color-mix(in srgb, var(--bg-1) 82%, transparent);
  border-color: color-mix(in srgb, var(--line) 58%, rgba(255,255,255,.26));
  box-shadow:
    0 26px 70px -24px rgba(0,0,0,.82),
    0 8px 24px -18px color-mix(in srgb, var(--a) 55%, transparent),
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(255,255,255,.045),
    inset 16px 0 40px -38px var(--a),
    inset -16px 0 40px -38px var(--b);
  backdrop-filter: blur(30px) saturate(190%) contrast(105%);
  -webkit-backdrop-filter: blur(30px) saturate(190%) contrast(105%);
}
.smartbar::before {
  content: ''; position: absolute; z-index: 0; pointer-events: none;
  inset: -65% -12%;
  background:
    radial-gradient(ellipse at 22% 30%, rgba(255,255,255,.16), transparent 25%),
    radial-gradient(ellipse at 73% 74%, color-mix(in srgb, var(--b) 15%, transparent), transparent 30%),
    linear-gradient(105deg, transparent 28%, rgba(255,255,255,.085) 43%, transparent 57%);
  filter: blur(7px);
  opacity: .8;
  animation: liquidGlassDrift 12s ease-in-out infinite alternate;
}
.smartbar::after {
  content: ''; position: absolute; z-index: 8; pointer-events: none;
  inset: 0; border-radius: inherit;
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), inset 0 18px 28px -30px rgba(255,255,255,.9);
}
@keyframes liquidGlassDrift {
  from { transform: translate3d(-3%, -2%, 0) rotate(-1deg) scale(1.02); }
  to { transform: translate3d(3%, 2%, 0) rotate(1deg) scale(1.07); }
}

.bar-glow {
  z-index: 9; height: 2px; opacity: .95;
  filter: blur(.15px) drop-shadow(0 0 7px color-mix(in srgb, var(--a) 70%, transparent));
  background: linear-gradient(90deg, transparent 2%, var(--a) 22%, rgba(255,255,255,.9) 48%, var(--b) 74%, transparent 98%);
}
.panel {
  position: relative; z-index: 1;
  background: linear-gradient(115deg, rgba(255,255,255,.025), transparent 42%, rgba(255,255,255,.018));
}
.panel::after {
  content: ''; position: absolute; inset: 1px 7px auto; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.105), transparent);
}
.divider {
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.2) 48%, color-mix(in srgb, var(--a) 20%, transparent), transparent);
  box-shadow: 1px 0 0 rgba(0,0,0,.13);
}

.chip, .np__tags .tag, .st4__c {
  background:
    linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.018) 52%, rgba(255,255,255,.055)),
    color-mix(in srgb, var(--bg-2) 76%, transparent);
  border-color: color-mix(in srgb, var(--line-soft) 50%, rgba(255,255,255,.18));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 5px 14px -12px rgba(0,0,0,.9);
  backdrop-filter: blur(12px) saturate(165%);
  -webkit-backdrop-filter: blur(12px) saturate(165%);
}
.chip { border-radius: 999px; }

.slide__icon, .gt__ico, .tp__ico, .cd__ico, .alert__ico {
  border-color: color-mix(in srgb, currentColor 25%, rgba(255,255,255,.24));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    inset 0 -10px 20px -18px rgba(0,0,0,.8),
    0 10px 24px -16px currentColor;
  backdrop-filter: blur(13px) saturate(180%);
  -webkit-backdrop-filter: blur(13px) saturate(180%);
}
.slide__icon::after, .gt__ico::after, .tp__ico::after, .cd__ico::after, .alert__ico::after {
  background:
    radial-gradient(circle at 28% 18%, rgba(255,255,255,.5), transparent 18%),
    linear-gradient(145deg, rgba(255,255,255,.2), transparent 43%, rgba(255,255,255,.055));
}

.bar {
  background: linear-gradient(180deg, rgba(0,0,0,.17), rgba(255,255,255,.09));
  border: 1px solid rgba(255,255,255,.065);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.34), 0 1px 0 rgba(255,255,255,.045);
}
.bar__fill {
  box-shadow: 0 0 18px -2px color-mix(in srgb, var(--gc) 88%, transparent), inset 0 1px 0 rgba(255,255,255,.45);
}
.alert {
  background:
    radial-gradient(85% 165% at 0 50%, color-mix(in srgb, var(--a) 30%, transparent), transparent 62%),
    radial-gradient(80% 155% at 100% 50%, color-mix(in srgb, var(--b) 24%, transparent), transparent 64%),
    linear-gradient(140deg, rgba(255,255,255,.13), rgba(255,255,255,.025)),
    color-mix(in srgb, var(--bg-1) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(28px) saturate(185%);
  -webkit-backdrop-filter: blur(28px) saturate(185%);
}

body.preview {
  background:
    radial-gradient(700px 420px at 12% 20%, color-mix(in srgb, var(--a) 24%, transparent), transparent 64%),
    radial-gradient(760px 460px at 88% 74%, color-mix(in srgb, var(--b) 18%, transparent), transparent 68%),
    linear-gradient(145deg, #0d1019, #05060a 72%);
}
[data-theme='white'] body.preview {
  background:
    radial-gradient(720px 440px at 10% 16%, rgba(124,58,237,.13), transparent 64%),
    radial-gradient(800px 500px at 90% 78%, rgba(2,132,199,.12), transparent 68%),
    linear-gradient(145deg, #fafdff, #dfe7f2 76%);
}
[data-theme='white'] .smartbar {
  background:
    radial-gradient(90% 150% at -5% -60%, color-mix(in srgb, var(--a) 13%, transparent), transparent 60%),
    radial-gradient(80% 140% at 106% 150%, color-mix(in srgb, var(--b) 11%, transparent), transparent 62%),
    linear-gradient(112deg, rgba(255,255,255,.88), rgba(255,255,255,.48) 42%, rgba(255,255,255,.72)),
    rgba(244,248,253,.58);
  border-color: rgba(255,255,255,.9);
  box-shadow:
    0 26px 65px -28px rgba(30,41,59,.34),
    0 8px 22px -18px color-mix(in srgb, var(--a) 40%, transparent),
    inset 0 1px 0 #fff,
    inset 0 -1px 0 rgba(15,23,42,.07);
  backdrop-filter: blur(32px) saturate(175%) contrast(102%);
  -webkit-backdrop-filter: blur(32px) saturate(175%) contrast(102%);
}
[data-theme='white'] .smartbar::before { opacity: .55; }
[data-theme='white'] .smartbar::after { border-color: rgba(255,255,255,.72); box-shadow: inset 0 0 0 1px rgba(15,23,42,.045), inset 0 18px 28px -30px #fff; }
[data-theme='white'] .chip,
[data-theme='white'] .np__tags .tag,
[data-theme='white'] .st4__c {
  background: linear-gradient(145deg, rgba(255,255,255,.86), rgba(255,255,255,.34));
  border-color: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 5px 14px -11px rgba(15,23,42,.3), 0 0 0 1px rgba(15,23,42,.055);
}
[data-theme='white'] .divider { background: linear-gradient(180deg, transparent, rgba(15,23,42,.13), rgba(255,255,255,.8), transparent); }
[data-theme='white'] .bar { background: linear-gradient(180deg, rgba(15,23,42,.13), rgba(255,255,255,.48)); border-color: rgba(255,255,255,.72); }

/* Appearance toggles: retain layout while independently removing glass and shadow. */
[data-glass='off'] .smartbar {
  /* --bg-1 carries alpha for the glass look, so the solid token is used here
     to stop the stream showing through a bar that is meant to be flat. */
  background: var(--bg-solid);
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow);
}
[data-glass='off'] .smartbar::before { display: none; }
[data-glass='off'] .smartbar::after {
  border-color: var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}
[data-glass='off'] .panel { background: transparent; }
[data-glass='off'] .panel::after { display: none; }
[data-glass='off'] .bar-glow { filter: none; opacity: .75; }
[data-glass='off'] .chip,
[data-glass='off'] .np__tags .tag,
[data-glass='off'] .st4__c {
  background: var(--bg-2);
  border-color: var(--line-soft);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-glass='off'] .slide__icon,
[data-glass='off'] .gt__ico,
[data-glass='off'] .tp__ico,
[data-glass='off'] .cd__ico,
[data-glass='off'] .alert__ico {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}
[data-glass='off'] .slide__icon::after,
[data-glass='off'] .gt__ico::after,
[data-glass='off'] .tp__ico::after,
[data-glass='off'] .cd__ico::after,
[data-glass='off'] .alert__ico::after { display: none; }
[data-glass='off'] .bar { background: var(--bg-3); border-color: var(--line-soft); box-shadow: none; }
/* the alert covers the middle panel, so it has to be opaque too or the slides read through it */
[data-glass='off'] .alert {
  background: var(--bg-solid);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
[data-theme='white'][data-glass='off'] .smartbar { background: var(--bg-solid); border-color: var(--line); }

/* Shadow toggle removes only external depth; glass edge reflections remain. */
[data-shadow='off'] .smartbar {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.045) !important;
}
[data-theme='white'][data-shadow='off'] .smartbar {
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(15,23,42,.07) !important;
}
[data-glass='off'][data-shadow='off'] .smartbar { box-shadow: none !important; }

/* Component visibility: authored display rules must not override [hidden]. */
[hidden] { display: none !important; }

/* Supporter alerts sit inside the bar, so they follow its own corner rounding. */
.alert { border-radius: inherit; }
