@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F6F6F6;
  --bg-soft: #fcfcfc;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --border: #ddddda;
  --text: #000000;
  --muted: #5f5f5c;
  --accent: #ef5241;
  --accent-deep: #c93c2d;
  --shadow: 0 16px 34px rgba(0, 0, 0, 0.05);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.8rem;
  --space-4: 1rem;
  --font-display: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-size-body: clamp(0.95rem, 0.93rem + 0.12vw, 1rem);
  --font-size-meta: 0.72rem;
  --font-size-card-title: clamp(1rem, 0.96rem + 0.3vw, 1.18rem);
  --font-size-hero: clamp(1.48rem, 1.24rem + 0.9vw, 2rem);
  --line-body: 1.38;
  --line-tight: 0.9;
  --layout-max-width: 1180px;
}

html,
body {
  height: 100%;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top, rgba(239, 82, 65, 0.07), transparent 30%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 62%, #f0f0f0 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
}

html {
  height: -webkit-fill-available;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.journey-main {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 82, 65, 0.35) transparent;
}

.journey-main::-webkit-scrollbar {
  width: 10px;
}

.journey-main::-webkit-scrollbar-track {
  background: transparent;
}

.journey-main::-webkit-scrollbar-thumb {
  background: rgba(239, 82, 65, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.journey-main::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 82, 65, 0.42);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.songscout-page.container-fluid {
  padding: 0;
  min-height: 100svh;
  height: 100dvh;
  background-color: var(--bg) !important;
  background: transparent !important;
}

.app-shell {
  --shell-pad-left: calc(var(--space-3) + env(safe-area-inset-left));
  --shell-pad-right: calc(var(--space-3) + env(safe-area-inset-right));
  position: relative;
  box-sizing: border-box;
  min-height: 100svh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: var(--space-2);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: var(--shell-pad-left);
  padding-right: var(--shell-pad-right);
  background-color: var(--bg) !important;
  background: transparent !important;
}

.app-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: env(safe-area-inset-top);
  background: var(--bg);
  pointer-events: none;
}

@supports (-webkit-touch-callout: none) {
  .songscout-page.container-fluid,
  .app-shell {
    min-height: -webkit-fill-available;
    height: -webkit-fill-available;
  }
}

.top-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-left: calc(-1 * var(--shell-pad-left));
  margin-right: calc(-1 * var(--shell-pad-right));
  max-width: none;
  width: 100%;
  padding-top: calc(var(--space-2) + env(safe-area-inset-top));
  padding-left: var(--shell-pad-left);
  padding-right: var(--shell-pad-right);
  background: transparent;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
}

a.brand-pill,
.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.brand-home-link {
  border-radius: 999px;
  cursor: pointer;
}

.brand-home-link:hover,
.brand-home-link:focus,
.brand-home-link:focus-visible {
  text-decoration: none;
}

.brand-home-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 82, 65, 0.16);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  background: rgba(239, 82, 65, 0.1);
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  transform: translateY(-1px);
}

.brand-icon .fa-icon {
  width: 0.98rem;
  height: 0.98rem;
}

.brand-wrap {
  display: inline-flex;
  gap: 0;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 1.18rem + 0.26vw, 1.56rem);
  line-height: 1;
  letter-spacing: 0.0em;
  margin-top: -5px;
}

.brand-mark {
  font-weight: 700;
}

.brand-song {
  color: var(--text);
}

.brand-scout {
  color: var(--accent);
}

.top-actions {
  display: flex;
  gap: var(--space-2);
  flex-shrink: 0;
}

.top-actions .ghost-button.btn.icon-button {
  background: var(--top-action-bg, var(--ghost-bg));
  border-color: var(--top-action-border, var(--border));
  color: var(--top-action-color, var(--text));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.top-actions .ghost-button.btn.icon-button:hover,
.top-actions .ghost-button.btn.icon-button:focus,
.top-actions .ghost-button.btn.icon-button:focus-visible {
  background: var(--top-action-bg-hover, var(--top-action-bg, var(--ghost-bg)));
  border-color: var(--top-action-border-hover, var(--top-action-border, var(--border)));
  color: var(--top-action-color-hover, var(--top-action-color, var(--text)));
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.top-actions .ghost-button.btn.icon-button:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#nav_toggle {
  --top-action-bg: var(--top-action-home-bg);
  --top-action-border: var(--top-action-home-border);
  --top-action-color: var(--top-action-home-color);
  --top-action-bg-hover: var(--top-action-home-bg-hover);
  --top-action-border-hover: var(--top-action-home-border-hover);
  --top-action-color-hover: var(--top-action-home-color-hover);
}

#home_button {
  --top-action-bg: var(--top-action-home-bg);
  --top-action-border: var(--top-action-home-border);
  --top-action-color: var(--top-action-home-color);
  --top-action-bg-hover: var(--top-action-home-bg-hover);
  --top-action-border-hover: var(--top-action-home-border-hover);
  --top-action-color-hover: var(--top-action-home-color-hover);
}

#history_toggle {
  --top-action-bg: var(--top-action-history-bg);
  --top-action-border: var(--top-action-history-border);
  --top-action-color: var(--top-action-history-color);
  --top-action-bg-hover: var(--top-action-history-bg-hover);
  --top-action-border-hover: var(--top-action-history-border-hover);
  --top-action-color-hover: var(--top-action-history-color-hover);
}

#account_button {
  --top-action-bg: var(--top-action-account-bg);
  --top-action-border: var(--top-action-account-border);
  --top-action-color: var(--top-action-account-color);
  --top-action-bg-hover: var(--top-action-account-bg-hover);
  --top-action-border-hover: var(--top-action-account-border-hover);
  --top-action-color-hover: var(--top-action-account-color-hover);
}

.journey-main {
  position: relative;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  background-color: transparent !important;
  width: 100%;
  max-width: var(--layout-max-width);
  min-width: 0;
  min-height: 0;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  float: none;
}

.journey-main::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  left: 0;
  right: -0.85rem;
  width: auto;
  height: 2rem;
  margin-bottom: -2rem;
  z-index: 8;
  pointer-events: none;
  background: var(--journey-top-fade);
}

.journey-column {
  position: relative;
  min-width: 0;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  padding-right: 0.85rem;
  background: transparent !important;
  background-color: transparent !important;
}

.journey-content {
  position: relative;
  box-sizing: border-box;
  min-height: 100%;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  padding-bottom: var(--space-3);
}

.journey-content:not(:has(.home-landing-hero)) {
  padding-top: clamp(0.85rem, 2.8vh, 1.4rem);
}

.app-footer {
  --app-footer-text: #111111;
  --app-footer-muted: rgba(17, 17, 17, 0.72);
  --app-footer-soft: rgba(17, 17, 17, 0.56);
  display: grid;
  gap: clamp(1.35rem, 2.8vw, 2rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding: clamp(1.6rem, 3.5vw, 2.35rem) clamp(1.4rem, 4vw, 3rem) clamp(1.85rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, white 8%), var(--accent));
  border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 18%, transparent);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

html:not(.is-initial-journey-ready) .app-footer,
html.is-route-loading .app-footer,
html.has-route-stage .app-footer,
html.has-cached-journey-restore .app-footer {
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
}

.app-footer-copy {
  display: grid;
  gap: 0.6rem;
  max-width: 40rem;
}

.app-footer-kicker,
.app-footer-nav-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-footer-kicker {
  color: var(--app-footer-soft);
}

.app-footer-lead,
.app-footer-body,
.app-footer-meta {
  margin: 0;
}

.app-footer-lead {
  color: var(--app-footer-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-footer-body {
  color: var(--app-footer-muted);
  line-height: 1.6;
}

.app-footer-meta {
  color: var(--app-footer-muted);
  font-size: 0.84rem;
}

.app-footer-nav {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.app-footer-nav-group {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.app-footer-nav-kicker {
  color: var(--app-footer-soft);
}

.app-footer-link,
.app-footer-note {
  display: inline-block;
  color: var(--app-footer-text);
  text-decoration: none;
  line-height: 1.5;
}

.app-footer-link {
  transition: color 140ms ease, transform 140ms ease;
}

.app-footer-link:hover,
.app-footer-link:focus,
.app-footer-link:focus-visible {
  color: var(--app-footer-text);
  opacity: 0.82;
  transform: translateX(1px);
  outline: none;
}

.app-footer-note {
  color: var(--app-footer-muted);
}

.journey-header {
  margin-bottom: var(--space-2);
  padding-top: clamp(0.55rem, 2.2vh, 1rem);
}

.journey-header:has(.home-landing-hero) {
  padding-top: 0;
}

.journey-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 252, 252, 0.88));
  border: 1px solid rgba(221, 221, 218, 0.98);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
}

.journey-hero h1 {
  margin: 0 0 0.35rem;
  max-width: 10.5ch;
  font-family: var(--font-display);
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: var(--line-tight);
  letter-spacing: -0.025em;
  color: var(--text);
}

.journey-hero p,
.hero-kicker {
  margin: 0;
}

.journey-hero p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.36;
}

.home-landing-hero {
  min-height: clamp(26rem, calc(100svh - 6.6rem), 48rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.4rem, 4vw, 3rem);
  margin-top: clamp(0.18rem, 1.2vh, 0.8rem);
  background: var(--bg);
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.home-landing-hero-inner {
  width: min(100%, 38rem);
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.home-landing-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  text-align: center;
}

.home-landing-hero p {
  max-width: 30rem;
  margin: 0 auto;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.5;
  text-align: center;
}

.hero-kicker {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--font-size-meta);
  color: var(--muted);
  margin-bottom: 0.42rem;
}

.journey-canvas {
  display: grid;
  flex: 1 0 auto;
  align-content: start;
  gap: var(--space-3);
}

#journey_header.recalculating,
#journey_canvas.recalculating {
  opacity: 1 !important;
}

.journey-column {
  transition: opacity 180ms ease;
}

html:not(.is-initial-journey-ready):not(.has-route-stage) .journey-column {
  opacity: 0;
  pointer-events: none;
}

html.is-route-loading .journey-column {
  opacity: 0.72;
}

html.has-route-stage .journey-column {
  opacity: 1;
}

html.has-cached-journey-restore .journey-header,
html.has-cached-journey-restore .journey-canvas {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.has-cached-journey-restore .journey-content {
  min-height: max(100%, 30rem, calc(100svh - 8.25rem));
}

html.has-cached-journey-restore .journey-content::before,
html.has-cached-journey-restore .journey-content::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

html.has-cached-journey-restore .journey-content::before {
  content: "";
  z-index: 14;
  background: var(--bg);
}

html.has-cached-journey-restore .journey-content::after {
  content: "Restoring your session";
  z-index: 15;
  display: grid;
  place-items: center;
  min-height: max(100%, 30rem, calc(100svh - 8.25rem));
  padding: clamp(1.25rem, 4vw, 2rem);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.38rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

html.has-global-hydration-gate,
html.has-global-hydration-gate body {
  min-height: 100%;
  background: var(--bg);
}

html.has-global-hydration-gate .app-shell {
  opacity: 0;
  pointer-events: none;
}

html.has-global-hydration-gate .global-hydration-gate {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.global-hydration-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483010;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.global-hydration-card {
  width: min(22rem, 100%);
  min-height: 9.25rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.95rem;
  padding: clamp(1.25rem, 4vw, 1.65rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  text-align: center;
}

.global-hydration-brand {
  justify-content: center;
}

.global-hydration-brand .brand-icon {
  width: 2.3rem;
  height: 2.3rem;
}

.global-hydration-brand .brand-icon .fa-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.global-hydration-brand .brand-wrap {
  font-size: clamp(1.38rem, 1.22rem + 0.42vw, 1.62rem);
}

.global-hydration-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.02rem + 0.28vw, 1.25rem);
  font-weight: 700;
  line-height: 1.2;
}

.global-hydration-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  min-height: 0.65rem;
}

.global-hydration-dots span {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.38;
  transform: translateY(0);
  animation: global-hydration-dot 1.05s ease-in-out infinite;
}

.global-hydration-dots span:nth-child(2) {
  animation-delay: 140ms;
}

.global-hydration-dots span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes global-hydration-dot {
  0%,
  80%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-0.26rem);
  }
}

html.has-global-hydration-gate body::before,
html.has-global-hydration-gate body::after {
  position: fixed;
  z-index: 2147483000;
  pointer-events: none;
}

html.has-global-hydration-gate body::before {
  content: "";
  inset: 0;
  background: var(--bg);
}

html.has-global-hydration-gate body::after {
  content: "Restoring your session";
  left: 50%;
  top: 50%;
  width: min(22rem, calc(100vw - 2rem));
  min-height: 8rem;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.24rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.route-waiter-stage {
  position: absolute;
  inset: 0;
  z-index: 16;
  display: grid;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.route-waiter-stage.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.route-waiter-stage.is-hidden {
  display: none;
}

.route-waiter-stage-shell {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-height: max(30rem, calc(100svh - 13.5rem));
  padding-top: calc(clamp(0.85rem, 2.8vh, 1.4rem) + clamp(0.55rem, 2.2vh, 1rem));
}

.route-waiter-stage-shell .route-search-landing-hero {
  width: 100%;
}

.route-waiter-search-panel {
  justify-items: stretch;
}

.route-waiter-search-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.route-waiter-search-field {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--input-bg);
}

.route-waiter-search-field .loading-skeleton-line {
  margin: 0;
}

.route-waiter-search-field .loading-skeleton-line.is-wide {
  width: min(100%, 26rem);
}

.top-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(239, 82, 65, 0.08), rgba(239, 82, 65, 0.58), rgba(239, 82, 65, 0.08));
  opacity: 0;
  transform: scaleX(0.22);
  transform-origin: left center;
  pointer-events: none;
}

html.is-route-loading .top-bar::after {
  opacity: 1;
  animation: route-waiter-bar 1.1s ease-in-out infinite;
}

.artist-loading-shell {
  display: grid;
  gap: var(--space-3);
}

.artist-loading-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--panel-solid), var(--accent-surface));
  border-color: var(--accent-border-soft);
}

.artist-loading-panel.is-accent {
  border-color: var(--accent-border-strong);
  box-shadow: 0 18px 36px rgba(239, 82, 65, 0.08);
}

.artist-loading-panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.artist-loading-panel-topline .card-kicker {
  margin-bottom: 0;
}

.artist-loading-panel p {
  color: var(--muted);
}

.artist-loading-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.16rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border-soft);
  background: var(--accent-surface-strong);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.artist-loading-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.loading-skeleton-line {
  position: relative;
  display: block;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--status-neutral-bg);
  overflow: hidden;
}

.loading-skeleton-line.is-wide {
  width: 100%;
}

.loading-skeleton-line.is-medium {
  width: 74%;
}

.loading-skeleton-line.is-short {
  width: 46%;
}

.loading-skeleton-line::after,
.status-loading.collaboration-empty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  animation: songscout-loading-shimmer 1.25s ease-in-out infinite;
}

.status-loading.collaboration-empty-card {
  position: relative;
  overflow: hidden;
  background: var(--accent-surface);
  border-color: var(--accent-border-soft);
}

.status-loading.collaboration-empty-card > * {
  position: relative;
  z-index: 1;
}

.artist-lazy-panel-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.artist-lazy-panel-shell > .shiny-html-output {
  min-width: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.artist-lazy-panel-shell.is-loading > .shiny-html-output {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.artist-lazy-panel-shell.is-loading {
  min-height: 13.5rem;
}

.artist-lazy-panel-waiter {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}

.artist-lazy-progress-card,
.artist-lazy-panel-waiter-card {
  display: grid;
  box-sizing: border-box;
  gap: 0.6rem;
  align-content: start;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border-soft);
  background: linear-gradient(180deg, var(--panel-solid), var(--accent-surface));
  box-shadow: 0 12px 28px rgba(239, 82, 65, 0.08);
}

.artist-lazy-panel-shell.is-loading .artist-lazy-panel-waiter {
  display: block;
}

.artist-lazy-progress-status {
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.artist-lazy-progress-title,
.artist-lazy-panel-waiter h4,
.artist-lazy-panel-waiter p {
  margin: 0;
}

.artist-lazy-progress-copy,
.artist-lazy-panel-waiter p {
  color: var(--muted);
}

.artist-lazy-progress-lines,
.artist-lazy-panel-waiter-lines,
.artist-lazy-panel-placeholder-lines {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.journey-accordion .accordion-item.is-loading .accordion-button {
  color: var(--accent-deep);
}
@keyframes route-waiter-bar {
  0% {
    transform: scaleX(0.12);
    opacity: 0.35;
  }

  50% {
    transform: scaleX(0.78);
    opacity: 0.9;
  }

  100% {
    transform: scaleX(0.22);
    opacity: 0.45;
  }
}

@keyframes songscout-loading-shimmer {
  100% {
    transform: translateX(100%);
  }
}

html[data-theme="dark"] .top-bar::after {
  background: linear-gradient(90deg, rgba(255, 109, 92, 0.12), rgba(255, 109, 92, 0.76), rgba(255, 109, 92, 0.12));
}

html[data-theme="dark"] .artist-loading-panel.is-accent {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .loading-skeleton-line::after,
html[data-theme="dark"] .status-loading.collaboration-empty-card::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

html[data-theme="dark"] .artist-lazy-panel-waiter-card {
  background: linear-gradient(180deg, rgba(36, 27, 24, 0.96), rgba(27, 22, 20, 0.94));
  border-color: rgba(255, 109, 92, 0.16);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .journey-accordion .accordion-item.is-loading .accordion-button {
  color: #ffd3c8;
}

@media (prefers-reduced-motion: reduce) {
  .journey-column {
    transition: none;
  }

  html.is-route-loading .top-bar::after,
  .loading-skeleton-line::after,
  .status-loading.collaboration-empty-card::after {
    animation: none;
  }
}

.empty-state {
  display: grid;
  gap: var(--space-3);
}
.not-found-state {
  max-width: 52rem;
  margin: 0 auto;
  gap: 1rem;
}

.not-found-hero-card,
.not-found-nav-card {
  display: grid;
  gap: 0.75rem;
}

.not-found-hero-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.28rem + 0.9vw, 2.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}

.not-found-lead {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.5;
}

.not-found-path code {
  word-break: break-word;
}

.favorites-page {
  width: min(100%, 58rem);
  margin: 0 auto;
  gap: 1rem;
  padding-block: clamp(0.4rem, 1.5vw, 1rem) clamp(2rem, 5vw, 4rem);
}

.favorites-gate-card,
.favorites-empty-card,
.favorites-hero-card,
.favorites-group-card {
  display: grid;
  gap: 0.78rem;
}

.favorites-gate-card h1,
.favorites-empty-card h1,
.favorites-hero-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.28rem + 1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--text);
}

.favorites-page-lead {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.5;
}

.favorites-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.favorites-unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.favorites-unlock-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(239, 82, 65, 0.045);
  color: var(--text);
  font-weight: 650;
  line-height: 1.3;
}

.favorites-unlock-icon,
.favorites-row-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(239, 82, 65, 0.1);
  border: 1px solid rgba(239, 82, 65, 0.18);
}

.favorites-unlock-icon .fa-icon,
.favorites-unlock-icon svg,
.favorites-row-icon .fa-icon,
.favorites-row-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.favorites-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.favorites-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.28rem 0.64rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(239, 82, 65, 0.07);
  font-size: 0.82rem;
  font-weight: 700;
}

.favorites-list {
  display: grid;
  gap: 0.5rem;
}

.favorites-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(221, 221, 218, 0.85);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
}

.favorites-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.favorites-row-main:hover,
.favorites-row-main:focus,
.favorites-row-main:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.favorites-row-copy {
  display: grid;
  min-width: 0;
  gap: 0.14rem;
}

.favorites-row-title {
  overflow-wrap: anywhere;
  font-weight: 750;
}

.favorites-row-meta {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.82rem;
}

.favorites-row-remove {
  width: 2rem;
  height: 2rem;
}

html[data-theme="dark"] .favorites-unlock-item,
html[data-theme="dark"] .favorites-row {
  border-color: rgba(255, 109, 92, 0.16);
  background: rgba(255, 109, 92, 0.08);
}

html[data-theme="dark"] .favorites-unlock-icon,
html[data-theme="dark"] .favorites-row-icon,
html[data-theme="dark"] .favorites-summary-chip {
  color: #ffd3c8;
  border-color: rgba(255, 109, 92, 0.24);
  background: rgba(255, 109, 92, 0.12);
}

@media (max-width: 640px) {
  .favorites-unlock-grid {
    grid-template-columns: 1fr;
  }

  .favorites-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.access-interruption-state {
  width: min(100%, 56rem);
  margin: 0 auto;
  gap: 1rem;
  padding-block: clamp(0.4rem, 1.5vw, 1rem) clamp(2rem, 5vw, 4rem);
}

.access-interruption-hero-card,
.access-interruption-actions-card {
  display: grid;
  gap: 0.75rem;
}

.access-interruption-hero-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 1.28rem + 1vw, 2.25rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
  color: var(--text);
}

.access-interruption-actions-card h3 {
  margin: 0;
}

.access-interruption-lead,
.access-interruption-copy {
  margin: 0;
  max-width: 64ch;
  line-height: 1.5;
}

.access-interruption-lead {
  color: var(--text);
  font-weight: 600;
}

.access-interruption-copy {
  color: var(--muted);
}

.access-interruption-timer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.3rem 0.75rem;
  align-items: baseline;
  width: min(100%, 30rem);
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--accent-border-soft);
  border-radius: var(--radius-sm);
  background: var(--detail-surface-muted);
}

.access-interruption-timer-label {
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.access-interruption-countdown {
  min-width: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.access-interruption-timer-fallback,
.access-interruption-timer-copy {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.access-interruption-timer.is-expired {
  border-color: rgba(91, 151, 108, 0.3);
  background: color-mix(in srgb, var(--panel) 82%, rgba(91, 151, 108, 0.18));
}

.access-interruption-path code {
  word-break: break-word;
}

.access-interruption-unlocks {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--accent-border-soft);
  border-radius: var(--radius-sm);
  background: var(--detail-surface-muted);
}

.access-interruption-unlocks h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.access-interruption-unlock-copy {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.45;
}

.access-interruption-unlock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.access-interruption-unlock-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  min-width: 0;
  padding: 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.access-interruption-unlock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: var(--accent-surface-selected);
  color: var(--accent-text);
}

.access-interruption-unlock-icon .fa-icon,
.access-interruption-unlock-icon .svg-inline--fa {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}

.access-interruption-unlock-text {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.access-interruption-unlock-text strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.2;
}

.access-interruption-unlock-text span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.access-interruption-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.access-interruption-actions .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.access-interruption-actions .access-interruption-primary.primary-button {
  width: auto;
  min-width: min(11rem, 100%);
  max-width: 100%;
  flex: 0 1 auto;
}

.access-interruption-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  margin-inline: auto;
  color: inherit;
  white-space: nowrap;
}

.access-interruption-button-text {
  min-width: 0;
  color: inherit;
}

.access-interruption-actions .fa-icon,
.access-interruption-actions .svg-inline--fa {
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
}

@media (max-width: 820px) {
  .access-interruption-unlock-grid {
    grid-template-columns: 1fr;
  }
}

.legal-page-state {
  width: min(100%, 64rem);
  margin: 0 auto;
  padding-block: clamp(0.4rem, 1.4vw, 1rem) clamp(2rem, 5vw, 4rem);
}

.legal-page-shell {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.4rem);
}

.legal-page-heading {
  display: grid;
  gap: 0.45rem;
}

.legal-page-heading h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.9vw, 3.35rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.legal-page-subtitle,
.legal-page-meta {
  margin: 0;
}

.legal-page-subtitle {
  max-width: 52rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.55;
}

.legal-page-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.legal-page-card {
  display: grid;
  gap: clamp(1rem, 1.7vw, 1.35rem);
  border-color: var(--accent-border-soft);
}

.legal-page-section-block {
  display: grid;
  gap: 0.55rem;
}

.legal-page-section-block + .legal-page-section-block {
  padding-top: clamp(0.85rem, 1.6vw, 1.1rem);
  border-top: 1px solid color-mix(in srgb, var(--accent) 12%, var(--border));
}

.legal-page-section-block h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1rem + 0.35vw, 1.35rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.legal-page-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-page-copy code {
  color: var(--text);
  font-size: 0.92em;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
  border-radius: 0.32rem;
  padding: 0.05rem 0.28rem;
}

.legal-page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.legal-page-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.legal-page-nav-link:hover,
.legal-page-nav-link:focus,
.legal-page-nav-link:focus-visible {
  color: var(--accent-text);
  border-color: var(--accent-border-soft);
  outline: none;
}

.legal-page-nav-link.is-active {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.journey-card {
  background: var(--panel);
  backdrop-filter: none;
  border: 1px solid rgba(221, 221, 218, 0.95);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow);
}

.journey-card h3 {
  margin: 0 0 0.22rem;
  font-family: var(--font-display);
  font-size: var(--font-size-card-title);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--text);
}

.journey-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: var(--line-body);
}

.card-kicker {
  margin-bottom: 0.34rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--muted);
  font-size: var(--font-size-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kind-seed {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 251, 251, 0.94));
}

.kind-lane {
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(255, 255, 255, 0.94));
}

.kind-actions {
  border-style: dashed;
}

.form-control,
.selectize-input,
.btn,
.button-link {
  border-radius: var(--radius-sm);
}

.form-control,
.selectize-input {
  min-height: 40px;
  border: 1px solid var(--border);
  box-shadow: none;
  background: #fcfcfa;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.selectize-input input,
.form-control::placeholder {
  color: #6b6b6b;
}

.selectize-input.focus,
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(239, 82, 65, 0.16);
}

.primary-button.btn,
.ghost-button.btn,
.danger-button.btn,
.button-link.primary-button,
.button-link.ghost-button {
  min-height: 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
}

.primary-button.btn,
.button-link.primary-button {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
}

.primary-button.btn:hover,
.primary-button.btn:focus,
.button-link.primary-button:hover,
.button-link.primary-button:focus {
  background: var(--accent-deep);
  color: #ffffff;
}

.ghost-button.btn,
.button-link.ghost-button {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border);
  color: var(--text);
}

.danger-button.btn {
  width: 100%;
  background: color-mix(in srgb, var(--accent) 10%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--border));
  color: color-mix(in srgb, var(--accent-deep) 82%, #611a12);
}

