/* ==========================================================================
   JIVO — design system v3
   Orange hero, light-grey app surfaces, white rounded cards, black pill actions,
   one vivid orange for "active / playing". Archivo throughout — its wide light
   italic for display, regular widths for UI.
   ========================================================================== */

:root {
  --orange: #f24e1e;
  --orange-2: #e2410f;
  --orange-soft: #fde4da;
  --orange-tint: #fff1eb;

  --bg: #efefed;
  --surface: #ffffff;
  --surface-2: #f6f6f4;
  --ink: #121212;
  --ink-2: #4a4a4a;
  --muted: #8b8b8b;
  --line: #e3e3df;
  --line-2: #d3d3ce;
  --black: #121212;

  --ok: #1f8a5b;
  --err-bg: #fdecea;
  --err: #b2341c;
  --warn-bg: #fff4d6;
  --warn: #7a5600;

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 30px -16px rgba(0, 0, 0, .18);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .05), 0 30px 60px -24px rgba(0, 0, 0, .28);

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange-soft); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.display { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0; }
.thin { font-weight: 250; font-style: italic; font-stretch: 125%; letter-spacing: -.02em; }
.grad-text { color: inherit; }
.accent-text { color: var(--orange); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow .bars { display: none; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ---------- surfaces & buttons ---------- */
.glass, .panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }

.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 15px/1 var(--font); white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn .arrow { display: inline-grid; place-items: center; transition: transform .2s var(--ease); }
.btn .arrow svg { width: 16px; height: 16px; }
.btn:hover .arrow { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--black); color: #fff; }
.btn-primary:hover { background: #2a2a2a; }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--ink-2) inset; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f4f4f2; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-2); }
.btn-sm { --h: 40px; font-size: 14px; padding: 0 18px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* ---------- nav ---------- */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav.on-orange .nav-links a { color: rgba(255, 255, 255, .82); }
.nav.on-orange .nav-links a:hover { color: #fff; }
.nav.on-orange .btn-ghost { background: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .55) inset; }
.nav.on-orange .brand img { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .18)); }
.page-top { height: 88px; }
.menu-btn { display: none; }

/* ---------- hero (orange) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100dvh, 860px);
  background: radial-gradient(90% 70% at 50% 55%, #ff7a2e 0%, var(--orange) 55%, var(--orange-2) 100%);
  color: #fff; border-radius: 0 0 var(--r-xl) var(--r-xl);
  display: flex; align-items: center;
}
.hero-photo { position: absolute; inset: auto 0 0 0; margin: 0 auto; height: 88%; width: auto; max-width: none; left: 50%; transform: translateX(-50%); z-index: -1; object-fit: contain; }
.hero-grid-lines { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero-grid-lines i { position: absolute; background: rgba(255, 255, 255, .22); }
.hero-grid-lines .h1 { left: 0; right: 0; top: 30%; height: 1px; }
.hero-grid-lines .h2 { left: 0; right: 0; bottom: 14%; height: 1px; }
.hero-grid-lines .v1 { top: 22%; bottom: 8%; left: 5%; width: 1px; }
.hero-grid-lines .v2 { top: 22%; bottom: 8%; right: 5%; width: 1px; }
.tag-dot { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .92); }
.tag-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }

.eq-bars { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: center; align-items: center; gap: clamp(14px, 2.4vw, 34px); pointer-events: none; }
.eq-bars i { width: clamp(8px, 1vw, 13px); border-radius: 99px; background: rgba(255, 255, 255, .22); animation: eqb 2.4s ease-in-out infinite alternate; transform-origin: center; }
@keyframes eqb { from { transform: scaleY(.55); } to { transform: scaleY(1); } }

.hero-inner { position: relative; padding: 140px 0 110px; }
.hero-title { text-align: center; font-size: clamp(46px, 8.6vw, 132px); line-height: 1; display: flex; align-items: center; justify-content: center; gap: .22em; flex-wrap: wrap; }
.orb {
  width: .9em; height: .9em; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #ffe3d6 45%, #ffc6ad 100%);
  box-shadow: 0 0 0 .08em rgba(255, 255, 255, .28), 0 18px 40px -10px rgba(120, 30, 0, .45);
  color: var(--orange);
}
.orb svg { width: 38%; height: 38%; }
.hero-sub { display: flex; justify-content: flex-end; margin-top: 34px; }
.hero-sub > div { width: min(430px, 100%); }
.hero-sub p { font-size: clamp(18px, 1.8vw, 23px); line-height: 1.35; margin: 0 0 22px; color: #fff; }
/* The portrait sits behind the copy: a soft shadow keeps it legible over it. */
.hero-title, .hero-sub p, .hero-note { text-shadow: 0 2px 18px rgba(60, 12, 0, .35); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .85); display: flex; gap: 16px; flex-wrap: wrap; }

