:root {
  --navy-950: #052d58;
  --navy-900: #082f59;
  --navy-800: #0b3f72;
  --navy-700: #165789;
  --teal-600: #17689c;
  --teal-500: #6fa8ce;
  --teal-100: #e9f3fa;
  --blue-100: #eef5fa;
  --ink-900: #183552;
  --ink-700: #45627c;
  --ink-500: #7990a4;
  --line: #d9e5ee;
  --line-soft: #e9f0f5;
  --surface: #ffffff;
  --surface-soft: #f4f8fc;
  --surface-blue: #eaf3f9;
  --canvas: #f5f8fb;
  --content-max: 1720px;
  --positive: #d94c55;
  --negative: #2b8b70;
  --amber: #e9aa24;
  --shadow: 0 12px 30px rgba(31, 65, 94, 0.07);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink-900);
  background: #ffffff;
  font-family: Arial, "STKaiti", "KaiTi", "FangSong", "Noto Serif SC", serif;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-rule {
  height: 8px;
  background: #dedede;
  border-top: 1px solid #c7c7c7;
  border-bottom: 1px solid #c9c9c9;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 80px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(30, 63, 91, .07);
  backdrop-filter: blur(12px);
}

.topbar__inner {
  display: grid;
  grid-template-columns: minmax(470px, auto) 1fr auto;
  width: min(var(--content-max), calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
}

.topbar__brand,
.topbar__nav,
.topbar__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.topbar__brand {
  gap: 14px;
  padding: 0;
}

.brand-mark {
  display: block;
  width: 49px;
  height: 49px;
  object-fit: cover;
}

.brand-copy { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.brand-copy strong { color: #111; font-size: 1.55rem; font-weight: 700; letter-spacing: .04em; }
.brand-copy small { color: #1d5a91; font-family: Arial, sans-serif; font-size: .66rem; font-weight: 700; letter-spacing: .16em; }

.topbar__nav { align-self: stretch; gap: 4px; justify-content: flex-start; padding: 0 14px; }
.topbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: #6f8397;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.topbar__nav a:hover { color: var(--navy-900); background: #f3f7fa; }
.topbar__nav a.is-active { color: var(--navy-800); background: #eaf3f9; border-color: #d6e5f0; box-shadow: 0 3px 8px rgba(28, 78, 117, .08); }

.topbar__meta { gap: 12px; padding: 0 0 0 10px; font-family: "Microsoft YaHei", sans-serif; font-size: .75rem; }
.sync-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.sync-copy strong { display: flex; align-items: center; gap: 5px; color: var(--navy-900); font-size: .73rem; }
.sync-copy small { color: #899aaa; font-size: .6rem; }
.sync-copy i,
.dashboard-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39a17c;
  box-shadow: 0 0 0 3px rgba(57, 161, 124, .12);
}
.period { color: var(--ink-700); font-weight: 600; white-space: nowrap; }

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 13px;
  color: var(--navy-900);
  cursor: pointer;
  background: #fff;
  border: 1px solid #c8d7e4;
  border-radius: 7px;
  font-size: .72rem;
  font-weight: 700;
  transition: background .2s, border-color .2s;
}
.refresh-button:hover { background: #edf5fa; border-color: #8db2cf; }
.refresh-button:disabled { cursor: wait; opacity: .65; }
.refresh-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.is-spinning svg { animation: spin 1s linear infinite; }

.auto-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 0; color: var(--navy-900); cursor: pointer; background: transparent; border: 0; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.auto-toggle i { position: relative; display: block; width: 33px; height: 19px; background: #b9c7d4; border-radius: 12px; transition: background .2s; }
.auto-toggle i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; content: ""; background: #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(34, 55, 74, .25); transition: transform .2s; }
.auto-toggle.is-active i { background: #5e91b8; }
.auto-toggle.is-active i::after { transform: translateX(14px); }

.dashboard-shell { width: min(var(--content-max), calc(100% - 48px)); margin: 0 auto; padding: 34px 0 54px; }

.context-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; padding: 0 4px; }
.context-row__eyebrow,
.section-index {
  display: block;
  width: fit-content;
  margin-bottom: 7px;
  padding: 4px 8px 3px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .13em;
  font-family: Arial, sans-serif;
}
.context-row h1 { margin: 0; color: #111; font-size: 1.9rem; font-weight: 700; letter-spacing: .04em; }
.context-row__update { display: flex; align-items: baseline; gap: 10px; color: var(--ink-500); font-size: .75rem; }
.context-row__update strong { color: var(--ink-700); font-weight: 500; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1.05fr) minmax(390px, 1fr); align-items: stretch; gap: 18px; }
.overview-panel,
.industry-ranking-panel,
.sector-signal-panel { display: flex; min-height: 0; flex-direction: column; overflow: hidden; }

.panel {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid #d3e1eb;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(31, 65, 94, .08);
}

.panel::before {
  display: none;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px 13px;
  background: linear-gradient(90deg, #fff 0%, #fff 82%, #f1f7fb 100%);
  border-bottom: 2px solid var(--navy-800);
}
.panel__header--compact { padding: 14px 20px 11px; }
.panel__kicker { display: block; margin-bottom: 4px; color: var(--teal-600); font-size: .82rem; font-weight: 700; letter-spacing: .06em; }
.panel__header h3 { position: relative; margin: 0; padding-left: 12px; color: #111; font-size: 1.12rem; font-weight: 700; }
.panel__header h3::before,
.analysis-column-header h3::before,
.chart-card__header h3::before { position: absolute; top: 50%; left: 0; width: 4px; height: 20px; content: ""; background: var(--navy-700); border-radius: 3px; transform: translateY(-50%); }
.panel__period,
.legend-note,
.unit,
.data-source { color: #3f3f3f; font-size: .78rem; white-space: nowrap; }

.kpi-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: #fbfdff; border-bottom: 1px solid var(--line-soft); }
.kpi { position: relative; min-height: 112px; padding: 20px 22px 17px; }
.kpi:first-child { color: var(--ink-900); background: #eef5fa; box-shadow: inset 4px 0 0 #6fa8ce; }
.kpi:first-child span { color: var(--navy-800); }
.kpi:first-child strong { color: var(--positive); }
.kpi:first-child small,
.kpi:first-child small.positive { color: var(--positive); }
.kpi:first-child small.negative { color: var(--negative); }
.kpi + .kpi { border-left: 1px solid var(--line-soft); }
.kpi span { display: block; color: var(--navy-800); font-size: .86rem; font-weight: 700; }
.kpi strong { display: inline-block; margin: 7px 7px 4px 0; color: var(--navy-900); font-family: "Segoe UI", Arial, sans-serif; font-size: 1.82rem; font-weight: 700; letter-spacing: -.02em; }
.kpi--primary strong { color: var(--positive); }
.kpi small { color: #3f3f3f; font-size: .76rem; }
.kpi small.positive { color: var(--positive); }
.kpi small.negative { color: var(--negative); }

.research-notes { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, minmax(0, 1fr)); flex: 1 1 auto; gap: 8px; padding: 14px 18px 18px; }
.research-note { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 10px; min-height: 68px; align-items: start; padding: 10px 12px; color: #111; font-size: .88rem; font-weight: 400; line-height: 1.58; background: #f5f9fc; border: 1px solid #e1ebf2; border-left: 3px solid #74a9cd; border-radius: 4px; }
.research-note:nth-child(2n) { background: #f8fafc; border-left-color: #9bb7cc; }
.research-note__index { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; color: #fff; background: var(--navy-700); border-radius: 3px; font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; }
.research-note p { margin: 0; color: #111; font-weight: 400; }
.research-note b,
.research-note strong,
.research-note strong.positive,
.research-note strong.negative { margin: 0 2px; color: #111; font-family: inherit; font-size: inherit; font-weight: 400; }
.research-note .research-note__lead { margin: 0; color: #111; font-family: inherit; font-size: inherit; font-weight: 700; }

.industry-rankings { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); flex: 1 1 auto; gap: 9px; padding: 14px; }
.ranking-card { display: flex; overflow: hidden; flex-direction: column; background: #fff; border: 1px solid #dbe6ee; border-top: 3px solid var(--navy-800); border-radius: 5px; }
.ranking-card header { display: flex; min-height: 34px; align-items: center; gap: 8px; padding: 6px 9px; background: #fff; border-bottom: 1px solid #e1e9ef; }
.ranking-card header span { display: inline-flex; width: 24px; height: 22px; align-items: center; justify-content: center; color: #fff; background: var(--navy-700); border-radius: 3px; font-family: Arial, sans-serif; font-size: .64rem; font-weight: 700; }
.ranking-card h4 { margin: 0; color: #111; font-size: .82rem; font-weight: 700; }
.ranking-card ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 auto; gap: 6px; margin: 0; padding: 7px 9px 8px; list-style: none; }
.ranking-card li { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 4px 7px; background: #f3f6f9; border: 0; border-radius: 3px; font-size: .72rem; line-height: 1.35; }
.ranking-card li span { overflow: hidden; color: #29445c; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ranking-card li b { color: #263f54; font-family: Arial, sans-serif; font-size: .7rem; white-space: nowrap; }
.ranking-card li b.positive { color: var(--positive); }
.ranking-card li b.negative { color: var(--negative); }
.ranking-card--rising { border-top-color: #788b9b; }
.ranking-card--pull { border-top-color: #6fa8ce; }
.ranking-card--low { border-top-color: #a8b5bf; }
.ranking-card--rising header span,
.ranking-card--pull header span,
.ranking-card--low header span { background: var(--navy-700); }

.sector-signals { display: grid; grid-template-rows: repeat(6, minmax(0, 1fr)); flex: 1 1 auto; gap: 8px; padding: 13px 14px 14px; background: #fff; }
.sector-signal-row { display: grid; min-height: 72px; grid-template-columns: minmax(92px, .82fr) minmax(0, 2.18fr); align-items: stretch; gap: 9px; padding: 8px 9px; background: #fff; border: 1px solid #dde7ee; border-left: 3px solid #7898af; border-radius: 5px; }
.sector-signal-row__name { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding-left: 3px; }
.sector-signal-row__name strong { color: #111; font-size: .82rem; line-height: 1.35; }
.sector-signal-row__name small { margin-top: 4px; color: #718698; font-family: Arial, sans-serif; font-size: .64rem; }
.sector-signal-row__stats { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.signal-stat { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; padding: 5px 3px; background: #fff7e8; border: 1px solid #edd9b5; border-radius: 4px; }
.signal-stat b { color: #b66a00; font-family: Arial, sans-serif; font-size: 1rem; line-height: 1; }
.signal-stat small { margin-top: 5px; color: #9a651e; font-size: .63rem; font-weight: 700; white-space: nowrap; }
.signal-stat--rising { background: #edf7f2; border-color: #cfe5da; }
.signal-stat--rising b { color: #087451; }
.signal-stat--rising small { color: #397560; }
.signal-stat--negative { background: #fdf0f1; border-color: #f0d1d4; }
.signal-stat--negative b { color: #c52632; }
.signal-stat--negative small { color: #b34249; }

.industry-observations { display: grid; gap: 9px; padding: 16px 18px 12px; }
.observation { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; min-height: 77px; padding: 12px 13px; background: #f5f9fc; border: 1px solid #e1ebf2; border-radius: 5px; }
.observation:nth-child(2) { background: #faf9f4; }
.observation:nth-child(3) { background: #fbf6f6; }
.observation__tag { align-self: start; padding: 4px 6px; color: var(--teal-600); font-size: .76rem; font-weight: 700; text-align: center; background: var(--teal-100); border: 1px solid #c6ddea; border-radius: 3px; }
.observation:nth-child(2) .observation__tag { color: #88621d; background: #fff4d9; border-color: #f1dba8; }
.observation:nth-child(3) .observation__tag { color: #9b4b41; background: #fbe9e6; border-color: #efc7c1; }
.observation h4 { margin: 0 0 4px; color: #111; font-size: .94rem; font-weight: 700; }
.observation p { margin: 0; color: #29445c; font-size: .83rem; line-height: 1.58; }

.mini-bars { display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; min-height: 102px; margin: 0 18px 18px; padding: 11px 12px 7px; background: #edf4f9; border: 1px solid #dce8f0; }
.mini-bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; height: 80px; }
.mini-bar strong { margin-bottom: 2px; color: var(--navy-700); font-family: "Segoe UI", Arial, sans-serif; font-size: .65rem; }
.mini-bar i { display: block; width: 56%; min-height: 3px; background: linear-gradient(180deg, #73acd0, #175b91); border-radius: 1px 1px 0 0; }
.mini-bar span { width: 100%; margin-top: 4px; overflow: hidden; color: var(--ink-500); font-size: .59rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; }

.section-block { margin-top: 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; padding: 0 4px 11px; border-bottom: 2px solid #d9e7f0; }
.section-heading h2 { margin: 0; color: #111; font-size: 1.62rem; font-weight: 700; letter-spacing: .03em; }
.section-heading p { margin: 0 0 2px; color: var(--ink-700); font-size: .86rem; }

.framework-workspace {
  display: grid;
  grid-template-columns: minmax(680px, 1.04fr) minmax(650px, .96fr);
  align-items: start;
  gap: 18px;
}
.framework-left-column { display: flex; min-width: 0; flex-direction: column; gap: 18px; }
.framework-panel { min-height: 0; overflow: hidden; }
.industry-map-titlebar { display: flex; min-width: 0; align-items: center; gap: 12px; }
.industry-total-header-slot { display: flex; align-items: center; }
.industry-total-header-node { width: auto; min-width: 124px; min-height: 30px; padding: 5px 12px; border-radius: 4px; }
.industry-total-header-node strong { font-size: .72rem; white-space: nowrap; }
.selected-analysis-column { display: grid; min-width: 0; align-content: start; gap: 14px; }
.industry-detail-heading { position: relative; padding: 8px 4px 11px 15px; border-bottom: 2px solid #d9e7f0; }
.industry-detail-heading::before { position: absolute; top: 8px; bottom: 12px; left: 0; width: 5px; content: ""; background: var(--navy-700); border-radius: 3px; }
.industry-detail-heading h2 { margin: 0; color: #111; font-size: 1.36rem; letter-spacing: .03em; }
.industry-detail-heading p { margin: 5px 0 0; color: var(--ink-700); font-size: .78rem; }
.selection-counter,
.formula-chip { padding: 5px 8px; color: var(--teal-600); font-size: .76rem; font-weight: 700; background: #edf5fa; border: 1px solid #d2e3ef; border-radius: 4px; white-space: nowrap; }

.chain-filter-bar { display: flex; min-height: 42px; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border-bottom: 1px solid #d9e6ef; }
.chain-filter-bar__label { flex: 0 0 auto; padding: 5px 8px; color: #fff; background: var(--navy-800); border-radius: 3px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.chain-filter-options { display: flex; min-width: 0; flex: 1 1 auto; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chain-filter-options::-webkit-scrollbar { display: none; }
.chain-filter,
.chain-filter-reset { flex: 0 0 auto; min-height: 27px; padding: 4px 8px; color: #405f78; cursor: pointer; background: #f7fafc; border: 1px solid #cfdee9; border-radius: 3px; font-size: .67rem; font-weight: 700; white-space: nowrap; transition: color .16s, background .16s, border-color .16s, opacity .16s; }
.chain-filter:hover,
.chain-filter:focus-visible { color: var(--navy-900); background: #edf5fa; border-color: #75a6c7; outline: none; }
.chain-filter.is-active { color: var(--navy-950); background: #dcecf7; border-color: #4f89b2; box-shadow: inset 2px 0 0 var(--teal-500); }
.chain-filter-reset { color: #60778a; background: #fff; }
.chain-filter-reset:disabled { cursor: default; opacity: .35; }
.chain-filter-reset:not(:disabled):hover { color: var(--navy-900); border-color: #6f9fbe; }

.industry-map { position: relative; display: block; min-height: 0; padding: 10px 12px 8px; overflow: hidden; background: #fff; }
.chain-links,
.chain-link-hits { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.chain-links { z-index: 1; }
.chain-link-hits { z-index: 3; }
.chain-links marker path { fill: #4e7594; }
.chain-links #chain-arrow-focus path { fill: #0b4f84; }
.chain-link { fill: none; stroke: #4e7594; stroke-width: 1.15; opacity: .64; }
.chain-link-hit { fill: none; stroke: rgba(0, 0, 0, .001); stroke-width: 14; pointer-events: stroke; cursor: help; }
.industry-node[data-industry-id="industry-total"] { background: #f2f8fc; border-color: #7aa9c9; box-shadow: inset 3px 0 0 var(--navy-700), 0 2px 6px rgba(38, 83, 117, .08); }
.chain-row { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; min-height: 62px; padding: 8px 6px; border-bottom: 4px solid #fff; }
.chain-row:last-child { border-bottom: 0; }
.chain-row--mining { background: #f7f8f9; }
.chain-row--materials { background: #f2f8fc; }
.chain-row--midstream { background: #fcfaf2; }
.chain-row--downstream { background: #f2f8f4; }
.chain-row--utilities { background: #f7f8f9; }
.chain-stage { position: relative; z-index: 4; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 8px; color: #111; background: rgba(255,255,255,.55); border-left: 3px solid var(--group-color); font-family: Arial, "STKaiti", "KaiTi", "FangSong", "Noto Serif SC", serif; }
.chain-stage strong { color: #111; font-family: inherit; font-size: .68rem; letter-spacing: .04em; }
.chain-stage span { margin: 1px 0; color: #111; font-family: inherit; font-size: .73rem; font-weight: 700; line-height: 1.25; }
.chain-stage small { color: #111; font-family: inherit; font-size: .58rem; }
.chain-content { position: relative; min-width: 0; padding: 3px 4px 13px; }
.chain-linear,
.utilities-flow,
.materials-branch-open,
.materials-aside-open { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 10px; }
.chain-linear--mining,
.materials-main { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 10px; }
.chain-linear--mining .industry-node-wrap { width: min(100%, var(--node-width)); justify-self: center; }
.materials-main-slot { display: flex; min-width: 0; justify-content: center; }
.materials-main-slot .industry-node-wrap { width: min(100%, var(--node-width)); flex: 0 0 auto; }
.materials-main-slot--steel { grid-column: 1; }
.materials-main-slot--nonferrous { grid-column: 2; }
.materials-main-slot--petroleum { grid-column: 3 / span 2; }
.materials-main-slot--nonmetal { grid-column: 5; }
.materials-layout { display: grid; gap: 8px; }
.materials-lower { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; padding-left: clamp(32px, 10%, 74px); }
.materials-branch-open { flex: 0 1 auto; justify-content: flex-end; margin-left: auto; }
.materials-aside-open { flex: 0 0 auto; }
.midstream-grid { display: grid; grid-template-areas: "metal equipment repair transport transport" "electrical equipment paper empty instrument"; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 7px 10px; }
.midstream-slot { display: flex; min-width: 0; align-items: flex-start; justify-content: center; }
.midstream-slot .industry-node-wrap { width: min(100%, var(--node-width)); flex: 0 0 auto; }
.midstream-slot--metal { grid-area: metal; }
.midstream-slot--transport { grid-area: transport; }
.midstream-slot--electrical { grid-area: electrical; }
.midstream-slot--instrument { grid-area: instrument; }
.midstream-slot--paper { grid-area: paper; }
.midstream-slot--repair { grid-area: repair; }
.midstream-grid > .equipment-stack { grid-area: equipment; width: min(100%, 142px); justify-self: center; }
.downstream-open-layout { display: grid; gap: 9px; }
.downstream-open-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: 10px; }
.downstream-chain { display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 7px; }
.downstream-chain .industry-node-wrap { width: min(100%, var(--node-width)); flex: 0 0 auto; }
.downstream-solo-row { display: flex; justify-content: center; padding-top: 2px; }
.utilities-flow { justify-content: space-around; padding-top: 7px; }
.industry-node-wrap { position: relative; z-index: 4; flex: 0 0 var(--node-width); min-width: 0; }
.industry-node-wrap--short { --node-width: 100px; }
.industry-node-wrap--medium { --node-width: 132px; }
.industry-node-wrap--long { --node-width: 162px; }
.industry-node-wrap--xlong { --node-width: 192px; }
.industry-node-stack { display: grid; flex: 0 0 142px; align-self: flex-start; gap: 7px; }
.industry-node-stack .industry-node-wrap { width: 100%; }
.industry-node { position: relative; z-index: 1; display: flex; width: 100%; min-height: 34px; align-items: center; justify-content: center; padding: 6px 8px; color: #111; cursor: pointer; background: rgba(255,255,255,.98); border: 1px solid #c7d9e6; border-radius: 3px; outline: none; box-shadow: 0 2px 5px rgba(38, 83, 117, .04); transition: color .16s, background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.industry-node-wrap--medium .industry-node { min-height: 38px; }
.industry-node-wrap--long .industry-node { min-height: 44px; }
.industry-node-wrap--xlong .industry-node { min-height: 50px; }
.industry-node:hover,
.industry-node:focus-visible { color: #111; border-color: var(--teal-500); transform: translateY(-1px); }
.industry-node.is-selected { color: #111; background: #dcecf7; border-color: #4f89b2; box-shadow: inset 3px 0 0 var(--teal-500), 0 2px 5px rgba(38, 83, 117, .08); }
.industry-node strong { display: -webkit-box; overflow: hidden; color: #111; font-size: .7rem; font-weight: 700; line-height: 1.28; text-align: center; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.industry-node-weight { display: block; height: 11px; margin-top: 2px; padding-right: 3px; color: #60778a; font-family: Arial, sans-serif; font-size: .56rem; line-height: 11px; text-align: right; }
.industry-node-wrap:has(.industry-node.is-selected) .industry-node-weight { color: var(--navy-700); font-weight: 700; }
.industry-node-wrap,
.chain-link { transition: opacity .18s, stroke .18s, stroke-width .18s; }
.industry-map.is-chain-focused .industry-node-wrap { opacity: .18; }
.industry-map.is-chain-focused .industry-node-wrap.is-chain-focus { opacity: 1; }
.industry-node-wrap.is-chain-focus .industry-node { border-color: #2f779f; box-shadow: inset 3px 0 0 var(--teal-500), 0 3px 8px rgba(26, 82, 119, .13); }
.industry-map.is-chain-focused .chain-link { opacity: .07; }
.industry-map.is-chain-focused .chain-link.is-chain-focus { stroke: #0b4f84; stroke-width: 1.45; opacity: 1; }
.industry-map-note { padding: 8px 13px; color: #60778b; background: #f2f7fb; border-top: 1px solid #dce8f0; font-size: .7rem; line-height: 1.4; }

.analysis-column-header { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px 8px; background: linear-gradient(90deg, #fff 0%, #fff 78%, #f1f7fb 100%); border-bottom: 2px solid var(--navy-800); }
.analysis-column-header h3 { position: relative; margin: 0; padding-left: 12px; color: #111; font-size: 1.08rem; }
.selected-analysis-list { display: grid; min-width: 0; gap: 20px; }
.analysis-empty { display: flex; min-height: 230px; flex-direction: column; align-items: center; justify-content: center; padding: 30px; color: var(--ink-700); text-align: center; background: #fbfdff; border-style: dashed; box-shadow: none; }
.analysis-empty strong { color: #111; font-size: 1.05rem; }
.analysis-empty p { max-width: 360px; margin: 9px 0 0; font-size: .84rem; line-height: 1.65; }
.industry-analysis-card { overflow: hidden; border-color: #bdcfdd; border-top: 3px solid var(--navy-700); box-shadow: 0 12px 28px rgba(31, 65, 94, .12); }
.industry-analysis-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 13px 8px; background: #fff; border-bottom: 1px solid #cbdce8; box-shadow: inset 0 -4px 0 #eef5fa; }
.industry-analysis-card__header span { display: block; margin-bottom: 1px; color: var(--teal-600); font-family: Arial, "KaiTi", serif; font-size: .63rem; font-weight: 700; letter-spacing: .04em; }
.industry-analysis-card__header h3 { margin: 0; color: #111; font-size: .98rem; line-height: 1.3; }
.industry-analysis-card__header button { display: grid; flex: 0 0 auto; width: 24px; height: 24px; padding: 0; place-items: center; color: #668198; cursor: pointer; background: #fff; border: 1px solid #cbdce8; border-radius: 50%; font-family: Arial, sans-serif; font-size: .95rem; line-height: 1; }
.industry-analysis-card__header button:hover { color: #fff; background: var(--navy-700); border-color: var(--navy-700); }
.industry-analysis-card__summary { padding: 8px 13px 9px; background: #fbfdff; border-bottom: 1px solid var(--line-soft); }
.industry-analysis-card__summary > p { margin: 0; color: #203d57; font-size: .78rem; font-weight: 600; line-height: 1.5; }
.industry-analysis-card__summary > p strong { font-family: Arial, "KaiTi", serif; }
.analysis-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 0; }
.analysis-metrics > span { min-width: 0; padding: 5px 7px; background: #edf4f9; border-left: 2px solid #7aa9c9; }
.analysis-metrics small { display: block; min-height: 2.4em; color: var(--ink-500); font-size: .61rem; line-height: 1.2; }
.analysis-metric__value { display: flex; min-width: 0; align-items: baseline; gap: 2px; margin-top: 2px; white-space: nowrap; }
.analysis-metrics .analysis-metric__value strong { display: inline; min-width: 0; color: var(--navy-900); font-family: Arial, sans-serif; font-size: .8rem; line-height: 1.2; }
.analysis-metrics .analysis-metric__delta { display: inline; min-height: 0; color: #6f8397; font-family: Arial, sans-serif; font-size: .54rem; font-style: normal; line-height: 1.2; }
.industry-analysis-card__charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.analysis-mini-chart { min-width: 0; padding: 14px 13px 11px; background: #fff; }
.analysis-mini-chart + .analysis-mini-chart { border-left: 1px solid var(--line-soft); }
.analysis-mini-chart header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.analysis-mini-chart h4 { margin: 0; color: #111; font-size: .87rem; }
.analysis-mini-chart header span { color: var(--ink-500); font-size: .67rem; white-space: nowrap; }
.analysis-mini-chart .chart-wrap--analysis { height: 210px; }
.analysis-mini-chart .chart-legend { gap: 5px 10px; font-size: .64rem; }

.logic-panel { display: flex; flex-direction: column; background: #fff; }
.logic-panel > .panel__header { flex: 0 0 auto; }
.logic-diagram { position: relative; display: flex; flex: 1 1 auto; min-height: 530px; flex-direction: column; justify-content: center; padding: 34px 24px 38px; background: linear-gradient(180deg, #fbfdff 0, #f4f8fb 100%); }
.profit-bridge__heading { position: relative; width: 156px; margin: 2px auto 0; padding: 12px 14px; color: #fff; text-align: center; background: var(--navy-900); border-bottom: 4px solid #7cafd0; }
.profit-bridge__heading::after { position: absolute; top: 100%; left: 50%; width: 1px; height: 19px; content: ""; background: #000; }
.profit-bridge__heading span { display: block; color: #eaf3f9; font-size: .72rem; }
.profit-bridge__heading strong { display: block; margin-top: 2px; font-size: 1.05rem; }
.profit-bridge__connector { margin: 16px 0 4px; color: #000; font-family: Arial, sans-serif; font-size: 1rem; font-weight: 700; text-align: center; }
.profit-bridge__formula { display: flex; align-items: stretch; justify-content: center; gap: 8px; padding: 22px 14px; background: #eef5fa; border: 1px solid #d2e2ed; }
.profit-bridge__node { display: flex; flex: 1 1 110px; flex-direction: column; justify-content: center; min-width: 92px; max-width: 150px; min-height: 86px; padding: 12px 8px; color: var(--navy-950); text-align: center; background: #e3eff7; border: 1px solid #9fc2d9; }
.profit-bridge__node:nth-of-type(n+4) { background: #f3f5f7; border-color: #c7cdd2; }
.profit-bridge__node small { color: #333; font-size: .7rem; }
.profit-bridge__node strong { margin-top: 4px; font-size: .9rem; }
.profit-bridge__operator { align-self: center; color: #000; font-family: Arial, sans-serif; font-size: 1.08rem; font-weight: 700; }
.profit-bridge__bands { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; margin-top: 20px; }
.profit-bridge__bands span { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 11px 13px; color: var(--navy-950); font-size: .8rem; font-weight: 700; background: #fff; border: 1px solid #d8e4ed; }
.profit-bridge__bands i { display: block; flex: 0 0 auto; width: 4px; height: 24px; background: var(--navy-700); }
.profit-bridge__bands span:last-child i { background: #777; }
.logic-root { width: 130px; margin: 0 auto 19px; padding: 9px 12px; color: #fff; text-align: center; background: var(--navy-900); border-bottom: 3px solid var(--teal-500); }
.logic-root::after { position: absolute; top: 72px; left: 50%; width: 1px; height: 16px; content: ""; background: #a7bac6; }
.logic-root span { display: block; color: #9fc4cf; font-size: .62rem; }
.logic-root strong { font-size: .88rem; }
.logic-branch { position: relative; margin-top: 12px; padding: 14px 10px 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .88); }
.logic-branch::before { position: absolute; top: -13px; left: 50%; width: 1px; height: 12px; content: ""; background: #a7bac6; }
.logic-label { position: absolute; top: -9px; left: 12px; padding: 1px 6px; color: var(--teal-600); font-size: .62rem; font-weight: 650; background: #fff; }
.logic-branch--growth { display: grid; grid-template-columns: 1fr 24px 1fr; align-items: start; gap: 6px; }
.logic-node { min-width: 0; padding: 7px 5px; text-align: center; background: #f4f7f9; border: 1px solid #d9e3e9; border-radius: 2px; }
.logic-node--main { background: #eaf3f6; border-color: #bdd4de; }
.logic-node small,
.logic-node em { display: block; color: var(--ink-500); font-size: .57rem; font-style: normal; }
.logic-node strong { display: block; margin: 2px 0; color: var(--navy-800); font-size: .7rem; font-weight: 650; }
.logic-operator { align-self: center; color: var(--teal-600); font-family: Georgia, serif; font-size: 1rem; text-align: center; }
.logic-subtree { position: relative; grid-column: 1 / 2; display: grid; grid-template-columns: 1fr 18px 1fr; align-items: center; gap: 3px; margin-top: 8px; }
.logic-subtree::before { position: absolute; top: -9px; left: 50%; width: 1px; height: 8px; content: ""; background: #a7bac6; }
.logic-branch--statement { margin-top: 20px; }
.logic-equation { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; gap: 3px; }

.decomposition-heading { margin-top: 42px; }
.decomposition-layout { display: grid; gap: 18px; }
.snapshot-workspace { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: stretch; gap: 18px; }
.snapshot-workspace > .chart-card { min-width: 0; }
.decomposition-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-card { min-height: 450px; padding: 0 16px 16px; overflow: hidden; }
.chart-card__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -16px; padding: 15px 18px 12px; background: linear-gradient(90deg, #fff 0%, #fff 82%, #f1f7fb 100%); border-bottom: 2px solid var(--navy-800); }
.chart-card__header span:first-child { display: block; margin-bottom: 2px; color: var(--teal-600); font-size: .76rem; font-weight: 700; letter-spacing: .05em; }
.chart-card__header h3 { position: relative; margin: 0; padding-left: 12px; color: #111; font-size: 1.05rem; font-weight: 700; }
.chart-summary { min-height: 44px; margin: 13px 4px 5px; color: #29445c; font-size: .82rem; font-weight: 600; line-height: 1.55; }
.chart-wrap { position: relative; height: 286px; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; }
.chart-wrap canvas.is-interactive-chart { cursor: crosshair; touch-action: pan-y; }
.chart-wrap canvas.is-selectable-chart { cursor: pointer; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; min-height: 24px; margin-top: 4px; color: #000; font-family: Arial, "KaiTi", serif; font-size: .74rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { width: 12px; height: 3px; background: var(--legend); }
.chart-legend i.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.chart-card--snapshot { min-height: 640px; }
.chart-card--snapshot .chart-wrap { height: 500px; overflow: hidden; }
.chart-card--decomposition .chart-wrap { height: 330px; }
.income-statement-formula { display: flex; min-height: 42px; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 7px; margin: 12px 3px 0; padding: 8px 10px; color: #314e67; background: #f1f6fa; border: 1px solid #d5e3ed; border-left: 3px solid var(--navy-700); font-size: .72rem; line-height: 1.4; }
.income-statement-formula strong { color: var(--navy-950); font-size: .78rem; }
.income-statement-formula b { color: #234761; font-weight: 700; }
.income-statement-formula span { color: var(--teal-600); font-family: Arial, sans-serif; font-weight: 700; }
.chart-card--decomposition .chart-summary { min-height: 38px; margin-top: 8px; }
.profit-logic-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.profit-logic-card .chart-card__header { flex: 0 0 auto; margin: 0; }
.profit-logic-card .logic-diagram { min-height: 430px; }

.table-panel { grid-area: table; min-height: 720px; overflow: hidden; }
.table-toolbar { align-items: center; }
.table-actions { display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 5px; width: 148px; height: 29px; padding: 0 8px; color: var(--ink-500); background: #f7f9fa; border: 1px solid var(--line); border-radius: 2px; }
.search-box:focus-within { border-color: var(--teal-500); box-shadow: 0 0 0 2px rgba(26, 167, 162, .1); }
.search-box svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-box input { width: 100%; min-width: 0; padding: 0; color: #000; font-size: .76rem; background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #9aabb6; }

.heat-legend { display: flex; align-items: center; justify-content: flex-end; gap: 3px; padding: 10px 16px 8px; color: var(--ink-500); font-size: .64rem; background: #f3f8fc; }
.heat-legend i { width: 17px; height: 7px; }
.heat-legend span:first-child { margin-right: 5px; }
.heat-legend__strong { margin-left: -2px; }
.heat-1 { background: #d7efec; }
.heat-2 { background: #e8f3f2; }
.heat-3 { background: #f1f3f4; }
.heat-4 { background: #f7e6e1; }
.heat-5 { background: #efc7bf; }

.table-scroll { max-height: 630px; overflow: auto; scrollbar-color: #9fb6c8 #edf2f4; scrollbar-width: thin; }
.data-table { width: 100%; min-width: 810px; border-collapse: separate; border-spacing: 0; color: #000; font-size: .82rem; font-variant-numeric: tabular-nums; }
.data-table th { position: sticky; z-index: 3; top: 0; height: 45px; padding: 7px; color: #fff; font-size: .74rem; font-weight: 700; line-height: 1.35; text-align: right; white-space: nowrap; background: var(--navy-900); border-top: 1px solid var(--navy-900); border-bottom: 1px solid var(--navy-900); }
.data-table th:nth-child(2) { text-align: left; }
.data-table td { height: 41px; padding: 7px; color: #111; text-align: right; white-space: nowrap; border-bottom: 1px solid #e5ebef; transition: background .15s; }
.data-table .industry-group-cell { height: 34px; padding: 6px 12px; color: #111; text-align: left; background: #eaf3f9; border-top: 1px solid #d3e3ee; border-bottom: 1px solid #ccdeea; box-shadow: inset 4px 0 0 var(--navy-700); }
.industry-group-cell span { font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.industry-group-cell small { margin-left: 8px; color: #61788a; font-family: Arial, "STKaiti", "KaiTi", serif; font-size: .65rem; font-weight: 500; }
.industry-group-row[data-group-index="1"] .industry-group-cell,
.industry-group-row[data-group-index="4"] .industry-group-cell { background: #f3f7fa; }
.data-table tbody .industry-group-row:hover td { background: #eaf3f9; }
.data-table tbody .industry-group-row[data-group-index="1"]:hover td,
.data-table tbody .industry-group-row[data-group-index="4"]:hover td { background: #f3f7fa; }
.industry-table-empty td { height: 110px; color: #6f8291; text-align: center; background: #fbfdff; }
.data-table tbody tr:hover td { background: #f6fafb; }
.data-table tbody tr.is-selected td { background: #edf5fa; }
.data-table tbody tr.is-selected td:first-child { box-shadow: inset 3px 0 0 var(--teal-500); }
.data-table td.industry-name { max-width: 156px; overflow: hidden; color: #000; font-weight: 700; text-align: left; text-overflow: ellipsis; }
.data-table .check-cell { width: 31px; padding-right: 3px; padding-left: 7px; text-align: center; }
.data-table input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--teal-600); cursor: pointer; }
.data-table .positive { color: var(--positive); }
.data-table .negative { color: var(--negative); }
.data-table .heat-value { font-weight: 650; border-left: 2px solid #fff; border-right: 2px solid #fff; }
.data-table .heat-level-1 { color: #12786f; background: #d7efec; }
.data-table .heat-level-2 { color: #387d78; background: #e8f3f2; }
.data-table .heat-level-3 { color: #536a77; background: #f1f3f4; }
.data-table .heat-level-4 { color: #b45649; background: #f7e6e1; }
.data-table .heat-level-5 { color: #9e3e32; background: #efc7bf; }
.data-table tbody tr.is-selected .heat-value { filter: saturate(1.08); }

.dashboard-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 52px; padding: 0 max(24px, calc((100vw - var(--content-max)) / 2)); color: #6f879a; background: #edf4f9; border-top: 1px solid #d2e1eb; font-size: .7rem; }
.dashboard-footer span:nth-child(2) { display: flex; align-items: center; gap: 8px; }
.dashboard-footer i { display: inline-block; }

.toast { position: fixed; z-index: 70; right: 22px; bottom: 22px; max-width: 320px; padding: 10px 14px; color: #fff; font-size: .75rem; background: var(--navy-900); border-left: 3px solid var(--teal-500); border-radius: 3px; box-shadow: 0 10px 30px rgba(5, 27, 49, .25); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-left-color: var(--positive); }

.chart-tooltip {
  position: fixed;
  z-index: 120;
  display: block;
  min-width: 190px;
  max-width: min(320px, calc(100vw - 16px));
  padding: 11px 12px 10px;
  color: #fff;
  pointer-events: none;
  background: rgba(5, 45, 88, .96);
  border: 1px solid rgba(151, 199, 229, .72);
  border-radius: 5px;
  box-shadow: 0 10px 28px rgba(5, 31, 57, .24);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .12s, transform .12s;
}
.chart-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.chart-tooltip__title { display: block; color: #fff; font-size: .8rem; line-height: 1.35; }
.chart-tooltip__subtitle { display: block; margin-top: 2px; color: #bcd8e9; font-size: .64rem; line-height: 1.35; }
.chart-tooltip__items { display: grid; gap: 5px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .18); }
.chart-tooltip__item { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 7px; font-family: Arial, "KaiTi", serif; font-size: .7rem; }
.chart-tooltip__item i { width: 7px; height: 7px; background: var(--tooltip-color); border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.chart-tooltip__item span { min-width: 0; color: #eaf3f9; }
.chart-tooltip__item b { color: #fff; font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; }

.loading-overlay { position: fixed; z-index: 60; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--navy-900); background: rgba(255, 255, 255, .9); transition: opacity .25s, visibility .25s; }
.loading-overlay.is-hidden { visibility: hidden; opacity: 0; }
.loading-overlay span { width: 34px; height: 34px; border: 3px solid #d9e5ee; border-top-color: var(--navy-700); border-radius: 50%; animation: spin .9s linear infinite; }
.loading-overlay p { margin: 12px 0 0; font-size: .78rem; letter-spacing: .08em; }

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

@media (max-width: 1380px) {
  .dashboard-shell,
  .topbar__inner { width: min(1280px, calc(100% - 28px)); }
  .topbar__inner { grid-template-columns: minmax(410px, auto) 1fr auto; }
  .brand-copy strong { font-size: 1.25rem; }
  .topbar__nav a { padding: 0 9px; }
  .sync-copy, .period { display: none; }
  .framework-workspace { grid-template-columns: minmax(590px, 1.05fr) minmax(540px, .95fr); }
  .category-group__nodes { grid-template-columns: 1fr; }
  .industry-node { min-height: 34px; }
}

@media (max-width: 1120px) {
  .topbar__inner { grid-template-columns: minmax(390px, 1fr) auto; }
  .topbar__brand { padding: 0; }
  .topbar__nav { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .framework-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .framework-panel { min-height: auto; }
  .category-group__nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snapshot-workspace { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  body { font-size: 15px; }
  .page-rule { height: 5px; }
  .topbar { position: relative; min-height: 64px; }
  .topbar__inner { grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 20px); min-height: 64px; }
  .topbar__brand { gap: 9px; padding: 0 10px; }
  .brand-mark { width: 39px; height: 39px; }
  .brand-copy strong { max-width: 230px; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; }
  .brand-copy small { font-size: .49rem; letter-spacing: .08em; }
  .topbar__meta { gap: 9px; padding: 0 12px; }
  .topbar__meta .period,
  .auto-toggle { display: none; }
  .refresh-button { width: 36px; padding: 0; justify-content: center; font-size: 0; }
  .refresh-button svg { width: 17px; }
  .dashboard-shell { width: calc(100% - 20px); padding-top: 18px; }
  .context-row { align-items: flex-start; }
  .context-row__update { display: none; }
  .context-row h1 { font-size: 1.28rem; }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .panel__header { padding-right: 14px; padding-left: 14px; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .kpi:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); border-left: 0; }
  .kpi { padding: 13px 14px; }
  .research-notes { grid-template-columns: 1fr; padding-right: 14px; padding-left: 14px; }
  .mini-bars { grid-template-columns: repeat(3, 1fr); min-height: 140px; }
  .section-heading { align-items: flex-start; }
  .section-heading p { display: none; }
  .industry-map { padding: 10px; }
  .industry-map-titlebar { flex-wrap: wrap; gap: 8px; }
  .industry-total-header-node { min-width: 116px; }
  .chain-row { grid-template-columns: 1fr; gap: 7px; }
  .chain-stage { min-height: auto; }
  .chain-content { padding-right: 2px; padding-left: 2px; }
  .chain-linear--mining,
  .materials-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials-main-slot--steel,
  .materials-main-slot--nonferrous,
  .materials-main-slot--nonmetal { grid-column: auto; }
  .materials-main-slot--petroleum { grid-column: 1 / span 2; }
  .materials-lower { flex-wrap: wrap; padding-left: 0; }
  .materials-aside-open { margin-left: 0; }
  .midstream-grid { grid-template-areas: "metal electrical" "equipment repair" "equipment paper" "transport instrument"; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .downstream-open-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .utilities-flow { justify-content: space-between; }
  .profit-bridge__formula { flex-wrap: wrap; }
  .profit-bridge__node { flex-basis: 42%; max-width: none; }
  .profit-bridge__bands { grid-template-columns: 1fr; }
  .logic-diagram { padding-right: 10px; padding-left: 10px; }
  .logic-node strong { font-size: .64rem; }
  .industry-analysis-card__charts,
  .decomposition-pair { grid-template-columns: minmax(0, 1fr); }
  .analysis-mini-chart + .analysis-mini-chart { border-top: 1px solid var(--line-soft); border-left: 0; }
  .analysis-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-wrap { height: 270px; }
  .analysis-mini-chart .chart-wrap--analysis { height: 250px; }
  .chart-card--snapshot .chart-wrap { height: 440px; }
  .profit-logic-card .logic-diagram { min-height: 470px; }
  .table-actions { flex-direction: column; align-items: flex-end; }
  .table-scroll { max-height: 500px; }
  .data-table { min-width: 810px; }
  .dashboard-footer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; }
}

@media (max-width: 460px) {
  .brand-copy small { display: block; }
  .logic-equation { grid-template-columns: 1fr 14px 1fr; }
  .logic-equation .logic-operator:nth-of-type(2),
  .logic-equation .logic-node:last-child { display: none; }
}

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