:root {
  color-scheme: light;
  --bg: #f7efe3;
  --card: #fffaf2;
  --ink: #17110e;
  --muted: #73675e;
  --accent: #9b3f20;
  --accent-dark: #6e2a15;
  --gold: #d9a441;
  --border: #e2d3c0;
  --error: #aa1e1e;
  --shadow: 0 30px 90px rgb(52 38 26 / 18%);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgb(247 239 227 / 76%) 0%, rgb(247 239 227 / 94%) 540px, var(--bg) 100%),
    linear-gradient(135deg, rgb(255 255 255 / 46%), transparent 40%),
    radial-gradient(circle at 12% 6%, rgb(217 164 65 / 24%), transparent 24rem),
    radial-gradient(circle at 88% 24%, rgb(155 63 32 / 16%), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgb(31 26 23 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(31 26 23 / 4%) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 60%), transparent 72%);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.page-glow {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.8;
  pointer-events: none;
}

.page-glow-one {
  top: 110px;
  right: -140px;
  width: 360px;
  height: 360px;
  background: rgb(155 63 32 / 16%);
}

.page-glow-two {
  bottom: -120px;
  left: -120px;
  width: 300px;
  height: 300px;
  background: rgb(217 164 65 / 22%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-icon {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgb(31 17 14 / 20%);
}

.tagline {
  padding: 9px 13px;
  border: 1px solid rgb(31 26 23 / 10%);
  border-radius: 999px;
  background: rgb(255 250 242 / 64%);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero {
  max-width: 980px;
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.version-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.version-row .eyebrow {
  margin-bottom: 0;
}

.beta-badge {
  padding: 4px 8px;
  border: 1px solid rgb(25 200 255 / 28%);
  border-radius: 999px;
  background: rgb(25 200 255 / 12%);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.65;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgb(155 63 32 / 14%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 86%), rgb(255 250 242 / 76%)),
    rgb(255 250 242 / 72%);
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    0 12px 28px rgb(52 38 26 / 8%);
}

.feature-list li::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
  box-shadow: 0 0 0 4px rgb(217 164 65 / 14%);
}

.about-card {
  position: relative;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 42px);
  align-items: center;
  width: 100%;
  max-width: none;
  justify-self: stretch;
  margin-top: 34px;
  padding: clamp(24px, 5vw, 42px);
  overflow: hidden;
  border: 1px solid rgb(155 63 32 / 14%);
  border-radius: 34px;
  background:
    radial-gradient(circle at 8% 18%, rgb(217 164 65 / 20%), transparent 18rem),
    linear-gradient(135deg, rgb(255 255 255 / 82%), rgb(255 250 242 / 62%)),
    rgb(255 250 242 / 70%);
  box-shadow: 0 28px 70px rgb(52 38 26 / 12%);
}

.about-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgb(155 63 32 / 10%);
  content: "";
}

.about-card > * {
  position: relative;
  z-index: 1;
}

.profile-frame {
  position: relative;
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgb(255 250 242 / 72%), rgb(155 63 32 / 16%)),
    rgb(255 250 242 / 88%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%);
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 6px solid rgb(255 250 242 / 94%);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 22px 42px rgb(52 38 26 / 22%);
}

