:root {
  color-scheme: light;
  --ink: #16201f;
  --muted: #5b6764;
  --line: #d7ded8;
  --paper: #f7f5ef;
  --white: #ffffff;
  --green: #176b53;
  --red: #a64238;
  --gold: #b9832f;
  --blue: #2f628f;
  --teal: #2f8177;
  --shadow: 0 18px 45px rgba(22, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 92px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(22, 32, 31, 0.12);
  background: rgba(247, 245, 239, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(23, 107, 83, 0.1);
}

main {
  display: grid;
  gap: 34px;
}

.workspace,
.content-band,
.contribute {
  scroll-margin-top: 92px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.workspace {
  padding-top: 30px;
}

.workspace-header,
.section-heading,
.contribute {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.source-note {
  max-width: 310px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.58);
}

.source-note span,
.source-note strong {
  display: block;
}

.source-note span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.source-note strong {
  font-size: 14px;
  line-height: 1.5;
}

.query-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  margin: 28px 0 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -10px 0 24px;
  padding: 12px 14px;
  border: 1px solid rgba(80, 244, 255, 0.24);
  border-radius: 8px;
  color: #e9fbff;
  background: rgba(8, 9, 20, 0.64);
  box-shadow: 0 12px 34px rgba(4, 5, 16, 0.22);
}

.filter-summary strong {
  color: var(--lime);
  font-size: 14px;
}

.filter-summary span {
  color: rgba(233, 251, 255, 0.86);
  font-size: 14px;
  line-height: 1.55;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span,
.segments legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 83, 0.14);
}

.segments {
  display: flex;
  align-items: end;
  gap: 6px;
  min-width: 430px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segments legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.segment {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.segment:hover,
.segment.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 24px;
}

.value-strip article {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.value-strip span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.value-strip p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.action-paths {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 18px;
  align-items: stretch;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(23, 107, 83, 0.22);
  border-radius: 8px;
  background: #eef4f0;
}

.action-paths h2 {
  max-width: 420px;
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 34px);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.path-card {
  display: grid;
  gap: 10px;
  min-height: 126px;
  padding: 14px;
  border: 1px solid rgba(23, 107, 83, 0.18);
  border-radius: 8px;
  background: #fff;
  transition:
    border-color 0.16s ease,
    transform 0.16s ease;
}

.path-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.path-card span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.path-card strong {
  font-size: 15px;
  line-height: 1.5;
}

.map-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
}

.map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metrics div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

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

.metrics strong {
  color: var(--green);
  font-size: 30px;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.map-stage {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(22, 32, 31, 0.06) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(22, 32, 31, 0.06) 32px);
  overflow: hidden;
}

#industryMap {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

.node-button {
  cursor: pointer;
}

.node-button circle {
  stroke: #fff;
  stroke-width: 5px;
  filter: drop-shadow(0 10px 18px rgba(22, 32, 31, 0.18));
}

.node-button text {
  fill: #fff;
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
  pointer-events: none;
}

.node-button .node-type {
  fill: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

.node-button.is-dimmed {
  opacity: 0.32;
}

.node-button.is-selected circle {
  stroke: var(--red);
  stroke-width: 7px;
}

.link {
  stroke: rgba(22, 32, 31, 0.24);
  stroke-width: 2;
  fill: none;
}

.lane-label {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-anchor: middle;
}

.content-band {
  padding: 34px 0;
}

.content-band.alt {
  width: 100%;
  padding: 44px max(16px, calc((100vw - 1180px) / 2));
  background: #e9efe9;
}

.cluster-band {
  padding-top: 16px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 470px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.score-model {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.cluster-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
}

.cluster-intro strong {
  font-size: 18px;
}

.cluster-intro span {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.cluster-card {
  display: grid;
  gap: 12px;
  min-height: 310px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cluster-card.is-featured {
  grid-column: span 2;
  border-color: rgba(23, 107, 83, 0.42);
  background: #fbfffc;
}

.cluster-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cluster-region,
.cluster-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.cluster-region {
  margin-bottom: 8px;
  color: #fff;
  background: var(--red);
}

.cluster-status {
  color: var(--green);
  background: #edf5ef;
  white-space: nowrap;
}

.cluster-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.cluster-role {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.cluster-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.cluster-metrics div {
  min-height: 82px;
  padding: 10px;
  border: 1px solid rgba(23, 107, 83, 0.18);
  border-radius: 8px;
  background: #fff;
}

.cluster-metrics span,
.cluster-metrics strong {
  display: block;
}

.cluster-metrics span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cluster-metrics strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.38;
}

.cluster-mini-section {
  display: grid;
  gap: 8px;
}

.cluster-mini-section > strong {
  font-size: 13px;
}

.cluster-chain-list {
  display: grid;
  gap: 7px;
}

.cluster-chain-list span {
  padding: 9px 10px;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.cluster-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cluster-columns strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.gap-tag {
  background: #f4ece8;
}

.representative-tag {
  color: #fff;
  background: var(--blue);
}

.policy-tag {
  color: var(--ink);
  background: #f3ead6;
}

.score-model span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.need-card {
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.need-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.need-card-top span,
.need-card-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.need-card-top span {
  color: #fff;
  background: var(--green);
}

.need-card-top strong {
  color: var(--blue);
  background: #edf3f8;
}

.need-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.need-question {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.need-block {
  padding: 12px;
  border: 1px solid rgba(47, 98, 143, 0.18);
  border-radius: 8px;
  background: #f7fafc;
}

.need-block.is-next {
  border-color: rgba(185, 131, 47, 0.26);
  background: #fbf7ef;
}

.need-block span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.need-block p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}

.watchlist-grid {
  display: grid;
  gap: 22px;
}

.watchlist-group h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.watchlist-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.watch-card {
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.watch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ticker {
  display: inline-flex;
  margin-bottom: 7px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.watch-card h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.score {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 20px;
  font-weight: 900;
}

.focus {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 800;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
}

.source-links a {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.signal-band {
  position: relative;
  overflow: hidden;
}

.signal-band::before {
  position: absolute;
  inset: 24px 7% auto auto;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(80, 244, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(80, 244, 255, 0.16), transparent 56%),
    conic-gradient(from 120deg, rgba(224, 68, 255, 0.18), transparent, rgba(182, 255, 143, 0.16), transparent);
  content: "";
  filter: blur(0.2px);
  pointer-events: none;
}

.signal-loop {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid rgba(80, 244, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 9, 20, 0.46);
}

.signal-loop span {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #e9fbff;
  background: linear-gradient(135deg, rgba(80, 244, 255, 0.13), rgba(224, 68, 255, 0.08));
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.signal-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(80, 244, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(18, 20, 54, 0.94), rgba(8, 9, 20, 0.94)),
    radial-gradient(circle at 85% 10%, rgba(80, 244, 255, 0.22), transparent 35%);
  box-shadow: 0 18px 45px rgba(4, 5, 16, 0.28);
}

.signal-card.is-anchor {
  border-color: rgba(255, 200, 90, 0.34);
  background:
    linear-gradient(160deg, rgba(27, 26, 50, 0.96), rgba(8, 9, 20, 0.94)),
    radial-gradient(circle at 84% 14%, rgba(255, 200, 90, 0.18), transparent 36%);
}

.signal-card.is-frontier {
  border-color: rgba(224, 68, 255, 0.34);
  background:
    linear-gradient(160deg, rgba(24, 17, 55, 0.96), rgba(8, 9, 20, 0.94)),
    radial-gradient(circle at 84% 14%, rgba(224, 68, 255, 0.2), transparent 36%);
}

.signal-index {
  width: max-content;
  padding: 5px 8px;
  border: 1px solid rgba(80, 244, 255, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(80, 244, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.signal-role {
  margin: 0;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.signal-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.14;
}

.signal-card p:not(.signal-role) {
  margin: 0;
  color: rgba(233, 251, 255, 0.82);
  font-size: 14px;
  line-height: 1.72;
}

.signal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.signal-tags span {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(233, 251, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

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

.signal-links a {
  padding: 8px 10px;
  border: 1px solid rgba(80, 244, 255, 0.34);
  border-radius: 6px;
  color: #09111c;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  font-size: 13px;
  font-weight: 900;
}

.daily-report-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.daily-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.daily-step > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.daily-step h3 {
  margin: 3px 0 8px;
  font-size: 18px;
}

.company-card,
.resource-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.company-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
}

.company-card.is-result,
.resource-row.is-result,
.need-card.is-result {
  border-color: rgba(80, 244, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(80, 244, 255, 0.18),
    0 18px 42px rgba(4, 5, 16, 0.18);
}

.company-card h3,
.resource-row h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #eef1ed;
  font-size: 12px;
}

.company-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.stage-badge {
  color: #fff;
  background: var(--blue);
}

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

.resource-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.resource-kind {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.resource-row a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--green);
  font-weight: 800;
}

.resource-row a:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.glossary-band {
  border-color: rgba(80, 244, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.96)),
    radial-gradient(circle at 100% 0, rgba(80, 244, 255, 0.18), transparent 34%);
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.glossary-grid article {
  min-height: 150px;
  padding: 14px;
  border: 1px solid rgba(47, 98, 143, 0.18);
  border-radius: 8px;
  background: #fff;
}

.glossary-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.glossary-grid p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.62;
}

.trust-band {
  padding-top: 18px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-grid article {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-grid span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.trust-grid strong {
  font-size: 18px;
  line-height: 1.45;
}

.trust-grid p {
  margin-bottom: 0;
}

.trust-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--red);
  background: rgba(166, 66, 56, 0.08);
  color: var(--ink);
  font-size: 14px;
}

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

.status-grid article {
  min-height: 170px;
  padding: 16px;
  border: 1px solid rgba(23, 107, 83, 0.18);
  border-radius: 8px;
  background: #fff;
}

.status-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.status-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.45;
}

.status-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.6;
}

.contribute {
  align-items: center;
  margin-bottom: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contribute p {
  max-width: 720px;
  margin-bottom: 0;
}

.contribute .contribute-hint {
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: rgba(185, 131, 47, 0.1);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.16s ease;
}

.primary-action {
  color: #fff;
  background: var(--green);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--green);
  background: #fff;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(80, 244, 255, 0.34);
  border-radius: 50%;
  color: #08101b;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  box-shadow: 0 16px 38px rgba(4, 5, 16, 0.28);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.contribution-kit {
  padding-top: 0;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.template-card {
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.template-card span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.template-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.template-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.template-card li::marker {
  color: var(--green);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

@media (max-width: 920px) {
  .workspace-header,
  .section-heading,
  .contribute,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .query-panel,
  .action-paths,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .segments {
    min-width: 0;
    flex-wrap: wrap;
  }

  .map-copy,
  .map-stage,
  #industryMap {
    min-height: 430px;
  }

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

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

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

  .watchlist-cards,
  .daily-report-list,
  .cluster-grid,
  .need-grid,
  .trust-grid,
  .status-grid,
  .template-grid,
  .cluster-metrics,
  .signal-grid,
  .signal-loop,
  .glossary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cluster-card.is-featured {
    grid-column: span 2;
  }

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

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  .item-grid,
  .metrics,
  .value-strip,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .watchlist-cards,
  .daily-report-list,
  .cluster-grid,
  .need-grid,
  .cluster-columns,
  .trust-grid,
  .status-grid,
  .template-grid,
  .cluster-metrics,
  .signal-grid,
  .signal-loop,
  .glossary-grid {
    grid-template-columns: 1fr;
  }

  .filter-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .cluster-card.is-featured {
    grid-column: auto;
  }

  .cluster-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-copy,
  .map-stage,
  #industryMap {
    min-height: 360px;
  }
}

/* Life-science cockpit theme for the first viewport and atlas map. */
:root {
  --void: #080914;
  --void-2: #10112a;
  --panel: rgba(14, 18, 40, 0.78);
  --panel-strong: rgba(18, 20, 54, 0.92);
  --cyan: #50f4ff;
  --lime: #b6ff8f;
  --violet: #a98bff;
  --amber: #ffc85a;
  --hot: #ff6a3d;
  --magenta: #e044ff;
  --tech-line: rgba(80, 244, 255, 0.22);
  --tech-shadow: 0 28px 90px rgba(4, 5, 16, 0.5);
}

body {
  background:
    radial-gradient(ellipse at 72% 6%, rgba(224, 68, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #080914 0, #0c1021 780px, var(--paper) 1160px);
}

.topbar {
  border-bottom-color: rgba(66, 243, 223, 0.18);
  background: rgba(7, 19, 18, 0.78);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.24);
}

.brand,
.nav a {
  color: rgba(232, 255, 250, 0.9);
}

.brand-mark {
  background: linear-gradient(135deg, #0f8f75, #42f3df);
  box-shadow: 0 0 22px rgba(66, 243, 223, 0.36);
}

.nav a:hover {
  color: #fff;
  background: rgba(66, 243, 223, 0.13);
}

.workspace {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  padding: 46px clamp(18px, 3vw, 34px) 30px;
  overflow: hidden;
  border: 1px solid rgba(80, 244, 255, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 28%, rgba(80, 244, 255, 0.16), transparent 27%),
    radial-gradient(ellipse at 88% 12%, rgba(224, 68, 255, 0.22), transparent 28%),
    radial-gradient(ellipse at 18% 8%, rgba(255, 106, 61, 0.1), transparent 34%),
    linear-gradient(132deg, rgba(8, 9, 20, 0.99), rgba(12, 15, 37, 0.98) 54%, rgba(18, 11, 32, 0.98));
  box-shadow: var(--tech-shadow);
}

.bio-grid-bg,
.bio-orbit-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bio-grid-bg {
  opacity: 0.38;
  background:
    linear-gradient(rgba(80, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(120deg, transparent 0 46%, rgba(224, 68, 255, 0.12) 49%, transparent 52%);
  background-size: 42px 42px, 42px 42px, 300px 300px;
  mask-image: linear-gradient(180deg, #000 0, #000 68%, transparent 100%);
}

.bio-orbit-field span {
  position: absolute;
  width: 280px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(80, 244, 255, 0.86), transparent);
  box-shadow: 0 0 20px rgba(80, 244, 255, 0.32);
  transform: rotate(-24deg);
}

.bio-orbit-field span:nth-child(1) {
  top: 118px;
  right: 70px;
}

.bio-orbit-field span:nth-child(2) {
  top: 260px;
  left: 5%;
  width: 360px;
  transform: rotate(18deg);
}

.bio-orbit-field span:nth-child(3) {
  top: 590px;
  right: 16%;
  width: 220px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 61, 0.88), transparent);
}

.cover-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cover-specimen {
  position: absolute;
  top: 88px;
  right: clamp(24px, 7vw, 96px);
  width: clamp(280px, 34vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.92) 0 4%, rgba(80, 244, 255, 0.7) 5% 10%, transparent 11%),
    radial-gradient(circle at 50% 50%, rgba(224, 68, 255, 0.22), transparent 44%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(80, 244, 255, 0.14) 56% 57%, transparent 58%);
  opacity: 0.92;
  filter: drop-shadow(0 0 54px rgba(80, 244, 255, 0.28));
}

.cover-specimen::before,
.cover-specimen::after {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 46% 54% 58% 42%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transform: rotate(-18deg);
}

.cover-specimen::after {
  inset: 22%;
  border-color: rgba(255, 106, 61, 0.36);
  transform: rotate(27deg);
}

.specimen-core,
.specimen-ring,
.specimen-node,
.cover-beam,
.cover-caption {
  position: absolute;
}

.specimen-core {
  inset: 35%;
  border-radius: 42% 58% 49% 51%;
  background:
    radial-gradient(circle at 36% 32%, #fff, rgba(255, 255, 255, 0.4) 12%, transparent 18%),
    radial-gradient(circle, rgba(255, 106, 61, 0.86), rgba(224, 68, 255, 0.34) 52%, rgba(80, 244, 255, 0.08));
  box-shadow: 0 0 40px rgba(255, 106, 61, 0.38);
}

.specimen-ring {
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(80, 244, 255, 0.28);
}

.ring-a {
  transform: rotate(18deg) scaleX(1.16);
}

.ring-b {
  transform: rotate(-38deg) scaleX(1.08);
  border-color: rgba(182, 255, 143, 0.24);
}

.ring-c {
  transform: rotate(72deg) scaleX(0.86);
  border-color: rgba(255, 106, 61, 0.28);
}

.specimen-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px rgba(80, 244, 255, 0.9);
}

.node-a {
  top: 18%;
  left: 33%;
}

.node-b {
  top: 35%;
  right: 12%;
  background: var(--hot);
}

.node-c {
  left: 16%;
  bottom: 24%;
  background: var(--lime);
}

.node-d {
  right: 27%;
  bottom: 12%;
  background: var(--cyan);
}

.cover-beam {
  height: 2px;
  width: 34vw;
  max-width: 520px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 61, 0.75), rgba(80, 244, 255, 0.86), transparent);
  filter: blur(0.2px) drop-shadow(0 0 16px rgba(80, 244, 255, 0.35));
}

.beam-a {
  top: 292px;
  right: 2%;
  transform: rotate(-18deg);
}

.beam-b {
  top: 410px;
  right: 22%;
  transform: rotate(23deg);
  opacity: 0.68;
}

.cover-caption {
  right: clamp(26px, 5vw, 70px);
  bottom: 28px;
  display: grid;
  gap: 4px;
  color: rgba(238, 252, 255, 0.8);
  text-align: right;
  text-transform: uppercase;
}

.cover-caption span {
  color: rgba(80, 244, 255, 0.8);
  font-size: 11px;
  font-weight: 900;
}

.cover-caption strong {
  font-size: clamp(18px, 2.4vw, 30px);
  letter-spacing: 0;
}

.workspace > *:not(.bio-grid-bg):not(.bio-orbit-field):not(.cover-visual) {
  position: relative;
  z-index: 1;
}

.workspace-header {
  align-items: flex-start;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(66, 243, 223, 0.38);
}

.workspace h1 {
  max-width: 760px;
  color: #effffb;
  text-shadow: 0 0 36px rgba(80, 244, 255, 0.22);
}

.mission-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mission-strip span,
.source-note,
.query-panel,
.value-strip article,
.action-paths,
.map-copy,
.map-stage {
  border: 1px solid rgba(80, 244, 255, 0.2);
  background: var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.mission-strip span {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(232, 255, 250, 0.86);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.source-note {
  border-left-color: var(--amber);
  color: #fff;
}

.source-note span,
.source-note strong {
  color: rgba(232, 255, 250, 0.88);
}

.query-panel {
  border-radius: 10px;
}

.search-box span,
.segments legend {
  color: rgba(232, 255, 250, 0.68);
}

.search-box input {
  color: #effffb;
  border-color: rgba(66, 243, 223, 0.22);
  background: rgba(2, 12, 14, 0.62);
}

.search-box input::placeholder {
  color: rgba(232, 255, 250, 0.42);
}

.search-box input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(66, 243, 223, 0.18);
}

.segment {
  color: rgba(232, 255, 250, 0.76);
  border-color: rgba(66, 243, 223, 0.2);
  background: rgba(2, 12, 14, 0.56);
}

.segment:hover,
.segment.is-active {
  color: #080914;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(80, 244, 255, 0.28);
}

.value-strip article,
.path-card {
  color: #effffb;
  border-color: rgba(66, 243, 223, 0.16);
  background: rgba(9, 31, 35, 0.68);
}

.value-strip span,
.path-card span {
  color: #071312;
  background: var(--lime);
}

.value-strip p,
.path-card strong,
.action-paths h2,
.map-copy h2,
.map-copy p,
.metrics span {
  color: rgba(232, 255, 250, 0.86);
}

.action-paths {
  background:
    linear-gradient(135deg, rgba(80, 244, 255, 0.12), rgba(224, 68, 255, 0.1)),
    rgba(14, 18, 40, 0.72);
}

.path-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.map-layout {
  min-height: 560px;
}

.map-copy {
  background:
    linear-gradient(180deg, rgba(10, 42, 47, 0.88), rgba(7, 21, 23, 0.9)),
    var(--panel);
}

.metrics div {
  border-color: rgba(66, 243, 223, 0.16);
  background: rgba(2, 12, 14, 0.58);
}

.metrics strong {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(66, 243, 223, 0.36);
}

.map-stage {
  position: relative;
  min-height: 560px;
  background:
    linear-gradient(rgba(66, 243, 223, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 243, 223, 0.06) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(66, 243, 223, 0.1), transparent 55%),
    #061012;
  background-size: 32px 32px, 32px 32px, auto, auto;
  touch-action: none;
}

.map-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(66, 243, 223, 0.2);
  border-radius: 999px;
  background: rgba(4, 16, 18, 0.78);
  backdrop-filter: blur(14px);
}

.map-toolbar button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(66, 243, 223, 0.18);
  border-radius: 999px;
  color: #effffb;
  background: rgba(66, 243, 223, 0.1);
  cursor: pointer;
}

.map-toolbar button:hover {
  color: #071312;
  background: var(--cyan);
}

#industryMap {
  cursor: grab;
}

#industryMap.is-panning {
  cursor: grabbing;
}

.map-hitbox {
  fill: transparent;
}

.lane-band {
  fill: rgba(66, 243, 223, 0.055);
  stroke: rgba(66, 243, 223, 0.22);
  stroke-dasharray: 4 8;
}

.lane-label {
  fill: #effffb;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(3, 17, 20, 0.95);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.link {
  stroke: rgba(170, 255, 244, 0.46);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 10px rgba(66, 243, 223, 0.26));
}

#arrowPulse path {
  fill: rgba(180, 255, 244, 0.92);
}

.link.is-related {
  stroke: #9efff0;
  stroke-width: 4;
  filter: drop-shadow(0 0 16px rgba(66, 243, 223, 0.72));
}

.link.is-muted {
  opacity: 0.26;
}

.node-button {
  filter: url(#nodeGlow);
}

.node-button .node-halo {
  opacity: 0.26;
}

.node-button .node-pulse {
  fill: none;
  stroke: rgba(66, 243, 223, 0.28);
  stroke-width: 2;
  opacity: 0;
}

.node-button circle:not(.node-pulse):not(.node-halo):not(.node-core) {
  stroke: rgba(232, 255, 250, 0.82);
  stroke-width: 4px;
  filter: brightness(1.14) saturate(1.18);
}

.node-button .node-core {
  fill: rgba(255, 255, 255, 0.94);
  stroke: rgba(2, 12, 14, 0.36);
  stroke-width: 2px;
}

.node-button.is-hovered .node-pulse,
.node-button.is-selected .node-pulse {
  opacity: 1;
  animation: nodePulse 1.7s ease-out infinite;
}

.node-button.is-hovered circle:not(.node-pulse):not(.node-halo):not(.node-core),
.node-button.is-selected circle:not(.node-pulse):not(.node-halo):not(.node-core) {
  stroke: #ffffff;
  stroke-width: 6px;
  filter: drop-shadow(0 0 16px rgba(66, 243, 223, 0.85));
}

.node-button.is-unrelated,
.node-button.is-dimmed {
  opacity: 0.42;
}

.node-button text {
  fill: #ffffff;
  font-size: 14px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(2, 12, 14, 0.88);
  stroke-width: 4px;
  stroke-linejoin: round;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.76);
}

@keyframes nodePulse {
  0% {
    r: 50;
    opacity: 0.72;
  }
  100% {
    r: 72;
    opacity: 0;
  }
}

.cluster-band {
  margin-top: 8px;
}

.cluster-intro {
  border-color: rgba(66, 243, 223, 0.16);
  border-left-color: var(--cyan);
  background:
    linear-gradient(90deg, rgba(7, 19, 18, 0.96), rgba(13, 37, 40, 0.88)),
    var(--void);
}

.cluster-intro strong {
  color: #effffb;
}

.cluster-intro span {
  color: rgba(232, 255, 250, 0.72);
}

.cluster-card.is-featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(66, 243, 223, 0.3);
  background:
    linear-gradient(135deg, rgba(8, 28, 31, 0.98), rgba(12, 42, 47, 0.94)),
    var(--void);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.cluster-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(66, 243, 223, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 243, 223, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
  pointer-events: none;
}

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

.cluster-card.is-featured h3,
.cluster-card.is-featured .cluster-role,
.cluster-card.is-featured .cluster-mini-section > strong,
.cluster-card.is-featured .cluster-columns strong,
.cluster-card.is-featured p {
  color: #effffb;
}

.cluster-card.is-featured p {
  color: rgba(232, 255, 250, 0.76);
}

.cluster-card.is-featured .cluster-status {
  color: #071312;
  background: var(--cyan);
}

.cluster-card.is-featured .cluster-region {
  color: #071312;
  background: var(--amber);
}

.cluster-card.is-featured .cluster-metrics div,
.cluster-card.is-featured .cluster-chain-list span {
  border-color: rgba(66, 243, 223, 0.18);
  background: rgba(2, 12, 14, 0.58);
}

.cluster-card.is-featured .cluster-metrics span {
  color: rgba(232, 255, 250, 0.62);
}

.cluster-card.is-featured .cluster-metrics strong,
.cluster-card.is-featured .cluster-chain-list span {
  color: #effffb;
}

.cluster-card.is-featured .tag {
  color: rgba(232, 255, 250, 0.86);
  background: rgba(66, 243, 223, 0.14);
}

.cluster-card.is-featured .representative-tag {
  color: #071312;
  background: var(--lime);
}

.cluster-card.is-featured .policy-tag {
  color: #071312;
  background: var(--amber);
}

.cluster-card.is-featured .gap-tag {
  color: #fff;
  background: rgba(255, 107, 138, 0.24);
}

.cluster-card.is-featured .source-links a {
  color: var(--cyan);
  border-color: rgba(66, 243, 223, 0.25);
  background: rgba(66, 243, 223, 0.08);
}

@media (max-width: 920px) {
  .workspace {
    min-height: auto;
  }

  .cover-specimen {
    top: 130px;
    right: -120px;
    width: 360px;
    opacity: 0.42;
  }

  .cover-caption {
    display: none;
  }

  .map-toolbar {
    top: 10px;
    left: 10px;
    right: auto;
  }

}

@media (max-width: 620px) {
  .workspace {
    width: min(100% - 20px, 1220px);
    padding: 26px 12px 18px;
  }

  .cover-specimen {
    top: 118px;
    right: -150px;
    width: 320px;
  }

  .cover-beam {
    opacity: 0.45;
  }

  .mission-strip span {
    font-size: 11px;
  }

  .map-copy,
  .map-stage,
  #industryMap {
    min-height: 420px;
  }

  .map-toolbar button {
    min-width: 34px;
    min-height: 32px;
    padding: 0 9px;
  }
}
