:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #172126;
  --muted: #67747b;
  --line: #dce2e5;
  --line-strong: #c6d0d5;
  --accent: #d05a2a;
  --accent-soft: #fff1ea;
  --blue: #2e6d91;
  --teal: #197f73;
  --green: #5b7c51;
  --gold: #a57819;
  --purple: #6c5aa4;
  --magenta: #a64e72;
  --radius: 6px;
  font-family: Inter, "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: #192329;
  color: #f7fafb;
  border-bottom: 1px solid #2f3b42;
}

.brand-block {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #60717a;
  border-radius: 4px;
  color: #f29a70;
  font-size: 12px;
  font-weight: 800;
}

.brand-block h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 720;
}

.brand-block p {
  margin: 3px 0 0;
  color: #9eabb1;
  font-size: 11px;
}

.topbar-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.topbar-nav-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #45545c;
  border-radius: 999px;
  color: #d6dee2;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.topbar-nav-link:hover,
.topbar-nav-link:focus-visible,
.topbar-nav-link.is-active {
  border-color: #f29a70;
  color: #ffffff;
  background: rgba(242, 154, 112, 0.12);
  outline: none;
}

.topbar-nav-link svg {
  width: 15px;
  height: 15px;
  color: #f29a70;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aeb9be;
  font-size: 12px;
  white-space: nowrap;
}

.topbar-meta strong {
  color: #edf3f5;
  font-variant-numeric: tabular-nums;
}

.topbar-refresh {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #45545c;
  border-radius: 4px;
  background: transparent;
  color: #c4cdd1;
  cursor: pointer;
}

.topbar-refresh:hover {
  border-color: #7d8b92;
  color: #ffffff;
}

.topbar-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.topbar-refresh svg {
  width: 14px;
  height: 14px;
}

.topbar-refresh.is-loading svg {
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #72b788;
  box-shadow: 0 0 0 3px rgba(114, 183, 136, 0.12);
}

.workbench {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}

