:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #111821;
  --surface-2: #17202b;
  --line: #253241;
  --text: #edf3f8;
  --muted: #93a2b3;
  --soft: #cbd6e2;
  --teal: #2dd4bf;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --coral: #fb7185;
  --green: #86efac;
  --shadow: 0 18px 46px rgb(0 0 0 / 0.34);
  --radius: 8px;
  --gap: 12px;
  --panel-pad: 16px;
  --color-surface-base: var(--bg);
  --color-surface-raised: var(--surface);
  --color-surface-muted: var(--surface-2);
  --color-border-subtle: rgb(147 162 179 / 0.16);
  --color-accent-primary: var(--teal);
  --color-accent-secondary: var(--blue);
  --color-observed: var(--text);
  --color-derived: #a5b4fc;
  --color-estimated: #f7b267;
  --color-positive: var(--green);
  --color-warning: var(--amber);
  --color-negative: var(--coral);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--soft);
  --color-text-muted: var(--muted);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-section: clamp(24px, 4vw, 44px);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgb(45 212 191 / 0.13), transparent 28rem),
    linear-gradient(135deg, #090d12 0%, #0f151d 48%, #0b0f14 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg,
canvas {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 18px;
}

.topbar-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.82rem);
  letter-spacing: 0;
  line-height: 1.16;
}

h3 {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.muted,
.panel-head p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.export-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.export-links a {
  min-width: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--soft);
  background: rgb(17 24 33 / 0.74);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.export-links a:hover,
select:hover,
input:hover {
  border-color: rgb(45 212 191 / 0.65);
}

.language-switcher {
  display: grid;
  grid-template-columns: auto 126px;
  gap: 8px;
  align-items: center;
}

.language-switcher span {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.language-switcher select {
  min-height: 34px;
  font-size: 0.74rem;
  font-weight: 850;
}

.control-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 172px), 1fr));
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(17 24 33 / 0.72);
  box-shadow: var(--shadow);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

select,
input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  color: var(--text);
  background: #0b1118;
  outline: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 154px), 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: linear-gradient(180deg, rgb(23 32 43 / 0.94), rgb(17 24 33 / 0.92));
  animation: soft-rise 0.42s var(--ease-smooth) both;
  transition: transform 0.24s var(--ease-smooth), border-color 0.24s ease, box-shadow 0.24s ease;
}

.kpi:hover,
.detail:hover,
.profile-card:hover,
.matrix-card:hover,
.whatif-card:hover,
.priority-item:hover,
.percentile-row:hover {
  transform: translateY(-2px);
  border-color: rgb(45 212 191 / 0.44);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.kpi-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.kpi-value {
  margin-top: 8px;
  font-size: 1.78rem;
  font-weight: 900;
  line-height: 1;
}

.kpi-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(17 24 33 / 0.89);
  box-shadow: var(--shadow);
  animation: soft-rise 0.5s var(--ease-smooth) both;
}

.card,
.card--primary,
.card--secondary,
.card--metric,
.card--article,
.card--interactive {
  min-width: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  background: rgb(17 24 33 / 0.86);
}

.card--primary {
  border-color: rgb(45 212 191 / 0.28);
  background: linear-gradient(180deg, rgb(23 32 43 / 0.94), rgb(17 24 33 / 0.9));
}

.card--secondary {
  background: rgb(10 15 21 / 0.72);
}

.card--metric {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
}

.card--metric .metric-label,
.metric-card-label {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.card--metric .metric-value,
.metric-card-value {
  color: var(--color-text-primary);
  font-size: clamp(1.38rem, 2.5vw, 1.9rem);
  font-weight: 900;
  line-height: 1.08;
}

.card--metric .metric-basis,
.metric-card-basis {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

.card--metric .metric-interpretation,
.metric-card-interpretation {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.card--interactive {
  transition:
    transform 0.24s var(--ease-smooth),
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.card--interactive:hover {
  transform: translateY(-2px);
  border-color: rgb(45 212 191 / 0.44);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 16px 16px 0;
}

.panel-head.compact {
  padding: 0 0 12px;
}

.pill {
  border: 1px solid rgb(96 165 250 / 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  color: #bfdbfe;
  background: rgb(96 165 250 / 0.12);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.chart-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
}

.chart-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, transparent 0%, rgb(45 212 191 / 0.06) 44%, transparent 66%);
  transform: translateX(-130%);
  animation: map-sheen 12s var(--ease-glide) infinite;
  pointer-events: none;
}

#scatterPlot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.axis-line {
  stroke: #304052;
  stroke-width: 1;
}

.axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.grid-line {
  stroke: rgb(147 162 179 / 0.18);
  stroke-width: 1;
}

.point {
  cursor: pointer;
  stroke: rgb(237 243 248 / 0.8);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: point-float 6.2s ease-in-out infinite;
  animation-delay: var(--point-delay, 0ms);
  transition: opacity 0.2s ease, filter 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
  will-change: transform;
}

.point:hover,
.point.selected {
  opacity: 1;
  stroke: white;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgb(237 243 248 / 0.5));
}

.point-halo {
  fill: none;
  stroke: rgb(237 243 248 / 0.58);
  stroke-width: 2;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 1.8s ease-out infinite;
}

.song-panel {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-content: start;
  padding: var(--panel-pad);
}

.song-cover-wrap {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(45 212 191 / 0.22), rgb(251 191 36 / 0.2));
}

.song-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.song-meta {
  min-width: 0;
}

#selectedTitle {
  font-size: 1.15rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 8px;
  color: var(--soft);
  background: #0b1118;
  font-size: 0.68rem;
  font-weight: 800;
}

a.tag {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.tag.good {
  border-color: rgb(134 239 172 / 0.38);
  color: #bbf7d0;
}

.tag.warn {
  border-color: rgb(251 191 36 / 0.46);
  color: #fde68a;
}

.tag.hot {
  border-color: rgb(251 113 133 / 0.46);
  color: #fecdd3;
}

.selected-detail-link {
  width: fit-content;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  margin-top: 10px;
  border: 1px solid rgb(45 212 191 / 0.5);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: #dffdfa;
  background: rgb(45 212 191 / 0.12);
  font-size: 0.74rem;
  font-weight: 950;
  transition:
    transform 0.24s var(--ease-smooth),
    border-color 0.24s ease,
    background 0.24s ease;
}

.selected-detail-link:hover {
  border-color: rgb(45 212 191 / 0.78);
  background: rgb(45 212 191 / 0.18);
  transform: translateY(-1px);
}

.detail-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr));
  gap: 8px;
}

.detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
  animation: soft-rise 0.36s var(--ease-smooth) both;
  transition: transform 0.24s var(--ease-smooth), border-color 0.24s ease, box-shadow 0.24s ease;
}

.detail .label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.detail .value {
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 900;
}

.mini-head {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.histogram {
  grid-column: 1 / -1;
  display: grid;
  gap: 7px;
}

.hist-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
}

.hist-track {
  height: 9px;
  border-radius: 999px;
  background: #0b1118;
  overflow: hidden;
}

.hist-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform-origin: left center;
  animation: bar-glide 0.72s var(--ease-smooth) both;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

.insight-grid .panel {
  padding: 16px;
  min-height: 242px;
}

.rank-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.rank-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgb(37 50 65 / 0.7);
  padding-bottom: 9px;
  color: inherit;
  text-decoration: none;
  animation: soft-rise 0.36s var(--ease-smooth) both;
  transition: transform 0.24s var(--ease-smooth), background 0.24s ease, border-color 0.24s ease;
}

.rank-item:hover {
  transform: translateY(-1px);
}

.rank-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #0b1118;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-sub {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-metric {
  color: var(--soft);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.strategy-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) repeat(3, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.strategy-grid .panel {
  padding: 16px;
  min-height: 250px;
}

.win-profile-panel {
  grid-column: span 2;
}

.profile-guide-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(45 212 191 / 0.45);
  border-radius: 999px;
  padding: 7px 10px;
  color: #99f6e4;
  background: rgb(45 212 191 / 0.1);
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.profile-guide-link:hover {
  border-color: rgb(45 212 191 / 0.75);
  background: rgb(45 212 191 / 0.16);
}

.phase-panel {
  overflow: hidden;
}

.compact-table {
  max-width: 100%;
  max-height: 330px;
  overflow: auto;
}

.mini-table {
  min-width: 640px;
  font-size: 0.74rem;
}

.mini-table th,
.mini-table td {
  padding: 8px 9px;
}

.profile-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-card {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
}

.profile-name {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.profile-value {
  margin-top: 6px;
  color: var(--teal);
  font-size: 1.25rem;
  font-weight: 950;
}

.profile-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.win-profile-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  gap: 9px;
  margin-top: 12px;
}

.win-profile-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgb(37 50 65 / 0.78);
  border-radius: 8px;
  padding: 10px;
  color: inherit;
  background: #0b1118;
  text-align: left;
  cursor: pointer;
  animation: soft-rise 0.42s var(--ease-smooth) both;
  transition:
    transform 0.24s var(--ease-smooth),
    border-color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
}

.win-profile-card:hover,
.win-profile-card.active {
  border-color: rgb(45 212 191 / 0.7);
  background: rgb(45 212 191 / 0.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgb(45 212 191 / 0.08);
}

.win-profile-card.empty {
  opacity: 0.52;
}

.win-profile-topline {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.profile-index {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #0b1118;
  background: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
}

.profile-card-name {
  min-width: 0;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-chip,
.profile-strength {
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgb(251 191 36 / 0.4);
  border-radius: 999px;
  padding: 4px 8px;
  color: #fde68a;
  background: rgb(251 191 36 / 0.1);
  font-size: 0.66rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.win-profile-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.win-profile-stats strong {
  color: var(--teal);
  font-size: 1.18rem;
  font-weight: 950;
}

.win-profile-stats span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: right;
}

.profile-density-strip {
  display: grid;
  gap: 5px;
}

.profile-density {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
}

.profile-density span,
.profile-density strong {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.profile-density strong {
  color: var(--soft);
  text-align: right;
}

.profile-density-track {
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.82);
}

.profile-density-track div {
  height: 100%;
  border-radius: 999px;
}

.profile-density.top .profile-density-track div {
  background: var(--teal);
}

.profile-density.mid .profile-density-track div {
  background: var(--blue);
}

.profile-density.low .profile-density-track div {
  background: var(--coral);
}

.win-profile-detail {
  margin-top: 12px;
  border: 1px solid rgb(96 165 250 / 0.32);
  border-radius: 8px;
  padding: 12px;
  background: rgb(11 17 24 / 0.78);
}

.profile-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profile-detail-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
}

.profile-detail-title {
  margin-top: 4px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.profile-detail-reading,
.profile-advice {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.profile-advice {
  color: var(--soft);
  font-weight: 800;
}

.profile-detail-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 8px;
  margin: 11px 0;
}

.profile-detail-metrics div {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 9px;
  background: #0b1118;
}

.profile-detail-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.profile-detail-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 950;
}

.profile-examples {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.profile-examples-title {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
}

.profile-example {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 8px;
  color: var(--soft);
  background: #0b1118;
  text-align: left;
  cursor: pointer;
}

.profile-example:hover {
  border-color: rgb(45 212 191 / 0.6);
}

.profile-example span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 850;
}

.profile-example strong {
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  text-align: right;
}

.journey-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.journey-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 9px;
  background: #0b1118;
  cursor: pointer;
}

.journey-row.active {
  border-color: rgb(45 212 191 / 0.62);
  background: rgb(45 212 191 / 0.08);
}

.journey-phase {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.journey-main {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.journey-main strong {
  color: var(--text);
}

.journey-track {
  height: 6px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgb(37 50 65 / 0.8);
  overflow: hidden;
}

.journey-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--teal));
}

.journey-metric {
  color: var(--amber);
  font-size: 0.7rem;
  font-weight: 950;
  text-align: right;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

.diagnostic-grid .panel {
  padding: 16px;
  min-height: 230px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-top: 14px;
}

.sim-grid .panel {
  padding: 16px;
  min-height: 260px;
}

.whatif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 8px;
  margin-top: 12px;
}

.whatif-card {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
}

.whatif-label {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.whatif-value {
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.whatif-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.phase-cliff {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.cliff-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
}

.cliff-row.active {
  border-color: rgb(45 212 191 / 0.62);
  background: rgb(45 212 191 / 0.08);
}

.cliff-rank,
.cliff-score {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.cliff-score {
  text-align: right;
}

.cliff-title {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cliff-track {
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.8);
}

.cliff-fill {
  height: 100%;
  border-radius: 999px;
  background: rgb(251 113 133 / 0.72);
}

.cliff-fill.adv {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.verdict-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.verdict-profile {
  display: inline-block;
  width: fit-content;
  border: 1px solid rgb(45 212 191 / 0.45);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--teal);
  background: rgb(45 212 191 / 0.1);
  font-size: 0.72rem;
  font-weight: 950;
}

.verdict-item {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
}

.verdict-label {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 950;
}

.verdict-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.48;
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) minmax(230px, 0.9fr) minmax(280px, 1.15fr);
  gap: 14px;
  margin-top: 14px;
}

.scenario-grid .panel {
  padding: 16px;
  min-height: 260px;
}

.scenario-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}

.scenario-controls input {
  min-height: 36px;
}

.scenario-result {
  margin-top: 12px;
}

.scenario-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 8px;
}

.scenario-main > div,
.scenario-chip {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
}

.scenario-label {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.scenario-value {
  margin-top: 6px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 950;
}

.scenario-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.35;
}

.scenario-overtaken {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.scenario-chip {
  color: var(--soft);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 8px;
}

.target-compare {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.target-title {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.target-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
}

.target-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.target-label,
.target-delta {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 950;
}

.target-delta {
  text-align: right;
}

.target-bars {
  display: grid;
  gap: 3px;
}

.target-bar-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 52px;
  gap: 6px;
  align-items: center;
}

.target-bar-line span,
.target-bar-line strong {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.target-bar-line strong {
  color: var(--soft);
  text-align: right;
}

.target-track {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.8);
}

.target-fill {
  height: 100%;
  border-radius: 999px;
}

.target-fill.selected {
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.target-fill.target {
  background: rgb(251 191 36 / 0.78);
}

.benchmark-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.35fr) repeat(2, minmax(230px, 0.9fr));
  gap: 14px;
  margin-top: 14px;
}

.benchmark-grid .panel {
  padding: 16px;
  min-height: 260px;
}

.benchmark-panel {
  overflow: hidden;
}

.percentile-list,
.priority-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.percentile-row {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 9px;
  background: #0b1118;
}

.percentile-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 950;
}

.percentile-track {
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.8);
}

.percentile-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.percentile-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
}

.priority-target {
  display: inline-block;
  width: fit-content;
  border: 1px solid rgb(96 165 250 / 0.42);
  border-radius: 999px;
  padding: 5px 9px;
  color: #bfdbfe;
  background: rgb(96 165 250 / 0.1);
  font-size: 0.7rem;
  font-weight: 950;
}

.priority-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 9px;
  background: #0b1118;
}

.priority-rank {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 7px;
  color: var(--amber);
  background: rgb(251 191 36 / 0.12);
  font-size: 0.68rem;
  font-weight: 950;
}

.priority-title {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 950;
}

.priority-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.distribution-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.12fr) minmax(260px, 1.1fr) minmax(240px, 0.95fr);
  gap: 14px;
  margin-top: 14px;
}

.distribution-grid .panel {
  padding: 16px;
  min-height: 280px;
}

.distribution-detail {
  margin-top: 12px;
}

.distribution-type-card {
  display: grid;
  gap: 12px;
}

