:root {
  color-scheme: dark;
  --bg: #060709;
  --bg-elevated: rgba(11, 14, 18, 0.96);
  --surface: rgba(18, 22, 27, 0.9);
  --surface-strong: rgba(24, 29, 35, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-muted: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f6f7f8;
  --text-strong: #ffffff;
  --text-muted: rgba(229, 232, 236, 0.68);
  --text-subtle: rgba(229, 232, 236, 0.44);
  --mint: #8cebd0;
  --lime: #d9ff73;
  --cream: #ede7d8;
  --sky: #9dd6ff;
  --amber: #f2c26c;
  --rose: #ff8b7e;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --content-width: 1580px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(140, 235, 208, 0.11), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(217, 255, 115, 0.09), transparent 22%),
    linear-gradient(180deg, #08090b 0%, #060709 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.app {
  position: relative;
  min-height: 100vh;
  overflow: visible;
}

.app-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.app-ambient::before,
.app-ambient::after {
  content: '';
  position: absolute;
  filter: blur(90px);
  opacity: 0.14;
}

.app-ambient::before {
  top: 8%;
  left: 14%;
  width: 320px;
  height: 320px;
  background: rgba(140, 235, 208, 0.38);
}

.app-ambient::after {
  top: 22%;
  right: 8%;
  width: 360px;
  height: 360px;
  background: rgba(217, 255, 115, 0.26);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  min-height: 100vh;
}

.utility-rail {
  --rail-start-offset: 0px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: var(--rail-start-offset) 12px 28px;
}

.utility-group {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-subtle);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rail-btn svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-btn:hover,
.rail-btn.active {
  transform: translateY(-1px) scale(1.01);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.rail-btn.active {
  color: var(--mint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(140, 235, 208, 0.1), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.content {
  min-width: 0;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 22px 28px 0;
}

.topbar {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0;
}

.topbar-spacer {
  min-width: 0;
}

.nav-pills,
.search-shell,
.lang-switch {
  backdrop-filter: blur(18px);
}

.nav-pills {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-pill {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-help-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-subtle);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-help-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-pill:hover,
.nav-pill.active,
.nav-help-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-help-btn:hover {
  transform: translateY(-1px);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  margin-right: 18px;
}

.search-shell {
  position: relative;
  width: 180px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.search-shell svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  stroke: var(--text-subtle);
  fill: none;
  stroke-width: 1.8;
}

.search-input {
  width: 100%;
  height: 46px;
  padding: 0 44px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
  color: var(--text-subtle);
}

.search-input:focus {
  outline: none;
  border-color: rgba(140, 235, 208, 0.28);
  background: rgba(255, 255, 255, 0.025);
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--text-subtle);
  cursor: pointer;
  display: none;
}

.search-clear.visible {
  display: block;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  border: 0;
  min-width: 42px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.rail-help-btn {
  margin-top: 4px;
}

.dashboard {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 30px 28px 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
  gap: 22px;
  margin-bottom: 26px;
}

.panel,
.hero-panel,
.feature-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(18, 22, 27, 0.94), rgba(12, 15, 18, 0.94));
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 34px 36px;
}

.feature-panel {
  padding: 26px 28px;
  background:
    radial-gradient(circle at top right, rgba(217, 255, 115, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(22, 27, 31, 0.96), rgba(14, 17, 20, 0.96));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26));
}

.hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.hero-copy {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-chip,
.inline-chip,
.impact-chip,
.tag,
.mode-pill,
.filter-chip,
.cluster-chip,
.rank-pill,
.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.feature-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.feature-title {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.feature-number {
  margin-top: 18px;
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
  font-weight: 800;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.feature-number span {
  color: var(--lime);
}

.feature-subtitle {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature-stat {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-stat:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.feature-stat-label {
  font-size: 0.72rem;
  color: var(--text-subtle);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.feature-stat-value {
  margin-top: 10px;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

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

.kpi-card {
  padding: 18px 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 22, 27, 0.92), rgba(12, 15, 18, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 156px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.kpi-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(22, 27, 31, 0.95), rgba(13, 16, 20, 0.95));
}

.kpi-label {
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.kpi-value {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-wrap: balance;
}

.kpi-card-textual {
  min-height: 170px;
}

.kpi-value-textual {
  font-size: clamp(1rem, 1.8vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.kpi-note {
  margin-top: auto;
  padding-top: 12px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 26px;
}

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

.panel-head-copy h2,
.panel-head-copy h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.panel-head-copy p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mode-pill,
.filter-chip,
.cluster-chip,
.inline-chip,
.rank-pill,
.detail-pill {
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mode-pill.active,
.filter-chip.active,
.cluster-chip.active,
.rank-pill.active,
.detail-pill.active {
  color: #091016;
  background: linear-gradient(135deg, var(--cream), var(--lime));
  border-color: transparent;
}

.panel-body {
  padding: 22px 24px 24px;
}

.landscape-panel {
  border-radius: 34px;
}

.landscape-body {
  padding: 28px;
}

.landscape-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.landscape-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landscape-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.landscape-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.landscape-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  flex: 1 1 420px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.landscape-search-shell svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-subtle);
  stroke-width: 1.8;
  fill: none;
}

.landscape-search-shell .search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 34px 0 0;
  background: transparent;
  border: 0;
}

.landscape-search-shell .search-clear {
  right: 14px;
}

.landscape-toolbar-actions {
  justify-content: flex-end;
}

.landscape-cluster-zone {
  margin-top: 20px;
}

.landscape-cluster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.treemap-layout {
  margin-top: 14px;
}

.treemap-main {
  width: 100%;
}

.treemap-stage {
  border-radius: calc(var(--radius-xl) - 8px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(7, 9, 12, 1), rgba(12, 14, 18, 1));
  min-height: 520px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.treemap-canvas {
  display: block;
  width: 100%;
}

.stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
  color: var(--text-subtle);
  font-size: 0.76rem;
}

.landscape-stage-note {
  color: var(--text-subtle);
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-bar {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(92, 163, 121) 0%, rgb(156, 180, 92) 28%, rgb(205, 136, 73) 56%, rgb(186, 89, 70) 78%, rgb(132, 40, 42) 100%);
}

.subpanel {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.subpanel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.subpanel-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.subpanel-note {
  color: var(--text-subtle);
  font-size: 0.76rem;
}

.cluster-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-chip-row,
.landscape-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landscape-filter-row {
  margin-top: 14px;
}

.cluster-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  min-height: auto;
  max-width: min(100%, 360px);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cluster-card:hover,
.cluster-card.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.cluster-card.active {
  background: linear-gradient(135deg, rgba(245, 242, 233, 0.98), rgba(231, 236, 222, 0.96));
  color: #071015;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.cluster-dot,
.tier-dot,
.rank-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

.cluster-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cluster-chip-value,
.cluster-chip-score {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.cluster-chip-separator {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.cluster-card-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.cluster-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cluster-card.active .cluster-chip-value,
.cluster-card.active .cluster-chip-score {
  color: rgba(7, 16, 21, 0.72);
}

.landscape-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-top: 20px;
  align-items: stretch;
  --focus-panel-height: clamp(560px, 62vh, 780px);
}

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

.landscape-list-panel,
.landscape-spotlight-panel {
  display: flex;
  flex-direction: column;
  height: var(--focus-panel-height);
  min-height: var(--focus-panel-height);
  overflow: hidden;
}

.occupation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.occupation-list-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.occupation-context-title {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.occupation-context-note,
.occupation-context-count {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.occupation-context-count {
  margin-top: 0;
  text-align: right;
  flex-shrink: 0;
}

.occupation-context-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.inline-ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.occupation-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 14px 14px 13px;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.occupation-item:hover,
.occupation-item.active {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.occupation-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.occupation-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.occupation-subtitle,
.occupation-summary {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.occupation-summary {
  margin-top: 6px;
}

.occupation-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  color: var(--text-subtle);
  font-size: 0.74rem;
}

.occupation-metrics strong {
  color: var(--text);
  font-weight: 700;
}

.occupation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.occupation-tags .tag {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.metric-badge {
  min-width: 58px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.77rem;
  font-weight: 800;
  flex-shrink: 0;
  align-self: flex-start;
}

.spotlight-panel {
  min-height: 100%;
}

#spotlightPanel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.spotlight-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.spotlight-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.spotlight-preview-note {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
}

.spotlight-subtitle {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 6px;
}

.score-ring-wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin: 16px 0 14px;
}

.score-ring {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color, var(--lime)) var(--ring-stop, 50%), rgba(255, 255, 255, 0.07) 0);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 12px rgba(9, 12, 16, 0.96);
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(10, 13, 17, 1), rgba(14, 17, 20, 1));
}

.score-ring-value {
  position: relative;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.score-ring-value span {
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.score-summary {
  flex: 1;
  min-width: 0;
}

.score-label {
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
}

.score-headline {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.score-copy {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.spotlight-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
}

.ghost-btn,
.primary-btn,
.link-btn {
  border-radius: 999px;
  height: 42px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.primary-btn {
  border: 0;
  color: #091016;
  background: linear-gradient(135deg, var(--cream), var(--lime));
}

.link-btn {
  border: 0;
  background: none;
  padding: 0;
  height: auto;
  color: var(--mint);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.analytics-grid .span-4 { grid-column: span 4; }
.analytics-grid .span-6 { grid-column: span 6; }
.analytics-grid .span-8 { grid-column: span 8; }

.chart-card {
  min-height: 100%;
}

.chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.histogram {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 180px;
}

.hist-bar {
  position: relative;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(237, 231, 216, 0.18), rgba(140, 235, 208, 0.62));
  min-height: 12px;
}

.hist-bar::after {
  content: attr(data-value);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  color: var(--text-subtle);
  font-size: 0.72rem;
}

.hist-label {
  margin-top: 12px;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.72rem;
}

.bar-list,
.rank-list,
.tier-list,
.signal-list,
.related-list,
.development-list,
.method-list,
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bar-row,
.rank-row,
.tier-row,
.related-row,
.development-row,
.method-row,
.timeline-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cluster-rank-row {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cluster-rank-row:hover .bar-label {
  color: var(--mint);
}

.bar-copy,
.rank-copy,
.timeline-copy,
.related-copy {
  flex: 1;
  min-width: 0;
}

.bar-label,
.rank-title,
.timeline-title,
.related-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.bar-note,
.rank-note,
.timeline-note,
.method-copy,
.related-meta,
.development-copy {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 4px;
}

.bar-track {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-value,
.rank-meta,
.timeline-value {
  width: 64px;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 800;
}

.rank-row,
.related-row {
  justify-content: space-between;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rank-row button,
.related-row button {
  all: unset;
  cursor: pointer;
  width: 100%;
}

.rank-index {
  width: 24px;
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
}

.signal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.signal-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-card-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.signal-card-value {
  margin-top: 10px;
  font-size: 1.36rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-transform: capitalize;
}

.news-grid,
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.news-filter-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.news-filter-group {
  display: grid;
  gap: 8px;
}

.news-filter-label {
  color: var(--text-subtle);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card,
.method-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(18, 22, 27, 0.92), rgba(12, 15, 18, 0.92));
}

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 235, 208, 0.28);
  background: linear-gradient(180deg, rgba(20, 26, 31, 0.96), rgba(12, 16, 19, 0.96));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.news-card-header,
.method-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.news-card-title,
.method-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.news-card-copy,
.method-card-copy {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.68;
}

.news-card-tags,
.method-card-tags,
.task-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

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

.section-title {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  letter-spacing: -0.06em;
}

.section-copy {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 720px;
}

.footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-subtle);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.footer-link:hover {
  color: var(--text);
}

.footer-disclaimer {
  max-width: 980px;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.footer-credit {
  margin-top: 20px;
  text-align: center;
}

.footer-credit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.78rem;
  height: 38px;
  padding: 0 20px;
}

.tooltip {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  width: min(320px, calc(100vw - 24px));
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(12, 16, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tooltip-subtitle,
.tooltip-copy {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.tooltip-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.76rem;
}

.tooltip-grid span:nth-child(odd) {
  color: var(--text-subtle);
}

/* ── Preview Card (click-to-preview on treemap dots) ── */
.preview-card {
  position: fixed;
  z-index: 42;
  width: min(290px, calc(100vw - 24px));
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(14, 18, 22, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.preview-card.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.preview-card-head {
  margin-bottom: 12px;
}

.preview-card-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.preview-card-cluster {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.preview-card-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.76rem;
  margin-bottom: 14px;
}

.preview-card-grid span:nth-child(odd) {
  color: var(--text-subtle);
}

.preview-card-grid span:nth-child(even) {
  font-weight: 700;
  text-align: right;
}

.preview-card-btn {
  width: 100%;
  height: 36px;
  font-size: 0.78rem;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 6, 0.66);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(620px, calc(100vw - 36px));
  transform: translateX(calc(100% + 20px));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 51;
}

.detail-panel.open {
  transform: translateX(0);
}

.help-overlay,
.legal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 60;
}

.help-overlay.open,
.legal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.help-panel,
.legal-panel {
  position: fixed;
  inset: 24px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98) translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: 61;
}

.help-panel.open,
.legal-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

.help-shell,
.legal-shell {
  width: min(980px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(140, 235, 208, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(217, 255, 115, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(18, 22, 27, 0.84), rgba(8, 10, 14, 0.9));
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(26px);
}

.help-top,
.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.help-eyebrow,
.legal-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}

.help-title,
.legal-title {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.help-intro,
.legal-intro {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.help-close,
.legal-close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.legal-tab {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.legal-tab:hover,
.legal-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.legal-content {
  margin-top: 18px;
}

.legal-section-head {
  margin-bottom: 18px;
}

.legal-section-title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.legal-section-lead {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.legal-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-card-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.legal-copy {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-list {
  margin: 12px 0 0 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(242, 194, 108, 0.08);
  border: 1px solid rgba(242, 194, 108, 0.18);
  color: var(--cream);
  font-size: 0.82rem;
  line-height: 1.65;
}

.help-section {
  margin-top: 28px;
}

.help-section-head h3,
.help-card-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.help-section-head p {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.help-scale-grid,
.help-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.help-scale-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.help-scale-card,
.help-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.help-scale-range {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.help-scale-copy,
.help-card-copy {
  margin-top: 10px;
  color: var(--text-muted);
  line-height: 1.65;
}

.detail-shell {
  height: 100%;
  overflow: auto;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(14, 17, 20, 0.98), rgba(8, 10, 13, 0.98));
  box-shadow: var(--shadow);
}

.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.detail-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.detail-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.detail-bottom-close {
  display: none;
}

.detail-title {
  margin: 0;
  font-size: 2rem;
  line-height: 0.98;
  letter-spacing: -0.07em;
  overflow-wrap: anywhere;
}

.detail-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.detail-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.expandable-copy .expandable-full {
  display: none;
}

.expandable-copy {
  width: 100%;
}

.expandable-copy.expanded .expandable-short {
  display: none;
}

.expandable-copy.expanded .expandable-full {
  display: block;
}

.detail-more-btn {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--mint);
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.detail-news-grid {
  display: grid;
  gap: 12px;
}

.compact-impact-grid {
  margin-top: 14px;
}

.enrichment-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.compact-enrichment-grid {
  grid-template-columns: 1fr;
}

.enrichment-card {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.enrichment-card-title {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enrichment-card-copy {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.detail-news-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 100%;
}

.detail-news-impact {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-news-title {
  margin-top: 10px;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.detail-news-copy {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.news-card-actions {
  margin-top: auto;
  padding-top: 16px;
}

.detail-news-actions {
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 16px;
}

.news-source-button,
.news-source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 235, 208, 0.24);
  background: rgba(140, 235, 208, 0.08);
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.news-source-button:hover,
.news-source-link:hover {
  color: var(--cream);
  border-color: rgba(237, 231, 216, 0.24);
  background: rgba(237, 231, 216, 0.08);
}

.tag-button {
  border: 0;
  cursor: pointer;
}

.news-card-context {
  margin-top: 14px;
}

.news-card-context-label {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-section-title {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.detail-hero {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-score-block {
  min-width: 0;
  flex: 1;
}

.detail-score-big {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.detail-score-main {
  font-size: 3rem;
  line-height: 0.9;
}

.detail-score-divider {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-subtle);
}

.detail-score-max {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-subtle);
  letter-spacing: -0.03em;
}

.detail-score-caption {
  margin-top: 10px;
  color: var(--text-subtle);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-score-copy {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.72;
  margin-top: 12px;
  max-width: 60ch;
  overflow-wrap: anywhere;
}

.detail-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 14px;
  max-width: 58ch;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.detail-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 118px;
}

.detail-stat-label {
  color: var(--text-subtle);
  font-size: 0.74rem;
}

.detail-stat-value {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-transform: capitalize;
}

.detail-stat-meta {
  margin-top: 10px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.detail-stat-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.detail-stat-link:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 235, 208, 0.36);
  background: rgba(140, 235, 208, 0.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

.pressure-path-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pressure-path-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pressure-path-copy {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: 44ch;
}

.pressure-path-delta {
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(217, 255, 115, 0.1);
  color: var(--lime);
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.pressure-chart {
  width: 100%;
  height: 168px;
  display: block;
  margin-top: 16px;
}

.pressure-path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.pressure-step {
  padding: 12px 12px 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pressure-step-label {
  color: var(--text-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pressure-step-value {
  margin-top: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.pressure-step-note {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.timeline-chart {
  width: 100%;
  height: 86px;
  display: block;
}

.empty-state {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

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

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

@media (max-width: 1280px) {
  .main-grid,
  .hero-grid,
  .treemap-layout {
    grid-template-columns: 1fr;
  }

  .landscape-header,
  .landscape-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .landscape-header-actions,
  .landscape-toolbar-actions {
    justify-content: flex-start;
  }

  .landscape-support-grid {
    grid-template-columns: 1fr;
  }

  .analytics-grid .span-4,
  .analytics-grid .span-6,
  .analytics-grid .span-8 {
    grid-column: span 12;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nav-pills,
  .topbar-actions {
    justify-self: stretch;
    justify-content: space-between;
  }

  .topbar-actions {
    margin-right: 0;
  }

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

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

  .utility-rail {
    position: fixed;
    inset: auto 12px 12px 12px;
    z-index: 25;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }

  .utility-group {
    position: static;
    flex-direction: row;
    padding: 8px 10px;
  }

  .rail-help-btn {
    margin-top: 0;
  }

  .dashboard {
    padding-bottom: 120px;
  }

  .cluster-grid,
  .feature-grid,
  .enrichment-grid,
  .detail-grid,
  .pressure-path-steps,
  .landscape-support-grid,
  .news-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .topbar-wrap {
    padding: 14px 14px 0;
  }

  .dashboard {
    padding: 22px 14px 120px;
  }

  .hero-panel,
  .feature-panel,
  .panel-body,
  .panel-head,
  .detail-shell,
  .landscape-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-panel,
  .feature-panel,
  .panel,
  .news-card,
  .method-card,
  .kpi-card {
    border-radius: 24px;
  }

  .nav-pills {
    overflow: auto;
  }

  .search-shell {
    width: 100%;
  }

  .landscape-search-shell {
    min-width: 0;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .help-panel,
  .legal-panel {
    inset: 10px;
  }

  .help-shell,
  .legal-shell {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px;
    border-radius: 26px;
  }

  .help-scale-grid,
  .help-card-grid {
    grid-template-columns: 1fr;
  }

  .kpi-strip {
    grid-template-columns: 1fr;
  }

  .cluster-card {
    max-width: 100%;
  }

  .detail-panel {
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: calc(100vw - 16px);
  }
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE ADAPTATION LAYER — phones only (≤ 480px)
   Desktop remains completely untouched.
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  /* 1. HEADER — remove sticky so it scrolls away naturally */
  .topbar-wrap {
    position: static;
    padding: 12px 12px 0;
  }

  .topbar {
    gap: 10px;
  }

  /* 2. SEARCH + LANGUAGE on one row, compact */
  .topbar-actions {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
  }

  .topbar-actions .search-shell {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    min-height: 38px;
  }

  .topbar-actions .search-shell .search-input {
    height: 38px;
    font-size: 16px;
  }

  .topbar-actions .lang-switch {
    flex-shrink: 0;
    padding: 3px;
  }

  .topbar-actions .lang-btn {
    min-width: 36px;
    height: 32px;
    font-size: 0.72rem;
  }

  /* Nav pills compact */
  .nav-pills {
    gap: 3px;
    padding: 4px;
  }

  .nav-pill {
    padding: 7px 11px;
    font-size: 0.74rem;
  }

  /* 3. TIGHTER CARDS & BETTER DENSITY */
  .dashboard {
    padding: 14px 10px 100px;
    gap: 12px;
  }

  .hero-panel {
    padding: 20px 16px;
  }

  .feature-panel {
    padding: 18px 16px;
  }

  .hero-panel,
  .feature-panel,
  .panel,
  .news-card,
  .method-card,
  .kpi-card {
    border-radius: 18px;
  }

  /* KPI cards: 2-column grid, reduced height */
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .kpi-card {
    padding: 12px 14px 14px;
    min-height: 110px;
  }

  .kpi-label {
    font-size: 0.7rem;
  }

  .kpi-value {
    margin-top: 8px;
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }

  .kpi-sub {
    font-size: 0.68rem;
    margin-top: 4px;
  }

  /* Hero text tighter */
  .hero-eyebrow {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    letter-spacing: -0.04em;
  }

  .hero-copy {
    font-size: 0.82rem;
    margin-top: 10px;
  }

  .feature-title {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
  }

  /* Panel heads/bodies compact */
  .panel-head {
    padding: 16px 14px;
  }

  .panel-body {
    padding: 14px;
  }

  .panel-head-copy h2,
  .panel-head-copy h3 {
    font-size: 1.05rem;
  }

  .panel-head-copy p {
    font-size: 0.78rem;
    margin-top: 4px;
  }

  /* News/method cards: 1 column, tighter */
  .news-grid,
  .method-grid {
    gap: 8px;
  }

  .news-card,
  .method-card {
    padding: 14px;
  }

  .news-card-title {
    font-size: 0.88rem;
  }

  .news-card-copy {
    font-size: 0.78rem;
    -webkit-line-clamp: 3;
  }

  /* 4. LANDSCAPE SEARCH — compact single-line */
  .landscape-body {
    padding: 14px !important;
  }

  .landscape-header {
    gap: 10px;
  }

  .landscape-search-shell {
    min-width: 0 !important;
    flex: 1 1 100%;
    border-radius: 14px;
    padding: 0 10px;
  }

  .landscape-search-shell .search-input {
    min-height: 38px !important;
    font-size: 16px;
  }

  .landscape-toolbar {
    gap: 10px;
    margin-top: 12px;
  }

  .landscape-meta-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.74rem;
  }

  .landscape-cluster-zone {
    margin-top: 12px;
  }

  /* Cluster filter cards compact */
  .cluster-grid {
    gap: 6px;
  }

  .cluster-card {
    padding: 8px 10px;
    gap: 6px;
  }

  .cluster-name {
    font-size: 0.74rem;
  }

  .cluster-chip-value {
    font-size: 0.68rem;
  }

  /* 5 & 6. TREEMAP — fix visibility, touch targets, and scaling */
  .treemap-stage {
    min-height: auto;
    border-radius: 18px;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
  }

  .treemap-canvas {
    touch-action: pan-y;
  }

  /* Occupation list tighter */
  .occupation-list {
    gap: 6px;
  }

  .occupation-item {
    padding: 10px 12px;
    border-radius: 14px;
  }

  .occupation-title {
    font-size: 0.82rem;
  }

  .occupation-subtitle,
  .occupation-summary {
    font-size: 0.72rem;
    margin-top: 4px;
  }

  .occupation-metrics {
    gap: 6px 8px;
    margin-top: 6px;
  }

  .metric-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
    min-width: 48px;
  }

  /* Spotlight panel compact */
  .spotlight-title {
    font-size: 1.1rem;
  }

  .score-ring-wrap {
    gap: 12px;
    margin: 10px 0;
  }

  .score-ring {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .score-ring::before {
    inset: 10px;
  }

  .score-ring-value {
    font-size: 1.15rem;
    letter-spacing: -0.06em;
    white-space: nowrap;
  }

  .score-ring-value span {
    font-size: 0.68rem;
  }

  /* Detail panel mobile refinements — proper modal sheet */
  .detail-overlay.open {
    background: rgba(2, 4, 6, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .detail-panel {
    top: 8vh !important;
    right: 4vw !important;
    bottom: 8vh !important;
    left: 4vw !important;
    width: auto !important;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  }

  .detail-panel.open {
    transform: translateY(0) !important;
    opacity: 1;
    pointer-events: auto;
  }

  .detail-shell {
    padding: 16px !important;
    border-radius: 22px;
  }

  .detail-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .detail-close svg {
    width: 14px;
    height: 14px;
  }

  .detail-bottom-close {
    display: flex;
    justify-content: center;
    padding: 20px 0 8px;
  }

  .detail-close-bottom {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .detail-title {
    font-size: 1.4rem;
  }

  .detail-section {
    margin-top: 16px;
    padding-top: 16px;
  }

  .detail-stat {
    padding: 10px;
    min-height: 90px;
    border-radius: 14px;
  }

  .detail-stat-value {
    font-size: 0.92rem;
    margin-top: 6px;
  }

  /* Help/legal panels tighter */
  .help-shell,
  .legal-shell {
    padding: 16px;
    border-radius: 22px;
  }

  /* Bottom nav utility rail — remove extra background, keep only the pill */
  .utility-rail {
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
  }

  .utility-group {
    padding: 6px 8px;
    gap: 2px;
  }

  .rail-btn {
    width: 42px;
    height: 42px;
  }

  .rail-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Reduce section gaps */
  .main-grid,
  .hero-grid {
    gap: 10px;
  }

  .landscape-support-grid {
    gap: 10px;
    margin-top: 12px;
  }

  /* Pressure path steps compact */
  .pressure-path-steps {
    gap: 8px;
  }

  /* Analytics grid compact */
  .analytics-grid {
    gap: 10px;
  }

  /* Enrichment grid compact */
  .enrichment-grid {
    gap: 8px;
  }

  /* Preview card mobile positioning */
  .preview-card {
    width: calc(100vw - 24px);
    max-width: 340px;
    left: 50% !important;
    bottom: 80px !important;
    top: auto !important;
    transform: translateX(-50%) translateY(8px);
  }

  .preview-card.visible {
    transform: translateX(-50%) translateY(0);
  }
}

/* ── Cookie consent ── */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 20px 20px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.consent-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.consent-banner-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 26px;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consent-text {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.consent-btn {
  height: 40px;
  padding: 0 18px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ── Consent settings modal ── */
.consent-settings {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.consent-settings.visible {
  opacity: 1;
  pointer-events: auto;
}

.consent-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.consent-settings-panel {
  position: relative;
  width: min(480px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding: 28px;
  background: rgba(14, 17, 22, 0.96);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.consent-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.consent-settings-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
}

.consent-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.consent-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.consent-settings-intro {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.consent-category {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.consent-category:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
}

.consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.consent-category-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.consent-category-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.consent-required-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-subtle);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Toggle switch */
.consent-toggle {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.consent-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.consent-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  transition: background 0.25s ease;
}

.consent-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.consent-toggle input:checked + .consent-toggle-track {
  background: linear-gradient(135deg, var(--cream), var(--lime));
}

.consent-toggle input:checked + .consent-toggle-track::after {
  transform: translateX(20px);
  background: #091016;
}

.consent-settings-actions {
  display: flex;
  justify-content: flex-end;
}

/* ── Mobile consent adjustments ── */
@media (max-width: 480px) {
  .consent-banner-inner {
    padding: 18px 18px;
    border-radius: var(--radius-md);
  }
  .consent-actions {
    flex-direction: column;
    gap: 8px;
  }
  .consent-btn {
    width: 100%;
    justify-content: center;
  }
  .consent-settings-panel {
    padding: 22px 20px;
    margin: 12px;
    max-height: calc(100vh - 40px);
  }
}