.filter-panel {
  min-width: 0;
  padding: 20px 16px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.search-row {
  height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.search-row > svg {
  width: 16px;
  height: 16px;
  color: #7d898f;
}

.search-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.icon-button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.icon-button svg {
  width: 15px;
  height: 15px;
}

.icon-button:hover {
  color: var(--accent);
}

.filter-group {
  margin-top: 24px;
}

.filter-group h2,
.filter-heading h2 {
  margin: 0 0 10px;
  color: #516067;
  font-size: 11px;
  line-height: 1;
  font-weight: 750;
  text-transform: uppercase;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.filter-heading span {
  color: #8d989d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2f4;
}

.market-segmented {
  grid-template-columns: repeat(3, 1fr);
}

.segmented button,
.status-filter button,
.relation-filter button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.segmented button {
  min-height: 28px;
  padding: 0 5px;
  border-radius: 4px;
  color: #67747b;
  font-size: 11px;
}

.segmented button.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(23, 33, 38, 0.09);
  font-weight: 700;
}

.sector-filters {
  display: grid;
  gap: 3px;
}

.sector-button {
  width: 100%;
  min-height: 30px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #526067;
  text-align: left;
  cursor: pointer;
  font-size: 12px;
}

.sector-button:hover {
  background: #f3f6f7;
}

.sector-button.is-active {
  border-color: #d6dde1;
  background: #edf2f4;
  color: var(--ink);
  font-weight: 650;
}

.sector-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.sector-button em {
  color: #8d989d;
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.status-filter {
  display: grid;
  gap: 4px;
}

.status-filter button {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 4px;
  color: #617078;
  text-align: left;
  font-size: 12px;
}

.status-filter button em {
  margin-left: auto;
  color: #8d989d;
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.status-filter button:hover,
.status-filter button.is-active {
  background: #edf2f4;
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.status-dot.analyzed {
  background: var(--teal);
}

.status-dot.core {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(208, 90, 42, 0.12);
}

.status-dot.caution {
  background: var(--gold);
  box-shadow: 0 0 0 2px rgba(165, 120, 25, 0.12);
}

.status-dot.pending {
  border: 1px solid #a6b0b5;
  background: transparent;
}

.source-block {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.source-block span {
  color: #8a969b;
  font-size: 10px;
  text-transform: uppercase;
}

.source-block p {
  margin: 5px 0 0;
  color: #66737a;
  font-size: 11px;
  line-height: 1.55;
}

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

.summary-strip {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.summary-item {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span {
  color: #738087;
  font-size: 11px;
}

.summary-item strong {
  color: #26343a;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.summary-item.accent strong {
  color: var(--accent);
}

.summary-item:nth-child(3) strong {
  color: var(--teal);
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(160px, 1fr));
  gap: 10px;
  padding: 14px 0;
}

.decision-loading {
  grid-column: 1 / -1;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: #7b878d;
  background: var(--surface);
  font-size: 12px;
}

.decision-hero-card,
.decision-card {
  min-width: 0;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.decision-hero-card {
  background: linear-gradient(135deg, #192329 0%, #24323a 64%, #31434b 100%);
  color: #f7fafb;
}

.decision-hero-card span,
.decision-card > span {
  display: block;
  color: #87939a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.decision-hero-card span {
  color: #f29a70;
}

.decision-hero-card h2 {
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 1.15;
}

.decision-hero-card p,
.decision-card p {
  margin: 10px 0 0;
  color: #6d7980;
  font-size: 11px;
  line-height: 1.55;
}

.decision-hero-card p {
  color: #c5d0d5;
}

.decision-card strong {
  display: block;
  margin-top: 10px;
  color: #26343a;
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.decision-card.health strong {
  color: var(--accent);
}

.decision-card.trend strong {
  color: var(--teal);
}

.decision-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #66737a;
  font-size: 11px;
  line-height: 1.55;
}

.view-bar {
  height: 58px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}

.view-tabs button {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6f7c82;
  font-size: 12px;
  cursor: pointer;
}

.view-tabs button svg {
  width: 16px;
  height: 16px;
}

.view-tabs button:hover,
.view-tabs button.is-active {
  color: var(--ink);
}

.view-tabs button.is-active {
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.visible-label {
  padding-bottom: 17px;
  color: #7c898f;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.visible-label strong {
  color: var(--ink);
}

.content-view {
  display: none;
}

.content-view.is-active {
  display: block;
}

.workbench.policy-mode {
  grid-template-columns: minmax(0, 1fr);
}

.workbench.policy-mode .filter-panel,
.workbench.policy-mode .summary-strip,
.workbench.policy-mode .decision-panel,
.workbench.policy-mode .visible-label {
  display: none;
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  min-height: 620px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.graph-pane {
  min-width: 0;
  padding: 14px 16px 12px;
}

.graph-toolbar {
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
}

.relation-filter,
.graph-focus-filter,
.graph-mode-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.relation-filter button,
.graph-focus-filter button,
.graph-mode-filter button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #78858b;
  font-size: 10px;
}

.relation-filter button:hover,
.relation-filter button.is-active,
.graph-focus-filter button:hover,
.graph-focus-filter button.is-active,
.graph-mode-filter button:hover,
.graph-mode-filter button.is-active {
  border-color: var(--line);
  background: #f1f4f5;
  color: var(--ink);
}

.graph-focus-filter button.is-active {
  border-color: rgba(208, 90, 42, 0.24);
  background: var(--accent-soft);
  color: #9f441f;
}

.graph-mode-filter button.is-active {
  border-color: rgba(46, 109, 145, 0.24);
  background: #e8f1f6;
  color: #265e7f;
}

.network-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 650;
  min-height: 450px;
  border: 1px solid var(--line);
  background: #fbfcfc;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.network-stage:focus-visible {
  outline: 2px solid rgba(46, 109, 145, 0.35);
  outline-offset: 2px;
}

.network-stage.is-dragging {
  cursor: grabbing;
}

.network-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #f6f8f9;
}

.network-stage:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #f6f8f9;
}

#networkGraph {
  display: block;
  width: 100%;
  height: 100%;
}

.graph-controls {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(198, 208, 213, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(25, 35, 41, 0.12);
  backdrop-filter: blur(10px);
  cursor: default;
}

.graph-controls button {
  min-width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4f5f66;
  cursor: pointer;
}

.graph-controls button:hover,
.graph-controls button:focus-visible {
  background: #edf3f5;
  color: var(--ink);
  outline: none;
}

.graph-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.graph-controls svg {
  width: 15px;
  height: 15px;
}

.graph-zoom-reset {
  min-width: 54px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.graph-hint {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(198, 208, 213, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #758288;
  font-size: 10px;
  box-shadow: 0 6px 18px rgba(25, 35, 41, 0.08);
  backdrop-filter: blur(8px);
}

.layer-band {
  fill: #fbfcfc;
  stroke: #e5eaec;
  stroke-width: 1;
}

.layer-band.middle {
  fill: #f7faf9;
}

.layer-title {
  fill: #647179;
  font-size: 13px;
  font-weight: 750;
}

.layer-count {
  fill: #9ba5aa;
  font-size: 10px;
  font-weight: 600;
}

.relation-line {
  fill: none;
  stroke-width: 1.5;
  opacity: 0.32;
  transition: opacity 120ms ease, stroke-width 120ms ease;
}

.relation-line.chain {
  stroke: #c56336;
}

.relation-line.capex {
  stroke: #3d7796;
  stroke-dasharray: 7 4;
}

.relation-line.power {
  stroke: #5f8357;
  stroke-dasharray: 2 4;
}

.relation-line.theme {
  stroke: #8a7c9e;
  stroke-dasharray: 5 5;
}

.relation-line.mapping {
  stroke: #9b7422;
  stroke-dasharray: 3 3;
}

.relation-line.is-connected {
  opacity: 0.92;
  stroke-width: 2.4;
}

.relation-line.is-dimmed {
  opacity: 0.06;
}

.stock-node {
  cursor: pointer;
  outline: none;
}

.stock-node rect {
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1;
  transition: stroke 120ms ease, stroke-width 120ms ease, opacity 120ms ease;
}

.stock-node text {
  fill: #ffffff;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.stock-node .node-ticker {
  font-size: 10px;
}

.stock-node .node-change {
  fill: rgba(255, 255, 255, 0.86);
  font-size: 8px;
  font-weight: 650;
}

.stock-node:hover rect,
.stock-node:focus rect,
.stock-node.is-selected rect {
  stroke: #172126;
  stroke-width: 2.2;
}

.stock-node.is-related rect {
  stroke: #52656d;
  stroke-width: 1.8;
}

.stock-node.is-dimmed {
  opacity: 0.18;
}

.analyzed-ring {
  fill: #ffffff;
  stroke: #197f73;
  stroke-width: 2;
}

.core-ring {
  fill: #ffffff;
  stroke: #d05a2a;
  stroke-width: 2;
}

.caution-ring {
  fill: #ffffff;
  stroke: #9b7422;
  stroke-width: 2;
}

.graph-tooltip {
  position: absolute;
  z-index: 4;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid #26343a;
  border-radius: 4px;
  background: #192329;
  color: #f4f8f9;
  font-size: 11px;
  line-height: 1.4;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(25, 35, 41, 0.16);
}

.graph-tooltip strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
}

.relationship-legend {
  min-height: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  color: #77848a;
  font-size: 10px;
}

.relationship-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.line-sample {
  width: 25px;
  height: 0;
  border-top: 2px solid;
}

.line-sample.chain {
  border-color: #c56336;
}

.line-sample.capex {
  border-color: #3d7796;
  border-top-style: dashed;
}

.line-sample.power {
  border-color: #5f8357;
  border-top-style: dotted;
}

.line-sample.theme {
  border-color: #8a7c9e;
  border-top-style: dashed;
}

.line-sample.mapping {
  border-color: #9b7422;
  border-top-style: dashed;
}

.detail-panel {
  min-width: 0;
  padding: 25px 22px;
  border-left: 1px solid var(--line);
  background: #f8fafb;
}

.detail-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7a878d;
  font-size: 10px;
  text-transform: uppercase;
}

.detail-title {
  margin: 16px 0 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
}

.detail-company {
  margin: 7px 0 0;
  color: #6f7c82;
  font-size: 12px;
}

.detail-role {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.live-quote {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.live-quote strong {
  font-size: 27px;
  font-variant-numeric: tabular-nums;
}

.live-quote span {
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.quote-up {
  color: #16755f;
}

.quote-down {
  color: #bd4d31;
}

.quote-flat {
  color: #718087;
}

.quote-missing {
  color: #8e999e;
  font-size: 11px;
}

.research-card-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 14px;
}

.research-card-banner div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.research-card-banner span {
  display: block;
  color: #8a959a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.research-card-banner strong {
  display: block;
  margin-top: 4px;
  color: #26343a;
  font-size: 12px;
  line-height: 1.35;
}

.detail-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h3 {
  margin: 0 0 9px;
  color: #758187;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0;
  color: #33434a;
  font-size: 12px;
  line-height: 1.65;
}

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

.meta-grid div {
  min-width: 0;
}

.meta-grid span {
  display: block;
  color: #8a959a;
  font-size: 9px;
  text-transform: uppercase;
}

.meta-grid strong {
  display: block;
  margin-top: 3px;
  color: #304047;
  font-size: 11px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  font-size: 10px;
  font-weight: 700;
}

.detail-status.analyzed {
  background: #e4f2ef;
  color: #176f65;
}

.detail-status.pending {
  background: #edf1f3;
  color: #6f7b81;
}

.detail-status.core {
  background: var(--accent-soft);
  color: #a44822;
}

.detail-status.caution {
  background: #f7f0db;
  color: #846417;
}

.mapping-tier-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.mapping-tier-card.confirmed {
  border-color: rgba(25, 127, 115, 0.24);
  background: #f2faf8;
}

.mapping-tier-card.theme {
  border-color: rgba(46, 109, 145, 0.22);
  background: #f3f8fb;
}

.mapping-tier-card.proxy {
  border-color: rgba(165, 120, 25, 0.26);
  background: #fdf9ec;
}

.mapping-tier-card.risk {
  border-color: rgba(208, 90, 42, 0.26);
  background: #fff6f1;
}

.mapping-tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mapping-tier-head strong {
  color: #26343a;
  font-size: 14px;
}

.mapping-tier-head span {
  color: #7b878d;
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}

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

.evidence-grid {
  display: grid;
  gap: 9px;
}

.evidence-grid h4 {
  margin: 0 0 7px;
  color: #536269;
  font-size: 11px;
}

.evidence-item {
  display: grid;
  gap: 3px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.evidence-item a,
.evidence-item strong {
  color: #26343a;
  font-size: 11px;
  line-height: 1.35;
  text-decoration: none;
}

.evidence-item a:hover {
  color: var(--accent);
}

.evidence-item span {
  color: #7d898f;
  font-size: 9px;
}

.related-list {
  display: grid;
  gap: 5px;
}

.related-item,
.peer-button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.related-item:hover,
.peer-button:hover {
  border-color: var(--line-strong);
  background: #f2f6f7;
}

.related-item strong,
.peer-button strong {
  font-size: 11px;
}

.related-item span,
.peer-button span {
  color: #7b878d;
  font-size: 9px;
  text-align: right;
}

.peer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.empty-state {
  display: grid;
  min-height: 480px;
  place-items: center;
  color: #7f8b91;
  font-size: 12px;
  text-align: center;
}

.table-wrap {
  max-height: 650px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f0f4f5;
}

th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid #e5eaec;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.45;
}

th {
  color: #69767d;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

th:nth-child(1) { width: 72px; }
th:nth-child(2) { width: 142px; }
th:nth-child(3) { width: 58px; }
th:nth-child(4) { width: 66px; }
th:nth-child(5) { width: 128px; }
th:nth-child(6) { width: 82px; }
th:nth-child(7) { width: 76px; }
th:nth-child(8) { width: 166px; }
th:nth-child(9) { width: 215px; }
th:nth-child(10) { width: 90px; }
th:nth-child(11) { width: 54px; }

th button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-transform: inherit;
}

th button svg {
  width: 11px;
  height: 11px;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: #f8fafb;
}

.ticker-cell {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.layer-tag,
.status-tag,
.market-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  font-size: 9px;
  white-space: nowrap;
}

.layer-tag.upstream {
  background: #fff0e7;
  color: #a84b23;
}

.layer-tag.midstream {
  background: #e7f2f1;
  color: #196f66;
}

.layer-tag.downstream {
  background: #e9eef5;
  color: #45617a;
}

.status-tag.analyzed {
  background: #e4f2ef;
  color: #176f65;
}

.status-tag.pending {
  background: #eef2f3;
  color: #6f7b81;
}

.status-tag.core {
  background: var(--accent-soft);
  color: #a44822;
}

.status-tag.caution {
  background: #f7f0db;
  color: #846417;
}

.market-tag.us-share {
  background: #e9eef5;
  color: #45617a;
}

.market-tag.a-share {
  background: #f9e8e2;
  color: #a44822;
}

.relation-count {
  color: var(--accent);
  font-weight: 800;
}

.price-cell,
.change-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.price-cell {
  font-weight: 700;
}

.chain-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.chain-column {
  min-width: 0;
  background: var(--surface);
}

.chain-header {
  min-height: 62px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 2px solid;
}

.chain-header h2 {
  margin: 0;
  font-size: 18px;
}

.chain-header span {
  color: #7b878d;
  font-size: 10px;
}

.chain-header.upstream { border-color: #d76737; }
.chain-header.midstream { border-color: #278376; }
.chain-header.downstream { border-color: #51718d; }

.sector-section {
  padding: 15px 18px 17px;
  border-bottom: 1px solid var(--line);
}

.sector-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  color: #5e6c72;
  font-size: 10px;
  text-transform: uppercase;
}

.sector-section h3 span {
  color: #9aa4a9;
  font-size: 9px;
  font-weight: 500;
}

.stock-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border: 0;
  border-top: 1px solid #edf0f1;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.stock-row:first-of-type {
  border-top: 0;
}

.stock-row:hover strong {
  color: var(--accent);
}

.stock-row strong {
  font-size: 11px;
}

.stock-row div {
  min-width: 0;
}

.stock-row p {
  margin: 0;
  overflow: hidden;
  color: #657279;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-mini {
  display: inline-flex;
  margin-right: 5px;
  padding: 1px 4px;
  border-radius: 3px;
  background: #edf1f3;
  color: #6a777d;
  font-size: 8px;
  font-weight: 700;
}

.stock-row .row-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4cdd1;
}

.stock-row .row-quote {
  text-align: right;
  font-size: 9px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stock-row .row-status.analyzed {
  background: var(--teal);
}

.discovery-panel {
  min-height: 640px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.policy-panel {
  min-height: 640px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #f5f2ea;
}

.policy-live-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px;
  color: #67716f;
  background: #ebe7dd;
  border: 1px solid #d5d1c7;
  border-bottom: 0;
  font-size: 10px;
}

.policy-live-bar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.policy-live-bar strong {
  color: #34403f;
}

.policy-live-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  font-weight: 800;
}

.policy-live-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.policy-live-status.live {
  color: #236a55;
  background: #dcefe5;
}

.policy-live-status.partial {
  color: #93681b;
  background: #f4e9c9;
}

.policy-live-status.fallback {
  color: #a14531;
  background: #f6ddd7;
}

.policy-live-bar button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #c4beb1;
  border-radius: 4px;
  color: #33403e;
  background: #f7f4ed;
  font-size: 10px;
  font-weight: 750;
}

.policy-live-bar button:hover {
  border-color: #d75234;
  color: #b83e26;
}

.policy-live-bar button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.policy-live-bar button svg {
  width: 13px;
  height: 13px;
}

.policy-live-bar button:disabled svg {
  animation: spin 900ms linear infinite;
}

.policy-fallback-notice {
  padding: 10px 13px;
  color: #8a412e;
  background: #f7ded7;
  border: 1px solid #e5b5a9;
  border-bottom: 0;
  font-size: 10px;
}

.policy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 28px;
  align-items: end;
  padding: 30px;
  background: #f5f2ea;
  border: 1px solid #d5d1c7;
}

.policy-kicker,
.policy-section-head span {
  color: #d75234;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.policy-hero h2 {
  margin: 10px 0 0;
  color: #162022;
  font-size: clamp(36px, 3.7vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.policy-hero h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.policy-hero-copy > p {
  max-width: 640px;
  margin: 16px 0 0;
  color: #566160;
  font-size: 14px;
  line-height: 1.75;
}

.policy-takeaway {
  max-width: 680px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 3px solid #d75234;
  background: rgba(255, 255, 255, 0.42);
}

.policy-takeaway span {
  color: #d75234;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.policy-takeaway strong {
  color: #34403f;
  font-size: 12px;
  line-height: 1.55;
}

.policy-empty-retry {
  margin-top: 12px;
  padding: 7px 11px;
  border: 1px solid #cf7660;
  border-radius: 4px;
  color: #a43e28;
  background: #fff8f4;
  font-size: 10px;
  font-weight: 750;
}

.policy-score-card {
  min-height: 220px;
  padding: 21px;
  color: #f7f4ec;
  background: #162022;
  box-shadow: 8px 8px 0 #d75234;
}

.policy-score-head,
.policy-gauge-labels {
  display: flex;
  justify-content: space-between;
  color: #aeb8b4;
  font-size: 10px;
}

.policy-score-head strong {
  padding: 4px 7px;
  border-radius: 999px;
  color: #162022;
  background: #c8ef72;
}

.policy-score-value {
  margin-top: 17px;
  font-size: 68px;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -0.08em;
  font-variant-numeric: tabular-nums;
}

.policy-score-change {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 800;
}

.policy-score-change.is-up {
  color: #c8ef72;
}

.policy-score-change.is-down {
  color: #f29a70;
}

.policy-gauge {
  height: 6px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #35403f;
}

.policy-gauge i {
  display: block;
  height: 100%;
  background: #c8ef72;
}

.policy-gauge-labels {
  padding-top: 7px;
  color: #7f8b87;
}

.policy-score-card > p {
  margin: 16px 0 0;
  color: #aeb8b4;
  font-size: 10px;
  line-height: 1.5;
}

.policy-explain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid #d5d1c7;
  border-bottom: 1px solid #d5d1c7;
  border-left: 1px solid #d5d1c7;
}

.policy-explain-grid article {
  min-width: 0;
  padding: 17px 19px;
  border-right: 1px solid #d5d1c7;
}

.policy-explain-grid article:last-child {
  border-right: 0;
}

.policy-explain-grid span {
  display: block;
  color: #d75234;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.policy-explain-grid strong {
  display: block;
  margin-top: 7px;
  color: #34403f;
  font-size: 16px;
}

.policy-explain-grid strong.is-hot {
  color: #c44a31;
}

.policy-explain-grid strong.is-cool {
  color: #28705d;
}

.policy-explain-grid p {
  margin: 6px 0 0;
  color: #7a8481;
  font-size: 10px;
  line-height: 1.5;
}

.policy-breakdown-grid,
.policy-event-grid,
.policy-scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.policy-breakdown-grid article,
.policy-event-card,
.policy-scenario-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.34);
}

.policy-breakdown-grid article > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.policy-breakdown-grid article > div:first-child span {
  color: #34403f;
  font-size: 11px;
  font-weight: 800;
}

.policy-breakdown-grid article > div:first-child strong {
  color: #d75234;
  font-size: 23px;
}

.policy-breakdown-bar {
  height: 4px;
  margin-top: 12px;
  background: #ddd8cd;
}

.policy-breakdown-bar i {
  display: block;
  height: 100%;
  background: #d75234;
}

.policy-breakdown-grid small {
  display: block;
  margin-top: 8px;
  color: #7c8683;
  font-size: 8px;
}

.policy-breakdown-grid p,
.policy-event-card > p,
.policy-scenario-grid p,
.policy-current-scenario p {
  margin: 10px 0 0;
  color: #74807c;
  font-size: 9px;
  line-height: 1.55;
}

.policy-event-card {
  border-top: 4px solid #9ba5a1;
}

.policy-event-card.escalation {
  border-top-color: #d75234;
}

.policy-event-card.softening {
  border-top-color: #27816a;
}

.policy-event-card.execution {
  border-top-color: #ad7a20;
}

.policy-event-head,
.policy-crowding-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.policy-event-head h4 {
  margin: 0;
  color: #263331;
  font-size: 13px;
}

.policy-event-head span {
  padding: 3px 6px;
  border-radius: 999px;
  color: #684f24;
  background: #eee3c8;
  font-size: 8px;
  font-weight: 800;
}

.policy-event-news {
  display: grid;
  gap: 7px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #ded9ce;
}

.policy-event-news a {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.policy-event-news a:hover strong {
  color: #b83e26;
}

.policy-event-news strong {
  overflow: hidden;
  color: #43504d;
  font-size: 9px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-event-news span {
  color: #8b9491;
  font-size: 8px;
}

.policy-crowding-section {
  margin-top: 34px;
  padding: 28px;
  color: #e6ebe8;
  background: #162022;
}

.policy-crowding-section .policy-section-head h3 {
  color: #f2f4f1;
}

.policy-crowding-section .policy-section-head p {
  color: #9eaaa6;
}

.policy-crowding-summary {
  display: grid;
  grid-template-columns: 120px 140px 120px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.policy-crowding-summary > div,
.policy-crowding-summary > p {
  min-height: 70px;
  margin: 0;
  padding: 12px;
  border: 1px solid #34413f;
  background: #1d2928;
}

.policy-crowding-summary span {
  display: block;
  color: #8f9b97;
  font-size: 8px;
  font-weight: 800;
}

.policy-crowding-summary strong {
  display: block;
  margin-top: 8px;
  color: #c8ef72;
  font-size: 23px;
}

.policy-crowding-summary > p {
  color: #aeb8b4;
  font-size: 10px;
  line-height: 1.55;
}

.policy-crowding-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 12px;
}

.policy-crowding-toolbar button {
  padding: 8px 11px;
  border: 1px solid #3c4946;
  color: #aeb8b4;
  background: #1d2928;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.policy-crowding-toolbar button:hover,
.policy-crowding-toolbar button.active {
  border-color: #c8ef72;
  color: #162022;
  background: #c8ef72;
}

.policy-crowding-toolbar > span {
  margin-left: auto;
  color: #788682;
  font-size: 8px;
}

.policy-crowding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.policy-crowding-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid #34413f;
  background: #1d2928;
}

.policy-crowding-card.is-selected {
  outline: 2px solid #c8ef72;
  outline-offset: -2px;
}

.policy-crowding-card.crowded,
.policy-crowding-card.distribution_risk {
  border-color: #985442;
}

.policy-crowding-head > div {
  display: grid;
  gap: 3px;
}

.policy-crowding-head button,
.policy-crowding-head > div > strong {
  width: fit-content;
  padding: 0;
  border: 0;
  color: #f3f6f2;
  background: transparent;
  font-size: 15px;
  font-weight: 850;
}

.policy-crowding-head button:hover {
  color: #c8ef72;
}

.policy-crowding-head > div > span {
  color: #82908b;
  font-size: 8px;
}

.policy-crowding-head b {
  padding: 4px 6px;
  color: #f6c0b2;
  background: #3b2926;
  font-size: 8px;
}

.policy-crowding-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 14px;
}

.policy-crowding-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #34413f;
  color: #899691;
  font-size: 8px;
}

.policy-crowding-metrics strong {
  color: #dfe5e1;
}

.policy-crowding-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 12px;
}

.policy-crowding-evidence span {
  padding: 3px 5px;
  color: #cbd4d0;
  background: #2b3836;
  font-size: 7px;
}

.policy-crowding-detail-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid #44524f;
  color: #c8ef72;
  background: transparent;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.policy-crowding-detail-button:hover {
  border-color: #c8ef72;
  background: #263330;
}

.policy-crowding-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: #74817d;
  font-size: 7px;
}

.policy-crowding-detail {
  margin-top: 14px;
  border: 1px solid #485652;
  background: #111a1c;
}

.policy-crowding-detail > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 20px;
  border-bottom: 1px solid #34413f;
}

.policy-crowding-detail > header > div:first-child span {
  color: #d75234;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.policy-crowding-detail > header h4 {
  margin: 5px 0 0;
  color: #f2f4f1;
  font-size: 22px;
}

.policy-crowding-detail > header > div:last-child {
  display: grid;
  gap: 5px;
  text-align: right;
}

.policy-crowding-detail > header strong {
  color: #c8ef72;
  font-size: 11px;
}

.policy-crowding-detail > header > div:last-child span {
  color: #9faaa6;
  font-size: 9px;
}

.policy-expectation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid #34413f;
}

.policy-expectation-grid article {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #34413f;
}

.policy-expectation-grid article:last-child {
  border-right: 0;
}

.policy-expectation-grid span,
.policy-earnings-window span {
  display: block;
  color: #7f8d88;
  font-size: 8px;
  font-weight: 800;
}

.policy-expectation-grid strong {
  display: block;
  margin-top: 7px;
  color: #e5eae7;
  font-size: 17px;
}

.policy-expectation-grid strong.positive {
  color: #75d1b6;
}

.policy-expectation-grid strong.negative {
  color: #f08a70;
}

.policy-expectation-grid small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #72807b;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-earnings-window {
  display: grid;
  grid-template-columns: minmax(220px, 1.8fr) repeat(4, minmax(105px, 1fr));
  border-bottom: 1px solid #34413f;
}

.policy-earnings-window > div,
.policy-earnings-window article {
  padding: 14px;
  border-right: 1px solid #34413f;
}

.policy-earnings-window > :last-child {
  border-right: 0;
}

.policy-earnings-window strong {
  display: block;
  margin-top: 6px;
  color: #e5eae7;
  font-size: 14px;
}

.policy-earnings-window p,
.policy-earnings-window small {
  display: block;
  margin: 5px 0 0;
  color: #788682;
  font-size: 7px;
  line-height: 1.5;
}

.policy-timeline-chart {
  padding: 14px 18px 4px;
  overflow-x: auto;
}

.policy-timeline-chart svg {
  display: block;
  width: 100%;
  min-width: 700px;
  height: auto;
}

.policy-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  padding: 0 8px 3px;
  color: #8d9995;
  font-size: 8px;
}

