:root {
  color-scheme: dark;
  --bg: #071019;
  --panel: rgba(12, 25, 38, 0.88);
  --panel-2: rgba(17, 34, 49, 0.84);
  --line: rgba(133, 166, 191, 0.16);
  --text: #eef7fb;
  --muted: #8199aa;
  --cyan: #36d7d0;
  --blue: #4f8cff;
  --green: #4fe1a0;
  --red: #ff6b7a;
  --amber: #ffbd66;
  --purple: #9f8cff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-width: 1180px;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 18% -5%, rgba(54, 215, 208, 0.11), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(79, 140, 255, 0.10), transparent 28%),
    linear-gradient(180deg, #071019 0%, #08131d 55%, #071019 100%);
}

button, select, input { font: inherit; }
button, input {
  -webkit-appearance: none;
  appearance: none;
}
input {
  -webkit-border-radius: 0;
}
button, select { color: var(--text); }
button { cursor: pointer; }

.ambient { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .13; pointer-events: none; }
.ambient-a { width: 380px; height: 380px; background: var(--cyan); top: 25%; left: -250px; }
.ambient-b { width: 420px; height: 420px; background: var(--blue); top: 58%; right: -280px; }
.dashboard { width: min(1680px, calc(100% - 52px)); margin: 0 auto; padding: 30px 0 42px; }

.topbar {
  position: relative; display: flex; align-items: flex-start; min-height: 188px;
  margin-bottom: 24px; padding: 0; overflow: visible;
  border: 0; border-radius: 0; background: none; box-shadow: none;
}
.topbar > div:first-child { position: relative; z-index: 2; width: auto; }
.eyebrow { color: var(--cyan); letter-spacing: .18em; font-size: 11px; font-weight: 700; }
h1 { margin: 8px 0 5px; font-size: 30px; letter-spacing: .02em; }
.topbar p, .panel-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.header-actions {
  position: absolute; z-index: 3; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px;
}
.header-mascot {
  position: absolute; z-index: 2; left: clamp(500px, 43vw, 680px); bottom: -2px;
  width: 150px; height: 150px; object-fit: contain; object-position: center bottom;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .28));
  pointer-events: none;
}
.data-status { display: flex; align-items: center; gap: 8px; color: #b8c9d4; font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.upload-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid rgba(54, 215, 208, .42);
  border-radius: 10px; background: rgba(54, 215, 208, .1); color: #cffffc; font-weight: 700; cursor: pointer;
}
.upload-button input { display: none; }