.distribution-type-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.distribution-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.distribution-title {
  margin-top: 5px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.distribution-strength {
  border: 1px solid rgb(251 191 36 / 0.4);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fde68a;
  background: rgb(251 191 36 / 0.1);
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.distribution-reading,
.distribution-secondary,
.distribution-advice {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.distribution-secondary {
  color: var(--soft);
  font-weight: 800;
}

.density-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 132px), 1fr));
  gap: 8px;
}

.density-row {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 9px;
  background: #0b1118;
}

.density-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 950;
}

.density-track {
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.8);
}

.density-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.density-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.64rem;
}

.comparison-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.15fr) minmax(240px, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.comparison-grid .panel {
  padding: 16px;
  min-height: 260px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 8px;
  margin-top: 12px;
}

.matrix-card {
  min-height: 108px;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
}

.matrix-card.highReachHighAvg {
  border-color: rgb(45 212 191 / 0.48);
}

.matrix-card.lowReachHighAvg {
  border-color: rgb(251 191 36 / 0.42);
}

.matrix-card.highReachLowAvg {
  border-color: rgb(96 165 250 / 0.42);
}

.matrix-title {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 950;
}

.matrix-rate {
  margin-top: 8px;
  color: var(--teal);
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 1;
}

.matrix-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.38;
}

.driver-list,
.funnel-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.driver-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 42px;
  gap: 8px;
  align-items: center;
}

.driver-label,
.driver-value {
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.driver-value {
  text-align: right;
}

.driver-track,
.funnel-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgb(37 50 65 / 0.82);
}

.driver-fill,
.funnel-fill {
  height: 100%;
  border-radius: 999px;
}

.driver-fill.positive,
.funnel-fill {
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.driver-fill.negative {
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.funnel-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 10px;
  background: #0b1118;
}

.funnel-label {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
}

.funnel-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.funnel-bars {
  min-width: 0;
}

.table-panel {
  margin-top: 14px;
  overflow: hidden;
}

.table-wrap {
  max-height: 620px;
  overflow: auto;
  margin-top: 12px;
}

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

.song-table {
  min-width: 1420px;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #101720;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

th,
td {
  border-bottom: 1px solid rgb(37 50 65 / 0.68);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

tr {
  cursor: pointer;
}

tbody tr:hover,
tbody tr.selected {
  background: rgb(45 212 191 / 0.08);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.song-cell {
  min-width: 280px;
}

.song-name {
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.artist-name {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.guide-shell {
  max-width: 1380px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgb(17 24 33 / 0.82);
  box-shadow: var(--shadow);
}

.guide-hero h2 {
  max-width: 780px;
  font-size: 1.7rem;
  line-height: 1.18;
}

.guide-hero p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.guide-summary {
  display: grid;
  gap: 9px;
}

.guide-summary article,
.guide-points article {
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 12px;
  background: #0b1118;
}

.guide-summary strong,
.guide-points strong {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 950;
}

.guide-summary span,
.guide-points span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.guide-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.guide-section-head {
  padding: 22px 0 0;
}

.guide-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.guide-type-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgb(37 50 65 / 0.72);
  border-radius: 8px;
  padding: 14px;
  background: rgb(17 24 33 / 0.9);
}

.guide-type-card.veryStrong {
  border-color: rgb(45 212 191 / 0.5);
}

.guide-type-card.middle {
  border-color: rgb(96 165 250 / 0.42);
}

.guide-type-card.risky {
  border-color: rgb(251 191 36 / 0.28);
}

.guide-type-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.guide-type-head h2 {
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.guide-type-head p {
  width: fit-content;
  margin-top: 6px;
  border: 1px solid rgb(251 191 36 / 0.36);
  border-radius: 999px;
  padding: 4px 8px;
  color: #fde68a;
  background: rgb(251 191 36 / 0.1);
  font-size: 0.66rem;
  font-weight: 950;
}

.guide-bars {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  height: 92px;
  align-items: end;
}

.guide-bars div {
  display: grid;
  grid-template-rows: minmax(0, 1fr) 14px;
  gap: 4px;
  height: 100%;
  min-width: 0;
}

.guide-bars i {
  display: block;
  align-self: end;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--amber), var(--teal));
}

.guide-bars span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
}

.guide-reading {
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.guide-good-weak {
  display: grid;
  gap: 8px;
}

.guide-good-weak div {
  border-top: 1px solid rgb(37 50 65 / 0.72);
  padding-top: 8px;
}

.guide-good-weak strong {
  display: inline-block;
  min-width: 40px;
  margin-right: 8px;
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 950;
}

.guide-good-weak span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.heading-with-help,
.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.label-with-help > span {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  overflow-wrap: anywhere;
}

.profile-detail-metrics .label-with-help,
.win-profile-stats .label-with-help,
.percentile-top .label-with-help,
.driver-label.label-with-help,
.target-label.label-with-help,
.kpi-label.label-with-help,
.detail .label.label-with-help {
  display: inline-flex;
}

.profile-detail-metrics .label-with-help > span,
.win-profile-stats .label-with-help > span {
  display: inline;
  margin: 0;
  text-align: inherit;
}

.has-help-title {
  text-decoration: underline dotted rgb(147 162 179 / 0.52);
  text-underline-offset: 3px;
}

.info-tip,
.rank-badge[data-tooltip] {
  position: relative;
  cursor: help;
}

.info-tip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgb(147 162 179 / 0.46);
  border-radius: 999px;
  padding: 0;
  color: var(--muted);
  background: rgb(11 17 24 / 0.84);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
}

.info-tip:hover,
.info-tip:focus-visible {
  border-color: rgb(45 212 191 / 0.72);
  color: var(--text);
  outline: none;
}

.info-tip::before,
.rank-badge[data-tooltip]::before,
.info-tip::after,
.rank-badge[data-tooltip]::after {
  position: absolute;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.info-tip::before,
.rank-badge[data-tooltip]::before {
  content: "";
  left: 50%;
  bottom: calc(100% + 4px);
  width: 8px;
  height: 8px;
  border-right: 1px solid rgb(45 212 191 / 0.34);
  border-bottom: 1px solid rgb(45 212 191 / 0.34);
  background: #071018;
  transform: translateX(-50%) rotate(45deg);
}

.info-tip::after,
.rank-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  left: 50%;
  bottom: calc(100% + 9px);
  width: min(280px, 72vw);
  border: 1px solid rgb(45 212 191 / 0.34);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--soft);
  background: #071018;
  box-shadow: var(--shadow);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transform: translateX(-50%);
}

.rank-badge[data-tooltip]::before {
  left: 14px;
  transform: translateX(-50%) rotate(45deg);
}

.rank-badge[data-tooltip]::after {
  left: 0;
  transform: none;
}

.info-tip:hover::before,
.info-tip:focus-visible::before,
.rank-badge[data-tooltip]:hover::before,
.rank-badge[data-tooltip]:focus-visible::before,
.info-tip:hover::after,
.info-tip:focus-visible::after,
.rank-badge[data-tooltip]:hover::after,
.rank-badge[data-tooltip]:focus-visible::after {
  opacity: 1;
}

.profile-card,
.matrix-card,
.whatif-card,
.priority-item,
.percentile-row,
.density-row,
.driver-row,
.funnel-row,
.target-row,
.journey-row,
.profile-example,
.cliff-row,
.verdict-item,
.scenario-main > div,
.scenario-chip,
.benchmark-grid .mini-table,
.compact-table {
  animation: soft-rise 0.42s var(--ease-smooth) both;
  transition: transform 0.24s var(--ease-smooth), border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.driver-fill,
.funnel-fill,
.target-fill,
.percentile-fill,
.journey-fill,
.cliff-fill,
.density-fill,
.profile-density-track div,
.guide-bars i {
  transform-origin: left center;
  animation: bar-glide 0.72s var(--ease-smooth) both;
}

.kpi:nth-child(2),
.detail:nth-child(2),
.rank-item:nth-child(2),
.win-profile-card:nth-child(2),
.profile-card:nth-child(2),
.matrix-card:nth-child(2),
.priority-item:nth-child(2),
.percentile-row:nth-child(2) {
  animation-delay: 0.035s;
}

.kpi:nth-child(3),
.detail:nth-child(3),
.rank-item:nth-child(3),
.win-profile-card:nth-child(3),
.profile-card:nth-child(3),
.matrix-card:nth-child(3),
.priority-item:nth-child(3),
.percentile-row:nth-child(3) {
  animation-delay: 0.07s;
}

.kpi:nth-child(4),
.detail:nth-child(4),
.rank-item:nth-child(4),
.win-profile-card:nth-child(4),
.profile-card:nth-child(4),
.matrix-card:nth-child(4),
.priority-item:nth-child(4),
.percentile-row:nth-child(4) {
  animation-delay: 0.105s;
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bar-glide {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes point-float {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(var(--float-x, 0.55px), var(--float-y, -0.55px));
  }
}

@keyframes halo-pulse {
  0% {
    opacity: 0.58;
    transform: scale(0.9);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes map-sheen {
  0%,
  58% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  background: var(--coral);
}

.status-dot.advanced {
  background: var(--green);
}

@media (max-width: 1180px) {
  .workspace-grid,
  .strategy-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-panel,
  .benchmark-panel,
  .win-profile-panel {
    grid-column: 1 / -1;
  }

  .chart-panel,
  .song-panel,
  .table-panel {
    grid-column: 1 / -1;
  }

  .guide-hero,
  .guide-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 12px 10px 32px;
  }

  .topbar,
  .workspace-grid,
  .strategy-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid,
  .guide-hero,
  .guide-points {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .topbar {
    display: grid;
    align-items: start;
    gap: 12px;
  }

  .export-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .export-links a {
    min-width: 0;
    padding-inline: 8px;
  }

  .topbar-actions {
    justify-items: stretch;
  }

  .language-switcher {
    grid-template-columns: 1fr;
  }

  .control-band,
  .kpi-grid,
  .insight-grid,
  .diagnostic-grid,
  .sim-grid {
    grid-template-columns: 1fr;
  }

  .kpi {
    min-height: 76px;
    padding: 12px;
  }

  .kpi-value {
    font-size: 1.48rem;
  }

  .panel-head {
    padding: 14px 14px 0;
  }

  .song-panel {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 14px;
  }

  .song-cover-wrap {
    width: 72px;
  }

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

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

  #scatterPlot {
    height: 300px;
  }

  .insight-grid .panel,
  .strategy-grid .panel,
  .diagnostic-grid .panel,
  .sim-grid .panel,
  .scenario-grid .panel,
  .benchmark-grid .panel,
  .distribution-grid .panel,
  .comparison-grid .panel {
    min-height: 0;
    padding: 14px;
  }

  .rank-item {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
  }

  .rank-title,
  .rank-sub,
  .cliff-title {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .rank-metric {
    grid-column: 2;
    white-space: normal;
  }

  .journey-row,
  .cliff-row,
  .target-row,
  .driver-row,
  .funnel-row {
    grid-template-columns: 1fr;
  }

  .journey-main,
  .percentile-top,
  .distribution-type-top,
  .density-head,
  .profile-detail-head,
  .win-profile-stats {
    flex-wrap: wrap;
  }

  .journey-metric,
  .cliff-score,
  .target-delta,
  .driver-value {
    text-align: left;
  }

  .target-bar-line {
    grid-template-columns: 58px minmax(0, 1fr) 46px;
  }

  .info-tip::after,
  .rank-badge[data-tooltip]::after {
    width: min(248px, calc(100vw - 24px));
  }

  .info-tip {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .win-profile-map {
    grid-template-columns: 1fr;
  }

  .profile-example span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .scenario-value,
  .matrix-rate,
  .profile-value {
    font-size: 1.1rem;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .song-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .song-table thead {
    display: none;
  }

  .song-table tbody {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .song-table tbody tr {
    display: grid;
    width: 100%;
    border: 1px solid rgb(37 50 65 / 0.82);
    border-radius: var(--radius);
    padding: 8px 10px;
    background: #0b1118;
  }

  .song-table tbody tr:hover,
  .song-table tbody tr.selected {
    background: rgb(45 212 191 / 0.1);
  }

  .song-table tbody td {
    display: grid;
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid rgb(37 50 65 / 0.58);
    padding: 8px 0;
    text-align: right;
  }

  .song-table tbody td:last-child {
    border-bottom: 0;
  }

  .song-table tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
  }

  .song-cell {
    min-width: 0;
  }

  .song-cell::before {
    padding-top: 1px;
  }

  .artist-name {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .app-shell {
    padding-inline: 8px;
  }

  h1 {
    font-size: 1.75rem;
  }

  .control-band,
  .panel,
  .kpi,
  .detail,
  .whatif-card,
  .scenario-main > div,
  .scenario-chip,
  .song-table tbody tr {
    border-radius: 7px;
  }

  .song-panel {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .song-cover-wrap {
    width: 64px;
  }

  #selectedTitle {
    font-size: 1rem;
  }

  .detail-grid,
  .scenario-controls,
  .scenario-main,
  .density-grid,
  .matrix-grid,
  .guide-type-grid {
    grid-template-columns: 1fr;
  }

  .song-table tbody td {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
  }
}

/* Overview refinement: make the home page read like an edited result brief */
.overview-shell .result-brief {
  margin-top: 4px;
}

.overview-shell .overview-copy h2 {
  max-width: 16ch;
  font-size: clamp(1.42rem, 2.4vw, 2.25rem);
}

.overview-shell .overview-copy p:not(.eyebrow) {
  color: #b4c4d1;
}

.overview-shell .overview-card {
  min-height: 94px;
  align-content: start;
  padding: 14px;
  background:
    linear-gradient(180deg, rgb(18 28 38 / 0.76), rgb(7 12 18 / 0.58)),
    rgb(7 12 18 / 0.55);
}

.overview-shell .overview-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.overview-shell .overview-card strong {
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  white-space: normal;
}

.overview-shell .overview-focus {
  align-content: center;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.1), rgb(7 12 18 / 0.52)),
    rgb(7 12 18 / 0.6);
}

.overview-shell .overview-focus-item {
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    transform 0.22s var(--ease-smooth);
}

.overview-shell .section-jump {
  justify-content: flex-start;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 7px;
  background: rgb(7 12 18 / 0.42);
}

.overview-shell .section-jump a {
  border-radius: 7px;
  background: transparent;
}

.overview-shell .result-overview-grid {
  align-items: start;
}

.overview-shell .structure-card {
  grid-column: span 7;
}

.overview-shell .driver-card-panel {
  grid-column: span 5;
}

.overview-shell .quality-card-panel,
.overview-shell .mix-card-panel {
  grid-column: span 6;
}

.overview-shell .type-landscape-panel {
  grid-column: span 7;
}

.overview-shell .finals-compact-panel {
  grid-column: span 5;
}

.overview-driver-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.driver-head-row,
.driver-row {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) 72px 72px minmax(86px, 0.9fr);
  gap: 8px;
  align-items: center;
}

.driver-head-row {
  color: #91a4b5;
  font-size: 0.62rem;
  font-weight: 950;
}

.driver-head-row b {
  text-align: right;
}

.driver-row {
  min-height: 48px;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 8px;
  background: rgb(7 12 18 / 0.4);
}

.driver-row strong {
  color: #f4fbff;
  font-size: 0.76rem;
  font-weight: 920;
  line-height: 1.25;
}

.driver-row span {
  color: #cdd9e3;
  font-size: 0.74rem;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.driver-gap {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 6px;
  align-items: center;
}

.driver-gap i {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #f6c95c);
}

.driver-gap.risk i {
  background: linear-gradient(90deg, #ef6f8f, #f6c95c);
}

.driver-gap b {
  color: #f4fbff;
  font-size: 0.7rem;
  font-weight: 950;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.type-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.type-summary-block {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 9px;
  padding: 10px;
  background: rgb(7 12 18 / 0.42);
}

.type-summary-block h3 {
  color: #eaf7f7;
  font-size: 0.78rem;
  font-weight: 950;
}

.type-summary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgb(147 162 179 / 0.1);
  padding-top: 8px;
}

.type-summary-row .type-landscape-count {
  grid-column: 1 / -1;
  height: 6px;
}

.type-guide-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 10px;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  color: #d9fffb;
  background: rgb(45 212 191 / 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.overview-shell .final-top-list.compact {
  gap: 7px;
}

.overview-shell .final-top-list.compact .final-top-row {
  grid-template-columns: 68px minmax(0, 1fr) 56px;
  min-height: 38px;
  padding: 8px 9px;
}

.overview-shell .final-top-list.compact .final-top-row small,
.overview-shell .final-top-list.compact .final-score-track {
  display: none;
}

@media (max-width: 1180px) {
  .overview-shell .driver-card-panel,
  .overview-shell .finals-compact-panel,
  .overview-shell .type-landscape-panel {
    grid-column: auto;
  }

  .type-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .overview-shell .site-nav-link[href*="methodology"] {
    display: none;
  }

  .overview-shell .result-brief {
    gap: 10px;
    margin-top: 0;
    padding: 12px;
  }

  .overview-shell .overview-copy h2 {
    max-width: 100%;
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .overview-shell .overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .overview-shell .overview-card {
    min-height: 82px;
    padding: 10px;
  }

  .overview-shell .overview-card span,
  .overview-shell .overview-card small {
    font-size: 0.6rem;
  }

  .overview-shell .overview-focus {
    padding: 10px;
  }

  .overview-shell .overview-focus-item {
    padding: 8px;
  }

  .overview-search-form.primary,
  .overview-search-card,
  .overview-search-card dl,
  .overview-entry-grid {
    grid-template-columns: 1fr;
  }

  .overview-search-actions {
    justify-content: flex-start;
  }

  .overview-search-actions .button-link {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .overview-secondary-detail > .panel-head {
    display: none;
  }

  .driver-head-row {
    display: none;
  }

  .driver-row {
    grid-template-columns: minmax(0, 1fr) 54px 54px;
  }

  .driver-gap {
    grid-column: 1 / -1;
  }

  .overview-shell .final-top-list.compact .final-top-row {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
  }
}

@media (max-width: 420px) {
  .overview-shell .overview-cards {
    grid-template-columns: 1fr;
  }

  .type-summary-row {
    grid-template-columns: minmax(0, 1fr) 50px;
  }
}

/* Vote Lab dashboard polish layer */
.app-shell {
  width: min(1560px, 100%);
  padding: 18px clamp(14px, 2vw, 28px) 48px;
}

.topbar {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.12), transparent 38%),
    rgb(10 15 21 / 0.82);
  box-shadow:
    0 22px 60px rgb(0 0 0 / 0.3),
    0 1px 0 rgb(255 255 255 / 0.04) inset;
  backdrop-filter: blur(18px);
}

.topbar > div:first-child,
.topbar-actions {
  min-width: 0;
}

.topbar-actions {
  max-width: min(100%, 720px);
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.topbar .eyebrow {
  margin-bottom: 7px;
}

.export-links {
  gap: 7px;
}

.export-links a {
  min-width: 0;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border-color: rgb(147 162 179 / 0.22);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgb(7 12 18 / 0.62);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.035) inset;
}

.export-links a.nav-primary {
  border-color: rgb(45 212 191 / 0.46);
  color: #dffdfa;
  background: rgb(45 212 191 / 0.12);
}

.export-links a.nav-secondary {
  color: rgb(203 214 226 / 0.82);
}

.language-switcher {
  grid-template-columns: auto minmax(118px, 132px);
}

.dashboard-main {
  display: grid;
  gap: 14px;
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.kpi {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  border-color: rgb(147 162 179 / 0.2);
  background:
    linear-gradient(180deg, rgb(23 32 43 / 0.92), rgb(9 14 20 / 0.84)),
    rgb(9 14 20 / 0.9);
  box-shadow:
    0 20px 46px rgb(0 0 0 / 0.22),
    0 1px 0 rgb(255 255 255 / 0.035) inset;
  animation-delay: calc(var(--kpi-index, 0) * 40ms);
}

.kpi.primary {
  border-color: rgb(45 212 191 / 0.42);
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.17), rgb(96 165 250 / 0.045)),
    rgb(10 18 24 / 0.92);
}

.kpi-label {
  color: #a9bac9;
}

.kpi-value {
  margin-top: 10px;
  color: #f5fbff;
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.kpi.primary .kpi-value {
  color: #f7fffd;
  text-shadow: 0 12px 34px rgb(45 212 191 / 0.16);
}

.kpi-note {
  min-height: 2.8em;
  color: #91a4b5;
}

.control-band {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
  border-color: rgb(147 162 179 / 0.18);
  padding: 12px;
  background: rgb(9 14 20 / 0.78);
  box-shadow:
    0 16px 38px rgb(0 0 0 / 0.2),
    0 1px 0 rgb(255 255 255 / 0.035) inset;
  backdrop-filter: blur(16px);
}

.control-band > label {
  grid-column: span 2;
}

.control-band > .search-label {
  grid-column: span 4;
}

label span {
  color: #9babbc;
}

select,
input {
  border-color: rgb(147 162 179 / 0.22);
  background: rgb(5 9 14 / 0.9);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.035) inset;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.88fr);
  gap: 14px;
  align-items: start;
}

.panel {
  position: relative;
  border-color: rgb(147 162 179 / 0.19);
  background:
    linear-gradient(180deg, rgb(19 28 38 / 0.88), rgb(9 14 20 / 0.86)),
    rgb(9 14 20 / 0.9);
  box-shadow:
    0 22px 58px rgb(0 0 0 / 0.24),
    0 1px 0 rgb(255 255 255 / 0.035) inset;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(45 212 191 / 0.5), rgb(251 191 36 / 0.18), transparent);
  pointer-events: none;
}

.panel-head {
  padding: 18px 18px 0;
}

.panel-head.compact {
  padding: 0 0 12px;
}

.panel-head h2,
.panel > h2 {
  color: #f4f9ff;
  font-size: 1.05rem;
  line-height: 1.22;
}

.panel-head p {
  max-width: 76ch;
}

.chart-panel {
  min-height: 560px;
  background:
    linear-gradient(145deg, rgb(45 212 191 / 0.07), transparent 42%),
    linear-gradient(180deg, rgb(17 26 36 / 0.92), rgb(8 13 18 / 0.9));
}

#scatterPlot {
  height: 492px;
}

.pill {
  border-color: rgb(45 212 191 / 0.38);
  color: #bffcf5;
  background: rgb(45 212 191 / 0.11);
}

.grid-line {
  stroke: rgb(147 162 179 / 0.14);
}

.axis-line {
  stroke: rgb(147 162 179 / 0.34);
}

.point {
  stroke-width: 0.9;
}

.point.selected {
  filter:
    drop-shadow(0 0 9px rgb(237 243 248 / 0.48))
    drop-shadow(0 0 18px rgb(45 212 191 / 0.26));
}

.song-panel {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  position: sticky;
  top: 14px;
  min-height: 560px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgb(45 212 191 / 0.1), transparent 36%),
    linear-gradient(180deg, rgb(18 28 38 / 0.93), rgb(8 13 18 / 0.9));
}

.song-cover-wrap {
  width: 112px;
  border-color: rgb(147 162 179 / 0.28);
  box-shadow:
    0 18px 36px rgb(0 0 0 / 0.3),
    0 1px 0 rgb(255 255 255 / 0.04) inset;
}

#selectedTitle {
  color: #f5fbff;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  line-height: 1.14;
}

.selected-detail-link {
  border-radius: 999px;
  border-color: rgb(45 212 191 / 0.58);
  background: rgb(45 212 191 / 0.14);
}

.tag {
  border-color: rgb(147 162 179 / 0.22);
  background: rgb(5 9 14 / 0.62);
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.detail,
.profile-card,
.matrix-card,
.whatif-card,
.priority-item,
.percentile-row,
.density-row,
.driver-row,
.funnel-row,
.target-row,
.journey-row,
.profile-example,
.cliff-row,
.scenario-main > div,
.scenario-chip {
  border-color: rgb(147 162 179 / 0.18);
  background:
    linear-gradient(180deg, rgb(17 25 34 / 0.72), rgb(5 9 14 / 0.64)),
    rgb(5 9 14 / 0.7);
}

.detail .value {
  color: #f4f9ff;
}

.hist-track,
.profile-density-track,
.journey-track,
.cliff-track,
.driver-track,
.funnel-track,
.target-track,
.percentile-track,
.density-track {
  background: rgb(147 162 179 / 0.16);
}

.insight-grid,
.strategy-grid,
.diagnostic-grid,
.sim-grid,
.scenario-grid,
.benchmark-grid,
.distribution-grid,
.comparison-grid,
.table-panel {
  margin-top: 0;
}

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

.insight-grid .panel {
  min-height: 238px;
}

.rank-badge {
  background: rgb(45 212 191 / 0.11);
  color: #9ff5e9;
}

.rank-item {
  border-bottom-color: rgb(147 162 179 / 0.14);
}

.rank-title {
  color: #f1f6fb;
}

.strategy-grid {
  grid-template-columns: minmax(320px, 1.08fr) minmax(420px, 1.45fr) repeat(2, minmax(220px, 0.9fr));
}

.win-profile-panel {
  grid-column: span 1;
}

.profile-guide-link {
  border-color: rgb(45 212 191 / 0.46);
  color: #dffdfa;
  background: rgb(45 212 191 / 0.12);
}

.win-profile-map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 156px), 1fr));
}