.policy-timeline-legend span::before {
  display: inline-block;
  width: 12px;
  height: 2px;
  margin: 0 5px 2px 0;
  background: currentColor;
  content: "";
}

.policy-timeline-legend .stock {
  color: #c8ef72;
}

.policy-timeline-legend .sector {
  color: #75a9d1;
}

.policy-timeline-legend .raise {
  color: #d7a347;
}

.policy-timeline-legend .cut {
  color: #f0715a;
}

.policy-timeline-chart path {
  fill: none;
  stroke-width: 2.6;
}

.policy-timeline-chart .stock-line {
  stroke: #c8ef72;
}

.policy-timeline-chart .sector-line {
  stroke: #75a9d1;
  stroke-dasharray: 5 5;
}

.policy-timeline-grid line {
  stroke: #2b3836;
  stroke-width: 1;
}

.policy-timeline-grid text,
.policy-timeline-chart .axis-date {
  fill: #6e7d78;
  font-size: 9px;
}

.policy-timeline-chart g.is-raise line {
  stroke: rgba(215, 163, 71, 0.25);
}

.policy-timeline-chart g.is-raise circle {
  fill: #d7a347;
}

.policy-timeline-chart g.is-cut line {
  stroke: rgba(240, 113, 90, 0.75);
}

.policy-timeline-chart g.is-cut circle {
  fill: #f0715a;
}