.scope-strip { display: grid; grid-template-columns: 1fr 1fr 1fr 1.45fr; gap: 12px; margin-bottom: 14px; }
.scope-card, .scope-note {
  min-height: 82px; border: 1px solid var(--line); background: rgba(12, 25, 38, .68); border-radius: 13px; padding: 14px 17px;
}
.scope-card { position: relative; overflow: hidden; }
.scope-card::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--cyan); opacity: .8; }
.scope-card.benchmark::after { background: var(--purple); }
.scope-card.all::after { background: var(--blue); }
.scope-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.scope-card strong { font-size: 21px; margin-right: 10px; }
.scope-card small { color: #8da2b1; }
.scope-note { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.scope-note b { color: #c8d7e0; font-size: 12px; font-weight: 600; }

.panel {
  border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, var(--panel), rgba(8, 19, 29, .93));
  box-shadow: var(--shadow); overflow: hidden;
}
.filter-bar { display: flex; align-items: center; gap: 13px; padding: 12px; margin-bottom: 14px; box-shadow: none; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); background: #09141e; border-radius: 9px; }
.segmented button, .metric-switch button, .benchmark-tabs button {
  border: 0; background: transparent; color: var(--muted); border-radius: 7px; padding: 7px 12px; font-size: 12px;
}
.scope-dropdown {
  min-width: 142px;
  border: 0;
  border-radius: 7px;
  padding: 7px 30px 7px 12px;
  background-color: rgba(54, 215, 208, .14);
  color: #d8fffc;
  box-shadow: inset 0 0 0 1px rgba(54, 215, 208, .2);
  font-size: 12px;
  font-weight: 700;
}
.scope-dropdown:not(.active) {
  background-color: transparent;
  color: var(--muted);
  box-shadow: none;
}
.segmented button.active, .metric-switch button.active, .benchmark-tabs button.active {
  background: rgba(54, 215, 208, .14); color: #d8fffc; box-shadow: inset 0 0 0 1px rgba(54, 215, 208, .2);
}
.filter-bar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
select {
  min-width: 122px; border: 1px solid var(--line); background: #0a1621; border-radius: 8px; padding: 8px 28px 8px 10px; outline: none;
}
select:focus { border-color: rgba(54, 215, 208, .55); }
.ghost-button { margin-left: auto; border: 1px solid var(--line); color: #a9bdca; background: transparent; padding: 8px 13px; border-radius: 8px; }

.product-search-panel { margin-bottom: 14px; box-shadow: none; }
.product-search-bar {
  min-height: 70px; display: grid;
  grid-template-columns: 36px 190px minmax(360px, 660px) auto;
  align-items: center; gap: 13px; padding: 12px 17px;
}
.search-icon {
  width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 10px; background: rgba(54, 215, 208, .1); font-size: 17px;
}
.search-copy { min-width: 0; }
.search-copy b { display: block; font-size: 14px; margin-bottom: 4px; }
.search-copy small { color: var(--muted); font-size: 11px; }
.search-input-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; min-width: 0; }
.search-input-wrap input {
  width: 100%; min-width: 0; height: 42px; padding: 11px 14px; color: var(--text); outline: none;
  border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; background: #091620;
}
.search-input-wrap input::-webkit-calendar-picker-indicator { display: none !important; }
.search-input-wrap input::-webkit-contacts-auto-fill-button { display: none !important; }
.search-input-wrap input:focus { border-color: rgba(54, 215, 208, .52); }
.search-input-wrap button {
  height: 42px; padding: 0 22px; border: 1px solid rgba(54, 215, 208, .4); border-radius: 0 9px 9px 0;
  background: rgba(54, 215, 208, .12); color: #d8fffc; font-weight: 700;
}
.search-clear { justify-self: end; padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.product-search-result { display: none; border-top: 1px solid var(--line); }
.product-search-result.show { display: block; }
.search-empty { padding: 24px; color: var(--muted); text-align: center; font-size: 13px; }
.search-result-heading { display: grid; grid-template-columns: .9fr 2.1fr; gap: 24px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-result-heading > div:first-child > span { color: var(--cyan); font-size: 11px; }
.search-result-heading h3 { margin: 5px 0; font-size: 20px; }
.search-result-heading small { color: var(--muted); }
.search-total-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.search-total-grid > div { padding: 10px 12px; border: 1px solid rgba(133, 166, 191, .12); border-radius: 9px; background: rgba(7, 18, 28, .4); }
.search-total-grid span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 6px; }
.search-total-grid b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-channel-table { max-height: 430px; overflow: auto; padding: 8px 20px 16px; }
.search-table-head, .search-table-row { display: grid; grid-template-columns: 1.3fr repeat(6, 1fr); gap: 10px; align-items: center; }
.search-table-head { position: sticky; top: 0; z-index: 2; padding: 10px 8px; color: var(--muted); background: #0a1823; font-size: 11px; }
.search-table-row { min-height: 43px; padding: 7px 8px; border-top: 1px solid rgba(133, 166, 191, .09); font-size: 12px; font-variant-numeric: tabular-nums; }
.search-channel-name { position: relative; padding-bottom: 6px; }
.search-channel-name b { font-size: 12px; }
.search-channel-name i { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }

.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 14px; }
.kpi-card { min-height: 132px; padding: 17px; position: relative; }
.kpi-card::before { content: ""; position: absolute; top: 0; left: 17px; right: 17px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { display: block; margin: 12px 0 5px; font-size: 26px; letter-spacing: -.03em; }
.kpi-sub { color: #8fa5b4; font-size: 11px; }
.kpi-change { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; }
.positive { color: var(--red) !important; }
.negative { color: var(--green) !important; }
.neutral { color: var(--amber) !important; }

.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.one-two { grid-template-columns: 1.65fr 1.35fr; }
.equal { grid-template-columns: 1fr 1fr; }
.panel-heading { min-height: 68px; padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.panel-heading > div:first-child { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.section-index { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; }
.section-icon {
  width: 30px; height: 30px; display: inline-grid; place-items: center;
  border: 1px solid rgba(54, 215, 208, .2); border-radius: 9px;
  background: linear-gradient(145deg, rgba(54, 215, 208, .14), rgba(79, 140, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 5px 15px rgba(0, 0, 0, .16);
  font-size: 16px; line-height: 1;
}
h2 { margin: 0; font-size: 16px; letter-spacing: .02em; }
.panel-caption { color: var(--muted); font-size: 11px; }

.contribution-panel { display: flex; flex-direction: column; }
.contribution-panel .contribution-layout {
  flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 235px;
}
.rings {
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; align-content: center;
  padding: 14px 10px; gap: 7px;
}
.ring-item {
  min-width: 0; text-align: center; padding: 10px 5px 9px;
  border: 1px solid rgba(133, 166, 191, .12); border-radius: 10px;
  background: rgba(7, 18, 28, .34);
}
.ring {
  --p: 50; --c: var(--cyan); width: 76px; height: 76px; margin: 0 auto 7px; border-radius: 50%;
  display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(128, 158, 180, .12) 0);
  position: relative;
}
.ring::after { content: ""; position: absolute; width: 59px; height: 59px; background: #0b1925; border-radius: 50%; }
.ring strong { position: relative; z-index: 1; font-size: 14px; }
.contribution-name { margin-bottom: 8px; color: #c5d6df; font-size: 11px; font-weight: 700; }
.contribution-values { display: grid; gap: 5px; text-align: left; }
.contribution-values span {
  display: flex; justify-content: space-between; align-items: center; gap: 4px;
  padding-top: 5px; border-top: 1px solid rgba(133, 166, 191, .09);
}
.contribution-values i { color: var(--muted); font-size: 8px; font-style: normal; white-space: nowrap; }
.contribution-values b { color: #dceaf0; font-size: 9px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.net-callout {
  border-left: 0; border-top: 1px solid var(--line); padding: 13px 16px;
  display: grid; grid-template-columns: minmax(105px, .65fr) auto 1.65fr;
  align-items: center; gap: 13px; background: rgba(7, 18, 28, .38);
}
.net-callout-title { display: flex; flex-direction: column; gap: 5px; }
.net-callout-title span { color: var(--muted); font-size: 10px; }
.net-callout small { color: var(--muted); }
.net-callout strong { font-size: 26px; margin: 0; white-space: nowrap; }
.net-callout p { color: #9bb0bd; font-size: 12px; line-height: 1.7; margin: 0; }
.insight-list { padding: 15px 18px 18px; }
.insight { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(133, 166, 191, .1); }
.insight:last-child { border: 0; }
.insight-icon { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(54, 215, 208, .1); color: var(--cyan); font-size: 11px; }
.insight b { display: block; font-size: 12px; margin-bottom: 4px; }
.insight p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.health-panel .insight b { font-size: 15px; margin-bottom: 6px; }
.health-panel .insight p { font-size: 13px; line-height: 1.65; }
.efficiency-summary {
  display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center;
  padding: 2px 2px 14px; border-bottom: 1px solid var(--line);
}
.efficiency-summary b { display: block; font-size: 15px; margin-bottom: 4px; }
.efficiency-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.diagnosis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 13px; }
.diagnosis-section {
  min-width: 0; padding: 12px; border: 1px solid rgba(133, 166, 191, .12);
  border-radius: 11px; background: rgba(7, 18, 28, .46);
}
.diagnosis-title { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.diagnosis-title span { font-size: 12px; font-weight: 700; }
.diagnosis-title small { color: var(--muted); font-size: 9px; white-space: nowrap; }
.diagnosis-card { padding: 9px 0; border-top: 1px solid rgba(133, 166, 191, .1); }
.diagnosis-card:first-of-type { border-top: 0; }
.diagnosis-card-head { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; }
.diagnosis-card-head > span, .customer-rank > span {
  width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px;
  background: rgba(54, 215, 208, .09); color: var(--muted); font-size: 9px;
}
.diagnosis-card-head b { font-size: 15px; }
.diagnosis-card-head strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.driver-product { margin: 7px 0 0 24px; min-width: 0; }
.driver-product > span { color: var(--muted); font-size: 9px; }
.driver-product b {
  display: block; margin: 3px 0; color: #c7d8e1; font-size: 10px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.driver-product small { color: #7890a1; font-size: 9px; }
.customer-section { padding-bottom: 9px; }
.customer-rank { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid rgba(133, 166, 191, .1); }
.customer-rank:first-of-type { border-top: 0; }
.customer-rank b { font-size: 14px; }
.customer-rank strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.diagnosis-empty { color: var(--muted); font-size: 10px; padding: 12px 0; }

.benchmark-panel { margin-bottom: 14px; }
.benchmark-heading { align-items: center; }
.benchmark-heading > div:first-child { display: grid; grid-template-columns: auto auto auto; }
.benchmark-heading p { grid-column: 3; }
.benchmark-tabs { display: flex; gap: 5px; }
.benchmark-grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 350px; }
.benchmark-matrix { padding: 20px; border-right: 1px solid var(--line); }
.matrix-head, .matrix-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; align-items: center; }
.matrix-head { color: var(--muted); font-size: 10px; padding: 0 10px 9px; }
.matrix-row { min-height: 50px; padding: 8px 10px; border-top: 1px solid rgba(133, 166, 191, .1); }
.matrix-row .metric-name { font-size: 12px; color: #c9d7df; }
.matrix-value { font-variant-numeric: tabular-nums; font-size: 13px; }
.delta-badge { justify-self: end; padding: 4px 8px; border-radius: 12px; font-size: 10px; background: rgba(255, 107, 122, .1); color: var(--red); }
.delta-badge.down { background: rgba(79, 225, 160, .1); color: var(--green); }
.benchmark-scale { height: 5px; background: rgba(133, 166, 191, .1); border-radius: 10px; overflow: hidden; margin-top: 5px; }
.benchmark-scale i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.scatter-wrap { padding: 20px; }
.chart-title { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 10px; }
.chart-title small { color: var(--muted); }
.svg-chart { min-height: 270px; }
.svg-chart svg { width: 100%; height: 280px; overflow: visible; }
.axis-line { stroke: rgba(133, 166, 191, .17); stroke-width: 1; }
.axis-label { fill: #718a9c; font-size: 9px; }
.bubble-label { fill: #dce9ef; font-size: 10px; font-weight: 600; }

.metric-switch { display: flex; }
.metric-switch button { padding: 6px 8px; }
.ranking-panel, .flow-panel { margin-bottom: 14px; }
.ranking-panel .panel-heading > div:first-child { display: grid; grid-template-columns: auto auto auto; }
.ranking-panel .panel-heading p { grid-column: 3; }
.ranking-chart {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  padding: 16px 18px 20px; min-height: 390px;
}
.ranking-group {
  position: relative; padding: 0 15px 16px; overflow: hidden;
  border: 1px solid rgba(133, 166, 191, .18); border-radius: 13px;
  background: linear-gradient(180deg, rgba(17, 35, 51, .9), rgba(8, 20, 30, .72));
}
.ranking-group::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--cyan);
}
.ranking-group.core::before { background: var(--purple); }
.ranking-group.bank::before { background: var(--blue); }
.ranking-group-title {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin: 0 -15px 10px; padding: 17px 15px 13px;
  border-bottom: 1px solid rgba(133, 166, 191, .13);
  background: rgba(12, 27, 40, .72);
}
.ranking-group-title > div { min-width: 0; }
.ranking-group-title b { display: block; font-size: 15px; margin-bottom: 5px; }
.ranking-group-title small { display: block; color: var(--muted); font-size: 9px; white-space: nowrap; }
.ranking-group-title span { color: var(--muted); font-size: 10px; }
.ranking-group.core .ranking-group-title b { color: var(--purple); }
.ranking-group.satellite .ranking-group-title b { color: var(--cyan); }
.ranking-group.bank .ranking-group-title b { color: var(--blue); }
.ranking-group.core .bar-track i { background: linear-gradient(90deg, #7667d8, var(--purple)); }
.ranking-group.bank .bar-track i { background: linear-gradient(90deg, #346bc8, var(--blue)); }
.flow-chart { padding: 16px 20px 20px; min-height: 390px; max-height: 480px; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; align-content: start; }
.rank-row { display: grid; grid-template-columns: 23px 105px 1fr 88px; align-items: center; gap: 9px; min-height: 36px; cursor: pointer; }
.rank-row:hover, .flow-row:hover { background: rgba(54, 215, 208, .035); }
.rank-no { color: var(--muted); font-size: 10px; }
.rank-name { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 7px; border-radius: 10px; background: rgba(133, 166, 191, .1); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.rank-value { text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; }
.flow-row { display: grid; grid-template-columns: 105px 1fr 76px; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.flow-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 13px; }
.flow-bars .buy { display: flex; justify-content: flex-end; background: rgba(255, 107, 122, .07); border-radius: 7px 0 0 7px; overflow: hidden; }
.flow-bars .sell { background: rgba(79, 225, 160, .07); border-radius: 0 7px 7px 0; overflow: hidden; }
.flow-bars i { display: block; height: 100%; }
.flow-bars .buy i { background: var(--red); }
.flow-bars .sell i { background: var(--green); }
.flow-hover { position: relative; overflow: visible !important; }
.flow-tooltip {
  position: absolute; z-index: 20; left: 50%; bottom: calc(100% + 9px); transform: translate(-50%, 5px);
  min-width: 142px; padding: 8px 10px; border: 1px solid rgba(133, 166, 191, .25);
  border-radius: 8px; background: #102331; box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
  color: var(--muted); font-size: 9px; line-height: 1.4; text-align: left;
  opacity: 0; visibility: hidden; pointer-events: none; transition: .16s ease;
}
.flow-tooltip::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #102331;
}
.flow-tooltip b { display: block; margin-top: 3px; color: #ecf6fa; font-size: 11px; white-space: nowrap; }
.flow-hover:hover .flow-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.drilldown-panel { margin-bottom: 14px; }
.drilldown-panel .panel-heading > div:first-child { display: grid; grid-template-columns: auto auto auto; }
.drilldown-panel .panel-heading p { grid-column: 3; }
.product-lanes { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 270px; }
.product-lane { padding: 18px; border-right: 1px solid var(--line); }
.product-lane:last-child { border: 0; }
.lane-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lane-title b { font-size: 12px; }
.lane-title span { color: var(--muted); font-size: 10px; }
.product-item { padding: 10px 0; border-top: 1px solid rgba(133, 166, 191, .1); }
.product-item:first-of-type { border: 0; }
.product-name { font-size: 11px; line-height: 1.45; min-height: 31px; }
.product-meta { display: flex; justify-content: space-between; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 10px; }
.empty { color: var(--muted); font-size: 12px; padding: 30px; text-align: center; }

footer { display: flex; justify-content: space-between; color: #637c8e; font-size: 10px; padding: 8px 2px 0; }
.toast { position: fixed; right: 28px; bottom: 28px; max-width: 390px; padding: 13px 16px; border-radius: 10px; background: #102433; border: 1px solid rgba(54, 215, 208, .3); box-shadow: var(--shadow); color: #dcecf3; font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255, 107, 122, .45); }

/* 日常经营阅读优化：整体提升一个字号层级 */
.eyebrow { font-size: 13px; }
h1 { font-size: 34px; }
.topbar p { font-size: 15px; }
.data-status, .filter-bar label, .segmented button, .scope-dropdown { font-size: 14px; }
.segmented button, .scope-dropdown { padding-top: 9px; padding-bottom: 9px; }
.panel-heading { min-height: 74px; }
.section-index { font-size: 12px; }
h2 { font-size: 19px; }
.panel-heading p, .panel-caption { font-size: 13px; }
.kpi-label { font-size: 14px; }
.kpi-value { font-size: 30px; }
.kpi-sub, .kpi-change { font-size: 13px; }
.efficiency-summary b { font-size: 17px; }
.efficiency-summary p { font-size: 14px; }
.diagnosis-title span { font-size: 14px; }
.diagnosis-title small { font-size: 11px; }
.diagnosis-card-head b, .diagnosis-card-head strong { font-size: 17px; }
.driver-product > span, .driver-product small { font-size: 11px; }
.driver-product b { font-size: 13px; }
.customer-rank b, .customer-rank strong { font-size: 16px; }
.contribution-name { font-size: 13px; }
.contribution-values i { font-size: 10px; }
.contribution-values b { font-size: 11px; }
.net-callout small { font-size: 13px; }
.net-callout-title span { font-size: 11px; }
.net-callout p { font-size: 13px; }
.metric-switch button, .benchmark-tabs button { font-size: 13px; }
.ranking-group-title b { font-size: 17px; }
.ranking-group-title small, .ranking-group-title span { font-size: 11px; }
.rank-no { font-size: 11px; }
.rank-name, .rank-value { font-size: 13px; }
.matrix-head { font-size: 12px; }
.matrix-row .metric-name, .matrix-value { font-size: 14px; }
.delta-badge { font-size: 12px; }
.chart-title { font-size: 14px; }
.chart-title small { font-size: 12px; }
.lane-title b { font-size: 14px; }
.lane-title span { font-size: 12px; }
.product-name { font-size: 13px; }
.product-meta { font-size: 12px; }
footer { font-size: 12px; }

@media (max-width: 1280px) {
  .dashboard { width: calc(100% - 34px); }
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .scope-strip { grid-template-columns: repeat(3, 1fr); }
  .scope-note { grid-column: 1 / -1; min-height: 54px; }
}