.danger-button.btn:hover,
.danger-button.btn:focus {
  background: color-mix(in srgb, var(--accent) 16%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  color: color-mix(in srgb, var(--accent-deep) 92%, #611a12);
}

.ghost-button.btn,
.danger-button.btn,
.button-link.ghost-button,
.icon-button.btn,
.theme-choice-button {
  touch-action: manipulation;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.paypal-action-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
}

.paypal-action-button.primary-button,
.paypal-action-button.button-link.primary-button,
.paypal-action-button.primary-button.btn {
  background: #ffc439;
  border-color: #ffc439;
  color: #003087;
}

.paypal-action-button.primary-button:hover,
.paypal-action-button.primary-button:focus,
.paypal-action-button.button-link.primary-button:hover,
.paypal-action-button.button-link.primary-button:focus,
.paypal-action-button.primary-button.btn:hover,
.paypal-action-button.primary-button.btn:focus {
  background: #f2ba36;
  border-color: #f2ba36;
  color: #003087;
}

.paypal-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
  color: #003087;
}

.paypal-action-icon svg {
  display: block;
  width: 1em;
  height: 1em;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.paypal-action-text {
  min-width: 0;
  color: inherit;
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 79;
  background: rgba(0, 0, 0, 0.18);
}

.app-sheet {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 80;
  width: min(26rem, 92vw);
  background: var(--panel-solid);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: calc(1rem + env(safe-area-inset-top)) 1rem calc(1rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sheet-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.15rem + 0.25vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
}

.sheet-body .radio {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.8rem;
  background: #fcfcfa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.journey-graph-card {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.62rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.journey-graph-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.journey-graph-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.1;
}

.journey-graph-count {
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-graph-count {
  flex: 0 0 auto;
  min-width: 1.55rem;
  padding: 0.2rem 0.36rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.1);
  text-align: center;
}

.journey-graph-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.journey-graph-mode-pill {
  appearance: none;
  padding: 0.34rem 0.62rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.journey-graph-mode-pill:hover,
.journey-graph-mode-pill:focus-visible {
  border-color: rgba(239, 82, 65, 0.32);
  color: var(--accent-text);
  outline: none;
}

.journey-graph-mode-pill.is-selected {
  border-color: rgba(239, 82, 65, 0.36);
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-text);
}

.journey-graph-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.38rem;
  align-items: center;
}

.journey-graph-search-input {
  width: 100%;
  min-width: 0;
  padding: 0.48rem 0.62rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.78rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.journey-graph-search-input:focus {
  border-color: rgba(239, 82, 65, 0.42);
  box-shadow: 0 0 0 3px rgba(239, 82, 65, 0.08);
}

.journey-graph-search-clear {
  appearance: none;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-text);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 750;
}

.journey-graph-search-clear.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.journey-graph-viz {
  min-height: 12rem;
  border: 1px dashed rgba(239, 82, 65, 0.18);
  border-radius: calc(var(--radius-md) - 0.25rem);
  background: color-mix(in srgb, var(--subtle-surface) 74%, transparent);
}

.journey-graph-svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 12rem;
  overflow: visible;
}

.journey-graph-link {
  fill: none;
  stroke-linecap: round;
  stroke-opacity: 0.44;
  transition: stroke 140ms ease, stroke-opacity 140ms ease, stroke-width 140ms ease;
}

.journey-graph-link--seed {
  stroke-dasharray: 2 5;
}

.journey-graph-link--discovery {
  stroke-opacity: 0.58;
}

.journey-graph-canvas-hitbox {
  fill: transparent;
  pointer-events: all;
}

.journey-graph-svg.is-hovering .journey-graph-link,
.journey-graph-svg.has-selection .journey-graph-link {
  stroke: color-mix(in srgb, var(--muted) 45%, transparent);
  stroke-opacity: 0.28;
}

.journey-graph-svg.is-hovering .journey-graph-link.is-primary,
.journey-graph-svg.has-selection .journey-graph-link.is-primary {
  stroke-opacity: 0.95;
  stroke-width: 3;
}

.journey-graph-node {
  cursor: pointer;
  --journey-graph-node-color: #6d7480;
}

.journey-graph-node-dot {
  fill: var(--journey-graph-node-color);
  stroke: var(--panel);
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}

.journey-graph-node--role-seed .journey-graph-node-dot {
  fill: var(--panel);
  stroke: var(--journey-graph-node-color);
  stroke-width: 3;
}

.journey-graph-node--role-discovered .journey-graph-node-dot {
  fill: var(--journey-graph-node-color);
  stroke: color-mix(in srgb, var(--journey-graph-node-color) 34%, var(--panel) 66%);
}

.journey-graph-node-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
}

.journey-graph-node-meta {
  fill: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.journey-graph-node-hitbox {
  fill: transparent;
  outline: none;
  stroke: none;
  pointer-events: all;
}

.journey-graph-node-hitbox:focus,
.journey-graph-node-hitbox:focus-visible {
  outline: none;
}

.journey-graph-svg.is-hovering .journey-graph-node:not(.is-primary):not(.is-secondary),
.journey-graph-svg.has-selection .journey-graph-node:not(.is-primary):not(.is-secondary) {
  opacity: 0.42;
}

.journey-graph-node.is-primary .journey-graph-node-label,
.journey-graph-node.is-secondary .journey-graph-node-label {
  fill: var(--text);
}

.journey-graph-node.is-primary .journey-graph-node-label {
  font-weight: 800;
}

.journey-graph-node.is-selected .journey-graph-node-dot {
  stroke: var(--accent);
  stroke-width: 3.5;
}

.journey-graph-node.is-selected .journey-graph-node-label {
  fill: var(--accent-text);
  font-weight: 850;
}

.journey-graph-node.is-search-match .journey-graph-node-dot {
  stroke: var(--accent);
  stroke-width: 3.5;
}

.journey-graph-node.is-search-match .journey-graph-node-label {
  fill: var(--accent-text);
  font-weight: 850;
}

.journey-graph-node-actions {
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform-box: fill-box;
  transition: opacity 140ms ease, transform 140ms ease;
}

.journey-graph-node.is-selected .journey-graph-node-actions {
  opacity: 1;
  pointer-events: all;
}

.journey-graph-node-actions-strip {
  fill: color-mix(in srgb, var(--panel) 92%, rgba(239, 82, 65, 0.08));
  stroke: rgba(239, 82, 65, 0.24);
  stroke-width: 1.2;
  filter: drop-shadow(0 8px 16px rgba(17, 17, 17, 0.12));
}

.journey-graph-node-action {
  cursor: pointer;
}

.journey-graph-node-action-bg {
  fill: rgba(255, 255, 255, 0.82);
  stroke: rgba(239, 82, 65, 0.18);
  stroke-width: 1.2;
}

.journey-graph-node-action-icon path {
  fill: var(--accent);
}

.journey-graph-node-action--share .journey-graph-node-action-icon path,
.journey-graph-node-action--favorite .journey-graph-node-action-icon path {
  fill: color-mix(in srgb, var(--accent) 80%, var(--text) 20%);
}

.journey-graph-node-action:hover .journey-graph-node-action-bg,
.journey-graph-node-action:focus .journey-graph-node-action-bg,
.journey-graph-node-action:focus-visible .journey-graph-node-action-bg {
  fill: rgba(239, 82, 65, 0.12);
  stroke: rgba(239, 82, 65, 0.5);
}

.journey-graph-node-action.is-active .journey-graph-node-action-bg {
  fill: rgba(239, 82, 65, 0.16);
  stroke: rgba(239, 82, 65, 0.48);
}

.journey-graph-node-action.is-active .journey-graph-node-action-icon path {
  fill: var(--accent-deep);
}

.journey-graph-node-action:focus,
.journey-graph-node-action:focus-visible {
  outline: none;
}

.journey-graph-empty,
.journey-graph-fallback {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.journey-graph-fallback {
  display: grid;
  gap: 0.5rem;
}

.journey-graph-fallback p {
  margin: 0.25rem 0 0;
}

.journey-graph-fallback-node {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 650;
}

.journey-graph-fallback-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
}

.journey-archive-actions {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.1rem;
}

.journey-archive-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.journey-archive-load-button {
  justify-self: start;
}

.journey-archive-load-button.btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 520px) {
  .journey-archive-load-button.btn {
    width: 100%;
  }
}

.sheet-empty {
  color: var(--muted);
}

.account-sheet-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.account-sheet {
  display: flex;
  flex-direction: column;
}

.account-sheet-body > .shiny-html-output {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 0;
}

.account-profile-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: var(--space-3);
}

.settings-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #fcfcfa;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.settings-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.settings-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.songscout-page.auth-route-page {
  position: relative;
  box-sizing: border-box;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  max-height: 100dvh;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

html[data-songscout-auth-route="true"],
html[data-songscout-auth-route="true"] body {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

.auth-route-shell {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: max(1.25rem, env(safe-area-inset-top)) 1rem max(1.25rem, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.auth-route-brand {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 1.65rem;
  padding: 0;
  background: transparent !important;
  border-color: transparent;
  box-shadow: none !important;
}

.auth-route-panel {
  position: relative;
  box-sizing: border-box;
  --auth-route-panel-max-height: calc(100dvh - max(2.5rem, env(safe-area-inset-top)) - env(safe-area-inset-bottom));
  width: min(100%, 30rem);
  min-height: min(32.5rem, var(--auth-route-panel-max-height));
  max-height: var(--auth-route-panel-max-height);
  display: flex;
  flex-direction: column;
  padding: clamp(1.55rem, 4vw, 2.1rem) clamp(1.25rem, 4vw, 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(22, 19, 18, 0.12);
  text-align: left;
}

.auth-route-panel .account-profile-kicker {
  margin-bottom: 0.6rem;
}

.auth-route-panel h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  color: var(--text);
}

.auth-route-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.auth-route-field-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-route-input.form-control {
  min-height: 2.9rem;
  border-radius: 0.65rem;
}

.auth-route-code-input {
  letter-spacing: 0.08em;
}

.auth-route-code-actions {
  margin-top: 0.1rem;
}

.auth-route-form .account-upgrade-button {
  width: 100%;
}

.auth-route-change-email-link {
  margin-top: 0.2rem;
}

.auth-route-cancel-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-route-cancel-link:hover,
.auth-route-cancel-link:focus {
  color: var(--accent-deep);
  text-decoration: underline;
}

.auth-route-panel-error {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

html[data-theme="dark"] .songscout-page.auth-route-page {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

html[data-theme="dark"][data-songscout-auth-route="true"],
html[data-theme="dark"][data-songscout-auth-route="true"] body {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
}

@media (max-height: 620px) {
  .auth-route-shell {
    align-items: flex-start;
  }

  .auth-route-panel {
    min-height: min(28rem, var(--auth-route-panel-max-height));
  }
}

.account-profile-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.account-profile-copy {
  line-height: 1.5;
}

.account-compact-meta {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.account-quota-meter {
  position: relative;
  height: 0.55rem;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.12);
}

.account-quota-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f7b267);
}

.account-profile-stats {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.account-profile-stat {
  display: grid;
  gap: 0.2rem;
}

.account-profile-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-profile-stat strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.95rem;
}

.account-profile-meta {
  margin: auto 0 0;
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.account-upgrade-card {
  border-color: var(--accent-border-soft);
  background: var(--surface-seed);
}

.account-access-card {
  border-color: color-mix(in srgb, var(--text) 12%, var(--border));
  background: var(--surface);
}

.account-pricing-summary {
  margin-top: 0.15rem;
}

.account-plan-picker {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.account-plan-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  padding: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.account-plan-option:hover,
.account-plan-option:focus-within {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  background: color-mix(in srgb, var(--accent-surface) 42%, var(--panel));
}

.account-plan-option:has(.account-plan-input:checked) {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  background: color-mix(in srgb, var(--accent-surface) 62%, var(--panel));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
}

.account-plan-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.account-plan-radio {
  position: relative;
  box-sizing: border-box;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid color-mix(in srgb, var(--muted) 48%, transparent);
  border-radius: 999px;
  background: var(--panel);
}

.account-plan-input:checked + .account-plan-radio {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}

.account-plan-input:checked + .account-plan-radio::after {
  position: absolute;
  inset: 0.22rem;
  content: "";
  border-radius: inherit;
  background: var(--accent);
}

.account-plan-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
}

.account-plan-copy-group {
  display: block;
  min-width: 0;
}

.account-plan-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  min-width: 0;
}

.account-plan-name {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 750;
  line-height: 1.2;
}

.account-plan-copy {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0 0.45rem;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.account-plan-price {
  display: grid;
  gap: 0.12rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

.account-plan-price strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
}

.account-upgrade-button {
  margin-top: 1rem;
  width: 100%;
}

.account-profile-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.account-profile-actions .account-upgrade-button {
  margin-top: 0;
}

@media (max-width: 440px) {
  .account-plan-body {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .account-plan-price {
    text-align: left;
    white-space: normal;
  }
}

.songscout-install-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 82, 65, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(17, 15, 14, 0.72), rgba(17, 15, 14, 0.58));
  backdrop-filter: blur(4px);
}

.songscout-install-modal {
  width: min(100%, 28rem);
  padding: clamp(1.35rem, 4vw, 1.85rem);
  border: 1px solid rgba(239, 82, 65, 0.28);
  border-radius: 1.1rem;
  background: #fffaf2;
  color: #171313;
  box-shadow: 0 24px 70px rgba(22, 19, 18, 0.34);
}

.songscout-install-brand {
  display: inline-flex;
  margin-bottom: 1.2rem;
  padding: 0;
  background: transparent !important;
  border-color: transparent;
  box-shadow: none !important;
}

.songscout-install-brand .brand-song,
.songscout-install-brand .brand-wrap {
  color: #171313;
}

.songscout-install-brand-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.songscout-install-brand .brand-icon,
.songscout-install-brand .brand-scout,
.songscout-install-modal .account-profile-kicker {
  color: #e14838;
}

.songscout-install-modal h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  color: #111;
}

.songscout-install-modal p {
  margin: 0;
  color: #4b4540;
  line-height: 1.5;
}

.songscout-install-steps {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: #1d1917;
  font-weight: 650;
  line-height: 1.45;
}

.songscout-install-actions {
  margin-top: 1.25rem;
}

html[data-theme="dark"] .songscout-install-modal-overlay {
  background:
    radial-gradient(circle at 18% 18%, rgba(239, 82, 65, 0.24), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.68));
}

html[data-theme="dark"] .songscout-install-modal {
  border-color: rgba(255, 143, 130, 0.36);
  background: #171514;
  color: #fff7ef;
  box-shadow: 0 26px 76px rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] .songscout-install-brand .brand-song,
html[data-theme="dark"] .songscout-install-brand .brand-wrap,
html[data-theme="dark"] .songscout-install-modal h2,
html[data-theme="dark"] .songscout-install-steps {
  color: #fff7ef;
}

html[data-theme="dark"] .songscout-install-brand .brand-icon,
html[data-theme="dark"] .songscout-install-brand .brand-scout,
html[data-theme="dark"] .songscout-install-modal .account-profile-kicker {
  color: #ff8f82;
}

html[data-theme="dark"] .songscout-install-modal p {
  color: rgba(255, 247, 239, 0.76);
}

.quota-modal-body {
  display: grid;
  gap: 0.7rem;
}

.quota-modal-lead {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.quota-modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.quota-modal-upgrade {
  min-width: 7rem;
}

.account-subscription-card {
  border-color: rgba(53, 119, 190, 0.22);
  background: var(--surface);
}

.account-subscription-instructions {
  margin-top: 0.55rem !important;
}

.nav-sheet-body {
  display: grid;
  gap: 0.9rem;
}

.nav-sheet-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.nav-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.nav-menu-grid > .shiny-html-output {
  display: contents;
}

.nav-menu-card.btn,
.nav-menu-card {
  width: 100%;
  min-width: 0;
  min-height: 5.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.78rem 0.58rem;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fcfcfa;
  text-decoration: none;
}

.nav-menu-card.btn {
  color: var(--text);
}

.nav-menu-card:hover,
.nav-menu-card:focus,
.nav-menu-card:focus-visible,
.nav-menu-card.btn:hover,
.nav-menu-card.btn:focus,
.nav-menu-card.btn:focus-visible {
  border-color: rgba(239, 82, 65, 0.28);
  background: rgba(255, 249, 246, 0.98);
  transform: translateY(-1px);
}

.nav-menu-card-wide {
  grid-column: 1 / -1;
  min-height: 4.5rem;
  flex-direction: row;
}

.nav-menu-card.is-active {
  border-color: rgba(239, 82, 65, 0.34);
  background: linear-gradient(180deg, rgba(255, 248, 244, 0.98), rgba(255, 253, 251, 0.96));
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.05);
}

.nav-menu-card.is-disabled {
  color: var(--muted);
  background: rgba(248, 248, 246, 0.95);
  border-style: dashed;
}

.nav-menu-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.18rem;
  height: 2.18rem;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(239, 82, 65, 0.09);
  border: 1px solid rgba(239, 82, 65, 0.16);
}

.nav-menu-card-icon .fa-icon,
.nav-menu-card-icon svg {
  width: 1rem;
  height: 1rem;
}

.nav-menu-card-kicker,
.nav-menu-card-route {
  display: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-menu-card-kicker {
  color: var(--muted);
}

.nav-menu-card-title {
  display: block;
  font-family: var(--font-display);
  max-width: 100%;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
}

.nav-menu-card-body {
  display: none;
  color: var(--muted);
  line-height: 1.55;
}

.nav-menu-card-route {
  color: var(--accent-deep);
}

html[data-theme="dark"] .nav-menu-card.btn,
html[data-theme="dark"] .nav-menu-card {
  background: rgba(31, 31, 31, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .nav-menu-card:hover,
html[data-theme="dark"] .nav-menu-card:focus,
html[data-theme="dark"] .nav-menu-card:focus-visible,
html[data-theme="dark"] .nav-menu-card.btn:hover,
html[data-theme="dark"] .nav-menu-card.btn:focus,
html[data-theme="dark"] .nav-menu-card.btn:focus-visible {
  background: rgba(52, 31, 28, 0.96);
  border-color: rgba(255, 109, 92, 0.24);
}

html[data-theme="dark"] .nav-menu-card.is-active {
  background: linear-gradient(180deg, rgba(58, 31, 27, 0.96), rgba(31, 31, 31, 0.94));
  border-color: rgba(255, 109, 92, 0.34);
}

html[data-theme="dark"] .nav-menu-card.is-disabled {
  color: #c5b6af;
  background: rgba(27, 27, 27, 0.92);
}

html[data-theme="dark"] .nav-menu-card-icon {
  color: #ffd3c8;
  background: rgba(255, 109, 92, 0.12);
  border-color: rgba(255, 109, 92, 0.22);
}

html[data-theme="dark"] .nav-menu-card-route {
  color: #ffd3c8;
}

.nav-appearance-card {
  margin-top: auto;
  padding: 0.82rem;
}

.settings-placeholder-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.settings-placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(221, 221, 218, 0.95);
  border-radius: var(--radius-sm);
}

.settings-placeholder-row span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}

.is-hidden {
  display: none;
}

.orientation-guard {
  display: none;
}

@media (max-width: 767px) {
  .home-featured-intro-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-featured-intro-art-wrap {
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0.65rem 0.45rem 0.65rem 0;
  }

  .home-featured-intro-art-shell {
    width: 180px;
    height: 180px;
  }

  .home-featured-intro-art {
    width: 156px;
    height: 156px;
    opacity: 0.06;
  }
}

@media (min-width: 768px) {
  .app-shell {
    --shell-pad-left: 1.25rem;
    --shell-pad-right: 1.25rem;
    padding-left: var(--shell-pad-left);
    padding-right: var(--shell-pad-right);
  }

}

@media (min-width: 960px) {
  .journey-main {
    max-width: none;
    margin: 0;
  }

  .journey-column {
    width: 100%;
    max-width: var(--layout-max-width);
    margin: 0 auto;
  }

  .journey-content:not(:has(.home-landing-hero)) {
    padding-top: clamp(1.2rem, 3.5vh, 2rem);
  }

  .route-waiter-stage-shell {
    padding-top: calc(clamp(1.2rem, 3.5vh, 2rem) + clamp(0.55rem, 2.2vh, 1rem));
  }

  .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding-top: calc(var(--space-2) + env(safe-area-inset-top));
    pointer-events: none;
  }

  .brand-pill,
  .top-actions {
    pointer-events: auto;
  }

  .top-actions {
    margin-right: 2rem;
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .app-shell {
    --mobile-top-bar-height: calc(2.5rem + var(--space-2) + env(safe-area-inset-top) + 0.35rem);
  }

  .journey-content:not(:has(.home-landing-hero)) {
    padding-top: 0.85rem;
  }

  html[data-theme="dark"] .app-shell::before,
  html[data-theme="dark"] .top-bar {
    background: #000000;
  }

  .app-shell::before {
    height: calc(env(safe-area-inset-top) + 0.8rem);
    background: #ffffff;
    transition: background 180ms ease;
  }

  .top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding-top: calc(var(--space-2) + env(safe-area-inset-top));
    z-index: 60;
    pointer-events: none;
    background: #ffffff;
    transition: transform 180ms ease, opacity 180ms ease;
    will-change: transform, opacity;
  }

  .brand-pill,
  .top-actions {
    pointer-events: auto;
  }

  .top-actions {
    margin-right: calc(env(safe-area-inset-right) + 0.9rem);
  }

  .journey-main {
    padding-top: calc(var(--mobile-top-bar-height) + 0.1rem);
    transition: padding-top 180ms ease;
  }

  .home-landing-hero {
    min-height: calc(100svh - var(--mobile-top-bar-height) - 0.65rem);
    margin-top: 0;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .route-waiter-stage-shell {
    min-height: calc(100svh - var(--mobile-top-bar-height) - 0.35rem);
    padding-top: calc(0.85rem + clamp(0.55rem, 2.2vh, 1rem));
  }

  .home-landing-search-row {
    grid-template-columns: minmax(0, 1fr);
  }


  .journey-main::before {
    top: -0.8rem;
    height: 2.8rem;
    margin-bottom: -2.8rem;
    opacity: 0;
    transition: opacity 180ms ease;
  }

  .app-shell.is-mobile-header-hidden .top-bar,
  .app-shell.is-home-search-focused .top-bar {
    transform: translateY(calc(-100% - env(safe-area-inset-top) - 0.2rem));
    opacity: 0;
  }

  .app-shell.is-mobile-header-hidden::before,
  .app-shell.is-home-search-focused::before {
    background: var(--journey-top-fade);
  }

  .app-shell.is-mobile-header-hidden .journey-main,
  .app-shell.is-home-search-focused .journey-main {
    padding-top: 0.35rem;
  }

  .app-shell.is-mobile-header-hidden .journey-main::before,
  .app-shell.is-home-search-focused .journey-main::before {
    opacity: 1;
  }
}


@media (max-width: 767px) {
  .app-shell {
    --shell-pad-left: calc(var(--space-2) + env(safe-area-inset-left));
    --shell-pad-right: calc(var(--space-2) + env(safe-area-inset-right));
    padding-left: var(--shell-pad-left);
    padding-right: var(--shell-pad-right);
  }

  .journey-content:not(:has(.home-landing-hero)) {
    padding-top: 0.7rem;
  }

  .top-actions {
    gap: 0.4rem;
  }

  .journey-column {
    padding-right: 0.65rem;
  }

  .hero-title-row {
    display: block;
  }

  .hero-title-row .hero-subtitle {
    min-width: 0;
    margin-top: 0.3rem;
  }

  .top-bar {
    gap: 0.55rem;
  }

  .brand-pill {
    gap: 0.48rem;
  }

  .brand-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .journey-hero {
    padding: 0.92rem 0.92rem 0.84rem;
  }

  .journey-card {
    padding: 0.88rem 0.9rem;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .orientation-guard {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(246, 246, 246, 0.97);
  }

  .orientation-card {
    width: min(28rem, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    text-align: center;
  }

  .orientation-card h2,
  .orientation-card p {
    margin: 0;
  }

  .orientation-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
  }

  .orientation-card p {
    margin-top: 0.5rem;
    color: var(--muted);
  }
}


.icon-button.btn {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button .fa-icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 767px) {
  .icon-button.btn {
    width: 2.25rem;
    min-width: 2.25rem;
  }
}

.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;
}

.seed-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: 0.3rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.6rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(239, 82, 65, 0.24);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seed-subtitle {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.seed-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.seed-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fcfcfa;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.2;
}

.seed-footnote {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.status-blocked .status-chip,
.status-no_match .status-chip,
.status-resolver_error .status-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

.journey-hero-seed h1 {
  max-width: 12ch;
}

.hero-subtitle {
  margin-bottom: 0;
}

.hero-meta-list {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.hero-future-slot {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.8rem;
  padding: 0.75rem 0.9rem;
  border: 1px dashed rgba(239, 82, 65, 0.22);
  border-radius: 0.9rem;
  background: rgba(239, 82, 65, 0.05);
}

.hero-future-kicker {
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-future-copy {
  display: grid;
  gap: 0.2rem;
}

.hero-future-copy strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-future-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.route-render-recovery-card,
.route-discovery-followthrough-card {
  display: grid;
  gap: 0.7rem;
}

.route-render-recovery-inline-card {
  gap: 0.55rem;
  padding: 0.95rem 1rem;
}

.route-render-recovery-inline-card h3 {
  font-size: 1.05rem;
}

.route-render-recovery-inline-card .route-render-recovery-copy,
.route-render-recovery-inline-card p {
  font-size: 0.92rem;
}

.route-render-recovery-inline-card .route-render-recovery-actions {
  gap: 0.5rem;
}

.route-render-recovery-hero {
  gap: 0.45rem;
}

.route-render-recovery-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.route-render-recovery-detail {
  margin-top: -0.1rem;
}

.route-render-recovery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.route-render-recovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.route-render-recovery-advanced {
  display: grid;
  gap: 0.45rem;
  min-width: min(100%, 18rem);
  padding: 0.15rem 0;
}

.route-render-recovery-advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.route-render-recovery-advanced p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.artist-related-preview {
  position: relative;
  min-height: 16rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 52%, rgba(239, 82, 65, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 247, 0.92));
}

.artist-related-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 248, 247, 0.9));
  pointer-events: none;
}

.artist-related-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.artist-related-preview-detail {
  display: grid;
  gap: 0.38rem;
  margin-top: 0.7rem;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(239, 82, 65, 0.16);
}

.artist-related-preview-detail strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.artist-related-preview-detail span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.artist-related-preview-detail-meta {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.artist-related-preview-detail-line {
  display: grid;
  grid-template-columns: minmax(5.8rem, max-content) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
}

.artist-related-preview-detail-key {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.artist-related-preview-detail-value {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
}

.artist-related-preview-link {
  fill: none;
  stroke: rgba(53, 53, 50, 0.18);
  stroke-width: 1.6px;
  opacity: 0.78;
  transition: opacity 160ms ease, stroke-width 160ms ease, stroke 160ms ease;
}

.artist-related-preview-link.seed_attribute {
  stroke: rgba(239, 82, 65, 0.28);
}

.artist-related-preview-link.attribute_candidate {
  stroke: rgba(95, 95, 92, 0.18);
}

.artist-related-preview-link.is-secondary {
  opacity: 0;
}

.artist-related-preview-link.is-secondary.is-revealed {
  opacity: 0.38;
}

.artist-related-preview-link.is-highlighted {
  stroke: rgba(239, 82, 65, 0.62);
  stroke-width: 2.4px;
  opacity: 1;
}

.artist-related-preview-link.is-dimmed {
  opacity: 0.16;
}

.artist-related-preview-node circle,
.artist-related-preview-node rect {
  transition: fill 160ms ease, stroke 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.artist-related-preview-node-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  pointer-events: none;
}

.artist-related-preview-node-label.is-seed {
  font-size: 0.83rem;
}

.artist-related-preview-node-label.is-attribute {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.artist-related-preview-node-label.is-artist {
  font-size: 0.75rem;
}

.artist-related-preview-node--seed circle {
  fill: rgba(239, 82, 65, 0.12);
  stroke: rgba(239, 82, 65, 0.72);
  stroke-width: 2px;
}

.artist-related-preview-node--attribute circle {
  fill: rgba(255, 255, 255, 0.94);
  stroke-width: 2px;
}

.artist-related-preview-node--attribute.is-highlighted circle {
  stroke-width: 3px;
}

.artist-related-preview-node--artist circle {
  fill: rgba(255, 255, 255, 0.94);
  stroke-width: 1.8px;
}

.artist-related-preview-node--artist.is-selected circle {
  fill: rgba(239, 82, 65, 0.12);
  stroke-width: 2.3px;
}

.artist-related-preview-node.is-dimmed {
  opacity: 0.34;
}

.artist-related-preview-node--artist:hover circle {
  stroke-width: 2px;
}

html[data-theme="dark"] .artist-related-preview {
  border-color: rgba(255, 109, 92, 0.18);
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 109, 92, 0.11), transparent 28%),
    linear-gradient(180deg, rgba(36, 27, 24, 0.96), rgba(27, 22, 20, 0.94));
}

html[data-theme="dark"] .artist-related-preview::after {
  background: linear-gradient(180deg, rgba(24, 20, 18, 0), rgba(27, 22, 20, 0.92));
}

html[data-theme="dark"] .artist-related-preview-detail {
  border-top-color: rgba(255, 109, 92, 0.14);
}

html[data-theme="dark"] .artist-related-preview-detail span {
  color: #d3c2bb;
}

html[data-theme="dark"] .artist-related-preview-detail-value {
  color: #f5ede7;
}

html[data-theme="dark"] .artist-related-preview-link {
  stroke: rgba(228, 214, 206, 0.18);
}

html[data-theme="dark"] .artist-related-preview-link.seed_attribute {
  stroke: rgba(255, 109, 92, 0.32);
}

html[data-theme="dark"] .artist-related-preview-link.attribute_candidate {
  stroke: rgba(213, 194, 185, 0.16);
}

html[data-theme="dark"] .artist-related-preview-link.is-secondary.is-revealed {
  opacity: 0.34;
}

html[data-theme="dark"] .artist-related-preview-link.is-highlighted {
  stroke: rgba(255, 109, 92, 0.7);
}

html[data-theme="dark"] .artist-related-preview-node-label {
  fill: #f5ede7;
}

html[data-theme="dark"] .artist-related-preview-node--seed circle {
  fill: rgba(255, 109, 92, 0.14);
  stroke: rgba(255, 109, 92, 0.72);
}

html[data-theme="dark"] .artist-related-preview-node--attribute circle {
  fill: rgba(42, 30, 27, 0.96);
}

html[data-theme="dark"] .artist-related-preview-node--artist circle {
  fill: rgba(42, 30, 27, 0.96);
  stroke: rgba(255, 211, 200, 0.18);
}

.artist-related-preview {
  min-height: 18rem;
  background:
    linear-gradient(90deg, rgba(239, 82, 65, 0.08), rgba(255, 255, 255, 0) 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 247, 0.92));
}