.win-profile-card {
  border-color: rgb(147 162 179 / 0.18);
  background: rgb(5 9 14 / 0.66);
}

.win-profile-card.active {
  border-color: rgb(45 212 191 / 0.72);
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.12), rgb(251 191 36 / 0.04)),
    rgb(7 14 19 / 0.78);
}

.win-profile-detail {
  border-color: rgb(45 212 191 / 0.26);
  background: rgb(5 9 14 / 0.64);
}

.scenario-grid,
.benchmark-grid,
.distribution-grid,
.comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-panel,
.benchmark-panel {
  grid-column: span 1;
}

.table-panel {
  background:
    linear-gradient(180deg, rgb(17 26 36 / 0.9), rgb(7 11 16 / 0.92));
}

.table-wrap {
  margin: 14px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: var(--radius);
  background: rgb(5 9 14 / 0.46);
}

thead th {
  background: rgb(8 13 19 / 0.98);
}

tbody tr:hover,
tbody tr.selected {
  background: rgb(45 212 191 / 0.09);
}

@media (max-width: 1180px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .control-band > label {
    grid-column: span 3;
  }

  .control-band > .search-label {
    grid-column: span 6;
  }

  .workspace-grid,
  .strategy-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .chart-panel,
  .song-panel,
  .table-panel {
    grid-column: 1 / -1;
  }

  .song-panel {
    position: static;
    min-height: 0;
  }

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

@media (max-width: 760px) {
  .app-shell {
    padding: 10px 8px 32px;
  }

  .topbar {
    display: grid;
    align-items: start;
    gap: 12px;
    padding: 12px;
  }

  .topbar h1 {
    font-size: clamp(1.8rem, 11vw, 2.45rem);
  }

  .topbar-actions {
    justify-items: stretch;
  }

  .export-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .language-switcher {
    grid-template-columns: 1fr;
  }

  .dashboard-main {
    gap: 12px;
  }

  .kpi-grid,
  .workspace-grid,
  .insight-grid,
  .strategy-grid,
  .diagnostic-grid,
  .sim-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi {
    min-height: 112px;
    padding: 14px;
  }

  .kpi-value {
    font-size: 1.55rem;
  }

  .kpi-note {
    min-height: 0;
  }

  .control-band {
    grid-template-columns: 1fr;
  }

  .control-band > label,
  .control-band > .search-label {
    grid-column: auto;
  }

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

  #scatterPlot {
    height: 312px;
  }

  .song-panel {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 14px;
  }

  .song-cover-wrap {
    width: 84px;
  }

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

  .table-wrap {
    margin: 12px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 420px) {
  .export-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kpi {
    min-height: 118px;
  }

  .song-panel {
    grid-template-columns: 1fr;
  }

  .song-cover-wrap {
    width: min(160px, 100%);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard smoothing pass: flatter surfaces, steadier rhythm */
body {
  background:
    radial-gradient(circle at 18% 0%, rgb(45 212 191 / 0.08), transparent 30rem),
    linear-gradient(180deg, #080c11 0%, #0a0f15 44%, #080c11 100%);
}

.app-shell {
  width: min(1440px, 100%);
  padding: 18px clamp(16px, 2vw, 28px) 48px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, auto);
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
  border: 0;
  border-bottom: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 0;
  padding: 4px 0 16px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.topbar h1 {
  font-size: clamp(2.4rem, 3.5vw, 3.25rem);
  line-height: 0.98;
}

.topbar-actions {
  justify-items: end;
  max-width: none;
  gap: 10px;
}

.export-links {
  gap: 6px;
}

.export-links a {
  min-width: 54px;
  min-height: 34px;
  border-radius: 7px;
  padding: 7px 10px;
  background: rgb(11 17 24 / 0.78);
  box-shadow: none;
}

.export-links a.nav-primary {
  background: rgb(45 212 191 / 0.1);
}

.language-switcher {
  grid-template-columns: auto 132px;
}

.dashboard-main {
  gap: 12px;
}

.kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.kpi {
  min-height: 96px;
  border-radius: 8px;
  padding: 12px 13px;
  border-color: rgb(147 162 179 / 0.17);
  background: rgb(13 20 28 / 0.86);
  box-shadow: none;
}

.kpi.primary {
  border-color: rgb(45 212 191 / 0.28);
  background: rgb(12 28 31 / 0.68);
}

.kpi-value {
  margin-top: 8px;
  font-size: clamp(1.45rem, 1.8vw, 1.85rem);
}

.kpi-note {
  min-height: 2.5em;
}

.control-band {
  gap: 8px;
  border-radius: 8px;
  padding: 10px;
  border-color: rgb(147 162 179 / 0.16);
  background: rgb(10 15 21 / 0.82);
  box-shadow: none;
  backdrop-filter: none;
}

select,
input {
  min-height: 38px;
  border-radius: 7px;
  background: rgb(6 10 15 / 0.92);
  box-shadow: none;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.58fr) minmax(380px, 0.86fr);
  gap: 12px;
  align-items: start;
}

.panel {
  border-radius: 8px;
  border-color: rgb(147 162 179 / 0.17);
  background: rgb(13 20 28 / 0.88);
  box-shadow: none;
}

.panel::before,
.chart-panel::after {
  content: none;
}

.panel-head {
  padding: 16px 16px 0;
}

.panel-head.compact {
  padding: 0 0 10px;
}

.panel-head h2,
.panel > h2 {
  font-size: 1rem;
}

.chart-panel,
.song-panel,
.table-panel {
  background: rgb(13 20 28 / 0.88);
}

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

#scatterPlot {
  height: 462px;
}

.song-panel {
  min-height: 536px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
}

.song-cover-wrap {
  box-shadow: none;
}

.detail,
.profile-card,
.matrix-card,
.whatif-card,
.priority-item,
.percentile-row,
.density-row,
.driver-row,
.funnel-row,
.target-row,
.journey-row,
.profile-example,
.cliff-row,
.scenario-main > div,
.scenario-chip,
.win-profile-card,
.win-profile-detail {
  border-color: rgb(147 162 179 / 0.15);
  background: rgb(7 12 18 / 0.62);
  box-shadow: none;
}

.kpi:hover,
.detail:hover,
.profile-card:hover,
.matrix-card:hover,
.whatif-card:hover,
.priority-item:hover,
.percentile-row:hover,
.win-profile-card:hover,
.rank-item:hover {
  transform: none;
  box-shadow: none;
}

.insight-grid,
.diagnostic-grid,
.sim-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.insight-grid .panel {
  min-height: 220px;
}

.strategy-grid,
.scenario-grid,
.benchmark-grid,
.distribution-grid,
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.strategy-grid > .phase-panel {
  grid-column: span 3;
}

.strategy-grid > .win-profile-panel {
  grid-column: span 5;
}

.strategy-grid > .panel:nth-child(3),
.strategy-grid > .panel:nth-child(4) {
  grid-column: span 2;
}

.scenario-grid > .panel,
.benchmark-grid > .panel,
.distribution-grid > .panel,
.comparison-grid > .panel {
  grid-column: span 4;
}

.phase-panel,
.scenario-panel,
.benchmark-panel,
.win-profile-panel {
  min-width: 0;
}

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

.table-wrap {
  margin: 12px;
  border-color: rgb(147 162 179 / 0.14);
  border-radius: 8px;
  background: rgb(7 12 18 / 0.54);
}

thead th {
  background: rgb(8 13 19 / 0.96);
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .topbar-actions {
    justify-items: start;
    width: 100%;
  }

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

  .workspace-grid,
  .strategy-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid,
  .diagnostic-grid,
  .sim-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chart-panel,
  .song-panel,
  .table-panel,
  .strategy-grid > .phase-panel,
  .strategy-grid > .win-profile-panel,
  .strategy-grid > .panel:nth-child(3),
  .strategy-grid > .panel:nth-child(4),
  .scenario-grid > .panel,
  .benchmark-grid > .panel,
  .distribution-grid > .panel,
  .comparison-grid > .panel {
    grid-column: auto;
  }

  .chart-panel,
  .song-panel,
  .table-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 10px 8px 32px;
  }

  .topbar {
    gap: 12px;
    padding-bottom: 12px;
  }

  .topbar h1 {
    font-size: clamp(1.9rem, 11vw, 2.45rem);
  }

  .topbar-actions,
  .export-links {
    width: 100%;
  }

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

  .language-switcher {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .kpi-grid,
  .workspace-grid,
  .insight-grid,
  .strategy-grid,
  .diagnostic-grid,
  .sim-grid,
  .scenario-grid,
  .benchmark-grid,
  .distribution-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi {
    min-height: 108px;
  }

  .control-band {
    grid-template-columns: 1fr;
  }

  .control-band > label,
  .control-band > .search-label,
  .scenario-grid > .panel,
  .benchmark-grid > .panel,
  .distribution-grid > .panel,
  .comparison-grid > .panel {
    grid-column: auto;
  }

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

  #scatterPlot {
    height: 312px;
  }

  .song-panel {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}

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

  .kpi {
    min-height: 92px;
  }
}

/* Usability pass: make the page operate like a focused dashboard */
.command-center {
  display: grid;
  gap: 9px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  padding: 10px;
  background: rgb(10 15 21 / 0.82);
}

.command-center .control-band {
  border: 0;
  padding: 0;
  background: transparent;
}

.command-center .kpi-grid {
  padding-top: 9px;
  border-top: 1px solid rgb(147 162 179 / 0.12);
}

.section-jump {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-jump::-webkit-scrollbar {
  display: none;
}

.section-jump a {
  flex: 0 0 auto;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  color: #b7c6d5;
  background: rgb(9 14 20 / 0.68);
  font-size: 0.76rem;
  font-weight: 850;
}

.section-jump a:hover {
  border-color: rgb(45 212 191 / 0.46);
  color: #e2fffb;
  background: rgb(45 212 191 / 0.1);
}

.advanced-analysis {
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  background: rgb(13 20 28 / 0.72);
}

.advanced-analysis > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.advanced-analysis > summary::-webkit-details-marker {
  display: none;
}

.advanced-analysis > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(45 212 191 / 0.34);
  border-radius: 999px;
  color: #a7fff4;
  font-size: 1.1rem;
  line-height: 1;
}

.advanced-analysis[open] > summary::after {
  content: "-";
}

.advanced-analysis > summary span {
  color: #f3f8fd;
  font-size: 1rem;
  font-weight: 900;
}

.advanced-analysis > summary small {
  color: #91a4b5;
  font-size: 0.78rem;
  line-height: 1.5;
}

.advanced-analysis[open] {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.advanced-analysis[open] > section {
  margin-inline: 12px;
}

@media (max-width: 760px) {
  .command-center {
    padding: 10px;
  }

  .command-center .control-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-center .control-band > .search-label {
    grid-column: 1 / -1;
  }

  .command-center .control-band > label:not(.search-label) {
    grid-column: auto;
  }

  .command-center .kpi-grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .command-center .kpi-grid::-webkit-scrollbar {
    display: none;
  }

  .command-center .kpi {
    flex: 0 0 148px;
    min-height: 92px;
  }

  .advanced-analysis > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .advanced-analysis > summary small {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 380px) {
  .command-center .kpi-grid {
    display: flex;
  }
}

/* Navigation clarity pass */
.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 10px;
}

.topbar-tools {
  display: grid;
  justify-items: end;
  min-width: 0;
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.site-nav-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgb(10 15 21 / 0.76);
}

.site-nav-label {
  flex: 0 0 auto;
  padding: 0 5px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav-link,
.resource-link {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 7px;
  padding: 0 13px;
  color: #c7d4df;
  background: rgb(6 10 15 / 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav-link {
  min-width: 118px;
}

.site-nav-link.active {
  border-color: rgb(45 212 191 / 0.56);
  color: #f0fffd;
  background: rgb(45 212 191 / 0.15);
  box-shadow: 0 0 0 1px rgb(45 212 191 / 0.12) inset;
  position: relative;
}

.site-nav-link.active::after {
  content: "";
  position: absolute;
  inset: auto 10px 5px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-accent-primary);
}

.site-nav-link:hover,
.resource-link:hover {
  border-color: rgb(45 212 191 / 0.46);
  color: #f0fffd;
  background: rgb(45 212 191 / 0.1);
}

.evidence-badge,
.value-kind-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.evidence-badge.observed,
.value-kind-badge.observed {
  background: #e7f7f3;
  color: #0f766e;
}

.evidence-badge.derived,
.value-kind-badge.derived {
  background: #eef2ff;
  color: #4338ca;
}

.evidence-badge.estimated,
.value-kind-badge.estimated {
  background: #fff7ed;
  color: #c2410c;
}

.evidence-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.86rem;
}

.resource-links {
  justify-content: flex-end;
}

.resource-link {
  min-width: 54px;
  padding-inline: 10px;
  color: #aebccc;
  font-size: 0.74rem;
}

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

  .resource-links {
    justify-content: flex-start;
  }
}

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

  .topbar-tools {
    justify-items: stretch;
  }

  .site-nav-group {
    display: grid;
    align-items: stretch;
    gap: 7px;
  }

  .site-nav-label {
    grid-column: 1 / -1;
    padding: 0 2px 2px;
  }

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

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

  .site-nav-link {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .page-links .site-nav-link:last-child {
    grid-column: 1 / -1;
  }

  .resource-link {
    min-width: 0;
    padding-inline: 8px;
  }
}

/* Vote Lab home information-architecture pass */
.command-center {
  display: grid;
  gap: 12px;
}

.audience-entry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.audience-card {
  min-width: 0;
  display: grid;
  gap: 9px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: var(--radius);
  padding: 18px;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.09), transparent 46%),
    rgb(9 14 20 / 0.74);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset;
  transition: transform 0.2s var(--ease-smooth), border-color 0.2s ease, background 0.2s ease;
}

