:root {
  color-scheme: light;
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-soft: #F7F7F5;
  --line: #ECECEA;
  --line-strong: #E5E7EB;
  --text: #1F2328;
  --muted: #6B7280;
  --blue: #4E6E99;
  --blue-soft: rgba(78, 110, 153, .12);
  --red: #A05252;
  --red-soft: rgba(160, 82, 82, .12);
  --green: #4E6E99;
  --green-soft: rgba(78, 110, 153, .12);
  --amber: #8A9099;
  --amber-soft: rgba(138, 144, 153, .12);
  --gauge-overheat: #7A2E2E;
  --gauge-hot: #A05252;
  --gauge-neutral: #8A9099;
  --gauge-cold: #4E6E99;
  --gauge-overcold: #2C4A6E;
  --gauge-overheat-soft: rgba(122, 46, 46, .12);
  --gauge-hot-soft: rgba(160, 82, 82, .12);
  --gauge-neutral-soft: rgba(138, 144, 153, .12);
  --gauge-cold-soft: rgba(78, 110, 153, .12);
  --gauge-overcold-soft: rgba(44, 74, 110, .12);
  --gauge-track: #E5E7EB;
  --channel-danger: #7A2E2E;
  --channel-danger-soft: rgba(122, 46, 46, .12);
  --channel-watch: #8A743F;
  --channel-watch-soft: rgba(138, 116, 63, .12);
  --channel-safe: #557A63;
  --channel-safe-soft: rgba(85, 122, 99, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --radius: 14px;
  --transition: 150ms ease-out;
}

* { box-sizing: border-box; }
html { font-variant-numeric: tabular-nums; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }

button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

button:hover, button.active { border-color: var(--line-strong); background: var(--surface-soft); color: var(--text); }
button.primary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }

input, select, textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 9px;
  font-weight: 400;
  transition: border-color var(--transition), background-color var(--transition);
}