.artist-related-preview-link {
  stroke-width: 1.8px;
  opacity: 0.72;
  stroke-linecap: round;
}

.artist-related-preview-link.seed_attribute {
  opacity: 0.34;
}

.artist-related-preview-link.attribute_candidate {
  opacity: 0.62;
}

.artist-related-preview-link.is-highlighted {
  stroke-width: 2.6px;
  opacity: 1;
}

.artist-related-preview-link.is-secondary.is-revealed {
  opacity: 0.4;
}

.artist-related-preview-tier-label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.artist-related-preview-tier-label.is-warm {
  fill: #c5685d;
}

.artist-related-preview-tier-label.is-bridge {
  fill: #ab8450;
}

.artist-related-preview-tier-label.is-cool {
  fill: #6a8fd0;
}

.artist-related-preview-node-label.is-seed {
  font-size: 0.8rem;
}

.artist-related-preview-node-label.is-attribute {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.artist-related-preview-node-label.is-artist {
  font-size: 0.72rem;
  font-weight: 700;
}

.artist-related-preview-node--seed circle {
  fill: rgba(239, 82, 65, 0.12);
  stroke: rgba(239, 82, 65, 0.72);
  stroke-width: 2px;
}

.artist-related-preview-node--attribute circle {
  stroke-width: 0;
}

.artist-related-preview-node--attribute.is-highlighted circle {
  stroke-width: 0;
  filter: drop-shadow(0 0 0.3rem rgba(239, 82, 65, 0.2));
}

.artist-related-preview-node--artist rect {
  fill: rgba(255, 255, 255, 0.95);
  stroke-width: 1.8px;
}

.artist-related-preview-node--artist.is-selected rect {
  fill: rgba(239, 82, 65, 0.12);
  stroke-width: 2.3px;
}

.artist-related-preview-node--artist:hover rect {
  stroke-width: 2px;
}

.artist-related-preview-node.is-dimmed {
  opacity: 0.32;
}

html[data-theme="dark"] .artist-related-preview {
  background:
    linear-gradient(90deg, rgba(255, 109, 92, 0.12), rgba(24, 20, 18, 0) 28%),
    linear-gradient(180deg, rgba(36, 27, 24, 0.96), rgba(27, 22, 20, 0.94));
}

html[data-theme="dark"] .artist-related-preview-tier-label {
  fill: #c4aca1;
}

html[data-theme="dark"] .artist-related-preview-tier-label.is-warm {
  fill: #f09184;
}

html[data-theme="dark"] .artist-related-preview-tier-label.is-bridge {
  fill: #d4a35c;
}

html[data-theme="dark"] .artist-related-preview-tier-label.is-cool {
  fill: #7da3f0;
}

html[data-theme="dark"] .artist-related-preview-link.seed_attribute {
  opacity: 0.3;
}

html[data-theme="dark"] .artist-related-preview-link.attribute_candidate {
  opacity: 0.58;
}

html[data-theme="dark"] .artist-related-preview-node--artist rect {
  fill: rgba(42, 30, 27, 0.96);
  stroke: rgba(255, 211, 200, 0.18);
}

html[data-theme="dark"] .artist-related-preview-node--artist.is-selected rect {
  fill: rgba(255, 109, 92, 0.14);
}

.artist-related-preview {
  min-height: 20rem;
  background:
    radial-gradient(circle at 50% 58%, rgba(239, 82, 65, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 247, 0.92));
}

.artist-related-preview-link {
  stroke-width: 1.6px;
  opacity: 0.62;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artist-related-preview-link.seed_attribute {
  opacity: 0.52;
}

.artist-related-preview-link.attribute_candidate {
  opacity: 0.74;
}

.artist-related-preview-link.is-highlighted {
  stroke-width: 2.4px;
  opacity: 1;
}

.artist-related-preview-node-label.is-seed {
  font-size: 0.82rem;
}

.artist-related-preview-node-label.is-attribute {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.artist-related-preview-node-label.is-artist {
  font-size: 0.72rem;
  font-weight: 600;
}

.artist-related-preview-node--seed circle {
  fill: rgba(239, 82, 65, 0.12);
  stroke: rgba(239, 82, 65, 0.72);
  stroke-width: 2px;
}

.artist-related-preview-node--artist.is-selected .artist-related-preview-node-label {
  font-weight: 700;
}

html[data-theme="dark"] .artist-related-preview {
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 109, 92, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(36, 27, 24, 0.96), rgba(27, 22, 20, 0.94));
}

html[data-theme="dark"] .artist-related-preview-link.seed_attribute {
  opacity: 0.48;
}

html[data-theme="dark"] .artist-related-preview-link.attribute_candidate {
  opacity: 0.7;
}


/* Brand-elevated seed hero overrides */
.journey-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 247, 0.94));
  border: 1px solid rgba(239, 82, 65, 0.18);
  box-shadow: 0 18px 36px rgba(239, 82, 65, 0.08);
}

.hero-kicker {
  font-weight: 700;
  color: var(--accent-deep);
}

.status-chip {
  border: 1px solid rgba(239, 82, 65, 0.28);
  background: rgba(239, 82, 65, 0.1);
  color: var(--accent-deep);
  font-weight: 700;
}

.seed-meta-chip {
  border: 1px solid rgba(239, 82, 65, 0.16);
  background: rgba(239, 82, 65, 0.07);
  color: var(--accent-deep);
  font-weight: 600;
}

.journey-hero-seed {
  position: relative;
  overflow: hidden;
}

.journey-hero-seed::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(239, 82, 65, 0.35));
}

.journey-hero-seed h1 {
  max-width: 12ch;
  color: #111111;
}

.journey-hero-seed p {
  color: #2b2b29;
}

.hero-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
}

.hero-title-row .hero-subtitle {
  margin: 0;
  flex: 1 1 18rem;
  min-width: 12rem;
}

.hero-title-row h1 {
  flex: 0 1 auto;
  max-width: none;
  margin: 0;
}

.hero-subtitle {
  margin-bottom: 0;
  color: var(--muted);
}

.hero-meta-list {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}


.journey-list {
  margin: 0.65rem 0 0;
  padding-left: 1.05rem;
  color: var(--text);
}

.journey-list li + li {
  margin-top: 0.28rem;
}


.journey-accordion {
  --bs-accordion-border-radius: var(--radius-md);
  --bs-accordion-inner-border-radius: calc(var(--radius-md) - 1px);
  --bs-accordion-border-color: rgba(221, 221, 218, 0.95);
  --bs-accordion-btn-bg: rgba(255, 255, 255, 0.94);
  --bs-accordion-active-bg: rgba(255, 248, 247, 0.98);
  --bs-accordion-bg: rgba(255, 255, 255, 0.94);
  --bs-accordion-btn-color: var(--text);
  --bs-accordion-active-color: var(--text);
}

.journey-accordion .accordion-item {
  border: 1px solid rgba(221, 221, 218, 0.95);
  box-shadow: var(--shadow);
}

.journey-accordion .accordion-button {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 0.95rem var(--space-3);
}

.journey-accordion .accordion-button:focus {
  box-shadow: 0 0 0 0.18rem rgba(239, 82, 65, 0.14);
}

.journey-accordion .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.accordion-panel-title {
  display: inline-block;
  padding-right: 1rem;
}

.accordion-block-body {
  color: var(--text);
  min-width: 0;
}

.accordion-block-body p {
  margin: 0;
  line-height: var(--line-body);
}

.accordion-block-body .seed-footnote {
  margin-top: 0.7rem;
}


.collaboration-block-body {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.collaboration-summary {
  display: grid;
  gap: 0.55rem;
}

.collaboration-summary-text {
  color: var(--muted);
}

.collaboration-stats {
  margin-top: 0;
}

.collaboration-viz-shell {
  padding: 0.4rem 0 0.1rem;
}

.collaboration-viz {
  width: 100%;
  min-height: 320px;
}

.collaboration-viz-helper {
  margin-top: -0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.collaboration-viz-helper-key {
  color: var(--text);
  font-weight: 700;
}

.collaboration-viz svg {
  display: block;
  width: 100%;
  height: auto;
}

.collaboration-ranking {
  display: grid;
  gap: 0.55rem;
}

.collaboration-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(221, 221, 218, 0.9);
}

.collaboration-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
}

.collaboration-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.collaboration-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.collaboration-count {
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.collaboration-evidence {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .collaboration-viz {
    min-height: 280px;
  }

  .collaboration-line {
    flex-direction: column;
    gap: 0.12rem;
    align-items: flex-start;
  }
}


.collaboration-viz-shell {
  display: grid;
  gap: 0.9rem;
  padding: 0.2rem 0 0.1rem;
  min-width: 0;
  max-width: 100%;
}

.collaboration-viz-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.collaboration-viz-toolbar-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.collaboration-viz-toolbar-kicker {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collaboration-viz-toolbar-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}

.collaboration-image-share-button.is-busy {
  opacity: 0.68;
  pointer-events: none;
}

.collaboration-viz {
  width: 100%;
  min-height: 320px;
}

.collaboration-pill-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.1rem 0 0.35rem;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 82, 65, 0.35) transparent;
}

.collaboration-pill-strip::-webkit-scrollbar {
  height: 8px;
}

.collaboration-pill-strip::-webkit-scrollbar-track {
  background: transparent;
}

.collaboration-pill-strip::-webkit-scrollbar-thumb {
  background: rgba(239, 82, 65, 0.28);
  border-radius: 999px;
}

@media (max-width: 767px) {
  .collaboration-pill-strip {
    scrollbar-width: none;
    padding-bottom: 0.1rem;
  }

  .collaboration-pill-strip::-webkit-scrollbar {
    display: none;
  }
}

.collaboration-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.36rem 0.7rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 247, 0.86);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1;
}

.collaboration-pill.has-style-accent {
  padding-left: 0.88rem;
}

.collaboration-pill.has-style-accent::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--collaboration-style-accent, rgba(239, 82, 65, 0.4));
  transform: translateY(-50%);
}

.collaboration-pill.is-selected {
  border-color: rgba(239, 82, 65, 0.34);
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-deep);
}

.collaboration-pill-name {
  white-space: nowrap;
}

.collaboration-pill-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.collaboration-pill.is-selected .collaboration-pill-count {
  color: var(--accent-deep);
}

.collab-node.is-selected .bubble-core {
  fill: var(--bubble-selected-fill, rgba(239, 82, 65, 0.18));
  stroke-width: 3px;
  animation: collaborator-select-pulse 360ms ease-out;
}

.bubble-ring-track,
.bubble-ring-progress {
  pointer-events: none;
}

.bubble-meta {
  pointer-events: none;
  opacity: 0.78;
}

.bubble-count {
  letter-spacing: 0.02em;
}

.bubble-year {
  opacity: 0.62;
  letter-spacing: 0.04em;
}

.collab-node.is-selected .bubble-ring-track {
  stroke-opacity: 0.24;
}

.collab-node.is-selected .bubble-ring-progress {
  stroke-opacity: 1;
}

.collab-node.is-selected .bubble-meta {
  opacity: 0.92;
}

@keyframes collaborator-select-pulse {
  0% {
    stroke-width: 1.6px;
  }

  55% {
    stroke-width: 4.2px;
  }

  100% {
    stroke-width: 3px;
  }
}

.collaboration-detail-panel {
  min-height: 92px;
  min-width: 0;
  max-width: 100%;
}

.collaboration-detail-empty {
  padding: 0.9rem 1rem;
  border: 1px dashed rgba(239, 82, 65, 0.24);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(255, 248, 247, 0.72);
}

.collaboration-detail-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 247, 0.88);
  min-width: 0;
  max-width: 100%;
}

.collaboration-detail-topline {
  margin-bottom: 0.22rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaboration-detail-line {
  display: grid;
  gap: 0.12rem;
}

.collaboration-detail-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.collaboration-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.collaboration-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-text);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}

.collaboration-action-glyph {
  font-size: 0.95rem;
  line-height: 1;
}

.collaboration-action-button .svg-inline--fa,
.collaboration-action-button .fa-icon,
.collaboration-action-button svg {
  width: 1rem;
  height: 1rem;
  display: block;
  fill: currentColor;
}

.collaboration-action-button:hover,
.collaboration-action-button:focus {
  background: rgba(239, 82, 65, 0.1);
  border-color: rgba(239, 82, 65, 0.28);
  outline: none;
}

.collaboration-action-button.is-copied {
  background: rgba(239, 82, 65, 0.14);
  border-color: rgba(239, 82, 65, 0.36);
}

.collaboration-action-button.songscout-favorite-button.is-favorite {
  background: rgba(239, 82, 65, 0.14);
  border-color: rgba(239, 82, 65, 0.4);
  color: var(--accent-deep);
}

.collaboration-detail-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.collaboration-detail-count {
  color: var(--muted);
  font-size: 0.94rem;
}

.collaboration-detail-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.collaboration-detail-summarychips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.collaboration-detail-summary-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(239, 82, 65, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 600;
}

.collaboration-detail-summary-chip.is-signal,
.collaboration-release-detail-chip.is-signal {
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-text);
}

.collaboration-detail-release-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 0.7rem;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 82, 65, 0.35) transparent;
}

.collaboration-detail-release-strip::-webkit-scrollbar {
  height: 8px;
}

.collaboration-detail-release-strip::-webkit-scrollbar-track {
  background: transparent;
}

.collaboration-detail-release-strip::-webkit-scrollbar-thumb {
  background: rgba(239, 82, 65, 0.28);
  border-radius: 999px;
}

.collaboration-release-card {
  --release-style-accent: var(--accent-deep);
  --release-card-bg: rgba(255, 255, 255, 0.88);
  --release-card-hover-bg: rgba(255, 252, 250, 0.96);
  --release-card-selected-bg: rgba(239, 82, 65, 0.14);
  --release-card-border: rgba(239, 82, 65, 0.14);
  --release-card-border-strong: rgba(239, 82, 65, 0.34);
  --release-card-shadow: rgba(239, 82, 65, 0.10);
  position: relative;
  overflow: hidden;
  flex: 0 0 9rem;
  min-height: 10.6rem;
  padding: 0.86rem 0.82rem;
  border: 1px solid var(--release-card-border);
  border-radius: var(--radius-md);
  background: var(--release-card-bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
}

.collaboration-release-card.has-style-tint::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.18rem;
  background: var(--release-style-accent);
}

.collaboration-release-card:hover,
.collaboration-release-card:focus {
  border-color: var(--release-card-border-strong);
  background: var(--release-card-hover-bg);
  box-shadow: 0 10px 22px var(--release-card-shadow);
  outline: none;
}

.collaboration-release-card.is-selected {
  border-color: var(--release-card-border-strong);
  background: var(--release-card-selected-bg);
  box-shadow: 0 0 0 1px var(--release-card-border), 0 12px 26px var(--release-card-shadow);
}

.collaboration-release-kicker {
  margin-bottom: 0.28rem;
  color: var(--release-style-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaboration-release-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--text);
}

.collaboration-release-card-note {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  min-height: 1.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.collaboration-release-meta {
  margin-top: auto;
  padding-top: 0.32rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

html[data-theme="dark"] .collaboration-release-card:hover,
html[data-theme="dark"] .collaboration-release-card:focus,
html[data-theme="dark"] .collaboration-release-card.is-selected {
  color: var(--text);
}

html[data-theme="dark"] .collaboration-release-card:hover .collaboration-release-title,
html[data-theme="dark"] .collaboration-release-card:focus .collaboration-release-title,
html[data-theme="dark"] .collaboration-release-card.is-selected .collaboration-release-title {
  color: var(--text);
}

html[data-theme="dark"] .collaboration-release-card:hover .collaboration-release-card-note,
html[data-theme="dark"] .collaboration-release-card:hover .collaboration-release-meta,
html[data-theme="dark"] .collaboration-release-card:focus .collaboration-release-card-note,
html[data-theme="dark"] .collaboration-release-card:focus .collaboration-release-meta,
html[data-theme="dark"] .collaboration-release-card.is-selected .collaboration-release-card-note,
html[data-theme="dark"] .collaboration-release-card.is-selected .collaboration-release-meta {
  color: var(--muted);
}

.collaboration-release-detail-panel {
  margin-top: 0.8rem;
  min-height: clamp(16rem, 34vw, 20rem);
  overflow-anchor: none;
}

.collaboration-release-detail-panel .collaboration-detail-empty,
.collaboration-release-detail-panel .collaboration-release-detail-card {
  min-height: clamp(16rem, 34vw, 20rem);
}

.collaboration-release-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  overflow: visible;
  margin-top: 0.65rem;
  padding: 0.05rem 0 0;
}

.collaboration-release-pill {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 2rem;
  max-width: min(18rem, 100%);
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 999px;
  background: var(--subtle-surface-strong);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.2;
}

.collaboration-release-pill:hover,
.collaboration-release-pill:focus {
  border-color: rgba(239, 82, 65, 0.3);
  background: var(--accent-surface-strong);
  outline: none;
}

.collaboration-release-pill.is-selected {
  border-color: rgba(239, 82, 65, 0.36);
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-text);
}

.collaboration-release-pill-name {
  white-space: normal;
  overflow-wrap: anywhere;
}

.collaboration-release-pill-meta {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.collaboration-release-detail-card {
  container-type: inline-size;
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: var(--detail-surface);
}

.collaboration-release-detail-topline {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaboration-release-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.collaboration-release-detail-copy {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.collaboration-release-detail-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.22;
  min-height: 2.65rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.collaboration-release-detail-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 1.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaboration-release-detail-label {
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaboration-release-detail-lineitem {
  display: grid;
  grid-template-columns: minmax(6.8rem, 7.8rem) minmax(0, 1fr);
  align-items: start;
  column-gap: 0.5rem;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.collaboration-release-detail-slots {
  display: grid;
  gap: 0.32rem;
  min-height: calc(5 * 1.72rem + 4 * 0.32rem);
}

.collaboration-release-detail-slot {
  min-height: 1.72rem;
}

.collaboration-release-detail-slot.is-chiprow {
  min-height: 2rem;
}

.collaboration-release-detail-slot.is-empty {
  opacity: 1;
}

.collaboration-release-detail-slot-placeholder {
  display: block;
  min-height: inherit;
}

.collaboration-release-detail-lineitem.is-placeholder .collaboration-release-detail-label,
.collaboration-release-detail-value.is-placeholder {
  color: var(--muted);
}

.collaboration-release-detail-lineitem.is-placeholder .collaboration-release-detail-value {
  font-style: normal;
}

.collaboration-release-detail-slot .collaboration-release-detail-lineitem,
.collaboration-release-detail-slot .collaboration-release-detail-chiprow {
  margin-top: 0;
}

.collaboration-release-detail-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.collaboration-release-detail-link {
  color: var(--accent-text);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.collaboration-release-detail-link:hover,
.collaboration-release-detail-link:focus-visible {
  text-decoration: underline;
}

.collaboration-release-detail-footnote {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaboration-release-detail-value {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collaboration-release-detail-chiprow {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  max-height: 1.75rem;
  overflow: hidden;
}

.collaboration-release-detail-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.14rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 82, 65, 0.14);
  background: var(--subtle-surface-strong);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.collaboration-detail-summary-chip.is-tone,
.collaboration-release-detail-chip.is-tone {
  color: var(--chip-tone-fg);
  border-color: var(--chip-tone-border);
  background: var(--chip-tone-bg);
}

.tone-jazz-core {
  --chip-tone-bg: rgba(217, 106, 92, 0.12);
  --chip-tone-border: rgba(217, 106, 92, 0.22);
  --chip-tone-fg: #b24436;
}

.tone-jazz-hot {
  --chip-tone-bg: rgba(216, 132, 78, 0.14);
  --chip-tone-border: rgba(216, 132, 78, 0.24);
  --chip-tone-fg: #a55e27;
}

.tone-jazz-cool {
  --chip-tone-bg: rgba(105, 141, 216, 0.14);
  --chip-tone-border: rgba(105, 141, 216, 0.24);
  --chip-tone-fg: #395ea9;
}

.tone-jazz-swing {
  --chip-tone-bg: rgba(181, 138, 47, 0.14);
  --chip-tone-border: rgba(181, 138, 47, 0.24);
  --chip-tone-fg: #8a6720;
}

.tone-blues {
  --chip-tone-bg: rgba(79, 121, 184, 0.14);
  --chip-tone-border: rgba(79, 121, 184, 0.24);
  --chip-tone-fg: #315b98;
}

.tone-soul {
  --chip-tone-bg: rgba(11, 143, 122, 0.14);
  --chip-tone-border: rgba(11, 143, 122, 0.22);
  --chip-tone-fg: #006f60;
}

.tone-country,
.tone-folk {
  --chip-tone-bg: rgba(138, 106, 82, 0.12);
  --chip-tone-border: rgba(138, 106, 82, 0.2);
  --chip-tone-fg: #6b4f3d;
}

.tone-reggae {
  --chip-tone-bg: rgba(110, 155, 65, 0.14);
  --chip-tone-border: rgba(110, 155, 65, 0.22);
  --chip-tone-fg: #4f7428;
}

.tone-rock {
  --chip-tone-bg: rgba(182, 94, 83, 0.14);
  --chip-tone-border: rgba(182, 94, 83, 0.24);
  --chip-tone-fg: #8c4036;
}

.tone-classical {
  --chip-tone-bg: rgba(123, 108, 178, 0.14);
  --chip-tone-border: rgba(123, 108, 178, 0.24);
  --chip-tone-fg: #5f4ca2;
}

.tone-electronic {
  --chip-tone-bg: rgba(93, 124, 255, 0.14);
  --chip-tone-border: rgba(93, 124, 255, 0.24);
  --chip-tone-fg: #3d5ed3;
}

.tone-latin {
  --chip-tone-bg: rgba(208, 107, 57, 0.14);
  --chip-tone-border: rgba(208, 107, 57, 0.22);
  --chip-tone-fg: #a64d21;
}

.tone-pop {
  --chip-tone-bg: rgba(202, 105, 162, 0.14);
  --chip-tone-border: rgba(202, 105, 162, 0.24);
  --chip-tone-fg: #a34d7f;
}

.tone-world {
  --chip-tone-bg: rgba(93, 154, 114, 0.14);
  --chip-tone-border: rgba(93, 154, 114, 0.22);
  --chip-tone-fg: #3f7d58;
}

.collaboration-release-enrichment {
  min-height: calc(4 * 1.72rem + 3 * 0.32rem + 0.38rem);
}

.collaboration-release-enrichment-group {
  display: grid;
  gap: 0.32rem;
  grid-auto-rows: minmax(1.72rem, auto);
  min-height: 100%;
  padding-top: 0.38rem;
  border-top: 1px solid rgba(239, 82, 65, 0.1);
}

.collaboration-release-enrichment-slot {
  display: flex;
  align-items: flex-start;
  min-height: 1.72rem;
}

.collaboration-release-enrichment-line {
  margin-top: 0;
}

.collaboration-release-enrichment-status {
  display: grid;
  gap: 0.45rem;
  min-height: 100%;
  box-sizing: border-box;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 82, 65, 0.14);
  background: var(--accent-surface);
}

.collaboration-release-enrichment-status.is-loading {
  position: relative;
  overflow: hidden;
}

.collaboration-release-enrichment-status.is-error {
  color: var(--muted);
  background: var(--detail-surface);
}

.collaboration-release-enrichment-kicker {
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@container (min-width: 52rem) {
  .collaboration-release-enrichment {
    min-height: calc(2 * 1.72rem + 0.32rem + 0.38rem);
  }

  .collaboration-release-enrichment-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.8rem;
    align-items: start;
  }
}

.discography-browser-shell {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.discography-reset-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--detail-surface) 92%, var(--accent-surface-strong) 8%);
}

.discography-reset-banner.is-strong {
  border-color: rgba(239, 82, 65, 0.24);
  background: color-mix(in srgb, var(--detail-surface) 86%, var(--accent-surface-strong) 14%);
}

.discography-reset-copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.discography-reset-note {
  margin: 0;
  max-width: 42rem;
}

.discography-reset-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.discography-reset-button:hover,
.discography-reset-button:focus-visible {
  border-color: rgba(239, 82, 65, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.discography-controls-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: var(--detail-surface);
  min-width: 0;
  max-width: 100%;
}

.discography-timeline-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: var(--detail-surface);
  min-width: 0;
  max-width: 100%;
}

.discography-unknown-card {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: var(--detail-surface);
  min-width: 0;
  max-width: 100%;
  padding-bottom: 1rem;
}

.discography-unknown-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.discography-unknown-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.discography-unknown-content {
  margin-top: 0.7rem;
}

.discography-unknown-pill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.discography-unknown-pill-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}

.discography-unknown-pill {
  max-width: 18rem;
}

.discography-unknown-pill-expanded {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 3;
  display: grid;
  align-items: stretch;
  gap: 0.55rem;
  width: min(34rem, calc(100vw - 1rem));
  min-width: min(19rem, calc(100vw - 1rem));
  max-width: min(34rem, calc(100vw - 1rem));
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 82, 65, 0.22);
  background: var(--subtle-surface-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  color: var(--text);
  text-align: left;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.discography-unknown-pill-expanded.collaboration-release-detail-card {
  width: min(34rem, calc(100vw - 1rem));
  min-width: min(19rem, calc(100vw - 1rem));
  max-width: min(34rem, calc(100vw - 1rem));
}

.discography-unknown-pill-expanded .collaboration-release-detail-title {
  min-height: 0;
}

.discography-unknown-pill-expanded .collaboration-release-enrichment {
  min-height: auto;
}

.discography-unknown-pill-expanded .collaboration-release-detail-slots {
  min-height: 0;
}

.discography-unknown-pill-item.is-flip-up .discography-unknown-pill-expanded {
  top: auto;
  bottom: calc(100% + 0.45rem);
}

.discography-unknown-pill-item.is-align-right .discography-unknown-pill-expanded {
  left: auto;
  right: 0;
}

.discography-unknown-pill-title {
  font-size: 1rem;
  line-height: 1.35;
}

@media (max-width: 767px) {
  .discography-reset-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .discography-reset-button {
    width: 100%;
  }

  .discography-browser-shell,
  .discography-unknown-card,
  .discography-unknown-content,
  .discography-unknown-pill-strip {
    overflow: visible;
  }

  .discography-unknown-pill-item.is-selected {
    display: flex;
    flex: 1 0 100%;
    width: 100%;
  }

  .discography-unknown-pill-item.is-selected .discography-unknown-pill {
    max-width: min(18rem, 100%);
  }

  .discography-unknown-pill-expanded,
  .discography-unknown-pill-expanded.collaboration-release-detail-card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 0.6rem;
    padding: 0.85rem 0.9rem;
  }
}

.discography-control-group-timeline {
  margin-bottom: 0.7rem;
}

.discography-filter-note {
  margin: 0.38rem 0 0;
  max-width: 58rem;
}

.discography-control-group-timeline-bottom {
  margin-top: 0.7rem;
  margin-bottom: 0;
}

.discography-timeline-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  padding-bottom: 0.3rem;
  scroll-behavior: auto;
  scroll-snap-type: x proximity;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 82, 65, 0.35) transparent;
  overflow-anchor: none;
}

.discography-timeline-scroll.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.discography-timeline-scroll::-webkit-scrollbar {
  height: 8px;
}

.discography-timeline-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.discography-timeline-scroll::-webkit-scrollbar-thumb {
  background: rgba(239, 82, 65, 0.28);
  border-radius: 999px;
}

.discography-timeline-track {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  width: max-content;
  min-width: max-content;
  padding-right: 0.9rem;
}

.artist-discography-browser {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.discography-timeline-year-label {
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.discography-year-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  width: 16.5rem;
  min-width: 16.5rem;
  padding: 0.7rem;
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: var(--radius-md);
  background: var(--subtle-surface-strong);
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.discography-year-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.discography-year-card-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.discography-year-card-body {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  min-height: 20rem;
  max-height: 20rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.2rem;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 82, 65, 0.3) transparent;
}

.discography-year-card-body::-webkit-scrollbar {
  width: 8px;
}

.discography-year-card-body::-webkit-scrollbar-track {
  background: transparent;
}

.discography-year-card-body::-webkit-scrollbar-thumb {
  background: rgba(239, 82, 65, 0.24);
  border-radius: 999px;
}

.discography-release-entry {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(239, 82, 65, 0.12);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--detail-surface);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.discography-release-entry.type-album { border-left-color: #ef5241; }
.discography-release-entry.type-ep { border-left-color: #d68c3f; }
.discography-release-entry.type-single { border-left-color: #4c81d9; }
.discography-release-entry.type-live { border-left-color: #b56ad9; }
.discography-release-entry.type-compilation { border-left-color: #7a7f8d; }
.discography-release-entry.type-release { border-left-color: #6f8f59; }

.discography-release-entry-head {
  display: block;
}

.discography-release-entry-copy {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.discography-release-entry-title {
  display: block;
  color: var(--text-strong);
  font-size: 0.92rem;
  line-height: 1.25;
}

.discography-release-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.discography-release-entry-badge,
.discography-release-entry-flag,
.discography-release-entry-year,
.discography-release-entry-scope {
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discography-release-entry-badge {
  background: var(--accent-surface-strong);
  color: var(--accent-text);
}

.discography-release-entry-scope {
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-text);
}

.discography-release-entry-flag {
  background: var(--subtle-surface-strong);
  color: var(--muted);
}

.discography-release-entry-year {
  padding-left: 0;
  color: var(--muted);
}

.discography-release-entry-credits,
.discography-release-entry-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.3;
}

.discography-release-entry-credits {
  font-weight: 600;
}

.discography-release-entry-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.discography-release-entry-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.08rem 0.42rem;
  border: 1px solid rgba(239, 82, 65, 0.12);
  border-radius: 999px;
  background: var(--subtle-surface-strong);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
}

.discography-release-entry-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.05rem;
}

.discography-release-entry-links {
  font-size: 0.8rem;
}

.discography-control-group + .discography-control-group {
  margin-top: 0.8rem;
}

.discography-control-kicker {
  margin-bottom: 0.34rem;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discography-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discography-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 2rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 999px;
  background: var(--subtle-surface-strong);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.1;
}

.discography-filter-pill:hover,
.discography-filter-pill:focus {
  border-color: rgba(239, 82, 65, 0.3);
  background: var(--accent-surface-strong);
  outline: none;
}

.discography-filter-pill.is-selected {
  border-color: rgba(239, 82, 65, 0.36);
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-text);
}

.discography-filter-label {
  font-weight: 600;
}

.discography-filter-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

@media (min-width: 980px) {
  .discography-timeline-card {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.95rem;
    row-gap: 0.8rem;
    align-items: start;
  }

  .discography-control-group-timeline:not(.discography-control-group-timeline-bottom) {
    flex: 1 1 17rem;
    min-width: 0;
    margin-bottom: 0;
  }

  .discography-control-group-timeline-bottom,
  .discography-timeline-scroll {
    flex: 1 1 100%;
    min-width: 0;
  }

  .discography-control-group-timeline-bottom {
    margin-top: 0;
  }

  .discography-filter-note {
    max-width: none;
  }
}


.collaboration-empty-card {
  padding: 1rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 248, 247, 0.78);
}

.collaboration-empty-kicker {
  margin-bottom: 0.22rem;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaboration-empty-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.08;
}

.collaboration-empty-card p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.collaboration-empty-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.collaboration-empty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.18rem 0.58rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.status-error.collaboration-empty-card {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.86);
}



/* Theme foundation */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-deep: #ececec;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-solid: #ffffff;
  --border: #d8d8d8;
  --text: #111111;
  --muted: #5f5f5c;
  --shadow: 0 6px 18px rgba(17, 17, 17, 0.035);
  --page-background: linear-gradient(180deg, #ffffff 0%, #ffffff 12%, var(--bg-soft) 42%, var(--bg-deep) 100%);
  --surface-hero: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.94));
  --surface-seed: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 246, 0.94));
  --surface-lane: linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(244, 244, 244, 0.94));
  --hero-border: rgba(17, 17, 17, 0.08);
  --hero-shadow: 0 8px 22px rgba(17, 17, 17, 0.045);
  --journey-top-fade: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 246, 246, 0.86) 42%, rgba(246, 246, 246, 0) 100%);
  --input-bg: #f7f7f5;
  --ghost-bg: rgba(255, 255, 255, 0.88);
  --badge-bg: rgba(255, 255, 255, 0.72);
  --sheet-overlay-bg: rgba(0, 0, 0, 0.16);
  --subtle-surface: #fcfcfa;
  --subtle-surface-strong: rgba(255, 255, 255, 0.9);
  --status-neutral-bg: rgba(17, 17, 17, 0.04);
  --status-neutral-border: rgba(17, 17, 17, 0.1);
  --theme-button-bg: rgba(255, 255, 255, 0.9);
  --theme-button-active-bg: rgba(239, 82, 65, 0.1);
  --theme-button-active-border: rgba(239, 82, 65, 0.36);
  --chart-node-fill: rgba(239, 82, 65, 0.12);
  --chart-node-stroke: #ef5241;
  --chart-node-text: #111111;
  --accent-surface: rgba(255, 248, 247, 0.86);
  --accent-surface-strong: rgba(255, 248, 247, 0.92);
  --accent-surface-selected: rgba(239, 82, 65, 0.12);
  --accent-border-soft: rgba(239, 82, 65, 0.18);
  --accent-border-strong: rgba(239, 82, 65, 0.32);
  --accent-text: var(--accent-deep);
  --detail-surface: rgba(255, 248, 247, 0.88);
  --detail-surface-muted: rgba(255, 248, 247, 0.72);
  --top-action-home-bg: rgba(239, 82, 65, 0.12);
  --top-action-home-border: rgba(239, 82, 65, 0.24);
  --top-action-home-color: #c93c2d;
  --top-action-home-bg-hover: rgba(239, 82, 65, 0.18);
  --top-action-home-border-hover: rgba(239, 82, 65, 0.34);
  --top-action-home-color-hover: #ab3124;
  --top-action-history-bg: rgba(56, 118, 255, 0.11);
  --top-action-history-border: rgba(56, 118, 255, 0.24);
  --top-action-history-color: #285cc7;
  --top-action-history-bg-hover: rgba(56, 118, 255, 0.18);
  --top-action-history-border-hover: rgba(56, 118, 255, 0.34);
  --top-action-history-color-hover: #1f4daa;
  --top-action-account-bg: rgba(0, 143, 122, 0.12);
  --top-action-account-border: rgba(0, 143, 122, 0.24);
  --top-action-account-color: #006f60;
  --top-action-account-bg-hover: rgba(0, 143, 122, 0.19);
  --top-action-account-border-hover: rgba(0, 143, 122, 0.34);
  --top-action-account-color-hover: #00584d;
}