.audience-card.reader {
  background:
    linear-gradient(135deg, rgb(232 177 78 / 0.12), transparent 46%),
    rgb(9 14 20 / 0.74);
}

.audience-card:hover {
  border-color: rgb(45 212 191 / 0.42);
  background-color: rgb(12 22 28 / 0.82);
  transform: translateY(-1px);
}

.audience-kicker {
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 900;
}

.audience-card.reader .audience-kicker {
  color: var(--amber);
}

.audience-card strong {
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.2;
}

.audience-card p {
  max-width: 64ch;
  margin: 0;
  color: #a7b7c6;
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.55;
}

.audience-card b {
  margin-top: 2px;
  color: #e9fffb;
  font-size: 0.82rem;
}

.overview-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(460px, 1.35fr) minmax(240px, 0.72fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.07), transparent 42%),
    rgb(10 15 21 / 0.7);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset;
}

.overview-primary-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: var(--radius);
  padding: 10px;
  background: rgb(10 15 21 / 0.7);
}

.overview-primary-actions a {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 11px;
  color: inherit;
  background: rgb(7 12 18 / 0.58);
  text-decoration: none;
}

.overview-primary-actions a:hover {
  border-color: rgb(45 212 191 / 0.42);
  background: rgb(45 212 191 / 0.08);
}

.overview-primary-actions span {
  overflow: hidden;
  color: #edf7fb;
  font-size: 0.8rem;
  font-weight: 940;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-primary-actions small {
  color: #91a4b5;
  font-size: 0.7rem;
  line-height: 1.35;
}

.overview-diagnosis-search {
  display: grid;
  gap: 14px;
  border-color: rgb(45 212 191 / 0.26);
}

.overview-search-form.primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.overview-search-results {
  display: grid;
  gap: 10px;
}

.overview-search-empty {
  margin: 0;
  border: 1px dashed rgb(147 162 179 / 0.22);
  border-radius: 8px;
  padding: 12px;
  color: #91a4b5;
  font-size: 0.82rem;
  font-weight: 760;
}

.overview-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 10px;
  padding: 12px;
  background: rgb(7 12 18 / 0.5);
}

.overview-search-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: #f4fbff;
  font-size: 0.95rem;
  font-weight: 950;
}

.overview-search-card p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #91a4b5;
  font-size: 0.76rem;
  font-weight: 780;
}

.overview-search-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.overview-search-card dt {
  color: #91a4b5;
  font-size: 0.62rem;
  font-weight: 950;
}

.overview-search-card dd {
  margin: 3px 0 0;
  color: #d8e6ef;
  font-size: 0.78rem;
  font-weight: 880;
}

.overview-search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.overview-search-actions .button-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(147 162 179 / 0.22);
  border-radius: 8px;
  padding: 7px 11px;
  color: #d8e6ef;
  background: rgb(10 15 21 / 0.82);
  font-size: 0.72rem;
  font-weight: 920;
  text-decoration: none;
}

.overview-search-actions .button-link.primary {
  border-color: rgb(45 212 191 / 0.38);
  color: #dffdfa;
  background: rgb(45 212 191 / 0.12);
}

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

.overview-entry-grid a {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 10px;
  padding: 14px;
  color: inherit;
  background: rgb(7 12 18 / 0.48);
}

.overview-entry-grid a:hover {
  border-color: rgb(45 212 191 / 0.34);
  background: rgb(45 212 191 / 0.07);
}

.overview-entry-grid strong {
  color: #f4fbff;
  font-size: 0.94rem;
  font-weight: 950;
}

.overview-entry-grid p {
  margin: 0;
  color: #aebfcb;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.55;
}

.overview-entry-grid span,
.overview-inline-cta {
  color: #d9fffb;
  font-size: 0.76rem;
  font-weight: 900;
}

.overview-inline-cta {
  width: fit-content;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgb(45 212 191 / 0.08);
}

.overview-secondary-detail {
  display: block;
}

.overview-secondary-detail > summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  color: #f4fbff;
  font-size: 0.92rem;
  font-weight: 950;
}

.overview-secondary-detail > summary::-webkit-details-marker {
  display: none;
}

.overview-secondary-detail > summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgb(147 162 179 / 0.22);
  border-radius: 999px;
  color: #d9fffb;
  background: rgb(255 255 255 / 0.04);
}

.overview-secondary-detail[open] > summary::after {
  content: "-";
}

.overview-secondary-detail > summary + * {
  margin-top: 12px;
}

.overview-content-panel {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.15);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 18px);
  background:
    linear-gradient(180deg, rgb(17 24 33 / 0.64), rgb(7 12 18 / 0.72));
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.03) inset;
}

.overview-section-head {
  padding: 0;
}

.overview-section-head h2,
.overview-closing h2 {
  color: #f4fbff;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.2;
}

.overview-section-head p,
.overview-content-note,
.overview-closing p {
  max-width: 94ch;
  color: #a7b7c6;
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.65;
}

.overview-stat-grid,
.overview-stage-copy-grid,
.overview-rank-band-grid,
.overview-lens-grid,
.overview-route-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.overview-stat-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.overview-stat-grid article,
.overview-stage-copy-grid article,
.overview-rank-band-grid article,
.overview-lens-grid article,
.overview-route-grid a {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgb(7 12 18 / 0.56);
}

.overview-stat-grid article {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 102px;
}

.overview-stat-grid span,
.overview-lens-grid span,
.overview-route-grid span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-stat-grid strong {
  color: #f4fbff;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  font-weight: 950;
  line-height: 1;
}

.overview-stat-grid small,
.overview-stage-copy-grid p,
.overview-rank-band-grid p,
.overview-lens-grid p,
.overview-route-grid p {
  color: #91a4b5;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.48;
}

.overview-funnel-figure,
.overview-quadrant-figure,
.overview-site-map {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgb(7 12 18 / 0.58);
}

.overview-figure-title {
  color: #f4fbff;
  font-size: 0.84rem;
  font-weight: 950;
  line-height: 1.3;
}

.overview-funnel-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(90px, 0.38fr) minmax(80px, 1fr) minmax(140px, 0.62fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  padding: 10px;
  background: rgb(10 15 21 / 0.72);
}

.overview-funnel-row.showcase {
  width: 78%;
  justify-self: center;
  border-color: rgb(96 165 250 / 0.24);
}

.overview-funnel-row.finals {
  width: 56%;
  justify-self: center;
  border-color: rgb(45 212 191 / 0.32);
  background: rgb(45 212 191 / 0.07);
}

.overview-funnel-row strong,
.overview-stage-environment-grid strong,
.overview-audience-path-grid strong,
.overview-value-kind-grid strong,
.overview-expression-grid strong {
  color: #f4fbff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.overview-funnel-row span {
  color: #f4fbff;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 950;
  line-height: 1;
}

.overview-funnel-row b {
  color: #a7b7c6;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.overview-funnel-figure p,
.overview-quadrant-figure p,
.overview-site-map p {
  margin: 0;
  color: #91a4b5;
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1.5;
}

.overview-stage-copy-grid,
.overview-rank-band-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-stage-copy-grid strong,
.overview-rank-band-grid strong,
.overview-lens-grid strong,
.overview-route-grid strong {
  display: block;
  color: #f4fbff;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.overview-content-note {
  margin-top: 12px;
  border-left: 3px solid rgb(45 212 191 / 0.44);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgb(45 212 191 / 0.06);
}

.overview-stage-environment-grid,
.overview-audience-path-grid,
.overview-value-kind-grid,
.overview-expression-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.overview-stage-environment-grid,
.overview-value-kind-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-audience-path-grid {
  grid-template-columns: minmax(0, 1.22fr) repeat(2, minmax(0, 0.89fr));
}

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

.overview-stage-environment-grid article,
.overview-audience-path-grid article,
.overview-value-kind-grid article,
.overview-expression-grid article {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 12px;
  background: rgb(7 12 18 / 0.56);
}

.overview-stage-environment-grid dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.overview-stage-environment-grid dl > div {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-top: 1px solid rgb(147 162 179 / 0.1);
  padding-top: 8px;
}

.overview-stage-environment-grid dt {
  color: #6f8292;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.35;
}

.overview-stage-environment-grid dd {
  margin: 0;
  color: #a7b7c6;
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.45;
}

.overview-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}

.overview-search-form label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #6f8292;
  font-size: 0.66rem;
  font-weight: 900;
}