.policy-timeline-chart .is-earnings line,
.policy-timeline-chart .is-break line {
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.policy-timeline-chart .is-earnings line {
  stroke: #e9ece8;
}

.policy-timeline-chart .is-break line {
  stroke: #f0715a;
}

.policy-timeline-chart .is-earnings text,
.policy-timeline-chart .is-break text {
  fill: #e5eae7;
  font-size: 9px;
  font-weight: 800;
}

.policy-timeline-empty {
  padding: 28px;
  color: #87948f;
  text-align: center;
}

.policy-crowding-detail > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border-top: 1px solid #34413f;
  color: #7c8985;
  font-size: 8px;
}

.policy-crowding-detail > footer strong {
  flex: 0 0 auto;
  color: #c8ef72;
}

.policy-crowding-method,
.policy-crowding-empty {
  margin-top: 12px;
  padding: 10px 12px;
  color: #9da9a5;
  background: #1d2928;
  font-size: 9px;
  line-height: 1.55;
}

.policy-current-scenario {
  display: grid;
  grid-template-columns: 90px 190px 1fr;
  align-items: center;
  gap: 18px;
  padding: 15px 17px;
  color: #edf1ee;
  background: #d75234;
}

.policy-current-scenario span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.policy-current-scenario strong {
  font-size: 16px;
}

.policy-current-scenario p {
  margin: 0;
  color: #fff1ec;
}

.policy-scenario-grid {
  margin-top: 8px;
}

.policy-scenario-grid article.active {
  border-color: #d75234;
  box-shadow: inset 0 3px 0 #d75234;
}

.policy-scenario-grid span {
  color: #d75234;
  font-size: 8px;
  font-weight: 800;
}

.policy-scenario-grid strong {
  display: block;
  margin-top: 7px;
  color: #34403f;
  font-size: 13px;
}

.policy-section {
  padding: 34px 0 0;
}

.policy-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}

.policy-section-head h3 {
  margin: 6px 0 0;
  color: #162022;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.policy-section-head p {
  max-width: 360px;
  margin: 0;
  color: #79827f;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

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

.policy-driver-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.32);
}

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

.policy-driver-head > div {
  display: grid;
  gap: 4px;
}

.policy-driver-head > div > span {
  color: #263331;
  font-size: 12px;
  font-weight: 800;
}

.policy-driver-head small {
  color: #6d7775;
  font-size: 9px;
}

.policy-freshness {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 8px;
  font-weight: 800;
}

.policy-freshness.live,
.policy-freshness.current {
  color: #236a55;
  background: #dcefe5;
}

.policy-freshness.delayed {
  color: #86621e;
  background: #f1e8ca;
}

.policy-freshness.stale,
.policy-freshness.fallback,
.policy-freshness.unknown {
  color: #9c4935;
  background: #f4ddd7;
}

.policy-driver-value-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.policy-driver-value-row > strong {
  color: #162022;
  font-size: 27px;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.policy-driver-value-row > span {
  color: #6f7976;
  font-size: 9px;
  text-align: right;
}

.policy-driver-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 15px 0 6px;
  color: #7d8784;
  font-size: 9px;
}