html[data-theme="dark"] {
  --bg: #121212;
  --bg-soft: #171717;
  --bg-deep: #1e1e1e;
  --panel: rgba(28, 28, 28, 0.94);
  --panel-solid: #1a1a1a;
  --border: #313131;
  --text: #f4f4f4;
  --muted: #b2b2ae;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  --page-background: linear-gradient(180deg, #000000 0%, #000000 12%, var(--bg-soft) 42%, var(--bg-deep) 100%);
  --surface-hero: linear-gradient(180deg, rgba(34, 34, 34, 0.98), rgba(24, 24, 24, 0.96));
  --surface-seed: linear-gradient(180deg, rgba(36, 36, 36, 0.98), rgba(25, 25, 25, 0.96));
  --surface-lane: linear-gradient(180deg, rgba(31, 31, 31, 0.98), rgba(24, 24, 24, 0.96));
  --hero-border: rgba(255, 255, 255, 0.08);
  --hero-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  --journey-top-fade: linear-gradient(180deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.86) 42%, rgba(0, 0, 0, 0) 100%);
  --input-bg: #181818;
  --ghost-bg: rgba(31, 31, 31, 0.92);
  --badge-bg: rgba(28, 28, 28, 0.82);
  --sheet-overlay-bg: rgba(0, 0, 0, 0.42);
  --subtle-surface: #1c1c1c;
  --subtle-surface-strong: rgba(34, 34, 34, 0.94);
  --status-neutral-bg: rgba(255, 255, 255, 0.06);
  --status-neutral-border: rgba(255, 255, 255, 0.12);
  --theme-button-bg: rgba(32, 32, 32, 0.94);
  --theme-button-active-bg: rgba(239, 82, 65, 0.16);
  --theme-button-active-border: rgba(239, 82, 65, 0.42);
  --chart-node-fill: rgba(239, 82, 65, 0.18);
  --chart-node-stroke: #ff6d5c;
  --chart-node-text: #f4f4f4;
  --accent-surface: rgba(54, 30, 26, 0.7);
  --accent-surface-strong: rgba(61, 34, 29, 0.84);
  --accent-surface-selected: rgba(239, 82, 65, 0.2);
  --accent-border-soft: rgba(239, 82, 65, 0.3);
  --accent-border-strong: rgba(239, 82, 65, 0.44);
  --accent-text: #ff8b7e;
  --detail-surface: rgba(50, 30, 26, 0.78);
  --detail-surface-muted: rgba(39, 26, 23, 0.72);
  --top-action-home-bg: rgba(255, 109, 92, 0.18);
  --top-action-home-border: rgba(255, 109, 92, 0.34);
  --top-action-home-color: #ffb0a7;
  --top-action-home-bg-hover: rgba(255, 109, 92, 0.26);
  --top-action-home-border-hover: rgba(255, 109, 92, 0.46);
  --top-action-home-color-hover: #ffd0ca;
  --top-action-history-bg: rgba(98, 160, 255, 0.18);
  --top-action-history-border: rgba(98, 160, 255, 0.32);
  --top-action-history-color: #b9d3ff;
  --top-action-history-bg-hover: rgba(98, 160, 255, 0.27);
  --top-action-history-border-hover: rgba(98, 160, 255, 0.42);
  --top-action-history-color-hover: #d8e6ff;
  --top-action-account-bg: rgba(80, 201, 177, 0.18);
  --top-action-account-border: rgba(80, 201, 177, 0.34);
  --top-action-account-color: #a5eadc;
  --top-action-account-bg-hover: rgba(80, 201, 177, 0.27);
  --top-action-account-border-hover: rgba(80, 201, 177, 0.44);
  --top-action-account-color-hover: #c9f4ec;
}

html,
body {
  background: var(--page-background);
}

.journey-hero {
  background: var(--surface-hero);
  border-color: var(--hero-border);
  box-shadow: var(--hero-shadow);
}

.home-landing-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .home-landing-search-panel::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 82, 65, 0.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(98, 160, 255, 0.2), transparent 32%),
    radial-gradient(circle at 56% 100%, rgba(243, 187, 87, 0.14), transparent 38%);
}

html[data-theme="dark"] .home-live-search-results {
  border-color: rgba(239, 82, 65, 0.2);
  background: rgba(28, 28, 28, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .home-live-search-result:hover,
html[data-theme="dark"] .home-live-search-result.is-active {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.1);
}

html[data-theme="dark"] .home-live-search-result-tag {
  border-color: rgba(239, 82, 65, 0.2);
  background: rgba(239, 82, 65, 0.12);
  color: #ff9d91;
}

.kind-seed {
  background: var(--surface-seed);
}

.kind-lane {
  background: var(--surface-lane);
}

.app-sheet,
.journey-card,
.journey-accordion .accordion-item {
  background: var(--panel);
  border-color: var(--border);
}

.form-control,
.selectize-input,
.seed-meta-chip,
.sheet-body .radio,
.settings-card,
.settings-placeholder-row,
.orientation-card {
  background: var(--subtle-surface);
  border-color: var(--border);
  color: var(--text);
}

.ghost-button.btn,
.collaboration-action-button,
.collaboration-empty-chip,
.status-error.collaboration-empty-card {
  background: var(--ghost-bg);
}

.collaboration-pill,
.collaboration-detail-card,
.collaboration-detail-empty,
.collaboration-empty-card {
  background: var(--detail-surface);
}

.collaboration-pill,
.collaboration-detail-card,
.collaboration-detail-empty,
.collaboration-empty-card,
.collaboration-action-button,
.collaboration-release-card,
.collaboration-empty-chip {
  border-color: var(--accent-border-soft);
}

html[data-theme="dark"] .collaboration-release-card {
  --release-card-bg: var(--detail-surface-muted);
  --release-card-hover-bg: rgba(66, 40, 35, 0.92);
  --release-card-selected-bg: rgba(239, 82, 65, 0.22);
  --release-card-border: rgba(239, 82, 65, 0.24);
  --release-card-border-strong: rgba(255, 109, 92, 0.4);
  --release-card-shadow: rgba(0, 0, 0, 0.24);
}

.collaboration-pill.is-selected,
.status-chip,
.seed-meta-chip {
  background: var(--accent-surface-selected);
  border-color: var(--accent-border-strong);
  color: var(--accent-text);
}

.collaboration-rank {
  background: var(--accent-surface-selected);
  color: var(--accent-text);
}

.collaboration-count,
.collaboration-release-kicker,
.collaboration-empty-kicker,
.hero-kicker,
.status-chip,
.seed-meta-chip,
.collaboration-pill.is-selected .collaboration-pill-count {
  color: var(--accent-text);
}

.sheet-overlay,
.orientation-guard {
  background: var(--sheet-overlay-bg);
}

.selectize-input input,
.form-control::placeholder {
  color: var(--muted);
}

.status-blocked .status-chip,
.status-no_match .status-chip,
.status-resolver_error .status-chip {
  background: var(--status-neutral-bg);
  border-color: var(--status-neutral-border);
  color: var(--text);
}

.journey-hero-seed h1,
.journey-hero-seed p {
  color: var(--text);
}

.journey-hero-seed p,
.hero-subtitle,
.seed-subtitle,
.seed-footnote,
.settings-card p,
.settings-placeholder-row span:last-child {
  color: var(--muted);
}

.journey-accordion {
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-bg: var(--panel);
  --bs-accordion-active-bg: var(--surface-seed);
  --bs-accordion-bg: var(--panel);
}

.theme-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: 1rem;
}

.theme-choice-button {
  min-height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--theme-button-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.theme-choice-button.is-active {
  border-color: var(--theme-button-active-border);
  background: var(--theme-button-active-bg);
  color: var(--accent-deep);
}

.theme-choice-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(239, 82, 65, 0.16);
}

html[data-theme="dark"] .brand-song {
  color: #f4f4f4;
}

html[data-theme="dark"] .collaboration-pill-count,
html[data-theme="dark"] .collaboration-detail-count,
html[data-theme="dark"] .collaboration-release-meta,
html[data-theme="dark"] .seed-footnote,
html[data-theme="dark"] .seed-subtitle,
html[data-theme="dark"] .hero-subtitle {
  color: var(--muted);
}

html[data-theme="dark"] .collaboration-detail-summary-chip {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(46, 36, 34, 0.88);
  color: #f4f4f4;
}

html[data-theme="dark"] .collaboration-detail-summary-chip.is-signal,
html[data-theme="dark"] .collaboration-release-detail-chip.is-signal {
  border-color: rgba(239, 82, 65, 0.22);
  background: rgba(239, 82, 65, 0.16);
  color: #ffd9d2;
}

html[data-theme="dark"] .tone-jazz-core {
  --chip-tone-bg: rgba(255, 139, 126, 0.18);
  --chip-tone-border: rgba(255, 139, 126, 0.3);
  --chip-tone-fg: #ffd0ca;
}

html[data-theme="dark"] .tone-jazz-hot {
  --chip-tone-bg: rgba(240, 163, 107, 0.18);
  --chip-tone-border: rgba(240, 163, 107, 0.3);
  --chip-tone-fg: #ffd7b9;
}

html[data-theme="dark"] .tone-jazz-cool {
  --chip-tone-bg: rgba(142, 180, 255, 0.18);
  --chip-tone-border: rgba(142, 180, 255, 0.3);
  --chip-tone-fg: #d8e5ff;
}

html[data-theme="dark"] .tone-jazz-swing {
  --chip-tone-bg: rgba(217, 177, 94, 0.18);
  --chip-tone-border: rgba(217, 177, 94, 0.3);
  --chip-tone-fg: #ffe0a9;
}

html[data-theme="dark"] .tone-blues {
  --chip-tone-bg: rgba(111, 159, 228, 0.18);
  --chip-tone-border: rgba(111, 159, 228, 0.3);
  --chip-tone-fg: #d2e2ff;
}

html[data-theme="dark"] .tone-soul {
  --chip-tone-bg: rgba(85, 201, 177, 0.18);
  --chip-tone-border: rgba(85, 201, 177, 0.28);
  --chip-tone-fg: #cffff1;
}

html[data-theme="dark"] .tone-country,
html[data-theme="dark"] .tone-folk {
  --chip-tone-bg: rgba(193, 154, 125, 0.18);
  --chip-tone-border: rgba(193, 154, 125, 0.28);
  --chip-tone-fg: #f0d5c1;
}

html[data-theme="dark"] .tone-reggae {
  --chip-tone-bg: rgba(159, 202, 98, 0.18);
  --chip-tone-border: rgba(159, 202, 98, 0.28);
  --chip-tone-fg: #e3f6bf;
}

html[data-theme="dark"] .tone-rock {
  --chip-tone-bg: rgba(222, 140, 132, 0.18);
  --chip-tone-border: rgba(222, 140, 132, 0.3);
  --chip-tone-fg: #ffd0ca;
}

html[data-theme="dark"] .tone-classical {
  --chip-tone-bg: rgba(178, 154, 240, 0.18);
  --chip-tone-border: rgba(178, 154, 240, 0.28);
  --chip-tone-fg: #e4dcff;
}

html[data-theme="dark"] .tone-electronic {
  --chip-tone-bg: rgba(139, 160, 255, 0.18);
  --chip-tone-border: rgba(139, 160, 255, 0.3);
  --chip-tone-fg: #dde5ff;
}

html[data-theme="dark"] .tone-latin {
  --chip-tone-bg: rgba(240, 155, 103, 0.18);
  --chip-tone-border: rgba(240, 155, 103, 0.3);
  --chip-tone-fg: #ffd7be;
}

html[data-theme="dark"] .tone-pop {
  --chip-tone-bg: rgba(238, 147, 200, 0.18);
  --chip-tone-border: rgba(238, 147, 200, 0.3);
  --chip-tone-fg: #ffd8f1;
}

html[data-theme="dark"] .tone-world {
  --chip-tone-bg: rgba(124, 199, 155, 0.18);
  --chip-tone-border: rgba(124, 199, 155, 0.28);
  --chip-tone-fg: #d7f5e3;
}

html[data-theme="dark"] .collaboration-empty-card {
  background: rgba(37, 28, 26, 0.82);
}
.core-variant-block-body {
  display: grid;
  gap: 1rem;
}

.core-variant-summary-row {
  margin-bottom: 0.2rem;
}

.core-variant-catalog-tabs {
  display: grid;
  gap: 0.8rem;
}