textarea { min-height: 76px; resize: vertical; }
canvas { display: block; width: 100%; height: 260px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.code-chip {
  display: inline-flex;
  align-items: center;
  width: auto;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

h1 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; }
h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
h3 { margin: 0; font-size: 14px; line-height: 1.35; font-weight: 600; }
.subtitle, .muted, .footer { color: var(--muted); font-size: 13px; }

.top-status { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.status-copy { display: contents; }
.mobile-updated-text, .mobile-group-title { display: none; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}
.badge.hot { color: var(--gauge-overheat); background: var(--gauge-overheat-soft); border-color: var(--gauge-overheat-soft); }
.badge.warm { color: var(--gauge-hot); background: var(--gauge-hot-soft); border-color: var(--gauge-hot-soft); }
.badge.calm, .badge.info { color: var(--gauge-cold); background: var(--gauge-cold-soft); border-color: var(--gauge-cold-soft); }

.risk-banner {
  position: sticky;
  top: 67px;
  z-index: 25;
  display: none;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.risk-banner.show { display: block; }
.risk-banner.red, .risk-banner.yellow, .risk-banner.blue { background: var(--surface); color: var(--text); border-color: var(--line); }

.page { width: min(1500px, 100%); margin: 0 auto; padding: 20px 20px 40px; }
.mobile-temperature-strip { display: none; }
.market-columns { display: grid; min-width: 0; }
.market-column { min-width: 0; }
.market-column-divider { align-self: stretch; background: var(--line); }
.market-section-title {
  margin: 0 2px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.onsite-score-panel, .peer-panel, .premium-audit-panel { margin-top: 16px; }
.us-card-stack { display: grid; grid-template-columns: 1fr; gap: 16px; }
.panel, .metric {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 20px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 2px 12px; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dashboard-card { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px; align-items: center; }
.gauge {
  --score: 50;
  --gauge-color: var(--gauge-neutral);
  position: relative;
  display: grid;
  place-items: center;
  width: 145px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
}
.gauge-rings { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-ring { fill: none; stroke-width: 10; }
.gauge-ring.track { stroke: var(--gauge-track); }
.gauge-ring.value { stroke: var(--gauge-color); stroke-dasharray: var(--score) calc(100 - var(--score)); stroke-linecap: round; transition: stroke 300ms ease-out; }
.gauge-inner { position: relative; z-index: 1; text-align: center; }
.score-number { font-size: 38px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; transition: color 300ms ease-out; }
.score-label { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 500; transition: color 300ms ease-out; }
.badge.gauge-temperature { font-weight: 500; }
.score-copy { min-width: 0; }
.score-summary { font-size: 15px; line-height: 1.55; word-break: normal; overflow-wrap: break-word; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { min-height: 168px; padding: 20px; overflow: hidden; }
.metric-label { color: var(--muted); font-size: 12px; line-height: 1.25; }
.metric-value { margin-top: 10px; font-size: 30px; line-height: 1.05; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-unit { margin-left: .12em; color: var(--muted); font-size: 55%; font-weight: 500; }
.metric-sub { margin-top: 8px; min-height: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; font-variant-numeric: tabular-nums; word-break: normal; overflow-wrap: break-word; }
.metric-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
  letter-spacing: .01em;
  word-break: normal;
  overflow-wrap: break-word;
}
.metric-note p { margin: 0; }
.metric-note p + p { margin-top: 6px; }
.vix-chart-note p { overflow: visible; text-overflow: clip; white-space: normal; word-break: normal; }
.note-heading + .note-direction { margin-top: 6px; }
.note-direction + .note-direction { margin-top: 6px; }
.note-direction-label { white-space: nowrap; }
.threshold-line { letter-spacing: 0; }
.threshold-line.threshold-dense { font-size: .95em; }
.threshold-separator { font-size: .85em; letter-spacing: 0; white-space: pre; }
.threshold-tail { display: inline-block; max-width: 100%; white-space: nowrap; }
.metric-note,
.metric-sub,
.metric-alert,
.score-summary,
.sentence,
.callout,
.holding-footnote,
.footer,
.source-item span,
.channel-status span,
.announcement-empty {
  text-align: left;
  text-align-last: auto;
}
.no-break-unit {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.no-break-unit.allow-break { white-space: normal; overflow-wrap: anywhere; }
.formula-unit { display: inline; font-variant-numeric: tabular-nums; }
.formula-segment { display: inline-block; max-width: 100%; white-space: nowrap; }
.metric-alert { display: none; margin-top: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); color: var(--muted); font-size: 13px; line-height: 1.45; }
.metric-alert.show { display: block; }
.up { color: var(--red) !important; }
.down { color: var(--green) !important; }
.flat { color: var(--text) !important; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.stack { display: grid; gap: 16px; }
.chart-box { position: relative; height: 280px; overflow: hidden; }
.chart-box canvas { position: relative; z-index: 1; height: 100%; touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.chart-interaction-layer { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.chart-crosshair {
  position: absolute;
  left: 0;
  display: none;
  width: 0;
  border-left: 1px dashed var(--muted);
  transform: translate3d(0,0,0);
  will-change: transform;
}
.chart-hover-dot {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  width: 8px;
  height: 8px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--surface);
  transform: translate3d(0,0,0);
  will-change: transform;
}
.chart-tooltip {
  position: absolute;
  left: 0;
  top: 0;
  display: none;
  max-width: calc(100% - 12px);
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
  transform: translate3d(0,0,0);
  transition: none;
  will-change: transform;
}
.chart-interaction-layer.show .chart-crosshair,
.chart-interaction-layer.show .chart-tooltip,
.chart-hover-dot.show { display: block; }
.chart-tooltip-date { margin-bottom: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-tooltip-value { display: grid; grid-template-columns: 8px minmax(0, 1fr) max-content; align-items: center; gap: 5px; white-space: nowrap; }
.chart-tooltip-value i { width: 7px; height: 7px; border-radius: 50%; }
.chart-tooltip-value strong { min-width: max-content; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.legend-dot { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; }

.segmented { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.segmented button { min-width: 48px; min-height: 30px; border: 0; background: transparent; padding: 0 8px; }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.sentence {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
.split-summary { display: grid; gap: 7px; height: auto; max-width: none; }
.split-summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; width: 100%; }
.split-summary-label { min-width: 0; color: var(--text); }
.split-summary-value { margin-left: auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.subscription-channel { display: grid; gap: 16px; }
.channel-grid { margin-top: 0; }
.channel-status-panel .panel-header { margin-bottom: 12px; }
.channel-status {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
}
.channel-status strong { font-size: 15px; font-weight: 600; }
.channel-status span { color: var(--muted); }
.channel-status.channel-danger { border-color: var(--channel-danger); background: var(--channel-danger-soft); }
.channel-status.channel-watch { border-color: var(--channel-watch); background: var(--channel-watch-soft); }
.channel-status.channel-safe { border-color: var(--channel-safe); background: var(--channel-safe-soft); }
.channel-status-badge.channel-danger { color: var(--channel-danger); border-color: var(--channel-danger-soft); background: var(--channel-danger-soft); }
.channel-status-badge.channel-watch { color: var(--channel-watch); border-color: var(--channel-watch-soft); background: var(--channel-watch-soft); }
.channel-status-badge.channel-safe { color: var(--channel-safe); border-color: var(--channel-safe-soft); background: var(--channel-safe-soft); }
.channel-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.channel-stat-grid > div { min-width: 0; padding: 12px; background: var(--surface); }
.channel-stat-grid span { display: block; color: var(--muted); font-size: 12px; }
.channel-stat-grid strong { display: block; margin-top: 6px; font-size: 20px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.channel-chart-box { height: 220px; margin-top: 14px; }
.channel-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 12px; }
.channel-inline-form button, .channel-limit-form button { min-height: 36px; }
.channel-limit-form { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(150px, 1.2fr) auto; align-items: end; gap: 10px; }
.channel-table-wrap { margin-top: 14px; }
.channel-table { min-width: 0; }
.channel-table th, .channel-table td { height: 42px; padding: 8px 10px; }
.channel-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.channel-links a { color: var(--muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.announcement-list { display: grid; border-top: 1px solid var(--line); }
.announcement-item { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: baseline; min-height: 46px; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.announcement-item span { color: var(--muted); font-size: 12px; }
.announcement-item strong { min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.55; }
.announcement-item:hover { background: var(--surface-soft); }
.announcement-item.trigger strong { color: var(--channel-danger); }
.announcement-item.watch strong { color: var(--channel-watch); }
.announcement-empty { padding: 14px 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.trend-line, .trend-scenario, .trend-dynamic { margin: 0; }
.trend-line, .trend-scenario { white-space: nowrap; }
.trend-dynamic { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
#trendCompareText p + p { margin-top: 6px; }
#trendCompareText { overflow-x: auto; line-height: 1.75; }

.pressure-list { display: grid; gap: 0; }
.pressure-row { display: grid; grid-template-columns: 90px 1fr 88px; align-items: center; gap: 10px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pressure-row:last-child { border-bottom: 0; }
.pressure-row strong { text-align: right; font-variant-numeric: tabular-nums; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.premium-audit-table { min-width: 900px; }
.trend-compare-table { width: calc(100% - 4px); min-width: 0; table-layout: fixed; }
.trend-compare-table th:first-child, .trend-compare-table td:first-child { width: 31%; }
.trend-compare-table th:not(:first-child), .trend-compare-table td:not(:first-child) { width: 23%; padding-right: 8px; padding-left: 8px; }
th, td { height: 48px; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, .text-left { text-align: left; }
th { background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; }
tbody tr { transition: background-color var(--transition); }
tbody tr:hover { background: var(--surface-soft); }
tr:last-child td { border-bottom: 0; }
tfoot td { background: var(--surface); font-weight: 600; }
.holding-table th:last-child { width: 30%; }
.holding-footnote { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.6; }
.cache-label { margin-left: 4px; color: var(--muted); font-size: 10px; font-weight: 400; vertical-align: baseline; }
.mini-input { width: 72px; min-height: 30px; padding: 4px 6px; text-align: right; }


.status-value { font-size: 30px; font-weight: 600; line-height: 1.2; }
.source-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.source-item { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: background-color var(--transition); }
.source-item:hover { background: var(--surface-soft); }
.source-item strong { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 600; }
.source-item span { color: var(--muted); font-size: 13px; line-height: 1.45; }

details.panel { padding: 0; }
details.panel > summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; transition: background-color var(--transition); }
details.panel > summary:hover { background: var(--surface-soft); }
details.panel > summary::-webkit-details-marker { display: none; }
.settings-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.field { display: grid; gap: 5px; }
.field label { color: var(--muted); font-size: 12px; line-height: 1.35; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.callout { padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: 13px; line-height: 1.55; }
.callout.warn { background: var(--surface-soft); color: var(--muted); border-color: var(--line); }
.footer { margin: 18px 2px 0; line-height: 1.6; }
.hidden { display: none !important; }

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .market-columns {
    grid-template-columns: minmax(0, 1.63fr) 1px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }
  .onsite-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onsite-split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-breakdown-panel { grid-column: 1 / -1; }
  .onsite-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arbitrage-panel { grid-column: 1 / -1; }
  .us-column .dashboard-card { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; }
  .us-column .gauge { width: 118px; }
  .us-column .score-number { font-size: 33px; }
}

@media (max-width: 1023px) {
  .topbar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 12px 14px;
  }
  .identity { align-items: flex-start; gap: 8px; min-width: 0; }
  .identity > div:last-child { min-width: 0; }
  .code-chip {
    height: auto;
    padding: 2px 6px;
    border: 0;
    border-radius: 6px;
    background: #F0F0EE;
    font-size: 11px;
    line-height: 1.35;
  }
  .identity h1 { font-size: 17px; line-height: 1; font-weight: 600; }
  .identity .subtitle { margin-top: 1px; font-size: 12px; line-height: 1; }
  .top-status {
    width: 100%;
    min-width: 0;
    min-height: 28px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }
  .status-copy {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }
  #sourceBadge, #updatedText { display: none; }
  #marketBadge { min-height: 24px; padding: 0 7px; font-size: 11px; background: var(--surface); }
  .mobile-updated-text {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-updated-text.error { color: var(--red); }
  #refreshButton {
    position: relative;
    flex: 0 0 auto;
    height: 28px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 13px;
    background: var(--surface);
  }
  #refreshButton::before { position: absolute; content: ""; inset: -8px 0; }
  .page { padding-top: 16px; }
  .market-section-title { margin-bottom: 12px; color: var(--text); font-size: 16px; font-weight: 600; }
  .desktop-group-title { display: none; }
  .mobile-group-title { display: inline; }
  .us-market-subtitle { display: none; }
  .us-column .us-card-stack { margin-top: 16px; }
  .mobile-temperature-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .mobile-temperature-strip a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 46px;
    padding: 6px 10px;
    color: var(--text);
    text-decoration: none;
    transition: background-color var(--transition);
  }
  .mobile-temperature-strip a:hover { background: var(--surface-soft); }
  .mobile-temperature-strip strong { font-size: 18px; font-weight: 600; }
  .mobile-temperature-strip .badge { min-height: 24px; padding: 0 7px; }
  .temperature-strip-divider { width: 1px; height: 26px; background: var(--line); }
  .market-columns { display: block; }
  .market-column-divider { display: none; }
  .market-column { scroll-margin-top: 84px; }
  .us-column { margin-top: 32px; }
  .onsite-core-grid, .onsite-split-grid, .onsite-status-grid { grid-template-columns: 1fr; }
  .split-breakdown-panel, .arbitrage-panel { grid-column: auto; }
}

@media (max-width: 560px) {
  .channel-stat-grid { grid-template-columns: 1fr; }
  .channel-stat-grid > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .channel-stat-grid strong { margin-top: 0; font-size: 18px; }
  .channel-inline-form, .channel-limit-form { grid-template-columns: 1fr; }
  .channel-inline-form button, .channel-limit-form button { min-height: 44px; }
  .announcement-item { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 760px) {
  .topbar { position: static; align-items: flex-start; flex-direction: column; padding: 12px 14px; }
  .top-status { justify-content: space-between; }
  .risk-banner { top: 0; padding: 10px 12px; }
  .page { padding: 16px 12px 32px; }
  .dashboard-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dashboard-card { grid-template-columns: 118px minmax(0,1fr); gap: 12px; }
  .gauge { width: 118px; }
  .score-number { font-size: 33px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: auto; padding: 18px; }
  .settings-grid { grid-template-columns: 1fr 1fr; }
  .source-list { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; }
  .pressure-row { grid-template-columns: 82px 1fr 80px; }
  .chart-box { height: 280px; }
}

@media (max-width: 420px) {
  .dashboard-card { grid-template-columns: 1fr; justify-items: center; }
  .score-copy { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  h1 { font-size: 17px; }
  .metric-value { font-size: 30px; }
  .trend-compare-table { font-size: 11px; }
  .trend-compare-table th:first-child, .trend-compare-table td:first-child,
  .trend-compare-table th:not(:first-child), .trend-compare-table td:not(:first-child) { width: 25%; }
  .trend-compare-table th:not(:first-child), .trend-compare-table td:not(:first-child) { padding-right: 2px; padding-left: 2px; }
}