.overview-search-form input,
.overview-search-form button {
  min-height: 38px;
  border-radius: 8px;
  font: inherit;
}

.overview-search-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.22);
  padding: 0 10px;
  color: #f4fbff;
  background: rgb(4 9 14 / 0.88);
}

.overview-search-form button {
  align-self: end;
  border: 1px solid rgb(45 212 191 / 0.32);
  padding: 0 12px;
  color: #0a1118;
  background: #7ee9db;
  font-size: 0.72rem;
  font-weight: 950;
  cursor: pointer;
}

.overview-step-list {
  margin: 10px 0 0;
  padding-left: 19px;
  color: #91a4b5;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.55;
}

.overview-path-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.overview-path-line a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgb(45 212 191 / 0.22);
  border-radius: 999px;
  padding: 0 10px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.07);
  font-size: 0.7rem;
  font-weight: 920;
  text-decoration: none;
}

.overview-vote-points {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.overview-vote-points span {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 10px 6px;
  background: rgb(7 12 18 / 0.58);
}

.overview-vote-points span.top,
.overview-rank-band-grid article.top {
  border-color: rgb(45 212 191 / 0.32);
  background: rgb(45 212 191 / 0.08);
}

.overview-vote-points span.mid,
.overview-rank-band-grid article.mid {
  border-color: rgb(96 165 250 / 0.3);
  background: rgb(96 165 250 / 0.08);
}

.overview-vote-points span.low,
.overview-rank-band-grid article.low {
  border-color: rgb(251 113 133 / 0.3);
  background: rgb(251 113 133 / 0.08);
}

.overview-vote-points strong {
  color: #f4fbff;
  font-size: 0.85rem;
  font-weight: 950;
}

.overview-vote-points b {
  color: #a7b7c6;
  font-size: 0.76rem;
  font-weight: 950;
}

.overview-lens-grid,
.overview-route-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.overview-lens-grid article {
  display: grid;
  gap: 7px;
  border-left: 3px solid rgb(45 212 191 / 0.42);
}

.overview-route-grid a {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s var(--ease-smooth), border-color 0.2s ease, background 0.2s ease;
}

.overview-route-grid a:hover {
  border-color: rgb(45 212 191 / 0.42);
  background: rgb(45 212 191 / 0.08);
  transform: translateY(-1px);
}

.overview-route-grid span {
  width: fit-content;
  border: 1px solid rgb(45 212 191 / 0.26);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgb(45 212 191 / 0.08);
}

.overview-quadrant-figure {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 40px 12px 34px;
}

.overview-quadrant-figure .overview-figure-title,
.overview-quadrant-figure p {
  grid-column: 1 / -1;
}

.overview-quadrant-figure .axis-y,
.overview-quadrant-figure .axis-x {
  position: absolute;
  color: #6f8292;
  font-size: 0.66rem;
  font-weight: 950;
}

.overview-quadrant-figure .axis-y {
  top: 50%;
  left: 8px;
  transform: rotate(-90deg) translateX(-50%);
  transform-origin: left top;
}

.overview-quadrant-figure .axis-x {
  right: 12px;
  bottom: 10px;
}

.overview-quadrant-figure > div:not(.overview-figure-title) {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 12px;
  color: #d8e7ee;
  background: rgb(10 15 21 / 0.64);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.overview-site-map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.overview-site-map .overview-figure-title,
.overview-site-map p {
  grid-column: 1 / -1;
}

.overview-site-map a {
  display: grid;
  gap: 5px;
  min-height: 68px;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  padding: 10px;
  color: #f4fbff;
  background: rgb(10 15 21 / 0.7);
  font-size: 0.78rem;
  font-weight: 950;
  text-decoration: none;
}

.overview-site-map a small {
  color: #91a4b5;
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1.35;
}

.overview-value-kind-grid article {
  display: grid;
  gap: 7px;
  border-left: 3px solid rgb(147 162 179 / 0.24);
}

.overview-value-kind-grid article.observed {
  border-left-color: rgb(45 212 191 / 0.68);
}

.overview-value-kind-grid article.derived {
  border-left-color: rgb(96 165 250 / 0.62);
}

.overview-value-kind-grid article.estimated {
  border-left-color: rgb(245 158 11 / 0.72);
}

.overview-value-kind-grid span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.overview-audience-path-grid p,
.overview-value-kind-grid p,
.overview-expression-grid p {
  margin: 7px 0 0;
  color: #91a4b5;
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.52;
}

.overview-closing {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.1), transparent 46%),
    rgb(7 12 18 / 0.76);
}

.overview-closing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.overview-closing-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
}

.overview-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
}

.overview-copy h2 {
  color: #f4fffd;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.08;
  text-wrap: balance;
}

.overview-copy p:not(.eyebrow) {
  max-width: 64ch;
  color: #a7b7c6;
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.55;
}

.overview-cards {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.overview-card,
.overview-focus {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  background: rgb(7 12 18 / 0.52);
}

.overview-card {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
}

.overview-card span,
.overview-focus > span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.overview-card strong {
  overflow: hidden;
  color: #f4fbff;
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
}

.overview-card small,
.overview-focus small {
  color: #91a4b5;
  font-size: 0.7rem;
  font-weight: 780;
  line-height: 1.35;
}

.overview-focus {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.overview-focus-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 7px;
  padding: 8px;
  color: inherit;
  background: rgb(11 17 24 / 0.58);
  text-align: left;
  cursor: pointer;
}

.overview-focus-item:hover {
  border-color: rgb(45 212 191 / 0.42);
  background: rgb(45 212 191 / 0.08);
}

.overview-focus-item strong {
  overflow: hidden;
  color: #edf7fb;
  font-size: 0.76rem;
  font-weight: 930;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-drawer {
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: var(--radius);
  background: rgb(10 15 21 / 0.72);
}

.filter-drawer > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}

.filter-drawer > summary::-webkit-details-marker {
  display: none;
}

.filter-drawer > summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgb(45 212 191 / 0.34);
  border-radius: 999px;
  color: #a7fff4;
  font-size: 1rem;
  line-height: 1;
}

.filter-drawer[open] > summary::after {
  content: "-";
}

.filter-drawer > summary span {
  color: #f3f8fd;
  font-size: 0.88rem;
  font-weight: 950;
}

.filter-drawer > summary small {
  color: #91a4b5;
  font-size: 0.72rem;
  font-weight: 820;
}

.filter-drawer .control-band {
  margin: 0 10px 10px;
  box-shadow: none;
}

.command-center .kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
  padding-top: 0;
  border-top: 0;
  opacity: 0.9;
}

.command-center .kpi {
  min-width: 0;
  min-height: 82px;
  box-shadow: none;
}

.command-center .kpi-value {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.data-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  border-top: 1px solid rgb(147 162 179 / 0.12);
  padding-top: 14px;
  color: #8798a8;
  font-size: 0.72rem;
  font-weight: 840;
}

.data-footer span {
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.data-footer a {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 7px;
  padding: 0 9px;
  color: #aebccc;
  background: rgb(7 12 18 / 0.42);
}

.data-footer a:hover {
  border-color: rgb(45 212 191 / 0.4);
  color: #e8fffc;
  background: rgb(45 212 191 / 0.08);
}

.scatter-legend {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 16px;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 999px;
  padding: 4px 8px;
  color: #b7c6d5;
  background: rgb(9 14 20 / 0.64);
  font-size: 0.68rem;
  font-weight: 850;
}

.legend-chip i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.legend-chip.size i {
  width: 16px;
  height: 16px;
  border: 1px solid rgb(237 243 248 / 0.72);
  background: rgb(237 243 248 / 0.22);
}

.song-panel {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
}

.song-cover-wrap {
  width: 76px;
}

.song-panel .detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.song-panel .detail:nth-child(n + 10) {
  display: none;
}

.table-toggle {
  min-height: 36px;
  border: 1px solid rgb(45 212 191 / 0.38);
  border-radius: 8px;
  padding: 0 12px;
  color: #dffdfa;
  background: rgb(45 212 191 / 0.1);
  font-size: 0.76rem;
  font-weight: 950;
  cursor: pointer;
}

.table-toggle:hover {
  border-color: rgb(45 212 191 / 0.68);
  background: rgb(45 212 191 / 0.16);
}

.table-toggle[hidden] {
  display: none;
}

.result-overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.result-card {
  min-width: 0;
  padding: 16px;
}

.result-card.wide {
  grid-column: span 7;
}

.structure-card {
  grid-column: span 7;
  padding: 18px;
}

.quality-card-panel,
.mix-card-panel {
  grid-column: span 5;
}

.type-landscape-panel {
  grid-column: 1 / -1;
}

.contest-structure-map {
  margin-top: 16px;
}

.structure-flow {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 54px minmax(130px, 1fr) 54px minmax(130px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.structure-node {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 9px;
  padding: 12px;
  background: rgb(7 12 18 / 0.5);
}

.structure-node span {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.structure-node strong {
  color: #f5fbff;
  font-size: clamp(1.35rem, 2.5vw, 2.2rem);
  font-weight: 950;
  line-height: 1;
}

.structure-volume {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  margin: 2px 0;
}

.structure-volume i {
  height: 8px;
  border-radius: 999px;
  background: rgb(147 162 179 / 0.13);
}

.structure-volume i.active {
  background: linear-gradient(90deg, rgb(45 212 191 / 0.86), rgb(251 191 36 / 0.74));
  box-shadow: 0 0 12px rgb(45 212 191 / 0.12);
}

.structure-node small,
.structure-node em {
  color: #91a4b5;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.structure-node em {
  width: fit-content;
  border: 1px solid rgb(45 212 191 / 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: #c6f7ef;
  background: rgb(45 212 191 / 0.06);
}

.structure-arrow {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #aebdcc;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.structure-arrow b {
  max-width: 68px;
  color: #e7f6f5;
  line-height: 1.2;
}

.structure-arrow i {
  width: 100%;
  height: 2px;
  display: block;
  background: linear-gradient(90deg, rgb(45 212 191 / 0.18), rgb(45 212 191 / 0.72));
  position: relative;
}

.structure-arrow i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 9px;
  height: 9px;
  border-top: 2px solid rgb(45 212 191 / 0.72);
  border-right: 2px solid rgb(45 212 191 / 0.72);
  transform: translateY(-50%) rotate(45deg);
}

.structure-readout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.structure-readout div {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgb(7 12 18 / 0.38);
}

.structure-readout span,
.structure-readout small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.structure-readout span {
  color: var(--teal);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.structure-readout strong {
  display: block;
  margin-top: 4px;
  color: #f4fbff;
  font-size: 1.02rem;
  font-weight: 950;
}

.structure-readout small {
  margin-top: 3px;
  color: #8fa0af;
  font-size: 0.67rem;
  font-weight: 760;
}

.stage-quality-chart {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.stage-quality-head,
.stage-quality-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.stage-quality-head b {
  color: #a7b7c6;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
}

.stage-quality-row {
  border-top: 1px solid rgb(147 162 179 / 0.1);
  padding-top: 10px;
}

.stage-quality-row > span {
  color: #d7e4eb;
  font-size: 0.76rem;
  font-weight: 900;
}

.stage-quality-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.stage-quality-track {
  height: 9px;
  border-radius: 999px;
  background: rgb(28 40 50 / 0.82);
  overflow: hidden;
}

.stage-quality-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #42e6d0, #f6c95c);
}

.stage-quality-cell strong {
  color: #f4fbff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: right;
}

.winner-layout {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.winner-cover {
  width: 96px;
  aspect-ratio: 1;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgb(7 12 18 / 0.66);
}

.winner-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.winner-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.winner-copy h2 {
  overflow: hidden;
  color: #f5fbff;
  font-size: 1.35rem;
  line-height: 1.08;
  text-overflow: ellipsis;
}

.winner-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.winner-metrics div {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 7px;
  padding: 8px;
  background: rgb(7 12 18 / 0.5);
}

.winner-metrics span {
  display: block;
  color: #8fa0af;
  font-size: 0.62rem;
  font-weight: 850;
}

.winner-metrics strong {
  display: block;
  margin-top: 2px;
  color: #f4fbff;
  font-size: 0.98rem;
  font-weight: 950;
}

.result-link {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(45 212 191 / 0.32);
  border-radius: 7px;
  padding: 0 10px;
  color: #b8fff5;
  background: rgb(45 212 191 / 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.stage-overview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.stage-overview-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 90px;
  gap: 10px;
  align-items: center;
}

.stage-overview-row strong,
.stage-overview-row span,
.stage-overview-row small {
  display: block;
}

.stage-overview-row strong {
  color: #f3fbff;
  font-size: 0.88rem;
}

.stage-overview-row span,
.stage-overview-row small {
  color: #91a4b5;
  font-size: 0.68rem;
  font-weight: 760;
}

.stage-overview-track,
.final-score-track,
.quality-row div {
  height: 9px;
  border-radius: 999px;
  background: rgb(28 40 50 / 0.82);
  overflow: hidden;
}

.stage-overview-track div,
.final-score-track div,
.quality-row i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), #f6c95c);
}

.final-top-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.final-podium {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-top: 12px;
  margin-bottom: 10px;
}

.final-podium-item {
  min-width: 0;
  height: calc(92px + (var(--podium-height) * 0.78));
  display: grid;
  grid-template-rows: auto 54px minmax(0, auto) auto;
  align-content: end;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 9px;
  padding: 10px;
  color: inherit;
  background:
    linear-gradient(180deg, rgb(45 212 191 / 0.12), rgb(7 12 18 / 0.54)),
    rgb(7 12 18 / 0.46);
  text-align: center;
  text-decoration: none;
}

.final-podium-item.rank-1 {
  border-color: rgb(251 191 36 / 0.42);
  background:
    linear-gradient(180deg, rgb(251 191 36 / 0.18), rgb(45 212 191 / 0.08)),
    rgb(7 12 18 / 0.54);
}

.final-podium-item:hover {
  border-color: rgb(45 212 191 / 0.42);
  transform: translateY(-1px);
}

.final-podium-item span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 950;
}

.final-podium-item img {
  width: 54px;
  height: 54px;
  border: 1px solid rgb(237 243 248 / 0.18);
  border-radius: 8px;
  object-fit: cover;
  background: rgb(7 12 18 / 0.66);
}

.final-podium-item strong {
  width: 100%;
  overflow: hidden;
  color: #f5fbff;
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-podium-item b {
  color: #f7d56b;
  font-size: 0.9rem;
  font-weight: 950;
}

.final-top-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1.1fr) minmax(90px, 0.8fr) minmax(130px, 1fr) 58px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  color: inherit;
  background: rgb(7 12 18 / 0.38);
  text-decoration: none;
}

.final-top-row:hover {
  border-color: rgb(45 212 191 / 0.32);
  background: rgb(45 212 191 / 0.06);
}

.final-top-row span,
.final-top-row small {
  color: #8fa0af;
  font-size: 0.68rem;
  font-weight: 780;
}

.final-top-row strong,
.final-top-row b {
  min-width: 0;
  overflow: hidden;
  color: #f5fbff;
  font-size: 0.78rem;
  font-weight: 920;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.final-top-row b {
  text-align: right;
}

.stage-quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.quality-card {
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  padding: 12px;
  background: rgb(7 12 18 / 0.42);
}

.quality-card h3 {
  margin-bottom: 10px;
  color: #f4fbff;
  font-size: 0.92rem;
}

.quality-row {
  display: grid;
  grid-template-columns: minmax(82px, 1fr) minmax(70px, 1.2fr) 48px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.quality-row span {
  color: #91a4b5;
  font-size: 0.65rem;
  font-weight: 800;
}

.quality-row strong {
  color: #e9f7fb;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: right;
}

.quality-row.good i {
  background: linear-gradient(90deg, #60f2cf, #b6e65e);
}

.quality-row.warn i {
  background: linear-gradient(90deg, #f6c95c, #ef6f8f);
}

.stage-vote-mix {
  margin-top: 14px;
}

.vote-mix-grid {
  display: grid;
  gap: 10px;
}

.vote-mix-card {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 9px;
  padding: 12px;
  background: rgb(7 12 18 / 0.42);
}

.vote-mix-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.vote-mix-head span {
  color: #f4fbff;
  font-size: 0.86rem;
  font-weight: 950;
}

.vote-mix-head strong {
  color: #91a4b5;
  font-size: 0.7rem;
  font-weight: 850;
}

.vote-mix-bar,
.type-landscape-density {
  display: flex;
  width: 100%;
  height: 13px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(28 40 50 / 0.82);
}

.vote-mix-bar i,
.type-landscape-density i {
  min-width: 2px;
}

.vote-mix-bar .top,
.vote-mix-values .top,
.type-landscape-density .top {
  background: #42e6d0;
}

.vote-mix-bar .mid,
.vote-mix-values .mid,
.type-landscape-density .mid {
  background: #f6c95c;
}

.vote-mix-bar .low,
.vote-mix-values .low,
.type-landscape-density .low {
  background: #ef6f8f;
}

.vote-mix-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.vote-mix-values span {
  min-width: 0;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  color: #91a4b5;
  font-size: 0.64rem;
  font-weight: 850;
}

.vote-mix-values i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.vote-mix-values b {
  grid-column: 2;
  color: #f5fbff;
  font-size: 0.76rem;
  font-weight: 950;
}

.overview-type-map {
  margin-top: 14px;
}

.type-landscape-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 10px;
}

.type-landscape-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 999px;
  padding: 3px 8px;
  color: #aebdcc;
  background: rgb(7 12 18 / 0.42);
  font-size: 0.64rem;
  font-weight: 850;
}

.type-landscape-legend .count {
  color: #bdefff;
}

.type-landscape-legend i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.type-landscape-legend .top {
  background: #42e6d0;
}

.type-landscape-legend .mid {
  background: #f6c95c;
}

.type-landscape-legend .low {
  background: #ef6f8f;
}

.type-landscape-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.type-landscape-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(64px, 0.42fr) 58px;
  gap: 8px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 9px 10px;
  background: rgb(7 12 18 / 0.38);
  overflow: hidden;
}

.type-landscape-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.type-landscape-title span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--teal);
  background: rgb(45 212 191 / 0.1);
  font-size: 0.68rem;
  font-weight: 950;
}

.type-landscape-title strong,
.type-landscape-title small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.type-landscape-title strong {
  color: #f5fbff;
  font-size: 0.76rem;
  font-weight: 920;
}

.type-landscape-title small {
  grid-column: 2;
  color: #91a4b5;
  font-size: 0.64rem;
  font-weight: 780;
}

.type-landscape-count {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(28 40 50 / 0.82);
}

.type-landscape-count i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, rgb(45 212 191 / 0.88), rgb(96 165 250 / 0.76));
}