.core-variant-catalog-tablist {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.core-variant-tab-button {
  border: 1px solid rgba(239, 82, 65, 0.2);
  color: var(--text);
  background: rgba(239, 82, 65, 0.08);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.1;
  font-weight: 600;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.core-variant-tab-button:hover {
  border-color: rgba(239, 82, 65, 0.35);
  background: rgba(239, 82, 65, 0.14);
}

.core-variant-tab-button.is-selected {
  color: var(--text-strong);
  background: rgba(239, 82, 65, 0.2);
  border-color: rgba(239, 82, 65, 0.45);
}

.core-variant-catalog-panels {
  display: block;
}

.core-variant-tab-panel {
  display: none;
}

.core-variant-tab-panel.is-active {
  display: block;
}

.core-variant-section {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  min-height: clamp(42rem, calc(100svh - 9rem), 56rem);
  align-content: start;
  border: 1px solid rgba(239, 82, 65, 0.12);
  border-radius: 1rem;
  background: var(--detail-surface);
}

.core-variant-section .seed-footnote {
  margin: 0;
}

@media (max-width: 767px) {
  .core-variant-section {
    min-height: clamp(32rem, calc(100svh - var(--mobile-top-bar-height) - 6rem), 44rem);
  }
}
.core-catalog-tree-browser {
  display: grid;
}

.core-catalog-tree-shell {
  display: grid;
  gap: 0.85rem;
}

.core-catalog-tree-hint {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.01em;
}

.core-catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.core-catalog-tree-stage {
  position: relative;
  width: min(100%, 72rem);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  border: 1px solid rgba(239, 82, 65, 0.1);
  border-radius: 1rem;
  background: var(--subtle-surface-strong);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.core-catalog-tree-stage.is-panning {
  cursor: grabbing;
}

.core-catalog-tree-stage.is-mobile-dense {
  min-height: 32rem;
}

.core-catalog-tree-stage.is-mobile-very-dense {
  min-height: 38rem;
}

@media (min-width: 768px) {
  .core-catalog-tree-stage {
    aspect-ratio: auto;
    height: clamp(22rem, 44vw, 38rem);
    min-height: clamp(22rem, 44vw, 38rem);
  }
}

.core-catalog-tree-canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.core-catalog-tree-svg {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.tree-touch-hint {
  position: absolute;
  left: 50%;
  bottom: 0.9rem;
  transform: translateX(-50%);
  max-width: min(86%, 18rem);
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.78);
  color: #fff8f4;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 3;
}

html[data-theme="light"] .tree-touch-hint {
  background: rgba(28, 26, 25, 0.78);
}

.tree-viewport-controls {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 0.7rem;
  left: 0.7rem;
  width: auto;
  height: 2.9rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 2;
}

.tree-viewport-control-button {
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 82, 65, 0.24);
  border-radius: 999px;
  background: rgba(46, 28, 24, 0.72);
  color: #fff8f4;
  cursor: pointer;
  pointer-events: auto;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.tree-viewport-zoom-readout {
  width: 2.15rem;
  height: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 24, 21, 0.72);
  border: 1px solid rgba(239, 82, 65, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  color: rgba(255, 248, 244, 0.92);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  flex: 0 0 auto;
}

.tree-viewport-control-icon {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tree-viewport-control-button:hover,
.tree-viewport-control-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  background: rgba(63, 34, 28, 0.9);
  border-color: rgba(255, 109, 92, 0.42);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

html[data-theme="light"] .tree-viewport-controls {
  background: rgba(28, 26, 25, 0.12);
  border-color: rgba(17, 17, 17, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .tree-viewport-control-button {
  background: rgba(48, 32, 28, 0.78);
}

html[data-theme="light"] .tree-viewport-zoom-readout {
  background: rgba(48, 32, 28, 0.72);
  border-color: rgba(17, 17, 17, 0.08);
}

@media (hover: none) and (pointer: coarse) {
  .tree-viewport-controls {
    top: auto;
    right: auto;
    bottom: 0.45rem;
    left: 0.45rem;
    width: auto;
    height: 2.2rem;
    gap: 0.38rem;
    padding: 0.2rem 0.32rem;
    background: rgba(23, 23, 23, 0.08);
    border-color: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .tree-viewport-control-button {
    width: 1.82rem;
    height: 1.82rem;
    min-height: 1.82rem;
    padding: 0;
    border-color: rgba(239, 82, 65, 0.16);
    background: rgba(46, 28, 24, 0.52);
  }

  .tree-viewport-zoom-readout {
    width: 1.82rem;
    height: 1.82rem;
    min-height: 1.82rem;
    font-size: 0.5rem;
    letter-spacing: 0.03em;
    background: rgba(34, 24, 21, 0.52);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .tree-viewport-control-icon {
    width: 0.88rem;
    height: 0.88rem;
  }

  html[data-theme="light"] .tree-viewport-controls {
    background: rgba(28, 26, 25, 0.06);
    border-color: rgba(17, 17, 17, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  html[data-theme="light"] .tree-viewport-control-button {
    background: rgba(48, 32, 28, 0.46);
    border-color: rgba(239, 82, 65, 0.14);
  }

  html[data-theme="light"] .tree-viewport-zoom-readout {
    background: rgba(48, 32, 28, 0.34);
    border-color: rgba(17, 17, 17, 0.05);
  }
}

.core-catalog-tree-link {
  fill: none;
}

.core-catalog-tree-link-extension.is-selected {
  stroke-opacity: 0.95;
  stroke-width: 2.2;
}

.core-catalog-tree-label {
  fill: var(--text-strong);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.core-catalog-tree-label.is-selected {
  font-weight: 700;
}

.core-catalog-tree-node.is-selected {
  stroke: var(--panel-solid);
  stroke-width: 1.5px;
}

.core-catalog-tree-label:hover {
  font-weight: 700;
}

.core-catalog-detail-panel {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: min(34rem, calc(100% - 1.7rem));
  max-height: calc(100% - 1.7rem);
  overflow: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.core-catalog-detail-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.core-catalog-detail-panel .collaboration-detail-empty,
.core-catalog-detail-panel .collaboration-release-detail-card {
  min-height: 0;
  width: 100%;
}

.core-catalog-overlay-card {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.core-catalog-filter-stack {
  display: grid;
  gap: 0.55rem;
}
.core-catalog-tree-genre-label {
  fill: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
}

html[data-theme="dark"] .core-catalog-tree-label {
  fill: #ffffff;
}

html[data-theme="dark"] .core-catalog-tree-genre-label {
  fill: rgba(255, 255, 255, 0.78);
}

@media (max-width: 640px) {
  .core-catalog-tree-shell {
    gap: 0.7rem;
  }

  .core-catalog-tree-hint {
    font-size: 0.7rem;
  }

  .core-catalog-tree-stage {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .core-catalog-tree-stage.is-mobile-dense {
    min-height: 40rem;
  }

  .core-catalog-tree-stage.is-mobile-very-dense {
    min-height: 48rem;
  }

  .core-catalog-detail-panel {
    position: static;
    right: auto;
    left: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-height: none;
    margin-top: 0;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
    min-height: clamp(16rem, 34vw, 20rem);
  }

  .core-catalog-detail-panel:not(.is-visible) {
    display: none;
  }

  .core-catalog-detail-panel .collaboration-detail-empty,
  .core-catalog-detail-panel .collaboration-release-detail-card {
    min-height: clamp(16rem, 34vw, 20rem);
  }

  .core-catalog-tree-label {
    font-size: 0.84rem;
  }

  .core-catalog-tree-genre-label {
    font-size: 0.72rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .tree-touch-hint {
    left: calc(0.45rem + 7rem);
    right: 0.45rem;
    bottom: 0.45rem;
    transform: none;
    max-width: none;
    min-height: 1.82rem;
    padding: 0.32rem 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 0.62rem;
    text-align: left;
    letter-spacing: 0;
  }

  .home-audiophile-tree-stage.is-two-finger-touch .tree-touch-hint,
  .home-instrument-tree-stage.is-two-finger-touch .tree-touch-hint,
  .core-catalog-tree-stage.is-two-finger-touch .tree-touch-hint {
    opacity: 1;
  }

  .home-audiophile-tree-stage.is-two-finger-touch.has-touch-interacted .tree-touch-hint,
  .home-instrument-tree-stage.is-two-finger-touch.has-touch-interacted .tree-touch-hint,
  .core-catalog-tree-stage.is-two-finger-touch.has-touch-interacted .tree-touch-hint {
    opacity: 0;
    transform: translateY(0.4rem);
  }
}

@media (min-width: 1120px) {
  .core-catalog-filter-stack {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    column-gap: 0.85rem;
    row-gap: 0.65rem;
    align-items: start;
  }
}

.empty-state-intro-grid {
  display: grid;
  gap: var(--space-3);
}

.home-feature-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 250, 246, 0.96), rgba(252, 252, 250, 0.94));
  border-color: rgba(239, 82, 65, 0.16);
}

.home-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(239, 82, 65, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.home-feature-header,
.home-feature-stats,
.home-feature-legend,
.featured-collaboration-chart-shell,
.home-jazz-legends-chart-shell,
.home-feature-footnotes {
  position: relative;
  z-index: 1;
}

.home-feature-header {
  display: grid;
  gap: 1rem;
}

.home-feature-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.18rem + 0.4vw, 1.6rem);
  line-height: 1;
}

.home-feature-copy p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.home-feature-body {
  font-size: 0.95rem;
}

.home-feature-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.home-feature-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.84rem;
}

.home-feature-stat strong {
  color: var(--accent-deep);
  font-size: 0.94rem;
}

.home-feature-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.home-feature-filter-stack {
  display: grid;
  gap: 0.9rem;
}

.home-feature-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.home-feature-filter-kicker {
  margin: 0;
  flex: 0 0 auto;
}

.home-feature-filter-group .home-feature-legend {
  margin-top: 0;
}

.home-feature-filter-note {
  margin: 0;
  max-width: 72ch;
  line-height: 1.3;
  flex: 1 1 28rem;
}

.home-jazz-legends-actions {
  display: flex;
  justify-content: flex-start;
}

.home-feature-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.16rem 0.62rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  appearance: none;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.home-feature-legend-item:hover,
.home-feature-legend-item:focus {
  outline: none;
  transform: translateY(-1px);
}

.home-feature-legend-item.is-all {
  background: rgba(17, 17, 17, 0.04);
  border-color: rgba(17, 17, 17, 0.08);
  color: #555555;
}

.home-feature-legend-item.is-selected {
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08), 0 8px 18px rgba(17, 17, 17, 0.08);
}

.home-feature-legend-item.is-horns {
  background: rgba(239, 82, 65, 0.12);
  border-color: rgba(239, 82, 65, 0.2);
  color: #c93c2d;
}

.home-feature-legend-item.is-keys {
  background: rgba(209, 143, 0, 0.14);
  border-color: rgba(209, 143, 0, 0.24);
  color: #8c5d00;
}

.home-feature-legend-item.is-rhythm {
  background: rgba(11, 143, 122, 0.14);
  border-color: rgba(11, 143, 122, 0.22);
  color: #006f60;
}

.home-feature-legend-item.is-voice {
  background: rgba(94, 123, 255, 0.14);
  border-color: rgba(94, 123, 255, 0.22);
  color: #3956c8;
}

.home-feature-legend-item.is-core {
  background: rgba(17, 17, 17, 0.06);
  border-color: rgba(17, 17, 17, 0.12);
  color: #444444;
}

.home-feature-legend-item.is-remaster {
  background: rgba(209, 143, 0, 0.14);
  border-color: rgba(209, 143, 0, 0.24);
  color: #8c5d00;
}

.home-feature-legend-item.is-live {
  background: rgba(239, 82, 65, 0.12);
  border-color: rgba(239, 82, 65, 0.2);
  color: #c93c2d;
}

.home-feature-legend-item.is-compilation {
  background: rgba(94, 123, 255, 0.14);
  border-color: rgba(94, 123, 255, 0.22);
  color: #3956c8;
}

.home-feature-legend-item.is-remix {
  background: rgba(11, 143, 122, 0.14);
  border-color: rgba(11, 143, 122, 0.22);
  color: #006f60;
}

.home-feature-legend-item.is-edition,
.home-feature-legend-item.is-restored,
.home-feature-legend-item.is-archive,
.home-feature-legend-item.is-other-variant {
  background: rgba(120, 92, 61, 0.12);
  border-color: rgba(120, 92, 61, 0.18);
  color: #6e4f2c;
}

.featured-collaboration-chart-shell,
.home-jazz-legends-chart-shell {
  margin-top: 1rem;
  overflow: hidden;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.featured-collaboration-sankey,
.home-jazz-legends-sankey {
  width: 100%;
}

.featured-collaboration-sankey svg,
.home-jazz-legends-sankey svg {
  display: block;
  width: 100%;
  height: auto;
}

.featured-collaboration-sankey-link,
.home-jazz-sankey-link,
.featured-collaboration-sankey-node,
.home-jazz-sankey-node,
.featured-collaboration-sankey-label,
.home-jazz-sankey-label {
  transition: opacity 140ms ease, filter 140ms ease, stroke-width 140ms ease, fill 140ms ease, transform 140ms ease;
}

.featured-collaboration-sankey-label,
.home-jazz-sankey-label {
  fill: #111111;
}

.featured-collaboration-sankey-link.is-dimmed,
.home-jazz-sankey-link.is-dimmed,
.home-jazz-sankey-node.is-dimmed {
  opacity: 0.14;
}

.featured-collaboration-sankey-label.is-dimmed,
.home-jazz-sankey-label.is-dimmed {
  opacity: 0.38;
}

.featured-collaboration-sankey-link.is-active,
.home-jazz-sankey-link.is-active {
  opacity: 0.98;
  filter: saturate(1.08) brightness(1.04);
}

.featured-collaboration-sankey-node.is-active,
.home-jazz-sankey-node.is-active {
  opacity: 1;
}

.featured-collaboration-sankey-node.is-focal,
.home-jazz-sankey-node.is-focal {
  filter: saturate(1.14) brightness(1.08);
}

.featured-collaboration-sankey-label.is-active,
.home-jazz-sankey-label.is-active {
  opacity: 1;
}

.featured-collaboration-sankey-label.is-focal,
.home-jazz-sankey-label.is-focal {
  font-weight: 700;
}

.featured-collaboration-empty,
.home-jazz-legends-empty {
  color: var(--muted);
}

.home-featured-page {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 0.65rem;
}

.home-featured-hero {
  background: linear-gradient(180deg, rgba(255, 249, 244, 0.96), rgba(252, 252, 250, 0.94));
}

.home-featured-hero h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.2rem + 0.4vw, 1.65rem);
}

.home-featured-hero p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.home-featured-hero-note {
  font-size: 0.94rem;
}

.home-featured-grid {
  display: grid;
  gap: 0.85rem;
}

.home-featured-library-index {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-featured-library-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-height: 0;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.home-featured-library-link:hover,
.home-featured-library-link:focus {
  text-decoration: none;
  transform: translateY(-1px);
}

.home-featured-library-art-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid rgba(123, 87, 74, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(247, 240, 235, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.home-featured-library-art {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.68;
  filter: grayscale(1) sepia(0.08) brightness(0.82) contrast(0.88);
}

.home-featured-library-copy {
  min-width: 0;
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.home-featured-library-link h3 {
  margin: 0;
  font-size: 1rem;
}

.home-featured-filter-stack {
  margin-top: 0.9rem;
}

.home-featured-bucket-legend .home-featured-bucket-filter.is-hidden {
  display: none;
}

.home-feature-legend-item.is-genre {
  background: rgba(239, 82, 65, 0.12);
  border-color: rgba(239, 82, 65, 0.2);
  color: #c93c2d;
}

.home-feature-legend-item.is-instrument {
  background: rgba(11, 143, 122, 0.14);
  border-color: rgba(11, 143, 122, 0.22);
  color: #006f60;
}

.home-feature-legend-item.is-mood {
  background: rgba(94, 123, 255, 0.14);
  border-color: rgba(94, 123, 255, 0.22);
  color: #3956c8;
}

.home-featured-library-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-featured-library-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

html[data-theme="dark"] .home-featured-library-art-shell {
  border-color: rgba(255, 109, 92, 0.12);
  background: linear-gradient(180deg, rgba(43, 33, 30, 0.98), rgba(30, 24, 22, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .home-featured-library-art {
  opacity: 0.72;
  filter: grayscale(1) brightness(1.7) contrast(0.9);
}


.home-feature-filter-selection {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.45;
}

.featured-collaboration-selection-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.featured-collaboration-selection-copy {
  display: inline;
}

.featured-collaboration-summary-share-button {
  width: 1.85rem;
  height: 1.85rem;
  vertical-align: middle;
}

.home-feature-filter-selection strong {
  color: var(--accent-deep);
}

.home-feature-reset-row {
  display: flex;
  justify-content: flex-start;
  margin-top: -0.25rem;
}

.home-feature-reset-row.is-hidden {
  display: none;
}

.home-feature-reset-button {
  appearance: none;
  border: 1px solid rgba(239, 82, 65, 0.24);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-deep);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 1.9rem;
  padding: 0.18rem 0.74rem;
}

.home-feature-reset-button:hover,
.home-feature-reset-button:focus-visible {
  background: rgba(239, 82, 65, 0.14);
  outline: none;
}

.home-featured-library-link.is-hidden,
.home-featured-library-empty.is-hidden {
  display: none;
}

.home-featured-library-empty {
  color: var(--muted);
}

.home-featured-era-card {
  min-height: 11.5rem;
}

.home-featured-era-card h3 {
  margin: 0;
}

.home-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}
.home-featured-actions .primary-button.btn,
.home-featured-actions .ghost-button.btn,
.home-featured-actions .button-link.primary-button,
.home-featured-actions .button-link.ghost-button {
  width: auto;
  height: 40px;
  min-height: 40px;
  padding: 0 1.2rem;
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.home-feature-footnotes {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.8rem;
}

.home-feature-footnotes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

html[data-theme="dark"] .home-feature-card {
  background: linear-gradient(180deg, rgba(42, 27, 24, 0.94), rgba(27, 27, 27, 0.96));
  border-color: rgba(255, 109, 92, 0.18);
}

html[data-theme="dark"] .home-featured-hero {
  background: linear-gradient(180deg, rgba(42, 27, 24, 0.96), rgba(29, 29, 29, 0.95));
}

html[data-theme="dark"] .featured-collaboration-chart-shell,
.home-jazz-legends-chart-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(23, 23, 23, 0.7);
}

html[data-theme="dark"] .featured-collaboration-sankey-link.is-dimmed,
html[data-theme="dark"] .featured-collaboration-sankey-link.is-dimmed,
.home-jazz-sankey-link.is-dimmed,
html[data-theme="dark"] .home-jazz-sankey-node.is-dimmed,
html[data-theme="dark"] .featured-collaboration-sankey-label.is-dimmed,
.home-jazz-sankey-label.is-dimmed {
  opacity: 0.1;
}

html[data-theme="dark"] .featured-collaboration-sankey-label,
html[data-theme="dark"] .featured-collaboration-sankey-label,
.home-jazz-sankey-label {
  fill: #f4f4f4;
}

html[data-theme="dark"] .featured-collaboration-sankey-label.is-focal,
html[data-theme="dark"] .featured-collaboration-sankey-label.is-focal,
.home-jazz-sankey-label.is-focal {
  fill: #fff4f2;
}

html[data-theme="dark"] .featured-collaboration-sankey-link.is-active,
.home-jazz-sankey-link.is-active {
  filter: saturate(1.12) brightness(1.12);
}

html[data-theme="dark"] .home-feature-stat {
  background: rgba(31, 31, 31, 0.88);
}

html[data-theme="dark"] .home-feature-legend-item.is-horns {
  color: #ffb0a7;
}

html[data-theme="dark"] .home-feature-legend-item.is-keys {
  color: #ffd895;
}

html[data-theme="dark"] .home-feature-legend-item.is-rhythm {
  color: #a5eadc;
}

html[data-theme="dark"] .home-feature-legend-item.is-voice {
  color: #c8d5ff;
}

html[data-theme="dark"] .home-feature-legend-item.is-core {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d8d8d8;
}

html[data-theme="dark"] .home-feature-legend-item.is-remaster {
  color: #ffd895;
}

html[data-theme="dark"] .home-feature-legend-item.is-live {
  color: #ffb0a7;
}

html[data-theme="dark"] .home-feature-legend-item.is-compilation {
  color: #c8d5ff;
}

html[data-theme="dark"] .home-feature-legend-item.is-remix {
  color: #a5eadc;
}

html[data-theme="dark"] .home-feature-legend-item.is-edition,
html[data-theme="dark"] .home-feature-legend-item.is-restored,
html[data-theme="dark"] .home-feature-legend-item.is-archive,
html[data-theme="dark"] .home-feature-legend-item.is-other-variant {
  color: #e4c9a6;
}

html[data-theme="dark"] .home-feature-legend-item.is-all {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #d8d8d8;
}

html[data-theme="dark"] .home-feature-legend-item.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.22);
}

@media (min-width: 768px) {
  .empty-state-intro-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-feature-header {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .featured-collaboration-chart-shell,
  .featured-collaboration-chart-shell,
.home-jazz-legends-chart-shell {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding: 0.65rem;
  }

  .home-featured-library-link {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .home-featured-library-art-shell {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .home-featured-library-art {
    width: 58px;
    height: 58px;
  }
}

.home-featured-era-grid {
  display: grid;
  gap: var(--space-3);
}

.home-featured-era-card {
  display: block;
  width: 100%;
  min-height: 12rem;
  padding: 1rem 1.05rem;
  text-align: left;
  appearance: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.08);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.home-featured-era-card:hover,
.home-featured-era-card:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(239, 82, 65, 0.18);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.08);
}

.home-featured-era-card.is-selected {
  border-color: rgba(239, 82, 65, 0.28);
  box-shadow: 0 12px 28px rgba(239, 82, 65, 0.12);
  background: linear-gradient(180deg, rgba(255, 246, 242, 0.96), rgba(255, 255, 255, 0.92));
}

.home-featured-era-card h3,
.home-featured-era-detail h3,
.home-featured-era-column h4 {
  margin: 0;
}

.home-featured-era-card p,
.home-featured-era-detail p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.home-featured-era-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.home-featured-era-detail {
  display: grid;
  gap: 0.9rem;
}

.home-featured-era-detail-grid {
  display: grid;
  gap: var(--space-3);
}

.home-featured-era-column {
  display: grid;
  gap: 0.75rem;
}

.home-featured-era-column-full {
  width: 100%;
}

.home-featured-artist-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.home-featured-artist-chip-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-featured-artist-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.95rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  border: 1px solid rgba(239, 82, 65, 0.14);
  color: var(--fg);
  font-size: 0.85rem;
}

.home-featured-artist-chip-button {
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.home-featured-artist-chip-button:hover,
.home-featured-artist-chip-button:focus-visible,
.home-featured-artist-chip-button.is-selected {
  background: rgba(239, 82, 65, 0.14);
  border-color: rgba(239, 82, 65, 0.28);
  color: var(--text-strong);
  outline: none;
}

.home-featured-artist-chip-expanded {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 3;
  display: grid;
  gap: 0.45rem;
  width: min(100vw - 3rem, 24rem);
  min-width: 16rem;
  max-width: 24rem;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 82, 65, 0.22);
  background: var(--surface-seed);
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.12);
  color: var(--text);
  text-align: left;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.home-featured-artist-chip-expanded-kicker {
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-featured-artist-chip-expanded-title {
  display: block;
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.22;
}

.home-featured-artist-chip-expanded-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.home-featured-artist-chip-expanded-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.home-featured-artist-chip-item.is-flip-up .home-featured-artist-chip-expanded {
  top: auto;
  bottom: calc(100% + 0.45rem);
}

.home-featured-artist-chip-item.is-align-right .home-featured-artist-chip-expanded {
  left: auto;
  right: 0;
}

.home-featured-era-notes {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.home-featured-era-notes li + li {
  margin-top: 0.45rem;
}

.home-featured-era-empty {
  color: var(--muted);
}

html[data-theme="dark"] .home-featured-era-card {
  background: rgba(23, 23, 23, 0.72);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-featured-era-card:hover,
html[data-theme="dark"] .home-featured-era-card:focus,
html[data-theme="dark"] .home-featured-era-card.is-selected {
  border-color: rgba(255, 109, 92, 0.22);
}

html[data-theme="dark"] .home-featured-era-card.is-selected {
  background: linear-gradient(180deg, rgba(52, 30, 26, 0.94), rgba(26, 26, 26, 0.92));
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .home-featured-artist-chip {
  background: rgba(255, 109, 92, 0.12);
  border-color: rgba(255, 109, 92, 0.18);
  color: #f4f4f4;
}

html[data-theme="dark"] .home-featured-artist-chip-button:hover,
html[data-theme="dark"] .home-featured-artist-chip-button:focus-visible,
html[data-theme="dark"] .home-featured-artist-chip-button.is-selected {
  background: rgba(255, 109, 92, 0.2);
  border-color: rgba(255, 109, 92, 0.36);
}

html[data-theme="dark"] .home-featured-artist-chip-expanded {
  background: linear-gradient(180deg, rgba(34, 27, 24, 0.98), rgba(22, 18, 16, 0.98));
  border-color: rgba(255, 109, 92, 0.24);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

@media (min-width: 768px) {
  .home-featured-era-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-featured-landing-page {
  gap: 1rem;
}

.home-featured-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: linear-gradient(180deg, rgba(246, 232, 224, 0.96), rgba(241, 237, 231, 0.94));
  box-shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  isolation: isolate;
}

.home-featured-hero-media img {
  display: block;
  width: 100%;
  height: clamp(14rem, 26vw, 20rem);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96);
}

.home-featured-hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0.06) 0%, rgba(255, 250, 246, 0.03) 26%, rgba(53, 32, 24, 0.16) 58%, rgba(19, 17, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(58, 26, 10, 0.08), rgba(58, 26, 10, 0.01) 42%, rgba(20, 18, 16, 0.18) 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 196, 170, 0.16), transparent 16%);
  pointer-events: none;
}

.home-featured-intro-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-featured-share-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.85rem;
}

.home-featured-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(239, 82, 65, 0.18);
  background: rgba(255, 247, 243, 0.96);
  color: var(--accent-deep);
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.home-featured-share-button:hover,
.home-featured-share-button:focus,
.home-featured-share-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 241, 236, 1);
  border-color: rgba(239, 82, 65, 0.28);
  color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(239, 82, 65, 0.12);
}

.home-featured-share-button.is-copied {
  background: rgba(11, 143, 122, 0.12);
  border-color: rgba(11, 143, 122, 0.22);
  color: #006f60;
}

.home-featured-share-button .fa-icon {
  width: 0.98rem;
  height: 0.98rem;
}

.home-featured-share-button-primary {
  width: auto;
  height: auto;
  gap: 0.55rem;
  padding: 0.82rem 1.05rem;
  border-radius: 14px;
  border-color: rgba(239, 82, 65, 0.34);
  background: linear-gradient(180deg, #ef5241 0%, #d94737 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(239, 82, 65, 0.22);
}

.home-featured-share-button-primary:hover,
.home-featured-share-button-primary:focus,
.home-featured-share-button-primary:focus-visible {
  background: linear-gradient(180deg, #f26252 0%, #dc4f3f 100%);
  border-color: rgba(239, 82, 65, 0.4);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(239, 82, 65, 0.28);
}

.home-featured-share-button-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-featured-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.home-featured-intro-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.home-featured-intro-art-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 1rem 1rem 0;
  pointer-events: none;
  z-index: 0;
}

.home-featured-intro-art-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 260px;
  height: 260px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-featured-intro-art {
  display: block;
  width: 228px;
  height: 228px;
  object-fit: contain;
  opacity: 0.075;
  filter: grayscale(1) sepia(0.06) brightness(0.9) contrast(0.72);
}

.home-featured-intro-card {
  position: relative;
  z-index: 1;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: grid;
  gap: 0.55rem;
  padding: 1.35rem 1.45rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 249, 0.98) 0%, rgba(252, 249, 245, 0.98) 100%);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.07);
  overflow: hidden;
}

.home-featured-intro-card h1,
.home-featured-intro-card h2,
.home-featured-section-head h3 {
  margin: 0;
}

.home-featured-intro-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.45rem + 1.25vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color:var(--accent-deep);
}

.home-featured-subtitle,
.home-featured-intro-card h2 {
  margin: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.22rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--accent-deep);
  overflow-wrap: anywhere;
}

.home-featured-intro-body {
  margin: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: 0.98rem;
  line-height: 1.58;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.home-featured-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-featured-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 82, 65, 0.12);
  background: rgba(255, 247, 243, 0.9);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 600;
}

.home-featured-section-head {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.55rem;
  margin-bottom: 0.55rem;
}

.home-featured-section-head p,
.home-featured-era-summary {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--muted);
}

.home-featured-section-head p {
  max-width: none;
  width: 100%;
  line-height: 1.52;
}

.home-featured-era-grid {
  grid-template-columns: minmax(0, 1fr);
}

.home-featured-era-card {
  min-height: 12.6rem;
  padding: 1.05rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 241, 0.9));
}

.home-featured-era-meta {
  align-items: center;
}

.home-featured-era-detail {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 247, 243, 0.94));
}

.home-featured-artist-chip {
  background: rgba(255, 245, 239, 0.95);
}

.home-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

html[data-theme="dark"] .home-featured-hero-media-overlay {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, 0.1) 0%, rgba(10, 10, 10, 0.12) 20%, rgba(16, 13, 12, 0.4) 54%, rgba(11, 11, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.12), rgba(10, 10, 10, 0.04) 42%, rgba(10, 10, 10, 0.3) 100%),
    radial-gradient(circle at 84% 16%, rgba(255, 109, 92, 0.14), transparent 18%);
}

