/* ==========================================================================
   Shared
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font: inherit; font-weight: 700; line-height: 1; cursor: pointer; text-decoration: none;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg, #333); color: var(--btn-fg, #fff);
  transition: transform .12s ease, background .12s ease, opacity .12s;
}
.btn:hover { transform: translateY(-1px); }
.site a.btn, .admin a.btn { color: var(--btn-fg, #fff); }
.btn:active { transform: translateY(0); }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus, #ff3d7f); outline-offset: 2px;
}

/* ==========================================================================
   Public site - 70s sunset poster: tangerine, hot sun, purple groove type
   ========================================================================== */
.site {
  --bg: #100c0a; --bg-soft: #1a1411; --ink: #f3e9dc; --ink-dim: #a39789; --line: #2e2521;
  --tangerine: #f0873c; --sun: #ff4a1c; --pink: #ff5b8a; --purple: #6a1bb5; --purple-deep: #4e0f8c;
  --cream: #fbf0e1; --accent: #e8924a; --accent-deep: #d4763a; --accent-soft: #f0b07e; --err: #ff7a5c;
  --focus: var(--accent-soft);
  --groove: Shrikhand, 'Cooper Black', Georgia, serif;
  --wide: Archivo, 'Arial Black', system-ui, sans-serif;
  --grotesk: 'Space Grotesk', Inter, system-ui, sans-serif;
  background: var(--bg); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased;
}
.site a { color: var(--ink); }
.site .btn { font-family: var(--grotesk); font-weight: 700; letter-spacing: .02em; }
.site .btn-primary { --btn-bg: linear-gradient(180deg, var(--accent), var(--accent-deep)); --btn-fg: #1a0f08; background: var(--btn-bg); }
.site .btn-ghost { --btn-bg: transparent; --btn-fg: var(--purple-deep); border-color: var(--purple-deep); }
.site .btn-primary:hover { filter: brightness(1.07); }

/* --- hero poster ---------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 11vw, 128px) 0 clamp(48px, 8vw, 96px);
  background: var(--tangerine); color: var(--purple);
}
/* the sun, plus the hot pink column melting down from it */
.hero-sun {
  position: absolute; z-index: -2; pointer-events: none;
  width: min(78vw, 760px); aspect-ratio: 1; right: -6vw; top: -10%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd23d 0 18%, var(--sun) 42%, var(--pink) 68%, rgba(255, 91, 138, 0) 71%);
  filter: blur(2px);
}
.hero-sun::after {
  content: ''; position: absolute; left: 22%; right: 22%; top: 50%; height: 140vh;
  background: linear-gradient(180deg, rgba(255, 74, 28, .85), rgba(255, 91, 138, .55) 40%, rgba(255, 91, 138, 0) 80%);
}
/* film grain - an SVG noise tile, mixed in so the flat colors feel printed */
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .3 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; }
.hero-kicker {
  font: 800 clamp(13px, 1.6vw, 16px)/1 var(--wide); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: .14em; color: var(--cream); margin: 0 0 18px;
}
.band-name {
  font-family: var(--wide); font-weight: 900; font-stretch: 125%; color: var(--purple);
  font-size: calc(min(1080px, 100vw - 32px) / (var(--name-len, 10) * .92)); line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase; margin: 0;
  text-shadow: 3px 3px 0 var(--cream);
}
.band-name span { display: block; white-space: nowrap; }
.band-name.small { font-size: 30px; text-decoration: none; color: var(--accent); text-shadow: none; }
/* the "FADES FADES FADES" echo trail */
/* scaled copies don't shrink their layout box, so cap the trail's height to what's visible */
.echo { display: grid; margin-top: -.06em; height: 1.15em; pointer-events: none; user-select: none; font-size: calc(min(1080px, 100vw - 32px) / (var(--name-len, 10) * .92)); }
.echo span {
  font-family: var(--wide); font-weight: 900; font-stretch: 125%; text-transform: uppercase; line-height: .78; white-space: nowrap; overflow: hidden;
  font-size: 1em; color: var(--pink);
  transform-origin: top left;
}
.echo span:nth-child(1) { opacity: .5; transform: scaleY(.72) translateX(2%); }
.echo span:nth-child(2) { opacity: .3; transform: scaleY(.5) translateX(4%); margin-top: -.25em; }
.echo span:nth-child(3) { opacity: .16; transform: scaleY(.32) translateX(6%); margin-top: -.38em; }
.tagline {
  font: 800 clamp(18px, 2.6vw, 28px)/1.2 var(--wide); font-stretch: 125%; text-transform: uppercase;
  color: var(--cream); max-width: 28ch; margin: 4px 0 30px; letter-spacing: .01em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-primary { --btn-bg: var(--purple); --btn-fg: var(--cream); background: var(--purple); }
.hero .btn-primary:hover { background: var(--purple-deep); }

/* --- marquee --------------------------------------------------------------- */
.marquee {
  display: block; overflow: hidden; background: var(--purple); color: var(--cream) !important; text-decoration: none;
  border-block: 3px solid var(--purple-deep); padding: 14px 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track > div { display: flex; align-items: center; }
.marquee span { font: 900 clamp(18px, 2.4vw, 26px)/1 var(--wide); font-stretch: 125%; text-transform: uppercase; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); margin: 0 .9em; font-size: 22px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.poster { margin: 0; background: var(--tangerine); }
.poster img { display: block; width: min(1080px, 100%); margin: 0 auto; }

/* --- sections ------------------------------------------------------------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }
#shows { background: radial-gradient(120% 70% at 50% 0%, rgba(232, 146, 74, .14), rgba(232, 146, 74, 0) 60%), var(--bg); }
.section-title {
  font-family: var(--wide); font-weight: 900; font-stretch: 125%; text-transform: uppercase; color: var(--accent);
  font-size: clamp(40px, 7vw, 76px); line-height: 1; margin: 0 0 28px; letter-spacing: .005em;
}
.lede { color: var(--ink-dim); font-size: 16px; margin: 0 0 28px; }
.empty { color: var(--ink-dim); font-size: 18px; }

.shows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.show {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 22px; align-items: center;
  padding: 18px 22px 18px 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px;
  position: relative; overflow: hidden;
}
/* ticket-stub notch line */
.show::before { content: ''; position: absolute; left: 112px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line); }
.show-date { display: grid; justify-items: center; gap: 4px; text-transform: uppercase; }
.show-date span { font: 600 12px/1 var(--grotesk); letter-spacing: .2em; color: var(--accent-soft); }
.show-date strong { font: 800 34px/1 Fraunces, Georgia, serif; color: var(--cream); letter-spacing: -.02em; }
.show-info h3 { margin: 0; font: 900 clamp(17px, 2.2vw, 23px)/1.15 var(--wide); font-stretch: 112%; text-transform: uppercase; letter-spacing: .01em; }
.show-where { margin: 4px 0 0; color: var(--ink-dim); }
.show-details { margin: 6px 0 0; color: var(--ink-dim); font-size: 14px; }
.site .btn-ticket { --btn-bg: linear-gradient(180deg, var(--accent), var(--accent-deep)); --btn-fg: #1a0f08; background: var(--btn-bg); white-space: nowrap; border-radius: 10px; }
.show:hover { border-color: var(--accent-deep); }
@media (max-width: 600px) {
  .show { grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 16px 16px 0; }
  .show::before { left: 84px; }
  .show-date strong { font-size: 26px; }
  .show .btn-ticket { grid-column: 2; justify-self: start; padding: .7em 1.3em; }
}

/* --- signup card (styled after the Day Fades page) ------------------------ */
.section-join { background: radial-gradient(120% 55% at 50% 42%, rgba(232, 146, 74, .13), rgba(232, 146, 74, 0) 64%), var(--bg); border-top: 1px solid var(--line); }
.join-card { width: min(520px, 100% - 32px); margin-inline: auto; }
.join-card .section-title { margin-bottom: 10px; }
.eyebrow { font: 600 12px/1.4 var(--grotesk); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-soft); margin: 0 0 14px; }
.signup { display: grid; gap: 14px; }
.signup label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-dim); }
.signup .opt { opacity: .7; }
.signup input:not([type=checkbox]) {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%; transition: border-color .15s ease;
}
.signup input::placeholder { color: #6b635c; }
.signup input:not([type=checkbox]):focus { border-color: var(--accent); outline: none; }
.signup .consent { display: grid; grid-template-columns: auto 1fr; gap: 11px; font-size: 12.5px; line-height: 1.55; margin-top: 4px; }
.signup .consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); }
.signup .consent a { color: var(--accent-soft); text-underline-offset: 2px; }
.btn-block { width: 100%; border-radius: 10px; padding: 15px; font-size: 17px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-errors { background: rgba(255, 122, 92, .1); border: 1px solid var(--err); border-radius: 10px; padding: 4px 14px; color: var(--ink); font-size: 14px; }
.form-errors p { margin: 8px 0; }
.joined { text-align: center; padding: 12px 0; }
.joined-mark { font-size: 44px; margin-bottom: 8px; }
.joined h3 { font: 400 40px/1 var(--groove); color: var(--accent); margin: 0 0 10px; }
.joined p { color: var(--ink-dim); margin: 0; }

.section-about { border-top: 1px solid var(--line); }
.about { max-width: 720px; font-size: 18px; }

/* --- footer & simple pages ------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--ink-dim); font-size: 14px; text-align: center; }
.site-footer a { color: var(--ink-dim); }
.sign-off { font: 500 14px/1.4 var(--grotesk); letter-spacing: .04em; color: var(--ink-dim); margin: 0 0 18px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 16px; }
.socials a { color: var(--ink); font: 900 15px/1 var(--wide); font-stretch: 125%; text-transform: uppercase; text-decoration: none; letter-spacing: .04em; }
.socials a:hover { color: var(--accent); }
.fine { font-size: 12px; color: #6f655c; margin: 0; }

.mini-header { padding: 22px 0; background: var(--tangerine); }
.mini-header .band-name.small { color: var(--purple); text-shadow: 2px 2px 0 var(--cream); }
.prose { max-width: 720px; }
.prose h1 { font: 400 clamp(32px, 5vw, 52px)/1.05 var(--groove); color: var(--accent); }
.prose h2 { margin-top: 2em; font: 800 18px/1.3 var(--wide); font-stretch: 112%; text-transform: uppercase; }
.prose li { margin: 6px 0; }
.muted { color: var(--ink-dim); }

/* ==========================================================================
   Admin
   ========================================================================== */
.admin {
  --bg: #f5f4f2; --panel: #fff; --ink: #1c1a1f; --muted: #6f6a75; --line: #e4e1dd;
  --accent: #d6245f; --ok: #1d7a46; --warn: #8a5a00; --danger: #b42318;
  --bubble-in: #ecebe8; --bubble-out: #d6245f;
  background: var(--bg); color: var(--ink); font-size: 15px;
}
@media (prefers-color-scheme: dark) {
  .admin {
    --bg: #131116; --panel: #1c1a21; --ink: #ece9f0; --muted: #9b95a3; --line: #2e2a34;
    --accent: #ff4f8b; --ok: #4ccf86; --warn: #f0b03a; --danger: #ff6b5e;
    --bubble-in: #2a2630; --bubble-out: #c21f57;
  }
}
.admin a { color: var(--accent); }
.admin h1 { font-size: 26px; margin: 0; line-height: 1.2; }
.admin h2 { font-size: 16px; margin: 0 0 12px; }
.admin code { font-size: 13px; background: var(--bg); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.admin .btn { --btn-bg: var(--ink); --btn-fg: var(--panel); padding: .7em 1.15em; font-size: 14px; border-radius: 10px; }
.admin .btn-primary { --btn-bg: var(--accent); --btn-fg: #fff; }
.admin .btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.admin .btn-danger { --btn-bg: transparent; --btn-fg: var(--danger); border-color: currentColor; }
.admin .btn-small { padding: .45em .8em; font-size: 13px; }
.admin .muted { color: var(--muted); }
.admin .small { font-size: 13px; }
.admin .error { color: var(--danger); }
.admin .nowrap { white-space: nowrap; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }

.admin-bar {
  display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.admin-brand { font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: var(--ink) !important; text-decoration: none; }
.admin-bar nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.admin-bar nav a { color: var(--ink); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.admin-bar nav a:hover { background: var(--bg); }
.admin-bar nav a.active { background: var(--ink); color: var(--panel); }
.admin-bar-end { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.admin-bar-end a { color: var(--muted); }
@media (max-width: 720px) {
  .admin-bar { padding: 10px 16px; justify-content: space-between; }
  .admin-bar nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; }
  .admin-bar nav a { white-space: nowrap; }
}
.badge { display: inline-block; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; text-align: center; }

.admin-main { width: min(1080px, 100% - 32px); margin: 24px auto 80px; display: grid; gap: 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

.flash { background: color-mix(in srgb, var(--ok) 14%, var(--panel)); border: 1px solid var(--ok); border-radius: 12px; padding: 12px 16px; }
.flash p { margin: 4px 0; }
.flash-error { background: color-mix(in srgb, var(--danger) 12%, var(--panel)); border-color: var(--danger); }
.flash-warn { background: color-mix(in srgb, var(--warn) 12%, var(--panel)); border-color: var(--warn); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-decoration: none; color: var(--ink) !important; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { font-size: 30px; font-variant-numeric: tabular-nums; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }

.table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.table td.actions { text-align: right; white-space: nowrap; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.pill-subscribed, .pill-sent { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pill-unsubscribed, .pill-cancelled { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill-sending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.pager { display: flex; justify-content: space-between; margin-top: 12px; }

.form { display: grid; gap: 14px; }
.form label, .login-card label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form .opt { color: var(--muted); font-weight: 400; }
.admin input:not([type=checkbox]), .admin textarea, .admin select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.admin textarea { resize: vertical; line-height: 1.45; }
.form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form .consent, .form .toggle { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 400; }
.form .consent input, .form .toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.form .toggle { font-size: 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sticky-actions { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.danger-zone { display: flex; justify-content: flex-end; }
.search { display: flex; gap: 8px; }
.inline-form { display: flex; gap: 8px; }
.inline-form input { width: 200px !important; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.compose { display: grid; gap: 18px; }
#sms-fields, #email-fields { display: grid; gap: 10px; }

.progress-row { margin-bottom: 14px; }
.progress-label { margin-bottom: 6px; }
.progress { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; background: var(--accent); transition: width .3s; }
.pre { white-space: pre-wrap; font: inherit; margin: 0; }

.convos { list-style: none; margin: 0; padding: 0; }
.convos li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.convos li a:hover { background: var(--bg); }
.convos li:last-child a { border-bottom: 0; }
.convo-who { font-weight: 600; }
.convo-last { grid-column: 1; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-time { grid-row: 1; grid-column: 2; font-size: 13px; }
.convos li.unread .convo-who, .convos li.unread .convo-last { font-weight: 800; color: var(--ink); }

.thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.msg { display: flex; flex-direction: column; max-width: 78%; }
.msg-in { align-self: flex-start; }
.msg-out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 9px 13px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-in { background: var(--bubble-in); border-bottom-left-radius: 6px; }
.bubble-out { background: var(--bubble-out); color: #fff; border-bottom-right-radius: 6px; }
.bubble-broadcast { opacity: .8; }
.msg-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.reply { display: grid; gap: 10px; }
.reply-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; min-width: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 8px; } }

.admin-login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-card { width: min(360px, 100%); display: grid; gap: 16px; }

/* --- dashboard ------------------------------------------------------------- */
.segmented { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmented a { padding: 6px 12px; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.segmented a.active { background: var(--ink); color: var(--panel); }
.stat .delta { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-top: 2px; }
.stat-hero strong { font-size: 48px; line-height: 1.05; }
.admin .key { font-size: 15px; user-select: all; }
.admin details > summary { cursor: pointer; font-weight: 600; }
.admin .quote { background: var(--bg); padding: 12px; border-radius: 10px; }

/* --- charts (single series; blue validated for both admin surfaces) ---------- */
.admin { --series-1: #2a78d6; --viz-grid: #ebe8e4; }
@media (prefers-color-scheme: dark) { .admin { --series-1: #3987e5; --viz-grid: #2b2831; } }

.viz { position: relative; padding: 8px 0 0 34px; }
.viz-plot { position: relative; height: 200px; margin-bottom: 26px; }
.viz-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--viz-grid); }
.viz-grid span.viz-baseline { border-top-color: var(--line); }
.viz-grid i { position: absolute; right: calc(100% + 8px); top: -8px; font: 12px/1 Inter, system-ui, sans-serif; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.viz-x { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

.viz-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.viz-band { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; cursor: default; }
.viz-bar { width: 100%; background: var(--series-1); border-radius: 4px 4px 0 0; min-height: 0; }
.viz-band:hover .viz-bar { filter: brightness(1.15); }
.viz-band:hover { background: color-mix(in srgb, var(--series-1) 8%, transparent); border-radius: 4px 4px 0 0; }

.viz-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.viz-stroke { fill: none; stroke: var(--series-1); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.viz-area { fill: var(--series-1); opacity: .12; }
.viz-hover { position: absolute; inset: 0; overflow: hidden; }
.viz-hit { position: absolute; top: 0; bottom: 0; }
.viz-cross, .viz-dot { position: absolute; display: none; pointer-events: none; }
.viz-cross { left: 50%; top: 0; bottom: 0; border-left: 1px dashed var(--muted); }
.viz-dot { width: 10px; height: 10px; margin: 0 0 -5px -5px; border-radius: 50%; background: var(--series-1); box-shadow: 0 0 0 2px var(--panel); }
.viz-hit:hover .viz-cross, .viz-hit:hover .viz-dot { display: block; }

.viz-tip {
  position: fixed; z-index: 50; pointer-events: none; padding: 7px 10px; border-radius: 8px;
  background: var(--ink); color: var(--panel); font-size: 13px; line-height: 1.3; box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
}
.viz-tip strong { display: block; font-size: 15px; }

.viz-barlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.viz-barlist li { display: grid; grid-template-columns: minmax(90px, 32%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.viz-barlist-track { height: 12px; }
.viz-barlist-track span { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.viz-barlist strong { font-variant-numeric: tabular-nums; }