.type-landscape-rate {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.type-landscape-rate span {
  color: #91a4b5;
  font-size: 0.6rem;
  font-weight: 850;
}

.type-landscape-rate strong {
  color: #f5fbff;
  font-size: 0.86rem;
  font-weight: 950;
}

.type-landscape-density {
  grid-column: 1 / -1;
  height: 9px;
  margin-top: 0;
}

.table-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 16px 0;
}

.table-stage-tab {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 0 10px;
  color: #c9d6df;
  background: rgb(7 12 18 / 0.52);
  font-weight: 900;
  cursor: pointer;
}

.table-stage-tab strong {
  color: #8fa0af;
  font-size: 0.72rem;
}

.table-stage-tab.active {
  border-color: rgb(45 212 191 / 0.5);
  color: #effffc;
  background: rgb(45 212 191 / 0.12);
}

.table-filter-drawer {
  margin: 10px 16px 0;
}

.table-song-link {
  color: inherit;
  text-decoration: none;
}

.table-song-link:hover {
  color: #99f6e4;
}

.table-status {
  margin: 10px 16px 0;
  color: #91a4b5;
  font-size: 0.76rem;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .overview-summary {
    grid-template-columns: 1fr;
  }

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

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

  .overview-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-stage-environment-grid,
  .overview-audience-path-grid,
  .overview-value-kind-grid,
  .overview-expression-grid {
    grid-template-columns: 1fr;
  }

  .overview-vote-points {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .result-overview-grid {
    grid-template-columns: 1fr;
  }

  .result-card.wide {
    grid-column: auto;
  }

  .structure-card,
  .quality-card-panel,
  .mix-card-panel,
  .type-landscape-panel {
    grid-column: auto;
  }

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

@media (max-width: 760px) {
  .audience-entry {
    grid-template-columns: 1fr;
  }

  .overview-summary {
    padding: 12px;
  }

  .overview-cards,
  .overview-primary-actions,
  .command-center .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .overview-stat-grid,
  .overview-stage-copy-grid,
  .overview-rank-band-grid,
  .overview-vote-points {
    grid-template-columns: 1fr;
  }

  .overview-funnel-row,
  .overview-funnel-row.showcase,
  .overview-funnel-row.finals {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .overview-search-form {
    grid-template-columns: 1fr;
  }

  .overview-search-form button {
    width: 100%;
  }

  .overview-quadrant-figure {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .overview-quadrant-figure .axis-y {
    top: 12px;
    left: 12px;
    transform: none;
  }

  .overview-focus > span {
    grid-column: 1 / -1;
  }

  .overview-focus-item strong {
    display: -webkit-box;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .filter-drawer > summary {
    grid-template-columns: 1fr;
  }

  .filter-drawer > summary::after {
    position: absolute;
    right: 12px;
  }

  .command-center .control-band {
    grid-template-columns: 1fr;
  }

  .command-center .kpi {
    flex: initial;
    min-height: 92px;
  }

  .song-panel {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .song-cover-wrap {
    width: 62px;
  }

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

  .song-panel .detail:nth-child(n + 7) {
    display: none;
  }

  .table-wrap {
    max-height: none;
    overflow: visible;
  }

  .winner-layout,
  .stage-quality-grid {
    grid-template-columns: 1fr;
  }

  .final-podium,
  .type-landscape-grid {
    grid-template-columns: 1fr;
  }

  .final-podium {
    min-height: 0;
  }

  .final-podium-item {
    height: auto;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    text-align: left;
  }

  .final-podium-item.rank-1 {
    order: 1;
  }

  .final-podium-item.rank-2 {
    order: 2;
  }

  .final-podium-item.rank-3 {
    order: 3;
  }

  .final-podium-item img {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
  }

  .final-podium-item span,
  .final-podium-item strong {
    grid-column: 2;
  }

  .final-podium-item b {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .structure-flow {
    grid-template-columns: 1fr;
  }

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

  .structure-arrow {
    min-height: 34px;
  }

  .structure-arrow i {
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, rgb(45 212 191 / 0.18), rgb(45 212 191 / 0.72));
  }

  .structure-arrow i::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .stage-quality-head {
    display: none;
  }

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

  .stage-quality-cell {
    grid-template-columns: minmax(86px, 0.55fr) minmax(0, 1fr) 48px;
    align-items: center;
  }

  .stage-quality-cell::before {
    color: #91a4b5;
    font-size: 0.66rem;
    font-weight: 900;
  }

  .stage-quality-row .stage-quality-cell:nth-child(2)::before {
    content: "Bunk";
  }

  .stage-quality-row .stage-quality-cell:nth-child(3)::before {
    content: "Showcase";
  }

  .stage-quality-row .stage-quality-cell:nth-child(4)::before {
    content: "Finals";
  }

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

  .vote-mix-values {
    grid-template-columns: 1fr;
  }

  .type-landscape-row {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .type-landscape-count,
  .type-landscape-density {
    grid-column: 1 / -1;
  }

  .type-landscape-rate {
    align-self: start;
  }

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

  .final-top-row {
    grid-template-columns: 52px minmax(0, 1fr) 54px;
  }

  .final-top-row small,
  .final-score-track {
    display: none;
  }

  .table-stage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 12px;
  }

  .data-footer {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .command-center .kpi-grid {
    grid-template-columns: 1fr;
  }

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

  .overview-card {
    min-height: 96px;
    padding: 10px;
  }

  .overview-card strong {
    font-size: 0.84rem;
  }

  .overview-card small {
    font-size: 0.66rem;
  }
}

/* Guide page workbench polish */
.guide-shell {
  width: min(1500px, 100%);
}

.guide-shell main {
  display: grid;
  gap: 14px;
}

#guide-top {
  order: 1;
}

#guide-contents {
  order: 2;
}

#voting-system {
  order: 3;
}

#three-lenses {
  order: 4;
}

#rank-bands {
  order: 5;
}

#metrics {
  order: 6;
}

#cutoff {
  order: 7;
}

#stages {
  order: 8;
}

#page-reading {
  order: 9;
}

#vote-types {
  order: 10;
}

.guide-workbench {
  order: 11;
}

#distribution-type-list {
  order: 12;
}

#misreadings {
  order: 13;
}

#value-types {
  order: 14;
}

#purpose-routes {
  order: 15;
}

#language-policy {
  order: 16;
}

#guide-closing {
  order: 17;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.62fr);
  border-color: rgb(147 162 179 / 0.2);
  padding: clamp(16px, 2vw, 24px);
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.1), transparent 38%),
    linear-gradient(180deg, rgb(17 24 33 / 0.86), rgb(6 10 15 / 0.88));
}

.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgb(147 162 179 / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgb(147 162 179 / 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

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

.guide-hero h2 {
  max-width: 820px;
  color: #f4fbff;
  font-size: clamp(1.62rem, 2.5vw, 2.55rem);
  line-height: 1.05;
}

.guide-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #b8c7d7;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.7;
}

.guide-section {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: var(--radius);
  padding: clamp(14px, 2vw, 20px);
  background:
    linear-gradient(180deg, rgb(17 24 33 / 0.62), rgb(5 9 14 / 0.7));
  box-shadow: var(--shadow);
}

.guide-start-card,
.guide-figure,
.guide-lens-grid article,
.page-reading-grid article,
.purpose-route-grid article,
.guide-closing {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  background: rgb(6 10 15 / 0.68);
}

.guide-start-card {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 16px;
}

.guide-start-card h3,
.guide-figure-title,
.guide-lens-grid strong,
.page-reading-grid strong,
.purpose-route-grid strong,
.guide-closing h2 {
  color: #f4fbff;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.guide-start-card h3,
.guide-figure-title {
  font-size: 0.94rem;
}

.guide-start-card p,
.guide-lens-grid p,
.page-reading-grid p,
.purpose-route-grid p,
.guide-closing p,
.guide-figure-note {
  color: #9fafbd;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.6;
}

.guide-route-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-route-links a,
.page-reading-grid a,
.purpose-route-grid a,
.guide-method-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 999px;
  padding: 0 12px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.08);
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
}

.guide-method-link {
  width: fit-content;
  margin-top: 12px;
}

.guide-checklist,
.guide-lens-grid,
.page-reading-grid,
.purpose-route-grid,
.value-kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  margin-top: 12px;
}

.guide-checklist article {
  position: relative;
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 12px 12px 12px 34px;
  color: #c8d7e5;
  background: rgb(6 10 15 / 0.64);
  font-size: 0.78rem;
  font-weight: 860;
  line-height: 1.45;
}

.guide-checklist article::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 14px rgb(45 212 191 / 0.34);
}

.guide-figure {
  margin-top: 12px;
  padding: 14px;
}

.guide-figure-note {
  margin-top: 10px;
}

.vote-point-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(54px, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.vote-point-strip span,
.vote-band-legend span,
.rank-band-bar span {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  background: rgb(5 9 14 / 0.58);
}

.vote-point-strip span {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 10px 6px;
}

.vote-point-strip strong {
  color: #f4fbff;
  font-size: 1rem;
  font-weight: 950;
}

.vote-point-strip b {
  color: #9fafbd;
  font-size: 0.66rem;
  font-weight: 950;
}

.vote-point-strip .top-band,
.vote-band-legend .top-band,
.rank-band-bar .top-band {
  border-color: rgb(45 212 191 / 0.32);
  background: rgb(45 212 191 / 0.08);
}

.vote-point-strip .mid-band,
.vote-band-legend .mid-band,
.rank-band-bar .mid-band {
  border-color: rgb(96 165 250 / 0.3);
  background: rgb(96 165 250 / 0.08);
}

.vote-point-strip .low-band,
.vote-band-legend .low-band,
.rank-band-bar .low-band {
  border-color: rgb(251 113 133 / 0.3);
  background: rgb(251 113 133 / 0.08);
}

.vote-band-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.vote-band-legend span,
.rank-band-bar span {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 10px;
  color: #c8d7e5;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.35;
}

.guide-lens-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.guide-lens-grid span {
  width: fit-content;
  border: 1px solid rgb(45 212 191 / 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.08);
  font-size: 0.66rem;
  font-weight: 950;
}

.quadrant-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 250px;
  margin-top: 12px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(147 162 179 / 0.32) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgb(147 162 179 / 0.32) 50%, transparent calc(50% + 1px)),
    rgb(5 9 14 / 0.54);
}

.quadrant-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 28px 16px;
  color: #c8d7e5;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.axis-x,
.axis-y {
  position: absolute;
  z-index: 2;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: #91a4b5;
  background: rgb(6 10 15 / 0.84);
  font-size: 0.64rem;
  font-weight: 950;
}

.axis-x {
  right: 12px;
  bottom: 10px;
}

.axis-y {
  top: 10px;
  left: 12px;
}

.rank-band-bar {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 8px;
  margin: 12px 0;
}

.rank-band-bar strong,
.rank-band-bar small {
  display: block;
}

.rank-band-bar strong {
  color: #f4fbff;
  font-size: 0.78rem;
  font-weight: 950;
}

.rank-band-bar small {
  color: #9fafbd;
  font-size: 0.66rem;
  font-weight: 850;
}

.metric-glossary {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.denominator-figure {
  display: grid;
  gap: 10px;
}

.denominator-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.28fr) minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  padding: 10px;
  background: rgb(5 9 14 / 0.52);
}

.denominator-row strong {
  color: #f4fbff;
  font-size: 0.78rem;
  font-weight: 950;
}

.denominator-row span {
  color: #9fafbd;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.45;
}

.voter-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 999px;
  padding: 8px;
  background: rgb(17 24 33 / 0.68);
}

.voter-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
}

.voter-dots .muted {
  background: rgb(147 162 179 / 0.28);
}

.voter-dots.scored .muted {
  opacity: 0.28;
}

.cutoff-axis {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  min-height: 56px;
  margin-top: 12px;
}

.cutoff-axis::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgb(251 113 133 / 0.68), rgb(147 162 179 / 0.26) 50%, rgb(45 212 191 / 0.72));
  transform: translateY(-50%);
}

.cutoff-axis span {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #f4fbff;
  background: rgb(6 10 15 / 0.9);
  font-size: 0.76rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.cutoff-axis .line {
  border: 1px solid rgb(147 162 179 / 0.38);
}

.cutoff-axis .positive {
  justify-self: end;
  color: #9ff5e9;
}

.cutoff-axis .negative {
  color: #ff9ba9;
}

.cutoff-labels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  color: #91a4b5;
  font-size: 0.68rem;
  font-weight: 900;
}

.cutoff-labels strong {
  color: #f4fbff;
}

.cutoff-labels span:last-child {
  text-align: right;
}

.stage-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.stage-flow article,
.value-kind-grid article {
  min-width: 0;
  border: 1px solid rgb(147 162 179 / 0.15);
  border-radius: 8px;
  padding: 14px;
  background: rgb(6 10 15 / 0.64);
}