html[data-theme="dark"] .home-featured-share-button-primary {
  border-color: rgba(255, 109, 92, 0.34);
  background: linear-gradient(180deg, #ff6d5c 0%, #de5647 100%);
  color: #fff7f4;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .home-featured-share-button-primary:hover,
html[data-theme="dark"] .home-featured-share-button-primary:focus,
html[data-theme="dark"] .home-featured-share-button-primary:focus-visible {
  background: linear-gradient(180deg, #ff7b6b 0%, #e86455 100%);
  border-color: rgba(255, 109, 92, 0.42);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

html[data-theme="dark"] .home-featured-share-button {
  background: rgba(255, 109, 92, 0.1);
  border-color: rgba(255, 109, 92, 0.16);
  color: #ffd3c8;
}

html[data-theme="dark"] .home-featured-share-button:hover,
html[data-theme="dark"] .home-featured-share-button:focus,
html[data-theme="dark"] .home-featured-share-button:focus-visible {
  background: rgba(255, 109, 92, 0.16);
  border-color: rgba(255, 109, 92, 0.24);
  color: #fff0ec;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .home-featured-share-button.is-copied {
  background: rgba(11, 143, 122, 0.16);
  border-color: rgba(11, 143, 122, 0.22);
  color: #a5eadc;
}

html[data-theme="dark"] .home-featured-intro-card {
  background: linear-gradient(180deg, rgba(28, 22, 20, 0.96) 0%, rgba(20, 20, 20, 0.98) 100%);
  border-color: rgba(255, 109, 92, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .home-featured-intro-art-shell {
  border: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="dark"] .home-featured-intro-art {
  opacity: 0.1;
  filter: grayscale(1) brightness(1.95) contrast(0.75);
}

html[data-theme="dark"] .home-featured-hero-media img {
  filter: saturate(0.82) contrast(0.92) brightness(0.88);
}

html[data-theme="dark"] .home-featured-subtitle,
html[data-theme="dark"] .home-featured-intro-card h2,
html[data-theme="dark"] .home-featured-meta-chip {
  color: #ffd3c8;
}

html[data-theme="dark"] .home-featured-meta-chip {
  background: rgba(255, 109, 92, 0.1);
  border-color: rgba(255, 109, 92, 0.16);
}

html[data-theme="dark"] .home-featured-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-featured-era-detail {
  background: linear-gradient(180deg, rgba(30, 22, 20, 0.94), rgba(22, 22, 22, 0.95));
  border-color: rgba(255, 109, 92, 0.14);
}

@media (min-width: 768px) {
  .home-featured-intro-card {
    margin-top: 0;
    width: 100%;
    padding: 1.55rem 1.7rem 1.45rem;
  }

  .home-featured-era-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .home-featured-era-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .home-featured-hero-media {
    border-radius: 20px;
  }

  .home-featured-hero-media img {
    height: 13rem;
  }

  .home-featured-intro-card {
    width: 100%;
    margin-top: 0;
    gap: 0.45rem;
    padding: 1.05rem 0.95rem 0.95rem;
  }

  .home-featured-share-toolbar {
    width: auto;
    justify-content: flex-start;
  }

  .home-featured-share-button-primary {
    width: auto;
    justify-content: flex-start;
    align-self: flex-start;
  }
}

.home-featured-breadcrumb {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-featured-excerpt {
  margin: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  font-size: clamp(1rem, 0.95rem + 0.28vw, 1.15rem);
  line-height: 1.62;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.home-featured-era-accordion {
  margin-top: 0.4rem;
  --bs-accordion-border-width: 0;
  --bs-accordion-border-color: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
}

.home-featured-era-accordion .accordion-item {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 247, 243, 0.94));
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.04);
}

.home-featured-era-accordion .accordion-item + .accordion-item {
  margin-top: 0.9rem;
}

.home-featured-era-accordion .accordion-button {
  gap: 0.9rem;
  align-items: baseline;
  padding: 1rem 1.15rem;
  background: transparent;
  color: var(--fg);
  font-weight: 700;
  border: 0;
  box-shadow: none !important;
}

.home-featured-era-accordion .accordion-button:focus,
.home-featured-era-accordion .accordion-button:focus-visible {
  box-shadow: none !important;
  outline: none;
}

.home-featured-era-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, rgba(255, 246, 242, 0.94), rgba(255, 255, 255, 0.92));
  color: var(--fg);
  border: 0;
  box-shadow: none !important;
}

.home-featured-era-accordion .accordion-collapse,
.home-featured-era-accordion .accordion-body {
  border-top: 0;
}

.home-featured-era-accordion .accordion-body {
  padding: 0 1.15rem 1.15rem;
}

.home-featured-accordion-years {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.home-featured-accordion-title {
  font-size: 1rem;
}

.home-featured-era-section {
  display: grid;
  gap: 0.8rem;
}

.home-featured-era-section h2,
.home-featured-era-section h3 {
  margin: 0;
}

.home-featured-era-section h2 {
  font-size: clamp(1.35rem, 1.2rem + 0.45vw, 1.8rem);
}

.home-featured-era-section h3 {
  font-size: 0.98rem;
}

html[data-theme="dark"] .home-featured-breadcrumb {
  color: #d6c7c0;
}

html[data-theme="dark"] .home-featured-excerpt {
  color: #f5efec;
}

html[data-theme="dark"] .home-featured-era-accordion .accordion-item {
  border-color: rgba(255, 109, 92, 0.14);
  background: linear-gradient(180deg, rgba(28, 22, 20, 0.96), rgba(21, 21, 21, 0.95));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .home-featured-era-accordion .accordion-button {
  color: #f5efec;
}

html[data-theme="dark"] .home-featured-era-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(180deg, rgba(48, 28, 24, 0.94), rgba(24, 24, 24, 0.92));
}

html[data-theme="dark"] .home-featured-accordion-years {
  color: #ffd3c8;
}

@media (max-width: 767px) {
  .home-featured-era-accordion .accordion-button {
    align-items: flex-start;
    padding: 0.95rem 1rem;
  }

  .home-featured-era-accordion .accordion-body {
    padding: 0 1rem 1rem;
  }

  .home-featured-accordion-title {
    display: block;
    line-height: 1.35;
  }
}















.featured-collaboration-sankey-node {
  transition: opacity 140ms ease, filter 140ms ease, stroke-width 140ms ease, fill 140ms ease, transform 140ms ease;
}

html[data-theme="dark"] .featured-collaboration-chart-shell {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(23, 23, 23, 0.7);
}

html[data-theme="dark"] .featured-collaboration-sankey-link.is-dimmed,
html[data-theme="dark"] .featured-collaboration-sankey-node.is-dimmed,
html[data-theme="dark"] .featured-collaboration-sankey-label.is-dimmed {
  opacity: 0.1;
}

html[data-theme="dark"] .featured-collaboration-sankey-label {
  fill: #f4f4f4;
}

html[data-theme="dark"] .featured-collaboration-sankey-label.is-focal {
  fill: #fff4f2;
}

html[data-theme="dark"] .featured-collaboration-sankey-link.is-active {
  filter: saturate(1.12) brightness(1.12);
}

.home-featured-era-lazy-block {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.home-featured-era-lazy-kicker {
  margin-top: 0.1rem;
}

.home-featured-era-lazy-intro {
  margin: 0;
  width: 100%;
  max-width: none;
  color: var(--muted);
}

.home-featured-era-catalog-shell-host {
  position: relative;
  overflow: hidden;
}

.home-featured-era-catalog-shell-host > .shiny-html-output {
  transition: opacity 160ms ease;
}

.home-featured-era-catalog-shell-host.is-loading {
  min-height: 13rem;
}

.home-featured-era-catalog-shell-host.is-loading > .shiny-html-output {
  opacity: 0.2;
  pointer-events: none;
}

.home-featured-era-catalog-waiter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(239, 82, 65, 0.18);
  background: linear-gradient(180deg, rgba(255, 247, 244, 0.95) 0%, rgba(255, 250, 248, 0.88) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-featured-era-catalog-shell-host.is-loading .home-featured-era-catalog-waiter {
  opacity: 1;
  transform: translateY(0);
}

.home-featured-era-catalog-waiter h4,
.home-featured-era-catalog-waiter p {
  margin: 0;
}

.home-featured-era-catalog-waiter p {
  max-width: 34rem;
  color: var(--muted);
}

.home-featured-era-catalog-waiter-lines {
  display: grid;
  gap: 0.45rem;
  max-width: 24rem;
}

.home-featured-era-lazy-collaboration {
  display: grid;
  gap: 0.8rem;
}

.home-featured-era-lazy-status {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-weight: 600;
}

.home-featured-era-lazy-status.is-loading {
  border-style: solid;
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(255, 247, 244, 0.92);
  color: var(--accent-deep);
}

.home-featured-era-lazy-status.is-error {
  border-style: solid;
  border-color: rgba(190, 49, 35, 0.24);
  background: rgba(255, 243, 241, 0.94);
  color: #a3382d;
}

.featured-collaboration-explorer--embedded {
  margin-top: 0.15rem;
}

.featured-collaboration-explorer--embedded .home-featured-actions {
  display: none;
}

html[data-theme="dark"] .home-featured-era-lazy-block {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .home-featured-era-lazy-status {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(24, 24, 24, 0.72);
  color: #d7cbc5;
}

html[data-theme="dark"] .home-featured-era-catalog-waiter {
  border-color: rgba(255, 109, 92, 0.24);
  background: linear-gradient(180deg, rgba(52, 28, 24, 0.92) 0%, rgba(35, 22, 21, 0.88) 100%);
}

html[data-theme="dark"] .home-featured-era-catalog-waiter p {
  color: #d7cbc5;
}


html[data-theme="dark"] .home-featured-era-lazy-status.is-loading {
  border-color: rgba(255, 109, 92, 0.22);
  background: rgba(52, 28, 24, 0.8);
  color: #ffd2c8;
}

html[data-theme="dark"] .home-featured-era-lazy-status.is-error {
  border-color: rgba(255, 109, 92, 0.3);
  background: rgba(60, 26, 24, 0.82);
  color: #ffbeb3;
}

@media (max-width: 720px) {
  .home-featured-artist-chip-expanded {
    width: min(100vw - 2.5rem, 20rem);
    min-width: 14rem;
  }
}

/* Final similar-artists radial preview override */
.artist-related-preview {
  width: min(100%, 760px);
  aspect-ratio: 1 / 1;
  min-height: 24rem;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(239, 82, 65, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 248, 0.96), rgba(255, 247, 244, 0.94));
}

.artist-related-preview svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.artist-related-preview-link {
  fill: none;
  stroke-width: 1.45px;
  opacity: 0.58;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artist-related-preview-link.seed_attribute {
  stroke-width: 2px;
  opacity: 0.76;
}

.artist-related-preview-link.attribute_candidate {
  stroke-width: 1.35px;
  opacity: 0.64;
}

.artist-related-preview-link.is-highlighted {
  stroke-width: 2.8px;
  opacity: 1;
}

.artist-related-preview-node-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}

.artist-related-preview-node-label.is-seed {
  font-size: 0.86rem;
  font-weight: 700;
}

.artist-related-preview-node-label.is-attribute {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.artist-related-preview-node-label.is-artist {
  font-size: 0.76rem;
  font-weight: 600;
}

.artist-related-preview-node--seed circle {
  fill: rgba(239, 82, 65, 0.16);
  stroke: rgba(239, 117, 103, 0.96);
}

.artist-related-preview-node--attribute circle {
  opacity: 0.92;
}

.artist-related-preview-node--attribute.is-highlighted circle {
  stroke-width: 2.2px;
}

.artist-related-preview-node--artist circle {
  transition: transform 120ms ease, stroke-width 120ms ease, fill 120ms ease;
}

.artist-related-preview-node--artist.is-selected circle {
  stroke-width: 2.6px;
  transform: scale(1.08);
}

.artist-related-preview-node--artist.is-selected .artist-related-preview-node-label {
  font-weight: 700;
}

html[data-theme="dark"] .artist-related-preview {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 109, 92, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(38, 27, 24, 0.98), rgba(27, 21, 19, 0.96));
}

@media (max-width: 640px) {
  .artist-related-preview {
    min-height: 20rem;
  }

  .artist-related-preview-node-label.is-artist {
    font-size: 0.68rem;
  }

  .artist-related-preview-node-label.is-attribute {
    font-size: 0.62rem;
  }
}


.hero-related-table-slot {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.8rem 0.95rem;
  border: 1px dashed rgba(239, 82, 65, 0.22);
  border-radius: 0.95rem;
  background: rgba(239, 82, 65, 0.05);
}

.hero-related-table-copy {
  display: grid;
  gap: 0.22rem;
}

.hero-related-table-copy-with-action {
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.24rem;
}

.hero-related-table-copy-main {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.hero-related-table-copy-with-action > .hero-related-table-copy-main {
  display: contents;
}

.hero-related-table-copy-with-action .hero-related-table-copy-main strong {
  grid-column: 1;
  grid-row: 1;
}

.hero-related-table-copy-with-action .hero-related-table-copy-main span {
  grid-column: 1 / -1;
  grid-row: 2;
}

.hero-related-table-copy .must-listen-image-share-button {
  grid-column: 2;
  grid-row: 1;
  width: 2rem;
  height: 2rem;
  align-self: center;
}

.hero-related-table-copy strong {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-related-table-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.hero-related-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
}

.hero-related-table {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
}

.hero-related-table th,
.hero-related-table td {
  padding: 0.72rem 0.8rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid rgba(239, 82, 65, 0.12);
}

.hero-related-table th {
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(239, 82, 65, 0.05);
}

.hero-related-table td {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero-related-table tbody tr:last-child td {
  border-bottom: 0;
}

html[data-theme="dark"] .hero-related-table-slot {
  border-color: rgba(239, 82, 65, 0.26);
  background: rgba(48, 23, 21, 0.62);
}

html[data-theme="dark"] .hero-related-table-copy strong {
  color: #f7efe9;
}

html[data-theme="dark"] .hero-related-table-copy span {
  color: rgba(247, 239, 233, 0.76);
}

html[data-theme="dark"] .hero-related-table-wrap {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(18, 14, 14, 0.55);
}

html[data-theme="dark"] .hero-related-table th,
html[data-theme="dark"] .hero-related-table td {
  border-bottom-color: rgba(239, 82, 65, 0.12);
}

html[data-theme="dark"] .hero-related-table th {
  color: #ff9a86;
  background: rgba(239, 82, 65, 0.08);
}

html[data-theme="dark"] .hero-related-table td {
  color: #f4ebe5;
}

html[data-theme="dark"] .hero-related-table td strong {
  color: #fff5ef;
}

@media (max-width: 720px) {
  .hero-related-table {
    min-width: 44rem;
  }
}


.home-step-section {
  min-height: auto;
  display: grid;
  align-content: start;
  gap: clamp(1rem, 1.6vw, 1.35rem);
  padding-block: clamp(0.75rem, 1.8vw, 1.5rem) clamp(1.25rem, 2.4vw, 2rem);
}

.home-section-heading {
  display: grid;
  gap: 0.38rem;
  justify-items: center;
  text-align: center;
}

.home-section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
}

.home-section-heading h3 {
  margin: 0;
  max-width: 54rem;
  font-size: clamp(1rem, 0.95rem + 0.22vw, 1.1rem);
  line-height: 1.55;
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}

.home-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 0.92rem + 0.2vw, 1.08rem);
}

.home-audiophile-section {
  gap: clamp(0.9rem, 1.5vw, 1.25rem);
}

.home-why-section {
  gap: clamp(1rem, 1.8vw, 1.4rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.home-why-shell {
  width: min(100%, 72rem);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

.home-why-copy {
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  text-align: center;
}

.home-why-kicker {
  justify-self: center;
}

.home-why-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.9rem + 3vw, 5.2rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  color: var(--text);
  text-wrap: balance;
}

.home-why-lead {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1.16rem, 1.02rem + 0.5vw, 1.55rem);
  line-height: 1.35;
  color: var(--text);
}

.home-why-body {
  margin: 0;
  max-width: 52rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  line-height: 1.65;
  color: var(--muted);
}

.home-why-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-why-proof-card {
  display: grid;
  box-sizing: border-box;
  gap: 0.7rem;
  padding: clamp(1rem, 1.4vw, 1.3rem);
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 86% 14%, rgba(239, 82, 65, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 251, 248, 0.88), rgba(252, 248, 244, 0.94));
}

.home-why-proof-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 0.98rem + 0.25vw, 1.22rem);
  line-height: 1.08;
  color: var(--text);
}

.home-why-proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.home-start-guide-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 24%),
    radial-gradient(circle at 82% 78%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 26%),
    var(--surface-lane);
  min-height: 100svh;
  height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(1rem, 1.8vw, 1.4rem);
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

.home-start-guide-visuals {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-start-guide-visuals::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0%, color-mix(in srgb, var(--detail-surface) 10%, transparent) 42%, color-mix(in srgb, var(--detail-surface) 64%, transparent) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--detail-surface) 58%, transparent), color-mix(in srgb, var(--detail-surface) 20%, transparent) 30%, color-mix(in srgb, var(--detail-surface) 54%, transparent));
}

.home-start-guide-visual {
  position: absolute;
  inset: -6rem -3.5rem -1.5rem;
  display: grid;
  place-items: stretch;
  opacity: 0;
  transform: scale(1.03);
  color: color-mix(in srgb, var(--accent) 78%, var(--text) 22%);
  transition: opacity 240ms ease, transform 420ms ease;
}

.home-start-guide-svg {
  width: 112%;
  height: 126%;
  margin: -15% 0 0 -6%;
  overflow: visible;
}

.home-start-guide-visual .guided-scene {
  animation: home-guide-scene-sway 18s ease-in-out infinite alternate;
  transform-origin: 50% 50%;
}

.home-start-guide-visual .guided-path,
.home-start-guide-visual .guided-orbit,
.home-start-guide-visual .guided-band {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.home-start-guide-visual .guided-path {
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.34;
}

.home-start-guide-visual .guided-path--flow {
  stroke-dasharray: 10 18;
  animation: home-guide-dash 16s linear infinite;
}

.home-start-guide-visual .guided-orbit {
  stroke-width: 1.15;
  opacity: 0.16;
}

.home-start-guide-visual .guided-orbit--wide {
  opacity: 0.22;
}

.home-start-guide-visual .guided-band {
  stroke-width: 28;
  stroke-linecap: round;
  opacity: 0.09;
}

.home-start-guide-visual .guided-band--flow {
  stroke-dasharray: 36 54;
  animation: home-guide-dash-wide 20s linear infinite;
}

.home-start-guide-visual .guided-bar {
  fill: currentColor;
  opacity: 0.18;
}

.home-start-guide-visual .guided-bar--soft {
  opacity: 0.3;
}

.home-start-guide-visual .guided-node {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: center;
}

.home-start-guide-visual .guided-node--core {
  opacity: 0.9;
}

.home-start-guide-visual .guided-node--pulse {
  opacity: 0.72;
  animation: home-guide-node-pulse 3.6s ease-in-out infinite;
}

.home-start-guide-visual .guided-node--soft {
  opacity: 0.4;
  animation: home-guide-node-pulse 4.4s ease-in-out infinite;
}

.home-start-guide-visual .guided-node--ambient {
  opacity: 0.28;
  animation: home-guide-node-drift 5.8s ease-in-out infinite;
}

.home-start-guide-visual .is-delay-1 {
  animation-delay: 0.8s;
}

.home-start-guide-visual .is-delay-2 {
  animation-delay: 1.6s;
}

.home-guided-start-section:has(.home-start-guide-link.is-artist:hover) .home-start-guide-visual.is-artist,
.home-guided-start-section:has(.home-start-guide-link.is-artist:focus) .home-start-guide-visual.is-artist,
.home-guided-start-section:has(.home-start-guide-link.is-artist:focus-visible) .home-start-guide-visual.is-artist,
.home-guided-start-section:has(.home-start-guide-link.is-artist:active) .home-start-guide-visual.is-artist,
.home-guided-start-section:has(.home-start-guide-link.is-album:hover) .home-start-guide-visual.is-album,
.home-guided-start-section:has(.home-start-guide-link.is-album:focus) .home-start-guide-visual.is-album,
.home-guided-start-section:has(.home-start-guide-link.is-album:focus-visible) .home-start-guide-visual.is-album,
.home-guided-start-section:has(.home-start-guide-link.is-album:active) .home-start-guide-visual.is-album,
.home-guided-start-section:has(.home-start-guide-link.is-genre:hover) .home-start-guide-visual.is-genre,
.home-guided-start-section:has(.home-start-guide-link.is-genre:focus) .home-start-guide-visual.is-genre,
.home-guided-start-section:has(.home-start-guide-link.is-genre:focus-visible) .home-start-guide-visual.is-genre,
.home-guided-start-section:has(.home-start-guide-link.is-genre:active) .home-start-guide-visual.is-genre,
.home-guided-start-section:has(.home-start-guide-link.is-instrument:hover) .home-start-guide-visual.is-instrument,
.home-guided-start-section:has(.home-start-guide-link.is-instrument:focus) .home-start-guide-visual.is-instrument,
.home-guided-start-section:has(.home-start-guide-link.is-instrument:focus-visible) .home-start-guide-visual.is-instrument,
.home-guided-start-section:has(.home-start-guide-link.is-instrument:active) .home-start-guide-visual.is-instrument {
  opacity: 0.94;
  transform: scale(1);
}

.home-start-guide-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  width: min(100%, 72rem);
  margin: 0 auto;
}

.home-start-guide-heading {
  max-width: 56rem;
  margin: 0 auto;
}

.home-guided-start-section .home-start-guide-heading {
  justify-items: center;
  text-align: center;
}

.home-start-guide-kicker {
  justify-self: center;
}

.home-start-guide-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.1rem + 4.2vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.home-start-guide-lead {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 2rem);
  line-height: 1.08;
  font-weight: 700;
}

.home-start-guide-body {
  margin: 0;
  max-width: 44rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  line-height: 1.65;
}

.home-start-guide-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 52rem);
  margin: 0 auto;
}

.home-start-guide-link {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  padding: 0.9rem 1rem 0.95rem;
  border: 1px solid var(--accent-border-soft);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--panel) 84%, transparent);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.home-start-guide-link:hover,
.home-start-guide-link:focus,
.home-start-guide-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent-border-strong);
  background: color-mix(in srgb, var(--accent-surface) 92%, transparent);
  color: var(--text);
  text-decoration: none;
  outline: none;
}

.home-start-guide-link-title {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 0.98rem + 0.16vw, 1.14rem);
  font-weight: 700;
  line-height: 1.04;
}

.home-start-guide-link-body {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@keyframes home-guide-scene-sway {
  0% {
    transform: translate3d(-0.8%, 0.6%, 0) scale(1);
  }

  100% {
    transform: translate3d(1.2%, -0.8%, 0) scale(1.015);
  }
}

@keyframes home-guide-dash {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -240;
  }
}

@keyframes home-guide-dash-wide {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: -420;
  }
}

@keyframes home-guide-node-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.38;
  }

  50% {
    transform: scale(1.28);
    opacity: 0.92;
  }
}

@keyframes home-guide-node-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -7px, 0) scale(1.25);
  }
}

.route-search-landing-hero {
  display: grid;
  gap: clamp(1rem, 2vw, 1.35rem);
  padding: clamp(1.1rem, 1.8vw, 1.55rem);
  background:
    radial-gradient(circle at 82% 16%, rgba(239, 82, 65, 0.08), transparent 24%),
    var(--surface-hero);
  border-color: var(--accent-border-soft);
  box-shadow: var(--hero-shadow);
}

.route-search-landing-copy {
  display: grid;
  gap: 0.45rem;
}

.route-search-landing-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 3.1rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--text);
}

.route-search-landing-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--text);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.28rem);
  line-height: 1.42;
}

.route-search-landing-body {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.route-search-landing-search-stage {
  width: min(100%, 48rem);
  margin-top: 0.15rem;
}

.route-search-landing-search-panel {
  justify-items: stretch;
  gap: 0.8rem;
  background: var(--panel);
  border-color: var(--accent-border-soft);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.route-search-landing-search-panel::before {
  display: none;
}

.route-search-landing-search-panel .home-landing-search-input .form-control {
  color: var(--text);
  background: var(--input-bg);
  border-color: var(--border);
}

.route-search-landing-search-panel .home-landing-search-input .form-control::placeholder {
  color: var(--muted);
}

.route-search-landing-search-panel .home-landing-search-icon {
  color: var(--muted);
}

.route-search-landing-search-panel .home-live-search-results {
  background: var(--panel-solid);
  border-color: var(--accent-border-soft);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.route-search-landing-canvas {
  display: grid;
  gap: 1rem;
}

.route-search-placeholder-card {
  display: grid;
  gap: 0.55rem;
  max-width: 58rem;
  margin: 0 auto;
}

.album-search-landing-canvas {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.album-route-guide-card {
  display: grid;
  gap: 1rem;
}

.album-route-guide-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 66rem;
}

.album-route-guide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.album-route-guide-intro,
.album-route-guide-summary {
  margin: 0;
}

.album-route-guide-intro {
  color: var(--text);
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.12rem);
  line-height: 1.55;
}

.album-route-guide-summary {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62rem;
}

.album-browser-shell {
  display: grid;
  gap: 0.7rem;
}

.album-browser-note {
  max-width: 62rem;
}

.album-route-guide-notes {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--accent-border-soft);
}

.album-route-guide-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  max-width: 62rem;
}

.artist-search-landing-canvas {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.artist-audiophile-guide-card {
  display: grid;
  gap: 1rem;
}

.artist-audiophile-guide-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 66rem;
}

.artist-audiophile-guide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.artist-audiophile-guide-intro,
.artist-audiophile-guide-summary {
  margin: 0;
}

.artist-audiophile-guide-intro {
  color: var(--text);
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.12rem);
  line-height: 1.55;
}

.artist-audiophile-guide-summary {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62rem;
}

.artist-audiophile-guide-method {
  max-width: 62rem;
  line-height: 1.65;
}

.artist-audiophile-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.artist-audiophile-guide-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
}

.artist-audiophile-guide-nav-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.artist-audiophile-guide-nav-link {
  color: var(--accent-deep);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.artist-audiophile-guide-nav-link:hover,
.artist-audiophile-guide-nav-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.artist-audiophile-browser {
  display: grid;
}

.artist-audiophile-tree-shell {
  gap: 0.9rem;
}

.artist-audiophile-tree-stage {
  min-height: clamp(32rem, 70vw, 46rem);
}

.artist-audiophile-guide-sources {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--accent-border-soft);
}

.artist-audiophile-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.artist-audiophile-source-link {
  color: var(--accent-deep);
  font-size: 0.82rem;
  text-decoration: none;
}

.artist-audiophile-source-link:hover,
.artist-audiophile-source-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.genre-search-landing-canvas {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.genre-route-guide-card {
  display: grid;
  gap: 1rem;
}

.genre-route-guide-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 64rem;
}

.genre-route-guide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.genre-route-guide-intro,
.genre-route-guide-summary {
  margin: 0;
}

.genre-route-guide-intro {
  color: var(--text);
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.12rem);
  line-height: 1.55;
}

.genre-route-guide-summary {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62rem;
}

.genre-shell-stage {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--accent-border-soft);
  border-radius: calc(var(--radius-lg) - 0.2rem);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 94%, transparent), color-mix(in srgb, var(--detail-surface) 92%, transparent));
}

.genre-shell-stage-header {
  display: grid;
  gap: 0.45rem;
  max-width: 56rem;
}

.genre-shell-stage-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.genre-shell-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.genre-shell-slot {
  display: grid;
  gap: 0.45rem;
  min-height: 10.1rem;
  padding: 0.95rem 0.95rem 1rem;
  border: 1px solid var(--accent-border-soft);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
}

.genre-shell-slot-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.genre-shell-slot-link:hover,
.genre-shell-slot-link:focus,
.genre-shell-slot-link:focus-visible {
  color: inherit;
  text-decoration: none;
  border-color: var(--accent-border-strong);
  background: color-mix(in srgb, var(--accent-surface) 72%, var(--panel-solid));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.genre-shell-slot-link.is-selected {
  color: inherit;
  text-decoration: none;
  border-color: var(--accent-border-strong);
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent-surface) 82%, var(--panel-solid)),
      color-mix(in srgb, var(--accent-surface) 68%, var(--panel-solid)));
  box-shadow: var(--shadow);
}

.genre-shell-slot-link.is-selected .genre-shell-slot-title,
.genre-shell-slot-link.is-selected .genre-shell-slot-index {
  color: var(--accent-strong);
}

.genre-shell-slot-index {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.genre-shell-slot-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
}

.genre-shell-slot-parent {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.genre-shell-slot-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.genre-shell-slot-body-label {
  color: var(--text);
  font-weight: 600;
}

.genre-route-guide-notes {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--accent-border-soft);
}

.genre-route-guide-checklist {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text);
  line-height: 1.7;
}

.genre-route-guide-checklist li + li {
  margin-top: 0.3rem;
}

.instrument-search-landing-canvas {
  gap: clamp(1rem, 2vw, 1.4rem);
}

.instrument-route-guide-card {
  display: grid;
  gap: 1rem;
}

.instrument-route-guide-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 66rem;
}

.instrument-route-guide-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1.7vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
}

.instrument-route-guide-intro,
.instrument-route-guide-summary {
  margin: 0;
}

.instrument-route-guide-intro {
  color: var(--text);
  font-size: clamp(1.02rem, 0.96rem + 0.24vw, 1.12rem);
  line-height: 1.55;
}

.instrument-route-guide-summary {
  color: var(--muted);
  line-height: 1.7;
  max-width: 62rem;
}

.instrument-search-browser-shell {
  display: grid;
  gap: 0.7rem;
}

.instrument-search-browser-note {
  max-width: 62rem;
}

.instrument-route-guide-notes {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--accent-border-soft);
}

.audiophile-catalog-page {
  display: block;
}

.route-search-landing-hero:has(+ .audiophile-catalog-page) {
  grid-template-columns: minmax(16rem, 0.8fr) minmax(20rem, 1.2fr);
  align-items: end;
  padding: clamp(0.95rem, 1.5vw, 1.3rem);
  min-height: auto;
}

.route-search-landing-hero:has(+ .audiophile-catalog-page) .route-search-landing-copy h1 {
  max-width: 12ch;
  font-size: clamp(2rem, 1.55rem + 1.25vw, 2.85rem);
}

.route-search-landing-hero:has(+ .audiophile-catalog-page) .route-search-landing-lead,
.route-search-landing-hero:has(+ .audiophile-catalog-page) .route-search-landing-body {
  max-width: 42rem;
}

.audiophile-catalog-card {
  display: grid;
  gap: 0.85rem;
  padding-top: 1rem;
}

.audiophile-catalog-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.audiophile-catalog-card-head h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.audiophile-catalog-intro {
  max-width: 58rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.audiophile-catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audiophile-catalog-controls {
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(11rem, 16rem);
  gap: 0.75rem;
  align-items: end;
}

.audiophile-catalog-search,
.audiophile-catalog-sort {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audiophile-catalog-search input,
.audiophile-catalog-sort-button {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 16px;
  background: var(--detail-surface);
  color: var(--text);
  font: 600 0.95rem var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.audiophile-catalog-search input {
  padding: 0 0.95rem;
}

.audiophile-catalog-sort-menu {
  position: relative;
}

.audiophile-catalog-sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.85rem;
  text-align: left;
}

.audiophile-catalog-sort-button::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
  opacity: 0.72;
}

.audiophile-catalog-sort-options {
  position: absolute;
  z-index: 30;
  inset: calc(100% + 0.35rem) 0 auto 0;
  display: none;
  overflow: hidden;
  border: 1px solid var(--accent-border-soft);
  border-radius: 14px;
  background: var(--detail-surface);
  box-shadow: var(--panel-shadow);
}

.audiophile-catalog-sort-menu.is-open .audiophile-catalog-sort-options {
  display: grid;
}

.audiophile-catalog-sort-option {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(239, 82, 65, 0.08);
  background: transparent;
  color: var(--text);
  font: 700 0.92rem var(--font-body);
  text-align: left;
}

.audiophile-catalog-sort-option:last-child {
  border-bottom: 0;
}

.audiophile-catalog-sort-option:hover,
.audiophile-catalog-sort-option:focus-visible,
.audiophile-catalog-sort-option.is-selected {
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-text);
}

.audiophile-catalog-results-meta {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.audiophile-catalog-alpha {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
}

.audiophile-catalog-alpha-button {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.48rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 999px;
  background: var(--detail-surface);
  color: var(--muted);
  font: 800 0.78rem var(--font-body);
}

.audiophile-catalog-alpha-button:hover,
.audiophile-catalog-alpha-button:focus-visible,
.audiophile-catalog-alpha-button.is-selected {
  border-color: rgba(239, 82, 65, 0.38);
  background: rgba(239, 82, 65, 0.14);
  color: var(--accent-text);
}

.audiophile-catalog-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.audiophile-catalog-page:not(.is-loading) .audiophile-catalog-loading {
  display: none;
}

.audiophile-catalog-table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: 18px;
  background: color-mix(in srgb, var(--detail-surface) 94%, transparent);
}

.audiophile-catalog-table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
}

.audiophile-catalog-table th,
.audiophile-catalog-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid rgba(239, 82, 65, 0.1);
  text-align: left;
  vertical-align: middle;
}

.audiophile-catalog-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--detail-surface);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audiophile-catalog-table tbody tr:last-child td {
  border-bottom: 0;
}

.audiophile-catalog-skeleton-row td {
  height: 2.8rem;
}

.audiophile-catalog-skeleton-row .loading-skeleton-line {
  margin: 0;
}

.audiophile-catalog-row:hover {
  background: rgba(239, 82, 65, 0.055);
}

.audiophile-catalog-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.audiophile-catalog-title:hover,
.audiophile-catalog-title:focus-visible {
  color: var(--accent-text);
  text-decoration-thickness: 2px;
}

.audiophile-catalog-cell-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(239, 82, 65, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.audiophile-catalog-cell-link:hover,
.audiophile-catalog-cell-link:focus-visible {
  color: var(--accent-text);
  text-decoration-color: currentColor;
}

.audiophile-catalog-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.audiophile-catalog-genre-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.08rem 0.5rem;
  border: 1px solid rgba(239, 82, 65, 0.2);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.075);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.1;
  text-decoration: none;
}

.audiophile-catalog-genre-pill:hover,
.audiophile-catalog-genre-pill:focus-visible {
  border-color: rgba(239, 82, 65, 0.38);
  background: rgba(239, 82, 65, 0.13);
  color: var(--accent-text);
}

.audiophile-album-action-popover {
  position: absolute;
  z-index: 80;
  display: grid;
  gap: 0.45rem;
  min-width: 13.5rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 1rem;
  border: 1px solid var(--accent-border-soft);
  border-radius: 14px;
  background: var(--detail-surface);
  color: var(--text);
  box-shadow: var(--panel-shadow);
}