.policy-driver-score strong {
  color: #d75234;
  font-size: 13px;
}

.policy-driver-card > p {
  min-height: 31px;
  margin: 13px 0 0;
  color: #87908d;
  font-size: 10px;
  line-height: 1.55;
}

.policy-driver-bar {
  height: 4px;
  background: #ddd8cd;
}

.policy-driver-bar i {
  display: block;
  height: 100%;
  background: #d75234;
}

.policy-driver-card > footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid #ddd8cd;
  color: #89918f;
  font-size: 8px;
}

.policy-driver-card > footer span {
  max-width: 64%;
  line-height: 1.35;
}

.policy-driver-card > footer time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.policy-history-chart {
  height: 205px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  padding: 22px 18px 10px;
  border: 1px solid #d5d1c7;
  background: repeating-linear-gradient(to bottom, rgba(22, 32, 34, 0.05) 0, rgba(22, 32, 34, 0.05) 1px, transparent 1px, transparent 44px);
}

.policy-history-column {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
}

.policy-history-column strong {
  color: #5f6967;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.policy-history-column i {
  display: block;
  min-height: 3px;
  background: #162022;
}

.policy-history-column:nth-last-child(-n + 3) i {
  background: #d75234;
}

.policy-history-column span {
  color: #7a8582;
  font-size: 8px;
  text-align: center;
}

.policy-mapping-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.policy-mapping-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.34);
}

.policy-mapping-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.policy-mapping-title h4 {
  margin: 0;
  color: #162022;
  font-size: 14px;
}

.policy-mapping-title span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.policy-mapping-title .positive {
  background: #c8ef72;
}

.policy-mapping-title .caution {
  background: #f3c0b4;
}

.policy-mapping-title .watch {
  background: #ddd3b8;
}

.policy-mapping-card > p {
  min-height: 58px;
  margin: 15px 0;
  color: #6f7a77;
  font-size: 10px;
  line-height: 1.6;
}

.policy-mapping-signal {
  width: fit-content;
  margin-top: 11px;
  padding: 4px 7px;
  color: #7c5c1c;
  background: #efe5c7;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 750;
}

.policy-mapping-overlays {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.policy-mapping-overlays span {
  padding: 3px 5px;
  color: #66716e;
  background: #e7e2d7;
  font-size: 8px;
}

.policy-mapping-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid #ddd8cd;
}

.policy-mapping-count strong {
  color: #d75234;
  font-size: 21px;
}

.policy-mapping-count span {
  color: #8a928f;
  font-size: 9px;
}

.policy-ticker-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.policy-ticker-list button,
.policy-ticker-list > span {
  padding: 4px 6px;
  border: 1px solid #cfc9bd;
  border-radius: 3px;
  color: #465250;
  background: #f7f4ed;
  font-size: 9px;
  font-weight: 750;
}

.policy-ticker-list button:hover {
  border-color: #d75234;
  color: #b83e26;
}

.policy-method-note {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
  padding: 21px 22px;
  color: #dfe5e1;
  background: #162022;
}

.policy-method-note span {
  display: block;
  color: #c8ef72;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.policy-method-note strong {
  display: block;
  margin-top: 6px;
  font-size: 14px;
}

.policy-method-note p {
  margin: 0;
  color: #aeb8b4;
  font-size: 10px;
  line-height: 1.65;
}

.policy-source-ledger {
  margin-top: 34px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.3);
}

.policy-source-ledger summary {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 15px;
  color: #34403f;
  cursor: pointer;
  font-size: 11px;
}

.policy-source-ledger summary strong {
  color: #6d7775;
  font-size: 9px;
}

.policy-source-ledger > div {
  border-top: 1px solid #d5d1c7;
}

.policy-source-ledger article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 110px 52px;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 14px;
  border-bottom: 1px solid #e1ddd4;
}

.policy-source-ledger article:last-child {
  border-bottom: 0;
}

.policy-source-ledger article strong {
  color: #34403f;
  font-size: 10px;
}

.policy-source-ledger article p {
  margin: 3px 0 0;
  color: #87908d;
  font-size: 9px;
}

.policy-source-ledger article time {
  color: #737e7b;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.policy-source-ledger article a {
  color: #b83e26;
  font-size: 9px;
  font-weight: 750;
  text-decoration: none;
}

.policy-source-ledger article a:hover {
  text-decoration: underline;
}

.policy-section-head-compact {
  margin-bottom: 12px;
}

.policy-overview-section {
  padding-top: 28px;
}

.policy-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
  gap: 10px;
}

.policy-overview-card {
  min-width: 0;
  padding: 17px 18px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.42);
}

.policy-overview-card > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.policy-overview-card > header > span {
  color: #d75234;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.policy-overview-card > header > strong {
  color: #4b5754;
  font-size: 10px;
}

.policy-pressure-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.72fr) minmax(90px, 1fr) 32px;
  align-items: center;
  gap: 12px;
  min-height: 31px;
  border-top: 1px solid #e2ded5;
}

.policy-pressure-row:first-of-type {
  border-top: 0;
}

.policy-pressure-row > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.policy-pressure-row span {
  color: #35413f;
  font-size: 10px;
  font-weight: 780;
}

.policy-pressure-row small {
  overflow: hidden;
  color: #8a9491;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-pressure-row > strong {
  color: #d75234;
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.policy-pressure-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #ddd8cd;
}

.policy-pressure-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a347, #d75234);
}

.policy-overview-scenario {
  display: grid;
  align-content: space-between;
  color: #eef3ef;
  background: #162022;
  border-color: #162022;
}

.policy-overview-scenario > header {
  align-items: flex-start;
}

.policy-overview-scenario > header > strong {
  max-width: 190px;
  color: #c8ef72;
  font-size: 16px;
  line-height: 1.2;
  text-align: right;
}

.policy-overview-scenario > p {
  margin: 5px 0 18px;
  color: #acb7b3;
  font-size: 10px;
  line-height: 1.6;
}

.policy-overview-scenario > div {
  display: flex;
  gap: 6px;
}

.policy-overview-scenario > div span {
  padding: 5px 8px;
  color: #dce3df;
  background: #263331;
  font-size: 9px;
  font-weight: 800;
}

.policy-overview-empty {
  margin: 0;
  color: #818b88;
  font-size: 10px;
}

.policy-event-ribbon {
  display: grid;
  grid-template-columns: 90px repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 10px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.28);
}

.policy-event-ribbon > span,
.policy-event-ribbon > div {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #d5d1c7;
}

.policy-event-ribbon > :last-child {
  border-right: 0;
}

.policy-event-ribbon > span {
  display: grid;
  place-items: center start;
  color: #737d7a;
  font-size: 9px;
  font-weight: 850;
}

.policy-event-ribbon > div {
  border-top: 3px solid #9ba5a1;
}

.policy-event-ribbon > div.escalation {
  border-top-color: #d75234;
}

.policy-event-ribbon > div.execution {
  border-top-color: #ad7a20;
}

.policy-event-ribbon > div.softening {
  border-top-color: #27816a;
}

.policy-event-ribbon strong,
.policy-event-ribbon small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-event-ribbon strong {
  color: #35413f;
  font-size: 9px;
}

.policy-event-ribbon small {
  margin-top: 3px;
  color: #818b88;
  font-size: 8px;
}

.policy-disclosure {
  margin-top: 10px;
  border: 1px solid #d5d1c7;
  background: rgba(255, 255, 255, 0.3);
}

.policy-disclosure > summary,
.policy-source-ledger > summary {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 45px 10px 16px;
  cursor: pointer;
  list-style: none;
}

.policy-disclosure > summary::-webkit-details-marker,
.policy-source-ledger > summary::-webkit-details-marker,
.policy-method-note > summary::-webkit-details-marker,
.policy-crowding-method > summary::-webkit-details-marker {
  display: none;
}

