:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #fafbfc;
  --ink: #162033;
  --muted: #667085;
  --line: #d9dee7;
  --head: #f1f4f8;
  --blue: #2557a7;
  --green: #168a5b;
  --amber: #b7791f;
  --red: #c2414b;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

.app-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.tabs,
.app-shell {
  width: min(1360px, calc(100vw - 32px));
  margin: 0 auto;
}

.header-inner {
  padding: 12px 0 10px;
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: 26px;
  letter-spacing: 0;
}

.muted {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
}

.summary-item,
.metric-card,
.module-head > div,
.breadth-status-board,
.breadth-hero,
.status-card,
.spy-lab,
.sector-lab,
.sector-detail-card,
.supporting-evidence,
.tape-card,
.index-strip,
.index-card,
.sector-quadrants,
.quadrant-card,
.sector-heatmap,
.chart-panel,
.focus-panel,
.analysis-details,
.deep-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-item {
  min-height: 64px;
  padding: 10px 12px;
}

.summary-item span,
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-item b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}

.summary-item small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 247, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  border-radius: 999px;
  min-height: 32px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.app-shell {
  padding: 16px 0 36px;
}

.module-head {
  margin-bottom: 10px;
}

.module-head > div {
  padding: 16px;
}

.module-head h2 {
  margin-top: 5px;
  font-size: 24px;
}

.module-head p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.conclusion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: #f6fbf8;
  color: #344054;
  line-height: 1.65;
  font-size: 14px;
}

.conclusion b {
  color: var(--green);
  font-size: 13px;
}

.conclusion span {
  min-width: 0;
}

.breadth-hero {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
}

.breadth-title h2 {
  margin-top: 5px;
  font-size: 24px;
}

.breadth-title p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

.breadth-conclusion {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: #f6fbf8;
  color: #344054;
  line-height: 1.65;
  font-size: 14px;
}

.breadth-status-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 14px;
  padding: 16px;
  margin-bottom: 12px;
}

.status-main h2 {
  margin-top: 5px;
  font-size: 25px;
}

.status-main > p {
  margin-top: 8px;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
}

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

.status-card {
  min-height: 104px;
  padding: 12px;
  border-top: 3px solid var(--line);
}

.status-card.tone-good {
  border-top-color: var(--green);
}

.status-card.tone-warn {
  border-top-color: var(--amber);
}

.status-card.tone-bad {
  border-top-color: var(--red);
}

.status-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.status-card b {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.status-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.spy-lab,
.sector-lab {
  padding: 14px;
  margin-bottom: 12px;
}

.section-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-kicker > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 4px;
  max-width: 820px;
}

.section-kicker span {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.section-kicker h3 {
  font-size: 18px;
}

.section-kicker p,
.section-kicker small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section-kicker small {
  max-width: 310px;
  text-align: right;
  font-weight: 800;
}

.combo-placeholder {
  display: grid;
  grid-template-rows: 1fr 0.55fr;
  gap: 10px;
  min-height: 246px;
  margin-top: 10px;
}

.combo-placeholder > div {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, #fff, #fff 10px, #f7f9fc 10px, #f7f9fc 20px);
}

.sector-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 10px;
  margin-bottom: 12px;
}

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