.audiophile-album-action-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.audiophile-album-action-artist {
  margin-top: -0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.audiophile-album-action-buttons {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

html[data-theme="dark"] .audiophile-album-action-popover {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.audiophile-catalog-artist {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.audiophile-catalog-genre,
.audiophile-catalog-context,
.audiophile-catalog-context {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.audiophile-catalog-notes {
  margin: 0;
  color: var(--text);
  font-size: 0.76rem;
  line-height: 1.35;
}

.audiophile-catalog-benchmark-note {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.audiophile-catalog-benchmark-note span {
  color: var(--accent-text);
  font-weight: 800;
}

.audiophile-catalog-actions {
  display: inline-flex;
  gap: 0.35rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

html[data-theme="dark"] .audiophile-catalog-table-wrap {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
}

html[data-theme="dark"] .audiophile-catalog-table th {
  background: var(--detail-surface);
}

@media (max-width: 760px) {
  .route-search-landing-hero:has(+ .audiophile-catalog-page) {
    grid-template-columns: 1fr;
  }

  .audiophile-catalog-controls {
    grid-template-columns: 1fr;
  }

  .audiophile-catalog-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .home-start-guide-section {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-inline: 0.9rem;
    min-height: calc(100svh - var(--mobile-top-bar-height) - 0.45rem);
    height: calc(100svh - var(--mobile-top-bar-height) - 0.45rem);
  }

  .home-start-guide-visual {
    inset: -2rem -1rem -0.5rem;
    opacity: 0 !important;
    transform: scale(1) !important;
  }

  .home-start-guide-visual.is-artist {
    opacity: 0.9 !important;
  }

  .home-start-guide-svg {
    width: 300%;
    height: 300%;
    margin: -118% 0 0 -100%;
  }

  .home-start-guide-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
  }

  .home-start-guide-link {
    display: grid;
    place-items: center;
    min-height: 3.7rem;
    width: 100%;
    padding: 0.85rem 0.7rem 0.9rem;
    border: 1px solid var(--accent-border-soft);
    border-radius: 1rem;
    background: color-mix(in srgb, var(--panel) 74%, transparent) !important;
    box-shadow: none;
    color: var(--text);
    gap: 0;
  }

  .home-start-guide-link:hover,
  .home-start-guide-link:focus,
  .home-start-guide-link:focus-visible {
    transform: none;
    border-color: var(--accent-border-strong);
    background: color-mix(in srgb, var(--accent-surface) 88%, transparent) !important;
    box-shadow: none;
    color: var(--text);
    text-decoration: none;
  }

  .home-start-guide-link-title {
    font-size: clamp(0.98rem, 0.94rem + 0.18vw, 1.05rem);
    color: var(--text);
  }

  .home-start-guide-link-body {
    display: none;
  }

  .artist-audiophile-guide-card {
    gap: 0.9rem;
  }

  .artist-audiophile-guide-nav {
    gap: 0.55rem 0.85rem;
  }

  .artist-audiophile-tree-stage {
    min-height: 28rem;
  }

  .artist-audiophile-source-links {
    gap: 0.5rem 0.7rem;
  }

  .album-browser-shell {
    gap: 0.6rem;
  }

  .genre-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .genre-shell-slot {
    min-height: 9.2rem;
  }

  .instrument-search-browser-shell {
    gap: 0.6rem;
  }

  .route-search-landing-copy h1 {
    max-width: none;
  }

  .route-search-landing-search-stage {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .genre-shell-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-featured-discovery-section {
  gap: clamp(1rem, 1.8vw, 1.5rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.home-pricing-section {
  min-height: 100svh;
  height: auto;
  align-content: center;
  gap: clamp(1rem, 1.8vw, 1.4rem);
  padding-block: clamp(1.5rem, 4vw, 3.25rem);
}

.home-pricing-card {
  display: grid;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(1.2rem, 2vw, 1.6rem);
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 18%, rgba(239, 82, 65, 0.1), transparent 24%),
    color-mix(in srgb, var(--detail-surface) 94%, transparent);
  box-shadow: var(--shadow);
}

.home-pricing-tier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(18rem, 1.16fr);
  gap: clamp(0.75rem, 1.4vw, 1rem);
  align-items: stretch;
}

.home-pricing-tier-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-width: 0;
  padding: clamp(0.95rem, 1.5vw, 1.2rem);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border));
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.home-pricing-tier-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.home-pricing-tier-card.is-paid {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--border));
  background:
    radial-gradient(circle at 88% 10%, rgba(239, 82, 65, 0.12), transparent 34%),
    color-mix(in srgb, var(--accent-surface) 36%, var(--panel));
}

.home-pricing-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.current-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 1.42rem;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 70%, #ffffff 30%),
    0 0.45rem 1.2rem color-mix(in srgb, var(--accent) 24%, transparent);
}

.current-plan-badge-label {
  opacity: 0.86;
}

.current-plan-badge-label::after {
  content: ":";
}

.current-plan-badge-name {
  color: #ffffff;
  font-weight: 900;
}

.account-profile-card > .current-plan-badge {
  margin-bottom: 0.65rem;
}

.home-pricing-tier-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.home-pricing-tier-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-pricing-tier-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pricing-tier-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.home-pricing-tier-list li::before {
  position: absolute;
  top: 0.48rem;
  left: 0;
  width: 0.42rem;
  height: 0.42rem;
  content: "";
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 82, 65, 0.1);
}

.home-pricing-tier-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.home-pricing-tier-button {
  justify-content: center;
  width: 100%;
}

.home-pricing-card-top {
  display: grid;
  gap: 0.85rem;
}

.home-pricing-plan {
  display: grid;
  gap: 0.15rem;
}

.home-pricing-plan h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.7rem + 1vw, 2.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: var(--text);
}

.home-pricing-period,
.home-pricing-lead,
.home-pricing-note {
  margin: 0;
}

.home-pricing-period {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
}

.home-pricing-lead {
  color: var(--text);
  line-height: 1.6;
}

.home-pricing-note {
  color: var(--muted);
  line-height: 1.6;
}

.home-freemium-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border));
}

.home-freemium-step {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem clamp(0.8rem, 1.5vw, 1.1rem);
}

.home-freemium-step + .home-freemium-step {
  border-left: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
}

.home-freemium-step span {
  color: var(--accent-text);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-freemium-step strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.home-freemium-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.home-pricing-features {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-pricing-features li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-pricing-features li::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: 0;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 82, 65, 0.1);
}

.home-pricing-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.15rem;
}

.home-pricing-plan-picker {
  margin-top: 0;
}

html[data-theme="dark"] .home-pricing-plan-picker .account-plan-option {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.home-pricing-checkout-row {
  display: block;
}

.home-pricing-checkout-row .account-upgrade-button {
  margin-top: 0;
}

@media (max-width: 980px) {
  .home-pricing-tier-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-freemium-steps {
    grid-template-columns: 1fr;
  }

  .home-freemium-step + .home-freemium-step {
    border-top: 1px solid color-mix(in srgb, var(--accent) 14%, var(--border));
    border-left: 0;
  }
}

.home-featured-spotlight-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 1.5vw, 1.45rem);
  background:
    radial-gradient(circle at 84% 18%, rgba(239, 82, 65, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 248, 0.95), rgba(252, 248, 244, 0.98));
  border: 1px solid rgba(239, 82, 65, 0.16);
}

.home-featured-spotlight-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 72rem;
}

.home-featured-spotlight-controls {
  gap: 0.72rem;
  padding-top: 0.05rem;
}

.home-featured-spotlight-viz-shell {
  gap: 0;
  padding-top: 0;
}

.home-featured-spotlight-chart-shell {
  margin-top: 0;
  padding: 0.55rem 0 0;
  border: 0;
  border-top: 1px solid rgba(239, 82, 65, 0.12);
  border-radius: 0;
  background: transparent;
}

.home-featured-spotlight-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.06rem + 0.55vw, 1.58rem);
  line-height: 1.06;
  color: var(--text);
}

.home-featured-spotlight-lead,
.home-featured-spotlight-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-featured-spotlight-lead {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.home-featured-spotlight-evidence {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.06);
}

.home-featured-spotlight-evidence p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
}

.home-featured-spotlight-actions {
  margin-top: 0.15rem;
}

.home-featured-spotlight-map {
  display: grid;
  gap: 0;
}

.home-featured-spotlight-footer-actions {
  justify-content: center;
  margin-top: 0.15rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(239, 82, 65, 0.1);
}