.stage-flow > span {
  align-self: center;
  color: #91a4b5;
  font-weight: 950;
}

.stage-flow strong,
.value-kind-grid strong {
  display: block;
  color: #f4fbff;
  font-size: 0.9rem;
  font-weight: 950;
}

.stage-flow p,
.value-kind-grid p {
  margin-top: 8px;
  color: #9fafbd;
  font-size: 0.74rem;
  font-weight: 780;
  line-height: 1.5;
}

.value-kind-grid article {
  border-left: 3px solid var(--teal);
}

.value-kind-grid article.derived {
  border-left-color: var(--blue);
}

.value-kind-grid article.estimated {
  border-left-color: var(--amber);
}

.value-kind-grid span {
  color: #91a4b5;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-type-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.type-position-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-height: 250px;
  margin-top: 12px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgb(147 162 179 / 0.28) 50%, transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), rgb(147 162 179 / 0.28) 50%, transparent calc(50% + 1px)),
    rgb(5 9 14 / 0.54);
}

.type-node {
  display: flex;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(147 162 179 / 0.15);
  border-radius: 8px;
  padding: 8px;
  color: #c8d7e5;
  background: rgb(6 10 15 / 0.76);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.type-node.top-wide,
.type-node.top-narrow {
  border-color: rgb(45 212 191 / 0.28);
  color: #9ff5e9;
}

.type-node.split,
.type-node.stable {
  border-style: dashed;
  border-color: rgb(251 191 36 / 0.32);
}

.page-reading-grid article,
.purpose-route-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.page-reading-grid p,
.purpose-route-grid p {
  min-height: 74px;
}

.page-reading-grid a,
.purpose-route-grid a {
  width: fit-content;
}

.misread-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  background: rgb(147 162 179 / 0.16);
}

.misread-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(130px, 0.28fr) minmax(170px, 0.32fr) minmax(0, 1fr);
  min-width: 0;
  background: rgb(6 10 15 / 0.82);
}

.avoid-table [role="row"] {
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
}

.misread-table strong,
.misread-table span {
  min-width: 0;
  padding: 11px 12px;
  color: #c8d7e5;
  font-size: 0.74rem;
  font-weight: 820;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.misread-table strong {
  color: #f4fbff;
  background: rgb(17 24 33 / 0.76);
  font-weight: 950;
}

.guide-closing {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.12), transparent 44%),
    rgb(6 10 15 / 0.72);
}

.guide-summary {
  align-self: stretch;
  grid-template-columns: 1fr;
}

.guide-summary article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border-color: rgb(147 162 179 / 0.18);
  background: rgb(5 9 14 / 0.68);
}

.guide-summary span {
  margin-top: 0;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 999px;
  padding: 4px 8px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.09);
  white-space: nowrap;
}

.guide-points {
  margin-top: 0;
}

.guide-points article {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  border-color: rgb(147 162 179 / 0.17);
  padding-left: 42px;
  background: rgb(6 10 15 / 0.72);
}

.guide-points article::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--teal);
  box-shadow: 0 0 18px rgb(45 212 191 / 0.34);
}

.guide-points article:nth-child(2)::before {
  background: var(--blue);
  box-shadow: 0 0 18px rgb(96 165 250 / 0.32);
}

.guide-points article:nth-child(3)::before {
  background: var(--coral);
  box-shadow: 0 0 18px rgb(251 113 133 / 0.3);
}

.guide-points article:nth-child(4)::before {
  background: var(--amber);
  box-shadow: 0 0 18px rgb(251 191 36 / 0.3);
}

.guide-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(290px, 0.66fr);
  gap: 14px;
  align-items: stretch;
}

.guide-focus-panel,
.guide-axis-panel {
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgb(17 24 33 / 0.84), rgb(5 9 14 / 0.76));
  box-shadow: var(--shadow);
}

.guide-focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  gap: 18px;
  min-width: 0;
  padding: clamp(14px, 2vw, 20px);
}

.guide-focus-copy,
.guide-focus-chart {
  min-width: 0;
}

.guide-focus-title-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.guide-focus-index {
  width: 34px;
  height: 34px;
  font-size: 0.9rem;
}

.guide-focus-title-row h2 {
  color: #f4fbff;
  font-size: clamp(1.38rem, 2vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.guide-focus-title-row p {
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgb(45 212 191 / 0.3);
  border-radius: 999px;
  padding: 5px 9px;
  color: #9ff5e9;
  background: rgb(45 212 191 / 0.1);
  font-size: 0.72rem;
  font-weight: 950;
}

.guide-focus-reading {
  margin-top: 14px;
  color: #c8d7e5;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.62;
}

.guide-focus-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.guide-focus-actions div {
  border: 1px solid rgb(147 162 179 / 0.16);
  border-left: 3px solid var(--teal);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgb(6 10 15 / 0.66);
}

.guide-focus-actions div:nth-child(2) {
  border-left-color: var(--amber);
}

.guide-focus-actions strong,
.guide-focus-actions span {
  display: block;
}

.guide-focus-actions strong {
  color: #f4fbff;
  font-size: 0.74rem;
  font-weight: 950;
}

.guide-focus-actions span {
  margin-top: 5px;
  color: #9fafbd;
  font-size: 0.75rem;
  line-height: 1.52;
}

.guide-focus-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

.guide-focus-chart .guide-bars {
  height: 172px;
  border: 1px solid rgb(147 162 179 / 0.14);
  border-radius: 8px;
  padding: 14px 12px 9px;
  background:
    linear-gradient(rgb(147 162 179 / 0.055) 1px, transparent 1px),
    rgb(6 10 15 / 0.64);
  background-size: 100% 34px;
}

.guide-shape-metrics {
  display: grid;
  gap: 8px;
}

.guide-density-metric {
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgb(147 162 179 / 0.15);
  border-radius: 8px;
  padding: 10px;
  background: rgb(6 10 15 / 0.68);
}

.density-metric-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.density-metric-head span,
.guide-density-metric small {
  color: #91a4b5;
  font-size: 0.66rem;
  font-weight: 850;
}

.density-metric-head strong {
  color: #f4fbff;
  font-size: 0.86rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.density-metric-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(37 50 65 / 0.78);
}

.density-metric-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.guide-density-metric.mid .density-metric-track i {
  background: var(--blue);
}

.guide-density-metric.low .density-metric-track i {
  background: var(--coral);
}

.guide-density-metric.edge .density-metric-track i {
  background: var(--amber);
}

.guide-peak-chip {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(45 212 191 / 0.26);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgb(45 212 191 / 0.08);
}

.guide-peak-chip span {
  color: #91a4b5;
  font-size: 0.7rem;
  font-weight: 900;
}

.guide-peak-chip strong {
  color: #9ff5e9;
  font-size: 0.95rem;
  font-weight: 950;
}

.guide-axis-panel {
  padding: 16px;
}

.guide-axis-head {
  padding: 0;
}

.guide-axis-grid {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.guide-axis-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.15);
  border-radius: 8px;
  padding: 10px;
  background: rgb(6 10 15 / 0.64);
  animation: soft-rise 0.42s var(--ease-smooth) both;
  animation-delay: calc(var(--axis-index) * 0.04s);
}

.guide-axis-icon {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(45 212 191 / 0.28);
  border-radius: 8px;
  background: rgb(45 212 191 / 0.1);
}

.guide-axis-icon::before,
.guide-axis-icon::after {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 4px;
  border-radius: 999px 999px 0 0;
  background: var(--teal);
}

.guide-axis-icon::before {
  left: 8px;
  height: 14px;
}

.guide-axis-icon::after {
  right: 8px;
  height: 8px;
  opacity: 0.55;
}

.guide-axis-card.mid .guide-axis-icon {
  border-color: rgb(96 165 250 / 0.28);
  background: rgb(96 165 250 / 0.1);
}

.guide-axis-card.mid .guide-axis-icon::before,
.guide-axis-card.mid .guide-axis-icon::after {
  background: var(--blue);
  height: 13px;
}

.guide-axis-card.low .guide-axis-icon {
  border-color: rgb(251 113 133 / 0.28);
  background: rgb(251 113 133 / 0.1);
}

.guide-axis-card.low .guide-axis-icon::before {
  height: 7px;
}

.guide-axis-card.low .guide-axis-icon::after {
  height: 15px;
  background: var(--coral);
  opacity: 1;
}

.guide-axis-card.edge .guide-axis-icon {
  border-color: rgb(251 191 36 / 0.28);
  background: rgb(251 191 36 / 0.1);
}

.guide-axis-card.edge .guide-axis-icon::before,
.guide-axis-card.edge .guide-axis-icon::after {
  height: 15px;
  background: var(--amber);
  opacity: 1;
}

.guide-axis-card strong,
.guide-axis-card p {
  display: block;
  min-width: 0;
}

.guide-axis-card strong {
  color: #f4fbff;
  font-size: 0.78rem;
  font-weight: 950;
}

.guide-axis-card p {
  margin-top: 3px;
  color: #91a4b5;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.38;
}

.guide-section-head {
  padding-top: 8px;
}

.guide-filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.guide-filter-tab {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 8px;
  padding: 10px 11px;
  color: #c8d7e5;
  background: rgb(6 10 15 / 0.68);
  cursor: pointer;
  transition: transform 0.24s var(--ease-smooth), border-color 0.24s ease, background 0.24s ease;
}

.guide-filter-tab:hover,
.guide-filter-tab.active {
  border-color: rgb(45 212 191 / 0.62);
  background: rgb(45 212 191 / 0.1);
  transform: translateY(-1px);
}

.guide-filter-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 950;
}

.guide-filter-tab strong {
  flex: none;
  color: #91a4b5;
  font-size: 0.68rem;
  font-weight: 900;
}

.guide-filter-tab.active strong {
  color: #9ff5e9;
}

.guide-type-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}

.guide-type-card {
  position: relative;
  min-width: 0;
  border-color: rgb(147 162 179 / 0.16);
  color: inherit;
  background: rgb(6 10 15 / 0.68);
  text-align: left;
  cursor: pointer;
  appearance: none;
  animation: soft-rise 0.36s var(--ease-smooth) both;
  transition: transform 0.24s var(--ease-smooth), border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.guide-type-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--teal);
  opacity: 0.72;
}

.guide-type-card.middle::before {
  background: var(--blue);
}

.guide-type-card.risky::before {
  background: var(--amber);
}

.guide-type-card:hover,
.guide-type-card.active {
  transform: translateY(-2px);
  border-color: rgb(45 212 191 / 0.58);
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.1), transparent 46%),
    rgb(6 10 15 / 0.84);
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.3);
}

.guide-type-card.active::before {
  opacity: 1;
  box-shadow: 0 0 18px currentColor;
}

.guide-type-card .guide-bars {
  height: 86px;
  border: 1px solid rgb(147 162 179 / 0.12);
  border-radius: 8px;
  padding: 8px 8px 5px;
  background: rgb(5 9 14 / 0.58);
}

.guide-type-head h2,
.guide-reading,
.guide-good-weak span {
  overflow-wrap: anywhere;
}

.guide-type-head p {
  border-color: rgb(147 162 179 / 0.18);
  color: #c8d7e5;
  background: rgb(147 162 179 / 0.08);
}

.guide-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.guide-mini-metrics span {
  display: grid;
  gap: 3px;
  border: 1px solid rgb(147 162 179 / 0.13);
  border-radius: 8px;
  padding: 7px;
  background: rgb(5 9 14 / 0.5);
}