.sector-guidance article {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.sector-guidance-compact article {
  padding: 10px;
}

.sector-guidance header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.sector-guidance header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sector-guidance header b {
  color: var(--ink);
  font-size: 15px;
}

.sector-guidance header small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sector-guidance p,
.guidance-prompt,
.candidate-card p,
.prompt-item p {
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}

.sector-guidance-compact p {
  font-weight: 800;
}

.guidance-warning {
  margin-top: 6px;
  color: #8a4b09 !important;
  font-weight: 800;
}

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

.guidance-metrics div {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.guidance-metrics span,
.guidance-metrics b {
  display: block;
}

.guidance-metrics span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.guidance-metrics b {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.guidance-prompt {
  margin-top: 10px;
  padding: 9px;
  border-left: 3px solid var(--amber);
  background: #fffaf0;
  font-weight: 800;
}

.candidate-list,
.prompt-list {
  display: grid;
  gap: 8px;
}

.candidate-card {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.candidate-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.candidate-head b {
  color: var(--ink);
  font-size: 14px;
}

.candidate-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.candidate-head small {
  margin-left: auto;
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
}

.candidate-card p + p {
  margin-top: 4px;
}

.candidate-card strong {
  color: var(--ink);
}

.prompt-item {
  padding: 9px;
  border-left: 3px solid var(--line);
  background: var(--surface-soft);
  border-radius: 6px;
}

.prompt-item.tone-good {
  border-left-color: var(--green);
}

.prompt-item.tone-warn {
  border-left-color: var(--amber);
}

.prompt-item.tone-bad {
  border-left-color: var(--red);
}

.prompt-item b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 12px;
}

.market-diagnosis-panel {
  display: grid;
  gap: 10px;
}

.diagnosis-headline {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.diagnosis-headline span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.diagnosis-headline h4 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.diagnosis-headline p {
  margin-top: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

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

.diagnosis-card {
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.diagnosis-card.tone-good,
.diagnosis-section.tone-good,
.diagnosis-prompt.tone-good {
  border-color: #b9dfce;
  border-top-color: var(--green);
}

.diagnosis-card.tone-warn,
.diagnosis-section.tone-warn,
.diagnosis-prompt.tone-warn,
.diagnosis-card.tone-neutral,
.diagnosis-section.tone-neutral,
.diagnosis-prompt.tone-neutral {
  border-color: #efd49b;
  border-top-color: var(--amber);
}

.diagnosis-card.tone-bad,
.diagnosis-section.tone-bad,
.diagnosis-prompt.tone-bad {
  border-color: #f4b7bf;
  border-top-color: var(--red);
}

.diagnosis-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.diagnosis-card b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.diagnosis-card p {
  margin-top: 5px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

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

.diagnosis-section,
.diagnosis-prompt {
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.diagnosis-section b,
.diagnosis-prompt span {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.diagnosis-section p,
.diagnosis-prompt p {
  margin-top: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.diagnosis-prompt-list {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 8px;
}

.combo-placeholder b {
  font-size: 14px;
}

.combo-placeholder span {
  color: var(--muted);
  font-size: 12px;
}

.breadth-tape {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.tape-card {
  min-height: 88px;
  padding: 12px;
  border-top: 3px solid var(--line);
}

.tape-card.tone-good {
  border-top-color: var(--green);
}

.tape-card.tone-warn {
  border-top-color: var(--amber);
}

.tape-card.tone-bad {
  border-top-color: var(--red);
}

.tape-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.tape-card b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.tape-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-chart {
  margin-bottom: 10px;
}

.primary-chart .chart-panel {
  margin: 0;
}

.index-strip,
.sector-quadrants,
.sector-heatmap {
  padding: 12px;
  margin-bottom: 10px;
}

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

.panel-head h3 {
  font-size: 15px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

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

.index-card {
  padding: 12px;
  min-height: 168px;
  border-top: 3px solid var(--line);
}

.index-card.tone-good {
  border-top-color: var(--green);
}

.index-card.tone-warn {
  border-top-color: var(--amber);
}

.index-card.tone-bad {
  border-top-color: var(--red);
}

.index-card.missing {
  opacity: 0.58;
}

.index-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.index-head b {
  font-size: 17px;
}

.index-head span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.index-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.index-interpretation {
  margin-top: 7px;
  min-height: 46px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.ma-row {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.ma-row span {
  min-width: 38px;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.ma-row span.on {
  border-color: #b9dfce;
  background: #edf8f3;
  color: var(--green);
}

.index-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

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

.quadrant-card {
  padding: 12px;
  min-height: 190px;
}

.quadrant-card header h4 {
  font-size: 14px;
}

.quadrant-card header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.quadrant-leading {
  border-top: 3px solid var(--green);
}

.quadrant-improving {
  border-top: 3px solid var(--blue);
}

.quadrant-weakening {
  border-top: 3px solid var(--amber);
}

.quadrant-lagging {
  border-top: 3px solid var(--red);
}

.quadrant-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.quadrant-item {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.quadrant-item b,
.quadrant-item span,
.quadrant-item small {
  display: block;
}

.quadrant-item b {
  font-size: 12px;
}

.quadrant-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.quadrant-item small {
  margin-top: 4px;
  color: #475467;
  font-size: 11px;
  line-height: 1.35;
}

.heat-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.heat-row {
  display: grid;
  grid-template-columns: 60px 1.15fr 1.1fr 72px 72px 1fr 1fr 82px;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

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

.heat-head {
  background: var(--head);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.heat-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.heat-bar {
  position: relative;
  display: block;
  height: 20px;
  border-radius: 5px;
  background: #eef1f5;
  overflow: hidden;
}

.heat-bar i {
  display: block;
  height: 100%;
  opacity: 0.24;
}

.heat-bar b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 11px;
}

.heat-bar.tone-good i {
  background: var(--green);
}

.heat-bar.tone-warn i {
  background: var(--amber);
}

.heat-bar.tone-bad i {
  background: var(--red);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.metric-card {
  min-height: 86px;
  padding: 12px;
}

.metric-card b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.metric-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.native-tech-shell {
  display: block;
  margin-bottom: 12px;
  background: transparent;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.chart-panel {
  padding: 12px;
  min-height: 160px;
}

.chart-panel header,
.chart-panel footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.chart-panel h3 {
  font-size: 13px;
}

.chart-panel header span,
.chart-panel footer span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chart-panel svg {
  width: 100%;
  height: 104px;
  margin: 10px 0 6px;
  overflow: visible;
}

.chart-panel polyline {
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-panel .zero-line {
  stroke: var(--line);
  stroke-width: 1;
}

.combo-chart {
  grid-column: 1 / -1;
  min-height: 378px;
}

.combo-chart svg {
  height: 282px;
}

.echart-panel {
  width: 100%;
}

.combo-echart {
  height: 344px;
}

.combo-chart-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  align-items: stretch;
}

.combo-main-panel {
  min-width: 0;
  padding: 10px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.combo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 24px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

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

.combo-legend i {
  width: 12px;
  height: 3px;
  border-radius: 999px;
}

.combo-legend .legend-candle {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--red);
}

.combo-legend .legend-ma {
  background: var(--amber);
}

.combo-legend .legend-breadth {
  background: var(--blue);
}

.combo-legend .legend-high {
  background: var(--red);
}

.combo-legend .legend-low {
  background: var(--amber);
}

.combo-legend .legend-support {
  background: var(--green);
}

.combo-legend .legend-resistance {
  background: var(--red);
}

.combo-chart footer span:last-child {
  max-width: 72%;
  text-align: right;
  line-height: 1.35;
}

.combo-side-panel {
  display: grid;
  align-content: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.combo-side-panel.tone-good {
  border-color: #b9dfce;
}

.combo-side-panel.tone-bad {
  border-color: #f4b7bf;
}

.combo-side-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.combo-side-head h4 {
  font-size: 16px;
}

.combo-side-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.combo-side-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.combo-side-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.combo-metric {
  min-height: 72px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.combo-metric span,
.combo-metric small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
}

.combo-metric b {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.combo-verdict {
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #c9d8ee;
  border-radius: 7px;
  background: #f8fbff;
}

.combo-verdict b {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.combo-verdict p {
  margin-top: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.combo-chart .panel-separator {
  stroke: var(--line);
}

.combo-chart .plot-area {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1;
}

.combo-chart .grid-line {
  stroke: rgba(22, 31, 44, 0.08);
  stroke-width: 1;
}

.combo-chart .threshold-line {
  stroke: rgba(194, 65, 75, 0.42);
  stroke-width: 1;
  stroke-dasharray: 5 5;
}

.combo-chart .threshold-line.low-line {
  stroke: rgba(217, 132, 15, 0.45);
}

.combo-chart .mid-line {
  stroke: rgba(30, 117, 207, 0.28);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

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

.combo-chart .axis-right {
  text-anchor: end;
}

.combo-chart .close-line {
  stroke: var(--ink);
  stroke-width: 1.8;
}

.combo-chart .close-line.faint {
  opacity: 0.22;
}

.combo-chart .breadth-line {
  stroke: var(--blue);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.combo-chart .ma5-line {
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.combo-chart .sr-line line {
  stroke-width: 1.2;
  stroke-dasharray: 5 5;
}

.combo-chart .sr-line text {
  fill: #526070;
  font-size: 10px;
  font-weight: 800;
  text-anchor: end;
}

.combo-chart .sr-line.support-line line {
  stroke: rgba(22, 138, 91, 0.58);
}

.combo-chart .sr-line.resistance-line line {
  stroke: rgba(194, 65, 75, 0.58);
}

.combo-chart .candle line,
.combo-chart .candle rect {
  stroke-width: 1;
}

.combo-chart .candle.up line,
.combo-chart .candle.up rect {
  stroke: var(--green);
  fill: rgba(22, 138, 91, 0.24);
}

.combo-chart .candle.down line,
.combo-chart .candle.down rect {
  stroke: var(--red);
  fill: rgba(194, 65, 75, 0.22);
}

.range-controls {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
}

.chart-control-stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.breadth-mode-controls {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.range-controls button {
  min-width: 38px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.breadth-mode-controls button {
  min-width: 48px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.range-controls button.active,
.breadth-mode-controls button.active {
  background: var(--ink);
  color: #fff;
}

.sector-decision-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.sector-decision-card {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(520px, 1.15fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.sector-decision-main {
  min-width: 0;
  display: grid;
  gap: 9px;
}

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

.sector-decision-head span,
.sector-decision-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sector-decision-head h4 {
  margin-top: 3px;
  font-size: 18px;
}

.sector-decision-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sector-evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.sector-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  white-space: nowrap;
}

.sector-status-pill.tone-good,
.status-tag.tone-good {
  color: var(--green);
  border-color: #b9dfce;
  background: #f0fdf4;
}

.sector-status-pill.tone-warn,
.status-tag.tone-warn {
  color: var(--amber);
  border-color: #efd49b;
  background: #fffbeb;
}

.sector-status-pill.tone-bad,
.status-tag.tone-bad {
  color: var(--red);
  border-color: #f4b7bf;
  background: #fff1f2;
}

.sector-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.sector-action-box {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border-left: 3px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.sector-action-box.tone-good {
  border-left-color: var(--green);
  background: #f0fdf4;
}

.sector-action-box.tone-warn {
  border-left-color: var(--amber);
  background: #fffbeb;
}

.sector-action-box.tone-bad {
  border-left-color: var(--red);
  background: #fff1f2;
}

.sector-action-box b {
  color: var(--ink);
  font-size: 12px;
}

.sector-action-box p {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.sector-metric {
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.sector-metric span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.sector-metric b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.sector-metric small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

.sector-readout {
  margin-top: 10px;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.supporting-evidence {
  margin-bottom: 18px;
  overflow: hidden;
}

.supporting-evidence > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
}

.supporting-evidence > summary::-webkit-details-marker {
  display: none;
}

.supporting-evidence > summary span {
  color: var(--ink);
  font-weight: 900;
}

.supporting-evidence > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.supporting-evidence[open] > summary {
  border-bottom: 1px solid var(--line);
}

.supporting-body {
  padding: 12px 12px 0;
}

.chart-panel-single {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.single-chart-value {
  display: grid;
  gap: 4px;
  place-items: start;
  margin: 16px 0 8px;
}

.single-chart-value b {
  color: var(--ink);
  font-size: 26px;
}

.single-chart-value span,
.chart-panel-single p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.focus-panel,
.analysis-details {
  margin-bottom: 12px;
  overflow: hidden;
}

.focus-table-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.focus-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.focus-table header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.focus-table h4 {
  font-size: 14px;
}

.focus-table header span,
.table-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-more {
  padding: 8px 12px;
  background: var(--surface-soft);
}

.panel,
.deep-panel {
  overflow: hidden;
}

.deep-panel {
  margin: 10px;
  box-shadow: none;
}

.deep-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px 6px;
}

.deep-head > span {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.deep-head h3 {
  font-size: 17px;
}

.deep-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.deep-conclusion {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin: 10px 16px 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: #344054;
  line-height: 1.65;
}

.deep-conclusion b {
  color: var(--green);
}

.deep-metric-grid,
.signal-grid,
.feature-grid,
.backtest-grid,
.attribution-grid,
.relation-grid {
  display: grid;
  gap: 10px;
  padding: 0 16px 14px;
}

.deep-metric-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.signal-grid,
.feature-grid,
.backtest-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.attribution-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.relation-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.deep-metric,
.signal-item,
.feature-card,
.attribution-card,
.relation-card,
.relation-node {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 8px;
}

.deep-metric {
  position: relative;
  min-height: 120px;
  padding: 14px 68px 14px 14px;
}

.deep-metric span,
.feature-meta,
.signal-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.deep-metric b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.deep-metric p,
.feature-note,
.feature-subtitle,
.signal-item p,
.signal-item small,
.attribution-card p,
.relation-node p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.small-ring,
.score-ring {
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--score-color) calc(var(--score-value) * 1%), #e9ecf6 0);
  position: relative;
}

.small-ring {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
}

.score-ring {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
}

.small-ring::after,
.score-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: #fff;
  border: 1px solid var(--line);
}

.small-ring span,
.score-ring span {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-weight: 900;
  font-size: 12px;
}

.score-ring span {
  font-size: 14px;
}

.signal-item {
  padding: 14px;
}

.signal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.signal-item h4,
.feature-card h4,
.attribution-card h4,
.relation-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}

.signal-item p,
.signal-item small {
  display: block;
  margin-top: 9px;
}

.feature-card,
.attribution-card {
  padding: 14px;
  min-height: 150px;
}

.feature-card.tone-warn,
.attribution-card.tone-warn,
.relation-node.tone-warn {
  background: #fffbeb;
  border-color: #f2d99c;
}

.feature-card.tone-good,
.attribution-card.tone-good,
.relation-node.tone-good {
  background: #f0fdf4;
  border-color: #b7e4c7;
}

.feature-card.tone-bad,
.attribution-card.tone-bad,
.relation-node.tone-bad {
  background: #fff1f2;
  border-color: #f5b5bd;
}

.feature-meta,
.attr-head,
.relation-card header,
.node-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin: 0 5px 5px 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.metric-chip-row,
.ticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.metric-chip {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.metric-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.metric-chip b {
  color: var(--ink);
  font-size: 12px;
}

.ticker-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.attr-head span,
.relation-card header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.relation-card {
  padding: 14px;
}

.relation-nodes {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.relation-node {
  padding: 10px;
}

.loading-panel {
  padding: 20px;
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head h3 {
  font-size: 15px;
}

.panel-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: top;
  line-height: 1.45;
  color: #243044;
  white-space: normal;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  background: var(--head);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}

tbody tr:hover td {
  background: #eef4ff;
}

.empty {
  padding: 16px;
  color: var(--muted);
}

.analysis-details > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  list-style: none;
}

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

.analysis-details > summary span {
  color: var(--ink);
  font-weight: 900;
}

.analysis-details > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.analysis-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.analysis-body {
  padding: 0 2px 2px;
}

@media (max-width: 960px) {
  .header-inner,
  .module-head,
  .breadth-status-board,
  .breadth-hero {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .card-grid,
  .chart-grid,
  .deep-metric-grid,
  .signal-grid,
  .feature-grid,
  .backtest-grid,
    .attribution-grid,
  .relation-grid,
  .index-grid,
  .quadrant-grid,
  .status-grid,
  .sector-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .breadth-conclusion {
    grid-column: auto;
  }

  .status-grid {
    grid-column: auto;
  }

  .section-kicker {
    display: block;
  }

  .section-kicker small {
    display: block;
    max-width: none;
    margin-top: 8px;
    text-align: left;
  }

  .sector-heatmap {
    overflow-x: auto;
  }

  .heat-table {
    min-width: 900px;
  }

  .combo-chart-frame {
    grid-template-columns: 1fr;
  }

  .sector-guidance {
    grid-template-columns: 1fr;
  }

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

  .diagnosis-section-grid,
  .diagnosis-prompt-list {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 560px) {
  .header-inner,
  .tabs,
  .app-shell {
    width: min(100vw - 24px, 1440px);
  }

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

  .summary-item {
    min-height: 76px;
  }

  .summary-item:last-child {
    grid-column: 1 / -1;
  }

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

  .chart-grid,
  .breadth-tape,
  .index-grid,
  .quadrant-grid,
  .status-grid,
  .sector-card-grid {
    grid-template-columns: 1fr;
  }

  .deep-metric-grid,
  .signal-grid,
  .feature-grid,
  .backtest-grid,
  .attribution-grid,
  .relation-grid {
    grid-template-columns: 1fr;
  }

  .deep-conclusion {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 26px;
  }

  .module-head h2 {
    font-size: 22px;
  }

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

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

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

  .combo-chart svg {
    height: 318px;
  }

  .combo-echart {
    height: 360px;
  }

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

}