.home-instrument-discovery-section {
  gap: clamp(1rem, 1.8vw, 1.45rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.home-instrument-browser {
  width: 100%;
}

.home-instrument-browser-shell {
  display: grid;
  gap: clamp(0.85rem, 1.5vw, 1.15rem);
  width: 100%;
}

.home-instrument-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.home-instrument-filter {
  touch-action: manipulation;
  pointer-events: auto;
}

.home-instrument-tree-stage {
  width: min(100%, 72rem);
  margin: 0 auto;
  height: clamp(22rem, 44vw, 38rem);
  min-height: clamp(22rem, 44vw, 38rem);
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 82, 65, 0.14);
  background:
    radial-gradient(circle at 62% 48%, var(--home-instrument-accent-soft, rgba(239, 82, 65, 0.12)), transparent 34%),
    linear-gradient(180deg, rgba(255, 252, 250, 0.84), rgba(251, 248, 244, 0.92));
}

.home-instrument-tree-canvas {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.home-instrument-detail-panel {
  width: min(100%, 72rem);
  margin: 0 auto;
  min-height: auto;
  overflow-anchor: none;
}

.home-instrument-detail-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-instrument-tree-stage .home-instrument-detail-panel {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: min(31rem, calc(100% - 1.7rem));
  max-height: calc(100% - 1.7rem);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-instrument-tree-stage .home-instrument-detail-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-instrument-tree-stage .home-instrument-detail-panel .collaboration-detail-empty,
.home-instrument-tree-stage .home-instrument-detail-panel .collaboration-release-detail-card,
.home-instrument-detail-panel .collaboration-detail-empty,
.home-instrument-detail-panel .collaboration-release-detail-card {
  min-height: 0;
  width: 100%;
}

.home-instrument-overlay-card {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.home-instrument-compact-card {
  gap: 0.6rem;
  padding: 0.95rem 1rem;
}

.home-instrument-compact-card .collaboration-release-detail-head {
  gap: 0.7rem;
}

.home-instrument-compact-card .collaboration-release-detail-copy {
  gap: 0.42rem;
}

.home-instrument-compact-card .collaboration-release-detail-title {
  min-height: 0;
  -webkit-line-clamp: 2;
}

.home-instrument-compact-card .collaboration-release-detail-subtitle {
  min-height: 0;
  white-space: normal;
  overflow: visible;
}

.home-instrument-compact-card .collaboration-release-detail-slots {
  min-height: 0;
  gap: 0.4rem;
}

.home-instrument-detail-panel .collaboration-release-detail-slots {
  min-height: 0;
}

.home-instrument-compact-card .collaboration-release-detail-slot {
  min-height: 0;
}

.home-instrument-detail-panel .collaboration-release-enrichment:empty,
.home-instrument-detail-panel .collaboration-release-enrichment-group.is-loading {
  display: none;
}

.home-instrument-detail-panel .collaboration-release-enrichment {
  margin-top: 0;
  min-height: 0;
}

.home-instrument-detail-panel .collaboration-release-enrichment-group {
  min-height: 0;
  padding-top: 0;
  border-top: 0;
}

.home-instrument-compact-card .collaboration-release-detail-lineitem {
  grid-template-columns: minmax(6.2rem, 7rem) minmax(0, 1fr);
}

.home-instrument-compact-card .collaboration-release-detail-value,
.home-instrument-compact-card .collaboration-release-detail-link {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.home-instrument-cluster-svg {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  touch-action: none;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.home-instrument-tree-stage.is-panning .home-instrument-cluster-svg,
.home-instrument-cluster-svg.is-dragging {
  cursor: grabbing;
}

.home-instrument-cluster-link {
  fill: none;
  stroke-opacity: 0.5;
  stroke-width: 1.45;
}

.home-instrument-cluster-link-layer {
  pointer-events: none;
  user-select: none;
}

.home-instrument-cluster-link.depth-1 {
  stroke-width: 1.7;
  stroke-opacity: 0.62;
}

.home-instrument-cluster-link.is-selected {
  stroke-opacity: 0.98;
  stroke-width: 2.15;
}

.home-instrument-cluster-node {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.home-instrument-cluster-node circle {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.1;
}

.home-instrument-cluster-node.is-leaf.is-audiophile-friendly circle {
  fill: #4f8dff;
  stroke: rgba(180, 210, 255, 0.95);
  stroke-width: 1.55;
}

.home-instrument-cluster-node.is-leaf.is-music-benchmark circle {
  fill: #f0b84f;
  stroke: rgba(255, 225, 156, 0.95);
  stroke-width: 1.55;
}

.home-instrument-cluster-node.is-leaf.is-audiophile-benchmark circle {
  fill: #ff6f5f;
  stroke: rgba(255, 213, 206, 0.98);
  stroke-width: 1.8;
}

.home-instrument-cluster-node.is-leaf.is-audiophile-friendly .home-instrument-cluster-label {
  fill: #2f5fba;
}

.home-instrument-cluster-node.is-leaf.is-music-benchmark .home-instrument-cluster-label {
  fill: #8a5b08;
}

.home-instrument-cluster-node.is-leaf.is-audiophile-benchmark .home-instrument-cluster-label {
  fill: #b64235;
}

html[data-theme="dark"] .home-instrument-cluster-node.is-leaf.is-audiophile-friendly .home-instrument-cluster-label {
  fill: #c9dcff;
}

html[data-theme="dark"] .home-instrument-cluster-node.is-leaf.is-music-benchmark .home-instrument-cluster-label {
  fill: #ffe2a4;
}

html[data-theme="dark"] .home-instrument-cluster-node.is-leaf.is-audiophile-benchmark .home-instrument-cluster-label {
  fill: #ffd1ca;
}

.home-instrument-cluster-node.is-selected circle,
.home-instrument-cluster-node:hover circle {
  stroke-width: 2;
  stroke: rgba(255, 255, 255, 0.98);
}

.home-instrument-cluster-node.is-selected .home-instrument-cluster-label,
.home-instrument-cluster-node:hover .home-instrument-cluster-label {
  font-weight: 700;
}

.home-instrument-cluster-hitbox {
  fill: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.home-instrument-cluster-label {
  fill: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  paint-order: stroke;
  stroke: rgba(255, 252, 248, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
  user-select: none;
  -webkit-user-select: none;
}

.home-instrument-cluster-label.depth-0 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
}

.home-instrument-cluster-label.depth-1 {
  font-size: 0.88rem;
  font-weight: 700;
}

.home-instrument-cluster-label.depth-2 {
  font-size: 0.84rem;
}

.home-instrument-cluster-label.depth-3 {
  font-size: 0.76rem;
}

.home-instrument-cluster-label.depth-4 {
  font-size: 0.72rem;
}

.home-instrument-seed-block {
  display: grid;
  gap: 0.65rem;
}

.home-instrument-seed-grid {
  display: grid;
  gap: 0.6rem;
}

.home-instrument-seed-link {
  display: grid;
  gap: 0.16rem;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 82, 65, 0.16);
  background: color-mix(in srgb, var(--detail-surface-muted) 92%, transparent);
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.home-instrument-seed-link:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 82, 65, 0.28);
  background: color-mix(in srgb, var(--detail-surface) 94%, transparent);
}

.home-instrument-seed-title {
  font-size: 0.94rem;
  line-height: 1.2;
  color: var(--text);
}

.home-instrument-seed-artist,
.home-instrument-seed-why,
.home-instrument-seed-empty {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-featured-discovery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-featured-discovery-card {
  display: grid;
  gap: 0.8rem;
  min-height: clamp(16rem, 28vw, 20rem);
  padding: clamp(1.15rem, 1.4vw, 1.5rem);
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 82, 65, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 248, 0.94), rgba(252, 248, 244, 0.98));
  border: 1px solid rgba(239, 82, 65, 0.16);
}

.home-featured-discovery-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.02rem + 0.45vw, 1.46rem);
  line-height: 1.05;
  color: var(--text);
}

.home-featured-discovery-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.home-featured-discovery-artist {
  margin-top: auto;
  color: var(--accent-text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-featured-discovery-actions {
  justify-content: center;
}

.home-audiophile-browser {
  width: 100%;
}

.home-audiophile-browser-shell {
  display: grid;
  gap: clamp(0.8rem, 1.4vw, 1.15rem);
  justify-items: stretch;
  width: 100%;
  min-width: 0;
}

.home-audiophile-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  width: 100%;
  min-width: 0;
}

.home-audiophile-filter {
  touch-action: manipulation;
  pointer-events: auto;
}

.home-audiophile-tree-stage {
  width: min(100%, 72rem);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  touch-action: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(239, 82, 65, 0.14);
  background:
    radial-gradient(circle at center, rgba(239, 82, 65, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(255, 252, 250, 0.82), rgba(251, 248, 244, 0.92));
}

@media (min-width: 768px) {
  .home-audiophile-tree-stage {
    aspect-ratio: auto;
    height: clamp(22rem, 44vw, 38rem);
    min-height: clamp(22rem, 44vw, 38rem);
  }
}

.home-audiophile-tree-canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.home-audiophile-release-detail-panel {
  width: min(100%, 72rem);
  margin: 0 auto;
  min-height: clamp(16rem, 34vw, 20rem);
  overflow-anchor: none;
}

.home-audiophile-release-detail-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-audiophile-release-detail-panel .collaboration-detail-empty,
.home-audiophile-release-detail-panel .collaboration-release-detail-card {
  min-height: clamp(16rem, 34vw, 20rem);
}

.home-audiophile-release-detail-panel .collaboration-detail-empty {
  display: flex;
  align-items: flex-start;
}

.home-audiophile-tree-stage .home-audiophile-release-detail-panel {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 3;
  width: min(34rem, calc(100% - 1.7rem));
  max-height: calc(100% - 1.7rem);
  min-height: 0;
  margin: 0;
  overflow: auto;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.6rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.home-audiophile-tree-stage .home-audiophile-release-detail-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.home-audiophile-tree-stage .home-audiophile-release-detail-panel .collaboration-detail-empty,
.home-audiophile-tree-stage .home-audiophile-release-detail-panel .collaboration-release-detail-card {
  min-height: 0;
  width: 100%;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-card {
  display: flex;
  flex-direction: column;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-head {
  align-items: flex-start;
  gap: 1rem;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-actions {
  flex: 0 0 auto;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-slots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  min-height: 0;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-slot.is-expanded-notes .collaboration-release-detail-line {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-slot.is-expanded-notes .collaboration-release-detail-value {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.45;
  max-width: none;
}

.home-audiophile-release-detail-panel .collaboration-release-detail-slot.is-compact-meta .collaboration-release-detail-line {
  grid-template-columns: minmax(5.5rem, 0.28fr) 1fr;
}

.home-audiophile-release-detail-panel .collaboration-release-enrichment:empty,
.home-audiophile-release-detail-panel .collaboration-release-enrichment-group.is-loading {
  display: none;
}

.home-audiophile-release-detail-panel .collaboration-release-enrichment {
  margin-top: 0;
  min-height: 0;
}

.home-audiophile-release-detail-panel .collaboration-release-enrichment-group {
  min-height: 0;
  padding-top: 0;
  border-top: 0;
}

.home-audiophile-overlay-card {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.home-audiophile-sunburst-svg {
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--font-body);
  touch-action: none;
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
}

.home-audiophile-tree-stage.is-panning .home-audiophile-sunburst-svg,
.home-audiophile-sunburst-svg.is-dragging {
  cursor: grabbing;
}

.home-audiophile-tree-link {
  fill: none;
  stroke-opacity: 0.58;
  stroke-width: 1.55;
}

.home-audiophile-tree-link-layer {
  pointer-events: none;
  user-select: none;
}

.home-audiophile-tree-link.depth-1 {
  stroke-width: 1.8;
  stroke-opacity: 0.66;
}

.home-audiophile-tree-node circle {
  stroke: rgba(255, 255, 255, 0.78);
  stroke-width: 1.15;
}

.home-audiophile-tree-node.is-leaf.is-audiophile-friendly circle {
  fill: #4f8dff;
  stroke: rgba(180, 210, 255, 0.95);
  stroke-width: 1.55;
}

.home-audiophile-tree-node.is-leaf.is-music-benchmark circle {
  fill: #f0b84f;
  stroke: rgba(255, 225, 156, 0.95);
  stroke-width: 1.55;
}

.home-audiophile-tree-node.is-leaf.is-audiophile-benchmark circle {
  fill: #ff6f5f;
  stroke: rgba(255, 213, 206, 0.98);
  stroke-width: 1.8;
}

.home-audiophile-tree-node.is-leaf.is-audiophile-friendly .home-audiophile-tree-label {
  fill: #2f5fba;
}

.home-audiophile-tree-node.is-leaf.is-music-benchmark .home-audiophile-tree-label {
  fill: #8a5b08;
}

.home-audiophile-tree-node.is-leaf.is-audiophile-benchmark .home-audiophile-tree-label {
  fill: #b64235;
}

html[data-theme="dark"] .home-audiophile-tree-node.is-leaf.is-audiophile-friendly .home-audiophile-tree-label {
  fill: #c9dcff;
}

html[data-theme="dark"] .home-audiophile-tree-node.is-leaf.is-music-benchmark .home-audiophile-tree-label {
  fill: #ffe2a4;
}

html[data-theme="dark"] .home-audiophile-tree-node.is-leaf.is-audiophile-benchmark .home-audiophile-tree-label {
  fill: #ffd1ca;
}

.home-audiophile-tree-node.is-selectable {
  cursor: pointer;
  pointer-events: auto;
}

.home-audiophile-tree-node.is-selectable circle,
.home-audiophile-tree-node.is-selectable text {
  pointer-events: auto;
}

.home-audiophile-tree-hit-target {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.home-audiophile-tree-node.is-selected circle,
.home-audiophile-tree-node.is-selectable:hover circle {
  stroke-width: 2;
  stroke: rgba(255, 255, 255, 0.98);
}

.home-audiophile-tree-node.is-selected .home-audiophile-tree-label,
.home-audiophile-tree-node.is-selectable:hover .home-audiophile-tree-label {
  font-weight: 700;
}

.home-audiophile-tree-label {
  fill: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  paint-order: stroke;
  stroke: rgba(255, 252, 248, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
  user-select: none;
  -webkit-user-select: none;
}

.home-audiophile-tree-label.depth-0 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.home-audiophile-tree-label.depth-1 {
  font-size: 0.9rem;
  font-weight: 700;
}

.home-audiophile-tree-label.depth-2 {
  font-size: 0.84rem;
}

.home-audiophile-sunburst-arc {
  stroke: rgba(255, 255, 255, 0.68);
  stroke-width: 1;
  transition: fill-opacity 160ms ease;
}

.home-audiophile-sunburst-label {
  fill: var(--text);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-audiophile-sunburst-label.depth-1 {
  font-size: 0.72rem;
  font-weight: 700;
}

.home-audiophile-sunburst-label.depth-2 {
  font-size: 0.67rem;
}

.home-audiophile-sunburst-center circle {
  fill: rgba(255, 255, 255, 0.6);
  stroke: rgba(239, 82, 65, 0.14);
  stroke-width: 1.2;
}

.home-audiophile-sunburst-center-label {
  fill: var(--text);
}

.home-audiophile-sunburst-center-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.home-audiophile-sunburst-center-hint {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
}

@media (max-width: 767px) {
  .home-why-copy h2 {
    max-width: none;
  }

  .home-why-proof-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-audiophile-browser-shell {
    gap: 0.85rem;
  }

  .home-audiophile-filter-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .home-audiophile-filter {
    flex: 0 0 auto;
  }

  .home-audiophile-tree-stage {
    width: 100%;
    max-width: 100%;
    min-height: auto;
  }

  .home-audiophile-tree-canvas {
    min-height: 100%;
  }

  .home-audiophile-tree-stage .home-audiophile-release-detail-panel {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-height: none;
    min-height: clamp(16rem, 34vw, 20rem);
    margin: 0 auto;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .home-audiophile-tree-stage .home-audiophile-release-detail-panel:not(.is-visible) {
    display: none;
  }

  .home-audiophile-tree-stage .home-audiophile-release-detail-panel .collaboration-detail-empty,
  .home-audiophile-tree-stage .home-audiophile-release-detail-panel .collaboration-release-detail-card {
    min-height: 0;
  }

  .home-section-heading h3 {
    max-width: none;
  }

  .home-instrument-tree-stage {
    width: 100%;
    max-width: 100%;
    height: clamp(22rem, 44vw, 38rem);
    min-height: clamp(22rem, 44vw, 38rem);
    touch-action: none;
  }

  .home-instrument-filter-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 0.15rem;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .home-instrument-filter {
    flex: 0 0 auto;
  }

  .home-instrument-cluster-svg {
    touch-action: none;
    cursor: default;
  }

  .home-instrument-tree-stage .home-instrument-detail-panel {
    position: static;
    right: auto;
    bottom: auto;
    z-index: auto;
    width: 100%;
    max-height: none;
    min-height: auto;
    margin: 0 auto;
    overflow: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .home-instrument-tree-stage .home-instrument-detail-panel:not(.is-visible) {
    display: none;
  }

  .home-featured-discovery-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-discovery-card {
    min-height: auto;
  }
}

@media (min-width: 1280px) {
  .home-audiophile-tree-stage,
  .home-audiophile-release-detail-panel {
    width: min(100%, 84rem);
  }

  .home-audiophile-tree-stage {
    width: min(100%, 84rem);
  }

  .home-instrument-tree-stage,
  .home-instrument-detail-panel {
    width: min(100%, 84rem);
  }

  .home-featured-discovery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

html[data-theme="dark"] .home-audiophile-tree-stage {
  border-color: rgba(239, 82, 65, 0.18);
  background:
    radial-gradient(circle at center, rgba(239, 82, 65, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(42, 31, 28, 0.94), rgba(29, 24, 22, 0.98));
}

html[data-theme="dark"] .home-featured-spotlight-card {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 109, 92, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(42, 27, 24, 0.94), rgba(27, 27, 27, 0.96));
  border-color: rgba(255, 109, 92, 0.18);
}

html[data-theme="dark"] .home-featured-spotlight-evidence {
  background: rgba(255, 109, 92, 0.08);
  border-color: rgba(255, 109, 92, 0.18);
}

html[data-theme="dark"] .home-featured-spotlight-evidence p {
  color: #f4f0ec;
}

html[data-theme="dark"] .home-featured-spotlight-chart-shell,
html[data-theme="dark"] .home-featured-spotlight-footer-actions {
  border-top-color: rgba(255, 109, 92, 0.14);
}

html[data-theme="dark"] .home-why-proof-card {
  background:
    radial-gradient(circle at 86% 14%, rgba(239, 82, 65, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(42, 31, 28, 0.92), rgba(29, 24, 22, 0.98));
  border-color: rgba(239, 82, 65, 0.18);
}

html[data-theme="dark"] .home-start-guide-link {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
  border-color: rgba(239, 82, 65, 0.18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .home-start-guide-link:hover,
html[data-theme="dark"] .home-start-guide-link:focus,
html[data-theme="dark"] .home-start-guide-link:focus-visible {
  background: color-mix(in srgb, var(--accent-surface-strong) 92%, transparent);
  border-color: rgba(255, 132, 115, 0.34);
}

html[data-theme="dark"] .home-start-guide-visual {
  color: color-mix(in srgb, var(--accent-text) 70%, white 30%);
}

@media (prefers-reduced-motion: reduce) {
  .home-start-guide-visual,
  .home-start-guide-visual .guided-scene,
  .home-start-guide-visual .guided-path--flow,
  .home-start-guide-visual .guided-band--flow,
  .home-start-guide-visual .guided-node--pulse,
  .home-start-guide-visual .guided-node--soft,
  .home-start-guide-visual .guided-node--ambient {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  html[data-theme="dark"] .home-start-guide-link:hover,
  html[data-theme="dark"] .home-start-guide-link:focus,
  html[data-theme="dark"] .home-start-guide-link:focus-visible {
    border-color: rgba(255, 132, 115, 0.34);
    background: color-mix(in srgb, var(--accent-surface-strong) 88%, transparent) !important;
  }
}

html[data-theme="dark"] .home-featured-discovery-card {
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 82, 65, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(42, 31, 28, 0.96), rgba(29, 24, 22, 0.98));
  border-color: rgba(239, 82, 65, 0.2);
}

html[data-theme="dark"] .home-instrument-tree-stage {
  border-color: rgba(239, 82, 65, 0.18);
  background:
    radial-gradient(circle at 62% 48%, var(--home-instrument-accent-soft, rgba(239, 82, 65, 0.22)), transparent 34%),
    linear-gradient(180deg, rgba(42, 31, 28, 0.96), rgba(29, 24, 22, 0.98));
}

html[data-theme="dark"] .home-instrument-cluster-node circle {
  stroke: rgba(42, 31, 28, 0.96);
}

html[data-theme="dark"] .home-instrument-cluster-label {
  stroke: rgba(33, 24, 22, 0.96);
}

html[data-theme="dark"] .home-instrument-seed-link {
  background: color-mix(in srgb, var(--detail-surface-muted) 88%, transparent);
  border-color: rgba(239, 82, 65, 0.2);
}

html[data-theme="dark"] .home-instrument-seed-link:hover {
  background: color-mix(in srgb, var(--detail-surface) 92%, transparent);
  border-color: rgba(239, 82, 65, 0.32);
}

html[data-theme="dark"] .home-audiophile-sunburst-arc {
  stroke: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .home-audiophile-sunburst-center circle {
  fill: rgba(37, 29, 26, 0.74);
  stroke: rgba(239, 82, 65, 0.18);
}

html[data-theme="dark"] .home-audiophile-tree-node circle {
  stroke: rgba(42, 31, 28, 0.96);
}

html[data-theme="dark"] .home-audiophile-tree-label {
  stroke: rgba(33, 24, 22, 0.96);
}

@keyframes home-landing-search-aura {
  0% { transform: translate3d(-1.5%, -1%, 0) scale(0.98); }
  50% { transform: translate3d(1.5%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(0.5%, -1.8%, 0) scale(1); }
}


/* Home launchpad */
.home-landing-hero {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.home-landing-hero-inner {
  width: 100%;
  margin: 0 auto;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  justify-items: center;
  text-align: center;
}

.home-landing-copy {
  display: grid;
  gap: 0.72rem;
  justify-items: center;
}

.home-landing-hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  text-align: center;
}

.home-landing-hero p {
  max-width: 34rem;
  margin: 0 auto;
}

.home-landing-search-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: grid;
  gap: 0.9rem;
  padding: clamp(0.95rem, 2vw, 1.25rem);
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background: var(--panel);
  overflow: visible;
}

.home-landing-search-panel::before {
  content: "";
  position: absolute;
  inset: -32% -14%;
  z-index: -1;
  opacity: 0.9;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 82, 65, 0.14), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(98, 160, 255, 0.16), transparent 32%),
    radial-gradient(circle at 56% 100%, rgba(243, 187, 87, 0.12), transparent 38%);
  filter: blur(18px);
  animation: home-landing-search-aura 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-landing-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.home-landing-search-input {
  position: relative;
  min-width: 0;
}

.home-live-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  right: 0;
  z-index: 260;
  display: grid;
  gap: 0.35rem;
  max-height: min(24rem, 52vh);
  padding: 0.45rem;
  overflow-y: auto;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.home-live-search-results.is-hidden {
  display: none;
}

.home-live-search-result {
  display: grid;
  gap: 0.26rem;
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.home-live-search-result:hover,
.home-live-search-result.is-active {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.08);
}

.home-live-search-result-title {
  font-weight: 700;
  line-height: 1.18;
}

.home-live-search-result-meta {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.home-live-search-result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin-top: 0.08rem;
}

.home-live-search-result-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.08rem 0.45rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 999px;
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
}

.home-live-search-empty {
  padding: 0.9rem 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-landing-search-input .form-group {
  margin: 0;
}

.home-landing-search-input .form-control {
  min-height: 3.5rem;
  padding-left: 2.9rem;
  padding-right: 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  background: var(--subtle-surface);
  border-color: var(--border);
}

.home-landing-search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--muted);
  z-index: 2;
  pointer-events: none;
}


.home-landing-search-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.home-landing-search-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: 0.22rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--subtle-surface);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.home-landing-search-type.is-live {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.04);
  color: var(--fg);
}

.home-landing-search-type.is-active {
  border-color: rgba(239, 82, 65, 0.52);
  background: linear-gradient(180deg, rgba(239, 82, 65, 0.94), rgba(217, 66, 51, 0.94));
  color: #fff8f6;
  box-shadow: 0 10px 22px rgba(239, 82, 65, 0.18);
  transform: translateY(-1px);
}

.home-landing-search-type.is-active::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

html[data-theme="dark"] .home-landing-search-panel::before {
  opacity: 1;
  background:
    radial-gradient(circle at 18% 22%, rgba(239, 82, 65, 0.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(98, 160, 255, 0.2), transparent 32%),
    radial-gradient(circle at 56% 100%, rgba(243, 187, 87, 0.14), transparent 38%);
}

@media (min-width: 768px) {
  .home-landing-search-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) and (orientation: portrait) {
  .home-landing-search-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.album-audiophile-notes-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(239, 82, 65, 0.16);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 82, 65, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.55);
}

.album-audiophile-notes-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.8rem;
}

.album-audiophile-notes-verdict-wrap {
  display: grid;
  gap: 0.16rem;
}

.album-audiophile-notes-verdict-wrap h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.album-audiophile-score-pill {
  display: grid;
  gap: 0.12rem;
  min-width: 7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(239, 82, 65, 0.18);
  border-radius: 0.9rem;
  background: rgba(239, 82, 65, 0.06);
  text-align: right;
}

.album-audiophile-score-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.album-audiophile-score-pill strong {
  color: var(--accent-deep);
  font-size: 1.1rem;
  line-height: 1;
}

.album-audiophile-summary,
.album-audiophile-inline-note,
.album-audiophile-closing-note {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.album-audiophile-closing-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.album-audiophile-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.album-audiophile-notes-section {
  display: grid;
  gap: 0.35rem;
}

.album-audiophile-notes-section h5 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.album-audiophile-notes-list {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--text);
}

.album-audiophile-notes-list li {
  line-height: 1.45;
}

.album-audiophile-notes-empty {
  color: var(--muted);
}

.album-audiophile-notes-card.status-showcase {
  border-color: rgba(239, 82, 65, 0.28);
}

.album-audiophile-notes-card.status-not_special,
.album-audiophile-notes-card.status-insufficient,
.album-audiophile-notes-card.status-error {
  background:
    radial-gradient(circle at 100% 0%, rgba(95, 95, 92, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.48);
}

html[data-theme="dark"] .album-audiophile-notes-card {
  border-color: rgba(239, 82, 65, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(239, 82, 65, 0.12), transparent 32%),
    rgba(23, 18, 18, 0.72);
}

html[data-theme="dark"] .album-audiophile-notes-verdict-wrap h4,
html[data-theme="dark"] .album-audiophile-summary,
html[data-theme="dark"] .album-audiophile-inline-note,
html[data-theme="dark"] .album-audiophile-notes-list {
  color: #f4ebe5;
}

html[data-theme="dark"] .album-audiophile-score-pill {
  border-color: rgba(239, 82, 65, 0.2);
  background: rgba(239, 82, 65, 0.08);
}

html[data-theme="dark"] .album-audiophile-score-pill strong,
html[data-theme="dark"] .album-audiophile-notes-section h5 {
  color: #ff9a86;
}

html[data-theme="dark"] .album-audiophile-score-label,
html[data-theme="dark"] .album-audiophile-closing-note,
html[data-theme="dark"] .album-audiophile-notes-empty {
  color: rgba(244, 235, 229, 0.72);
}

html[data-theme="dark"] .album-audiophile-notes-card.status-not_special,
html[data-theme="dark"] .album-audiophile-notes-card.status-insufficient,
html[data-theme="dark"] .album-audiophile-notes-card.status-error {
  background:
    radial-gradient(circle at 100% 0%, rgba(120, 120, 120, 0.08), transparent 32%),
    rgba(23, 18, 18, 0.68);
}

@media (max-width: 720px) {
  .album-audiophile-notes-grid {
    grid-template-columns: 1fr;
  }

  .album-audiophile-score-pill {
    text-align: left;
  }
}

.hero-related-data-row td {
  vertical-align: top;
}
.hero-related-entity-cell {
  position: relative;
}
.hero-related-entity-pill-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
}
.hero-related-entity-pill-item {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 0;
}
.hero-related-entity-pill {
  max-width: 18rem;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 82, 65, 0.22);
  background: transparent;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.hero-related-entity-pill:hover,
.hero-related-entity-pill:focus {
  border-color: rgba(239, 82, 65, 0.4);
  background: rgba(239, 82, 65, 0.08);
  outline: none;
}
.hero-related-entity-pill.is-selected,
.hero-related-entity-pill-item.is-selected .hero-related-entity-pill {
  border-color: rgba(239, 82, 65, 0.42);
  background: rgba(239, 82, 65, 0.12);
  color: var(--accent-strong);
}
.hero-related-entity-pill-label {
  display: block;
}
.hero-related-entity-pill-expanded {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 4;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  width: min(18rem, calc(100vw - 2rem));
  min-width: 12.5rem;
  max-width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 82, 65, 0.22);
  background: var(--subtle-surface-strong);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  color: var(--text);
  text-align: left;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.hero-related-entity-pill-item.is-selected .hero-related-entity-pill-expanded {
  display: flex;
}
.hero-related-entity-pill-item.is-flip-up .hero-related-entity-pill-expanded {
  top: auto;
  bottom: calc(100% + 0.45rem);
}
.hero-related-entity-pill-item.is-align-right .hero-related-entity-pill-expanded {
  left: auto;
  right: 0;
}
.hero-related-entity-pill-title {
  font-size: 1rem;
  line-height: 1.35;
}
.hero-related-entity-pill-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-related-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero-related-row-actions::-webkit-scrollbar {
  display: none;
}
.hero-related-row-actions .collaboration-action-button {
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  font-size: 0.82rem;
}
.hero-related-row-actions .collaboration-action-button .svg-inline--fa,
.hero-related-row-actions .collaboration-action-button .fa-icon,
.hero-related-row-actions .collaboration-action-button svg {
  width: 0.9rem;
  height: 0.9rem;
}
html[data-theme="dark"] .hero-related-row-actions .collaboration-action-button {
  background: rgba(20, 16, 16, 0.82);
}

.hero-related-table .hero-related-entity-pill-list {
  gap: 0.25rem 0.45rem;
}

.hero-related-table .hero-related-entity-pill {
  max-width: min(18rem, 100%);
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-size: inherit;
  font-weight: 650;
  line-height: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgba(239, 82, 65, 0.35);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.hero-related-table .hero-related-entity-pill:hover,
.hero-related-table .hero-related-entity-pill:focus,
.hero-related-table .hero-related-entity-pill.is-selected,
.hero-related-table .hero-related-entity-pill-item.is-selected .hero-related-entity-pill {
  border-color: transparent;
  background: transparent;
  color: var(--accent-deep);
  text-decoration-color: rgba(239, 82, 65, 0.7);
  box-shadow: none;
  outline: none;
}

.hero-related-table .hero-related-entity-pill:focus-visible {
  outline: 2px solid rgba(239, 82, 65, 0.32);
  outline-offset: 0.18rem;
  border-radius: 0.25rem;
}

html[data-theme="dark"] .hero-related-table .hero-related-entity-pill {
  color: #ffad9d;
  text-decoration-color: rgba(255, 154, 134, 0.42);
}

html[data-theme="dark"] .hero-related-table .hero-related-entity-pill:hover,
html[data-theme="dark"] .hero-related-table .hero-related-entity-pill:focus,
html[data-theme="dark"] .hero-related-table .hero-related-entity-pill.is-selected,
html[data-theme="dark"] .hero-related-table .hero-related-entity-pill-item.is-selected .hero-related-entity-pill {
  color: #ffd0c6;
  text-decoration-color: rgba(255, 154, 134, 0.78);
}

@media (max-width: 720px) {
  .hero-related-table-slot {
    padding: 0.7rem 0.55rem;
  }

  .hero-related-table-copy-with-action {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .hero-related-table-copy .must-listen-image-share-button {
    justify-self: start;
  }

  .hero-related-table th,
  .hero-related-table td {
    padding: 0.64rem 0.68rem;
  }

  .hero-related-table .hero-related-entity-pill {
    max-width: 11.5rem;
    font-size: 0.9rem;
    line-height: 1.32;
  }

  .hero-related-table .hero-related-entity-pill-expanded {
    min-width: 12rem;
    width: min(16rem, calc(100vw - 2rem));
    padding: 0.82rem 0.9rem;
  }
}

/* Home hero focus refresh */
.home-landing-hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: stretch;
  justify-items: stretch;
  margin-top: 0;
  padding: clamp(4.5rem, 10vh, 6.5rem) clamp(1.2rem, 4vw, 3rem) clamp(3rem, 7vh, 4.5rem);
  background: linear-gradient(180deg, #0b0b0c, #1a1a1c) !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
  isolation: isolate;
}

.home-landing-graph-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  grid-row: 1;
  pointer-events: none;
  display: grid;
  grid-template-rows: 1.2fr 1fr 1.2fr;
  align-items: stretch;
  overflow: hidden;
}

.home-landing-graph-stack {
  display: none;
}

.home-landing-graph {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  display: block;
  overflow: hidden;
}

.home-landing-graph.is-multi-layer {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.home-landing-graph-layer {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-landing-graph.is-multi-layer .home-landing-graph-layer {
  width: 0;
}

.home-landing-graph svg {
  width: 100%;
  height: 100%;
  display: block;
  min-width: 0;
}

.home-landing-graph-link {
  stroke: var(--chart-node-stroke);
  stroke-width: 1.1;
  stroke-opacity: 0.54;
  stroke-linecap: round;
}

.home-landing-graph-node {
  fill: color-mix(in oklab, var(--chart-node-fill) 78%, white 8%);
  stroke: var(--chart-node-stroke);
  stroke-width: 1.2;
  stroke-opacity: 0.78;
}

html[data-theme="light"] .home-landing-graph-link {
  stroke: rgba(23, 29, 43, 0.42);
}

html[data-theme="light"] .home-landing-graph-node {
  fill: color-mix(in oklab, var(--chart-node-fill) 84%, #111111 16%);
  stroke: #111111;
}

.home-landing-hero-inner {
  position: relative;
  z-index: 2;
  grid-row: 1;
  align-self: center;
  width: min(100%, var(--layout-max-width));
  margin: 0 auto;
  display: grid;
  gap: clamp(1.3rem, 3vh, 2rem);
  justify-items: stretch;
  text-align: center;
}

.home-landing-hero::before,
.home-landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-landing-hero::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(255, 255, 255, 0.035) calc(10% - 1px),
      rgba(255, 255, 255, 0.035) 10%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent calc(16.66% - 1px),
      rgba(255, 255, 255, 0.03) calc(16.66% - 1px),
      rgba(255, 255, 255, 0.03) 16.66%
    );
  opacity: 0.55;
}

.home-landing-hero::after {
  left: 50%;
  top: 43%;
  right: auto;
  bottom: auto;
  width: min(54rem, 82vw);
  height: min(54rem, 82vw);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(255, 244, 240, 0.72) 0%, rgba(255, 244, 240, 0.28) 28%, rgba(239, 82, 65, 0.12) 52%, rgba(91, 141, 239, 0.08) 64%, rgba(0, 0, 0, 0) 76%);
  filter: blur(26px);
  opacity: 0.95;
}

.home-landing-copy {
  width: min(100%, 44rem);
  display: grid;
  gap: 0.95rem;
  justify-items: center;
  justify-self: center;
  max-width: none;
}

.home-landing-kicker {
  color: #ef5241;
  letter-spacing: 0.22em;
}

.home-landing-hero h1 {
  max-width: 9ch;
  margin: 0;
  text-align: center;
  font-size: clamp(3.2rem, 2.1rem + 5vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  color: #fff1ed;
}

.home-landing-lead {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 238, 233, 0.82);
  font-size: clamp(1.05rem, 0.98rem + 0.28vw, 1.24rem);
  line-height: 1.48;
}

.home-landing-search-stage {
  width: 100%;
  max-width: var(--layout-max-width);
  justify-self: stretch;
  margin-top: 0.55rem;
}

.home-landing-search-panel {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: clamp(1.2rem, 2vw, 1.8rem) clamp(1rem, 2vw, 1.5rem) clamp(1.1rem, 2vw, 1.35rem);
  border: 1px solid rgba(239, 82, 65, 0.14);
  border-radius: 1.3rem;
  background: rgba(24, 20, 22, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.home-landing-search-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(239, 82, 65, 0.06), transparent 42%),
    linear-gradient(315deg, rgba(91, 141, 239, 0.06), transparent 46%);
  pointer-events: none;
  z-index: -1;
  filter: none;
  animation: none;
}

.home-landing-search-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.home-landing-search-input .form-control {
  min-height: 3.5rem;
  padding-left: 3rem;
  padding-right: 1rem;
  border-radius: 1rem;
  color: #fff1ed;
  background: rgba(15, 13, 14, 0.62);
  border-color: rgba(255, 255, 255, 0.08);
}

.home-landing-search-input .form-control::placeholder {
  color: rgba(255, 238, 233, 0.52);
}

.home-landing-search-input .form-control:focus {
  border-color: rgba(239, 82, 65, 0.34);
  box-shadow: 0 0 0 0.2rem rgba(239, 82, 65, 0.1);
}

.home-landing-search-icon {
  color: rgba(255, 238, 233, 0.62);
}

.home-landing-search-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.home-landing-search-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.22rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 238, 233, 0.74);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.home-landing-search-type.is-live {
  border-color: rgba(239, 82, 65, 0.2);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 238, 233, 0.78);
}

.home-landing-search-type.is-active {
  border-color: rgba(255, 173, 159, 0.42);
  background: linear-gradient(180deg, rgba(239, 82, 65, 0.94), rgba(196, 54, 40, 0.92));
  box-shadow: 0 14px 28px rgba(239, 82, 65, 0.2);
  transform: translateY(-1px);
}

.home-landing-search-type.is-active::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.home-landing-search-panel .home-landing-kicker {
  margin-bottom: -0.1rem;
}

.home-landing-search-panel .home-landing-lead {
  max-width: 42rem;
  margin-top: -0.2rem;
}

.home-landing-hero .home-live-search-results {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(18, 16, 17, 0.98);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
}

.home-landing-hero .home-live-search-result {
  color: #fff1ed;
}

.home-landing-hero .home-live-search-result:hover,
.home-landing-hero .home-live-search-result.is-active {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.12);
}

.home-landing-hero .home-live-search-result-meta,
.home-landing-hero .home-live-search-empty {
  color: rgba(255, 238, 233, 0.66);
}

.home-landing-hero .home-live-search-result-tag {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.12);
  color: #ffb3a8;
}

@media (max-width: 767px) {
  .home-landing-hero {
    min-height: calc(100svh - var(--mobile-top-bar-height) - 0.2rem);
    height: calc(100svh - var(--mobile-top-bar-height) - 0.2rem);
    max-height: calc(100svh - var(--mobile-top-bar-height) - 0.2rem);
    padding: 0.65rem var(--shell-pad-left) 0.72rem;
    align-items: stretch;
  }

  .home-landing-graph-stack {
    grid-template-rows: 1.8fr 0.9fr 1.8fr;
  }

  .home-landing-hero-inner {
    justify-self: stretch;
    align-self: center;
    width: 100%;
    max-width: var(--layout-max-width);
    padding-inline: 0;
  }

  .home-landing-hero h1 {
    font-size: clamp(2.6rem, 1.9rem + 6vw, 4.4rem);
  }

  .home-landing-search-stage {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    align-self: center;
  }

  .home-landing-search-panel {
    width: 100%;
    background: color-mix(in oklab, var(--panel) 72%, transparent 28%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: color-mix(in oklab, var(--border) 84%, transparent 16%);
    padding: 0.9rem 0.95rem 1rem;
  }

  .home-landing-graph {
    opacity: 0.9;
  }

}

/* Home hero full-bleed header */
.journey-header:has(.home-landing-hero) {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 0;
  padding-top: 0;
}

.home-landing-hero-inner {
  width: 100%;
  max-width: var(--layout-max-width);
}

.home-landing-search-stage {
  width: min(100%, var(--layout-max-width));
}

/* Home hero width alignment and light theme */
.home-landing-copy {
  width: 100%;
  max-width: var(--layout-max-width);
  justify-self: stretch;
}

html[data-theme="light"] .home-landing-hero {
  background: linear-gradient(180deg, #fbfbfa, #f1f1ee) !important;
}

html[data-theme="light"] .home-landing-hero::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(23, 29, 43, 0.04) calc(10% - 1px),
      rgba(23, 29, 43, 0.04) 10%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent calc(16.66% - 1px),
      rgba(23, 29, 43, 0.035) calc(16.66% - 1px),
      rgba(23, 29, 43, 0.035) 16.66%
    );
  opacity: 0.72;
}

html[data-theme="light"] .home-landing-hero::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 244, 240, 0.5) 26%, rgba(239, 82, 65, 0.12) 50%, rgba(91, 141, 239, 0.08) 64%, rgba(0, 0, 0, 0) 78%);
}

html[data-theme="light"] .home-landing-hero h1 {
  color: #171717;
}

html[data-theme="light"] .home-landing-lead {
  color: rgba(23, 29, 43, 0.72);
}

html[data-theme="light"] .home-landing-search-panel {
  border-color: rgba(23, 29, 43, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .home-landing-search-panel .home-landing-kicker {
  color: var(--accent-deep);
}

html[data-theme="light"] .home-landing-search-input .form-control {
  color: #171717;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(23, 29, 43, 0.1);
}

html[data-theme="light"] .home-landing-search-input .form-control::placeholder {
  color: rgba(23, 29, 43, 0.5);
}

html[data-theme="light"] .home-landing-search-icon {
  color: rgba(23, 29, 43, 0.52);
}

html[data-theme="light"] .home-landing-search-type {
  border-color: rgba(23, 29, 43, 0.1);
  background: rgba(255, 255, 255, 0.66);
  color: rgba(23, 29, 43, 0.74);
}

html[data-theme="light"] .home-landing-search-type.is-live {
  border-color: rgba(239, 82, 65, 0.16);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(23, 29, 43, 0.76);
}

html[data-theme="light"] .home-landing-search-type.is-active {
  border-color: rgba(239, 82, 65, 0.56);
  background: linear-gradient(180deg, rgba(239, 82, 65, 0.96), rgba(222, 69, 53, 0.94));
  color: #fff8f6;
  box-shadow: 0 14px 30px rgba(239, 82, 65, 0.16);
}

html[data-theme="light"] .home-landing-hero .home-live-search-results {
  border-color: rgba(23, 29, 43, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .home-landing-hero .home-live-search-result {
  color: #171717;
}

html[data-theme="light"] .home-landing-hero .home-live-search-result:hover,
html[data-theme="light"] .home-landing-hero .home-live-search-result.is-active {
  border-color: rgba(239, 82, 65, 0.18);
  background: rgba(239, 82, 65, 0.08);
}

html[data-theme="light"] .home-landing-hero .home-live-search-result-meta,
html[data-theme="light"] .home-landing-hero .home-live-search-empty {
  color: rgba(23, 29, 43, 0.6);
}

html[data-theme="light"] .home-landing-hero .home-live-search-result-tag {
  border-color: rgba(239, 82, 65, 0.16);
  background: rgba(239, 82, 65, 0.08);
  color: var(--accent-deep);
}

/* Home hero text width */
.home-landing-hero h1 {
  width: 100%;
  max-width: none;
  text-wrap: balance;
}

.home-landing-lead {
  width: 100%;
  max-width: none;
  text-wrap: pretty;
}

/* Home hero background blend */
.home-landing-hero {
  background: transparent !important;
}

.home-landing-hero::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(23, 29, 43, 0.035) calc(10% - 1px),
      rgba(23, 29, 43, 0.035) 10%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent calc(16.66% - 1px),
      rgba(23, 29, 43, 0.03) calc(16.66% - 1px),
      rgba(23, 29, 43, 0.03) 16.66%
    );
  opacity: 0.42;
}

.home-landing-hero::after {
  background:
    radial-gradient(circle, rgba(239, 82, 65, 0.08) 0%, rgba(255, 244, 240, 0.06) 32%, rgba(91, 141, 239, 0.05) 54%, rgba(0, 0, 0, 0) 76%);
  opacity: 0.78;
}

html[data-theme="dark"] .home-landing-hero {
  background: transparent !important;
}

html[data-theme="dark"] .home-landing-hero::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(255, 255, 255, 0.032) calc(10% - 1px),
      rgba(255, 255, 255, 0.032) 10%
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent calc(16.66% - 1px),
      rgba(255, 255, 255, 0.026) calc(16.66% - 1px),
      rgba(255, 255, 255, 0.026) 16.66%
    );
  opacity: 0.4;
}

html[data-theme="dark"] .home-landing-hero::after {
  background:
    radial-gradient(circle, rgba(239, 82, 65, 0.1) 0%, rgba(255, 244, 240, 0.08) 28%, rgba(91, 141, 239, 0.07) 50%, rgba(0, 0, 0, 0) 76%);
  opacity: 0.84;
}

html[data-theme="light"] .home-landing-hero {
  background: transparent !important;
}

/* Shared interactive pill treatment */
.home-landing-search-type,
.home-feature-legend-item,
.core-variant-tab-button,
.discography-filter-pill,
.collaboration-pill,
.collaboration-release-pill,
.home-featured-artist-chip-button {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.home-feature-legend-item:hover,
.home-feature-legend-item:focus-visible,
.core-variant-tab-button:hover,
.core-variant-tab-button:focus-visible,
.discography-filter-pill:hover,
.discography-filter-pill:focus-visible,
.collaboration-pill:hover,
.collaboration-pill:focus-visible,
.collaboration-release-pill:hover,
.collaboration-release-pill:focus-visible,
.home-featured-artist-chip-button:hover,
.home-featured-artist-chip-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(239, 82, 65, 0.08);
}

.home-landing-search-type.is-active,
.home-feature-legend-item.is-selected,
.core-variant-tab-button.is-selected,
.discography-filter-pill.is-selected,
.collaboration-pill.is-selected,
.collaboration-release-pill.is-selected,
.home-featured-artist-chip-button.is-selected {
  border-color: rgba(239, 82, 65, 0.52);
  background: linear-gradient(180deg, rgba(239, 82, 65, 0.94), rgba(217, 66, 51, 0.94));
  color: #fff8f6;
  box-shadow: 0 12px 26px rgba(239, 82, 65, 0.18);
  transform: translateY(-1px);
}

.discography-filter-pill.is-selected .discography-filter-count,
.collaboration-pill.is-selected .collaboration-pill-count,
.collaboration-release-pill.is-selected .collaboration-release-pill-meta {
  color: rgba(255, 248, 246, 0.82);
}

html[data-theme="dark"] .home-feature-legend-item:hover,
html[data-theme="dark"] .home-feature-legend-item:focus-visible,
html[data-theme="dark"] .core-variant-tab-button:hover,
html[data-theme="dark"] .core-variant-tab-button:focus-visible,
html[data-theme="dark"] .discography-filter-pill:hover,
html[data-theme="dark"] .discography-filter-pill:focus-visible,
html[data-theme="dark"] .collaboration-pill:hover,
html[data-theme="dark"] .collaboration-pill:focus-visible,
html[data-theme="dark"] .collaboration-release-pill:hover,
html[data-theme="dark"] .collaboration-release-pill:focus-visible,
html[data-theme="dark"] .home-featured-artist-chip-button:hover,
html[data-theme="dark"] .home-featured-artist-chip-button:focus-visible {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .home-landing-search-type.is-active,
html[data-theme="dark"] .home-feature-legend-item.is-selected,
html[data-theme="dark"] .core-variant-tab-button.is-selected,
html[data-theme="dark"] .discography-filter-pill.is-selected,
html[data-theme="dark"] .collaboration-pill.is-selected,
html[data-theme="dark"] .collaboration-release-pill.is-selected,
html[data-theme="dark"] .home-featured-artist-chip-button.is-selected {
  border-color: rgba(255, 173, 159, 0.42);
  background: linear-gradient(180deg, rgba(239, 82, 65, 0.94), rgba(196, 54, 40, 0.92));
  color: #fff1ed;
  box-shadow: 0 14px 28px rgba(239, 82, 65, 0.2);
}

.collaboration-caption-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.36);
}

.collaboration-caption-sheet {
  width: min(36rem, 100%);
  max-height: min(76vh, 42rem);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel-solid);
  color: var(--text);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.collaboration-caption-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.collaboration-caption-sheet-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collaboration-caption-sheet h2 {
  margin: 0.15rem 0 0;
  font-size: 1.45rem;
  line-height: 1.05;
}

.collaboration-caption-sheet-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.collaboration-caption-sheet-textarea {
  width: 100%;
  min-height: 15rem;
  max-height: 42vh;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  font: 600 0.98rem/1.38 var(--font-body);
  resize: vertical;
}

.collaboration-caption-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.collaboration-caption-sheet-copy-button,
.collaboration-caption-sheet-primary-button,
.collaboration-caption-sheet-close {
  border: 1px solid rgba(239, 82, 65, 0.34);
  border-radius: 10px;
  background: rgba(239, 82, 65, 0.1);
  color: var(--accent);
  font-weight: 800;
  padding: 0.68rem 1rem;
}

.collaboration-caption-sheet-primary-button {
  background: var(--accent);
  color: #fff;
}

.collaboration-caption-sheet-primary-button:disabled {
  opacity: 0.72;
}

.collaboration-caption-sheet-close {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

html[data-theme="dark"] .collaboration-caption-sheet-overlay {
  background: rgba(0, 0, 0, 0.58);
}

html[data-theme="dark"] .collaboration-caption-sheet-textarea {
  background: var(--bg-deep);
}

.collaboration-share-message {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  z-index: 2147482600;
  transform: translateX(-50%);
  padding: 0.7rem 1rem;
  border: 1px solid rgba(239, 82, 65, 0.22);
  border-radius: 999px;
  background: rgba(23, 19, 19, 0.9);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.collaboration-share-message.is-hiding {
  opacity: 0;
  transform: translate(-50%, -0.35rem);
}

@media (min-width: 720px) {
  .collaboration-caption-sheet-overlay {
    align-items: center;
  }
}