.policy-disclosure > summary::after,
.policy-source-ledger > summary::after {
  position: absolute;
  right: 16px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #c7c1b5;
  border-radius: 50%;
  color: #5f6967;
  content: "+";
  font-size: 15px;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.policy-disclosure[open] > summary::after,
.policy-source-ledger[open] > summary::after {
  border-color: #d75234;
  color: #d75234;
  content: "−";
  transform: rotate(180deg);
}

.policy-disclosure > summary:hover,
.policy-source-ledger > summary:hover {
  background: rgba(255, 255, 255, 0.52);
}

.policy-disclosure > summary span {
  display: grid;
  gap: 3px;
}

.policy-disclosure > summary small {
  color: #d75234;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.policy-disclosure > summary strong {
  color: #263331;
  font-size: 14px;
}

.policy-disclosure > summary em {
  color: #76817e;
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

.policy-disclosure-body {
  padding: 16px;
  border-top: 1px solid #d5d1c7;
}

.policy-disclosure-intro {
  margin-bottom: 13px;
  color: #737e7b;
  font-size: 10px;
  line-height: 1.55;
}

.policy-crowding-workbench {
  display: grid;
  grid-template-columns: minmax(310px, 0.86fr) minmax(0, 1.4fr);
  gap: 10px;
}

.policy-crowding-rank,
.policy-crowding-focus {
  min-width: 0;
  border: 1px solid #34413f;
  background: #1d2928;
}

.policy-crowding-rank > header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #34413f;
}

.policy-crowding-rank > header span {
  color: #c8ef72;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.policy-crowding-rank > header strong {
  color: #84918c;
  font-size: 8px;
}

.policy-rank-row {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 62px minmax(90px, 0.9fr);
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 0;
  border-bottom: 1px solid #303d3b;
  color: #dfe5e1;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.policy-rank-row:last-child {
  border-bottom: 0;
}

.policy-rank-row:hover {
  background: #263330;
}

.policy-rank-row.is-selected {
  background: #2a3835;
  box-shadow: inset 3px 0 0 #c8ef72;
}

.policy-rank-row > b {
  color: #65736e;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.policy-rank-row > span {
  min-width: 0;
}

.policy-rank-row > span strong,
.policy-rank-row > span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-rank-row > span strong {
  color: #f1f4f2;
  font-size: 12px;
}

.policy-rank-row > span small,
.policy-rank-row > small {
  color: #7e8b86;
  font-size: 7px;
}

.policy-rank-row > span em {
  display: block;
  color: #f08a70;
  font-size: 15px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.policy-rank-row > span:nth-child(3) small {
  text-align: right;
}

.policy-rank-row > small {
  line-height: 1.35;
  text-align: right;
}

.policy-crowding-focus {
  display: grid;
  align-content: start;
  padding: 19px;
}

.policy-crowding-focus > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.policy-crowding-focus > header span {
  color: #c8ef72;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.policy-crowding-focus h4 {
  margin: 6px 0 0;
  color: #f3f6f2;
  font-size: 24px;
}

.policy-crowding-focus h4 small {
  margin-left: 7px;
  color: #8e9a96;
  font-size: 10px;
  font-weight: 650;
}

.policy-crowding-focus > header > b {
  padding: 5px 7px;
  color: #f6c0b2;
  background: #3b2926;
  font-size: 9px;
}

.policy-crowding-focus > p {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid #c8ef72;
  color: #c5ceca;
  background: #162022;
  font-size: 10px;
  line-height: 1.55;
}

.policy-focus-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid #34413f;
}

.policy-focus-metrics > div {
  min-width: 0;
  padding: 11px;
  border-right: 1px solid #34413f;
}

.policy-focus-metrics > div:last-child {
  border-right: 0;
}

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

.policy-focus-metrics span {
  color: #7f8c87;
  font-size: 7px;
}

.policy-focus-metrics strong {
  margin-top: 6px;
  overflow: hidden;
  color: #e5eae7;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.policy-focus-metrics strong.positive {
  color: #75d1b6;
}

.policy-focus-metrics strong.negative {
  color: #f08a70;
}

.policy-focus-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.policy-focus-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #52605c;
  color: #d5deda;
  background: transparent;
  font-size: 8px;
  font-weight: 850;
  cursor: pointer;
}

.policy-focus-actions button:hover {
  border-color: #c8ef72;
  color: #c8ef72;
}

.policy-focus-actions button.primary {
  border-color: #c8ef72;
  color: #162022;
  background: #c8ef72;
}

.policy-focus-actions button.primary:hover {
  background: #d5fa82;
}

.policy-rank-row:focus-visible,
.policy-crowding-toolbar button:focus-visible,
.policy-focus-actions button:focus-visible,
.policy-live-bar button:focus-visible,
.policy-ticker-list button:focus-visible,
.policy-disclosure > summary:focus-visible,
.policy-source-ledger > summary:focus-visible,
.policy-method-note > summary:focus-visible {
  outline: 2px solid #d75234;
  outline-offset: 2px;
}

.policy-crowding-section .policy-rank-row:focus-visible,
.policy-crowding-section .policy-crowding-toolbar button:focus-visible,
.policy-crowding-section .policy-focus-actions button:focus-visible {
  outline-color: #c8ef72;
}

.policy-crowding-method {
  margin-top: 10px;
  padding: 0;
  border: 1px solid #34413f;
  background: #1d2928;
}

.policy-crowding-method summary {
  padding: 10px 12px;
  color: #a7b2ae;
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  list-style: none;
}

.policy-crowding-method summary::after {
  float: right;
  color: #c8ef72;
  content: "+";
}

.policy-crowding-method[open] summary::after {
  content: "−";
}

.policy-crowding-method p {
  margin: 0;
  padding: 0 12px 11px;
  color: #8f9b97;
  font-size: 9px;
  line-height: 1.55;
}

.policy-source-ledger {
  margin-top: 10px;
}

.policy-source-ledger summary {
  padding-right: 45px;
}

.policy-method-note {
  display: block;
  margin-top: 10px;
  padding: 0;
}

.policy-method-note > summary {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  padding: 10px 22px;
  cursor: pointer;
  list-style: none;
}

.policy-method-note > summary::after {
  justify-self: end;
  color: #c8ef72;
  content: "+";
  font-size: 16px;
}

.policy-method-note[open] > summary::after {
  content: "−";
}

.policy-method-note > summary strong {
  margin: 0;
}

.policy-method-note > p {
  margin: 0;
  padding: 0 22px 18px 150px;
}

.discovery-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid #26343a;
  border-radius: 8px;
  background: linear-gradient(135deg, #192329 0%, #24323a 58%, #31434b 100%);
  color: #f7fafb;
}

.discovery-kicker {
  color: #f29a70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.discovery-hero h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1;
}

.discovery-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #c5d0d5;
  font-size: 13px;
  line-height: 1.7;
}

.discovery-run-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.discovery-run-card span {
  color: #aab8be;
  font-size: 10px;
  text-transform: uppercase;
}

.discovery-run-card strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.discovery-refresh-status {
  display: block;
  font-size: 11px;
  font-style: normal;
  line-height: 1.5;
}

.discovery-refresh-status.is-ok {
  color: #c8ef72;
}

.discovery-refresh-status.is-warning {
  color: #ffc38f;
}

.report-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(242, 154, 112, 0.45);
  border-radius: 4px;
  color: #ffd0bb;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.report-link:hover {
  border-color: #f29a70;
  color: #ffffff;
}

.discovery-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fbfcfc;
}

.discovery-metrics div {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--line);
}

.discovery-metrics div:last-child {
  border-right: 0;
}

.discovery-metrics span {
  display: block;
  color: #7b878d;
  font-size: 10px;
}