.guide-mini-metrics b {
  overflow: hidden;
  color: #91a4b5;
  font-size: 0.58rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-mini-metrics strong {
  color: #f4fbff;
  font-size: 0.8rem;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.guide-good-weak {
  grid-template-columns: 1fr;
}

.guide-good-weak div {
  border-top-color: rgb(147 162 179 / 0.14);
}

.guide-focus-panel,
.guide-axis-panel,
.guide-filter-tab,
.guide-type-card {
  will-change: transform;
}

@media (max-width: 1180px) {
  .guide-hero,
  .guide-workbench {
    grid-template-columns: 1fr;
  }

  .guide-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .vote-point-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .vote-band-legend,
  .stage-flow {
    grid-template-columns: 1fr;
  }

  .stage-flow > span {
    display: none;
  }
}

@media (max-width: 860px) {
  .guide-focus-panel,
  .guide-focus-chart,
  .guide-points,
  .guide-axis-grid,
  .guide-filter-tabs {
    grid-template-columns: 1fr;
  }

  .guide-focus-chart .guide-bars {
    height: 150px;
  }

  .guide-summary {
    grid-template-columns: 1fr;
  }

  .rank-band-bar,
  .denominator-row,
  .cutoff-labels,
  .misread-table [role="row"],
  .avoid-table [role="row"],
  .guide-type-summary {
    grid-template-columns: 1fr;
  }

  .cutoff-labels span:last-child {
    text-align: left;
  }

  .misread-table {
    border: 0;
    background: transparent;
    gap: 8px;
  }

  .misread-table [role="row"] {
    border: 1px solid rgb(147 162 179 / 0.16);
    border-radius: 8px;
    overflow: hidden;
  }

  .misread-table [role="row"]:first-child {
    display: none;
  }

  .misread-table span {
    padding: 9px 11px;
  }

  .misread-table span::before {
    content: attr(data-card-label);
    display: block;
    margin-bottom: 4px;
    color: #91a4b5;
    font-size: 0.62rem;
    font-weight: 950;
  }

  .guide-mobile-accordion > .panel-head {
    position: relative;
    padding-right: 38px;
    cursor: pointer;
  }

  .guide-mobile-accordion > .panel-head::after {
    content: "-";
    position: absolute;
    top: 10px;
    right: 0;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid rgb(147 162 179 / 0.22);
    border-radius: 999px;
    color: #d9fffb;
    background: rgb(255 255 255 / 0.04);
    font-size: 0.86rem;
    font-weight: 950;
  }

  .guide-mobile-accordion.guide-mobile-collapsed > .panel-head::after {
    content: "+";
  }

  .guide-mobile-accordion.guide-mobile-collapsed > :not(.panel-head) {
    display: none !important;
  }

  .guide-workbench {
    display: none;
  }
}

@media (max-width: 520px) {
  .guide-shell .topbar {
    gap: 10px;
    padding-bottom: 12px;
  }

  .guide-shell .site-nav-link[href*="methodology"] {
    display: none;
  }

  .guide-shell .topbar h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 11vw, 2.4rem);
    line-height: 0.98;
  }

  .guide-shell .topbar .eyebrow {
    font-size: 0.66rem;
  }

  .guide-shell .language-switcher {
    gap: 7px;
  }

  .guide-shell .language-switcher select {
    min-height: 38px;
    padding: 0 12px;
  }

  .guide-shell .site-nav {
    margin-bottom: 10px;
  }

  .guide-shell .site-nav-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .guide-shell .site-nav-label {
    grid-column: 1 / -1;
  }

  .guide-shell .site-nav-link {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .guide-shell .page-links .site-nav-link:last-child {
    grid-column: auto;
  }

  .guide-hero {
    padding: 14px;
  }

  .guide-hero h2 {
    font-size: 1.34rem;
    line-height: 1.12;
  }

  .guide-hero p:not(.eyebrow) {
    font-size: 0.84rem;
    line-height: 1.58;
  }

  .guide-summary article,
  .guide-points article {
    min-height: 0;
    padding-block: 10px;
  }

  .guide-focus-panel,
  .guide-axis-panel,
  .guide-type-card {
    padding: 12px;
  }

  .guide-focus-title-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .guide-focus-index {
    width: 30px;
    height: 30px;
  }

  .guide-focus-title-row h2 {
    font-size: 1.28rem;
  }

  .guide-focus-chart .guide-bars {
    height: 130px;
    padding-inline: 8px;
  }

  .guide-mini-metrics {
    grid-template-columns: 1fr;
  }

  .guide-filter-tab {
    padding: 9px;
  }

  .guide-section,
  .guide-figure {
    padding: 12px;
  }

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

  .quadrant-frame,
  .type-position-grid {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .axis-x,
  .axis-y {
    position: static;
    margin: 8px;
    width: fit-content;
  }
}

/* Overview page repair layer */
.overview-shell {
  width: min(1500px, 100%);
}

.overview-shell .dashboard-main {
  gap: 14px;
}

.overview-shell .panel-head {
  gap: 12px;
}

.overview-shell .result-card {
  overflow: hidden;
}

.overview-shell .final-top-list {
  margin-top: 10px;
}

.overview-shell .table-wrap {
  border-top: 1px solid rgb(147 162 179 / 0.1);
}

@media (max-width: 1100px) and (min-width: 761px) {
  .overview-shell .type-landscape-grid {
    grid-template-columns: 1fr;
  }

  .overview-shell .type-landscape-row {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 0.38fr) 62px;
  }
}

.overview-shell .rank-badge[data-tooltip]::before,
.overview-shell .rank-badge[data-tooltip]::after {
  display: none;
}

@media (max-width: 760px) {
  .overview-shell {
    padding-inline: 12px;
  }

  .overview-shell .topbar {
    gap: 12px;
    margin-bottom: 10px;
    padding: 0 0 12px;
  }

  .overview-shell .topbar h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
    line-height: 0.98;
  }

  .overview-shell .topbar .eyebrow {
    font-size: 0.66rem;
  }

  .overview-shell .language-switcher {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }

  .overview-shell .language-switcher select {
    min-height: 38px;
    padding: 0 12px;
  }

  .overview-shell .site-nav {
    margin-bottom: 10px;
  }

  .overview-shell .site-nav-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }

  .overview-shell .site-nav-label {
    grid-column: 1 / -1;
    padding-bottom: 1px;
  }

  .overview-shell .site-nav-link {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .overview-shell .page-links .site-nav-link:last-child {
    grid-column: auto;
  }

  .overview-shell .section-jump {
    gap: 6px;
    padding-bottom: 1px;
  }

  .overview-shell .section-jump a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .overview-shell .result-overview-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }

  .overview-shell .structure-card,
  .overview-shell .driver-card-panel,
  .overview-shell .quality-card-panel,
  .overview-shell .mix-card-panel,
  .overview-shell .type-landscape-panel,
  .overview-shell .finals-compact-panel {
    grid-column: auto;
  }

  .overview-shell .result-card,
  .overview-shell .structure-card {
    padding: 14px;
  }

  .overview-shell .panel-head h2 {
    font-size: 1rem;
  }

  .overview-shell .panel-head p {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .overview-shell .contest-structure-map,
  .overview-shell .stage-quality-chart,
  .overview-shell .stage-vote-mix,
  .overview-shell .overview-type-map {
    margin-top: 12px;
  }

  .overview-shell .structure-node {
    grid-template-columns: minmax(82px, 0.8fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 11px;
  }

  .overview-shell .structure-node span,
  .overview-shell .structure-node strong {
    grid-column: 1;
  }

  .overview-shell .structure-node strong {
    font-size: 1.38rem;
  }

  .overview-shell .structure-volume {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 5px;
    align-self: center;
  }

  .overview-shell .structure-node small {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    white-space: nowrap;
  }

  .overview-shell .structure-readout {
    grid-template-columns: 1fr 1fr;
  }

  .overview-shell .stage-quality-row {
    gap: 8px;
    padding-top: 9px;
  }

  .overview-shell .stage-quality-cell {
    grid-template-columns: minmax(74px, 0.48fr) minmax(0, 1fr) 44px;
    gap: 7px;
  }

  .overview-shell .vote-mix-card {
    padding: 10px;
  }

  .overview-shell .vote-mix-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-shell .final-podium {
    gap: 8px;
    margin-top: 8px;
  }

  .overview-shell .final-podium-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 7px 9px;
    padding: 9px;
  }

  .overview-shell .final-podium-item img {
    width: 44px;
    height: 44px;
  }

  .overview-shell .final-top-row {
    grid-template-columns: 48px minmax(0, 1fr) 54px;
    gap: 8px;
    padding: 8px;
  }

  .overview-shell .type-landscape-row {
    grid-template-columns: minmax(0, 1fr) 74px;
    gap: 8px;
    padding: 8px;
  }

  .overview-shell .type-landscape-title {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 6px;
  }

  .overview-shell .type-landscape-title span {
    width: 24px;
    height: 24px;
    font-size: 0.62rem;
  }

  .overview-shell .type-landscape-title strong {
    font-size: 0.72rem;
  }

  .overview-shell .type-landscape-title small,
  .overview-shell .type-landscape-rate span {
    font-size: 0.58rem;
  }

  .overview-shell .type-landscape-rate strong {
    font-size: 0.78rem;
  }

  .overview-shell .type-landscape-count,
  .overview-shell .type-landscape-density {
    width: 100%;
    height: 6px;
  }

  .overview-shell .type-landscape-count {
    grid-column: 1;
    grid-row: 2;
  }

  .overview-shell .type-landscape-density {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .overview-shell .type-landscape-rate {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-items: end;
  }

  .overview-shell .insight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .overview-shell .insight-grid .panel {
    min-height: 0;
  }

  .overview-shell .table-stage-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 10px 12px 0;
  }

  .overview-shell .table-stage-tab {
    min-height: 38px;
    padding-inline: 8px;
  }

  .overview-shell .table-filter-drawer,
  .overview-shell .table-status {
    margin-inline: 12px;
  }

  .overview-shell .table-wrap {
    margin: 10px 12px 12px;
  }

  .overview-shell .song-table tbody {
    gap: 8px;
  }

  .overview-shell .song-table tbody tr {
    padding: 8px 10px;
  }

  .overview-shell .song-table tbody td {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
  }

  .overview-shell .song-table tbody td:nth-child(7),
  .overview-shell .song-table tbody td:nth-child(8),
  .overview-shell .song-table tbody td:nth-child(9),
  .overview-shell .song-table tbody td:nth-child(10),
  .overview-shell .song-table tbody td:nth-child(11),
  .overview-shell .song-table tbody td:nth-child(13) {
    display: none;
  }

  .overview-shell .song-table tbody td:first-child {
    display: none;
  }

  .overview-shell .song-table tbody td.song-cell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .overview-shell .song-table tbody td.song-cell .song-name,
  .overview-shell .song-table tbody td.song-cell .artist-name {
    grid-column: 2;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .overview-shell {
    padding-inline: 8px;
  }

  .overview-shell .topbar h1 {
    font-size: clamp(2rem, 11vw, 2.55rem);
  }

  .overview-shell .site-nav-link {
    font-size: 0.66rem;
  }

  .overview-shell .result-card,
  .overview-shell .structure-card {
    padding: 12px;
  }

  .overview-shell .structure-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-shell .vote-mix-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .overview-shell .table-stage-tab {
    display: grid;
    justify-items: start;
    gap: 2px;
    min-height: 44px;
  }

  .overview-shell .overview-cards,
  .overview-shell .overview-focus {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-shell .overview-card {
    min-height: 96px;
    padding: 10px;
  }

  .overview-shell .overview-card strong {
    font-size: 0.84rem;
  }

  .overview-shell .overview-card small {
    font-size: 0.66rem;
  }
}

/* Motion shutdown: keep the analysis UI static and deterministic. */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Unified page header and primary navigation. */
.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgb(147 162 179 / 0.16);
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 3.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.guide-shell .topbar h1 {
  max-width: none;
  font-size: 3.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

.topbar .eyebrow {
  margin: 0 0 8px;
}

.topbar-tools {
  display: grid;
  justify-items: end;
  align-self: end;
  min-width: 0;
}

.language-switcher {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(112px, auto);
  gap: 8px;
  align-items: center;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 8px;
  padding: 6px 8px 6px 12px;
  background: rgb(6 10 15 / 0.72);
}

.language-switcher span {
  color: #aebccc;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.language-switcher select {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #f0fffd;
  background: rgb(15 22 28 / 0.96);
  font-size: 0.76rem;
  font-weight: 900;
}

.site-nav {
  display: block;
  margin: 0 0 18px;
}

.site-nav-group.page-links {
  display: grid;
  grid-template-columns: auto repeat(7, minmax(0, 1fr));
  gap: 7px;
  align-items: stretch;
  border: 1px solid rgb(147 162 179 / 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgb(10 15 21 / 0.76);
}

.site-nav-label {
  min-height: 40px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  color: var(--teal);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav-link {
  min-width: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(147 162 179 / 0.18);
  border-radius: 7px;
  padding: 0 10px;
  color: #c7d4df;
  background: rgb(6 10 15 / 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link.active {
  border-color: rgb(45 212 191 / 0.56);
  color: #f0fffd;
  background: rgb(45 212 191 / 0.15);
  box-shadow: 0 0 0 1px rgb(45 212 191 / 0.12) inset;
}

.site-nav-link:hover {
  border-color: rgb(45 212 191 / 0.46);
  color: #f0fffd;
  background: rgb(45 212 191 / 0.1);
}

.ux-primary-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -4px 0 20px;
  border: 1px solid rgb(45 212 191 / 0.2);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgb(10 15 21 / 0.72);
  color: #d8e7ee;
}

.ux-primary-route div {
  display: grid;
  gap: 3px;
}

.ux-primary-route strong {
  color: #f4fffd;
  font-size: 0.98rem;
}

.ux-primary-route span {
  color: #a8b7c4;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ux-primary-route a,
.next-view-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgb(45 212 191 / 0.38);
  border-radius: 8px;
  padding: 7px 11px;
  background: #1f6f65;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.action-link,
.button-link,
.selected-detail-link,
.overview-inline-cta,
.table-tool-button,
.report-link,
.diagnosis-card-actions a,
.overview-closing-links a,
.guide-route-links a,
.reading-map-grid a,
.route-card-grid a {
  transition:
    transform 0.2s var(--ease-smooth),
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.action-link:hover,
.button-link:hover,
.selected-detail-link:hover,
.overview-inline-cta:hover,
.table-tool-button:hover,
.report-link:hover,
.diagnosis-card-actions a:hover,
.overview-closing-links a:hover,
.guide-route-links a:hover,
.reading-map-grid a:hover,
.route-card-grid a:hover {
  transform: translateY(-1px);
}

.value-badge,
.kind-badge,
.data-badge {
  border-radius: 999px;
  font-weight: 850;
}

.value-badge.observed,
.kind-badge.observed,
.data-badge.observed {
  color: var(--color-observed);
  background: rgb(237 243 248 / 0.1);
  border-color: rgb(237 243 248 / 0.18);
}

.value-badge.derived,
.kind-badge.derived,
.data-badge.derived {
  color: var(--color-derived);
  background: rgb(165 180 252 / 0.12);
  border-color: rgb(165 180 252 / 0.24);
}

.value-badge.estimated,
.kind-badge.estimated,
.data-badge.estimated {
  color: var(--color-estimated);
  background: rgb(247 178 103 / 0.13);
  border-color: rgb(247 178 103 / 0.28);
}

details > summary {
  cursor: pointer;
}

details > summary::marker {
  color: var(--color-accent-primary);
}

.next-view-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.next-view-links a.secondary {
  background: transparent;
  color: #2dd4bf;
}

.page-links .site-nav-link:last-child {
  grid-column: auto;
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .topbar h1 {
    font-size: 2.35rem;
  }

  .guide-shell .topbar h1 {
    font-size: 2.35rem;
  }

  .topbar-tools {
    justify-items: stretch;
  }

  .language-switcher {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-nav {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .site-nav-group.page-links {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 6px;
  }

  .site-nav-label {
    display: none;
  }

  .site-nav-link {
    min-width: 82px;
  }
}

@media (max-width: 480px) {
  .topbar h1 {
    font-size: 2rem;
  }

  .guide-shell .topbar h1 {
    font-size: 2rem;
  }

  .site-nav-group.page-links {
    padding: 7px;
  }

  .site-nav-link {
    min-height: 36px;
    min-width: 76px;
    padding-inline: 8px;
    font-size: 0.67rem;
  }

  .ux-primary-route {
    align-items: stretch;
    flex-direction: column;
  }

  .ux-primary-route a,
  .next-view-links a {
    width: 100%;
  }
}

/* Overview entry-page overrides */
.overview-shell .dashboard-main {
  gap: clamp(22px, 4vw, 42px);
}

.overview-shell .overview-summary {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.overview-shell .overview-copy {
  max-width: 760px;
}

.overview-shell .overview-copy h2 {
  margin-bottom: 12px;
}

.overview-shell .overview-copy p:not(.eyebrow) {
  max-width: 640px;
  line-height: 1.75;
}

.overview-shell .overview-cards {
  opacity: 0.88;
}

.overview-shell .overview-card {
  min-height: 112px;
  padding: 14px;
}

.overview-shell .overview-card span {
  color: #9ff5e9;
  letter-spacing: 0.03em;
}

.overview-shell .overview-card strong {
  font-size: 1.04rem;
}

.overview-shell .overview-diagnosis-search {
  border-color: rgb(45 212 191 / 0.42);
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgb(45 212 191 / 0.1), transparent 44%),
    rgb(7 12 18 / 0.76);
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.16);
}

.overview-shell .overview-diagnosis-search .panel-head {
  margin-bottom: 4px;
}

.overview-shell .overview-search-form.primary {
  grid-template-columns: minmax(0, 1fr) minmax(172px, auto);
  gap: 12px;
  margin-top: 2px;
}

.overview-shell .overview-search-form.primary input,
.overview-shell .overview-search-form.primary button {
  min-height: 48px;
  border-radius: 10px;
}

.overview-shell .overview-search-form.primary input {
  border-color: rgb(45 212 191 / 0.3);
  background: rgb(3 8 13 / 0.9);
}

.overview-shell .overview-search-form.primary button {
  border-color: rgb(45 212 191 / 0.48);
  color: #05201d;
  background: #7ee9db;
}

.overview-shell .overview-search-empty {
  border-color: rgb(45 212 191 / 0.18);
  background: rgb(45 212 191 / 0.05);
}

.overview-shell .overview-search-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 1fr) auto;
  padding: 14px;
}

.overview-shell .overview-search-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-shell .overview-search-actions .button-link.primary {
  border-color: rgb(45 212 191 / 0.48);
  color: #061f1d;
  background: #7ee9db;
}

.overview-shell .overview-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.overview-shell .overview-entry-grid a {
  min-height: 166px;
  align-content: start;
  padding: 16px;
}

.overview-shell .overview-entry-grid span {
  align-self: end;
  width: fit-content;
  border: 1px solid rgb(45 212 191 / 0.26);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgb(45 212 191 / 0.08);
}

.overview-shell .overview-funnel-figure,
.overview-shell .overview-site-map {
  margin-top: 16px;
}

.overview-shell .overview-site-map {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.overview-shell .overview-site-map a {
  min-height: 76px;
}

@media (max-width: 1080px) {
  .overview-shell .overview-summary {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .overview-shell .overview-summary {
    padding: 20px;
  }

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

  .overview-shell .overview-search-form.primary {
    grid-template-columns: 1fr;
  }

  .overview-shell .overview-search-form.primary button {
    width: 100%;
  }

  .overview-shell .overview-search-card {
    grid-template-columns: 1fr;
  }

  .overview-shell .overview-search-card dl {
    grid-template-columns: 1fr;
  }

  .overview-shell .overview-search-actions {
    justify-content: stretch;
  }

  .overview-shell .overview-search-actions .button-link {
    flex: 1 1 160px;
  }

  .overview-shell .overview-entry-grid {
    grid-template-columns: 1fr;
  }
}