.profile-badge {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 3px solid rgb(255 250 242 / 96%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff4e4;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 24px rgb(31 17 14 / 18%);
}

.profile-badge-icon {
  width: 16px;
  height: 16px;
}

.about-card h2 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.about-card p:not(.section-kicker) {
  max-width: 760px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.album-art-link {
  display: block;
  width: min(520px, 100%);
  margin: 18px 0 14px;
  overflow: hidden;
  border: 1px solid rgb(255 250 242 / 70%);
  border-radius: 22px;
  background: #1f1a17;
  box-shadow: 0 18px 42px rgb(31 17 14 / 18%);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.album-art-link:hover {
  box-shadow: 0 24px 54px rgb(31 17 14 / 24%);
  transform: translateY(-2px);
}

.album-art {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.music-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 13px 17px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink), #33251d);
  color: #fff4e4;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 32px rgb(31 17 14 / 20%);
}

.music-link::after {
  content: "->";
  letter-spacing: -0.08em;
}

.music-link:hover {
  background: var(--accent-dark);
}

.card {
  position: relative;
  padding: clamp(24px, 5vw, 40px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 92% 8%, rgb(217 164 65 / 18%), transparent 18rem),
    linear-gradient(135deg, rgb(255 255 255 / 78%), rgb(255 250 241 / 88%)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
  content: "";
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.section-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: -0.04em;
}

.form-subtitle {
  max-width: none;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-width: auto;
  white-space: nowrap;
  padding: 10px 13px;
  border: 0;
  border-radius: 999px;
  background: rgb(31 26 23 / 7%);
  color: var(--accent-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgb(155 63 32 / 8%);
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.status-pill:hover:not(:disabled) {
  background: rgb(31 26 23 / 10%);
  box-shadow:
    inset 0 0 0 1px rgb(155 63 32 / 12%),
    0 10px 22px rgb(52 38 26 / 8%);
  transform: none;
}

.status-pill:focus-visible {
  outline: 3px solid rgb(143 61 32 / 18%);
  outline-offset: 3px;
}

.status-pill.unavailable {
  color: var(--muted);
}

.status-pill.open {
  background: rgb(217 164 65 / 12%);
  color: var(--accent-dark);
}

.status-pill.limited {
  background: rgb(170 30 30 / 8%);
  color: var(--error);
  box-shadow: inset 0 0 0 1px rgb(170 30 30 / 14%);
}

.status-pill.unavailable .status-dot {
  background: var(--muted);
  box-shadow: 0 0 0 4px rgb(115 103 94 / 14%);
}

.status-pill.limited .status-dot {
  background: var(--error);
  box-shadow: 0 0 0 4px rgb(170 30 30 / 12%);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(217 164 65 / 18%);
}

.job-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 6px;
  border: 1px solid rgb(31 26 23 / 8%);
  border-radius: 24px;
  background: rgb(255 255 255 / 62%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 90%),
    0 16px 36px rgb(52 38 26 / 7%);
}

input {
  width: 100%;
  padding: 17px 19px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
}

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

input:focus {
  outline: 3px solid rgb(143 61 32 / 18%);
  outline-offset: 2px;
}

button {
  min-width: 132px;
  padding: 17px 24px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 28px rgb(155 63 32 / 24%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

button:hover:not(:disabled) {
  background: linear-gradient(135deg, #ad4a27, var(--accent-dark));
  box-shadow: 0 20px 34px rgb(155 63 32 / 28%);
  transform: translateY(-1px);
}

button:disabled {
  cursor: default;
  opacity: 0.72;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.4em;
  background: rgb(31 26 23 / 8%);
}

.status-panel,
.result-panel {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgb(255 255 255 / 82%);
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.status-copy {
  flex: 1;
  min-width: 0;
}

.status-panel.error {
  border-color: rgb(170 30 30 / 35%);
  background: rgb(170 30 30 / 6%);
  color: var(--error);
}

.status-panel.error .spinner {
  display: none;
}

.status-panel.complete .spinner {
  position: relative;
  border: 0;
  background: var(--gold);
  animation: none;
}

.status-panel.complete .spinner::after {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 7px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  content: "";
  transform: rotate(45deg);
}

.status-panel.complete .status-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  align-items: center;
}

.status-panel.complete .status-title,
.status-panel.complete .status-message {
  grid-column: 1;
}

.status-panel.complete .status-action-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
}

.status-title {
  margin-bottom: 4px;
  font-weight: 800;
}

.status-message {
  margin-bottom: 0;
  color: var(--muted);
}

.status-action-button {
  min-width: auto;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 12px 22px rgb(155 63 32 / 18%);
}

.status-panel.complete .status-action-button {
  margin-top: 0;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgb(143 61 32 / 18%);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

.result-panel {
  padding: 22px;
}

.result-panel h3 {
  margin-bottom: 16px;
}

.result-panel h4 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.link-list a,
.link-list .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 0;
  background: rgb(143 61 32 / 10%);
  color: var(--accent-dark);
  box-shadow: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.result-tabs {
  display: grid;
  gap: 14px;
}

.tab-list {
  display: inline-flex;
  gap: 8px;
  width: fit-content;
  padding: 5px;
  border: 1px solid rgb(31 26 23 / 8%);
  border-radius: 999px;
  background: rgb(31 26 23 / 5%);
}

.tab-button {
  min-width: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--accent-dark);
  box-shadow: none;
  font-size: 0.92rem;
}

.tab-button:hover:not(:disabled) {
  background: rgb(255 255 255 / 72%);
  box-shadow: none;
  transform: none;
}

.tab-button[aria-selected="true"] {
  background: #fffaf2;
  color: var(--ink);
  box-shadow: 0 8px 20px rgb(52 38 26 / 10%);
}

.tab-panels {
  min-width: 0;
}

.tab-panel[hidden] {
  display: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.result-actions a,
.result-actions .link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 0;
  background: rgb(143 61 32 / 10%);
  color: var(--accent-dark);
  box-shadow: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.result-actions a:hover,
.result-actions .link-button:hover:not(:disabled) {
  background: rgb(143 61 32 / 16%);
  box-shadow: none;
  transform: none;
}

.pdf-frame {
  display: block;
  width: 100%;
  min-height: min(72vh, 760px);
  border: 1px solid rgb(31 26 23 / 10%);
  border-radius: 16px;
  background: #fff;
}

.audio-result {
  padding: 16px;
  border: 1px solid rgb(31 26 23 / 10%);
  border-radius: 16px;
  background: #fffaf2;
}

.audio-result audio {
  display: block;
  width: 100%;
}

.text-result {
  --text-result-font-size: 14px;

  max-height: min(72vh, 760px);
  font-size: var(--text-result-font-size);
  white-space: pre;
}

pre {
  max-height: 520px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: 16px;
  background: #1f1a17;
  color: #fff7eb;
  line-height: 1.5;
  white-space: pre-wrap;
}

.legal-footer {
  max-width: 900px;
  margin: 26px auto 0;
  padding: 22px 0 0;
  border-top: 1px solid rgb(31 26 23 / 10%);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.legal-footer p {
  margin-bottom: 8px;
}

.legal-footer p:last-child {
  margin-bottom: 0;
}

.hidden {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Dark dashboard refresh */
:root {
  color-scheme: dark;
  --bg: #0b111b;
  --card: #121c29;
  --card-strong: #172536;
  --ink: #f7fbff;
  --muted: #aeb9c7;
  --accent: #19c8ff;
  --accent-dark: #1673ff;
  --gold: #f0d07a;
  --border: rgb(180 222 255 / 22%);
  --error: #ff6f8f;
  --success: #64f0b4;
  --shadow: 0 28px 90px rgb(0 0 0 / 38%);
}

body {
  background:
    radial-gradient(circle at 78% 10%, rgb(80 190 255 / 18%), transparent 26rem),
    radial-gradient(circle at 10% 8%, rgb(126 101 255 / 18%), transparent 24rem),
    radial-gradient(circle at 82% 76%, rgb(255 103 158 / 12%), transparent 24rem),
    linear-gradient(180deg, #101927 0%, #0a1019 58%, #080d14 100%);
  color: var(--ink);
}

body::before {
  z-index: -4;
  background-image:
    linear-gradient(rgb(137 196 255 / 5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(137 196 255 / 5%) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 78%), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(ellipse at top right, rgb(255 255 255 / 7%), transparent 34rem),
    linear-gradient(120deg, rgb(15 24 37 / 70%), rgb(9 14 23 / 94%));
  content: "";
}

.shell {
  width: min(1180px, calc(100% - 40px));
  padding: 22px 0 56px;
}

.page-glow {
  filter: blur(18px);
  opacity: 0.95;
}

.page-glow-one {
  top: -120px;
  right: -160px;
  width: 470px;
  height: 470px;
  background: rgb(26 200 255 / 18%);
}

.page-glow-two {
  bottom: -160px;
  left: -120px;
  width: 390px;
  height: 390px;
  background: rgb(255 103 158 / 14%);
}

.topbar {
  margin-bottom: 30px;
}

.brand {
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: 0 0 24px rgb(25 200 255 / 36%);
}

.tagline {
  border-color: rgb(180 222 255 / 16%);
  background: rgb(255 255 255 / 6%);
  color: var(--muted);
}

.hero {
  max-width: 850px;
  margin-bottom: 30px;
}

.eyebrow,
.section-kicker {
  color: rgb(205 222 241 / 86%);
  letter-spacing: 0.16em;
}

h1 {
  max-width: 870px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(3rem, 6.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  text-shadow: 0 10px 40px rgb(0 0 0 / 34%);
}

.lede {
  max-width: 740px;
  color: rgb(218 228 242 / 82%);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.feature-list {
  gap: 12px;
  margin-top: 28px;
}

.feature-list li {
  border-color: rgb(180 222 255 / 16%);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 11%), rgb(255 255 255 / 5%)),
    rgb(18 28 42 / 78%);
  color: rgb(236 245 255 / 94%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 10%),
    0 14px 34px rgb(0 0 0 / 22%);
  backdrop-filter: blur(16px);
}

.feature-list li::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgb(25 200 255 / 16%), 0 0 18px rgb(25 200 255 / 46%);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 26px;
  align-items: start;
}

.main-stack {
  display: grid;
  gap: 24px;
}

.sidebar-stack {
  display: grid;
  gap: 24px;
  align-self: start;
}

.card,
.preview-card,
.about-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 8%), rgb(255 255 255 / 3%)),
    rgb(17 27 41 / 78%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card::before,
.preview-card::before,
.about-card::before {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgb(25 200 255 / 18%), transparent 34%),
    linear-gradient(315deg, rgb(255 103 158 / 14%), transparent 30%);
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.card > *,
.preview-card > *,
.about-card > * {
  position: relative;
  z-index: 1;
}

.generator-card {
  padding: clamp(24px, 4vw, 42px);
}

.card-header {
  align-items: flex-start;
  margin-bottom: 28px;
}

.card-header > div {
  min-width: 0;
}

.card h2,
.preview-card h2,
.about-card h2 {
  color: var(--ink);
  text-transform: uppercase;
}

.card h2 {
  font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.form-subtitle,
.status-message,
.about-card p:not(.section-kicker),
.input-help {
  color: var(--muted);
}

.status-pill {
  flex: 0 1 260px;
  width: 260px;
  min-width: 0;
  max-width: min(100%, 260px);
  padding: 7px 11px;
  border: 1px solid rgb(180 222 255 / 14%);
  background: rgb(255 255 255 / 8%);
  color: rgb(213 233 255 / 92%);
  cursor: default;
  font-size: 0.66rem;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

#queue-status-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
}

.queue-status-text-inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

#queue-status-text.is-overflowing .queue-status-text-inner {
  animation: queue-status-marquee 9s linear infinite;
}

.status-pill:hover:not(:disabled) {
  background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
}

.status-pill.open {
  color: var(--success);
}

.status-pill.limited {
  background: rgb(255 111 143 / 10%);
  color: var(--error);
}

.status-pill.unavailable {
  color: var(--muted);
}

.status-dot,
.status-pill.open .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(100 240 180 / 12%), 0 0 18px rgb(100 240 180 / 50%);
}

.status-pill.limited .status-dot {
  background: var(--error);
  box-shadow: 0 0 0 4px rgb(255 111 143 / 12%), 0 0 18px rgb(255 111 143 / 45%);
}

.job-form label {
  color: rgb(223 234 247 / 82%);
}

.input-row {
  border-color: rgb(180 222 255 / 12%);
  border-radius: 24px;
  background: rgb(7 13 22 / 62%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 18px 44px rgb(0 0 0 / 26%);
}

input {
  color: var(--ink);
}

input::placeholder {
  color: rgb(190 203 218 / 54%);
}

input:focus {
  outline: 3px solid rgb(25 200 255 / 18%);
}

button,
.music-link,
.profile-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #06101a;
  box-shadow: 0 14px 34px rgb(25 200 255 / 25%);
}

button:hover:not(:disabled),
.music-link:hover,
.profile-badge:hover {
  background: linear-gradient(135deg, #6fe4ff, #4a82ff);
  box-shadow: 0 18px 42px rgb(25 200 255 / 34%);
}

.input-help {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.status-panel,
.result-panel {
  border-color: rgb(180 222 255 / 14%);
  background: rgb(7 13 22 / 54%);
}

.processing-music-card {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 46px 18px 18px;
  border: 1px solid rgb(180 222 255 / 14%);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgb(25 200 255 / 10%), rgb(255 103 158 / 8%)),
    rgb(7 13 22 / 54%);
}

.processing-music-card.hidden {
  display: none;
}

.processing-music-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgb(180 222 255 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 8%);
  color: rgb(226 240 255 / 94%);
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: none;
}

.processing-music-close:hover:not(:disabled) {
  background: rgb(255 255 255 / 13%);
  box-shadow: 0 0 18px rgb(25 200 255 / 16%);
}

.processing-music-copy .section-kicker {
  margin-bottom: 8px;
}

.processing-music-card h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.processing-music-player {
  overflow: hidden;
  border: 1px solid rgb(180 222 255 / 14%);
  border-radius: 18px;
  background: #050912;
}

.processing-music-player iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.status-panel.error {
  border-color: rgb(255 111 143 / 34%);
  background: rgb(255 111 143 / 9%);
}

.status-panel.complete .spinner {
  background: var(--success);
}

.spinner {
  border-color: rgb(25 200 255 / 16%);
  border-top-color: var(--accent);
}

.preview-card {
  padding: 28px;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.preview-header h2 {
  margin-bottom: 0;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.music-link,
.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.preview-video {
  overflow: hidden;
  border: 1px solid rgb(180 222 255 / 12%);
  border-radius: 20px;
  background: rgb(7 13 22 / 42%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
}

.preview-video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.about-card {
  display: block;
  margin-top: 0;
  padding: 28px 24px;
  text-align: left;
}

.about-card::after {
  right: -70px;
  bottom: -70px;
  background: rgb(255 103 158 / 12%);
}

.about-card > .section-kicker {
  margin-bottom: 22px;
}

.profile-frame {
  width: 144px;
  margin: 0 auto 22px;
  padding: 8px;
  border-color: rgb(180 222 255 / 30%);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(25 200 255 / 30%), rgb(255 103 158 / 26%)),
    rgb(11 17 27 / 80%);
  box-shadow: 0 0 34px rgb(25 200 255 / 18%);
}

.profile-photo {
  aspect-ratio: 1;
  border: 3px solid rgb(255 255 255 / 72%);
  border-radius: 999px;
  box-shadow: none;
}

.about-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.about-card p:not(.section-kicker) {
  margin-bottom: 12px;
  font-size: 0.94rem;
  line-height: 1.5;
}

.album-art-link {
  width: 100%;
  margin: 22px 0 14px;
  border-color: rgb(180 222 255 / 20%);
  border-radius: 18px;
  background: rgb(7 13 22 / 70%);
  box-shadow: 0 18px 42px rgb(0 0 0 / 34%);
}

.album-art-link:hover {
  box-shadow: 0 22px 52px rgb(25 200 255 / 16%);
}

.album-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.album-meta strong,
.album-meta span {
  display: block;
}

.album-meta strong {
  color: var(--ink);
}

.album-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.profile-badge {
  position: static;
  flex: 0 0 auto;
  border: 0;
  color: #06101a;
}

.profile-badge-icon {
  width: 14px;
  height: 14px;
  filter: invert(1) brightness(0);
}

.music-link {
  width: 100%;
  color: #06101a;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  text-align: center;
}

.music-link::after {
  content: none;
}

.link-list a,
.link-list .link-button,
.result-actions a,
.result-actions .link-button,
.tab-button {
  background: rgb(255 255 255 / 8%);
  color: rgb(226 240 255 / 94%);
}

.link-list a:hover,
.link-list .link-button:hover:not(:disabled),
.result-actions a:hover,
.result-actions .link-button:hover:not(:disabled),
.tab-button:hover:not(:disabled) {
  background: rgb(25 200 255 / 14%);
}

.tab-list,
.audio-result,
.pdf-frame {
  border-color: rgb(180 222 255 / 14%);
  background: rgb(7 13 22 / 46%);
}

.tab-button[aria-selected="true"] {
  background: rgb(25 200 255 / 20%);
  color: var(--ink);
  box-shadow: 0 0 26px rgb(25 200 255 / 12%);
}

pre {
  background: #070d16;
  color: #eef7ff;
}

.legal-footer {
  max-width: none;
  margin-top: 32px;
  border-top-color: rgb(180 222 255 / 12%);
  color: rgb(174 185 199 / 80%);
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
  }

  .about-card > .section-kicker,
  .album-art-link,
  .album-meta,
  .music-link {
    grid-column: 1 / -1;
  }

  .profile-frame {
    width: 150px;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1180px);
    padding: 24px 0 42px;
  }

  .topbar {
    margin-bottom: 34px;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
  }

  .generator-card h2 {
    font-size: clamp(1.42rem, 6.7vw, 1.82rem);
    letter-spacing: -0.055em;
  }

  .generator-card .form-subtitle {
    white-space: normal;
  }

  .dashboard-grid,
  .main-stack {
    gap: 18px;
  }

  .card-header,
  .preview-header,
  .album-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row button {
    width: 100%;
  }

  .status-pill {
    align-self: flex-start;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 0.68rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  #queue-status-text {
    max-width: 100%;
  }

  .status-panel.complete .status-copy {
    grid-template-columns: 1fr;
  }

  .status-panel.complete .status-action-button {
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
    margin-top: 12px;
  }

  .about-card {
    display: block;
  }

  .profile-frame {
    width: 142px;
    margin: 0 auto 22px;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes queue-status-marquee {
  0%,
  12% {
    transform: translateX(0);
  }

  88%,
  100% {
    transform: translateX(calc(-1 * var(--queue-scroll-distance, 0px)));
  }
}

