:root {
  --background: #ffffff;
  --surface: #ffffff;
  --ink: #07142d;
  --muted: #596579;
  --faint: #8b95a5;
  --border: #d9dee7;
  --grid: #e6e9ee;
  --positive: #008d50;
  --positive-soft: rgba(0, 141, 80, 0.09);
  --negative: #ef2f39;
  --track: #edf0f3;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; min-height: 100vh; background: var(--background); }
.shell { width: min(100% - 48px, 1480px); margin-inline: auto; }
.site-header { min-height: 64px; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand, .runtime, .gate-label { display: flex; align-items: center; }
.brand { gap: 24px; min-width: 0; }
.brand strong { color: var(--ink); font-size: 21px; line-height: 1; letter-spacing: 0.045em; white-space: nowrap; }
.brand span { color: #3e4a5f; font-size: 17px; white-space: nowrap; }
.runtime { color: #26334a; gap: 11px; font-size: 14px; white-space: nowrap; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--faint); }
.status-dot.active { background: var(--positive); box-shadow: 0 0 0 4px rgba(0, 141, 80, 0.1); }
.runtime-separator { width: 1px; height: 22px; margin-inline: 12px; background: var(--border); }
.dashboard { padding-block: 34px 40px; }
.error-message { margin-bottom: 18px; padding: 10px 13px; border: 1px solid #f2c7c9; border-radius: 5px; color: #a51f28; background: #fff8f8; font-size: 13px; }

.overview { display: grid; grid-template-columns: minmax(340px, 0.86fr) minmax(620px, 1.5fr); align-items: end; gap: 44px; padding: 0 24px 26px; }
.profit-block h1, .panel h2 { margin: 0; color: var(--ink); font-weight: 690; letter-spacing: -0.02em; }
.profit-block h1 { font-size: 17px; line-height: 1.4; }
.profit-value { margin: 10px 0 0; font-size: clamp(48px, 5.2vw, 82px); line-height: 0.98; font-weight: 760; letter-spacing: -0.055em; white-space: nowrap; }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.headline-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.headline-metrics > div { min-width: 0; padding: 2px 24px 4px; border-left: 1px solid var(--border); }
.headline-metrics > div:first-child { border-left: 0; }
.headline-metrics dt { margin-bottom: 14px; color: #26334a; font-size: 15px; line-height: 1.2; }
.headline-metrics dd { margin: 0; color: var(--ink); font-size: clamp(21px, 2.25vw, 31px); line-height: 1.1; font-weight: 680; letter-spacing: -0.025em; white-space: nowrap; }
.execution-note { margin: 0 24px 16px; padding-top: 15px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.5; }
.execution-note strong { color: #26334a; font-weight: 650; }

.panel { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.panel h2 { font-size: 18px; line-height: 1.2; }
.chart-panel { padding: 21px 24px 12px; }
.chart-stage { position: relative; min-height: 355px; margin-top: 13px; }
.chart-stage svg { display: block; width: 100%; height: 355px; overflow: visible; }
.chart-grid { stroke: var(--grid); stroke-width: 1; stroke-dasharray: 4 4; }
.chart-zero { stroke: #8f98a6; stroke-width: 1.2; }
.chart-axis-label { fill: var(--muted); font-family: var(--font); font-size: 13px; }
.chart-value-label { fill: var(--positive); font-family: var(--font); font-size: 14px; font-weight: 650; }
.chart-value-label.negative-label { fill: var(--negative); }
.chart-area { fill: var(--positive-soft); }
.chart-line { fill: none; stroke: var(--positive); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.chart-point { fill: var(--positive); stroke: var(--surface); stroke-width: 2; }
.chart-point.negative-point { fill: var(--negative); }
.loading-text { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--faint); font-size: 14px; }

.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 12px; margin-top: 12px; }
.bottom-grid > * { min-width: 0; }
.daily-panel, .readiness-panel { padding: 20px 24px 18px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-top: 15px; }
table { width: 100%; min-width: 700px; border-collapse: collapse; }
th, td { height: 38px; padding: 7px 14px; border: 1px solid var(--border); text-align: right; font-size: 14px; white-space: nowrap; }
th { color: #26334a; background: #fbfcfd; font-weight: 590; }
th:first-child, td:first-child { text-align: left; }
td { color: var(--ink); }
tbody tr:hover td { background: #fafbfc; }
.empty-cell { height: 170px; color: var(--faint); text-align: center !important; }
.readiness-panel { display: flex; flex-direction: column; }
.execution-quality { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 22px 0 3px; border: 1px solid var(--border); }
.execution-quality div { min-width: 0; padding: 13px 12px; border-left: 1px solid var(--border); }
.execution-quality div:first-child { border-left: 0; }
.execution-quality dt { color: var(--muted); font-size: 12px; line-height: 1.2; }
.execution-quality dd { margin: 7px 0 0; color: var(--ink); font-size: 17px; font-weight: 670; white-space: nowrap; }
.gate { margin-top: 25px; }
.gate + .gate { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.gate-label { justify-content: space-between; gap: 16px; margin-bottom: 10px; color: #26334a; font-size: 14px; }
.gate-label strong { color: var(--ink); font-weight: 560; }
.progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: var(--track); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--positive); transition: width 400ms ease; }
.disclaimer { display: flex; align-items: center; gap: 9px; margin: auto 0 0; padding-top: 24px; border-top: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.disclaimer span { display: inline-grid; width: 18px; height: 18px; place-items: center; flex: 0 0 auto; border: 1px solid var(--muted); border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-weight: 700; }

@media (max-width: 1050px) {
  .overview { grid-template-columns: 1fr; align-items: start; }
  .headline-metrics > div:first-child { padding-left: 0; }
  .bottom-grid { grid-template-columns: 1fr; }
  .readiness-panel { min-height: 340px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1480px); }
  .site-header, .header-inner { min-height: 76px; }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; padding-block: 12px; }
  .brand { gap: 13px; }
  .brand strong { font-size: 17px; }
  .brand span { font-size: 13px; }
  .runtime { gap: 8px; font-size: 12px; }
  .runtime-separator { height: 14px; margin-inline: 5px; }
  .dashboard { padding-block: 25px 28px; }
  .overview { gap: 28px; padding: 0 2px 22px; }
  .profit-block h1 { font-size: 15px; }
  .profit-value { font-size: clamp(45px, 14vw, 64px); }
  .headline-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .headline-metrics > div { padding: 0 15px; }
  .headline-metrics > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .headline-metrics dt { margin-bottom: 9px; font-size: 13px; }
  .headline-metrics dd { font-size: 22px; }
  .execution-note { margin-inline: 2px; }
  .panel h2 { font-size: 17px; }
  .chart-panel, .daily-panel, .readiness-panel { padding: 18px 16px; }
  .chart-stage, .chart-stage svg { height: 270px; min-height: 270px; }
  .chart-value-label { font-size: 12px; }
  .bottom-grid { gap: 10px; margin-top: 10px; }
  .execution-quality { grid-template-columns: 1fr; }
  .execution-quality div { display: flex; align-items: center; justify-content: space-between; border-left: 0; border-top: 1px solid var(--border); }
  .execution-quality div:first-child { border-top: 0; }
  .execution-quality dd { margin: 0; }
  .readiness-panel { min-height: 410px; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span { transition: none; }
}
