:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #65706a;
  --line: #dfe7e1;
  --panel: #ffffff;
  --page: #f4f7f1;
  --accent: #137a5b;
  --accent-2: #c44f2f;
  --accent-3: #22577a;
  --gold: #d5a642;
  --shadow: 0 18px 60px rgba(28, 40, 35, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.hidden {
  display: none !important;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px clamp(18px, 5vw, 56px);
  background: #f9fbf5;
  border-bottom: 1px solid var(--line);
}

.brand-dark span {
  color: var(--muted);
}

.site-nav,
.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav a,
.hero-actions a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.ghost-button,
.text-button {
  width: auto;
  padding: 0 16px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.landing-main {
  display: grid;
  gap: 28px;
  padding: clamp(18px, 5vw, 56px);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 160px);
  padding-bottom: 12px;
}

.landing-copy h1 {
  max-width: 840px;
  margin: 12px 0 18px;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.landing-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: #3c4740;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.hero-actions button {
  width: auto;
  min-width: 140px;
  padding: 0 20px;
}

.product-preview {
  position: relative;
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 245, 235, 0.96)),
    radial-gradient(circle at top right, rgba(196, 79, 47, 0.2), transparent 35%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(23, 32, 28, 0.16);
}

.product-preview::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -80px;
  width: 230px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #d7f86f 0 12%, #101914 13% 18%, transparent 19%),
    repeating-radial-gradient(circle, #2f3b32 0 2px, #101914 3px 10px);
  border: 18px solid #101914;
  border-radius: 50%;
  opacity: 0.18;
}

.preview-topbar {
  display: flex;
  gap: 7px;
}

.preview-topbar span {
  width: 10px;
  height: 10px;
  background: #a9b8af;
  border-radius: 50%;
}

.preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preview-kpis div,
.preview-table div {
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.preview-kpis small,
.preview-table span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.preview-kpis strong {
  display: block;
  margin-top: 8px;
  font-size: 1.35rem;
}

.preview-chart {
  display: flex;
  gap: 10px;
  align-items: end;
  height: 210px;
  padding: 18px;
  background: #101914;
  border-radius: 8px;
}

.preview-chart span {
  flex: 1;
  min-width: 18px;
  background: #d7f86f;
  border-radius: 4px 4px 0 0;
}

.preview-chart span:nth-child(even) {
  background: #c44f2f;
}

.preview-table {
  display: grid;
  gap: 10px;
}

.preview-table div {
  display: grid;
  grid-template-columns: 0.7fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.preview-table em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-strip article,
.workflow-band,
.login-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-strip article {
  padding: 22px;
}

.feature-strip p {
  color: var(--muted);
  line-height: 1.55;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.workflow-band h2 {
  max-width: 620px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.workflow-band ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-weight: 700;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(244, 247, 241, 0.96), rgba(220, 239, 198, 0.86)),
    radial-gradient(circle at bottom left, rgba(19, 122, 91, 0.16), transparent 35%);
}

.login-shell {
  display: grid;
  gap: 24px;
  width: min(100%, 460px);
}

.login-card {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 5vw, 34px);
}

.login-card[hidden] { display: none !important; }

.login-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 0.96;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.login-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.login-card .login-request { text-align: center; }
.login-request a { color: #f5c768; font-weight: 800; text-decoration: none; }
.login-request a:hover { color: #ffd66f; text-decoration: underline; }

.login-card .text-button {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 28px;
  height: auto;
  padding: 2px 4px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.login-card .text-button:hover { color: var(--accent); background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.login-divider { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; color: #777; font-size: .65rem; text-transform: uppercase; }
.login-divider::before, .login-divider::after { height: 1px; background: #404040; content: ""; }
.login-card .oauth-button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 100%; min-height: 38px; padding: 0 14px; color: #e7e7e7; background: #292929; border: 1px solid #484848; border-radius: 7px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.login-card .oauth-button:hover { color: #fff; background: #303030; border-color: #686868; }
.login-card .oauth-button svg { width: 16px; height: 16px; }

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  background: #101914;
  color: #eef7ef;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 40px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #d7f86f;
  color: #101914;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span,
.source-card p,
.nav-list a {
  color: rgba(238, 247, 239, 0.7);
}

.brand-dark span {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.nav-list a.active,
.nav-list a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.logout-button {
  width: 100%;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.source-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.source-card p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.panel-main {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 32px;
  overflow: hidden;
  min-height: 360px;
  padding: clamp(28px, 5vw, 56px);
  background: #dcefc6;
  border-radius: 8px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(220, 239, 198, 0.96), rgba(220, 239, 198, 0.7)),
    url("data:image/svg+xml,%3Csvg width='900' height='500' viewBox='0 0 900 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2317201c' stroke-opacity='.13'%3E%3Cpath d='M0 410 C180 310 240 450 390 332 S650 155 900 215' stroke-width='8'/%3E%3Cpath d='M0 260 C170 160 290 330 456 220 S690 35 900 115' stroke-width='4'/%3E%3Cpath d='M0 345 C220 205 280 380 455 280 S692 120 900 170' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 12px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 5px 0 0;
  font-size: 1rem;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #35423a;
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 260px;
}

.record-disc {
  width: min(28vw, 300px);
  min-width: 210px;
  aspect-ratio: 1;
  border: 24px solid #121b16;
  border-radius: 50%;
  background:
    radial-gradient(circle, #d7f86f 0 13%, #121b16 14% 17%, transparent 18%),
    repeating-radial-gradient(circle, #263128 0 2px, #121b16 3px 12px);
  box-shadow: var(--shadow);
}

.wave-bars {
  display: flex;
  gap: 7px;
  align-items: end;
  height: 72px;
  margin-top: -22px;
}

.wave-bars span {
  display: block;
  width: 15px;
  background: var(--accent-2);
  border-radius: 8px 8px 2px 2px;
}

.wave-bars span:nth-child(1) { height: 28px; }
.wave-bars span:nth-child(2) { height: 50px; }
.wave-bars span:nth-child(3) { height: 70px; }
.wave-bars span:nth-child(4) { height: 44px; }
.wave-bars span:nth-child(5) { height: 62px; }
.wave-bars span:nth-child(6) { height: 36px; }

.upload-band,
.status-row,
.kpi-grid,
.dashboard-grid,
.tables-grid {
  display: grid;
  gap: 16px;
}

.upload-band {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 176px;
  padding: 28px;
  background: var(--panel);
  border: 2px dashed #afc3b8;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #eef7e7;
}

.dropzone input {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #ffffff;
  background: var(--accent);
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.dropzone span:last-child {
  color: var(--muted);
}

.controls-panel,
.panel,
.kpi-grid article,
.status-row > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.controls-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

select,
button {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

button {
  border: 0;
  background: #121b16;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

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

.status-row > div {
  padding: 13px 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-grid article {
  padding: 20px;
}

.kpi-grid span,
.kpi-grid small {
  display: block;
  color: var(--muted);
}

.kpi-grid strong {
  display: block;
  margin: 10px 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0;
}

.kpi-grid small {
  line-height: 1.45;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.tables-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  min-width: 0;
  padding: 18px;
}

.chart-panel {
  min-height: 360px;
}

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

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
}

td:last-child,
th:last-child,
td:nth-last-child(2):not(:first-child) {
  text-align: right;
}

.empty-row td {
  color: var(--muted);
  text-align: left;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f7faf5;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-item strong,
.file-item span {
  overflow-wrap: anywhere;
}

.file-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  background: #e6f2ea;
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .landing-hero,
  .feature-strip,
  .workflow-band {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .source-card {
    position: static;
    margin-top: 24px;
  }

  .hero,
  .upload-band,
  .dashboard-grid,
  .tables-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  main,
  .sidebar {
    padding: 16px;
  }

  .site-header,
  .site-nav,
  .hero-actions,
  .preview-table div {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header,
  .site-nav,
  .hero-actions {
    display: grid;
  }

  .preview-kpis {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
  }

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

  th,
  td {
    padding: 10px 8px;
  }
}

/* Landing header, source gallery, and workspace CTA */
.landing-page { padding-top: 0; }
.landing-workspace .site-header { position: sticky; top: 0; z-index: 20; background: rgba(27,27,27,.98); backdrop-filter: blur(12px); }
.landing-page .landing-workspace .site-header { grid-template-columns: minmax(190px, 1fr) auto; }
.landing-workspace .site-nav { display: flex; align-items: center; }
.landing-workspace .site-nav .language-switcher { position: relative; top: auto; right: auto; flex: 0 0 auto; margin-left: -7px; }
.landing-workspace .site-nav .language-switcher-trigger { width: 52px; height: 32px; }
.landing-hero { position: relative; overflow: hidden; }
.landing-copy { position: relative; z-index: 1; }
.hero-stars { position: absolute; top: 34px; right: 44px; width: 180px; height: 125px; pointer-events: none; }
.hero-stars span { position: absolute; display: block; color: #f5bd35; line-height: 1; animation: hero-star-float 4.8s ease-in-out infinite; }
.hero-stars span:nth-child(1) { top: 7px; left: 71px; font-size: 1.4rem; }
.hero-stars span:nth-child(2) { top: 49px; left: 129px; font-size: .75rem; animation-delay: -1.3s; }
.hero-stars span:nth-child(3) { top: 87px; left: 48px; font-size: 1rem; animation-delay: -2.6s; }
.hero-stars span:nth-child(4) { top: 40px; left: 7px; font-size: .58rem; animation-delay: -3.7s; }
@keyframes hero-star-float { 0%,100% { transform: translateY(0) scale(.92); opacity: .48; } 50% { transform: translateY(-8px) scale(1.12); opacity: 1; } }

.source-gallery { margin: -34px 12px 66px; padding: 18px 0; border-top: 1px solid #383838; border-bottom: 1px solid #383838; overflow: hidden; }
.source-gallery-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 0 4px 14px; }
.source-gallery-heading strong { color: #d7d7d7; font-size: .72rem; font-weight: 600; }
.source-gallery-window { width: 100%; overflow: hidden; }
.source-gallery-track { display: flex; gap: 10px; width: max-content; animation: source-marquee 34s linear infinite; }
.source-gallery:hover .source-gallery-track { animation-play-state: paused; }
.source-logo { display: grid; place-items: center; width: 138px; aspect-ratio: 3 / 1; padding: 8px 14px; background: #232323; border: 1px solid #3b3b3b; border-radius: 6px; }
.source-logo img { display: block; width: 96px; height: 24px; object-fit: contain; filter: grayscale(1); opacity: .9; transform-origin: center; }
.source-logo img[src$="distrokid.svg"] { transform: scale(2.8); }
.source-logo img[src$="sacem.svg"],
.source-logo img[src$="mlc.svg"],
.source-logo img[src$="ppl.svg"] { transform: scale(1.6); }
.source-logo img[src$="audiogest.svg"] { transform: scale(3); }
.source-logo:hover img { filter: none; opacity: 1; }
@keyframes source-marquee { to { transform: translateX(calc(-50% - 5px)); } }

.landing-cta .cta-workspace-icon { display: grid; place-items: center; width: 58px; height: 58px; color: #f5bd35; background: #1c1c1c; border: 1px solid #414141; border-radius: 7px; }
.landing-cta .cta-workspace-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1050px) {
  .source-gallery { margin-top: -22px; }
  .landing-cta .cta-workspace-icon { width: 52px; height: 52px; }
}
@media (max-width: 680px) {
  .landing-workspace .site-header { top: 0; }
  .landing-workspace .site-nav { display: flex; gap: 7px; }
  .landing-workspace .site-nav .language-switcher { display: block; margin-left: 0; }
  .landing-workspace .site-nav .language-switcher-trigger { width: 47px; height: 30px; }
  .hero-stars { top: 20px; right: -18px; transform: scale(.72); opacity: .72; }
  .source-gallery { margin: -25px 0 52px; padding: 15px 0; }
  .source-gallery-heading { display: grid; gap: 5px; padding: 0 0 12px; }
  .source-gallery-heading strong { font-size: .67rem; }
  .source-logo { width: 120px; padding: 7px 11px; }
  .source-logo img { width: 84px; height: 20px; }
  .landing-cta .cta-workspace-icon { width: 42px; height: 42px; }
  .landing-cta .cta-workspace-icon svg { width: 21px; height: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .source-gallery-track { animation: none; }
  .source-gallery-window { overflow-x: auto; }
  .hero-stars span { animation: none; }
}

/* FAQ */
.catalog-health { display: grid; grid-template-columns: 1.05fr repeat(3, minmax(0, 1fr)); margin: 34px 12px 0; border-top: 1px solid #3c3c3c; border-bottom: 1px solid #3c3c3c; }
.catalog-health-title, .catalog-health article { min-width: 0; padding: 20px 18px; border-right: 1px solid #3c3c3c; }
.catalog-health > :last-child { border-right: 0; }
.catalog-health-title h2 { margin: 7px 0 0; font-size: 1rem; }
.catalog-health article { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 8px; }
.catalog-health article > span { color: #f5bd35; font-size: .62rem; font-weight: 800; }
.catalog-health article strong { display: block; margin-bottom: 6px; color: #eee; font-size: .72rem; }
.catalog-health article p { margin: 0; color: #8f8f8f; font-size: .64rem; line-height: 1.55; }
.faq-section { display: grid; grid-template-columns: minmax(230px, .68fr) minmax(0, 1.32fr); gap: 54px; margin: 64px 12px 0; padding: 36px 0 8px; scroll-margin-top: 90px; }
.faq-intro h2 { max-width: 390px; margin: 9px 0 12px; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.2; }
.faq-intro p { max-width: 390px; margin: 0; color: #999; font-size: .75rem; line-height: 1.65; }
.faq-list { border-top: 1px solid #3c3c3c; }
.faq-list details { border-bottom: 1px solid #3c3c3c; }
.faq-list summary { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 2px; color: #eee; font-size: .8rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: #f5bd35; font-size: 1.1rem; font-weight: 500; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 720px; margin: -3px 34px 17px 2px; color: #999; font-size: .72rem; line-height: 1.68; }
.studio-services { margin-top: 36px; padding: 24px; background: #202020; border: 1px solid #3b3b3b; border-radius: 7px; }
.studio-services h3 { margin: 9px 0 20px; color: #f1f1f1; font-size: 1rem; line-height: 1.4; }
.studio-services ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.studio-services li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 11px; align-items: start; padding: 13px 0; border-top: 1px solid #383838; }
.studio-services li > svg { width: 17px; height: 17px; margin-top: 2px; color: #f5bd35; stroke-width: 1.8; }
.studio-services li div { display: grid; gap: 4px; }
.studio-services li strong { color: #ececec; font-size: .74rem; }
.studio-services li span { color: #8f8f8f; font-size: .66rem; line-height: 1.45; }
.studio-services > a { display: inline-flex; gap: 7px; align-items: center; margin-top: 17px; color: #f5c768; font-size: .68rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.studio-services > a:hover { color: #ffd66f; }
.studio-services > a svg { width: 14px; height: 14px; }
@media (max-width: 780px) {
  .catalog-health { grid-template-columns: 1fr; }
  .catalog-health-title, .catalog-health article { border-right: 0; border-bottom: 1px solid #3c3c3c; }
  .catalog-health > :last-child { border-bottom: 0; }
  .faq-section { grid-template-columns: 1fr; gap: 24px; margin-top: 46px; padding-top: 26px; }
  .faq-intro h2, .faq-intro p { max-width: 600px; }
  .studio-services { margin-top: 26px; }
}
@media (max-width: 680px) {
  .faq-section { margin-right: 0; margin-left: 0; }
  .faq-list summary { padding: 15px 0; font-size: .76rem; }
  .faq-list details p { margin-right: 24px; margin-left: 0; }
}

/* Orbit-inspired visual direction: open spacing, soft surfaces, and clear product UI. */
:root {
  --ink: #14283a;
  --muted: #526579;
  --line: #dce6ef;
  --panel: #ffffff;
  --page: #f7f9fc;
  --accent: #1a66c2;
  --accent-2: #e8553f;
  --accent-3: #14a89b;
  --shadow: 0 16px 42px rgba(20, 40, 58, 0.07);
}

body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
button, input, select { font-family: inherit; }
button { background: var(--accent); border-radius: 7px; }
button:hover { filter: brightness(.94); }
.brand-mark { background: #dcedff; color: var(--accent); border-radius: 7px; }
.brand strong { font-size: .9rem; }
.brand span { font-size: .72rem; }
.eyebrow { color: var(--accent); font-size: .76rem; }

.site-header {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: auto;
  padding: 23px clamp(22px, 4vw, 56px);
  background: transparent;
  border: 0;
}
.site-header .brand { margin: 0; }
.site-nav { gap: 32px; }
.site-nav a { color: #415368; font-size: .86rem; font-weight: 700; }
.site-nav a:hover, .hero-actions a:hover { color: var(--accent); }
.site-nav .ghost-button { height: 40px; padding: 0 20px; color: var(--accent); background: #e9f3ff; border: 0; }

.landing-page { background: #fafbfd; }
.landing-main { display: block; padding: 0; }
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  gap: 48px;
  padding: 70px clamp(20px, 4vw, 56px) 90px;
  background: radial-gradient(circle at 50% 43%, #edf6ff 0, transparent 58%), #fafbfd;
  text-align: center;
}
.landing-copy { display: flex; flex-direction: column; align-items: center; }
.landing-copy .eyebrow { padding: 9px 14px; border-radius: 999px; background: #e9f4ff; }
.landing-copy h1 { max-width: 1000px; margin: 24px 0; font-size: clamp(3rem, 6vw, 5.7rem); line-height: 1.11; font-weight: 800; }
.landing-copy h1 em { color: var(--accent-2); font-style: normal; }
.landing-copy p { max-width: 760px; margin: 0; color: #53677c; font-size: 1.06rem; line-height: 1.75; }
.hero-actions { margin-top: 28px; gap: 24px; }
.hero-actions button { min-width: 150px; height: 48px; box-shadow: 0 10px 20px rgba(26, 102, 194, .17); }
.hero-actions a { color: var(--accent); font-size: .9rem; }
.product-preview {
  width: min(100%, 940px);
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e3ebf3;
  border-radius: 8px;
  box-shadow: 0 26px 80px rgba(30, 71, 111, .14);
  text-align: left;
}
.product-preview::after { display: none; }
.preview-topbar { justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.preview-topbar strong { font-size: .95rem; }
.preview-topbar span { width: auto; height: auto; padding: 7px 10px; border-radius: 5px; background: #f1f6fb; color: var(--muted); font-size: .72rem; font-weight: 700; }
.preview-kpis div, .preview-table div { background: #f8fbfe; border-color: #e6edf5; }
.preview-kpis strong { color: #163653; font-size: 1.5rem; }
.preview-chart { height: 175px; background: #e9f4fe; }
.preview-chart span { background: #318de0; border-radius: 4px 4px 0 0; }
.preview-chart span:nth-child(even) { background: #fb8b7d; }
.preview-table em { color: var(--accent); }

.feature-intro { max-width: 900px; margin: auto; padding: 100px 24px 45px; text-align: center; }
.feature-intro h2 { margin: 14px 0 18px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.18; }
.feature-intro p { max-width: 650px; margin: auto; color: var(--muted); line-height: 1.7; }
.feature-strip { max-width: 1200px; margin: auto; gap: 22px; padding: 0 24px 110px; }
.feature-strip article { min-height: 225px; padding: 28px; background: #fff; border: 1px solid #e1eaf2; box-shadow: none; }
.feature-number { display: inline-flex; margin-bottom: 27px; color: var(--accent-2); font-size: .8rem; font-weight: 800; }
.feature-strip h2 { max-width: 260px; font-size: 1.22rem; line-height: 1.3; }
.feature-strip p { margin: 12px 0 0; font-size: .9rem; line-height: 1.65; }
.workflow-band { max-width: 100%; padding: 100px max(24px, calc((100vw - 1152px)/2)); gap: 90px; background: #eaf5ff; border: 0; border-radius: 0; box-shadow: none; }
.workflow-band h2 { margin: 14px 0 16px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.workflow-band p { max-width: 520px; color: var(--muted); line-height: 1.7; }
.workflow-band ol { list-style: none; padding: 0; gap: 0; }
.workflow-band li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid #cbdfee; color: var(--muted); font-size: .88rem; font-weight: 500; }
.workflow-band li strong { color: var(--ink); font-size: 1rem; }

.login-page { background: radial-gradient(circle at 50% 30%, #e5f2ff, transparent 52%), #f8fafc; }
.login-card { border-color: #e1eaf2; box-shadow: var(--shadow); }
.login-card h1 { font-size: 2.25rem; line-height: 1.2; }
.sidebar { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.sidebar .brand span, .sidebar .source-card p, .nav-list a { color: var(--muted); }
.nav-list a.active, .nav-list a:hover { background: #eaf4ff; color: var(--accent); }
.logout-button { background: #f1f6fb; color: var(--accent); border: 1px solid var(--line); }
.source-card { border-color: var(--line); background: #f8fbfe; }
.panel-main { align-content: start; gap: 22px; padding: 30px; }
.panel-main .hero { min-height: 235px; padding: 36px; background: #eaf4ff; }
.panel-main .hero::before, .hero-visual { display: none; }
.panel-main .hero { grid-template-columns: 1fr; }
.panel-main .hero h1 { max-width: 720px; font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.15; }
.panel-main .hero p { max-width: 760px; color: var(--muted); font-size: .9rem; }
.dropzone { border-color: #b8d6ef; }
.dropzone.dragover { background: #ecf6ff; }
.controls-panel, .panel, .kpi-grid article, .status-row > div { box-shadow: none; border-color: #e0e9f2; }
.file-item { background: #f8fbfe; }
.pill { background: #e8f3ff; }

@media (max-width: 1050px) {
  .landing-hero { gap: 35px; }
  .workflow-band { gap: 30px; padding: 70px 24px; }
}
@media (max-width: 680px) {
  .site-header { display: flex; align-items: center; gap: 12px; padding: 17px 18px; }
  .site-header .brand { flex: 1; min-width: 0; }
  .site-nav { display: flex; gap: 0; }
  .site-nav a { display: none; }
  .site-nav .ghost-button { width: auto; padding: 0 13px; }
  .landing-hero { padding: 54px 18px 70px; }
  .landing-copy h1 { font-size: clamp(2.6rem, 11vw, 3.9rem); }
  .landing-copy p { font-size: .94rem; }
  .hero-actions { display: flex; flex-direction: column; gap: 17px; }
  .product-preview { padding: 14px; gap: 12px; }
  .preview-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .preview-kpis div { padding: 9px 7px; }
  .preview-kpis small { font-size: .57rem; }
  .preview-kpis strong { font-size: .9rem; }
  .preview-chart { height: 120px; padding: 12px; gap: 7px; }
  .preview-chart span { min-width: 0; }
  .preview-table div { display: grid; grid-template-columns: .8fr 1fr auto; gap: 5px; padding: 8px; font-size: .68rem; }
  .preview-table span { font-size: .6rem; }
  .feature-intro { padding: 70px 20px 36px; }
  .feature-strip { padding: 0 18px 70px; }
  .workflow-band li { grid-template-columns: 75px 1fr; }
  .panel-main { padding: 16px; }
}

/* Dark royalty workspace */
:root {
  color-scheme: dark;
  --ink: #f5f5f5;
  --muted: #a4a4a4;
  --line: #373737;
  --panel: #242424;
  --page: #171717;
  --accent: #f5b928;
  --accent-2: #f5b928;
  --accent-3: #71b691;
  --shadow: none;
}
body { background: var(--page); color: var(--ink); }
button { background: var(--accent); color: #191919; }
button:hover { filter: brightness(1.08); }
input, select { background: #292929; color: var(--ink); border-color: #494949; }
input::placeholder { color: #929292; }
label { color: #b9b9b9; }
.eyebrow { color: var(--accent); }
.brand-mark { background: #292929; color: var(--accent); border: 1px solid #3b3b3b; }
.brand-dark span, .brand span { color: var(--muted); }

.landing-page, .landing-hero { background: #1b1b1b; }
.site-header { background: #1b1b1b; border-bottom: 1px solid #303030; }
.site-nav a, .hero-actions a { color: #ddd; }
.site-nav a:hover, .hero-actions a:hover { color: var(--accent); }
.site-nav .ghost-button { color: #181818; background: var(--accent); }
.landing-hero { gap: 38px; padding-top: 65px; }
.landing-copy .eyebrow { color: var(--accent); background: #302b1d; border: 1px solid #534222; }
.landing-copy h1 { max-width: 1050px; color: #fff; }
.landing-copy h1 em { color: var(--accent); }
.landing-copy p { color: #aaa; }
.hero-actions button { box-shadow: none; }
.hero-actions a { color: #dedede; }
.product-preview { background: #202020; border: 1px solid #393939; box-shadow: 0 26px 70px rgba(0,0,0,.3); }
.preview-topbar { border-color: #393939; }
.preview-topbar span { color: #e6bd5b; background: #342c1d; }
.preview-kpis div, .preview-table div { background: #282828; border-color: #3b3b3b; }
.preview-kpis strong { color: #f4f4f4; }
.preview-chart { background: #292929; }
.preview-chart span { background: #f2b72b; }
.preview-chart span:nth-child(even) { background: #8e7240; }
.preview-table em { color: var(--accent); }
.feature-intro, .feature-strip { background: #1b1b1b; }
.feature-intro p, .feature-strip p { color: var(--muted); }
.feature-strip article { background: #242424; border-color: #3a3a3a; }
.feature-number { color: var(--accent); }
.workflow-band { background: #232323; }
.workflow-band p, .workflow-band li { color: var(--muted); }
.workflow-band li { border-color: #414141; }
.workflow-band li strong { color: #f4f4f4; }

.login-page { position: relative; overflow: hidden; background: #08090a; }
.login-shell { position: relative; z-index: 1; }
.login-card { background: #17191a; border-color: #34383a; }
.login-card .text-button { color: #aaa; background: transparent; border: 0; }
.login-card .text-button:hover { color: var(--accent); background: transparent; }
.login-card p { color: var(--muted); }

.app-shell { grid-template-columns: 80px minmax(0, 1fr); gap: 8px; padding: 8px; background: #141414; }
.sidebar { display: flex; flex-direction: column; align-items: center; height: calc(100vh - 16px); padding: 8px; background: #1c1c1c; border: 1px solid #333; border-radius: 8px; }
.brand-rail { margin: 0 0 46px; }
.brand-rail .brand-mark { width: 62px; height: 62px; font-size: 1.12rem; background: #252525; border-color: #3b3b3b; }
.nav-list { width: 100%; gap: 8px; }
.nav-list a { display: grid; place-items: center; width: 54px; height: 54px; margin: auto; padding: 0; color: #999; border-radius: 8px; }
.nav-list a svg, .logout-button svg { width: 21px; height: 21px; stroke-width: 1.9; }
.nav-list a span, .logout-button span { display: none; }
.nav-list a.active, .nav-list a:hover { background: var(--accent); color: #141414; }
.logout-button { display: grid; place-items: center; width: 54px; height: 54px; margin-top: auto; padding: 0; background: transparent; color: #a9a9a9; border: 0; }
.logout-button:hover { color: var(--accent); background: #2b2b2b; }
.panel-main { display: block; min-width: 0; padding: 0; background: #1b1b1b; border: 1px solid #333; border-radius: 8px; }
.workspace-bar { display: grid; grid-template-columns: 220px minmax(220px, 1fr) auto; gap: 24px; align-items: center; min-height: 72px; padding: 10px 36px; border-bottom: 1px solid #343434; }
.workspace-bar > strong { font-size: 1.1rem; white-space: nowrap; }
.workspace-search { display: flex; align-items: center; width: min(100%, 600px); height: 44px; padding: 0 14px; background: #282828; border-radius: 7px; }
.workspace-search svg { width: 18px; height: 18px; flex: 0 0 auto; color: #d6d6d6; }
.workspace-search input { height: 100%; padding: 0 0 0 14px; background: transparent; border: 0; outline: 0; font-size: .82rem; }
.workspace-upload { display: inline-flex; gap: 8px; align-items: center; width: auto; height: 38px; padding: 0 13px; background: #302818; color: #f4c768; border: 1px solid #654a1e; font-size: .78rem; }
.workspace-upload svg { width: 16px; height: 16px; }
.panel-main > section { margin: 16px 34px 0; }
.panel-main .hero { display: flex; justify-content: space-between; align-items: flex-start; min-height: auto; padding: 25px 0 14px; background: transparent; border-radius: 0; }
.panel-main .hero h1 { margin: 6px 0; font-size: 1.8rem; }
.panel-main .hero p { color: var(--muted); font-size: .84rem; }
.hero-status { flex: 0 0 auto; padding: 8px 12px; background: #302818; color: #f1c260; border: 1px solid #5c451f; border-radius: 5px; font-size: .7rem; font-weight: 700; }
.overview-hero-actions { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; }
.overview-hero-actions .compact-action { width: auto; height: 32px; padding: 0 11px; font-size: .62rem; }
.overview-hero-actions .compact-action svg { width: 14px; height: 14px; }
.upload-band { grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); }
.dropzone { min-height: 148px; padding: 20px; background: #242424; border: 1px dashed #6b5a35; }
.dropzone.dragover { background: #302819; border-color: var(--accent); }
.dropzone strong { font-size: .92rem; }
.dropzone span:last-child { color: var(--muted); }
.upload-icon { width: 35px; height: 35px; background: #3a2e18; color: var(--accent); font-size: 1.5rem; }
.controls-panel, .panel, .kpi-grid article, .status-row > div { background: #242424; border-color: #383838; box-shadow: none; }
.controls-panel { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.controls-panel button { grid-column: 1 / -1; height: 34px; background: #333; color: #ddd; }
.controls-panel select { height: 34px; padding: 0 8px; font-size: .75rem; }
.controls-panel label { font-size: .7rem; }
.status-row { gap: 8px; }
.status-row > div { padding: 10px 13px; color: #a7a7a7; font-size: .75rem; }
.kpi-grid { gap: 10px; }
.kpi-grid article { padding: 16px; }
.kpi-grid span { color: #aaa; font-size: .76rem; }
.kpi-grid strong { margin: 9px 0 5px; color: #fafafa; font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.kpi-grid small { color: #929292; font-size: .68rem; }
.dashboard-grid, .tables-grid { gap: 12px; }
.panel { padding: 17px 18px; }
.panel-header { margin-bottom: 16px; }
.panel-header h2 { margin-top: 5px; font-size: .94rem; }
.panel-header .eyebrow { font-size: .65rem; }
.chart-panel { min-height: 300px; }
th, td { padding: 11px 8px; border-color: #3a3a3a; }
th { color: #a9a9a9; font-size: .65rem; }
td { color: #e4e4e4; font-size: .76rem; }
.empty-row td { color: #8e8e8e; }
.file-panel { margin-bottom: 34px !important; }
.file-item { background: #2b2b2b; border-color: #414141; }
.file-item span { color: #aaa; }
.pill { background: #303b32; color: #7dc39b; }

@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 68px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 8px; height: calc(100vh - 16px); }
  .brand-rail .brand-mark { width: 50px; height: 50px; }
  .nav-list a, .logout-button { width: 48px; height: 48px; }
  .workspace-bar { grid-template-columns: auto minmax(150px, 1fr) auto; gap: 12px; padding: 10px 18px; }
  .panel-main > section { margin-left: 18px; margin-right: 18px; }
  .upload-band { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .tables-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .app-shell { display: block; padding: 0; }
  .sidebar { position: fixed; z-index: 5; top: auto; right: 0; bottom: 0; left: 0; flex-direction: row; justify-content: center; gap: 5px; width: 100%; height: 62px; padding: 5px; border-radius: 0; border-width: 1px 0 0; }
  .brand-rail { display: none; }
  .nav-list { display: flex; justify-content: space-around; width: min(100%, 420px); }
  .nav-list a { width: 46px; height: 46px; }
  .logout-button { margin: 0; width: 46px; height: 46px; }
  .panel-main { min-height: 100vh; padding-bottom: 70px; border: 0; border-radius: 0; }
  .workspace-bar { grid-template-columns: minmax(0, 1fr) auto; min-height: 61px; padding: 10px 15px; }
  .workspace-bar > strong { font-size: .85rem; }
  .workspace-search { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 36px; }
  .workspace-upload { grid-column: 2; grid-row: 1; }
  .workspace-upload span { display: none; }
  .panel-main > section { margin: 14px 12px 0; }
  .panel-main .hero { padding: 16px 0 6px; }
  .panel-main .hero h1 { font-size: 1.55rem; }
  .hero-status { display: none; }
  .controls-panel { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid article { padding: 13px; }
  .kpi-grid strong { font-size: 1.35rem; }
  .status-row { grid-template-columns: 1fr; }
  .site-header { background: #1b1b1b; }
}

/* Public first screen uses the same workspace layout as the panel. */
.landing-page { display: block; min-height: 100vh; padding: 8px; background: #08090a; }
.landing-rail { position: sticky; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; height: calc(100vh - 16px); padding: 8px; background: #1c1c1c; border: 1px solid #333; border-radius: 8px; }
.landing-rail-brand { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 40px; color: var(--accent); background: #252525; border: 1px solid #3c3c3c; border-radius: 8px; font-weight: 800; }
.landing-rail-brand img { width: 38px; height: 38px; }
.landing-rail a, .landing-rail button { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; color: #aaa; background: transparent; border: 0; border-radius: 8px; text-decoration: none; }
.landing-rail a.active, .landing-rail a:hover { color: #141414; background: var(--accent); }
.landing-rail button { margin-top: auto; }
.landing-rail button:hover { color: var(--accent); background: #2b2b2b; }
.landing-rail svg { width: 21px; height: 21px; stroke-width: 1.9; }
.landing-workspace { min-width: 0; background: #101112; border: 1px solid #292c2e; border-radius: 8px; }
.landing-workspace .site-header { display: grid; grid-template-columns: 220px minmax(200px, 1fr) auto; gap: 24px; align-items: center; max-width: none; min-height: 72px; margin: 0; padding: 10px 36px; background: #101112; border-bottom: 1px solid #2b2e30; }
.landing-workspace .site-header > strong { font-size: 1.1rem; }
.wordmark { display: flex; gap: 10px; align-items: center; color: #f5f5f5; text-decoration: none; white-space: nowrap; }
.wordmark img { width: 28px; height: 28px; }
.wordmark strong { font-size: .98rem; }
.site-header-center { display: flex; gap: 14px; align-items: center; width: min(100%, 600px); height: 44px; padding: 0 16px; color: #aaa; background: #282828; border-radius: 7px; font-size: .8rem; }
.site-header-center svg { width: 18px; height: 18px; }
.landing-workspace .site-nav { gap: 18px; }
.landing-workspace .site-nav a { font-size: .78rem; }
.landing-workspace .site-nav .ghost-button { width: auto; height: 32px; padding: 0 11px; color: #f5c768; background: #302818; border: 1px solid #654a1e; font-size: .72rem; }
.landing-main { padding: 0 34px 38px; }
.landing-hero { display: flex; flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 20px; min-height: 0; margin: 0; padding: 32px 12px 22px; background: transparent; text-align: left; }
.landing-copy { display: block; }
.landing-copy .eyebrow { padding: 0; color: var(--accent); background: transparent; border: 0; font-size: .68rem; }
.landing-copy h1 { margin: 12px 0 14px; font-size: clamp(2.6rem, 5vw, 5.2rem); line-height: 1.02; }
.landing-copy h1 em { color: var(--accent); font-style: normal; }
.landing-copy p { max-width: 720px; margin: 0; color: #aaa; font-size: .94rem; line-height: 1.7; }
.landing-open-button { display: inline-flex; gap: 7px; align-items: center; width: auto; height: 34px; padding: 0 12px; white-space: nowrap; color: #f5c768; background: #302818; border: 1px solid #654a1e; font-size: .72rem; }
.landing-open-button svg { width: 15px; height: 15px; }
.landing-data { padding: 0 12px; }
.landing-data .product-preview { width: 100%; gap: 0; padding: 0; background: #242424; border: 1px solid #383838; border-radius: 6px; box-shadow: none; }
.landing-data .preview-topbar { min-height: 76px; padding: 17px 20px; }
.preview-topbar > div { display: grid; gap: 4px; }
.preview-topbar small { color: #999; font-size: .68rem; }
.preview-currency-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 36px; padding: 7px 20px; color: #858585; background: #202020; border-top: 1px solid #343434; border-bottom: 1px solid #3a3a3a; font-size: .61rem; }
.preview-currency-bar strong { margin-right: auto; color: #e7e7e7; font-size: .64rem; }
.preview-currency-bar b { padding: 3px 6px; color: #f4c35a; background: #302818; border: 1px solid #5e491f; border-radius: 3px; font-size: .56rem; }
.landing-data .preview-kpis { gap: 0; border-bottom: 1px solid #3a3a3a; }
.landing-data .preview-kpis div { padding: 20px; background: transparent; border: 0; border-right: 1px solid #3a3a3a; border-radius: 0; }
.landing-data .preview-kpis div:last-child { border-right: 0; }
.landing-data .preview-kpis small { font-size: .71rem; font-weight: 600; }
.landing-data .preview-kpis strong { margin-top: 7px; font-size: 1.8rem; }
.landing-data .preview-chart { height: 140px; margin: 20px; padding: 15px; background: #282828; border: 1px solid #383838; border-radius: 5px; }
.landing-data .preview-table { gap: 0; margin: 0 20px 20px; border: 1px solid #3c3c3c; border-radius: 5px; overflow: hidden; }
.landing-data .preview-table div { grid-template-columns: 1fr 1fr 1fr; margin: 0; padding: 13px 18px; background: #242424; border: 0; border-bottom: 1px solid #383838; border-radius: 0; }
.landing-data .preview-table div:last-child { border: 0; }
.landing-data .preview-table .preview-table-head { background: #2b2b2b; }
.landing-data .preview-table .preview-table-head span { color: #aaa; font-size: .65rem; }
.landing-data .preview-table em { justify-self: start; }
.feature-intro { max-width: none; padding: 100px 12px 35px; text-align: left; }
.feature-intro h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature-intro p { max-width: 650px; margin: 0; }
.feature-strip { max-width: none; padding: 0 12px 90px; }
.workflow-band { margin: 0 -34px -38px; padding: 70px 46px; }
.landing-cta { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 28px; align-items: center; margin: 38px 12px 0; padding: 32px; background: #242424; border: 1px solid #3b3b3b; border-radius: 7px; }
.landing-cta > img { width: 76px; height: 76px; padding: 14px; background: #1c1c1c; border: 1px solid #414141; border-radius: 7px; }
.landing-cta h2 { max-width: 690px; margin: 8px 0; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height: 1.15; }
.landing-cta p { margin: 0; color: var(--muted); font-size: .84rem; }
.landing-cta button { display: inline-flex; gap: 8px; align-items: center; width: auto; height: 42px; padding: 0 16px; white-space: nowrap; }
.landing-cta button svg { width: 16px; height: 16px; }
.brand-mark img { width: 28px; height: 28px; }
.brand-rail .brand-mark img { width: 34px; height: 34px; }
.source-support { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 54px; align-items: start; margin: 0 12px 90px; padding: 32px; background: #202020; border: 1px solid #3b3b3b; border-radius: 7px; }
.source-support h2 { max-width: 520px; margin: 10px 0 13px; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; }
.source-support p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.source-list { display: flex; flex-wrap: wrap; gap: 9px; }
.source-list span { padding: 10px 12px; color: #ddd; background: #292929; border: 1px solid #424242; border-radius: 5px; font-size: .74rem; font-weight: 700; }
.source-list span:last-child { color: #f5c768; background: #302818; border-color: #654a1e; }
.site-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; margin: 36px 12px 0; padding: 25px 0 0; border-top: 1px solid #383838; }
.site-footer nav { display: flex; flex-wrap: nowrap; justify-content: center; gap: 20px; }
.site-footer nav a, .site-footer > span { color: #999; font-size: .72rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.site-footer nav .footer-site-button { display: inline-flex; align-items: center; min-height: 30px; margin: -7px 0; padding: 0 10px; color: #f5c768; background: #302818; border: 1px solid #654a1e; border-radius: 5px; font-weight: 700; }
.site-footer nav .footer-site-button:hover { color: #171717; background: #f5bd35; border-color: #f5bd35; }
.footer-social { display: flex; gap: 7px; align-items: center; }
.footer-social a { display: grid; place-items: center; width: 30px; height: 30px; color: #aaa; background: #242424; border: 1px solid #414141; border-radius: 5px; text-decoration: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.footer-social a:hover { color: #171717; background: #f5bd35; border-color: #f5bd35; }
.footer-social svg { width: 15px; height: 15px; }
.footer-social span { font-size: .7rem; font-weight: 800; }
.site-footer .footer-copyright, .site-footer > span { grid-column: 1 / -1; grid-row: 2; justify-self: center; margin: 0; color: #737373; font-size: .58rem; line-height: 1.5; text-align: center; white-space: nowrap; }

@media (max-width: 1050px) {
  .landing-page { grid-template-columns: 68px minmax(0, 1fr); }
  .landing-rail-brand { width: 50px; height: 50px; }
  .landing-rail a, .landing-rail button { width: 48px; height: 48px; }
  .landing-workspace .site-header { grid-template-columns: auto minmax(180px, 1fr) auto; gap: 12px; padding: 10px 18px; }
  .landing-workspace .site-nav a { display: none; }
  .landing-main { padding: 0 18px 30px; }
  .workflow-band { margin: 0 -18px -30px; padding: 65px 30px; }
  .landing-cta { grid-template-columns: 64px minmax(0, 1fr); }
  .landing-cta > img { width: 58px; height: 58px; padding: 10px; }
  .landing-cta button { grid-column: 2; justify-self: start; }
  .source-support { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
}
@media (max-width: 680px) {
  .landing-page { display: block; padding: 0; }
  .landing-rail { position: fixed; z-index: 10; top: auto; right: 0; bottom: 0; left: 0; flex-direction: row; justify-content: space-around; width: 100%; height: 60px; padding: 5px 14px; border-width: 1px 0 0; border-radius: 0; }
  .landing-rail-brand { display: none; }
  .landing-rail a, .landing-rail button { width: 46px; height: 46px; margin: 0; }
  .landing-workspace { padding-bottom: 60px; border: 0; border-radius: 0; }
  .landing-workspace .site-header { grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; padding: 12px 16px; }
  .landing-workspace .site-header > strong { font-size: .9rem; }
  .site-header-center { display: none; }
  .landing-workspace .site-nav { display: block; }
  .landing-main { padding: 0 12px 25px; }
  .landing-hero { display: block; padding: 28px 2px 18px; }
  .landing-copy h1 { font-size: 1.75rem; }
  .landing-open-button { margin-top: 18px; }
  .landing-data { padding: 0; }
  .landing-data .preview-kpis div { padding: 12px 8px; }
  .landing-data .preview-kpis small { font-size: .59rem; }
  .landing-data .preview-kpis strong { font-size: 1rem; }
  .landing-data .preview-chart { height: 110px; margin: 10px; }
  .landing-data .preview-table { margin: 0 10px 10px; }
  .landing-data .preview-table div { padding: 9px; }
  .feature-intro { padding: 68px 2px 30px; }
  .feature-strip { padding: 0 0 65px; }
  .workflow-band { margin: 0 -12px -25px; padding: 60px 20px; }
  .landing-cta { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; margin: 25px 0 0; padding: 20px; }
  .landing-cta > img { width: 46px; height: 46px; padding: 8px; }
  .landing-cta h2 { font-size: 1.3rem; }
  .landing-cta button { grid-column: 1 / -1; }
  .source-support { margin: 0 0 65px; padding: 22px; }
  .site-footer { margin: 28px 0 0; }
}

.legal-page { min-height: 100vh; background: #171717; }
.legal-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; min-height: 68px; padding: 12px max(22px, calc((100vw - 920px) / 2)); background: rgba(27,27,27,.96); border-bottom: 1px solid #363636; }
.legal-header > a:last-child { color: #f5c768; font-size: .76rem; font-weight: 700; text-decoration: none; }
.legal-shell { width: min(100% - 40px, 920px); margin: 0 auto; padding: 80px 0 100px; }
.legal-shell > h1 { margin: 12px 0 8px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1; }
.legal-date { margin: 0 0 55px; color: #888; font-size: .78rem; }
.legal-shell section { display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); gap: 34px; padding: 26px 0; border-top: 1px solid #383838; }
.legal-shell section h2 { margin: 0; font-size: .92rem; }
.legal-shell section p { margin: 0; color: #aaa; font-size: .88rem; line-height: 1.75; }
.legal-copy { display: grid; gap: 13px; min-width: 0; }
.legal-copy p { margin: 0; }
.legal-copy ul { display: grid; gap: 8px; margin: 0; padding-left: 19px; color: #aaa; font-size: .88rem; line-height: 1.65; }
.legal-copy li { padding-left: 3px; }
.legal-copy strong { color: #ddd; }
.legal-copy code { padding: 2px 5px; color: #e7e7e7; background: #242424; border: 1px solid #393939; border-radius: 3px; font-size: .82em; }
.legal-summary { max-width: 760px; margin: 0 0 48px; color: #c4c4c4; font-size: .88rem; line-height: 1.7; }
.legal-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 24px; padding: 25px; border-top: 1px solid #363636; }
.legal-footer a { color: #999; font-size: .72rem; text-decoration: none; }
.legal-footer a:hover { color: var(--accent); }
.legal-footer .footer-copyright { flex: 0 0 100%; color: #737373; font-size: .58rem; line-height: 1.5; text-align: center; white-space: nowrap; }
@media (max-width: 680px) {
  .legal-shell { width: min(100% - 30px, 920px); padding: 55px 0 75px; }
  .legal-shell section { grid-template-columns: 1fr; gap: 10px; }
}

/* Refined public typography and analytics preview */
.landing-workspace .site-header > strong,
.wordmark strong { font-size: .88rem; }
.landing-copy h1 { max-width: 790px; font-size: clamp(2.35rem, 4.3vw, 4.25rem); }
.landing-copy p { max-width: 680px; font-size: .84rem; }
.hero-request-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 18px; color: #f5c768; font-size: .76rem; font-weight: 800; text-decoration: none; }
.hero-request-link:hover { color: #ffd66f; }
.hero-request-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.hero-request-link:hover svg { transform: translateX(3px); }
.feature-intro h2 { font-size: clamp(1.75rem, 2.8vw, 2.35rem); }
.feature-intro p, .feature-strip p, .workflow-band p { font-size: .82rem; }
.feature-strip h2 { font-size: 1.05rem; }
.workflow-band h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); }
.source-support h2 { font-size: clamp(1.5rem, 2.7vw, 2.15rem); }
.landing-cta h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }

.landing-data .preview-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.landing-data .preview-kpis div { min-width: 0; padding: 17px 20px; }
.landing-data .preview-kpis strong { font-size: 1.55rem; }
.landing-data .preview-kpis em { display: block; margin-top: 5px; color: #838383; font-size: .62rem; font-style: normal; font-weight: 600; }
.landing-data .preview-kpis div:first-child em { color: #75bf94; }
.preview-insights { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .45fr); gap: 12px; padding: 16px 20px; }
.preview-revenue-panel, .preview-mix-panel { min-width: 0; padding: 16px; background: #282828; border: 1px solid #3c3c3c; border-radius: 5px; }
.preview-panel-title { display: flex; justify-content: space-between; gap: 15px; align-items: start; }
.preview-panel-title > div { display: grid; gap: 4px; }
.preview-panel-title strong { font-size: .76rem; }
.preview-panel-title small { color: #898989; font-size: .6rem; }
.preview-panel-title > span { padding: 5px 7px; color: #aaa; background: #303030; border: 1px solid #444; border-radius: 4px; font-size: .58rem; font-weight: 700; }
.landing-data .preview-chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: end; gap: 9px; height: 150px; margin: 10px 0 0; padding: 0; background: repeating-linear-gradient(to bottom, transparent 0 36px, #353535 37px); border: 0; border-radius: 0; }
.landing-data .preview-chart > div { display: grid; grid-template-rows: 120px 17px; gap: 4px; align-items: end; height: 141px; text-align: center; }
.landing-data .preview-chart > div > span { display: block; width: 100%; background: #f2b72b; border-radius: 3px 3px 0 0; }
.landing-data .preview-chart > div:nth-child(even) > span { background: #967a43; }
.landing-data .preview-chart small { color: #777; font-size: .56rem; }
.preview-mix-panel { display: grid; align-content: start; }
.preview-donut { display: grid; place-items: center; width: 116px; aspect-ratio: 1; margin: 17px auto 13px; border-radius: 50%; background: conic-gradient(#f2b72b 0 42%, #8c7040 42% 66%, #535353 66% 100%); }
.preview-donut::before { content: ""; grid-area: 1/1; width: 70px; aspect-ratio: 1; background: #282828; border-radius: 50%; }
.preview-donut > span { z-index: 1; grid-area: 1/1; display: grid; text-align: center; font-size: 1rem; font-weight: 800; }
.preview-donut small { color: #898989; font-size: .52rem; font-weight: 600; }
.mix-legend { display: grid; gap: 7px; }
.mix-legend span { display: grid; grid-template-columns: 7px 1fr auto; gap: 7px; align-items: center; color: #999; font-size: .58rem; }
.mix-legend i { width: 7px; height: 7px; background: #f2b72b; border-radius: 2px; }
.mix-legend span:nth-child(2) i { background: #8c7040; }
.mix-legend span:nth-child(3) i { background: #535353; }
.mix-legend b { color: #ddd; }
.landing-data .preview-table { margin-top: 0; }
.landing-data .preview-table div { grid-template-columns: 1fr 1.1fr .7fr .7fr; }
.landing-data .preview-table div > :nth-child(3) { color: #a5a5a5; font-size: .68rem; }

@media (max-width: 850px) {
  .landing-data .preview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-data .preview-kpis div:nth-child(2) { border-right: 0; }
  .landing-data .preview-kpis div:nth-child(-n+2) { border-bottom: 1px solid #3a3a3a; }
  .preview-insights { grid-template-columns: 1fr; }
  .preview-mix-panel { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; }
  .preview-donut { margin: 5px; }
}
@media (max-width: 680px) {
  .landing-copy h1 { font-size: 2.15rem; }
  .landing-data .preview-kpis div { padding: 12px; }
  .landing-data .preview-kpis strong { font-size: 1.15rem; }
  .preview-insights { padding: 10px; }
  .preview-mix-panel { grid-template-columns: 1fr; }
  .preview-donut { margin: 12px auto; }
  .landing-data .preview-table div { grid-template-columns: .9fr 1fr .7fr; }
  .landing-data .preview-table div > :nth-child(3) { display: none; }
}

/* Compact public heading scale */
.landing-copy h1 { max-width: 700px; font-size: clamp(2.05rem, 3.6vw, 3.55rem); }
.feature-intro h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.feature-strip h2 { font-size: .95rem; }
.workflow-band h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
.source-support h2 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
.landing-cta h2 { font-size: clamp(1.2rem, 2.1vw, 1.7rem); }
.legal-shell > h1 { font-size: clamp(2rem, 4.8vw, 4rem); }
@media (max-width: 680px) {
  .landing-copy h1 { font-size: 1.85rem; }
  .feature-intro h2, .workflow-band h2 { font-size: 1.5rem; }
  .source-support h2 { font-size: 1.35rem; }
}

/* Compact scale shared by the public site, login, dashboard, and legal pages. */
html { font-size: 14px; }
.eyebrow { font-size: .66rem; }
.landing-workspace .site-header, .workspace-bar { min-height: 62px; }
.landing-workspace .site-header { padding: 8px 28px; }
.site-header-center, .workspace-search { height: 38px; }
.landing-main { padding: 0 28px 30px; }
.landing-hero { padding: 27px 10px 18px; }
.landing-copy h1 { max-width: 630px; margin: 9px 0 11px; font-size: clamp(1.9rem, 3.2vw, 3.05rem); }
.landing-copy p { max-width: 620px; font-size: .78rem; }
.hero-request-link { margin-top: 14px; font-size: .7rem; }
.landing-data .preview-topbar { min-height: 64px; padding: 13px 17px; }
.landing-data .preview-kpis div { padding: 14px 17px; }
.landing-data .preview-kpis strong { font-size: 1.35rem; }
.preview-insights { padding: 13px 17px; }
.feature-intro { padding: 72px 10px 28px; }
.feature-intro h2 { margin: 10px 0 12px; font-size: clamp(1.4rem, 2.1vw, 1.75rem); }
.feature-strip { gap: 14px; padding: 0 10px 66px; }
.feature-strip article { min-height: 178px; padding: 21px; }
.feature-number { margin-bottom: 20px; }
.feature-strip h2 { font-size: .88rem; }
.feature-strip p { margin-top: 9px; font-size: .75rem; }
.source-support { gap: 40px; margin: 0 10px 66px; padding: 26px; }
.source-support h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.source-support p { font-size: .76rem; }
.source-list span { padding: 8px 10px; font-size: .68rem; }
.workflow-band { margin: 0 -28px -30px; padding: 58px 38px; }
.workflow-band h2 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }
.workflow-band p, .workflow-band li { font-size: .76rem; }
.workflow-band li { padding: 15px 0; }
.landing-cta { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 21px; margin: 28px 10px 0; padding: 24px; }
.landing-cta > img { width: 58px; height: 58px; padding: 11px; }
.landing-cta h2 { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.landing-cta p { font-size: .75rem; }
.site-footer { margin: 28px 10px 0; padding-top: 20px; }

.login-shell { width: min(100%, 400px); gap: 18px; }
.login-shell > .brand { margin-bottom: 18px; }
.login-stars { position: absolute; inset: 0; pointer-events: none; }
.login-stars span { position: absolute; width: 3px; height: 3px; background: #f5bd35; border-radius: 50%; opacity: 0; box-shadow: 0 0 8px rgba(245,189,53,.65); animation: login-star-twinkle 7s ease-in-out infinite; }
.login-stars span:nth-child(1) { top: 13%; left: 16%; animation-delay: -1.1s; }
.login-stars span:nth-child(2) { top: 23%; right: 18%; width: 2px; height: 2px; animation-delay: -4.8s; animation-duration: 8.2s; }
.login-stars span:nth-child(3) { top: 57%; left: 10%; width: 2px; height: 2px; animation-delay: -2.9s; animation-duration: 6.4s; }
.login-stars span:nth-child(4) { right: 12%; bottom: 22%; animation-delay: -6.1s; animation-duration: 9s; }
.login-stars span:nth-child(5) { right: 27%; bottom: 9%; width: 2px; height: 2px; animation-delay: -3.6s; animation-duration: 7.7s; }
.login-stars span:nth-child(6) { top: 8%; left: 43%; width: 2px; height: 2px; animation-delay: -5.3s; animation-duration: 8.8s; }
.login-stars span:nth-child(7) { bottom: 14%; left: 29%; animation-delay: -.4s; animation-duration: 9.4s; }
@keyframes login-star-twinkle { 0%, 16%, 82%, 100% { opacity: 0; transform: scale(.5); } 30%, 66% { opacity: .85; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .login-stars span { animation: none; } .login-stars span:nth-child(-n+4) { opacity: .55; } }
.login-card { gap: 13px; padding: 25px; }
.login-card h1 { margin: 0 0 4px; font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.12; }
.login-card label { gap: 6px; font-size: .72rem; }
.login-card input { height: 40px; font-size: .78rem; }
.login-card button { height: 38px; font-size: .78rem; }
.login-card p { font-size: .72rem; }
.login-page .brand-mark { width: 36px; height: 36px; }
.login-page .brand-mark img { width: 23px; height: 23px; }

.panel-main > section { margin-top: 13px; }
.panel-main .hero { padding: 20px 0 10px; }
.panel-main .hero h1 { font-size: clamp(1.55rem, 2.5vw, 2.15rem); }
.dropzone { min-height: 125px; }
.kpi-grid article { padding: 15px; }
.kpi-grid strong { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.panel { padding: 15px; }
.panel-header h2 { font-size: .86rem; }
th, td { padding: 9px 7px; }
td { font-size: .7rem; }

.legal-shell { max-width: 820px; padding: 60px 0 80px; }
.legal-shell > h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
.legal-date { margin-bottom: 40px; }
.legal-shell section { padding: 21px 0; }
.legal-shell section h2 { font-size: .82rem; }
.legal-shell section p { font-size: .78rem; }
.legal-copy ul { font-size: .78rem; }

@media (max-width: 680px) {
  html { font-size: 13px; }
  .landing-main { padding: 0 12px 22px; }
  .landing-copy h1 { font-size: 1.65rem; }
  .feature-intro { padding-top: 55px; }
  .feature-intro h2, .workflow-band h2 { font-size: 1.3rem; }
  .workflow-band { margin: 0 -12px -22px; padding: 46px 20px; }
  .landing-cta { grid-template-columns: 44px minmax(0, 1fr); }
  .landing-cta > img { width: 42px; height: 42px; padding: 7px; }
  .login-page { padding: 16px; }
  .login-card { padding: 21px; }
  .login-card h1 { font-size: 1.55rem; }
}

/* Dashboard navigation actions and workspace dialogs */
.panel-wordmark img { width: 27px; height: 27px; }
.workspace-account { display: grid; place-items: center; width: 34px; height: 34px; color: #aaa; background: #282828; border: 1px solid #3c3c3c; border-radius: 7px; }
.workspace-account svg { width: 18px; height: 18px; }
.nav-list .rail-action { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto; padding: 0; color: #999; background: transparent; border: 0; border-radius: 8px; }
.nav-list .rail-action:hover { color: #141414; background: var(--accent); filter: none; }
.nav-list .rail-action svg { width: 21px; height: 21px; stroke-width: 1.9; }
.nav-list svg, .logout-button svg, .workspace-support svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.nav-list .rail-action span { display: none; }
.nav-divider { display: block; width: 34px; height: 1px; margin: 6px auto; background: #383838; }
.workspace-dialog { width: min(calc(100% - 30px), 560px); padding: 0; color: var(--ink); background: #222; border: 1px solid #444; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.workspace-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(3px); }
.workspace-dialog form { display: grid; gap: 18px; padding: 24px; }
.dialog-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.dialog-header h2 { margin: 5px 0 0; font-size: 1.25rem; }
.dialog-close { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #aaa; background: #303030; border: 1px solid #444; }
.dialog-close svg { width: 16px; height: 16px; }
.dialog-intro { margin: -5px 0 0; color: #999; font-size: .76rem; line-height: 1.6; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dialog-grid label { font-size: .7rem; }
.dialog-grid input, .dialog-grid select { height: 38px; font-size: .76rem; }
.dialog-grid textarea { width: 100%; resize: vertical; padding: 11px; color: var(--ink); background: #292929; border: 1px solid #494949; border-radius: 7px; font: inherit; font-size: .76rem; }
.dialog-full { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 4px; }
.dialog-actions button { width: auto; height: 36px; padding: 0 14px; font-size: .72rem; }
.dialog-actions .secondary-button { color: #ccc; background: #303030; border: 1px solid #454545; }
.dialog-message { min-height: 16px; margin: -4px 0; color: #7dc39b; font-size: .7rem; }
.workspace-support { display: grid; place-items: center; width: 34px; height: 34px; color: #aaa; background: #282828; border: 1px solid #3c3c3c; border-radius: 50%; text-decoration: none; }
.workspace-support:hover { color: #171717; background: var(--accent); border-color: var(--accent); }
.workspace-support svg { width: 18px; height: 18px; stroke-width: 1.8; }
.rail-support, .rail-activity { display: grid; place-items: center; width: 54px; height: 54px; color: #a9a9a9; background: transparent; border: 0; border-radius: 8px; text-decoration: none; }
.rail-support { margin-top: auto !important; }
.rail-support:hover, .rail-activity:hover { color: var(--accent); background: #2b2b2b; }
.rail-support svg, .rail-activity svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.rail-support span, .rail-activity span { display: none; }
.nav-list .rail-support, .nav-list .rail-activity, .nav-list .logout-button { margin: 0 auto; }
@media (max-width: 680px) {
  .panel-wordmark strong { font-size: .76rem; }
  .sidebar { overflow-x: auto; justify-content: flex-start; }
  .nav-list { flex: 0 0 auto; }
  .nav-list .rail-action { width: 46px; height: 46px; }
  .nav-divider { width: 1px; height: 28px; margin: auto 2px; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-full { grid-column: auto; }
}

/* Data readiness and valuation modules */
.setup-panel { padding: 17px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.setup-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 13px; }
.setup-heading h2 { margin: 5px 0 0; font-size: .92rem; }
.setup-progress { padding: 6px 8px; color: #f4c768; background: #302818; border: 1px solid #60481e; border-radius: 4px; font-size: .62rem; font-weight: 800; }
.connection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.connection-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; align-items: center; height: auto; min-height: 64px; padding: 10px; color: #ddd; background: #292929; border: 1px solid #414141; border-radius: 6px; text-align: left; }
.connection-item:hover { color: #fff; background: #302d24; border-color: #6a5226; filter: none; }
.connection-item > svg { width: 17px; height: 17px; color: var(--accent); }
.connection-item > span { display: grid; gap: 4px; min-width: 0; }
.connection-item strong { font-size: .69rem; }
.connection-item small { overflow: hidden; color: #8d8d8d; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.connection-item em { display: inline-flex; align-items: center; gap: 5px; color: #f4c768; font-size: .58rem; font-style: normal; font-weight: 800; }
.connection-item em svg { width: 12px; height: 12px; }
.access-summary { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 18px; align-items: start; padding: 16px; border: 1px solid #404040; border-radius: 6px; background: #1e1e1e; }
.access-summary h3 { margin: 5px 0 0; font-size: .9rem; }
.access-summary-list { display: flex; flex-wrap: wrap; gap: 7px; }
.access-summary-list span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; color: #d8d8d8; background: #292929; border: 1px solid #444; border-radius: 5px; font-size: .66rem; }
.access-summary-list svg { width: 12px; height: 12px; color: #63b98a; }
.access-summary-list strong { color: #f6b928; }
.access-row-actions { display: flex; gap: 6px; }
.access-status-invitation_pending { color: #f4c768; background: #392f1c; }
.danger-button { margin-right: auto; color: #ffb3a8; background: #3a211e; border-color: #6d332d; }
#invitationForm[hidden] { display: none !important; }
#last12Revenue, #lifetimeRevenue, #overviewRevenue, #overviewLast12, #overviewAverage, #averageMonthlyRevenue,
.royalty-category-grid strong, .wide-track-table td { white-space: pre-line; }
.royalty-category-grid strong { overflow: visible; font-size: .95rem; line-height: 1.35; text-overflow: clip; }
.valuation-grid { display: grid; grid-template-columns: minmax(310px, 1.35fr) repeat(3, minmax(150px, .65fr)); gap: 10px; }
.valuation-grid article { min-width: 0; padding: 16px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.valuation-primary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.valuation-primary h2 { margin: 5px 0 7px; font-size: .94rem; }
.valuation-primary p { max-width: 480px; margin: 0; color: #888; font-size: .6rem; line-height: 1.5; }
.valuation-grid article > span { color: #999; font-size: .64rem; }
.valuation-grid article > strong { display: block; margin: 8px 0 5px; color: #f5f5f5; font-size: 1.25rem; line-height: 1.1; }
.valuation-grid article > small { color: #777; font-size: .58rem; }
.valuation-primary > strong { margin: 0; color: var(--accent); font-size: clamp(1.05rem, 1.8vw, 1.45rem); white-space: nowrap; }
@media (max-width: 1180px) {
  .connection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valuation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .valuation-primary { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .connection-grid { grid-template-columns: 1fr; }
  .valuation-grid { grid-template-columns: 1fr; }
  .valuation-primary { grid-column: auto; grid-template-columns: 1fr; }
  .valuation-primary > strong { white-space: normal; }
}

/* Focused dashboard views */
.workspace-section-hidden { display: none !important; }
.nav-list .rail-action.active { color: #141414; background: var(--accent); }
.view-heading { padding: 22px 0 8px; }
.view-heading h1 { margin: 5px 0 7px; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.1; }
.view-heading p { max-width: 680px; margin: 0; color: #999; font-size: .75rem; }
.overview-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.overview-summary article { min-width: 0; padding: 17px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.overview-summary article > span, .overview-leaders span { color: #999; font-size: .64rem; }
.overview-summary article > strong { display: block; overflow: hidden; margin: 8px 0 5px; color: #f5f5f5; font-size: 1.4rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-summary article > small { color: #777; font-size: .58rem; }
.overview-summary .overview-leaders { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.overview-leaders > div { min-width: 0; padding: 15px 17px; border-right: 1px solid #383838; }
.overview-leaders > div:last-child { border-right: 0; }
.overview-leaders strong { display: block; overflow: hidden; margin-top: 6px; color: #f5c768; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.financial-chart { grid-template-columns: 1fr; }
.analytics-chart { display: grid; grid-template-columns: minmax(0, 1fr); }
.analytics-chart .panel { min-height: 330px; }
@media (max-width: 850px) {
  .overview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .overview-summary { grid-template-columns: 1fr; }
  .overview-summary .overview-leaders { grid-column: auto; grid-template-columns: 1fr; }
  .overview-leaders > div { border-right: 0; border-bottom: 1px solid #383838; }
  .overview-leaders > div:last-child { border-bottom: 0; }
}

/* Full workspace pages */
.profile-page, .funding-page { display: block; }
.profile-page { padding-bottom: 64px; }
.settings-form { display: grid; gap: 19px; max-width: 920px; }
.settings-group { padding-top: 4px; }
.settings-group + .dialog-grid { padding-bottom: 5px; }
.settings-group h2 { margin: 5px 0 0; font-size: .92rem; }
.settings-group p { margin: 7px 0 0; color: #888; font-size: .68rem; line-height: 1.55; }
.settings-form .dialog-grid { gap: 13px; }
.settings-form input, .settings-form select { height: 39px; }
.settings-form input[type="file"] { height: auto; padding: 9px; }
.profile-photo-field { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 0 0 18px; border-bottom: 1px solid #383838; }
.profile-photo-preview { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; color: #a5a5a5; background: #292929; border: 1px solid #474747; border-radius: 50%; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-preview span { display: grid; place-items: center; width: 100%; height: 100%; }
.profile-photo-preview svg { width: 28px; height: 28px; stroke-width: 1.7; }
.profile-photo-copy { display: grid; min-width: 0; gap: 7px; }
.profile-photo-copy > strong { color: #eeeeee; font-size: .72rem; }
.optional-label { margin-left: 5px; color: #777; font-size: .52rem; font-weight: 600; text-transform: uppercase; }
.profile-photo-copy > p { max-width: 610px; margin: 0; color: #8f8f8f; font-size: .6rem; line-height: 1.55; }
.profile-photo-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-photo-actions .compact-action { height: 30px; }
.profile-photo-actions [hidden], .profile-photo-preview [hidden], .nav-list #profileButton [hidden] { display: none; }
.profile-photo-status { min-height: 14px; color: #78bf96; font-size: .57rem; line-height: 1.45; }
.profile-photo-status.is-error { color: #ec8f82; }
.invite-photo-field { grid-template-columns: 60px minmax(0, 1fr); padding-bottom: 15px; }
.invite-photo-field .profile-photo-preview { width: 56px; height: 56px; }
.invite-photo-field .profile-photo-preview svg { width: 23px; height: 23px; }
.nav-list #profileButton img { width: 30px; height: 30px; object-fit: cover; border: 2px solid currentColor; border-radius: 50%; }
.nav-list #profileButton.active img { border-color: #171717; }
.preference-check { display: flex; grid-template-columns: none; gap: 9px; align-items: center; color: #aaa; }
.preference-check input { width: 16px; height: 16px; accent-color: var(--accent); }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 5px; border-top: 1px solid #383838; }
.settings-actions button { width: auto; height: 37px; padding: 0 16px; font-size: .72rem; }
.funding-page .settings-form { max-width: none; }
.catalog-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.catalog-detail-grid article { min-width: 0; padding: 15px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.catalog-detail-grid span { color: #999; font-size: .63rem; }
.catalog-detail-grid strong { display: block; overflow: hidden; margin: 7px 0 4px; color: #f5f5f5; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-detail-grid small { color: #777; font-size: .57rem; }
@media (max-width: 850px) {
  .catalog-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .catalog-detail-grid { grid-template-columns: 1fr; }
  .settings-form { gap: 16px; }
  .profile-photo-field { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .profile-photo-preview { width: 56px; height: 56px; }
}

/* Expanded overview */
.overview-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.overview-detail-grid article { min-width: 0; padding: 16px; background: #202020; border: 1px solid #383838; border-radius: 7px; }
.overview-detail-grid h2 { margin: 6px 0 9px; color: #aaa; font-size: .68rem; font-weight: 600; }
.overview-detail-grid strong { display: block; overflow: hidden; color: #f3f3f3; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-detail-grid small { display: block; margin-top: 6px; color: #777; font-size: .57rem; line-height: 1.4; }
.overview-source-card-header { display: flex; min-width: 0; gap: 8px; align-items: center; justify-content: space-between; }
.overview-source-picker { display: block; min-width: 0; }
.overview-source-picker select { width: auto; max-width: 145px; height: 27px; padding: 0 25px 0 8px; border-radius: 5px; font-size: .55rem; font-weight: 700; text-overflow: ellipsis; }
.overview-source-card h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#overviewTiktokLifetime, #overviewSourceRevenue { overflow: visible; white-space: pre-line; }
.overview-detail-grid .currency-money-list { font-size: .84rem; }

/* Dashboard dropdowns use the workspace surface instead of the browser's bright native menu. */
@supports (appearance: base-select) {
  #panelPage select,
  #panelPage select::picker(select) {
    appearance: base-select;
  }

  #panelPage select {
    align-items: center;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
  }

  #panelPage select:hover:not(:disabled) {
    background: #303030;
    border-color: #606060;
  }

  #panelPage select:focus-visible,
  #panelPage select:open {
    outline: 0;
    border-color: #a67b1e;
    box-shadow: 0 0 0 3px rgba(245, 185, 40, .14);
  }

  #panelPage select::picker-icon {
    width: 14px;
    height: 14px;
    margin-left: 10px;
    color: #d7aa42;
    transition: rotate .16s ease;
  }

  #panelPage select:open::picker-icon { rotate: 180deg; }

  #panelPage select::picker(select) {
    max-height: min(320px, 55vh);
    margin-top: 6px;
    padding: 5px;
    overflow-y: auto;
    color: #ededed;
    background: #242424;
    border: 1px solid #484848;
    border-radius: 7px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .42);
  }

  #panelPage select option {
    min-height: 34px;
    padding: 8px 10px;
    color: #d7d7d7;
    background: transparent;
    border: 0;
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 650;
    cursor: pointer;
  }

  #panelPage select option + option { margin-top: 2px; }
  #panelPage select option:hover { color: #ffffff; background: #333333; }
  #panelPage select option:checked { color: #171717; background: #f5b928; }
  #panelPage select option::checkmark { margin-left: auto; color: currentColor; }
  #panelPage select option:disabled { color: #707070; cursor: not-allowed; }

  html[data-theme="light"] #panelPage select:hover:not(:disabled) {
    background: #ffffff;
    border-color: #aeb7bc;
  }

  html[data-theme="light"] #panelPage select::picker(select) {
    color: #252a2d;
    background: #ffffff;
    border-color: #cbd2d6;
    box-shadow: 0 14px 34px rgba(33, 40, 44, .18);
  }

  html[data-theme="light"] #panelPage select option { color: #41484d; }
  html[data-theme="light"] #panelPage select option:hover { color: #202326; background: #eef1f2; }
  html[data-theme="light"] #panelPage select option:checked { color: #171717; background: #f5b928; }
  html[data-theme="light"] #panelPage select option:disabled { color: #9da4a8; }
}

.overview-funding { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 19px; background: #292519; border: 1px solid #655023; border-radius: 7px; }
.funding-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #f5b928; background: #342b19; border: 1px solid #685023; border-radius: 7px; }
.funding-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.overview-funding h2 { margin: 4px 0 5px; font-size: 1rem; }
.overview-funding p { max-width: 700px; margin: 0; color: #a6987d; font-size: .65rem; line-height: 1.5; }
.overview-funding button, .overview-funding .funding-request-link { display: inline-flex; width: auto; height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; color: #171717; background: #f5b928; border: 1px solid #f5b928; border-radius: 5px; white-space: nowrap; font-size: .7rem; font-weight: 800; text-decoration: none; }
.overview-funding .funding-request-link:hover { background: #ffd05a; border-color: #ffd05a; }
@media (max-width: 900px) {
  .overview-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .overview-detail-grid { grid-template-columns: 1fr; }
  .overview-funding { grid-template-columns: 40px minmax(0, 1fr); }
  .overview-funding button, .overview-funding .funding-request-link { grid-column: 2; justify-self: start; }
}

/* Mobile production pass */
.legal-summary { max-width: 680px; margin: -20px 0 35px; color: #c3c3c3; font-size: .82rem; line-height: 1.75; }
.legal-shell a { color: #f2c35b; }
.legal-shell code { padding: 2px 5px; color: #ddd; background: #292929; border: 1px solid #3d3d3d; border-radius: 4px; font-size: .9em; }

@media (max-width: 680px) {
  body { overflow-x: hidden; }
  button, input, select, textarea { max-width: 100%; }

  .landing-workspace { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .landing-workspace .site-header { position: sticky; top: 0; z-index: 6; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 12px; background: rgba(27,27,27,.98); }
  .landing-workspace .site-nav .ghost-button { height: 30px; padding: 0 9px; font-size: .66rem; }
  .wordmark { min-width: 0; }
  .wordmark strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; }
  .wordmark img { width: 24px; height: 24px; }
  .landing-copy p { font-size: .76rem; line-height: 1.62; }
  .landing-data .preview-topbar { min-height: 55px; padding: 11px; }
  .landing-data .preview-topbar h2 { font-size: .82rem; }
  .landing-data .preview-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-data .preview-kpis div { min-width: 0; border-bottom: 1px solid #3a3a3a; }
  .landing-data .preview-kpis div:nth-child(even) { border-right: 0; }
  .landing-data .preview-table { overflow-x: auto; }
  .landing-data .preview-table div { min-width: 370px; }
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip article { min-height: 0; }
  .source-support { gap: 20px; padding: 18px; }
  .source-list { gap: 7px; }
  .source-list span { padding: 7px 8px; font-size: .64rem; }
  .workflow-band { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { align-items: start; }
  .site-footer nav { gap: 12px 16px; }
  .site-footer > span { line-height: 1.55; }

  .sidebar { justify-content: flex-start; height: calc(62px + env(safe-area-inset-bottom)); padding: 5px 6px env(safe-area-inset-bottom); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .nav-list { flex: 0 0 auto; justify-content: flex-start; width: auto; gap: 3px; }
  .nav-list .rail-action, .nav-list a, .logout-button { flex: 0 0 44px; width: 44px; height: 44px; }
  .nav-list .rail-action svg, .nav-list a svg, .logout-button svg { width: 19px; height: 19px; }
  .logout-button { flex: 0 0 44px; }
  .rail-support, .rail-activity { flex: 0 0 44px; width: 44px; height: 44px; margin: 0 !important; }
  .rail-support svg, .rail-activity svg { width: 19px; height: 19px; }
  .panel-main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .workspace-bar { position: sticky; top: 0; z-index: 4; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 11px; background: rgba(27,27,27,.98); }
  .panel-wordmark { min-width: 0; }
  .panel-wordmark strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .workspace-search { width: 100%; }
  .workspace-support { grid-column: 2; grid-row: 1; width: 32px; height: 32px; }
  .panel-main > section { margin-right: 10px; margin-left: 10px; }
  .view-heading { padding-top: 15px; }
  .view-heading h1, .panel-main .hero h1 { font-size: 1.35rem; }
  .view-heading p, .panel-main .hero p { font-size: .69rem; line-height: 1.55; }
  .panel, .setup-panel { padding: 13px; }
  .panel-header { gap: 9px; }
  .panel-header h2 { font-size: .8rem; }
  .upload-band, .controls-panel, .dialog-grid { grid-template-columns: 1fr; }
  .controls-panel button { grid-column: auto; }
  .dropzone { min-height: 118px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid article { min-width: 0; }
  .kpi-grid span { font-size: .66rem; }
  .kpi-grid strong { overflow: hidden; font-size: 1.15rem; text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-grid, .tables-grid, .catalog-detail-grid, .overview-detail-grid { grid-template-columns: 1fr; }
  .table-wrap { margin-right: -4px; margin-left: -4px; padding-bottom: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { min-width: 610px; }
  .table-wrap th, .table-wrap td { white-space: nowrap; }
  .chart-panel, .analytics-chart .panel { min-height: 245px; }
  .chart-wrap, .chart-container { min-width: 0; }
  .connection-item { grid-template-columns: 26px minmax(0, 1fr) auto; }
  .overview-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-summary article > strong { font-size: 1.1rem; }
  .overview-summary .overview-leaders { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .overview-leaders > div { border-right: 0; border-bottom: 1px solid #383838; }
  .overview-leaders > div:last-child { border-bottom: 0; }
  .overview-funding { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .funding-mark { width: 36px; height: 36px; }
  .overview-funding button, .overview-funding .funding-request-link { grid-column: 1 / -1; width: 100%; }
  .settings-form { gap: 14px; }
  .profile-page { padding-bottom: 36px; }
  .settings-actions { justify-content: stretch; }
  .settings-actions button { width: 100%; }

  .login-shell { width: min(100%, 360px); }
  .login-card { padding: 19px; }

  .legal-header { min-height: 56px; padding: 9px 14px; }
  .legal-header .wordmark strong { font-size: .76rem; }
  .legal-shell { width: min(100% - 28px, 820px); padding: 42px 0 60px; }
  .legal-shell > h1 { margin-top: 9px; font-size: 1.7rem; line-height: 1.1; }
  .legal-date { margin-bottom: 27px; font-size: .68rem; }
  .legal-summary { margin: -10px 0 25px; font-size: .74rem; line-height: 1.65; }
  .legal-shell section { gap: 7px; padding: 18px 0; }
  .legal-shell section h2 { font-size: .78rem; }
  .legal-shell section p { font-size: .74rem; line-height: 1.68; }
  .legal-footer { flex-wrap: wrap; gap: 12px 18px; padding: 20px 14px calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .landing-copy h1 { font-size: 1.45rem; }
  .kpi-grid, .overview-summary { grid-template-columns: 1fr; }
  .overview-summary .overview-leaders { grid-column: auto; }
  .landing-cta { grid-template-columns: 38px minmax(0, 1fr); padding: 16px; }
  .landing-cta > img { width: 38px; height: 38px; }
}

/* Cookie consent */
.cookie-banner { position: fixed; z-index: 50; right: 18px; bottom: 18px; left: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; max-width: 1120px; margin: 0 auto; padding: 18px 20px; color: #eee; background: #242424; border: 1px solid #4a4a4a; border-radius: 7px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-copy strong { font-size: .86rem; }
.cookie-banner-copy p { max-width: 720px; margin: 6px 0 0; color: #aaa; font-size: .7rem; line-height: 1.55; }
.cookie-banner-copy a, .cookie-dialog a { color: #f4c35a; }
.cookie-banner-actions { display: flex; gap: 8px; align-items: center; }
.cookie-banner-actions button { width: auto; min-width: 104px; height: 34px; padding: 0 12px; font-size: .68rem; white-space: nowrap; }
.cookie-banner-actions .cookie-secondary { color: #ddd; background: #303030; border: 1px solid #4a4a4a; }
.cookie-dialog { width: min(calc(100% - 28px), 560px); padding: 0; color: #eee; background: #232323; border: 1px solid #484848; border-radius: 8px; box-shadow: 0 24px 80px rgba(0,0,0,.62); }
.cookie-dialog::backdrop { background: rgba(0,0,0,.74); backdrop-filter: blur(3px); }
.cookie-dialog form { display: grid; gap: 14px; padding: 22px; }
.cookie-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.cookie-dialog-head h2 { margin: 5px 0 0; font-size: 1.15rem; }
.cookie-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; color: #bbb; background: #303030; border: 1px solid #484848; border-radius: 5px; font-size: 1.15rem; }
.cookie-intro { margin: 0; color: #aaa; font-size: .72rem; line-height: 1.6; }
.cookie-option { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px; background: #292929; border: 1px solid #414141; border-radius: 6px; }
.cookie-option span { display: grid; gap: 4px; }
.cookie-option strong { font-size: .76rem; }
.cookie-option small { color: #929292; font-size: .64rem; line-height: 1.45; }
.cookie-option input { width: 18px; height: 18px; accent-color: #f6b928; }
.cookie-dialog-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 4px; }
.cookie-dialog-actions a { font-size: .68rem; }
.cookie-dialog-actions button { width: auto; height: 34px; padding: 0 13px; font-size: .68rem; }
.legal-cookie-button { width: auto; height: 34px; margin-top: 14px; padding: 0 13px; font-size: .68rem; }

/* Persistent royalty splits */
.split-detail-hidden { display: none !important; }
.split-track-list { margin-top: 12px; }
.split-track-list-header { align-items: center; }
.split-track-list-header p { max-width: 620px; margin: 6px 0 0; color: #929292; font-size: .65rem; line-height: 1.55; }
.split-track-list-header > button { width: auto; white-space: nowrap; }
.split-track-search { display: block; margin-bottom: 12px; }
.split-track-search input { width: 100%; height: 39px; padding: 0 12px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; font: inherit; font-size: .72rem; }
.split-track-search input:focus { outline: 2px solid #785a1d; outline-offset: 1px; }
.split-track-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.split-track-table table { min-width: 880px; margin: 0; }
.split-track-table th, .split-track-table td { padding: 12px; }
.split-track-identity { display: grid; gap: 3px; }
.split-track-identity strong { color: #eee; }
.split-track-identity small { color: #777; font-size: .55rem; text-transform: capitalize; }
.split-track-code { color: #aaa; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .61rem; }
.split-list-status { display: inline-flex; min-height: 23px; align-items: center; padding: 0 7px; border-radius: 4px; font-size: .54rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.split-list-status-active { color: #7dc39b; background: #25372c; }
.split-list-status-draft { color: #f4c35a; background: #3a311d; }
.split-list-status-missing { color: #aaa; background: #343434; }
.split-detail-heading { display: flex; gap: 13px; align-items: center; }
.split-detail-heading > button { height: 33px; }
.participant-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.participant-summary article { min-width: 0; padding: 15px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.participant-summary span { color: #999; font-size: .63rem; }
.participant-summary strong { display: block; margin: 7px 0 4px; color: #f5f5f5; font-size: 1.2rem; }
.participant-summary small { color: #777; font-size: .57rem; }
.participant-directory { margin-top: 12px; }
.participant-directory-header { align-items: center; }
.participant-directory-header p { max-width: 660px; margin: 6px 0 0; color: #929292; font-size: .65rem; line-height: 1.55; }
.participant-directory-header > button { width: auto; white-space: nowrap; }
.participant-directory-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.compact-action { display: inline-flex; width: auto; min-width: 0; height: 32px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border-radius: 5px; font-size: .61rem; white-space: nowrap; }
.compact-action svg { width: 13px; height: 13px; }
.participant-form { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr auto; gap: 10px; align-items: end; margin-bottom: 18px; padding: 14px; background: #292929; border: 1px solid #414141; border-radius: 6px; }
.participant-form[hidden] { display: none; }
.participant-form label { display: grid; gap: 7px; color: #bbb; font-size: .66rem; font-weight: 700; }
.participant-form input, .participant-form select { width: 100%; height: 38px; padding: 0 10px; color: #eee; background: #242424; border: 1px solid #494949; border-radius: 6px; font: inherit; font-size: .73rem; }
.participant-form-actions { display: flex; gap: 8px; }
.participant-form-actions button { width: auto; height: 38px; white-space: nowrap; }
.participant-form .dialog-message { grid-column: 1 / -1; margin: 0; }
.participant-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.participant-table table { min-width: 860px; margin: 0; }
.participant-table th, .participant-table td { padding: 12px; }
.participant-table a { color: #f4c35a; text-decoration: none; }
.participant-table a:hover { text-decoration: underline; }
.participant-identity { display: grid; gap: 3px; }
.participant-identity strong { color: #eee; }
.participant-identity small, .participant-missing { color: #777; font-size: .58rem; }
.artist-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.artist-directory .directory-search { width: min(240px, 100%); }
.artist-table table { min-width: 900px; }
.artist-directory-identity { display: grid; min-width: 190px; grid-template-columns: 36px minmax(0, 1fr); gap: 9px; align-items: center; }
.artist-directory-identity > img, .artist-directory-identity > span { display: grid; width: 36px; height: 36px; place-items: center; overflow: hidden; background: #30291b; border: 1px solid #5f4b20; border-radius: 50%; object-fit: contain; font-size: .65rem; font-weight: 800; }
.artist-directory-identity > div { display: grid; min-width: 0; gap: 3px; }
.artist-directory-identity strong, .artist-spotify-profile strong { overflow: hidden; color: #eee; text-overflow: ellipsis; white-space: nowrap; }
.artist-directory-identity small, .artist-spotify-profile small { overflow: hidden; color: #777; font-size: .55rem; text-overflow: ellipsis; white-space: nowrap; }
.artist-spotify-profile { display: inline-grid; min-width: 180px; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; align-items: center; color: #8fc9a0; text-decoration: none; }
.artist-spotify-profile > img { width: 18px; height: 18px; }
.artist-spotify-profile > span { display: grid; min-width: 0; gap: 2px; }
.access-user-identity { display: grid; min-width: 190px; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; align-items: center; }
.access-user-avatar { position: relative; display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; overflow: hidden; color: #f5c768; background: #30291b; border: 1px solid #5f4b20; border-radius: 50%; font-size: .55rem; font-weight: 800; }
.access-user-avatar > span { position: relative; z-index: 0; }
.access-user-avatar img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.access-user-avatar img[hidden] { display: none; }
.participant-balance { display: block; color: #eee; font-size: .67rem; white-space: nowrap; }
.participant-balance + .participant-balance { margin-top: 3px; }
.split-entity-panel { margin-top: 12px; }
.split-entity-header, .split-section-heading, .split-participant-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.split-persistence-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; color: #f4c35a; background: #302818; border: 1px solid #654a1e; border-radius: 5px; font-size: .62rem; font-weight: 800; white-space: nowrap; }
.split-entity-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.split-entity-controls label, .split-rule-grid label, .split-participant-row label, .split-notes { display: grid; gap: 7px; color: #bbb; font-size: .66rem; font-weight: 700; }
.split-entity-controls select { width: 100%; height: 39px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; padding: 0 11px; font: inherit; }
.secondary-button { width: auto; min-width: 0; color: #ddd; background: #303030; border: 1px solid #4a4a4a; }
.secondary-button:hover { color: #fff; background: #383838; filter: none; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(260px, .72fr); gap: 12px; margin-top: 12px; }
.split-editor { display: grid; gap: 20px; }
.split-section-heading h2, .split-participant-head h2, .split-policy-panel h2 { margin: 5px 0 0; font-size: .92rem; }
.split-identity-grid { padding-top: 2px; padding-bottom: 18px; border-bottom: 1px solid #3d3d3d; }
.split-scope-selector { display: grid; gap: 11px; padding: 15px; background: #292929; border: 1px solid #414141; border-radius: 6px; }
.split-scope-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.split-scope-heading h3 { margin: 5px 0 0; color: #f1f1f1; font-size: .84rem; }
.split-scope-heading p { max-width: 430px; margin: 0; color: #929292; font-size: .62rem; line-height: 1.5; text-align: right; }
.split-scope-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.split-scope-option { display: grid; width: 100%; min-width: 0; height: 88px; align-content: center; justify-items: start; gap: 4px; padding: 10px; color: #c9c9c9; background: #242424; border: 1px solid #464646; border-radius: 6px; text-align: left; }
.split-scope-option:hover { color: #fff; background: #303030; border-color: #665122; filter: none; }
.split-scope-option strong, .split-scope-option span, .split-scope-option small { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-scope-option strong { color: inherit; font-size: .67rem; }
.split-scope-option span { color: #858585; font-size: .53rem; }
.split-scope-option small { color: #aaa; font-size: .52rem; font-weight: 750; text-transform: capitalize; }
.split-scope-option.active { color: #171717; background: #f6b928; border-color: #f6b928; }
.split-scope-option.active span, .split-scope-option.active small { color: #4e3b12; }
.split-scope-providers { min-height: 17px; margin: 0; color: #999; font-size: .59rem; line-height: 1.5; }
.split-scope-providers strong { color: #d6d6d6; }
.split-rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.split-rule-grid input, .split-rule-grid select, .split-participant-row input, .split-participant-row select { width: 100%; height: 38px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; padding: 0 10px; font: inherit; font-size: .73rem; }
.split-participants { display: grid; gap: 8px; }
.split-participant-row { display: grid; grid-template-columns: minmax(160px, 1.6fr) minmax(120px, 1fr) minmax(90px, .6fr) 36px; gap: 9px; align-items: end; padding: 11px; background: #292929; border: 1px solid #3f3f3f; border-radius: 6px; }
.split-participant-row input, .split-participant-row select { background: #242424; }
.split-remove { width: 36px; height: 38px; padding: 0; color: #aaa; background: #242424; border: 1px solid #494949; border-radius: 6px; font-size: 1.1rem; }
.split-remove:hover { color: #fff; background: #5b2b2b; filter: none; }
.split-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #454545; border-radius: 6px; overflow: hidden; }
.split-totals > div { min-width: 0; padding: 13px; background: #292929; border-right: 1px solid #454545; }
.split-totals > div:last-child { border-right: 0; }
.split-totals span { display: block; color: #929292; font-size: .61rem; }
.split-totals strong { display: block; margin-top: 6px; color: #f3f3f3; font-size: .92rem; }
.split-totals small { display: block; margin-top: 4px; color: #75bd93; font-size: .56rem; }
.split-totals .split-invalid { color: #f08c7f; }
.split-preview-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.split-preview-table table { margin: 0; }
.split-preview-table th, .split-preview-table td { padding: 11px 12px; }
.split-notes textarea { width: 100%; resize: vertical; padding: 11px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; font: inherit; font-size: .73rem; }
.split-actions { display: flex; justify-content: flex-end; gap: 9px; }
.split-actions button { width: auto; min-width: 126px; }
.split-success { color: #7dc39b; }
.split-error { color: #f08c7f; }
.split-side-column { display: grid; align-content: start; gap: 12px; }
.split-history { display: grid; gap: 9px; }
.split-history-item { padding: 13px; background: #292929; border: 1px solid #404040; border-radius: 6px; }
.split-history-item > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.split-history-item > div strong { font-size: .75rem; }
.split-history-item p { margin: 8px 0; color: #aaa; font-size: .62rem; }
.split-history-item ul { display: grid; gap: 5px; margin: 0; padding: 9px 0; border-top: 1px solid #414141; border-bottom: 1px solid #414141; list-style: none; }
.split-history-item li { display: flex; justify-content: space-between; gap: 12px; color: #ccc; font-size: .64rem; }
.split-history-item small { display: block; margin-top: 9px; color: #777; font-size: .55rem; line-height: 1.55; }
.split-status { padding: 4px 6px; border-radius: 4px; font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.split-status-active { color: #7dc39b; background: #25372c; }
.split-status-superseded { color: #aaa; background: #363636; }
.split-status-draft { color: #f4c35a; background: #3a311d; }
.split-empty { padding: 18px 0; color: #888; font-size: .68rem; }
.split-policy-panel p { margin: 9px 0 0; color: #999; font-size: .66rem; line-height: 1.6; }
.split-ledger-panel { margin-top: 12px; }
.split-ledger-panel .table-wrap { border: 1px solid #3e3e3e; border-radius: 6px; }
.split-ledger-panel .empty-row td { height: 74px; padding: 22px 12px; vertical-align: middle; }
.table-action { width: auto; min-width: 72px; height: 28px; padding: 0 9px; color: #f4c35a; background: #302818; border: 1px solid #654a1e; border-radius: 5px; font-size: .58rem; white-space: nowrap; }
.table-action:hover { color: #171717; background: #f6b928; filter: none; }

@media (max-width: 980px) {
  .participant-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participant-form-actions { justify-content: flex-end; }
  .split-layout { grid-template-columns: 1fr; }
  .split-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .split-track-list-header { align-items: flex-start; flex-direction: column; }
  .split-track-list-header > button { width: 100%; }
  .split-detail-heading { align-items: flex-start; flex-direction: column; }
  .participant-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participant-directory-header { align-items: flex-start; flex-direction: column; }
  .participant-directory-header > button { width: 100%; }
  .participant-directory-actions, .participant-directory-actions .directory-search { width: 100%; }
  .participant-directory-actions { display: grid; grid-template-columns: 1fr; }
  .participant-directory-actions button { width: 100%; }
  .participant-form { grid-template-columns: 1fr; }
  .participant-form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participant-form-actions button { width: 100%; }
  .participant-form .dialog-message { grid-column: auto; }
  .split-entity-header, .split-section-heading { align-items: flex-start; }
  .split-entity-controls, .split-rule-grid, .split-side-column { grid-template-columns: 1fr; }
  .split-entity-controls .secondary-button { width: 100%; }
  .split-participant-head { align-items: flex-start; flex-direction: column; }
  .split-participant-row { grid-template-columns: minmax(0, 1fr) minmax(100px, .8fr) 36px; }
  .split-participant-row label:first-child { grid-column: 1 / -1; }
  .split-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-totals > div:nth-child(2) { border-right: 0; }
  .split-totals > div:nth-child(-n+2) { border-bottom: 1px solid #454545; }
  .split-actions { flex-direction: column-reverse; }
  .split-actions button { width: 100%; }
}

.floating-cookie-button, .scroll-top-button { position: fixed; z-index: 49; bottom: 18px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #f6b928; background: #242424; border: 1px solid #4a4a4a; border-radius: 50%; box-shadow: 0 8px 26px rgba(0,0,0,.4); transition: border-color .18s ease, color .18s ease, transform .18s ease, opacity .18s ease; }
.floating-cookie-button { left: 18px; }
.scroll-top-button { right: 18px; }
.floating-cookie-button:hover, .scroll-top-button:hover { color: #fff; border-color: #8a671e; transform: translateY(-2px); }
.floating-cookie-button:focus-visible, .scroll-top-button:focus-visible { outline: 2px solid #f6b928; outline-offset: 3px; }
.floating-cookie-button svg, .scroll-top-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.floating-cookie-button svg circle { fill: currentColor; stroke: none; }
.scroll-top-button[hidden] { display: none; }
.turnstile-slot { min-height: 0; overflow: hidden; }
.turnstile-slot:empty { display: none; }
.turnstile-slot iframe { max-width: 100%; }
.language-switcher { position: fixed; z-index: 45; top: 14px; right: 64px; display: block; }
.language-switcher-trigger { display: inline-flex; width: 58px; height: 32px; align-items: center; justify-content: space-between; gap: 7px; padding: 0 9px; color: #e2e2e2; background: #292929; border: 1px solid #484848; border-radius: 5px; font-size: .68rem; font-weight: 800; cursor: pointer; }
.language-switcher-trigger:hover, .language-switcher.is-open .language-switcher-trigger { color: #fff; background: #303030; border-color: #85651f; }
.language-switcher-trigger:focus-visible { outline: 2px solid #f5b928; outline-offset: 2px; }
.language-switcher-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.language-switcher.is-open .language-switcher-chevron { transform: translateY(2px) rotate(225deg); }
.language-switcher-menu { position: absolute; z-index: 80; top: calc(100% + 6px); right: 0; display: grid; min-width: 64px; overflow: hidden; padding: 4px; background: #222; border: 1px solid #4a4a4a; border-radius: 5px; box-shadow: 0 12px 30px rgba(0,0,0,.42); }
.language-switcher-menu[hidden] { display: none; }
.language-switcher-menu button { width: 100%; min-width: 0; height: 31px; padding: 0 9px; color: #c8c8c8; background: transparent; border: 0; border-radius: 3px; font-size: .68rem; font-weight: 750; text-align: left; }
.language-switcher-menu button:hover, .language-switcher-menu button:focus-visible { color: #fff; background: #353535; outline: none; }
.language-switcher-menu button.is-selected { color: #f5c768; background: #3b321d; }
.panel-active .workspace-bar .language-switcher { position: relative; top: auto; right: auto; justify-self: end; margin: 0; }

/* Persistent catalog, source-aware splits, and track financial drill-downs */
.royalty-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.royalty-category-grid article { min-width: 0; padding: 15px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.royalty-category-grid span, .royalty-category-grid small { display: block; color: #999; font-size: .63rem; }
.royalty-category-grid strong { display: block; overflow: hidden; margin: 8px 0 5px; color: #f5f5f5; font-size: 1.18rem; text-overflow: ellipsis; white-space: nowrap; }
.tables-grid[data-section="catalog"] > article { grid-column: 1 / -1; }
.directory-heading { align-items: end; }
.directory-heading p { max-width: 620px; margin: 6px 0 0; color: #8f8f8f; font-size: .65rem; line-height: 1.55; }
.directory-tools { display: flex; min-width: min(100%, 420px); align-items: end; justify-content: flex-end; gap: 8px; }
.directory-tools .directory-search { flex: 1 1 280px; }
.directory-search { width: min(320px, 100%); }
.directory-search input { width: 100%; height: 36px; padding: 0 11px; color: #eee; background: #292929; border: 1px solid #484848; border-radius: 6px; font: inherit; font-size: .69rem; }
.wide-track-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.wide-track-table table { min-width: 980px; margin: 0; }
.wide-track-table th, .wide-track-table td { padding: 12px; vertical-align: middle; }
.track-table-identity { display: grid; min-width: 150px; gap: 3px; }
.track-table-identity strong { color: #eee; }
.track-table-identity small, .source-empty { color: #777; font-size: .57rem; }
.source-pill-list { display: flex; min-width: 190px; flex-wrap: wrap; gap: 5px; }
.source-pill { display: inline-grid; min-height: 31px; align-content: center; gap: 2px; padding: 4px 8px; color: #d8d8d8; background: #303030; border: 1px solid #484848; border-radius: 4px; white-space: nowrap; }
.source-pill b { color: #ececec; font-size: .55rem; line-height: 1.1; }
.source-pill small { color: #8f8f8f; font-size: .46rem; font-weight: 650; line-height: 1.1; }
.source-pill-list-collapsed { align-items: flex-start; }
.source-overflow { position: relative; flex: 0 0 auto; }
.source-overflow > summary { display: grid; width: 31px; min-height: 31px; place-items: center; padding: 0; color: #e7e7e7; background: #303030; border: 1px solid #484848; border-radius: 4px; font-size: .8rem; font-weight: 850; line-height: 1; list-style: none; cursor: pointer; }
.source-overflow > summary::-webkit-details-marker { display: none; }
.source-overflow > summary:hover, .source-overflow[open] > summary { color: #171717; background: #f6b928; border-color: #f6b928; }
.source-overflow > summary:focus-visible { outline: 2px solid #f6b928; outline-offset: 2px; }
.source-overflow-menu { display: grid; width: min(220px, 58vw); gap: 6px; margin-top: 6px; padding: 9px; background: #252525; border: 1px solid #555; border-radius: 5px; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.source-overflow-menu .source-pill { background: #303030; }
.table-action-group { display: flex; justify-content: flex-end; gap: 6px; }
.table-action-muted { color: #bbb; background: #303030; border-color: #4a4a4a; }
.financial-track-panel, .track-detail-panel { margin-top: 12px; }
.financial-currency-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) auto; gap: 18px; align-items: end; padding: 16px; }
.financial-currency-toolbar h2 { margin: 5px 0 4px; color: #f2f2f2; font-size: .92rem; }
.financial-currency-toolbar p { max-width: 650px; margin: 0; color: #909090; font-size: .63rem; line-height: 1.55; }
.financial-currency-toolbar label { display: grid; gap: 6px; color: #aaa; font-size: .61rem; font-weight: 700; }
.financial-currency-toolbar select { width: 100%; height: 38px; padding: 0 34px 0 10px; color: #eee; background: #292929; border: 1px solid #4a4a4a; border-radius: 6px; font: inherit; font-size: .68rem; }
.financial-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; align-items: center; }
.financial-currency-status { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 11px; color: #f4c35a; background: #302818; border: 1px solid #5e491f; border-radius: 5px; font-size: .58rem; font-weight: 800; white-space: nowrap; }
.currency-pill-list { display: flex; min-width: 92px; flex-wrap: wrap; gap: 5px; }
.currency-pill { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; color: #f4c35a; background: #302818; border: 1px solid #5e491f; border-radius: 4px; font-size: .55rem; font-weight: 850; letter-spacing: .02em; white-space: nowrap; }
.track-detail-hidden { display: none !important; }
.track-detail-header { align-items: center; }
.track-detail-header p { margin: 5px 0 0; color: #f4c35a; font-size: .58rem; font-weight: 700; }
.track-detail-header > button { white-space: nowrap; }
.track-detail-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; border: 1px solid #414141; border-radius: 6px; overflow: hidden; }
.track-detail-kpis article { min-width: 0; padding: 13px; background: #292929; border-right: 1px solid #414141; }
.track-detail-kpis article:last-child { border-right: 0; }
.track-detail-kpis span { display: block; color: #929292; font-size: .61rem; }
.track-detail-kpis strong { display: block; margin-top: 6px; color: #f3f3f3; font-size: .86rem; line-height: 1.38; white-space: pre-line; overflow-wrap: anywhere; }
.financial-split-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin: 0 0 14px; }
.financial-split-groups article { display: grid; min-width: 0; gap: 7px; padding: 13px; background: #292929; border: 1px solid #48402d; border-radius: 6px; }
.financial-split-groups article > div { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.financial-split-groups strong { color: #f4f4f4; font-size: .74rem; white-space: pre-line; text-align: right; }
.financial-split-groups p { overflow: hidden; margin: 0; color: #c7c7c7; font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.financial-split-groups small { color: #868686; font-size: .56rem; line-height: 1.45; }
.split-version-cell { display: grid; min-width: 150px; gap: 3px; }
.split-version-cell strong { color: #eee; font-size: .61rem; }
.split-version-cell small { color: #888; font-size: .53rem; line-height: 1.4; }
.split-history-source { margin-top: -3px !important; color: #f4c35a !important; font-weight: 700; }
.split-rule-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .split-rule-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-scope-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .financial-currency-toolbar { grid-template-columns: minmax(0, 1fr) minmax(210px, .65fr); }
  .financial-toolbar-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .financial-currency-status { min-height: 30px; }
  .royalty-category-grid, .track-detail-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track-detail-kpis article:nth-child(2) { border-right: 0; }
  .track-detail-kpis article:nth-child(-n+2) { border-bottom: 1px solid #414141; }
  .directory-heading { align-items: flex-start; flex-direction: column; }
  .directory-search { width: 100%; }
  .split-scope-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .split-scope-heading p { text-align: left; }
  .split-rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .financial-currency-toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .financial-currency-status { grid-column: auto; justify-self: stretch; }
  .financial-toolbar-actions { grid-column: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .royalty-category-grid { grid-template-columns: 1fr; }
  .track-detail-kpis { grid-template-columns: 1fr; }
  .track-detail-kpis article { border-right: 0; border-bottom: 1px solid #414141; }
  .track-detail-kpis article:last-child { border-bottom: 0; }
  .track-detail-header { align-items: flex-start; flex-direction: column; }
  .track-detail-header > button { width: 100%; }
  .table-action-group { justify-content: flex-start; }
  .split-scope-tabs { grid-template-columns: 1fr; }
  .split-scope-option { height: 70px; }
  .split-rule-grid { grid-template-columns: 1fr; }
}

/* Users, roles, scopes, and audit */
.workspace-bar { grid-template-columns: 220px minmax(220px, 1fr) auto auto; }
.workspace-identity { max-width: 230px; overflow: hidden; color: #999; font-size: .61rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.access-workspace { display: grid; gap: 12px; }
.access-tabs { display: inline-flex; width: fit-content; padding: 3px; background: #242424; border: 1px solid #3c3c3c; border-radius: 7px; }
.access-tabs button { width: auto; height: 32px; padding: 0 13px; color: #aaa; background: transparent; border-radius: 5px; font-size: .65rem; }
.access-tabs button.active { color: #171717; background: #f6b928; }
.access-panel[hidden] { display: none; }
.access-panel-heading { align-items: center; }
.access-panel-heading p, .access-panel .panel-header p { max-width: 680px; margin: 6px 0 0; color: #909090; font-size: .65rem; line-height: 1.55; }
.access-panel-heading > button { width: auto; white-space: nowrap; }
.access-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.access-table table { min-width: 880px; margin: 0; }
.access-status { display: inline-flex; min-height: 22px; align-items: center; padding: 0 7px; border-radius: 4px; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.access-status-active { color: #7dc39b; background: #25372c; }
.access-status-invitation_pending { color: #f4c35a; background: #3a311d; }
.access-status-suspended, .access-status-disabled { color: #ef9b8d; background: #402725; }
.audit-action { color: #f4c35a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .61rem; }
.settings-group-with-action { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.compact-action { width: auto; min-height: 32px; padding: 0 12px; white-space: nowrap; font-size: .62rem; }
.activity-workspace { display: grid; gap: 12px; margin-bottom: 48px !important; }
.activity-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.activity-summary article { min-width: 0; padding: 15px 16px; background: #242424; border: 1px solid #3b3b3b; border-radius: 7px; }
.activity-summary span, .activity-summary small { display: block; color: #8f8f8f; font-size: .58rem; line-height: 1.4; }
.activity-summary strong { display: block; margin: 7px 0 4px; overflow: hidden; color: #f2f2f2; font-size: 1.2rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-toolbar { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(2, minmax(150px, .8fr)) repeat(2, minmax(125px, .55fr)) auto; gap: 10px; align-items: end; padding: 14px 16px; }
.activity-toolbar label { display: grid; gap: 6px; min-width: 0; font-size: .59rem; font-weight: 700; }
.activity-toolbar input, .activity-toolbar select { width: 100%; min-width: 0; height: 35px; padding: 0 9px; font-size: .64rem; }
.activity-filter-actions { display: flex; gap: 7px; }
.activity-filter-actions button { width: auto; height: 35px; padding: 0 11px; font-size: .62rem; }
.activity-log-heading { align-items: center; }
.activity-live-indicator { display: inline-flex; gap: 7px; align-items: center; color: #8cbb9d; font-size: .57rem; font-weight: 800; white-space: nowrap; }
.activity-live-indicator i { width: 7px; height: 7px; background: #68b884; border-radius: 50%; box-shadow: 0 0 0 4px rgba(104,184,132,.12); }
.activity-table { border: 1px solid #3e3e3e; border-radius: 6px; }
.activity-table table { min-width: 920px; margin: 0; }
.activity-table td { vertical-align: top; }
.activity-actor { display: grid; gap: 3px; }
.activity-actor strong { color: #e8e8e8; font-size: .66rem; }
.activity-actor small, .activity-resource small { display: block; color: #818181; font-size: .53rem; }
.activity-resource strong { color: #ccc; font-size: .64rem; text-transform: capitalize; }
.activity-context { max-width: 360px; color: #aaa; line-height: 1.5; overflow-wrap: anywhere; }
.activity-pagination { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-top: 12px; }
.activity-pagination span { color: #838383; font-size: .58rem; }
.activity-pagination button { width: auto; height: 32px; padding: 0 12px; font-size: .61rem; }

@media (max-width: 1180px) {
  .activity-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-search { grid-column: 1 / -1; }
  .activity-filter-actions { justify-content: flex-end; }
}

@media (max-width: 680px) {
  .settings-group-with-action { align-items: flex-start; flex-direction: column; }
  .activity-summary, .activity-toolbar { grid-template-columns: 1fr; }
  .activity-search { grid-column: auto; }
  .activity-filter-actions { justify-content: stretch; }
  .activity-filter-actions button { flex: 1; }
  .activity-log-heading { align-items: flex-start; flex-direction: column; }
}
.access-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 36px); margin: auto; padding: 0; color: #eee; background: transparent; border: 0; overflow: auto; }
.access-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.access-dialog-shell { display: grid; gap: 18px; padding: 20px; background: #222; border: 1px solid #444; border-radius: 7px; box-shadow: 0 24px 80px rgba(0,0,0,.6); }
.access-dialog-large { width: min(960px, calc(100vw - 28px)); }
.access-dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-bottom: 15px; border-bottom: 1px solid #3d3d3d; }
.access-dialog-heading h2 { margin: 5px 0 0; font-size: 1rem; }
.access-dialog-heading .icon-button { width: 34px; height: 34px; color: #aaa; background: #2c2c2c; border: 1px solid #484848; }
.access-security-note { margin: 0; padding: 11px 12px; color: #c0b38c; background: #302818; border-left: 3px solid #f6b928; font-size: .65rem; line-height: 1.55; }
.access-security-note code { overflow-wrap: anywhere; }
.access-override-heading h3 { margin: 5px 0; font-size: .88rem; }
.access-override-heading p { margin: 0; color: #909090; font-size: .63rem; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.permission-group { min-width: 0; margin: 0; padding: 10px; border: 1px solid #414141; border-radius: 6px; }
.permission-group legend { padding: 0 5px; color: #f4c35a; font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.permission-option { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px 6px; border-bottom: 1px solid #383838; cursor: pointer; }
.permission-option:last-child { border-bottom: 0; }
.permission-option input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: #f6b928; }
.permission-option > select { width: 72px; height: 26px; padding: 0 5px; color: #ccc; background: #292929; border: 1px solid #494949; border-radius: 4px; font-size: .54rem; }
.permission-option:has(> select) { grid-template-columns: 72px minmax(0, 1fr); }
.permission-option span { display: grid; gap: 3px; }
.permission-option strong { color: #ddd; font-size: .65rem; }
.permission-option small { color: #777; font-size: .53rem; font-weight: 500; }
.permission-dangerous { background: #2e2520; }
.permission-dangerous strong { color: #f0b67e; }
.scope-grant-editor { display: grid; gap: 9px; }
.scope-grant-editor[hidden] { display: none; }
.scope-grant-list { display: grid; max-height: 190px; overflow: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; background: #292929; border: 1px solid #414141; border-radius: 6px; }
.scope-grant-list label { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; padding: 7px; background: #252525; border: 1px solid #3d3d3d; border-radius: 5px; cursor: pointer; }
.scope-grant-list input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: #f6b928; }
.scope-grant-list span { display: grid; gap: 2px; }
.scope-grant-list strong { color: #ddd; font-size: .64rem; }
.scope-grant-list small { color: #777; font-size: .53rem; }
.access-denied { min-height: calc(100vh - 120px); place-items: center; padding: 32px; text-align: center; }
.access-denied:not(.workspace-section-hidden) { display: grid; }
.access-denied > div { max-width: 520px; }
.access-denied svg { width: 38px; height: 38px; margin-bottom: 18px; color: #f6b928; }
.access-denied h1 { margin: 8px 0 10px; font-size: 1.65rem; }
.access-denied p { margin: 0 auto 20px; color: #999; line-height: 1.65; }
.access-denied button { width: auto; padding: 0 18px; color: #171717; background: #f6b928; }

@media (max-width: 1100px) {
  .workspace-bar { grid-template-columns: auto minmax(180px, 1fr) auto; }
  .workspace-identity { display: none; }
}

@media (max-width: 680px) {
  .access-tabs { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .access-tabs button { width: 100%; height: auto; min-height: 35px; padding: 5px; white-space: normal; }
  .access-panel-heading { align-items: flex-start; flex-direction: column; }
  .access-panel-heading > button { width: 100%; }
  .permission-grid { grid-template-columns: 1fr; }
  .scope-grant-list { grid-template-columns: 1fr; }
  .access-dialog-shell { padding: 15px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 680px) {
  .language-switcher { top: 13px; right: 53px; }
  .language-switcher-trigger { width: 50px; height: 30px; padding: 0 7px; }
  .panel-active .workspace-bar .language-switcher { grid-column: 2; grid-row: 1; }
  .cookie-banner { right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); left: 10px; grid-template-columns: 1fr; gap: 13px; padding: 15px; }
  .legal-page .cookie-banner { bottom: calc(10px + env(safe-area-inset-bottom)); }
  .cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cookie-banner-actions button { width: 100%; min-width: 0; }
  .cookie-banner-actions #cookieAccept { grid-column: 1 / -1; grid-row: 1; }
  .cookie-dialog form { padding: 17px; }
  .cookie-dialog-actions { align-items: stretch; flex-direction: column; }
  .cookie-dialog-actions button { width: 100%; }
  .floating-cookie-button, .scroll-top-button { bottom: calc(74px + env(safe-area-inset-bottom)); width: 40px; height: 40px; }
  .floating-cookie-button { left: 12px; }
  .scroll-top-button { right: 12px; }
  .legal-page .floating-cookie-button, .legal-page .scroll-top-button { bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Financial currency breakdowns must remain readable at every card width. */
#last12Revenue, #lifetimeRevenue, #overviewRevenue, #overviewLast12, #overviewAverage, #averageMonthlyRevenue,
.royalty-category-grid strong, .wide-track-table td { white-space: pre-line; }
.royalty-category-grid strong { overflow: visible; font-size: .95rem; line-height: 1.35; text-overflow: clip; white-space: pre-line; }
.access-dialog:has(.access-dialog-large) { width: min(960px, calc(100vw - 28px)); }

/* Selectable report exports and participant bulk import */
.access-dialog:has(.export-dialog-shell) { width: min(820px, calc(100vw - 28px)); }
.export-dialog-shell { gap: 15px; }
.export-dialog-shell .access-dialog-heading p { max-width: 560px; margin: 5px 0 0; color: #8f8f8f; font-size: .62rem; line-height: 1.45; }
.export-context, .bulk-import-summary { padding: 10px 12px; color: #f4c35a; background: #302818; border: 1px solid #5e491f; border-radius: 5px; font-size: .62rem; font-weight: 750; line-height: 1.45; }
.export-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.export-section-grid legend { grid-column: 1 / -1; margin-bottom: 2px; color: #b5b5b5; font-size: .62rem; font-weight: 800; }
.export-section-grid > label { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; align-items: start; min-width: 0; padding: 10px; color: #dedede; background: #292929; border: 1px solid #424242; border-radius: 5px; cursor: pointer; }
.export-section-grid > label:has(input:checked) { background: #2f2b20; border-color: #705824; }
.export-section-grid input[type="checkbox"] { width: 15px; height: 15px; margin: 1px 0 0; accent-color: #f6b928; }
.export-section-grid span { display: grid; min-width: 0; gap: 3px; }
.export-section-grid strong { color: inherit; font-size: .64rem; }
.export-section-grid small { color: #818181; font-size: .54rem; line-height: 1.4; }
.export-dialog-shell .split-actions button { min-width: 0; height: 33px; padding: 0 11px; font-size: .62rem; }
.export-dialog-shell .split-actions button svg { width: 13px; height: 13px; }
.bulk-preview-table { max-height: min(54vh, 480px); overflow: auto; border: 1px solid #414141; border-radius: 6px; }
.bulk-preview-table table { min-width: 720px; margin: 0; }
.bulk-preview-table th, .bulk-preview-table td { padding: 9px 10px; }
.bulk-row-error td { background: #322522; }
.bulk-row-status { display: inline-flex; min-height: 21px; align-items: center; padding: 0 7px; color: #7dc39b; background: #25372c; border-radius: 4px; font-size: .54rem; font-weight: 750; }
.bulk-row-status-error { color: #ef9b8d; background: #402725; }

@media (max-width: 760px) {
  .participant-directory-actions { width: 100%; justify-content: flex-start; }
  .directory-tools { width: 100%; align-items: stretch; flex-direction: column; }
  .directory-tools .directory-search { flex: 0 0 auto; width: 100%; }
  .directory-tools .compact-action { align-self: flex-end; }
  .export-section-grid { grid-template-columns: 1fr; }
}

/* Authenticated support and account security */
.security-center { margin-top: 12px; }
.settings-group p { max-width: 720px; margin: 7px 0 0; color: #929292; font-size: .65rem; line-height: 1.55; }
.security-row, .security-session { display: flex; min-width: 0; justify-content: space-between; gap: 18px; align-items: center; padding: 13px; background: #292929; border: 1px solid #414141; border-radius: 6px; }
.security-row > div:first-child, .security-session > div { display: grid; min-width: 0; gap: 4px; }
.security-row strong, .security-session strong { color: #eee; font-size: .71rem; }
.security-row span, .security-session span, .security-session-list > p { color: #8e8e8e; font-size: .61rem; line-height: 1.5; }
.security-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.security-actions button, .security-session button { width: auto; min-width: 92px; }
.security-actions .compact-action { width: auto; min-width: 0; height: 30px; padding: 0 10px; border-radius: 5px; font-size: .61rem; }
#enableMfaButton, .security-session button[data-revoke-session] { width: auto; min-width: 0; height: 30px; padding: 0 10px; border-radius: 5px; font-size: .61rem; }
.security-session-list, .security-activity-list { display: grid; gap: 7px; }
.security-activity-list > div { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(120px, .7fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #3a3a3a; }
.security-activity-list strong { color: #ddd; font-size: .64rem; }
.security-activity-list span, .security-activity-list time { color: #838383; font-size: .57rem; }
.mfa-setup-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; }
.mfa-setup-grid img { width: 170px; height: 170px; padding: 8px; background: #fff; border-radius: 6px; }
.mfa-setup-grid p { color: #999; font-size: .65rem; }
.mfa-setup-grid code { display: block; padding: 10px; overflow-wrap: anywhere; color: #f4c35a; background: #191919; border: 1px solid #414141; border-radius: 5px; font-size: .7rem; letter-spacing: .06em; }
#recoveryCodesList { margin: 0; padding: 14px; color: #f4c35a; background: #191919; border: 1px solid #414141; border-radius: 6px; font: 700 .76rem/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; columns: 2; }
.mfa-policy { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px 18px; align-items: center; margin: 0 0 16px; padding: 14px; background: #292929; border: 1px solid #48402d; border-radius: 6px; }
.mfa-policy strong { color: #eee; font-size: .7rem; }
.mfa-policy p { margin: 4px 0 0; color: #8f8f8f; font-size: .6rem; }
.mfa-policy > label:not(.toggle-line) { display: grid; gap: 5px; color: #aaa; font-size: .6rem; }
.mfa-policy input[type="text"], .mfa-policy input:not([type]) { height: 34px; padding: 0 9px; color: #eee; background: #222; border: 1px solid #484848; border-radius: 5px; }
.mfa-policy button { width: auto; justify-self: end; }
.mfa-role-options { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; }
.mfa-role-options label { display: inline-flex; gap: 6px; align-items: center; padding: 7px 9px; color: #bbb; background: #242424; border: 1px solid #414141; border-radius: 5px; font-size: .59rem; }
.mfa-role-options input[type="checkbox"] { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: #f6b928; cursor: pointer; }
.toggle-line { display: inline-flex; justify-self: end; gap: 9px; align-items: center; color: #d8d8d8; font-size: .62rem; font-weight: 800; cursor: pointer; }
.toggle-line input[type="checkbox"] { position: relative; flex: 0 0 38px; width: 38px; height: 22px; margin: 0; padding: 0; appearance: none; background: #1f1f1f; border: 1px solid #555; border-radius: 999px; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.toggle-line input[type="checkbox"]::after { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #aaa; border-radius: 50%; content: ""; transition: transform .18s ease, background .18s ease; }
.toggle-line input[type="checkbox"]:checked { background: #f6b928; border-color: #f6b928; }
.toggle-line input[type="checkbox"]:checked::after { background: #171717; transform: translateX(16px); }
.toggle-line input[type="checkbox"]:focus-visible, .mfa-role-options input[type="checkbox"]:focus-visible { outline: 2px solid #f6b928; outline-offset: 3px; }
.support-workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.support-home { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 14px 24px; align-items: center; padding: 24px; }
.support-home h2 { margin: 6px 0 7px; color: #f3f3f3; font-size: 1.25rem; }
.support-home p { margin: 0; color: #959595; font-size: .67rem; line-height: 1.55; }
.support-search { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: center; height: 42px; padding: 0 12px; background: #1d1d1d; border: 1px solid #484848; border-radius: 6px; }
.support-search:focus-within { border-color: #8b6928; box-shadow: 0 0 0 2px rgba(246,185,40,.1); }
.support-search svg { width: 17px; height: 17px; color: #f4c35a; }
.support-search input { min-width: 0; height: 100%; padding: 0; color: #eee; background: transparent; border: 0; outline: 0; font-size: .69rem; }
.support-search-status { grid-column: 2; justify-self: end; margin-top: -8px; color: #777; font-size: .57rem; }
.support-categories { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 5px; }
.support-categories a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: start; min-width: 0; padding: 13px; color: #eee; background: #292929; border: 1px solid #414141; border-radius: 6px; text-decoration: none; }
.support-categories a:hover { border-color: #806225; background: #302a1e; }
.support-categories svg { width: 20px; height: 20px; color: #f4c35a; }
.support-categories span { display: grid; min-width: 0; gap: 4px; }
.support-categories strong { font-size: .63rem; line-height: 1.35; }
.support-categories small { color: #888; font-size: .53rem; line-height: 1.45; }
.support-index { position: sticky; top: 16px; display: grid; gap: 2px; padding: 12px; }
.support-index strong { padding: 8px 9px 12px; color: #eee; font-size: .7rem; border-bottom: 1px solid #3c3c3c; }
.support-index a { padding: 9px; color: #9b9b9b; border-radius: 5px; font-size: .62rem; text-decoration: none; }
.support-index a:hover { color: #171717; background: #f6b928; }
.support-content { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 10px; }
.support-content section { scroll-margin-top: 18px; padding: 20px; background: #242424; border: 1px solid #3c3c3c; border-radius: 7px; }
.support-content h2 { margin: 6px 0 10px; color: #f3f3f3; font-size: 1rem; }
.support-content p, .support-content li { color: #a0a0a0; font-size: .68rem; line-height: 1.7; }
.support-content p { margin: 0; }
.support-content ol { display: grid; gap: 6px; margin: 12px 0 0; padding-left: 19px; }
.support-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 15px 0; overflow: hidden; background: #414141; border: 1px solid #414141; border-radius: 6px; }
.support-flow > span { display: grid; min-width: 0; gap: 4px; padding: 13px; background: #1d1d1d; }
.support-flow b { display: grid; place-items: center; width: 22px; height: 22px; color: #171717; background: #f6b928; border-radius: 50%; font-size: .58rem; }
.support-flow strong { color: #eee; font-size: .62rem; }
.support-flow small { color: #858585; font-size: .53rem; line-height: 1.45; }
.support-formula { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 15px 0; padding: 13px; background: #1d1d1d; border: 1px solid #414141; border-radius: 6px; }
.support-formula span { padding: 7px 9px; color: #eee; background: #2c2c2c; border: 1px solid #484848; border-radius: 4px; font-size: .6rem; font-weight: 800; }
.support-formula b { color: #f4c35a; font-size: .82rem; }
.support-timeline { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 8px; align-items: center; margin: 15px 0; }
.support-timeline span { display: grid; gap: 4px; padding: 12px; background: #1d1d1d; border: 1px solid #414141; border-radius: 6px; }
.support-timeline strong { color: #eee; font-size: .65rem; }
.support-timeline small { color: #888; font-size: .56rem; }
.support-timeline i { height: 2px; background: #f6b928; }
.support-mini-chart { display: grid; gap: 9px; margin: 15px 0; padding: 14px; background: #1d1d1d; border: 1px solid #414141; border-radius: 6px; }
.support-mini-chart span { position: relative; display: grid; grid-template-columns: 56px minmax(90px, 1fr) 70px; gap: 9px; align-items: center; min-height: 24px; }
.support-mini-chart span::before { grid-column: 2; grid-row: 1; height: 7px; background: #333; border-radius: 2px; content: ""; }
.support-mini-chart i { z-index: 1; grid-column: 2; grid-row: 1; width: var(--support-bar); height: 7px; background: #f6b928; border-radius: 2px; }
.support-mini-chart b { grid-column: 1; grid-row: 1; color: #eee; font-size: .61rem; }
.support-mini-chart small { grid-column: 3; grid-row: 1; color: #aaa; font-size: .57rem; text-align: right; }
.support-learning-cards { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 7px; border-top: 1px solid #414141; border-bottom: 1px solid #414141; }
.support-learning-cards a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; gap: 11px; align-items: center; padding: 14px 12px; color: #eee; text-decoration: none; }
.support-learning-cards a:first-child { border-right: 1px solid #414141; }
.support-learning-cards a:hover { background: #2b281f; }
.support-learning-cards a > svg:first-child { width: 23px; height: 23px; color: #f4c35a; }
.support-learning-cards a > svg:last-child { width: 16px; height: 16px; color: #777; }
.support-learning-cards a:hover > svg:last-child { color: #f4c35a; transform: translateX(2px); }
.support-learning-cards span { display: grid; gap: 3px; min-width: 0; }
.support-learning-cards small { color: #f4c35a; font-size: .52rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.support-learning-cards strong { font-size: .68rem; }
.support-learning-cards em { color: #8d8d8d; font-size: .55rem; font-style: normal; line-height: 1.45; }
.support-content .support-feature-guide { padding: 24px; }
.support-feature-guide h3 { margin: 20px 0 10px; color: #ededed; font-size: .76rem; }
.support-feature-heading { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 15px; align-items: start; padding-bottom: 18px; border-bottom: 1px solid #414141; }
.support-feature-heading h2 { margin-top: 5px; font-size: 1.22rem; }
.support-feature-heading p strong { color: #e9e9e9; }
.support-feature-icon { display: grid; place-items: center; width: 48px; height: 48px; color: #171717; background: #f5bd35; border-radius: 6px; }
.support-feature-icon svg { width: 25px; height: 25px; }
.support-callout { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 11px; align-items: start; margin: 16px 0; padding: 13px 14px; background: #1d1d1d; border-left: 3px solid #f5bd35; }
.support-callout svg { width: 20px; height: 20px; color: #f4c35a; }
.support-callout p { margin: 0; }
.csv-use-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid #414141; border-bottom: 1px solid #414141; }
.csv-use-grid > div { min-width: 0; padding: 15px 13px; border-right: 1px solid #414141; }
.csv-use-grid > div:last-child { border-right: 0; }
.csv-use-grid svg { width: 22px; height: 22px; margin-bottom: 10px; color: #f4c35a; }
.csv-use-grid strong, .metadata-field-grid strong { display: block; color: #ededed; font-size: .64rem; line-height: 1.4; }
.csv-use-grid p, .metadata-field-grid p { margin-top: 6px; font-size: .59rem; line-height: 1.55; }
.support-guide-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; margin-top: 4px; }
.support-guide-columns > div { min-width: 0; }
.support-example-table { width: 100%; max-width: 100%; border: 1px solid #414141; border-radius: 5px; overflow-x: auto; }
.support-example-table table { min-width: 760px; margin: 0; }
.support-example-table th, .support-example-table td { padding: 9px 8px; font-size: .55rem; }
.support-caption { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: center; margin: 10px 0 0 !important; padding: 11px; color: #cfcfcf !important; background: #2b281f; border: 1px solid #534521; border-radius: 5px; }
.support-caption svg { width: 18px; height: 18px; color: #f4c35a; }
.support-check-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.support-check-list li { display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 9px; align-items: start; padding: 9px 0; border-bottom: 1px solid #3a3a3a; }
.support-check-list svg { width: 17px; height: 17px; padding: 3px; color: #171717; background: #f5bd35; border-radius: 50%; }
.support-warning-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border: 1px solid #524522; }
.support-warning-row span { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 3px 11px; align-items: center; padding: 14px; }
.support-warning-row span:first-child { border-right: 1px solid #524522; }
.support-warning-row svg { grid-row: 1 / 3; width: 25px; height: 25px; color: #f4c35a; }
.support-warning-row strong { color: #ededed; font-size: .64rem; }
.support-warning-row small { color: #999; font-size: .56rem; line-height: 1.5; }
.support-outcomes { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 10px; padding: 12px 14px; color: #ddd; background: #1d1d1d; border-top: 3px solid #f5bd35; }
.support-outcomes > strong { margin-right: auto; color: #f4c35a; font-size: .64rem; }
.support-outcomes span { display: inline-flex; gap: 6px; align-items: center; font-size: .55rem; font-weight: 700; }
.support-outcomes svg { width: 15px; height: 15px; color: #f4c35a; }
.metadata-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #414141; border-left: 1px solid #414141; }
.metadata-field-grid > div { min-width: 0; padding: 14px; border-right: 1px solid #414141; border-bottom: 1px solid #414141; }
.metadata-field-grid svg { width: 20px; height: 20px; margin-bottom: 8px; color: #f4c35a; }
.metadata-example { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(240px, .7fr); gap: 20px; margin-top: 20px; padding: 18px; background: #1d1d1d; border: 1px solid #414141; border-radius: 6px; }
.metadata-example h3 { margin: 6px 0 13px; font-size: .88rem; }
.metadata-example dl { display: grid; grid-template-columns: minmax(115px, .35fr) minmax(0, 1fr); gap: 0; margin: 0; }
.metadata-example dt, .metadata-example dd { margin: 0; padding: 7px 0; border-bottom: 1px solid #343434; font-size: .6rem; }
.metadata-example dt { color: #8f8f8f; font-weight: 800; }
.metadata-example dd { color: #ddd; }
.metadata-example aside { padding-left: 20px; border-left: 1px solid #414141; }
.metadata-example aside p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 0; border-bottom: 1px solid #343434; }
.metadata-example aside strong { color: #eee; font-size: .62rem; }
.metadata-example aside small { grid-column: 1; color: #888; font-size: .53rem; }
.metadata-example aside b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #f4c35a; font-size: .72rem; }
.metadata-locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; background: #414141; border: 1px solid #414141; border-radius: 6px; }
.metadata-locations span { display: grid; grid-template-columns: 23px minmax(0, 1fr); gap: 4px 9px; padding: 13px; background: #1d1d1d; }
.metadata-locations b { grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; color: #171717; background: #f5bd35; border-radius: 50%; font-size: .56rem; }
.metadata-locations strong { color: #eee; font-size: .62rem; }
.metadata-locations small { color: #898989; font-size: .54rem; line-height: 1.45; }

@media (max-width: 820px) {
  .support-workspace { grid-template-columns: 1fr; }
  .support-home { grid-template-columns: 1fr; }
  .support-search-status { grid-column: 1; justify-self: start; margin-top: -7px; }
  .support-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-index { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-index strong { grid-column: 1 / -1; }
  .support-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csv-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csv-use-grid > div { border-bottom: 1px solid #414141; }
  .csv-use-grid > div:nth-child(2n) { border-right: 0; }
  .support-guide-columns, .metadata-example { grid-template-columns: minmax(0, 1fr); }
  .metadata-example aside { padding: 16px 0 0; border-top: 1px solid #414141; border-left: 0; }
  .metadata-field-grid, .metadata-locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfa-policy { grid-template-columns: 1fr; }
  .mfa-policy button { width: 100%; }
  .security-activity-list > div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 560px) {
  .support-home { padding: 17px; }
  .support-categories { grid-template-columns: 1fr; }
  .support-learning-cards, .csv-use-grid, .metadata-field-grid, .metadata-locations, .support-warning-row { grid-template-columns: 1fr; }
  .support-learning-cards a:first-child, .support-warning-row span:first-child { border-right: 0; border-bottom: 1px solid #414141; }
  .csv-use-grid > div { border-right: 0; }
  .support-content .support-feature-guide { padding: 17px; }
  .support-feature-heading { grid-template-columns: 40px minmax(0, 1fr); }
  .support-feature-icon { width: 38px; height: 38px; }
  .security-row, .security-session { align-items: stretch; flex-direction: column; }
  .security-actions { display: grid; grid-template-columns: 1fr; }
  .security-actions button, .security-session button { width: 100%; }
  #enableMfaButton, .security-session button[data-revoke-session] { width: auto; align-self: flex-end; }
  .mfa-setup-grid { grid-template-columns: 1fr; }
  .mfa-setup-grid img { margin: auto; }
  #recoveryCodesList { columns: 1; }
  .support-flow { grid-template-columns: 1fr; }
  .support-timeline { grid-template-columns: 1fr; }
  .support-timeline i { width: 2px; height: 22px; margin-left: 18px; }
}

@media (max-width: 680px) {
  .support-content section { scroll-margin-top: 106px; }
}

/* Standalone royalty support guides */
.learning-page { min-height: 100vh; color: #ededed; background: #101112; }
.learning-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; }
.learning-header nav { display: flex; min-width: 0; justify-self: end; gap: 6px; align-items: center; }
.learning-header nav a { display: inline-flex; min-height: 32px; align-items: center; gap: 6px; padding: 0 10px; color: #9b9b9b; border: 1px solid transparent; border-radius: 5px; font-size: .62rem; font-weight: 700; text-decoration: none; }
.learning-header nav a:hover, .learning-header nav a[aria-current="page"] { color: #f4c35a; background: #29271f; border-color: #5c4c24; }
.learning-header nav .learning-back-link { color: #171717; background: #f6b928; border-color: #f6b928; }
.learning-header nav .learning-back-link:hover { color: #171717; background: #f4c75a; border-color: #f4c75a; }
.learning-header nav svg { width: 14px; height: 14px; }
.learning-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 72px; }
.learning-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; color: #777; font-size: .59rem; }
.learning-breadcrumb a { color: #c9a246; font-weight: 700; text-decoration: none; }
.learning-hero { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 20px; align-items: start; padding: 0 0 32px; border-bottom: 1px solid #383838; }
.learning-hero-icon { display: grid; place-items: center; width: 58px; height: 58px; color: #171717; background: #f5bd35; border-radius: 7px; }
.learning-hero-icon svg { width: 30px; height: 30px; }
.learning-hero h1 { max-width: 900px; margin: 7px 0 12px; color: #f4f4f4; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: 0; }
.learning-hero p { max-width: 900px; margin: 0; color: #a2a2a2; font-size: .76rem; line-height: 1.75; }
.learning-hero p strong { color: #ededed; }
.learning-callout { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 13px; align-items: start; margin: 26px 0 0; padding: 17px 18px; color: #b8b8b8; background: #1b1c1d; border-left: 3px solid #f5bd35; }
.learning-callout svg { width: 22px; height: 22px; color: #f4c35a; }
.learning-callout p { max-width: 920px; margin: 0; font-size: .68rem; line-height: 1.7; }
.learning-section { padding: 34px 0; border-bottom: 1px solid #383838; }
.learning-section-heading { max-width: 820px; margin-bottom: 20px; }
.learning-section-heading h2 { margin: 6px 0 8px; color: #f0f0f0; font-size: 1.25rem; line-height: 1.25; }
.learning-section-heading p { margin: 0; color: #929292; font-size: .67rem; line-height: 1.65; }
.learning-split-section { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .5fr); gap: 24px; align-items: start; }
.learning-check-panel { padding: 19px; background: #202122; border: 1px solid #3e3e3e; border-radius: 7px; }
.learning-check-panel h2 { margin: 6px 0 10px; color: #ededed; font-size: .92rem; }
.learning-number-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid #3e3e3e; }
.learning-number-grid article { min-width: 0; padding: 16px; border-right: 1px solid #3e3e3e; }
.learning-number-grid article:last-child { border-right: 0; }
.learning-number-grid b { display: block; margin-bottom: 14px; color: #f4c35a; font-size: .58rem; }
.learning-number-grid strong { color: #ededed; font-size: .65rem; line-height: 1.4; }
.learning-number-grid p { margin: 7px 0 0; color: #8c8c8c; font-size: .56rem; line-height: 1.6; }
.learning-warning-row { margin-top: 32px; }
.learning-outcomes { margin-bottom: 24px; }
.learning-metadata-example { margin-top: 0; }
.learning-metadata-example dl { grid-template-columns: minmax(135px, .32fr) minmax(0, 1fr); }
.learning-split-total { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 14px; padding-top: 13px; border-top: 1px solid #494949; }
.learning-split-total span { color: #aaa; font-size: .58rem; }
.learning-split-total strong { color: #f4c35a; font-size: .82rem; }
.learning-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #3e3e3e; border-left: 1px solid #3e3e3e; }
.learning-check-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; min-width: 0; padding: 17px; border-right: 1px solid #3e3e3e; border-bottom: 1px solid #3e3e3e; }
.learning-check-grid svg { width: 22px; height: 22px; color: #f4c35a; }
.learning-check-grid strong { color: #ededed; font-size: .66rem; }
.learning-check-grid p { margin: 6px 0 0; color: #8f8f8f; font-size: .58rem; line-height: 1.55; }
.learning-final-callout { margin-top: 34px; }
.learning-footer { display: flex; width: min(1120px, calc(100% - 40px)); min-height: 76px; justify-content: space-between; gap: 20px; align-items: center; margin: 0 auto; padding: 20px 0; color: #747474; border-top: 1px solid #383838; font-size: .58rem; }
.learning-footer a { display: inline-flex; align-items: center; gap: 7px; color: #f4c35a; font-weight: 800; text-decoration: none; }
.learning-footer svg { width: 14px; height: 14px; }

@media (max-width: 900px) {
  .learning-number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-number-grid article { border-bottom: 1px solid #3e3e3e; }
  .learning-number-grid article:nth-child(2n) { border-right: 0; }
  .learning-number-grid article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .learning-split-section { grid-template-columns: minmax(0, 1fr); }
  .learning-split-section > * { min-width: 0; }
}

@media (max-width: 680px) {
  .learning-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 9px 12px; }
  .learning-header nav a:not(.learning-back-link) { display: none; }
  .learning-header nav .learning-back-link { min-height: 30px; padding: 0 8px; }
  .learning-header .theme-toggle { margin-left: 0; }
  .learning-shell { width: min(100% - 24px, 1120px); padding: 25px 0 55px; }
  .learning-breadcrumb { margin-bottom: 20px; }
  .learning-hero { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; padding-bottom: 24px; }
  .learning-hero-icon { width: 40px; height: 40px; }
  .learning-hero-icon svg { width: 21px; height: 21px; }
  .learning-hero h1 { margin-top: 6px; font-size: 1.7rem; }
  .learning-hero p { grid-column: 1 / -1; font-size: .68rem; }
  .learning-callout { margin-top: 20px; padding: 14px; }
  .learning-section { padding: 27px 0; }
  .learning-section-heading h2 { font-size: 1.02rem; }
  .learning-number-grid, .learning-check-grid { grid-template-columns: 1fr; }
  .learning-number-grid article, .learning-number-grid article:nth-child(2n), .learning-check-grid article { grid-column: auto; border-right: 0; border-bottom: 1px solid #3e3e3e; }
  .learning-number-grid article:last-child, .learning-check-grid article:last-child { border-bottom: 0; }
  .learning-metadata-example dl { grid-template-columns: minmax(110px, .42fr) minmax(0, 1fr); }
  .learning-footer { width: min(100% - 24px, 1120px); align-items: flex-start; flex-direction: column; }
}

/* Source-aware analytics */
.analytics-workspace { display: grid; gap: 12px; }
.analytics-toolbar { display: grid; grid-template-columns: repeat(5, minmax(112px, 1fr)) auto auto; gap: 10px; align-items: end; padding: 14px; }
.analytics-toolbar label { display: grid; min-width: 0; gap: 6px; color: #a7a7a7; font-size: .61rem; font-weight: 700; }
.analytics-toolbar select { width: 100%; height: 36px; min-width: 0; padding: 0 30px 0 9px; color: #eee; background: #292929; border: 1px solid #484848; border-radius: 6px; font: inherit; font-size: .68rem; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 36px); padding: 3px; background: #292929; border: 1px solid #484848; border-radius: 6px; }
.segmented-control button { display: grid; place-items: center; width: 36px; height: 30px; padding: 0; color: #9b9b9b; background: transparent; border-radius: 4px; }
.segmented-control button.active { color: #171717; background: #f6b928; }
.segmented-control svg { width: 15px; height: 15px; }
.analytics-export-button { align-self: end; }
.analytics-main-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.analytics-main-grid > article { min-width: 0; }
.analytics-main-grid canvas { max-height: 330px; }
.text-button { width: auto; min-height: 30px; padding: 0 9px; color: #f4c35a; background: transparent; border: 1px solid #5a4926; font-size: .59rem; }
.text-button:hover { color: #171717; background: #f6b928; filter: none; }
.world-map { position: relative; min-height: 250px; aspect-ratio: 2 / 1; overflow: hidden; isolation: isolate; border: 1px solid #3f4852; border-radius: 6px; background: #1c232a; box-shadow: inset 0 0 36px rgba(0, 0, 0, .2); }
.world-map::before { position: absolute; z-index: 0; inset: 0; background: radial-gradient(circle at 50% 44%, rgba(63, 78, 91, .17), transparent 58%); content: ""; pointer-events: none; }
.world-map > img { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
#worldMapMarkers { position: absolute; z-index: 3; inset: 0; }
.world-map-key { position: absolute; z-index: 4; right: 13px; bottom: 11px; left: 13px; display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; color: #8f9aa4; font-size: .53rem; pointer-events: none; }
.world-map-key span { display: inline-flex; align-items: center; gap: 6px; }
.world-map-key i { width: 8px; height: 8px; background: #f6b928; border: 1px solid #f8d46e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(246, 185, 40, .12); }
.world-map-key strong { overflow: hidden; color: #b7c0c8; font-size: inherit; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.map-marker { position: absolute; z-index: var(--map-z); top: var(--map-y); left: var(--map-x); display: grid; place-items: center; width: var(--map-size); height: var(--map-size); min-width: 0; min-height: 0; padding: 0; color: #171717; background: #e0a928; border: 2px solid #f8d46e; border-radius: 50%; box-shadow: 0 0 0 4px rgba(246, 185, 40, .12), 0 5px 14px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); transition: transform .16s ease, box-shadow .16s ease; }
.map-marker::before { position: absolute; inset: -7px; border: 1px solid rgba(246, 185, 40, .24); border-radius: 50%; content: ""; }
.map-marker-rank { font-size: clamp(.46rem, 1.1vw, .62rem); font-weight: 900; line-height: 1; }
.map-marker-primary { background: #f6b928; box-shadow: 0 0 0 5px rgba(246, 185, 40, .16), 0 6px 16px rgba(0, 0, 0, .42); }
.map-marker-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; display: grid; min-width: 104px; gap: 2px; padding: 7px 9px; color: #f1f3f4; background: #171b1f; border: 1px solid #4b545d; border-radius: 5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .36); opacity: 0; pointer-events: none; text-align: left; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.map-marker-tooltip::after { position: absolute; top: 100%; left: 50%; width: 7px; height: 7px; background: #171b1f; border-right: 1px solid #4b545d; border-bottom: 1px solid #4b545d; content: ""; transform: translate(-50%, -4px) rotate(45deg); }
.map-marker-tooltip strong { overflow: hidden; color: #f1f3f4; font-size: .58rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.map-marker-tooltip small { color: #f4c35a; font-size: .51rem; font-weight: 700; white-space: nowrap; }
.map-marker-left .map-marker-tooltip { left: 0; transform: translate(0, 4px); }
.map-marker-left .map-marker-tooltip::after { left: 13px; }
.map-marker-right .map-marker-tooltip { right: 0; left: auto; transform: translate(0, 4px); }
.map-marker-right .map-marker-tooltip::after { right: 10px; left: auto; }
.map-marker:hover, .map-marker:focus-visible { z-index: 20; box-shadow: 0 0 0 6px rgba(246, 185, 40, .18), 0 8px 20px rgba(0, 0, 0, .46); filter: none; transform: translate(-50%, -50%) scale(1.1); }
.map-marker:hover .map-marker-tooltip, .map-marker:focus-visible .map-marker-tooltip { opacity: 1; transform: translate(-50%, 0); }
.map-marker-left:hover .map-marker-tooltip, .map-marker-left:focus-visible .map-marker-tooltip, .map-marker-right:hover .map-marker-tooltip, .map-marker-right:focus-visible .map-marker-tooltip { transform: translate(0, 0); }
.world-map-empty::after { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; color: #929ba4; background: rgba(28, 35, 42, .68); content: "No mapped territories in this selection"; font-size: .65rem; }
.trend-value { display: inline-flex; min-width: 58px; justify-content: center; padding: 4px 6px; border-radius: 4px; font-size: .58rem; font-weight: 800; }
.trend-up { color: #7dc39b; background: #25372c; }
.trend-down { color: #ef9b8d; background: #402725; }
.trend-new { color: #f4c35a; background: #3b321d; }
.trend-change-cell { display: grid; justify-items: start; gap: 4px; }
.trend-change-cell small { color: #858585; font-size: .5rem; white-space: nowrap; }
.momentum-explanation { max-width: 460px; margin-top: 5px; color: #8f8f8f; font-size: .56rem; line-height: 1.45; }
#analyticsRankDialog .table-wrap { max-height: min(62vh, 620px); overflow: auto; border: 1px solid #3e3e3e; border-radius: 6px; }
#analyticsRankDialog table { margin: 0; }
.catalog-detail-grid[data-section="analytics"] { margin-bottom: 52px; }
.funding-request-banner { margin-top: 12px; }
.funding-request-banner .funding-request-link svg { width: 14px; height: 14px; }

/* Catalog consumption */
.consumption-workspace { display: grid; gap: 12px; margin-bottom: 52px; }
.consumption-toolbar { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 10px; align-items: end; padding: 14px; }
.consumption-toolbar label { display: grid; min-width: 0; gap: 6px; color: #a7a7a7; font-size: .61rem; font-weight: 700; }
.consumption-toolbar select { width: 100%; height: 36px; min-width: 0; padding: 0 30px 0 9px; color: #eee; background: #292929; border: 1px solid #484848; border-radius: 6px; font: inherit; font-size: .68rem; }
.consumption-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.consumption-kpis article { display: grid; min-width: 0; min-height: 118px; align-content: center; gap: 8px; padding: 18px; background: #242424; border: 1px solid #3e3e3e; border-radius: 7px; }
.consumption-kpis article span { color: #9c9c9c; font-size: .66rem; }
.consumption-kpis article strong { color: #f3f3f3; font-size: 1.42rem; }
.consumption-kpis article small { color: #858585; font-size: .56rem; line-height: 1.4; }
.consumption-kpis .consumption-kpi-primary { background: #28271f; border-color: #5c4c24; }
.consumption-kpis .consumption-kpi-primary strong { color: #f6b928; }
.consumption-chart-panel canvas { max-height: 330px; }
.consumption-breakdown-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.consumption-breakdown-grid > article { min-width: 0; }
.table-value-note { display: block; margin-top: 2px; color: #7f7f7f; font-size: .49rem; white-space: nowrap; }
.consumption-type { display: inline-flex; max-width: 190px; padding: 4px 6px; color: #d8d8d8; background: #303030; border: 1px solid #474747; border-radius: 4px; font-size: .55rem; font-weight: 700; line-height: 1.25; }
.consumption-type-streaming { color: #f4c35a; border-color: #5a4926; }
.consumption-type-ugc { color: #9eb8e0; border-color: #41526b; }
.consumption-type-tiktok_cml { color: #e8a3ad; border-color: #68404a; }
.consumption-type-publishing { color: #8ed1aa; border-color: #365b47; }
.consumption-type-neighboring { color: #dfae8d; border-color: #654a38; }
.consumption-detail-panel .table-wrap { max-height: 520px; overflow: auto; }

/* YouTube channel and report intelligence */
.youtube-workspace { display: grid; gap: 12px; margin-bottom: 52px; }
.youtube-status-bar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 19px; }
.youtube-status-bar h2 { margin: 5px 0 5px; font-size: .94rem; }
.youtube-status-bar p { max-width: 760px; margin: 0; color: #929292; font-size: .62rem; line-height: 1.55; }
.youtube-status-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.youtube-connection-notice { margin: 0; padding: 10px 13px; color: #a8dcbc; background: #1d3326; border: 1px solid #31563f; border-radius: 6px; font-size: .62rem; font-weight: 700; }
.youtube-connection-notice.is-error { color: #f0b1a7; background: #3a211e; border-color: #6c3a34; }
.youtube-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.youtube-kpis article { display: grid; min-width: 0; min-height: 106px; align-content: center; gap: 7px; padding: 17px; background: #242424; border: 1px solid #3e3e3e; border-radius: 7px; }
.youtube-kpis article span { color: #9c9c9c; font-size: .64rem; }
.youtube-kpis article strong { overflow: hidden; color: #f3f3f3; font-size: 1.34rem; text-overflow: ellipsis; white-space: nowrap; }
.youtube-kpis article small { color: #7f7f7f; font-size: .55rem; line-height: 1.4; }
.youtube-channel-form { display: grid; gap: 13px; margin: 2px 0 16px; padding: 15px 0; border-top: 1px solid #3e3e3e; border-bottom: 1px solid #3e3e3e; }
.youtube-channel-form[hidden] { display: none; }
.youtube-connect-fields { display: grid; grid-template-columns: minmax(170px, .6fr) minmax(250px, 1.4fr) auto; gap: 10px; align-items: end; }
.youtube-connect-fields label, .youtube-report-filters > label { display: grid; min-width: 0; gap: 6px; color: #a6a6a6; font-size: .61rem; font-weight: 700; }
.youtube-connect-fields input, .youtube-connect-fields select, .youtube-report-filters select { width: 100%; height: 36px; padding: 0 10px; color: #eee; background: #292929; border: 1px solid #484848; border-radius: 6px; font: inherit; font-size: .68rem; }
.youtube-channel-results { display: grid; max-height: 270px; overflow: auto; border: 1px solid #3e3e3e; border-radius: 6px; }
.youtube-channel-results:empty { display: none; }
.youtube-channel-results > p { margin: 0; padding: 13px; color: #929292; font-size: .62rem; }
.youtube-channel-result { display: grid; grid-template-columns: 38px minmax(0, 1fr) 18px; min-height: 58px; align-items: center; gap: 11px; padding: 9px 12px; color: #e7e7e7; background: #282828; border: 0; border-bottom: 1px solid #3e3e3e; border-radius: 0; text-align: left; }
.youtube-channel-result:last-child { border-bottom: 0; }
.youtube-channel-result:hover { background: #302d24; filter: none; }
.youtube-channel-result > :where(img, span:first-child), .youtube-channel-selection > :where(img, span:first-child), .youtube-channel-identity > :where(img, span:first-child) { display: grid; width: 38px; height: 38px; place-items: center; object-fit: cover; color: #f6b928; background: #202020; border: 1px solid #464646; border-radius: 50%; }
.youtube-channel-result > span:nth-child(2), .youtube-channel-selection > div, .youtube-channel-identity > span:last-child { display: grid; min-width: 0; gap: 3px; }
.youtube-channel-result strong, .youtube-channel-selection strong, .youtube-channel-identity strong { overflow: hidden; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.youtube-channel-result small, .youtube-channel-selection small, .youtube-channel-identity small { overflow: hidden; color: #858585; font-size: .54rem; text-overflow: ellipsis; white-space: nowrap; }
.youtube-channel-result > svg { width: 15px; color: #f6b928; }
.youtube-channel-selection { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 11px 12px; background: #2a271f; border: 1px solid #5b4924; border-radius: 6px; }
.youtube-channel-selection a { color: #f4c35a; font-size: .58rem; font-weight: 800; text-decoration: none; }
.youtube-connect-actions { display: flex; justify-content: flex-end; gap: 8px; }
.youtube-connect-actions button { min-height: 34px; padding: 0 13px; font-size: .62rem; }
.youtube-connect-actions button svg { width: 14px; height: 14px; }
.youtube-channel-identity { display: inline-grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 9px; min-width: 180px; color: inherit; text-decoration: none; }
.youtube-channel-identity > :where(img, span:first-child) { width: 34px; height: 34px; }
.youtube-authorized-label { display: inline-flex; align-items: center; gap: 4px; color: #7fc99d !important; }
.youtube-authorized-label svg { width: 11px; height: 11px; }
.youtube-channel-table .table-wrap { overflow-x: auto; }
.youtube-row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.youtube-row-actions .table-action:has(svg) { display: grid; width: 30px; min-width: 30px; height: 30px; place-items: center; padding: 0; }
.youtube-row-actions svg { width: 13px; height: 13px; }
.youtube-report-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .6fr); gap: 12px; }
.youtube-report-grid > article { min-width: 0; }
.youtube-trend-panel canvas { max-height: 310px; }
.youtube-report-filters { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(105px, .45fr) minmax(210px, 1fr); gap: 9px; align-items: end; }
.youtube-report-filters .directory-search { display: block; }
.youtube-report-table { max-height: 590px; overflow: auto; }
.youtube-service-badge { display: inline-flex; max-width: 180px; align-items: center; gap: 7px; font-size: .61rem; font-weight: 700; }
.youtube-service-badge img { width: 17px; height: 17px; object-fit: contain; }
.youtube-studio-panel { padding-bottom: 0; overflow: hidden; }
.youtube-studio-panel .panel-header p { max-width: 720px; margin: 5px 0 0; color: #929292; font-size: .6rem; line-height: 1.5; }
.youtube-studio-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px -19px 0; border-top: 1px solid #3e3e3e; }
.youtube-studio-kpis > div { display: grid; min-width: 0; min-height: 92px; align-content: center; gap: 6px; padding: 14px 19px; border-right: 1px solid #3e3e3e; }
.youtube-studio-kpis > div:last-child { border-right: 0; }
.youtube-studio-kpis span { color: #9c9c9c; font-size: .59rem; }
.youtube-studio-kpis strong { overflow: hidden; color: #f3f3f3; font-size: 1.08rem; text-overflow: ellipsis; white-space: nowrap; }
.youtube-studio-kpis small { color: #7f7f7f; font-size: .53rem; }

@media (max-width: 1000px) {
  .youtube-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .youtube-studio-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .youtube-studio-kpis > div:nth-child(2) { border-right: 0; }
  .youtube-studio-kpis > div:nth-child(-n+2) { border-bottom: 1px solid #3e3e3e; }
  .youtube-report-grid { grid-template-columns: 1fr; }
  .youtube-connect-fields { grid-template-columns: minmax(160px, .7fr) minmax(220px, 1.3fr); }
  .youtube-connect-fields button { justify-self: start; }
}

@media (max-width: 680px) {
  .youtube-status-bar { align-items: stretch; flex-direction: column; gap: 13px; }
  .youtube-status-actions { justify-content: space-between; }
  .youtube-kpis { grid-template-columns: 1fr; }
  .youtube-kpis article { min-height: 94px; }
  .youtube-connect-fields, .youtube-report-filters { grid-template-columns: 1fr; }
  .youtube-connect-fields button { justify-self: stretch; }
  .youtube-connect-actions { align-items: stretch; flex-direction: column-reverse; }
  .youtube-channel-selection { grid-template-columns: 40px minmax(0, 1fr); }
  .youtube-channel-selection a { grid-column: 2; }
}

@media (max-width: 1040px) {
  .analytics-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .analytics-main-grid { grid-template-columns: 1fr; }
  .consumption-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consumption-breakdown-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .analytics-toolbar { grid-template-columns: 1fr; }
  .segmented-control { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .segmented-control button { width: 100%; }
  .world-map { min-height: 205px; aspect-ratio: 1.55 / 1; }
  .world-map > img { transform: scale(1.08); }
  .world-map-key { right: 9px; bottom: 8px; left: 9px; }
  .map-marker-tooltip { display: none; }
  .consumption-toolbar, .consumption-kpis { grid-template-columns: 1fr; }
  .consumption-kpis article { min-height: 102px; }
  .consumption-chart-panel .panel-header { align-items: flex-start; flex-direction: column; }
}

/* Public-page finishing pass. */
.landing-main > .workflow-band { width: auto; max-width: none; margin-right: -34px; margin-left: -34px; }
@media (max-width: 1050px) {
  .landing-main > .workflow-band { margin-right: -18px; margin-left: -18px; }
}
@media (max-width: 680px) {
  .landing-main > .workflow-band { margin-right: -12px; margin-left: -12px; }
  .studio-services { padding: 19px; }
  .landing-workspace .site-nav { display: flex; flex-direction: row; gap: 8px; align-items: center; justify-content: flex-end; }
  .landing-workspace .site-nav .ghost-button { flex: 0 0 auto; margin: 0; }
  .landing-workspace .site-nav .language-switcher { display: block; flex: 0 0 auto; margin: 0; }
  .landing-workspace .site-nav .language-switcher-trigger { width: 50px; height: 30px; }
  .site-footer { grid-template-columns: 1fr; justify-items: center; align-items: center; gap: 16px; padding: 22px 12px 78px; text-align: center; }
  .site-footer .wordmark { justify-content: center; }
  .site-footer nav { justify-content: center; align-items: center; }
  .site-footer .footer-social { order: 3; }
  .site-footer .footer-social { justify-content: center; }
  .site-footer .footer-copyright, .site-footer > span { grid-column: 1; grid-row: auto; order: 4; justify-self: center; max-width: 280px; margin-top: 0; text-align: center; white-space: nowrap; }
}

/* Public panel waitlist */
.waitlist-page { display: flex; min-height: 100vh; flex-direction: column; background: #171717; }
.waitlist-header { display: flex; flex: 0 0 auto; justify-content: space-between; gap: 24px; align-items: center; min-height: 68px; padding: 12px max(24px, calc((100vw - 1120px) / 2)); background: rgba(27,27,27,.97); border-bottom: 1px solid #363636; }
.waitlist-header nav { display: flex; gap: 10px; align-items: center; }
.waitlist-header nav a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 11px; color: #aaa; border-radius: 5px; font-size: .68rem; font-weight: 800; text-decoration: none; }
.waitlist-header nav a:hover { color: #f5c768; }
.waitlist-header nav .waitlist-login-link { color: #f5c768; background: #302818; border: 1px solid #654a1e; }
.waitlist-header nav .waitlist-login-link:hover { color: #171717; background: #f5bd35; border-color: #f5bd35; }
.waitlist-shell { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(42px, 7vw, 90px); width: min(calc(100% - 48px), 1120px); margin: 0 auto; padding: 72px 0 84px; }
.waitlist-intro { position: relative; align-self: start; padding-top: 8px; }
.waitlist-intro h1 { max-width: 490px; margin: 13px 0 18px; color: #f7f7f7; font-size: clamp(2.15rem, 4.4vw, 3.7rem); line-height: 1.06; }
.waitlist-intro > p { max-width: 470px; margin: 0; color: #9a9a9a; font-size: .84rem; line-height: 1.75; }
.waitlist-stars { display: none; position: absolute; top: 0; right: 18px; width: 170px; height: 130px; pointer-events: none; }
.waitlist-stars span { position: absolute; display: block; color: #f5bd35; line-height: 1; animation: hero-star-float 4.8s ease-in-out infinite; }
.waitlist-stars span:nth-child(1) { top: 5px; left: 68px; font-size: 1.35rem; }
.waitlist-stars span:nth-child(2) { top: 50px; left: 134px; font-size: .72rem; animation-delay: -1.3s; }
.waitlist-stars span:nth-child(3) { top: 92px; left: 46px; font-size: .96rem; animation-delay: -2.6s; }
.waitlist-stars span:nth-child(4) { top: 42px; left: 5px; font-size: .56rem; animation-delay: -3.7s; }
.waitlist-steps { display: grid; margin-top: 42px; border-top: 1px solid #393939; }
.waitlist-steps > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 3px 12px; padding: 17px 0; border-bottom: 1px solid #393939; }
.waitlist-steps span { grid-row: 1 / 3; color: #f5bd35; font-size: .61rem; font-weight: 800; }
.waitlist-steps strong { color: #ececec; font-size: .74rem; }
.waitlist-steps small { color: #858585; font-size: .64rem; line-height: 1.55; }
.waitlist-form-panel { min-width: 0; padding: clamp(23px, 4vw, 38px); background: #232323; border: 1px solid #3d3d3d; border-radius: 8px; }
.waitlist-form-panel form { display: grid; gap: 26px; }
.waitlist-form-heading h2, .waitlist-success h2 { margin: 7px 0 8px; color: #f3f3f3; font-size: clamp(1.45rem, 2.8vw, 2rem); }
.waitlist-form-heading p, .waitlist-fieldset > p { margin: 0; color: #8e8e8e; font-size: .66rem; line-height: 1.55; }
.waitlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.waitlist-grid label, .waitlist-other-reports, #priorServiceDetailsLabel { display: grid; gap: 7px; min-width: 0; color: #bbb; font-size: .68rem; font-weight: 700; }
.waitlist-full { grid-column: 1 / -1; }
.waitlist-form-panel input[type="text"], .waitlist-form-panel input[type="email"] { height: 42px; padding: 0 12px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; font-size: .74rem; }
.waitlist-form-panel textarea { width: 100%; min-height: 96px; resize: vertical; padding: 12px; color: #eee; background: #292929; border: 1px solid #494949; border-radius: 6px; font: inherit; font-size: .74rem; line-height: 1.55; }
.waitlist-form-panel input:focus, .waitlist-form-panel textarea:focus { border-color: #d9a92f; outline: 2px solid rgba(245,185,40,.16); outline-offset: 1px; }
.waitlist-fieldset { display: grid; min-width: 0; gap: 14px; margin: 0; padding: 24px 0 0; border: 0; border-top: 1px solid #3b3b3b; }
.waitlist-fieldset legend { padding: 0; color: #ededed; font-size: .76rem; font-weight: 800; }
.waitlist-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.waitlist-check-grid > label { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 9px; align-items: start; min-height: 63px; padding: 12px; background: #292929; border: 1px solid #414141; border-radius: 6px; cursor: pointer; }
.waitlist-check-grid > label:has(input:checked) { background: #302918; border-color: #765a22; }
.waitlist-check-grid input, .waitlist-radio-row input, .waitlist-consent input { flex: 0 0 15px; width: 15px; height: 15px; margin: 1px 0 0; padding: 0; accent-color: #f5bd35; cursor: pointer; }
.waitlist-check-grid span { display: grid; gap: 3px; min-width: 0; }
.waitlist-check-grid strong { color: #e7e7e7; font-size: .65rem; }
.waitlist-check-grid small { color: #898989; font-size: .56rem; line-height: 1.45; }
.waitlist-other-reports { margin-top: 2px; }
.waitlist-prior-service { gap: 15px; }
.waitlist-radio-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.waitlist-radio-row label { display: flex; gap: 8px; align-items: center; min-height: 42px; padding: 10px 12px; color: #ccc; background: #292929; border: 1px solid #414141; border-radius: 6px; cursor: pointer; font-size: .64rem; font-weight: 700; }
.waitlist-radio-row label:has(input:checked) { color: #f5c768; background: #302918; border-color: #765a22; }
.waitlist-consent { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; color: #969696; font-size: .61rem; font-weight: 500; line-height: 1.55; }
.waitlist-consent a { color: #dcb34f; }
.waitlist-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-message { min-height: 17px; margin: -10px 0 0; color: #f0a798; font-size: .65rem; line-height: 1.45; }
.waitlist-submit { display: inline-flex; gap: 9px; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 18px; font-size: .76rem; font-weight: 800; }
.waitlist-submit svg { width: 16px; height: 16px; }
.waitlist-submit:disabled { cursor: wait; opacity: .72; }
.waitlist-success { display: grid; justify-items: start; align-content: center; min-height: 520px; }
.waitlist-success[hidden], #priorServiceDetailsLabel[hidden] { display: none; }
.waitlist-success-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px; color: #171717; background: #f5bd35; border-radius: 50%; }
.waitlist-success-icon svg { width: 21px; height: 21px; stroke-width: 2.5; }
.waitlist-success p { max-width: 520px; margin: 4px 0 27px; color: #999; font-size: .78rem; line-height: 1.7; }
.waitlist-success > a { display: inline-flex; gap: 8px; align-items: center; color: #f5c768; font-size: .7rem; font-weight: 800; text-decoration: none; }
.waitlist-success > a svg { width: 15px; height: 15px; }
.waitlist-footer { width: 100%; margin-top: auto; padding: 0 max(24px, calc((100vw - 1120px) / 2)); color: #969696; background: #1d1d1d; border-top: 1px solid #3a3a3a; }
.waitlist-footer-main { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 22px; align-items: center; min-height: 82px; }
.waitlist-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.waitlist-footer a { color: #8e8e8e; text-decoration: none; }
.waitlist-footer a:hover { color: #f5c768; }
.waitlist-footer .wordmark { color: #f3f3f3; }
.waitlist-footer .footer-social a { color: #b0b0b0; }
.waitlist-footer-copyright { margin: 0; padding: 15px 64px 25px; color: #b0b0b0; border-top: 1px solid #363636; font-size: .67rem; text-align: center; }

@media (max-width: 820px) {
  .waitlist-shell { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .waitlist-intro h1 { max-width: calc(100% - 190px); }
  .waitlist-intro > p { max-width: calc(100% - 190px); }
  .waitlist-stars { display: block; }
  .waitlist-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: #393939; border: 1px solid #393939; }
  .waitlist-steps > div { grid-template-columns: 1fr; padding: 14px; background: #1c1c1c; border: 0; }
  .waitlist-steps span { grid-row: auto; }
  .waitlist-footer-main { grid-template-columns: 1fr auto; padding: 22px 0; }
  .waitlist-footer-main nav { grid-column: 1 / -1; grid-row: 2; }
  .waitlist-footer-copyright { padding-bottom: 72px; }
}

@media (max-width: 560px) {
  .waitlist-header { min-height: 62px; padding: 10px 16px; }
  .waitlist-header nav > a:first-child { display: none; }
  .waitlist-shell { width: min(calc(100% - 28px), 1120px); gap: 30px; padding: 38px 0 52px; }
  .waitlist-intro h1 { max-width: none; font-size: 2rem; }
  .waitlist-intro > p { max-width: none; }
  .waitlist-stars { display: none; }
  .waitlist-steps { grid-template-columns: 1fr; }
  .waitlist-form-panel { padding: 21px 17px; }
  .waitlist-grid, .waitlist-check-grid, .waitlist-radio-row { grid-template-columns: 1fr; }
  .waitlist-full { grid-column: auto; }
  .waitlist-check-grid > label { min-height: 0; }
  .waitlist-footer { padding: 0 18px; }
  .waitlist-footer-main { grid-template-columns: 1fr; justify-items: center; gap: 17px; padding: 25px 0 20px; text-align: center; }
  .waitlist-footer-main nav { grid-column: 1; grid-row: auto; justify-content: center; }
  .waitlist-footer .footer-social { justify-content: center; }
  .waitlist-footer-copyright { padding: 15px 40px 82px; }
}

/* Dashboard detail and data-identity refinements. */
.panel-main { padding-bottom: 64px; }
.kpi-grid[data-section="financials"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.info-dot { display: inline-grid !important; width: 15px !important; min-width: 15px !important; height: 15px !important; min-height: 15px !important; place-items: center; margin: 0 0 0 3px; padding: 0 !important; color: #f4c35a !important; background: #312817 !important; border: 1px solid #665022 !important; border-radius: 50% !important; box-shadow: none !important; font: inherit; font-size: .5rem !important; font-weight: 900 !important; line-height: 1 !important; cursor: help; vertical-align: 1px; }
.info-dot:hover, .info-dot:focus-visible, .info-dot[aria-expanded="true"] { color: #181818 !important; background: #f4c35a !important; border-color: #f4c35a !important; transform: none; }
.info-dot:focus-visible { outline: 2px solid rgba(244,195,90,.4); outline-offset: 2px; }
.units-help-popover { position: fixed; z-index: 120; width: min(320px, calc(100vw - 24px)); padding: 11px 12px; color: #e7e7e7; background: #292929; border: 1px solid #6a5222; border-radius: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.45); font-size: .62rem; font-weight: 550; line-height: 1.55; }
.units-help-popover[hidden] { display: none; }

.overview-summary .overview-leaders { align-items: stretch; gap: 10px; }
.overview-leaders > section { min-width: 0; padding: 16px; background: #242424; border: 1px solid #383838; border-radius: 7px; }
.overview-ranking-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #3b3b3b; }
.overview-ranking-heading > span { color: #f4c35a; font-weight: 800; }
.overview-ranking-heading > small { color: #777; font-size: .52rem; }
.overview-ranking-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.overview-ranking-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 31px; border-bottom: 1px solid #343434; }
.overview-ranking-list li:last-child { border-bottom: 0; }
.overview-ranking-list li > span { color: #777; font-size: .55rem; font-weight: 800; }
.overview-ranking-list li > strong { overflow: hidden; color: #ececec; font-size: .63rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-ranking-list li > small { max-width: 125px; color: #a3a3a3; font-size: .53rem; line-height: 1.25; text-align: right; white-space: pre-line; }
.overview-ranking-list .overview-ranking-empty { display: block; padding: 12px 0; color: #777; font-size: .6rem; }

.currency-money-list { display: grid; min-width: 0; line-height: 1.35; }
.currency-money-list > span { display: block; padding: 4px 0; border-top: 1px solid #46402f; color: inherit; font: inherit; }
.currency-money-list > span:first-child { padding-top: 0; border-top: 0; }
.currency-money-list > span:last-child { padding-bottom: 0; }
.money-caption { display: block; margin-bottom: 4px; color: #777 !important; font-size: .52rem !important; }

.catalog-inline-detail-row > td { padding: 0 12px 14px !important; background: #202020; border-bottom: 1px solid #5a4722; }
.catalog-inline-detail { padding: 16px; background: #1d1d1d; border: 1px solid #4d4129; border-radius: 6px; }
.catalog-inline-detail .track-detail-kpis { margin-bottom: 12px; }
.catalog-inline-detail table { min-width: 720px; }

.dsp-identity, .country-identity { display: flex; min-width: 135px; gap: 10px; align-items: center; }
.dsp-identity > strong, .country-identity > strong { color: #e7e7e7; font-weight: 600; }
.dsp-logo { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; padding: 5px; color: #ededed; background: #303030; border: 1px solid #494949; border-radius: 5px; font-size: .49rem; font-weight: 900; }
.dsp-logo img { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); }
.country-flag { display: grid; width: 25px; height: 20px; flex: 0 0 25px; place-items: center; overflow: hidden; background: #303030; border: 1px solid #494949; border-radius: 4px; font-family: system-ui, sans-serif; font-size: .84rem; line-height: 1; }

.file-item-actions { display: flex; gap: 9px; align-items: center; }
.file-remove-button { width: auto; min-height: 30px; margin: 0; padding: 0 10px; font-size: .58rem; }
.file-item-removed { opacity: .66; }
.file-item-removed .pill { color: #bbb; background: #303030; }
#removeReportForm > p { margin: 0; color: #a5a5a5; font-size: .69rem; line-height: 1.55; }
#removeReportForm textarea { width: 100%; padding: 10px; color: #eee; background: #242424; border: 1px solid #494949; border-radius: 6px; resize: vertical; font: inherit; font-size: .72rem; }

.participant-form { grid-template-columns: 1.2fr 1.2fr .8fr; }
.participant-spotify { grid-column: 1 / -1; display: grid; gap: 12px; padding: 15px; background: #222; border: 1px solid #3f493f; border-radius: 6px; }
.participant-spotify[hidden] { display: none; }
.participant-spotify h3 { margin: 5px 0 4px; font-size: .82rem; }
.participant-spotify p { margin: 0; color: #888; font-size: .6rem; line-height: 1.5; }
.spotify-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: end; }
.spotify-search-row button { width: auto; height: 38px; }
.spotify-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.spotify-result { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 9px; align-items: center; width: 100%; min-height: 54px; padding: 7px; color: #eee; background: #292929; border: 1px solid #454545; text-align: left; }
.spotify-result:hover { color: #f5f5f5; background: #30352f; border-color: #5d715c; }
.spotify-result img, .spotify-result-placeholder, .spotify-selection img { width: 38px; height: 38px; border-radius: 4px; object-fit: contain; }
.spotify-result-placeholder { display: grid; place-items: center; background: #343434; color: #f4c35a; font-weight: 800; }
.spotify-result > span { display: grid; min-width: 0; gap: 3px; }
.spotify-result strong { overflow: hidden; font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.spotify-result small { color: #8f8f8f; font-size: .52rem; }
.spotify-result svg { width: 14px; height: 14px; }
.spotify-selection { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px; background: #243027; border: 1px solid #3f6548; border-radius: 6px; }
.spotify-selection[hidden] { display: none; }
.spotify-selection > div { display: grid; gap: 2px; }
.spotify-selection span, .spotify-selection small { color: #8fb69b; font-size: .52rem; }
.spotify-selection strong { color: #f1f1f1; font-size: .69rem; }
.spotify-selection a, .participant-spotify-link { color: #8fc9a0; font-size: .58rem; font-weight: 700; text-decoration: none; }
.participant-spotify-link { display: inline-flex; gap: 5px; align-items: center; }
.participant-spotify-link img { width: 12px; height: 12px; filter: brightness(0) saturate(100%) invert(68%) sepia(20%) saturate(650%) hue-rotate(84deg); }
.shared-identity-status { display: block; color: #8fc9a0; font-size: .5rem; font-weight: 700; }

.map-marker-tooltip { visibility: hidden; }
.map-marker:hover .map-marker-tooltip, .map-marker:focus-visible .map-marker-tooltip { visibility: visible; }

#inviteUserButton, #createRoleButton, #newSplitEntityButton, #newParticipantButton, #newArtistButton { width: auto; min-width: 0; height: 31px; padding: 0 11px; border-radius: 5px; font-size: .62rem; }
#mfaPolicyForm button[type="submit"] { font-size: .64rem; }
#saveSplitDraft, #activateSplit { width: auto; min-width: 0; height: 31px; padding: 0 11px; border-radius: 5px; font-size: .62rem; }
.participant-form-actions button { width: auto; min-width: 0; height: 31px; padding: 0 11px; border-radius: 5px; font-size: .62rem; }

@media (min-width: 681px) {
  .landing-main .site-footer > .wordmark { grid-column: 1; grid-row: 1; }
  .landing-main .site-footer > nav { grid-column: 2; grid-row: 1; }
  .landing-main .site-footer > .footer-social { grid-column: 3; grid-row: 1; }
}

@media (max-width: 1100px) {
  .kpi-grid[data-section="financials"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .overview-summary .overview-leaders { grid-template-columns: 1fr; }
  .spotify-results { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .panel-main { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .kpi-grid[data-section="financials"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-ranking-list li > small { max-width: 105px; }
  .spotify-search-row, .spotify-selection { grid-template-columns: 1fr; }
  .spotify-selection img { width: 44px; height: 44px; }
  .file-item { align-items: flex-start; }
  .file-item-actions { align-items: flex-end; flex-direction: column; }
}

/* Compact workspace rail and site-wide appearance control. */
.theme-toggle { display: inline-grid; width: 32px; min-width: 32px; height: 32px; min-height: 32px; place-items: center; padding: 0; color: #d7d7d7; background: #292929; border: 1px solid #454545; border-radius: 6px; box-shadow: none; }
.theme-toggle:hover { color: #171717; background: #f5bd35; border-color: #f5bd35; filter: none; }
.theme-toggle svg { width: 15px; height: 15px; stroke-width: 2; }
.theme-toggle-floating { position: fixed; z-index: 46; top: 14px; right: 14px; }
.workspace-bar { grid-template-columns: 200px minmax(180px, 1fr) auto auto auto; gap: 14px; }
.legal-header > a:not(.wordmark) { margin-left: auto; color: #f5c768; font-size: .76rem; font-weight: 700; text-decoration: none; }
.legal-header .theme-toggle { margin-left: 8px; }

@media (min-width: 681px) {
  .app-shell { grid-template-columns: 62px minmax(0, 1fr); gap: 6px; padding: 6px; }
  .sidebar { height: calc(100vh - 12px); padding: 6px; }
  .nav-list { gap: 3px; }
  .nav-list .rail-action, .nav-list a, .logout-button { width: 40px; height: 40px; border-radius: 6px; }
  .nav-list .rail-action svg, .nav-list a svg, .logout-button svg { width: 17px; height: 17px; }
  .nav-divider { width: 28px; margin: 3px auto; }
}

@media (min-width: 681px) and (max-width: 1050px) {
  .app-shell { grid-template-columns: 58px minmax(0, 1fr); }
  .workspace-bar { grid-template-columns: auto minmax(140px, 1fr) auto auto auto; gap: 8px; }
}

@media (max-width: 680px) {
  .sidebar { contain: layout paint; max-width: 100vw; height: 56px; padding: 4px; overscroll-behavior-x: contain; }
  .nav-list { gap: 2px; }
  .nav-list .rail-action, .nav-list a, .logout-button { flex-basis: 40px; width: 40px; height: 40px; }
  .nav-list .rail-action svg, .nav-list a svg, .logout-button svg { width: 17px; height: 17px; }
  .workspace-bar { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
  .workspace-bar .theme-toggle { grid-column: 2; grid-row: 1; }
  .panel-active .workspace-bar .language-switcher { grid-column: 3; grid-row: 1; }
  .workspace-search { grid-column: 1 / -1; }
  .theme-toggle { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
  .theme-toggle-floating { top: 13px; right: 13px; }
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #202326;
  --muted: #656b70;
  --line: #d8dcdf;
  --panel: #ffffff;
  --page: #eef1f2;
  --accent: #d99b0b;
  --accent-2: #b64c36;
  --accent-3: #34745a;
  --shadow: 0 12px 34px rgba(28, 34, 38, .08);
}
html[data-theme="light"] body,
html[data-theme="light"] .landing-page,
html[data-theme="light"] .login-page,
html[data-theme="light"] .waitlist-page,
html[data-theme="light"] .legal-page,
html[data-theme="light"] .learning-page { color: #202326; background: #eef1f2; }
html[data-theme="light"] :where(.landing-workspace, .panel-main, .site-header, .workspace-bar, .waitlist-header, .legal-header, .site-footer, .waitlist-footer) { color: #202326; background: #ffffff; border-color: #d5dadd; }
html[data-theme="light"] :where(.app-shell) { background: #e3e7e9; }
html[data-theme="light"] :where(.sidebar) { color: #303438; background: #ffffff; border-color: #cfd5d8; }
html[data-theme="light"] :where(.nav-list a, .nav-list .rail-action, .logout-button) { color: #676e73; }
html[data-theme="light"] :where(.nav-list a.active, .nav-list a:hover, .nav-list .rail-action.active, .nav-list .rail-action:hover) { color: #1b1d1f; background: #f5b928; }
html[data-theme="light"] .profile-photo-field { border-color: #d7dcdf; }
html[data-theme="light"] .profile-photo-preview { color: #687075; background: #f2f4f5; border-color: #cfd5d8; }
html[data-theme="light"] .profile-photo-copy > strong { color: #202326; }
html[data-theme="light"] .profile-photo-copy > p { color: #687075; }
html[data-theme="light"] .access-user-avatar { color: #8b6205; background: #fff8e5; border-color: #d6ad4c; }
html[data-theme="light"] .nav-divider { background: #d8dcdf; }
html[data-theme="light"] :where(.wordmark, .wordmark strong, .workspace-bar strong) { color: #202326; }
html[data-theme="light"] .wordmark img { padding: 2px; background: #222629; border-radius: 50%; }
html[data-theme="light"] :where(.workspace-search, .site-header-center, input, select, textarea, .support-search) { color: #202326; background: #f5f7f8; border-color: #cfd5d8; }
html[data-theme="light"] :where(input::placeholder, textarea::placeholder) { color: #858c91; }
html[data-theme="light"] :where(label, .view-heading p, .panel-header p, .hero-copy p, .landing-copy p, .feature-intro p, .source-support p, .faq-intro p, .faq-list details p) { color: #62696e; }
html[data-theme="light"] :where(.panel, .controls-panel, .kpi-grid article, .status-row > div, .overview-summary article, .overview-leaders > section, .overview-detail-grid article, .catalog-detail-grid article, .royalty-category-grid article, .valuation-grid article, .consumption-kpis article, .support-content section, .support-home, .support-index, .file-item, .access-tabs, .access-summary, .feature-strip article, .product-preview, .source-support, .studio-services, .landing-cta, .waitlist-form-panel, .access-dialog-shell) { color: #202326; background: #ffffff; border-color: #d5dadd; box-shadow: none; }
html[data-theme="light"] .activity-summary article { color: #202326; background: #ffffff; border-color: #d5dadd; }
html[data-theme="light"] .activity-summary strong { color: #202326; }
html[data-theme="light"] :where(.activity-summary span, .activity-summary small, .activity-actor small, .activity-resource small, .activity-context, .activity-pagination span) { color: #697177; }
html[data-theme="light"] .activity-actor strong { color: #252a2d; }
html[data-theme="light"] .activity-resource strong { color: #444b50; }
html[data-theme="light"] .activity-table { border-color: #d5dadd; }
html[data-theme="light"] :where(.panel h2, .panel h3, .support-home h2, .support-content h2, .support-index strong, .overview-ranking-list li > strong, .track-table-identity strong, .split-track-identity strong, .split-scope-heading h3, .split-totals strong, .track-detail-kpis strong, .faq-list summary, .studio-services h3, .studio-services li strong, .waitlist-form-heading h2, .waitlist-success h2, .waitlist-fieldset legend) { color: #202326; }
html[data-theme="light"] :where(.overview-summary article > strong, .catalog-detail-grid strong, .royalty-category-grid strong, .valuation-grid article > strong, .consumption-kpis article strong) { color: #202326; }
html[data-theme="light"] :where(.overview-summary strong, .overview-detail-grid strong, .overview-ranking-list strong, .catalog-detail-grid strong, .royalty-category-grid strong, .valuation-grid strong, .consumption-kpis strong, .kpi-grid strong, .track-detail-kpis strong, .split-totals strong, .panel strong) { color: #202326 !important; }
html[data-theme="light"] :where(th) { color: #62696e; background: #f3f5f6; }
html[data-theme="light"] :where(td) { color: #2c3033; }
html[data-theme="light"] :where(th, td, .table-wrap, .access-table, .split-track-table, .split-preview-table, .track-detail-kpis, .split-totals, .split-ledger-panel .table-wrap) { border-color: #d7dcdf; }
html[data-theme="light"] :where(.split-track-search input, .split-entity-controls select, .split-rule-grid input, .split-rule-grid select, .split-participant-row input, .split-participant-row select, .split-notes textarea, #removeReportForm textarea, .waitlist-form-panel input[type="text"], .waitlist-form-panel input[type="email"], .waitlist-form-panel textarea, .consumption-toolbar select) { color: #202326; background: #f5f7f8; border-color: #cbd1d5; }
html[data-theme="light"] :where(.split-scope-selector, .split-scope-option, .split-participant-row, .split-totals > div, .split-history-item, .track-detail-kpis article, .participant-spotify, .spotify-result, .support-categories a, .support-flow > span, .support-formula, .support-timeline span, .support-mini-chart, .waitlist-check-grid > label, .waitlist-radio-row label) { color: #2a2e31; background: #f5f7f8; border-color: #d4d9dc; }
html[data-theme="light"] :where(.split-scope-option:hover, .support-categories a:hover) { color: #202326; background: #fff8e6; border-color: #c99a31; }
html[data-theme="light"] :where(.split-scope-option.active, .access-tabs button.active) { color: #171717; background: #f5b928; border-color: #f5b928; }
html[data-theme="light"] :where(.source-pill, .source-overflow > summary, .source-overflow-menu) { color: #303438; background: #f5f7f8; border-color: #cfd5d8; box-shadow: none; }
html[data-theme="light"] :where(.source-pill b) { color: #202326; }
html[data-theme="light"] :where(.source-pill small) { color: #687075; }
html[data-theme="light"] :where(.source-overflow > summary:hover, .source-overflow[open] > summary) { color: #171717; background: #f5b928; border-color: #f5b928; }
html[data-theme="light"] :where(.preview-currency-bar, .landing-data .preview-chart, .landing-data .preview-table .preview-table-head, .workflow-band) { background: #f1f3f4; border-color: #d5dadd; }
html[data-theme="light"] :where(.landing-data .preview-kpis div, .landing-data .preview-table div) { color: #202326; background: #ffffff; border-color: #d5dadd; }
html[data-theme="light"] :where(.source-list span, .footer-social a, .waitlist-check-grid > label, .waitlist-radio-row label) { color: #303438; background: #f5f7f8; border-color: #d2d7da; }
html[data-theme="light"] :where(.faq-list, .faq-list details, .studio-services li, .source-gallery, .site-footer, .waitlist-steps, .waitlist-steps > div, .waitlist-footer-copyright, .legal-shell section, .legal-footer) { border-color: #d5dadd; }
html[data-theme="light"] :where(.legal-date, .legal-summary, .legal-shell section p, .legal-copy ul, .waitlist-intro > p, .waitlist-form-heading p, .waitlist-fieldset > p, .waitlist-consent, .waitlist-success p) { color: #62696e; }
html[data-theme="light"] :where(.legal-copy strong) { color: #282c2f; }
html[data-theme="light"] :where(.legal-shell code) { color: #2f3437; background: #f4f6f7; border-color: #d2d7da; }
html[data-theme="light"] :where(.login-card) { color: #202326; background: #ffffff; border-color: #d5dadd; box-shadow: 0 18px 50px rgba(31, 38, 42, .1); }
html[data-theme="light"] .login-stars { display: none; }
html[data-theme="light"] :where(.login-card .oauth-button) { color: #2b3033; background: #f4f6f7; border-color: #cfd5d8; }
html[data-theme="light"] :where(.login-card .text-button) { color: #62696e; background: transparent; }
html[data-theme="light"] :where(.theme-toggle) { color: #3e4549; background: #f4f6f7; border-color: #cfd5d8; }
html[data-theme="light"] :where(.theme-toggle:hover) { color: #171717; background: #f5bd35; border-color: #f5bd35; }
html[data-theme="light"] :where(.overview-funding, .funding-request-banner) { color: #27230f; background: #fff8e6; border-color: #d7ae4c; }
html[data-theme="light"] :where(.overview-funding h2, .funding-request-banner h2) { color: #27230f; }
html[data-theme="light"] :where(.overview-funding p, .funding-request-banner p) { color: #6d6246; }
html[data-theme="light"] :where(.catalog-inline-detail-row > td, .catalog-inline-detail) { color: #202326; background: #fffaf0; border-color: #d7ae4c; }
html[data-theme="light"] :where(.waitlist-steps > div) { background: #ffffff; }
html[data-theme="light"] .world-map { background: #e8edf0; border-color: #c5cdd2; box-shadow: none; }
html[data-theme="light"] .world-map-key { color: #59636a; }
html[data-theme="light"] .world-map-key strong { color: #3f484e; }
html[data-theme="light"] .units-help-popover { color: #262b2e; background: #ffffff; border-color: #b68a29; box-shadow: 0 12px 30px rgba(34, 39, 43, .18); }
html[data-theme="light"] :where(.learning-hero, .learning-section, .learning-footer) { border-color: #d5dadd; }
html[data-theme="light"] :where(.learning-hero h1, .learning-section-heading h2, .learning-check-panel h2, .learning-number-grid strong, .learning-check-grid strong) { color: #202326; }
html[data-theme="light"] :where(.learning-hero p, .learning-section-heading p, .learning-number-grid p, .learning-check-grid p, .learning-footer) { color: #687076; }
html[data-theme="light"] :where(.learning-hero p strong) { color: #282c2f; }
html[data-theme="light"] :where(.learning-callout, .learning-check-panel, .learning-number-grid, .learning-check-grid) { color: #303438; background: #ffffff; border-color: #d2d7da; }
html[data-theme="light"] :where(.learning-number-grid article, .learning-check-grid article, .learning-split-total) { border-color: #d5dadd; }
html[data-theme="light"] :where(.learning-header nav a:hover, .learning-header nav a[aria-current="page"]) { color: #765400; background: #fff6dc; border-color: #d2ad55; }
html[data-theme="light"] :where(.learning-header nav .learning-back-link, .learning-header nav .learning-back-link:hover) { color: #171717; background: #f5b928; border-color: #d99f14; }
html[data-theme="light"] :where(.learning-page .csv-use-grid, .learning-page .csv-use-grid > div, .learning-page .metadata-field-grid, .learning-page .metadata-field-grid > div, .learning-page .metadata-locations, .learning-page .support-example-table, .learning-page .support-warning-row) { border-color: #d5dadd; }
html[data-theme="light"] :where(.learning-page .csv-use-grid strong, .learning-page .metadata-field-grid strong, .learning-page .metadata-example h3, .learning-page .metadata-example dt, .learning-page .metadata-example dd, .learning-page .metadata-example aside strong, .learning-page .metadata-locations strong, .learning-page .support-warning-row strong, .learning-page .support-outcomes) { color: #202326; }
html[data-theme="light"] :where(.learning-page .csv-use-grid p, .learning-page .metadata-field-grid p, .learning-page .metadata-example dt, .learning-page .metadata-example aside small, .learning-page .metadata-locations small, .learning-page .support-warning-row small) { color: #687076; }
html[data-theme="light"] :where(.learning-page .metadata-example, .learning-page .metadata-locations span, .learning-page .support-outcomes) { background: #ffffff; border-color: #d5dadd; }

/* Complete light theme: shared application surfaces and interactive states. */
html[data-theme="light"] :where(.view-heading h1, .panel-main .hero h1, .landing-copy h1, .feature-intro h2, .workflow-band h2, .landing-cta h2, .waitlist-intro h1, .login-card h1, .brand strong) { color: #202326; }
html[data-theme="light"] :where(.view-heading p, .settings-group p, .directory-heading p, .participant-directory-header p, .access-panel-heading p, .access-panel .panel-header p, .financial-currency-toolbar p, .split-policy-panel p, .momentum-explanation) { color: #687076; }
html[data-theme="light"] :where(.panel-main .hero, .landing-hero, .feature-intro, .feature-strip, .landing-main) { background: transparent; }
html[data-theme="light"] :where(.hero-status, .setup-progress, .financial-currency-status, .currency-pill) { color: #785600; background: #fff4d7; border-color: #d8b35a; }
html[data-theme="light"] :where(.workspace-account, .workspace-support, .dialog-close, .access-dialog-heading .icon-button, .cookie-close, .floating-cookie-button, .scroll-top-button) { color: #4c555a; background: #f3f5f6; border-color: #cbd2d6; box-shadow: 0 8px 22px rgba(35, 42, 46, .1); }
html[data-theme="light"] :where(.workspace-account:hover, .workspace-support:hover, .dialog-close:hover, .access-dialog-heading .icon-button:hover, .cookie-close:hover, .floating-cookie-button:hover, .scroll-top-button:hover) { color: #171717; background: #f5bd35; border-color: #d89f18; filter: none; }
html[data-theme="light"] :where(.workspace-dialog, .cookie-dialog) { color: #202326; background: #ffffff; border-color: #cbd2d6; box-shadow: 0 24px 70px rgba(32, 38, 42, .2); }
html[data-theme="light"] :where(.workspace-dialog::backdrop, .cookie-dialog::backdrop, .access-dialog::backdrop) { background: rgba(39, 45, 49, .42); }
html[data-theme="light"] :where(.dialog-close, .dialog-intro, .cookie-intro, .cookie-banner-copy p) { color: #687076; }
html[data-theme="light"] :where(.dialog-grid textarea, .directory-search input, .financial-currency-toolbar select, .participant-form input, .participant-form select, .permission-option > select, .mfa-policy input[type="text"], .mfa-policy input:not([type])) { color: #202326; background: #f5f7f8; border-color: #cbd2d6; }
html[data-theme="light"] :where(.dialog-actions .secondary-button, .table-action-muted, .cookie-banner-actions .cookie-secondary, .participant-form-actions .secondary-button, .split-actions .secondary-button, .security-session button) { color: #3f474c; background: #f1f3f4; border-color: #c9d0d4; }
html[data-theme="light"] :where(.dialog-actions .secondary-button:hover, .table-action-muted:hover, .cookie-banner-actions .cookie-secondary:hover, .participant-form-actions .secondary-button:hover, .split-actions .secondary-button:hover, .security-session button:hover) { color: #171717; background: #e2e6e8; border-color: #aeb8bd; filter: none; }

html[data-theme="light"] :where(.setup-panel, .participant-summary article, .participant-form, .security-row, .security-session, .mfa-policy, .scope-grant-list, .financial-split-groups article, .cookie-option, .cookie-banner) { color: #202326; background: #ffffff; border-color: #d3d9dc; box-shadow: none; }
html[data-theme="light"] :where(.connection-item, .access-summary-list span, .mfa-role-options label, .scope-grant-list label, .permission-group) { color: #30363a; background: #f5f7f8; border-color: #d3d9dc; }
html[data-theme="light"] :where(.connection-item:hover, .mfa-role-options label:has(input:checked), .scope-grant-list label:has(input:checked)) { color: #202326; background: #fff7e1; border-color: #cda54b; }
html[data-theme="light"] :where(.connection-item small, .participant-summary span, .participant-summary small, .participant-directory-header p, .security-row span, .security-session span, .security-session-list > p, .security-activity-list span, .security-activity-list time, .mfa-policy p, .mfa-setup-grid p) { color: #6e767b; }
html[data-theme="light"] :where(.connection-item strong, .participant-summary strong, .participant-identity strong, .participant-balance, .security-row strong, .security-session strong, .security-activity-list strong, .mfa-policy strong, .mfa-role-options label, .scope-grant-list strong, .permission-option strong) { color: #252a2d; }
html[data-theme="light"] :where(.artist-directory-identity strong, .artist-spotify-profile strong) { color: #252a2d; }
html[data-theme="light"] :where(.artist-directory-identity small, .artist-spotify-profile small) { color: #6e767b; }
html[data-theme="light"] .artist-directory-identity > :where(img, span) { background: #fff7e1; border-color: #d8b35a; }
html[data-theme="light"] :where(.settings-actions, .security-activity-list > div, .access-dialog-heading, .permission-option, .support-index strong) { border-color: #d6dbde; }
html[data-theme="light"] :where(.mfa-setup-grid code, #recoveryCodesList) { color: #795600; background: #fff8e6; border-color: #d8b35a; }
html[data-theme="light"] .toggle-line { color: #343b3f; }
html[data-theme="light"] .toggle-line input[type="checkbox"] { background: #dfe4e6; border-color: #abb5ba; }
html[data-theme="light"] .toggle-line input[type="checkbox"]::after { background: #ffffff; box-shadow: 0 1px 3px rgba(32, 38, 42, .28); }
html[data-theme="light"] .toggle-line input[type="checkbox"]:checked { background: #e0a817; border-color: #c89614; }

html[data-theme="light"] :where(.access-tabs button, .segmented-control button) { color: #5d666b; }
html[data-theme="light"] :where(.segmented-control) { background: #eef1f2; border-color: #cbd2d6; }
html[data-theme="light"] :where(.segmented-control button:hover, .access-tabs button:hover) { color: #202326; background: #e3e7e9; filter: none; }
html[data-theme="light"] :where(.access-dialog-shell) { color: #202326; background: #ffffff; border-color: #cbd2d6; box-shadow: 0 24px 70px rgba(32, 38, 42, .2); }
html[data-theme="light"] .access-dialog { color: #202326; }
html[data-theme="light"] :where(.access-security-note) { color: #63583b; background: #fff7e1; border-color: #d9a928; }
html[data-theme="light"] :where(.permission-option small, .scope-grant-list small, .participant-missing, .participant-identity small) { color: #737b80; }
html[data-theme="light"] .permission-dangerous { background: #fff1ee; border-color: #dfb2a9; }
html[data-theme="light"] .permission-dangerous strong { color: #9d3f31; }
html[data-theme="light"] :where(.access-status-active, .split-list-status-active, .split-status-active, .trend-up) { color: #286b4a; background: #e2f3e9; }
html[data-theme="light"] :where(.access-status-invitation_pending, .split-list-status-draft, .split-status-draft, .trend-new) { color: #795600; background: #fff2cf; }
html[data-theme="light"] :where(.access-status-suspended, .access-status-disabled, .trend-down) { color: #a13e31; background: #fbe8e5; }
html[data-theme="light"] :where(.split-list-status-missing, .split-status-superseded, .file-item-removed .pill) { color: #626b70; background: #e9edef; }

html[data-theme="light"] :where(.dropzone) { color: #202326; background: #fffaf0; border-color: #caa24a; }
html[data-theme="light"] .dropzone.dragover { background: #fff2cc; border-color: #b17c00; }
html[data-theme="light"] :where(.upload-icon, .funding-mark, .landing-cta .cta-workspace-icon) { color: #8a6200; background: #fff1c8; border-color: #d4aa4b; }
html[data-theme="light"] :where(.file-item span, .split-history-item p, .split-history-item small, .split-empty, .split-totals span, .track-detail-kpis span, .financial-split-groups small, .table-value-note) { color: #70787d; }
html[data-theme="light"] :where(.split-history-item ul, .split-totals, .split-totals > div, .track-detail-kpis, .track-detail-kpis article, .financial-split-groups article) { border-color: #d5dadd; }
html[data-theme="light"] :where(.split-history-item li, .financial-split-groups p, .split-version-cell strong) { color: #3c4448; }
html[data-theme="light"] :where(.dsp-logo, .country-flag) { color: #343b3f; background: #f1f4f5; border-color: #ccd3d7; }
html[data-theme="light"] :where(.dsp-identity > strong, .country-identity > strong, .split-version-cell strong, .financial-split-groups strong) { color: #252a2d; }

html[data-theme="light"] :where(.analytics-toolbar label, .consumption-toolbar label) { color: #5e676c; }
html[data-theme="light"] :where(.analytics-toolbar select, .consumption-toolbar select) { color: #202326; background: #f5f7f8; border-color: #cbd2d6; }
html[data-theme="light"] :where(.youtube-status-bar p, .youtube-connect-fields label, .youtube-report-filters > label, .youtube-channel-result small, .youtube-channel-selection small, .youtube-channel-identity small) { color: #687076; }
html[data-theme="light"] :where(.youtube-kpis article, .youtube-channel-result) { color: #202326; background: #ffffff; border-color: #d3d9dc; }
html[data-theme="light"] :where(.youtube-kpis article span, .youtube-kpis article small) { color: #687076; }
html[data-theme="light"] :where(.youtube-kpis article strong, .youtube-channel-result strong, .youtube-channel-selection strong, .youtube-channel-identity strong) { color: #252a2d; }
html[data-theme="light"] :where(.youtube-connect-fields input, .youtube-connect-fields select, .youtube-report-filters select) { color: #202326; background: #f5f7f8; border-color: #cbd2d6; }
html[data-theme="light"] :where(.youtube-channel-form, .youtube-channel-results) { border-color: #d5dadd; }
html[data-theme="light"] .youtube-channel-result:hover { background: #fff8e6; }
html[data-theme="light"] .youtube-channel-selection { background: #fff7df; border-color: #d3ab4f; }
html[data-theme="light"] :where(.youtube-channel-result > :where(img, span:first-child), .youtube-channel-selection > :where(img, span:first-child), .youtube-channel-identity > :where(img, span:first-child)) { background: #f1f4f5; border-color: #ccd3d7; }
html[data-theme="light"] .youtube-connection-notice { color: #286b4a; background: #e2f3e9; border-color: #acd5bc; }
html[data-theme="light"] .youtube-connection-notice.is-error { color: #9a352b; background: #fff0ed; border-color: #e3b5ae; }
html[data-theme="light"] :where(.youtube-studio-panel .panel-header p, .youtube-studio-kpis span, .youtube-studio-kpis small) { color: #687076; }
html[data-theme="light"] :where(.youtube-studio-kpis, .youtube-studio-kpis > div) { border-color: #d5dadd; }
html[data-theme="light"] .youtube-studio-kpis strong { color: #252a2d; }
html[data-theme="light"] .youtube-authorized-label { color: #286b4a !important; }
html[data-theme="light"] :where(.export-section-grid > label) { color: #30363a; background: #f5f7f8; border-color: #d3d9dc; }
html[data-theme="light"] :where(.export-section-grid > label:has(input:checked), .export-context, .bulk-import-summary) { color: #6f5000; background: #fff7df; border-color: #d3ab4f; }
html[data-theme="light"] .export-section-grid > label:has(input:checked) { color: #30363a; background: #fff7df; border-color: #d3ab4f; }
html[data-theme="light"] :where(.export-section-grid small) { color: #687076; }
html[data-theme="light"] .bulk-preview-table { border-color: #d5dadd; }
html[data-theme="light"] .bulk-row-error td { background: #fff0ed; }
html[data-theme="light"] .bulk-row-status { color: #286b4a; background: #e2f3e9; }
html[data-theme="light"] .bulk-row-status-error { color: #a13e31; background: #fbe8e5; }
html[data-theme="light"] .consumption-kpis .consumption-kpi-primary { background: #fff9e9; border-color: #d8bd76; }
html[data-theme="light"] :where(.consumption-kpis article span, .consumption-kpis article small, .trend-change-cell small) { color: #677076; }
html[data-theme="light"] .consumption-type { color: #475056; background: #edf1f3; border-color: #c9d0d4; }
html[data-theme="light"] .consumption-type-streaming { color: #795600; background: #fff4d7; border-color: #d8b35a; }
html[data-theme="light"] .consumption-type-ugc { color: #345d93; background: #e9f0fa; border-color: #a9bdd9; }
html[data-theme="light"] .consumption-type-tiktok_cml { color: #8f3e4b; background: #faeaed; border-color: #d8aeb6; }
html[data-theme="light"] .consumption-type-publishing { color: #286b4a; background: #e6f3eb; border-color: #9fc8b0; }
html[data-theme="light"] .consumption-type-neighboring { color: #895336; background: #f8ece5; border-color: #d6b39e; }
html[data-theme="light"] .world-map { background: #edf2f5; border-color: #bdc7cd; }
html[data-theme="light"] .world-map::before { background: radial-gradient(circle at 50% 44%, rgba(119, 142, 158, .15), transparent 60%); }
html[data-theme="light"] .world-map > img { filter: invert(88%) sepia(8%) saturate(280%) hue-rotate(165deg) brightness(92%) contrast(88%); }
html[data-theme="light"] :where(.map-marker-tooltip) { color: #202326; background: #ffffff; border-color: #aeb9bf; box-shadow: 0 8px 22px rgba(35, 42, 46, .18); }
html[data-theme="light"] .map-marker-tooltip::after { background: #ffffff; border-color: #aeb9bf; }
html[data-theme="light"] .map-marker-tooltip strong { color: #202326; }
html[data-theme="light"] .world-map-empty::after { color: #58636a; background: rgba(237, 242, 245, .84); }

html[data-theme="light"] :where(.support-index a, .support-content p, .support-content li, .support-flow small, .support-timeline small, .support-mini-chart small) { color: #687076; }
html[data-theme="light"] :where(.support-flow, .support-index strong) { border-color: #d5dadd; }
html[data-theme="light"] .support-flow { background: #d5dadd; }
html[data-theme="light"] :where(.support-flow strong, .support-timeline strong, .support-mini-chart b) { color: #252a2d; }
html[data-theme="light"] .support-formula span { color: #30363a; background: #ffffff; border-color: #cbd2d6; }
html[data-theme="light"] .support-mini-chart span::before { background: #dce1e4; }
html[data-theme="light"] .support-index a:hover { color: #171717; background: #f5bd35; }
html[data-theme="light"] .support-learning-cards { border-color: #d5dadd; }
html[data-theme="light"] .support-learning-cards a { color: #252a2d; }
html[data-theme="light"] .support-learning-cards a:first-child { border-color: #d5dadd; }
html[data-theme="light"] .support-learning-cards a:hover { background: #fff8e6; }
html[data-theme="light"] .support-learning-cards em { color: #687076; }
html[data-theme="light"] .support-feature-heading { border-color: #d5dadd; }
html[data-theme="light"] .support-feature-heading p strong,
html[data-theme="light"] .support-feature-guide h3,
html[data-theme="light"] :where(.csv-use-grid strong, .metadata-field-grid strong, .support-warning-row strong, .metadata-example h3, .metadata-example dd, .metadata-example aside strong, .metadata-locations strong) { color: #252a2d; }
html[data-theme="light"] :where(.support-callout, .metadata-example, .support-outcomes) { color: #2a2e31; background: #f5f7f8; border-color: #d4d9dc; }
html[data-theme="light"] :where(.csv-use-grid, .csv-use-grid > div, .metadata-field-grid, .metadata-field-grid > div, .support-check-list li, .support-warning-row, .support-warning-row span, .metadata-example dl > *, .metadata-example aside, .metadata-example aside p) { border-color: #d5dadd; }
html[data-theme="light"] .support-caption { color: #4d4330 !important; background: #fff8e6; border-color: #d7ae4c; }
html[data-theme="light"] .support-warning-row small,
html[data-theme="light"] :where(.metadata-example dt, .metadata-example aside small, .metadata-locations small) { color: #687076; }
html[data-theme="light"] .metadata-locations { background: #d5dadd; border-color: #d5dadd; }
html[data-theme="light"] .metadata-locations span { background: #f5f7f8; }

html[data-theme="light"] :where(.landing-workspace, .landing-page) { background: #eef1f2; }
html[data-theme="light"] .landing-workspace { background: #ffffff; border-color: #cfd5d8; }
html[data-theme="light"] :where(.landing-copy p, .feature-strip p, .workflow-band p, .workflow-band li, .landing-cta p, .source-support p) { color: #62696e; }
html[data-theme="light"] :where(.feature-strip article, .landing-cta, .source-support, .source-logo) { background: #ffffff; border-color: #d5dadd; }
html[data-theme="light"] .workflow-band { background: #e9eff2; }
html[data-theme="light"] .workflow-band li { border-color: #cbd3d7; }
html[data-theme="light"] .workflow-band li strong { color: #202326; }
html[data-theme="light"] :where(.source-gallery-heading strong, .preview-topbar strong, .preview-currency-bar strong) { color: #30363a; }
html[data-theme="light"] .source-logo img { filter: grayscale(1) brightness(.55); }
html[data-theme="light"] .source-logo:hover img { filter: none; }
html[data-theme="light"] :where(.site-footer nav a, .site-footer > span, .site-footer .footer-copyright, .waitlist-footer, .waitlist-footer-copyright) { color: #667075; }
html[data-theme="light"] .site-footer nav .footer-site-button { color: #795600; background: #fff4d7; border-color: #d8b35a; }
html[data-theme="light"] .landing-cta > img { background: #252a2d; border-color: #3d454a; }
html[data-theme="light"] .language-switcher-trigger { color: #30363a; background: #ffffff; border-color: #bfc7cb; }
html[data-theme="light"] .language-switcher-trigger:hover,
html[data-theme="light"] .language-switcher.is-open .language-switcher-trigger { color: #202326; background: #f5f7f8; border-color: #b38a2b; }
html[data-theme="light"] .language-switcher-menu { background: #ffffff; border-color: #c9d0d4; box-shadow: 0 12px 28px rgba(35,42,46,.18); }
html[data-theme="light"] .language-switcher-menu button { color: #566067; }
html[data-theme="light"] .language-switcher-menu button:hover,
html[data-theme="light"] .language-switcher-menu button:focus-visible { color: #202326; background: #edf1f3; }
html[data-theme="light"] .language-switcher-menu button.is-selected { color: #775500; background: #fff4d7; }

html[data-theme="light"] :where(.login-divider) { color: #747c81; }
html[data-theme="light"] :where(.login-divider::before, .login-divider::after) { background: #d4dadd; }
html[data-theme="light"] :where(.login-card p, .login-card .text-button, .brand-dark span) { color: #687076; }
html[data-theme="light"] .login-card .oauth-button:hover { color: #202326; background: #e8ecee; border-color: #aeb8bd; }
html[data-theme="light"] :where(.waitlist-check-grid > label:has(input:checked), .waitlist-radio-row label:has(input:checked)) { color: #5f470e; background: #fff7e1; border-color: #cda54b; }
html[data-theme="light"] :where(.waitlist-check-grid strong, .waitlist-steps strong, .waitlist-footer .wordmark) { color: #252a2d; }
html[data-theme="light"] :where(.cookie-banner, .cookie-dialog) { color: #202326; background: #ffffff; border-color: #cbd2d6; }
html[data-theme="light"] .cookie-option strong { color: #252a2d; }
html[data-theme="light"] .cookie-option small { color: #687076; }

/* Public pages use more specific component selectors than the shared shell. */
html[data-theme="light"] .landing-workspace .site-header {
  color: #202326;
  background: rgba(255, 255, 255, .97);
  border-color: #d5dadd;
}
html[data-theme="light"] .landing-workspace .site-nav a { color: #3d454a; }
html[data-theme="light"] .landing-workspace .site-nav a:hover { color: #9a6b00; }
html[data-theme="light"] .landing-workspace .site-nav .ghost-button {
  color: #6f4f00;
  background: #fff4d7;
  border-color: #d8b35a;
}
html[data-theme="light"] .landing-workspace .site-nav .ghost-button:hover {
  color: #171717;
  background: #f5bd35;
  border-color: #d89f18;
}
html[data-theme="light"] .landing-data .product-preview {
  color: #202326;
  background: #ffffff;
  border-color: #d2d8db;
}
html[data-theme="light"] .landing-data .preview-topbar { border-color: #d5dadd; }
html[data-theme="light"] .landing-data .preview-topbar small,
html[data-theme="light"] .landing-data .preview-panel-title small,
html[data-theme="light"] .landing-data .preview-chart small,
html[data-theme="light"] .landing-data .preview-donut small { color: #687076; }
html[data-theme="light"] .landing-data .preview-topbar > span {
  color: #6f4f00;
  background: #fff4d7;
  border: 1px solid #dfc27b;
}
html[data-theme="light"] .landing-data .preview-currency-bar {
  color: #687076;
  background: #f0f3f4;
  border-color: #d5dadd;
}
html[data-theme="light"] .landing-data .preview-currency-bar b {
  color: #6f4f00;
  background: #ffffff;
  border-color: #d8b35a;
}
html[data-theme="light"] .landing-data .preview-kpis { border-color: #d5dadd; }
html[data-theme="light"] .landing-data .preview-kpis div {
  color: #202326;
  background: #ffffff;
  border-color: #d5dadd;
}
html[data-theme="light"] .landing-data .preview-kpis strong { color: #202326; }
html[data-theme="light"] .landing-data .preview-kpis em { color: #687076; }
html[data-theme="light"] .landing-data .preview-kpis div:first-child em { color: #286b4a; }
html[data-theme="light"] .landing-data .preview-revenue-panel,
html[data-theme="light"] .landing-data .preview-mix-panel {
  color: #202326;
  background: #f7f9fa;
  border-color: #d5dadd;
}
html[data-theme="light"] .landing-data .preview-panel-title > span {
  color: #5d666b;
  background: #ffffff;
  border-color: #cbd2d6;
}
html[data-theme="light"] .landing-data .preview-chart {
  background: repeating-linear-gradient(to bottom, transparent 0 36px, #dce1e4 37px);
}
html[data-theme="light"] .landing-data .preview-chart > div:nth-child(even) > span { background: #bb9954; }
html[data-theme="light"] .landing-data .preview-donut {
  background: conic-gradient(#e6aa18 0 42%, #a98949 42% 66%, #cbd2d6 66% 100%);
}
html[data-theme="light"] .landing-data .preview-donut::before { background: #f7f9fa; }
html[data-theme="light"] .landing-data .preview-table { border-color: #d2d8db; }
html[data-theme="light"] .landing-data .preview-table div {
  color: #202326;
  background: #ffffff;
  border-color: #d5dadd;
}
html[data-theme="light"] .landing-data .preview-table .preview-table-head { background: #eef1f2; }
html[data-theme="light"] .landing-data .preview-table .preview-table-head span,
html[data-theme="light"] .landing-data .preview-table div > :nth-child(3) { color: #626b70; }
html[data-theme="light"] .landing-data .preview-table strong { color: #252a2d; }
html[data-theme="light"] .source-support .source-list span {
  color: #343b3f;
  background: #f4f6f7;
  border-color: #d2d7da;
}
html[data-theme="light"] .source-support .source-list span:last-child {
  color: #6f4f00;
  background: #fff4d7;
  border-color: #d8b35a;
}
html[data-theme="light"] .faq-list summary { color: #252a2d; }
html[data-theme="light"] .studio-services li span { color: #687076; }
html[data-theme="light"] .studio-services > a { color: #795600; }
html[data-theme="light"] .waitlist-form-panel input[type="text"],
html[data-theme="light"] .waitlist-form-panel input[type="email"],
html[data-theme="light"] .waitlist-form-panel textarea {
  color: #202326;
  background: #f5f7f8;
  border-color: #cbd2d6;
}
html[data-theme="light"] .waitlist-check-grid > label,
html[data-theme="light"] .waitlist-radio-row label {
  color: #30363a;
  background: #f5f7f8;
  border-color: #d2d7da;
}
html[data-theme="light"] .waitlist-check-grid > label:has(input:checked),
html[data-theme="light"] .waitlist-radio-row label:has(input:checked) {
  color: #5f470e;
  background: #fff7e1;
  border-color: #cda54b;
}
html[data-theme="light"] .waitlist-footer .footer-social a {
  color: #4d565b;
  background: #f4f6f7;
  border-color: #cbd2d6;
}

@media (max-width: 680px) {
  html[data-theme="light"] :where(.landing-workspace .site-header, .workspace-bar) { background: rgba(255,255,255,.98); }
}