.spin-badge { position: absolute; left: 5%; bottom: 17%; z-index: 2; width: 150px; height: 150px; display: grid; place-items: center; }
.spin-badge svg.ring { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.spin-badge .core { width: 74px; height: 74px; border-radius: 50%; background: var(--black); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.spin-badge:hover .core { transform: scale(1.06); }
.spin-badge .core svg { width: 22px; height: 22px; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-wave { position: absolute; right: 5%; bottom: 13%; width: min(280px, 32vw); z-index: 1; }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.section-head h2 .thin { font-weight: 300; }
.section-head p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 44ch; justify-self: end; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* phone mockups */
.stage-panel { background: #f8f8f6; border-radius: 36px; padding: 56px 32px 0; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.phones { display: flex; justify-content: center; align-items: flex-end; gap: clamp(16px, 3vw, 40px); }
.phone { width: 290px; flex: none; border-radius: 46px; padding: 10px; background: #111; box-shadow: var(--shadow-lg); }
.phone.mid { transform: translateY(-34px); }
.phone .screen { border-radius: 37px; background: #f1f1ef; height: 500px; overflow: hidden; padding: 14px 14px 0; position: relative; }
.phone .notch { width: 96px; height: 26px; border-radius: 99px; background: #111; margin: 0 auto 12px; }
.phone .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.phone .bar .icon-btn { width: 36px; height: 36px; box-shadow: none; }
.phone .bar b { font-size: 14px; display: block; text-align: center; }
.phone .bar small { font-size: 11px; color: var(--muted); display: block; text-align: center; }
.caption { text-align: center; margin: 22px 0 36px; }
.caption b { display: block; font-size: 17px; }
.caption span { color: var(--muted); font-size: 14px; }

.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.p-tile { border-radius: 14px; background: #fff; padding: 12px 6px 10px; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; }
.p-tile svg { width: 20px; height: 20px; }
.p-tile.on { background: var(--orange); color: #fff; }
.p-input { background: #fff; border-radius: 16px; padding: 12px 14px; font-size: 13px; color: var(--ink); line-height: 1.45; min-height: 96px; }
.p-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.p-chips span { font-size: 11px; padding: 5px 10px; border-radius: 99px; background: #fff; }
.p-cta { background: var(--black); color: #fff; border-radius: 99px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; }
.p-cta svg { width: 15px; height: 15px; }
.p-lyrics { background: #fff; border-radius: 16px; padding: 14px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.p-lyrics .tag { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-top: 6px; }
.p-lyrics .hl { background: var(--orange-tint); border-radius: 6px; padding: 1px 4px; color: var(--ink); }
.p-cover { border-radius: 20px; height: 250px; position: relative; overflow: hidden; background: radial-gradient(70% 60% at 50% 45%, #ff6a32, #7a1f05 70%, #2a0b02); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; }
.p-cover .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 58px; height: 58px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .15); }
.p-cover .play svg { width: 20px; height: 20px; }
.p-cover b { font-size: 18px; }
.p-cover small { font-size: 11.5px; opacity: .85; }
.p-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.p-share span { height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.p-share svg { width: 20px; height: 20px; }

/* genres as tiles */
.genre-tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.g-tile { background: var(--surface); border-radius: var(--r-md); padding: 18px 10px 14px; display: grid; justify-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-align: center; box-shadow: var(--shadow); transition: background .2s, color .2s, transform .2s; }
.g-tile svg { width: 24px; height: 24px; }
.g-tile:hover, .g-tile.on { background: var(--orange); color: #fff; transform: translateY(-2px); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; }
.feature .ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--orange-tint); color: var(--orange); margin-bottom: 20px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }
.uses { display: flex; flex-wrap: wrap; gap: 10px; }
.use { padding: 11px 20px; border-radius: 99px; background: var(--surface); font-weight: 500; box-shadow: var(--shadow); transition: background .2s, color .2s; }
.use:hover { background: var(--black); color: #fff; }

.pricing { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: start; }
.price-card { padding: 36px; }
.price { font-size: clamp(66px, 8vw, 104px); font-weight: 300; font-style: italic; font-stretch: 125%; letter-spacing: -.04em; line-height: 1; margin: 12px 0 4px; }
.price small { font-size: 20px; font-weight: 500; font-style: normal; font-stretch: 100%; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.checks { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12l4 4 8-8'/></svg>") center/12px no-repeat; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: var(--r-md); padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; transition: transform .2s, background .2s, color .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

.cta-band { margin: 0 auto 90px; padding: 70px 48px; border-radius: var(--r-xl); background: var(--black); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; max-width: 16ch; }
.cta-band h2 .thin { color: var(--orange); }
.footer { padding: 30px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }
.footer img { height: 28px; width: auto; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
/* The card, not its widest field, sets the width — the PIN field would push past a 320px screen. */
.auth > div { width: min(420px, 100%); }
.auth-top { display: flex; justify-content: center; margin-bottom: 26px; }
.auth-top img { height: 42px; width: auto; }
.auth-card { width: min(420px, 100%); padding: 32px; border-radius: var(--r-xl); }
.auth-card h2 { font-size: 28px; font-weight: 800; margin: 14px 0 6px; }
.auth-card > p { color: var(--ink-2); margin: 0 0 24px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.input-wrap { display: flex; align-items: center; height: 54px; border-radius: 99px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; transition: box-shadow .2s; }
.input-wrap:focus-within { box-shadow: 0 0 0 2px var(--black) inset; background: #fff; }
.input-wrap .prefix { padding: 0 4px 0 18px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.input-wrap input { flex: 1; height: 100%; background: none; border: 0; outline: 0; padding: 0 18px 0 8px; font-size: 17px; min-width: 0; }
.input-wrap input::placeholder { color: #a9a9a6; }
.pin-input input { width: 100%; text-align: center; font-size: 26px; font-weight: 600; letter-spacing: .5em; padding: 0 0 0 .5em; }
.alert { padding: 12px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; background: var(--err-bg); color: var(--err); }
.dev-hint { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--warn-bg); font-size: 13px; color: var(--warn); display: grid; gap: 6px; }
.dev-hint b { color: var(--ink); }
.dev-hint button { justify-self: start; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.auth-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-foot a, .auth-foot button { color: var(--orange); font-weight: 600; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--ink); }

/* ---------- studio (app) ----------
   The landing page, extended into an app: a dark sidebar beside the orange
   stage, the hero's grid lines and eq bars behind the thread, white cards for
   lyrics and songs, and the same glass song bar as the composer. */
.studio-page { background: #141110; }
.studio { height: 100dvh; display: grid; grid-template-columns: 300px 1fr; overflow: hidden; }

.side { --s-line: rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; min-height: 0; background: #141110; color: #fff; }
.side-top { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.side .brand img { height: 34px; }
.side-close { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.side-close svg { width: 18px; height: 18px; }
.new-song { width: 100%; justify-content: center; height: 48px; flex: none !important; }
.new-song svg { width: 16px; height: 16px; }
.usage { padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--s-line) inset; }
.usage header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.usage-bar { display: grid; grid-auto-flow: column; gap: 6px; }
.usage-bar i { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.usage-bar i.used { background: var(--orange); }
.usage p { margin: 10px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.song-list { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 2px 6px 8px; min-height: 0; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.song-list h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); margin: 8px 8px 6px; }
.list-empty { color: rgba(255, 255, 255, .55); font-size: 13px; margin: 4px 8px; }
.song-item { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-align: left; color: #fff; transition: background .15s; }
.song-item:hover { background: rgba(255, 255, 255, .06); }
.song-item.is-active { background: rgba(242, 78, 30, .16); box-shadow: 0 0 0 1px rgba(242, 78, 30, .5) inset; }
.song-item .cover { width: 42px; height: 42px; border-radius: 12px; }
.song-item b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item small { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.status-dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.status-dot.ready { background: #fff; }
.status-dot.ready::after { width: 0; height: 0; border-radius: 0; background: none; border-left: 8px solid #141110; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.song-item.is-active .status-dot.ready { background: var(--orange); }
.song-item.is-active .status-dot.ready::after { border-left-color: #fff; }
.status-dot.queued::after, .status-dot.rendering::after { background: var(--orange); animation: blink 1.2s steps(1) infinite; }
.status-dot.failed::after, .status-dot.refused::after { background: #ff7a66; }
@keyframes blink { 50% { opacity: .2; } }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 0; border-top: 1px solid var(--s-line); font-size: 13px; color: rgba(255, 255, 255, .7); }
.side-foot form button { color: rgba(255, 255, 255, .6); font-size: 13px; }
.side-foot form button:hover { color: #fff; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.who i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .22); flex: none; }
.side-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(10, 6, 4, .45); }
.side-scrim[hidden] { display: none; }

.stage {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; min-height: 0; color: #fff;
  background: radial-gradient(90% 70% at 50% 40%, #ff7a2e 0%, var(--orange) 55%, var(--orange-2) 100%);
}
.stage-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.stage-bg .eq-bars i { background: rgba(255, 255, 255, .12); }
.stage-bg .hero-grid-lines i { background: rgba(255, 255, 255, .18); }
.stage-top { display: none; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(30, 10, 3, .35); color: #fff; flex: none; }
.round-btn svg { width: 19px; height: 19px; }
.thread { flex: 1; overflow-y: auto; padding: 40px 0 20px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .4) transparent; }
.thread-inner { width: min(800px, 100% - 40px); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

/* empty = the studio's own hero */
.empty { text-align: center; padding: 3vh 0 8px; }
.empty .hi { display: inline-flex; padding: 7px 14px; border-radius: 99px; background: rgba(30, 10, 3, .32); font-size: 13px; font-weight: 500; margin: 0 0 20px; }
.studio-title { font-size: clamp(40px, 6.2vw, 92px); line-height: 1; display: flex; align-items: center; justify-content: center; gap: .2em; flex-wrap: wrap; margin: 0; text-shadow: 0 2px 18px rgba(60, 12, 0, .3); }
.empty .sub { margin: 18px 0 28px; color: rgba(255, 255, 255, .9); font-size: 16px; }
.ideas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; }
.idea {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; border-radius: 20px; text-align: left; color: #fff;
  background: rgba(30, 10, 3, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset; transition: transform .2s var(--ease), background .2s;
}
.idea:hover { background: rgba(30, 10, 3, .56); transform: translateY(-2px); }
.idea .art { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--orange); }
.idea .art svg { width: 22px; height: 22px; }
.idea small { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .68); margin-bottom: 3px; }
.idea span.t { font-size: 14.5px; font-weight: 600; line-height: 1.35; }

/* thread */
.msg { display: flex; gap: 12px; }
.msg.me { justify-content: flex-end; }
.bubble {
  max-width: 78%; padding: 14px 18px; border-radius: 22px 22px 6px 22px; color: #fff;
  background: rgba(30, 10, 3, .55); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset;
}
.bubble p { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bubble .tags .pill { height: 24px; font-size: 12px; padding: 0 10px; background: rgba(255, 255, 255, .14); color: #fff; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 8px 20px -8px rgba(40, 8, 0, .5); display: grid; place-items: center; }
.avatar img { width: 26px; height: 26px; border-radius: 6px; }
.card { flex: 1; min-width: 0; padding: 24px; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px -30px rgba(40, 8, 0, .55); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.card-kicker { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.badge { font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 99px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
/* Titles in the landing page's wide light italic. */
.title-input { width: 100%; background: none; border: 0; outline: 0; font: italic 300 32px/1.12 var(--font); font-stretch: 125%; letter-spacing: -.02em; padding: 2px 0; border-bottom: 1px dashed transparent; }
.title-input:hover, .title-input:focus { border-bottom-color: var(--line-2); }
.style-line { color: var(--muted); font-size: 14px; margin: 4px 0 16px; }
.lyrics-view { font-size: 15.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface-2); }
.lyrics-view .tag, .demo-lyrics .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); margin-top: 4px; }
.lyrics-edit { width: 100%; min-height: 360px; resize: vertical; font: 400 15.5px/1.75 var(--font); padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 0; outline: 0; box-shadow: 0 0 0 2px var(--black) inset; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.card-actions .spacer { flex: 1; }
.card-actions .hint { font-size: 13px; color: var(--muted); }
.card .btn-primary[data-act="render"] { background: linear-gradient(95deg, #ff3f7a 0%, #ff5a3a 55%, #ff7a1f 100%); box-shadow: 0 10px 26px -10px rgba(255, 60, 90, .6); }
.card .btn-primary[data-act="render"]:hover { filter: brightness(1.06); }
.text-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 99px; font-weight: 600; font-size: 14px; background: var(--surface-2); transition: background .15s; }
.text-btn:hover { background: #ececea; }
.notice { padding: 12px 16px; border-radius: 14px; background: var(--err-bg); color: var(--err); font-size: 14px; }

.making { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.making .cover { border-radius: 50%; background: var(--orange); }
.making .cover::before { display: none; }
.making .cover .eqz { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3px; z-index: 1; }
.making .cover .eqz i { width: 4px; height: 24px; border-radius: 2px; background: #fff; animation: eq .6s ease-in-out infinite alternate; }
.making .cover .eqz i:nth-child(2n) { animation-delay: -.2s; }
.making .cover .eqz i:nth-child(3n) { animation-delay: -.35s; }
@keyframes eq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.making h3 { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.making p { margin: 0; color: var(--ink-2); }
.making .timer { font-size: 13px; color: var(--muted); margin-top: 6px; display: block; font-variant-numeric: tabular-nums; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; width: 35%; background: var(--orange); border-radius: 4px; animation: indet 1.4s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

/* covers: a dark "record sleeve" lit in the genre's colour */
.cover { --h: 20; position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(70% 70% at 50% 42%, hsl(var(--h) 90% 58%), hsl(var(--h) 80% 22%) 70%, hsl(var(--h) 60% 8%)); }
.cover::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 42%, transparent 0 10px, rgba(255, 255, 255, .05) 11px 12px); }
.song-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
.song-card .cover { border-radius: 22px; display: flex; align-items: flex-end; padding: 16px; }
.song-card .cover span { position: relative; z-index: 1; font-weight: 700; font-size: 17px; line-height: 1.15; color: #fff; }
.song-card h3 { font: italic 300 32px/1.1 var(--font); font-stretch: 125%; letter-spacing: -.02em; margin: 0 0 6px; overflow-wrap: anywhere; }
.song-card .by { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* player */
.player { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; }
.play-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; box-shadow: 0 0 0 8px var(--orange-tint); transition: transform .15s, background .15s; }
.play-btn:hover { background: var(--orange-2); transform: scale(1.04); }
.play-btn svg { width: 20px; height: 20px; }
.wave { position: relative; height: 52px; cursor: pointer; touch-action: none; }
.wave canvas { width: 100%; height: 100%; display: block; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); grid-column: 2; margin-top: -6px; font-variant-numeric: tabular-nums; }

/* share sheet */
.share-sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; background: rgba(18, 18, 18, .35); opacity: 0; pointer-events: none; transition: opacity .2s; }
.share-sheet.is-open { opacity: 1; pointer-events: auto; }
.share-panel { width: min(480px, 100%); margin: 0 0 24px; padding: 26px; border-radius: var(--r-xl); transform: translateY(20px); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
.share-sheet.is-open .share-panel { transform: none; }
.share-panel h3 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.share-panel > p { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.share-grid a, .share-grid button { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.share-grid .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.share-grid a:hover .ico, .share-grid button:hover .ico { transform: translateY(-2px); }
.share-grid .ico svg { width: 24px; height: 24px; }
.ico.wa { background: #25d366; color: #fff; }
.ico.fb { background: #1877f2; color: #fff; }
.ico.x { background: #121212; color: #fff; }
.ico.tg { background: #229ed9; color: #fff; }
.ico.mail, .ico.copy, .ico.more { background: var(--surface-2); color: var(--ink); }
.ico.dl { background: var(--orange); color: #fff; }
.share-link { display: flex; gap: 8px; margin-top: 20px; padding: 6px 6px 6px 16px; border-radius: 99px; background: var(--surface-2); align-items: center; }
.share-link input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 13px; color: var(--ink-2); }

/* composer = the landing page's song bar */
.composer-wrap { padding: 0 20px 18px; }
.maker.composer { margin: 0 auto; width: min(880px, 100%); }
.maker.composer textarea { min-height: 52px; max-height: 200px; font-size: 16.5px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 16px); opacity: 0; padding: 12px 20px; border-radius: 99px; background: var(--black); color: #fff; font-size: 14px; transition: .25s var(--ease); pointer-events: none; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- share page ---------- */
.share-page { min-height: calc(100dvh - 88px); display: grid; place-items: center; padding: 20px 20px 80px; }
.listen { width: min(460px, 100%); padding: 16px 16px 24px; border-radius: 34px; }
.listen .cover { border-radius: 24px; aspect-ratio: 1 / .9; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; margin-bottom: 20px; }
.listen .cover span { position: relative; z-index: 1; font-size: clamp(24px, 6vw, 32px); font-weight: 800; line-height: 1.05; }
.listen .eyebrow, .listen h1, .listen .by, .listen #player, .listen .card-actions, .listen .cta { margin-inline: 8px; }
.listen h1 { font-size: 26px; font-weight: 800; margin-top: 6px; margin-bottom: 4px; }
.listen .by { color: var(--muted); margin-bottom: 20px; }
.listen .cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.listen .cta p { margin: 0; color: var(--ink-2); }

.legal { padding: 20px 0 96px; }
/* Centred: left-aligned, the card hugged the logo and left an empty strip the
   width of the nav buttons on the right of every wide screen. */
.legal article { width: min(760px, 100%); padding: 40px; border-radius: var(--r-xl); margin-inline: auto; }

/* Terms: card plus a contents list, centred together as one block. */
.terms-toc { display: none; }
@media (min-width: 1100px) {
  .legal-grid { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 36px; justify-content: center; align-items: start; }
  .legal-grid article { margin: 0; }
  .terms-toc { display: block; position: sticky; top: 24px; padding: 22px 20px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
}
.terms-toc-head { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.terms-toc ol { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.35; }
.terms-toc li { color: var(--ink-2); }
.terms-toc li + li { margin-top: 7px; }
/* ".legal .terms-toc" rather than ".terms-toc": the body-text rule ".legal a"
   further down underlines every link, and at equal specificity it would win —
   a list of fourteen underlined links reads as noise. */
.legal .terms-toc a { color: var(--ink); text-decoration: none; }
.legal .terms-toc a:hover { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.legal .terms-toc-contact { display: inline-block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); width: 100%; font-size: 14px; font-weight: 600; }
/* The clause landed on by a contents link is the one being read. */
.legal h2:target { color: var(--orange); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 14px 0 16px; }
.legal h2 { font-size: 19px; font-weight: 700; margin: 28px 0 6px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 1.25em; margin: 8px 0 12px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal h2 { scroll-margin-top: 90px; }
.terms-kicker { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3, var(--ink-2)); }
/* The two facts a WASPA complaint usually turns on — the price and how to
   stop — stated before the legal text, not only inside clauses 8 and 9. */
.terms-summary { margin: 4px 0 28px; padding: 16px 18px; border-radius: 16px; background: var(--orange-tint); box-shadow: inset 0 0 0 1px var(--orange-soft); }
.terms-summary p { margin: 0; color: var(--ink); }
.terms-summary p + p { margin-top: 6px; }
.terms-contact { line-height: 1.7; }
.terms-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .genre-tiles { grid-template-columns: repeat(4, 1fr); }
  .side-phone { display: none; }
  .phone.mid { transform: none; }
}
@media (max-width: 1000px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head p { justify-self: start; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .hero-sub { justify-content: center; text-align: center; }
  .hero-actions, .hero-note { justify-content: center; }
  .spin-badge, .hero-wave { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  /* Sign in stays on phones: a returning subscriber had no way in from the
     top bar (9 Oct 2026). Both buttons just get a little more compact. */
  .nav .nav-cta { gap: 6px; }
  .nav .btn-sm { --h: 38px; padding: 0 14px; font-size: 13.5px; }
  .studio { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: 60; transform: translateX(-102%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; box-shadow: 0 0 60px rgba(0, 0, 0, .4); padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .studio.side-open .side { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .side-close { display: grid; }
  .stage-top { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 14px 6px; }
  .stage-top .brand img { height: 30px; width: auto; }
  .thread { padding-top: 16px; }

  .hero-grid-lines .v1, .hero-grid-lines .v2, .tag-dot.hide-sm { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .hero { border-radius: 0 0 22px 22px; }
  .hero-inner { padding: 120px 0 70px; }
  /* On a phone the face would fill the screen; keep it lower and smaller so the
     headline and buttons stay on orange. */
  .hero-photo { height: 50%; opacity: .92; }
  .section { padding: 72px 0; }
  .features { grid-template-columns: 1fr; }
  .genre-tiles { grid-template-columns: repeat(2, 1fr); }
  .stage-panel { padding: 32px 12px 0; border-radius: 26px; }
  .phone { width: 270px; }
  .ideas { grid-template-columns: 1fr; gap: 8px; }
  .idea { padding: 12px 14px; }
  .empty .sub { margin: 12px 0 18px; font-size: 15px; }
  .cta-band { padding: 44px 24px; }
  .price-card, .auth-card { padding: 24px; }
  .card { padding: 18px; border-radius: var(--r-lg); }
  .title-input, .song-card h3 { font-size: 26px; }
  .song-card { grid-template-columns: 1fr; gap: 18px; }
  .song-card .cover { aspect-ratio: 16 / 9; }
  .card-actions .hint { flex-basis: 100%; order: 5; text-align: right; }
  .card-actions .btn { flex: 1; }
  .lyrics-view { padding: 14px 16px; max-height: 50vh; }
  .bubble { max-width: 90%; }
  .msg { gap: 8px; }
  .avatar { width: 32px; height: 32px; }
  .avatar img { width: 22px; height: 22px; }
  .thread-inner { width: calc(100% - 24px); }
  .composer-wrap { padding: 0 8px max(8px, env(safe-area-inset-bottom)); }
  .legal article { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Song maker (landing hero) and "your song is ready" teaser
   ========================================================================== */
.hero.one-page { min-height: 100dvh; border-radius: 0; flex-direction: column; justify-content: center; }
.hero.one-page > .wrap { width: min(1200px, 100% - 48px); }
.hero.one-page .hero-inner { padding: 120px 0 90px; }
.hero.one-page .hero-title { font-size: clamp(44px, 7.4vw, 116px); }

.maker {
  position: relative; z-index: 3;
  width: min(780px, 100%); margin: 40px auto 0; padding: 14px 14px 12px;
  border-radius: 24px;
  background: rgba(30, 10, 3, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 30px 70px -30px rgba(40, 8, 0, .7);
  color: #fff; text-align: left;
}
.maker textarea {
  width: 100%; min-height: 58px; max-height: 180px; resize: none; background: none; border: 0; outline: 0;
  padding: 8px 10px 10px; font-size: 18px; line-height: 1.45; color: #fff;
}
.maker textarea::placeholder { color: rgba(255, 255, 255, .55); }
.mk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-row .spacer { flex: 1; }
.mk-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s, transform .2s var(--ease); flex: none; }
.mk-icon:hover { background: rgba(255, 255, 255, .18); }
.mk-icon svg { width: 19px; height: 19px; }
.mk-icon.spin { animation: dice .5s var(--ease); }
@keyframes dice { 50% { transform: rotate(180deg) scale(1.12); } 100% { transform: rotate(360deg); } }
/* The SELECT fills the whole pill, padded past the icon and the arrow. iPhone
   Safari opens a picker only when the select itself is tapped, not its label:
   when the select was just its text, taps on the pill's edge, icon or arrow
   did nothing and the options looked broken on phones (9 Oct 2026). */
.mk-select { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background .15s; }
.mk-select:hover { background: rgba(255, 255, 255, .18); }
.mk-select svg.lead-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; opacity: .85; pointer-events: none; }
.mk-select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-70%) rotate(45deg); opacity: .8; pointer-events: none; }
.mk-select select { appearance: none; -webkit-appearance: none; background: none; border: 0; outline: 0; color: #fff; font: inherit; cursor: pointer; height: 100%; padding: 0 34px 0 39px; border-radius: inherit; max-width: 223px; }
.mk-select select:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); }
.mk-select select option { color: #121212; }
.mk-create {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 22px; border-radius: 99px;
  background: linear-gradient(95deg, #ff3f7a 0%, #ff5a3a 55%, #ff7a1f 100%); color: #fff; font-weight: 700; font-size: 15.5px;
  box-shadow: 0 10px 26px -10px rgba(255, 60, 90, .7); transition: transform .15s, filter .15s;
}
.mk-create:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mk-create svg { width: 17px; height: 17px; }
.mk-create[disabled] { opacity: .6; pointer-events: none; }
/* The error sits over the hero photo, so it carries its own background: pale
   text straight on the image was legible on the orange and invisible on the
   dark parts of the portrait, which is where it landed. */
.mk-error { margin: 10px 4px 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.35;
            color: #fff; background: rgba(120, 18, 0, .82); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset; }
.mk-error:empty { display: none; }
.mk-create.is-busy { cursor: progress; opacity: .92; }
.wait-status { display: flex; align-items: center; gap: 10px; margin: 18px 0; font-weight: 600; color: var(--ink); }
.wait-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2.5px solid var(--orange-soft); border-top-color: var(--orange); animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .wait-spin { animation-duration: 2.7s; } }
.mk-spin { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .mk-spin { animation-duration: 2.4s; } }
.maker-note { text-align: center; margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, .88); }
.maker-note a { text-decoration: underline; text-underline-offset: 3px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 20px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.hero-foot a:hover { color: #fff; }

/* ready (teaser) */
.ready-inner { position: relative; z-index: 3; text-align: center; padding: 130px 0 80px; }
.ready-inner h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.ready-inner h1 .thin { display: block; }
.teasers { display: flex; justify-content: center; gap: 18px; margin: 40px 0 26px; }
.teaser { position: relative; width: clamp(130px, 17vw, 190px); aspect-ratio: .74; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(40, 8, 0, .6); }
.teaser::before { content: ""; position: absolute; inset: -20%; filter: blur(26px); background: radial-gradient(40% 40% at 30% 30%, #c77dff, transparent 70%), radial-gradient(45% 45% at 70% 60%, #ff7a1f, transparent 70%), radial-gradient(35% 35% at 40% 80%, #ff4d8d, transparent 70%), #b5421c; }
.teaser.b::before { background: radial-gradient(40% 40% at 30% 30%, #ffc36b, transparent 70%), radial-gradient(45% 45% at 70% 60%, #ff5c8a, transparent 70%), radial-gradient(35% 35% at 40% 80%, #ffe36b, transparent 70%), #c9561d; }
.teaser .lock { position: absolute; inset: 0; display: grid; place-items: center; }
.teaser .lock span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
.teaser .lock svg { width: 20px; height: 20px; }
.brief-chip { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: min(640px, 100%); padding: 10px 16px; border-radius: 18px; background: rgba(30, 10, 3, .45); font-size: 14.5px; color: #fff; }
.brief-chip b { font-weight: 600; }
.brief-chip .sep { opacity: .5; }
.ready-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ready-cta .mk-create { height: 54px; padding: 0 30px; font-size: 16.5px; }
.ready-cta small { color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.ready-cta small a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

@media (max-width: 600px) {
  .maker { margin-top: 26px; border-radius: 20px; padding: 10px; }
  .maker textarea { font-size: 16px; }
  .mk-select { height: 40px; font-size: 13.5px; }
  .mk-select svg.lead-ico { left: 12px; }
  .mk-select select { padding: 0 30px 0 37px; max-width: 171px; }
  .mk-row .spacer { display: none; }
  .mk-create { flex: 1; justify-content: center; }
  .teasers { gap: 12px; }
  .hero-foot { position: static; margin: 10px 0 22px; }
  .tag-dot { display: none; }
  .wrap.hero-inner, .hero.one-page > .wrap { width: calc(100% - 28px); }
}

/* ==========================================================================
   Song options (landing song bar and studio composer)
   ========================================================================== */
.maker { width: min(880px, 100%); }
.mk-opts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px 10px; }
.mk-select select { max-width: 243px; text-overflow: ellipsis; }
.mk-select.pop { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.05); background: rgba(255, 255, 255, .28); } }
.mk-row { flex-wrap: nowrap; }
.mk-hint { min-width: 0; margin-left: 4px; font-size: 12.5px; color: rgba(255, 255, 255, .62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maker-note.signed-in { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.maker-note.signed-in .sep { opacity: .55; }
.maker-note.signed-in a, .maker-note.signed-in button { color: #fff; font-weight: 600; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.maker-note.signed-in .who i { background: #b8ffcf; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }

@media (max-width: 600px) {
  /* Landing: every option visible, two to a row, occasion across the top. */
  .mk-opts { display: grid; grid-template-columns: 1fr 1fr; }
  .mk-opts .mk-select:first-child { grid-column: 1 / -1; }
  .mk-select { width: 100%; min-width: 0; }
  .mk-select select { max-width: none; flex: 1; min-width: 0; width: 100%; }
  .mk-hint { display: none; }
  .maker.composer textarea { min-height: 44px; }
  .maker-note.signed-in .sep { display: none; }
}
/* Phones zoom into any field under 16px when it's focused — keep them at 16. */
@media (pointer: coarse) {
  .mk-select select, .maker textarea { font-size: 16px; }
}
@media (max-width: 360px) {
  .mk-create { padding: 0 16px; }
}
/* Short landscape phones: less chrome, the thread keeps the room. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero.one-page .hero-inner { padding: 90px 0 40px; }
  .hero-photo, .tag-dot, .spin-badge { display: none; }
  .maker { margin-top: 18px; }
  .maker textarea { min-height: 40px; }
  .empty { padding-top: 0; }
  .ideas { display: none; }
}

/* Phones on their side are wide but short: use the phone layout (drawer),
   and keep the composer to two rows. */
@media (max-height: 520px) and (orientation: landscape) and (max-width: 1000px) {
  .studio { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: min(320px, 60vw); z-index: 60; transform: translateX(-102%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s .3s; box-shadow: 0 0 60px rgba(0, 0, 0, .4); overflow-y: auto; }
  .studio.side-open .side { transform: none; visibility: visible; transition: transform .3s var(--ease); }
  .side-close { display: grid; }
  .stage-top { display: flex; align-items: center; justify-content: space-between; padding: 8px max(14px, env(safe-area-inset-right)) 4px max(14px, env(safe-area-inset-left)); }
  .stage-top .brand img { height: 26px; width: auto; }
  .round-btn { width: 36px; height: 36px; }
  .thread { padding-top: 4px; }
  .empty .hi, .empty .sub { display: none; }
  .composer-wrap { padding: 0 12px 8px; }
  .maker.composer { padding: 8px 10px; }
  .maker.composer textarea { min-height: 36px; padding: 4px 8px 6px; }
  .mk-hint { display: none; }
}

/* One row of options on anything wider than a phone. Sized to the song bar
   itself (a container query), not the screen: the studio's bar is narrower than
   the landing page's because of the sidebar. The chips shrink, then drop their
   icons, before they would ever wrap. */
.maker { container: maker / inline-size; }
@container maker (min-width: 540px) {
  .mk-opts { display: flex; flex-wrap: nowrap; }
  .mk-opts .mk-select { flex: 1 1 auto; min-width: 0; width: auto; }
  .mk-opts .mk-select select { width: 100%; min-width: 0; max-width: none; }
}
@container maker (max-width: 820px) {
  .mk-opts .mk-select { font-size: 14px; }
  .mk-opts .mk-select svg.lead-ico { left: 11px; }
  .mk-opts .mk-select select { padding: 0 26px 0 34px; }
  .mk-opts .mk-select::after { right: 11px; }
}
@container maker (max-width: 700px) {
  .mk-opts .mk-select svg.lead-ico { display: none; }
  .mk-opts .mk-select select { padding-left: 13px; }
}

/* "Type it ◉ Hear it" (and the studio's "What's ◉ next?") stay on one line at
   every size: the type scales with the width instead of wrapping. */
/* The line measures ~8.3× its font size (wide italic plus the orb), inside the
   page gutters; 9× leaves room for the italic overhang. */
.hero-title, .hero.one-page .hero-title { flex-wrap: nowrap; white-space: nowrap; font-size: min(116px, calc((100vw - 56px) / 9)); }
.studio-title { flex-wrap: nowrap; white-space: nowrap; font-size: min(92px, calc((100vw - 40px) / 8.4)); }
@media (min-width: 821px) { .studio-title { font-size: min(92px, calc((100vw - 360px) / 8.4)); } }

/* Phones: the five options fold away behind "Advanced". */
.mk-adv { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; font-weight: 600; flex: none; transition: background .15s; }
.mk-adv:hover, .mk-adv[aria-expanded="true"] { background: rgba(255, 255, 255, .2); }
.mk-adv svg { width: 17px; height: 17px; }
@media (max-width: 600px) {
  .mk-adv { display: inline-flex; }
  .mk-opts { display: none; }
  .mk-opts.is-open { display: grid; grid-template-columns: 1fr 1fr; animation: fold-in .2s var(--ease); }
  .composer .mk-opts.is-open { max-height: 40vh; overflow-y: auto; }
}
@keyframes fold-in { from { opacity: 0; transform: translateY(-4px); } }
@media (max-width: 380px) {
  /* Too narrow for four controls in a row: Create gets its own line. */
  .mk-row { flex-wrap: wrap; }
  .mk-row .mk-create { flex: 1 1 100%; justify-content: center; }
}

/* Icons in the Create and Advanced buttons never get squeezed out. */
.mk-create svg, .mk-adv svg { flex: none; }
@media (max-width: 600px) {
  .mk-row { gap: 6px; }
  .mk-row .mk-create { min-width: 0; padding: 0 14px; overflow: hidden; }
  .mk-adv { padding: 0 12px; }
}

/* ==========================================================================
   Songwriter chat: notes, breakdown card, chat-mode composer, confirm step
   ========================================================================== */
/* Jivo's side of the conversation: dark glass, like the subscriber's, but left. */
.note {
  max-width: 78%; padding: 12px 16px; border-radius: 6px 20px 20px 20px; color: #fff; font-size: 15px; line-height: 1.5;
  background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset; white-space: pre-wrap; overflow-wrap: anywhere;
}
.note.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.note.typing i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: dots 1.1s infinite ease-in-out; }
.note.typing i:nth-child(2) { animation-delay: .15s; }
.note.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.msg.is-updating .card { opacity: .55; filter: saturate(.6); transition: opacity .2s; pointer-events: none; }
.card-sub { margin: 12px 0 0; color: var(--muted); font-size: 14px; }

/* The breakdown: every choice visible and editable before anything is recorded. */
.bd-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
.bd-field { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); min-width: 0; position: relative; }
.bd-field > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bd-field b { font-size: 15px; font-weight: 600; }
.bd-field select { appearance: none; -webkit-appearance: none; border: 0; outline: 0; background: none; font: 600 15px/1.3 var(--font); color: var(--ink); padding: 0 18px 0 0; width: 100%; min-width: 0; text-overflow: ellipsis; cursor: pointer; }
label.bd-field::after { content: ""; position: absolute; right: 13px; bottom: 15px; width: 6px; height: 6px; border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
label.bd-field:hover { background: #ececea; }
label.bd-field:focus-within { box-shadow: 0 0 0 2px var(--black) inset; background: #fff; }
.bd-sections { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: sec; }
.bd-sections li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--orange-tint); color: var(--orange-2); font-size: 12.5px; font-weight: 600; }
.bd-sections li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: .45; margin-left: -2px; }
.bd-style { display: grid; gap: 4px; margin-bottom: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); }
.bd-style > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bd-style textarea { border: 0; outline: 0; background: none; resize: none; font: 400 14.5px/1.5 var(--font); color: var(--ink-2); padding: 0; field-sizing: content; min-height: 3em; max-height: 12em; overflow: auto; }
.bd-style:focus-within { box-shadow: 0 0 0 2px var(--black) inset; background: #fff; }
.breakdown .title-input { margin-top: 2px; }
.make-btn { background: linear-gradient(95deg, #ff3f7a 0%, #ff5a3a 55%, #ff7a1f 100%); box-shadow: 0 10px 26px -10px rgba(255, 60, 90, .6); }
.make-btn:hover { background: linear-gradient(95deg, #ff3f7a 0%, #ff5a3a 55%, #ff7a1f 100%); filter: brightness(1.06); }

/* Composer in chat mode: the song's settings live on the card now. */
.composer.is-revising .mk-opts,
.composer.is-revising .mk-adv,
.composer.is-revising #st-dice { display: none !important; }

/* Confirm */
dialog.confirm { width: min(460px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.confirm::backdrop { background: rgba(20, 10, 6, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.confirm[open] { animation: pop-in .22s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
dialog.confirm form { padding: 24px; }
.confirm-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; }
.confirm-head .cover { width: 76px; border-radius: 18px; }
.confirm-kicker { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.confirm-head h3 { font: italic 300 26px/1.1 var(--font); font-stretch: 125%; letter-spacing: -.02em; overflow-wrap: anywhere; }
.confirm-meta { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.confirm-cost { margin: 20px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--orange-tint); color: var(--ink); font-size: 14.5px; }
.confirm-fine { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); }
.confirm-fine:has(+ .confirm-note) { margin-bottom: 8px; }
.confirm-note { font-size: 12.5px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn { height: 48px; }
.confirm-actions .mk-create { height: 48px; }

@media (max-width: 820px) {
  .bd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note { max-width: 90%; }
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn, .confirm-actions .mk-create { width: 100%; justify-content: center; flex: none; height: 50px; }
  .composer.is-revising .mk-hint { display: block; flex: 1; }
}

/* ==========================================================================
   Admin portal — a tool, read in columns rather than paragraphs
   ========================================================================== */
.admin-page { background: var(--bg); }
.a-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; padding-block: 26px 60px; }
.a-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }
.a-top h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.a-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.a-top-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.a-periods { display: flex; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.a-periods a { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.a-periods a:hover { background: var(--surface-2); }
.a-periods a.is-on { background: var(--black); color: #fff; }
.a-signout { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.a-signout:hover { color: var(--ink); }

.a-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.a-flag { font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-2); }
.a-flag.on { background: #e8f6ef; color: var(--ok); box-shadow: none; }
.a-flag.off { background: var(--surface-2); color: var(--muted); box-shadow: none; }
.a-flag.warn { background: var(--warn-bg); color: var(--warn); box-shadow: none; }

.a-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.a-card { background: var(--surface); border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; align-content: start; }
.a-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.a-v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.a-note { font-size: 12.5px; color: var(--muted); }

.a-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.a-panel { background: var(--surface); border-radius: var(--r-md); padding: 18px 18px 16px; box-shadow: var(--shadow); margin-bottom: 18px; }
.a-two .a-panel { margin-bottom: 0; }
.a-panel h2 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.a-empty { color: var(--muted); font-size: 14px; margin: 0; }

.a-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.a-table th { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 10px 8px 0; }
.a-table td { padding: 8px 10px 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.a-table tbody tr:first-child td { border-top: 0; }
.a-table .n { text-align: right; padding-right: 0; }
.a-table th.n { text-align: right; }
.a-table tfoot td { border-top: 2px solid var(--line-2); }
.a-table .indent { padding-left: 16px; color: var(--ink-2); }
.a-table .bar-col { width: 30%; }
.a-alert-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.a-alert-row form { margin: 0; }
.a-bar { display: block; height: 8px; border-radius: 4px; background: var(--orange); min-width: 2px; }
.a-scroll { overflow-x: auto; }
/* Eight columns cannot share a phone: the table keeps its natural width and the
   panel scrolls sideways, rather than squeezing "R1.59" into "0R1.". */
.a-scroll .a-table { min-width: 760px; }
.a-scroll .a-table td, .a-scroll .a-table th { padding-right: 14px; white-space: nowrap; }
.a-status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.a-status.ready { background: #e8f6ef; color: var(--ok); }
.a-status.failed, .a-status.refused { background: var(--err-bg); color: var(--err); }
.a-status.queued, .a-status.rendering { background: var(--orange-tint); color: var(--orange-2); }
.a-foot { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.a-foot code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

@media (max-width: 900px) {
  .a-grid { grid-template-columns: 1fr 1fr; }
  .a-two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .a-grid { grid-template-columns: 1fr; }
  .a-top { align-items: flex-start; }
  .a-periods { width: 100%; overflow-x: auto; }
}

/* Admin logs */
.a-log { border-top: 1px solid var(--line); padding: 12px 0; }
.a-log:first-of-type { border-top: 0; }
.a-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.a-log-head b { color: var(--ink); font-size: 13.5px; }
.a-log-msg { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.a-ref { font-size: 11.5px; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; }
.a-log details { margin-top: 8px; }
.a-log summary { cursor: pointer; font-size: 13px; color: var(--ink-2); }
.a-trace { margin: 8px 0 0; padding: 12px; border-radius: 10px; background: var(--surface-2); font-size: 12px; line-height: 1.55; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; }

/* Account page */
.acc-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.acc-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px 10px 0; width: 42%; vertical-align: top; }
.acc-table td { font-size: 14.5px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.acc-table tr:first-child td, .acc-table tr:first-child th { border-top: 1px solid var(--line); }
.acc-on { font-weight: 600; color: var(--ok); }
.acc-off { font-weight: 600; color: var(--muted); }
.acc-end { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.acc-end summary { cursor: pointer; font-size: 13.5px; color: var(--muted); list-style: none; }
.acc-end summary::-webkit-details-marker { display: none; }
.acc-end summary::after { content: " ›"; }
.acc-end[open] summary { color: var(--ink); font-weight: 600; }
.acc-end p { font-size: 13.5px; color: var(--ink-2); margin: 12px 0; }
.acc-confirm { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.acc-confirm input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }
.acc-end .btn { background: var(--surface-2); color: var(--err); box-shadow: 0 0 0 1px var(--line) inset; }
.acc-end .btn:hover:not([disabled]) { background: var(--err-bg); }

/* ==========================================================================
   Admin dashboard v2: brand navy header, coloured KPI tiles, SVG charts.
   Prefix is jd- ("Jivo dashboard"). NEVER ad-: ad blockers hide anything
   named ad-card, ad-note, ad-hero... and the page silently loses most of
   itself in those browsers (9 Oct 2026).
   Series colours are the validated categorical slots (CVD-checked on white):
   Lyria orange, Claude blue, Billed aqua. Status colours are reserved for
   subscriber state and always sit beside a label.
   ========================================================================== */
.admin-page {
  --navy: #0b2a4f;
  --navy-2: #12406f;
  --s-lyria: #eb6834;
  --s-claude: #2a78d6;
  --s-billed: #1baf7a;
  --s-recorded: #0b2a4f;
  --s-other: #d3d3ce;
  --st-good: #0ca30c;
  --st-warn: #fab219;
  --st-bad: #d03b3b;
  --st-idle: #c3c2b7;
  --grid: #ececE8;
  --axis: #c3c2b7;
}

.jd-hero {
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(242, 78, 30, .28) 0%, rgba(242, 78, 30, 0) 46%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-radius: var(--r-lg); padding: 22px 24px 18px; margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
}
.jd-hero-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.jd-brand { display: flex; gap: 14px; align-items: center; }
.jd-brand img { background: #fff; border-radius: 10px; padding: 4px; }
.jd-brand h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.jd-brand p { margin: 2px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.jd-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.jd-hero-actions form { margin: 0; }
.jd-periods { display: flex; gap: 3px; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; }
.jd-periods a { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .82); }
.jd-periods a:hover { background: rgba(255, 255, 255, .12); }
.jd-periods a.is-on { background: #fff; color: var(--navy); }
.jd-link { font: inherit; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .8); background: none; border: 0; cursor: pointer; padding: 0; }
.jd-link:hover { color: #fff; text-decoration: underline; }
.jd-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.jd-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .9); }
.jd-flag i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-idle); }
.jd-flag.on i { background: #3ee07a; }
.jd-flag.warn { background: rgba(250, 178, 25, .18); color: #ffe2a3; }
.jd-flag.warn i { background: var(--st-warn); }
a.jd-flag:hover { background: rgba(255, 255, 255, .18); }

.jd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.jd-kpi { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--r-md); padding: 18px 18px 14px;
  box-shadow: var(--shadow); display: grid; gap: 4px; align-content: start; }
.jd-kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--kpi); }
.jd-kpi.k-subs { --kpi: var(--navy); }
.jd-kpi.k-songs { --kpi: var(--orange); }
.jd-kpi.k-billed { --kpi: var(--s-billed); }
.jd-kpi.k-spend { --kpi: var(--s-claude); }
.jd-k { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.jd-v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.jd-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.jd-kpi .jd-note { margin: 0; }
.jd-spark { width: 100%; height: 34px; margin-top: 8px; overflow: visible; }
.jd-spark .sp-line { fill: none; stroke: var(--kpi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.jd-spark .sp-area { fill: var(--kpi); opacity: .1; }
.jd-spark .sp-dot { fill: var(--kpi); stroke: #fff; stroke-width: 2; }

.jd-card { background: var(--surface); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.jd-card h2 { font-size: 16px; font-weight: 700; margin: 0; }
.jd-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.jd-card-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; }
.jd-card-head form { margin: 0; }
.jd-two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-bottom: 18px; }
.jd-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.jd-two .jd-card, .jd-three .jd-card { margin-bottom: 0; }
.jd-empty { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.jd-big { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; margin: 4px 0 12px; }

.jd-legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 2px 0 0; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.jd-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.jd-legend .sw { margin-right: 0; }
.ln { display: inline-block; width: 16px; height: 2px; border-radius: 2px; }
.sw.s-lyria, .jd-split .s-lyria { background: var(--s-lyria); }
.sw.s-claude, .jd-split .s-claude { background: var(--s-claude); }
.ln.s-billed { background: var(--s-billed); }
.sw.s-recorded { background: var(--s-recorded); }
.sw.s-other { background: var(--s-other); }

.jd-chart { width: 100%; min-height: 240px; }
.jd-svg { display: block; overflow: visible; font-family: var(--font); }
.jd-svg .jd-grid { stroke: var(--grid); stroke-width: 1; }
.jd-svg .jd-base { stroke: var(--axis); stroke-width: 1; }
.jd-svg .jd-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.jd-svg .mk.s-lyria { fill: var(--s-lyria); }
.jd-svg .mk.s-claude { fill: var(--s-claude); }
.jd-svg .mk.s-recorded { fill: var(--s-recorded); }
.jd-svg .mk.s-other { fill: var(--s-other); }
.jd-svg .ln-path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.jd-svg .ln-path.s-billed { stroke: var(--s-billed); }
.jd-svg .ln-dot.s-billed { fill: var(--s-billed); stroke: #fff; stroke-width: 2; }
.jd-svg .jd-cross { stroke: var(--ink-2); stroke-width: 1; opacity: .35; }
.jd-svg rect[tabindex]:focus { outline: none; }
.jd-svg rect[tabindex]:focus-visible { stroke: var(--navy); stroke-width: 2; }

.jd-split { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); margin: 4px 0 14px; }
.jd-split span { display: block; min-width: 0; cursor: default; }
.jd-split span:hover, .jd-split span:focus-visible { filter: brightness(1.08); outline: none; }
.jd-split .st-good, .dot.st-good { background: var(--st-good); }
.jd-split .st-warn, .dot.st-warn { background: var(--st-warn); }
.jd-split .st-bad, .dot.st-bad { background: var(--st-bad); }
.jd-split .st-idle, .dot.st-idle { background: var(--st-idle); }

.jd-rows { list-style: none; margin: 0; padding: 0; }
.jd-rows li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.jd-rows li:first-child { border-top: 0; }
.jd-rows li b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.jd-rows.compact li { padding: 6px 0; font-size: 13.5px; }
.jd-rows .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.jd-funnel { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.jd-funnel li { display: grid; grid-template-columns: 74px 1fr 38px; align-items: center; gap: 10px; font-size: 13.5px; }
.jd-funnel-k { color: var(--ink-2); }
.jd-funnel-bar { height: 18px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.jd-funnel-bar i { display: block; height: 100%; border-radius: 0 4px 4px 0; min-width: 2px; }
.jd-funnel-bar i.f1 { background: #86b6ef; }
.jd-funnel-bar i.f2 { background: #2a78d6; }
.jd-funnel-bar i.f3 { background: var(--navy); }
.jd-funnel li b { text-align: right; font-variant-numeric: tabular-nums; }

.jd-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 4px; }
.jd-meter { background: var(--surface-2); border-radius: var(--r-sm); padding: 14px; }
.jd-meter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.jd-meter-head b.muted { color: var(--muted); font-weight: 600; }
.jd-meter-track { height: 10px; border-radius: 5px; background: #dcefdc; overflow: hidden; }
.jd-meter-track i { display: block; height: 100%; border-radius: 5px; background: var(--st-good); }
.jd-meter.m-warn .jd-meter-track { background: #fdf0d2; }
.jd-meter.m-warn .jd-meter-track i { background: var(--st-warn); }
.jd-meter.m-bad .jd-meter-track { background: #f8dcdc; }
.jd-meter.m-bad .jd-meter-track i { background: var(--st-bad); }
.jd-meter.m-none .jd-meter-track { background: var(--line); }
/* "Balance now" after a top-up: arms the low-credit email. */
.jd-balance { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.jd-balance label { font-size: 12.5px; font-weight: 600; color: var(--ink-2, var(--navy)); }
.jd-balance-row { display: flex; align-items: center; gap: 8px; }
.jd-dollar { font-weight: 600; color: var(--muted); }
.jd-balance input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-variant-numeric: tabular-nums; }
.jd-balance input:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.jd-balance small { font-size: 12px; color: var(--muted); }
.jd-source { font-size: 11.5px; color: var(--muted); }

.jd-btn { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--navy); color: #fff; }
.jd-btn:hover { background: var(--navy-2); }
.jd-notice { font-size: 13.5px; padding: 10px 14px; border-radius: var(--r-sm); margin: 12px 0; }
.jd-notice.ok { background: #e8f6ef; color: var(--ok); }
.jd-notice.bad { background: var(--err-bg); color: var(--err); }

.jd-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.jd-table th { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 10px 8px 0; }
.jd-table td { padding: 8px 10px 8px 0; font-size: 14px; border-top: 1px solid var(--line); }
.jd-table tbody tr:first-child td { border-top: 0; }
.jd-table .n, .jd-table th.n { text-align: right; }
.jd-table tfoot td { border-top: 2px solid var(--line-2); }
.jd-table tbody tr:hover td { background: var(--surface-2); }
.jd-scroll { overflow-x: auto; }
.jd-scroll .jd-table { min-width: 760px; }
.jd-scroll .jd-table td, .jd-scroll .jd-table th { padding-right: 14px; white-space: nowrap; }
.jd-details summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.jd-details[open] summary { margin-bottom: 14px; }

.jd-tip { position: fixed; z-index: 50; pointer-events: none; background: #fff; color: var(--ink); border-radius: 10px;
  padding: 9px 12px; min-width: 150px; box-shadow: 0 0 0 1px rgba(11, 11, 11, .08), 0 12px 28px -10px rgba(0, 0, 0, .3); font-size: 12.5px; }
.jd-tip-title { color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.jd-tip-row { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.jd-tip-row b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.jd-tip-row span { color: var(--ink-2); }
.jd-tip .key { width: 12px; height: 2px; border-radius: 2px; flex: none; }
.jd-tip .key.s-lyria { background: var(--s-lyria); }
.jd-tip .key.s-claude { background: var(--s-claude); }
.jd-tip .key.s-billed { background: var(--s-billed); }
.jd-tip .key.s-recorded { background: var(--s-recorded); }
.jd-tip .key.s-other { background: #a9a9a3; }

@media (max-width: 1020px) {
  .jd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jd-three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .jd-two, .jd-three, .jd-meters { grid-template-columns: 1fr; }
  .jd-hero { padding: 18px 16px 14px; }
  .jd-v { font-size: 28px; }
}
@media (max-width: 420px) {
  .jd-kpis { grid-template-columns: 1fr; }
}

.jd-muted { color: var(--muted); font-size: 12.5px; }
.jd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.jd-actions form { margin: 0; }
.jd-btn.ghost { background: var(--surface); color: var(--navy); box-shadow: 0 0 0 1px var(--line-2) inset; display: inline-block; }
.jd-btn.ghost:hover { background: var(--surface-2); }
.jd-flag.bad { background: rgba(208, 59, 59, .22); color: #ffd0d0; }
.jd-flag.bad i { background: #ff6b6b; }
.jd-flag.off { color: rgba(255, 255, 255, .6); }
.jd-flag-form { margin: 0; display: inline-flex; }
.jd-flag-btn { font: inherit; font-size: 12.5px; font-weight: 600; border: 0; cursor: pointer; }
.jd-flag-btn:hover { background: rgba(255, 255, 255, .2); }
.jd-flag[data-tip] { cursor: help; }

/* Privacy notice: the two contact tables and the "last updated" line. */
.terms-updated { margin: -4px 0 18px; font-size: 13px; color: var(--muted); }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 22px; font-size: 14.5px; }
.legal-table caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--ink); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-top: 1px solid var(--line); }
.legal-table th { width: 38%; font-weight: 600; color: var(--ink-2); }
.legal-table td { overflow-wrap: anywhere; }
.legal article ul ul { margin-top: 8px; }
.legal article li > strong:first-child { display: inline-block; margin-bottom: 2px; }
@media (max-width: 560px) {
  .legal-table th, .legal-table td { display: block; width: auto; padding: 4px 0; border-top: 0; }
  .legal-table tr { display: block; padding: 8px 0; border-top: 1px solid var(--line); }
}

/* Admin: blocked lyrics and the learning list. */
.jd-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.jd-term { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.jd-term button { font: inherit; font-size: 12.5px; font-weight: 700; border: 0; cursor: pointer; border-radius: 999px; padding: 3px 9px;
  background: var(--navy); color: #fff; }
.jd-term button:hover { background: var(--navy-2); }
.jd-term.sug { background: #fff; }
.jd-term.on { background: #e8f6ef; box-shadow: none; padding-right: 12px; }
.jd-term.on i { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.jd-term-add { display: flex; gap: 8px; margin-top: 14px; max-width: 460px; }
.jd-term-add input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.jd-block { border-top: 1px solid var(--line); padding: 14px 0; }
.jd-block:first-of-type { border-top: 0; }
.jd-block-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jd-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.jd-pill.ok { background: #e8f6ef; color: var(--ok); }
.jd-pill.bad { background: var(--err-bg); color: var(--err); }
.jd-block details { margin-top: 10px; }
.jd-block summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); }
.jd-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.jd-compare h3 { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.jd-compare pre { margin: 0; padding: 12px; border-radius: 10px; background: var(--surface-2); font: inherit; font-size: 13px;
  line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 360px; overflow: auto; }
@media (max-width: 760px) { .jd-compare { grid-template-columns: 1fr; } }

@media (max-width: 340px) {
  .nav .btn-sm { padding: 0 11px; font-size: 13px; }
  .nav .brand img { width: 72px; height: auto; }
}