.discovery-metrics strong {
  display: block;
  margin-top: 7px;
  color: #26343a;
  font-size: 23px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.discovery-trend-section {
  margin-top: 14px;
}

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

.mini-trend {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.mini-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini-trend-head span {
  color: #7b878d;
  font-size: 10px;
}

.mini-trend-head strong {
  color: #26343a;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.mini-bars {
  height: 62px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  margin-top: 9px;
}

.mini-bars span {
  flex: 1 1 0;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #f29a70, #d05a2a);
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.history-point {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.history-point.is-current {
  border-color: rgba(208, 90, 42, 0.28);
  background: #fff8f4;
}

.history-point div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.history-point strong {
  color: #26343a;
  font-size: 13px;
}

.history-point span {
  color: #7b878d;
  font-size: 10px;
}

.history-point p {
  margin: 8px 0 0;
  color: #4f5f66;
  font-size: 11px;
  line-height: 1.5;
}

.history-point a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.discovery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.discovery-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.discovery-section-wide {
  grid-column: 1 / -1;
}

.discovery-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.discovery-section-head h3 {
  margin: 0;
  color: #26343a;
  font-size: 16px;
}

.discovery-section-head p {
  margin: 5px 0 0;
  color: #738087;
  font-size: 11px;
  line-height: 1.5;
}

.discovery-section-head > span {
  flex: 0 0 auto;
  color: #8b969b;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
  gap: 10px;
}

.compact-stack,
.discovery-list {
  display: grid;
  gap: 8px;
}

.discovery-card {
  min-width: 0;
  display: grid;
  gap: 11px;
  padding: 14px;
  border: 1px solid #d9e0e4;
  border-radius: 6px;
  background: var(--surface);
}

.discovery-card.compact {
  gap: 8px;
  padding: 12px;
}

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

.discovery-ticker {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.discovery-ticker span {
  color: #7d898f;
  font-size: 10px;
  font-weight: 700;
}

.discovery-card h4 {
  margin: 6px 0 0;
  color: #26343a;
  font-size: 14px;
  line-height: 1.25;
}

.score-pill {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.score-pill.high {
  background: var(--accent-soft);
  color: #a34822;
}

.score-pill.medium {
  background: #e4f2ef;
  color: #176f65;
}

.score-pill.low {
  background: #eef2f4;
  color: #647179;
}

.discovery-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.discovery-meta-line span,
.discovery-tags span,
.discovery-mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: #eef2f4;
  color: #647179;
  font-size: 10px;
  font-weight: 650;
}

.discovery-tags,
.discovery-mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.discovery-tags span {
  background: #f7f0db;
  color: #846417;
}

.discovery-card p,
.discovery-list-item p {
  margin: 0;
  color: #38484f;
  font-size: 12px;
  line-height: 1.6;
}

.discovery-card.compact p {
  font-size: 11px;
}

.discovery-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  color: #7a878d;
  font-size: 10px;
}

.discovery-quote {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.discovery-action {
  margin-left: auto;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafb;
  color: #304047;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.discovery-action:hover {
  border-color: var(--line-strong);
  background: #edf2f4;
}

.discovery-action.is-muted {
  margin-left: 0;
  border-color: transparent;
  background: transparent;
  color: #9aa4a9;
  cursor: default;
}

.candidate-action-state.watch {
  background: #e8f1f6;
  color: #265e7f;
}

.candidate-action-state.promote {
  background: var(--accent-soft);
  color: #a44822;
}

.candidate-action-state.ignore {
  background: #edf1f3;
  color: #7b878d;
}

.candidate-action-state.research {
  background: #e4f2ef;
  color: #176f65;
}

.candidate-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.candidate-actions button {
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafb;
  color: #647179;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.candidate-actions button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.candidate-actions button.is-active {
  border-color: rgba(208, 90, 42, 0.24);
  background: var(--accent-soft);
  color: #a44822;
}

.mini-research-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  border: 1px solid rgba(25, 127, 115, 0.2);
  border-radius: 6px;
  background: #f4fbf9;
}

.mini-research-card span {
  display: block;
  color: #558078;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mini-research-card p {
  margin: 4px 0 0;
  color: #263f3a;
  font-size: 11px;
  line-height: 1.55;
}

.discovery-list-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e0e4;
  border-radius: 6px;
  background: var(--surface);
}

.discovery-list-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.discovery-list-title a,
.discovery-list-title strong {
  color: #26343a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
  text-decoration: none;
}

.discovery-list-title a:hover {
  color: var(--accent);
}

.discovery-list-title span {
  flex: 0 0 auto;
  min-width: 30px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf2f4;
  color: #4f5f66;
  font-size: 11px;
  font-weight: 800;
}

.empty-card {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  color: #7f8b91;
  font-size: 12px;
}

.page-footer {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
  color: #7c898f;
  font-size: 10px;
}

.page-footer p {
  margin: 0;
}

.page-footer span {
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .main-panel {
    padding: 18px 18px 14px;
  }

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

  .decision-hero-card {
    grid-column: 1 / -1;
  }

  .graph-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

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

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

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

  .discovery-section-wide {
    grid-column: 1;
  }

  .detail-panel {
    padding: 22px 16px;
  }

  .network-stage {
    min-height: 410px;
  }
}

@media (max-width: 860px) {
  .topbar {
    height: auto;
    min-height: 68px;
    padding: 13px 16px;
  }

  .topbar-nav {
    justify-content: flex-end;
  }

  .topbar-nav-link {
    min-height: 30px;
    padding: 0 10px;
  }

  .topbar-meta span:not(.live-dot) {
    display: none;
  }

  .workbench {
    display: block;
  }

  .filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1fr) minmax(220px, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .filter-group,
  .source-block {
    margin-top: 0;
  }

  .sector-group,
  .source-block {
    display: none;
  }

  .main-panel {
    padding: 14px 14px 10px;
  }

  .summary-strip {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    overflow-x: auto;
  }

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

  .summary-item {
    padding: 16px 14px;
  }

  .graph-layout {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .discovery-hero {
    grid-template-columns: 1fr;
  }

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

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

  .policy-hero {
    grid-template-columns: 1fr;
  }

  .policy-overview-grid,
  .policy-crowding-workbench {
    grid-template-columns: 1fr;
  }

  .policy-event-ribbon {
    grid-template-columns: 82px repeat(4, minmax(120px, 1fr));
    overflow-x: auto;
  }

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

  .policy-focus-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .policy-focus-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #34413f;
  }

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

  .policy-breakdown-grid,
  .policy-event-grid,
  .policy-scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .policy-crowding-summary > p {
    grid-column: 1 / -1;
  }

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

  .policy-expectation-grid article:nth-child(3) {
    border-right: 0;
  }

  .policy-expectation-grid article:nth-child(-n + 3) {
    border-bottom: 1px solid #34413f;
  }

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

  .policy-earnings-window > div {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 1px solid #34413f;
  }

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

  .chain-column {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .brand-block h1 {
    font-size: 16px;
  }

  .brand-block p,
  .topbar-meta .live-dot {
    display: none;
  }

  .topbar {
    gap: 10px;
  }

  .topbar-nav {
    flex: 0 0 auto;
  }

  .topbar-nav-link {
    width: 32px;
    padding: 0;
    justify-content: center;
  }

  .topbar-nav-link span {
    display: none;
  }

  .filter-panel {
    grid-template-columns: minmax(250px, 1fr);
  }

  .filter-panel > .filter-group {
    display: none;
  }

  .filter-panel > .market-group {
    display: block;
  }

  .summary-strip {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .view-bar {
    height: auto;
    min-height: 58px;
    align-items: center;
  }

  .view-tabs {
    gap: 0;
  }

  .view-tabs button {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .view-tabs button span {
    display: none;
  }

  .visible-label {
    padding-bottom: 0;
  }

  .graph-pane {
    padding: 10px 0;
  }

  .graph-toolbar {
    padding: 0 8px 8px;
    justify-content: flex-start;
  }

  .relation-filter,
  .graph-focus-filter,
  .graph-mode-filter {
    justify-content: flex-start;
  }

  .network-stage {
    height: 441px;
    min-height: 441px;
    border-right: 0;
    border-left: 0;
    overflow: hidden;
  }

  #networkGraph {
    width: 100%;
    min-width: 0;
    height: 441px;
    max-width: none;
  }

  .graph-controls {
    top: 8px;
    right: 8px;
  }

  .graph-hint {
    left: 8px;
    bottom: 8px;
  }

  .relationship-legend {
    padding: 10px 8px 0;
  }

  .detail-panel {
    padding: 22px 16px;
  }

  .table-wrap {
    max-height: 620px;
  }

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

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

  .policy-live-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 9px 12px;
  }

  .policy-live-bar > div:first-child {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 8px;
  }

  .policy-live-bar > div:first-child strong {
    display: none;
  }

  .policy-live-bar > div:first-child > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .policy-live-status {
    white-space: nowrap;
  }

  .policy-live-bar > div:last-child > span {
    display: none;
  }

  .policy-live-bar button {
    white-space: nowrap;
  }

  .policy-hero,
  .policy-signal,
  .policy-section,
  .policy-method-note {
    border-right: 0;
    border-left: 0;
  }

  .policy-hero {
    padding: 25px 17px;
  }

  .policy-hero h2 {
    font-size: 38px;
  }

  .policy-hero-copy > p {
    font-size: 12px;
  }

  .policy-takeaway {
    grid-template-columns: 72px 1fr;
  }

  .policy-explain-grid {
    grid-template-columns: 1fr;
  }

  .policy-explain-grid article {
    border-right: 0;
    border-bottom: 1px solid #d5d1c7;
  }

  .policy-explain-grid article:last-child {
    border-bottom: 0;
  }

  .policy-section {
    padding: 28px 14px 0;
  }

  .policy-overview-section {
    padding-top: 24px;
  }

  .policy-overview-card {
    padding: 15px;
  }

  .policy-pressure-row {
    grid-template-columns: minmax(100px, 0.78fr) minmax(70px, 1fr) 28px;
    gap: 8px;
  }

  .policy-pressure-row small {
    display: none;
  }

  .policy-event-ribbon {
    margin-right: -14px;
    margin-left: -14px;
    border-right: 0;
    border-left: 0;
  }

  .policy-disclosure {
    margin-right: 0;
    margin-left: 0;
    border-right: 0;
    border-left: 0;
  }

  .policy-disclosure > summary,
  .policy-source-ledger > summary {
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
    padding: 11px 45px 11px 14px;
  }

  .policy-disclosure > summary em {
    text-align: left;
  }

  .policy-disclosure-body {
    padding: 12px 14px;
  }

  .policy-section-head {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .policy-section-head p {
    text-align: left;
  }

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

  .policy-breakdown-grid,
  .policy-event-grid,
  .policy-scenario-grid,
  .policy-crowding-grid,
  .policy-crowding-summary {
    grid-template-columns: 1fr;
  }

  .policy-crowding-section {
    margin-top: 28px;
    padding: 24px 14px;
  }

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

  .policy-crowding-summary > div {
    min-height: 64px;
    padding: 9px;
  }

  .policy-crowding-summary strong {
    font-size: 19px;
  }

  .policy-crowding-summary > p {
    min-height: 0;
    grid-column: 1 / -1;
  }

  .policy-crowding-workbench {
    margin-right: -4px;
    margin-left: -4px;
  }

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

  .policy-rank-row > small {
    display: none;
  }

  .policy-crowding-focus {
    padding: 15px;
  }

  .policy-crowding-focus > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-crowding-focus h4 {
    font-size: 21px;
  }

  .policy-focus-actions {
    flex-direction: column;
  }

  .policy-focus-actions button {
    width: 100%;
  }

  .policy-crowding-toolbar {
    flex-wrap: wrap;
  }

  .policy-crowding-toolbar > span {
    width: 100%;
    margin: 4px 0 0;
  }

  .policy-crowding-detail > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-crowding-detail > header > div:last-child {
    text-align: left;
  }

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

  .policy-expectation-grid article,
  .policy-expectation-grid article:nth-child(3) {
    border-right: 1px solid #34413f;
    border-bottom: 1px solid #34413f;
  }

  .policy-expectation-grid article:nth-child(even) {
    border-right: 0;
  }

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

  .policy-earnings-window article:nth-of-type(even) {
    border-right: 0;
  }

  .policy-earnings-window article {
    border-bottom: 1px solid #34413f;
  }

  .policy-crowding-detail > footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .policy-current-scenario {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .policy-mapping-grid {
    grid-template-columns: 1fr;
  }

  .policy-method-note {
    margin-top: 28px;
  }

  .policy-method-note > summary {
    grid-template-columns: 1fr auto;
    gap: 5px;
    padding: 14px 16px;
  }

  .policy-method-note > summary span {
    grid-column: 1;
  }

  .policy-method-note > summary strong {
    grid-column: 1;
  }

  .policy-method-note > summary::after {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .policy-method-note > p {
    padding: 0 16px 16px;
  }

  .discovery-hero,
  .discovery-section,
  .discovery-metrics {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

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

  .discovery-section {
    padding: 16px;
  }

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

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

  .trend-grid,
  .history-timeline {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 1140px;
  }

  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
/* Shared Mastersgo research workspace */
:root { --bg: #f7f6f2; --surface-soft: #f3f2ed; --ink: #242624; --muted: #72746a; --line: #dfdfd5; --accent: #a64c2a; --accent-soft: #f3e7df; --radius: 10px; font-family: 'PingFang SC','Microsoft YaHei',system-ui,sans-serif; }
.suite-nav { position: fixed; inset: 0 auto 0 0; width: 195px; display: flex; flex-direction: column; padding: 30px 16px; background: #f0efea; border-right: 1px solid var(--line); z-index: 40; }
.suite-brand { display: flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 42px; }
.suite-brand img { width: 40px; height: 40px; }
.suite-brand small { display: block; font-size: 9px; letter-spacing: .23em; }
.suite-nav nav { display: grid; gap: 12px; }
.suite-nav nav a,.suite-settings { display: flex; gap: 12px; align-items: center; padding: 14px 10px; min-height: 50px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.suite-nav svg { width: 24px; height: 24px; stroke-width: 1.7; }
.suite-nav a:hover { background: #eae6dc; }
.suite-nav .suite-selected { background: var(--accent-soft); color: var(--accent); }
.suite-settings { margin-top: auto; border-top: 1px solid var(--line); border-radius: 0; }
.app-shell { padding-left: 195px; }
.topbar { height: auto; min-height: 105px; padding: 24px 28px; background: var(--bg); color: var(--ink); border-color: var(--line); flex-wrap: wrap; gap: 16px; }
.topbar .brand-mark { display: none; }
.brand-block h1 { font-size: 29px; letter-spacing: -.03em; }
.brand-block p,.topbar-meta { color: var(--muted); }
.topbar-nav-link { color: var(--muted); border-color: var(--line); }
.topbar-refresh { color: var(--ink); border-color: var(--line); }
.workbench { display: block; padding: 0 28px 28px; }
.filter-panel { display: flex; align-items: start; flex-wrap: wrap; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: auto; max-height: none; overflow: visible; }
.search-row { flex: 1 1 220px; margin: 0; }
.filter-panel .filter-group { margin: 0; flex: 0 1 auto; }
.filter-panel .filter-group h2 { font-size: 11px; margin: 0 0 6px; }
.filter-panel details { max-width: 100%; }
.filter-panel details summary { cursor: pointer; min-height: 44px; padding: 12px; font-size: 13px; }
.filter-panel details[open] { flex-basis: 100%; }
.sector-filters,.status-filter { display: flex; flex-wrap: wrap; gap: 6px; max-height: 240px; overflow: auto; }
.sector-filters button { width: auto; }
.source-block { display: none; }
.main-panel { padding: 20px 0; min-width: 0; }
.summary-strip { background: transparent; border: 0; margin-bottom: 12px; }
.summary-item { padding: 8px 18px; min-height: 45px; }
.summary-item strong { font-size: 20px; }
.decision-disclosure { margin: 12px 0; border-bottom: 1px solid var(--line); }
.decision-disclosure > summary { padding: 12px 0; cursor: pointer; font-size: 13px; color: var(--muted); }
.decision-disclosure > summary span { float: right; }
.decision-panel { margin-top: 12px; }
.graph-layout { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; grid-template-columns: minmax(0,1fr) 330px; }
.detail-panel { background: #fff; max-height: 800px; overflow: auto; }
.graph-pane { background: #fbfbf8; }
.network-stage { background: radial-gradient(#dcdcd3 .65px, transparent .65px) 0 0 / 16px 16px; }
.focused-map .stock-node rect { fill: #fff; stroke: #bbc3b9; stroke-width: 1.4; }
.focused-map .stock-node.is-selected rect { fill: #fff9f3; stroke: var(--accent); stroke-width: 2.4; }
.focused-map .stock-node text { fill: var(--ink); font-size: 12px; }
.focused-map .stock-node .node-change { fill: var(--muted); font-size: 10px; }
.research-handoff-panel,.linked-research { padding: 18px 0; border-top: 1px solid var(--line); line-height: 1.7; font-size: 13px; }
.research-handoff-panel h3,.linked-research h3 { margin: 0 0 10px; font-size: 15px; }
.research-handoff-panel p { margin: 6px 0; }
.research-handoff-panel label { display: flex; align-items: center; gap: 8px; min-height: 36px; }
.research-primary { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 12px 0; color: white; background: var(--accent); border-radius: 8px; text-decoration: none; font-weight: 600; }
.research-primary:hover { background: #8d3e22; }
.research-handoff-panel small,.linked-research small { color: var(--muted); }
.linked-research a { display: block; padding: 10px 0; color: var(--accent); }
#saveReportLink { padding: 12px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); }
.research-loop { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: white; margin-top: 16px; color: var(--muted); font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media(max-width:1200px) { .graph-layout { grid-template-columns: minmax(0,1fr) 290px; } .app-shell { padding-left: 170px; } .suite-nav { width: 170px; } .workbench { padding: 0 18px 20px; } }
@media(max-width:1000px) { .suite-nav { position: static; width: auto; padding: 12px 18px; flex-direction: row; align-items: center; gap: 20px; flex-wrap: wrap; } .suite-brand { margin: 0; font-size: 20px; } .suite-brand img { width: 32px; height: 32px; } .suite-nav nav { display: flex; gap: 6px; flex-wrap: wrap; } .suite-nav nav a { font-size: 12px; padding: 8px; } .suite-settings { display: none; } .app-shell { padding-left: 0; } }
@media(max-width:720px) { .topbar { padding: 20px 16px; } .brand-block h1 { font-size: 24px; } .workbench { padding: 0 12px 20px; } .graph-layout { grid-template-columns: minmax(0,1fr); } .detail-panel { max-height: none; border-top: 1px solid var(--line); } .summary-item { padding: 8px; } .summary-item strong { font-size: 18px; } .filter-panel { padding: 12px; } .view-tabs { overflow-x: auto; } .research-loop { padding: 14px; } }

@media (max-width: 720px) {
 .suite-nav { gap: 8px; padding: 12px; }
 .suite-nav nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
 .suite-nav nav a { flex-shrink: 0; min-height: 44px; }
 .filter-panel > .filter-group { display: block; }
 .view-tabs button { min-width: 72px; min-height: 44px; }
 .view-tabs button span { display: inline; }
 .topbar-nav-link { min-height: 44px; }
}
