:root {
  color-scheme: light;
  --page: #f4f6fa;
  --white: #fff;
  --ink: #15233b;
  --muted: #576782;
  --line: #e1e7f0;
  --blue: #214dce;
  --soft-blue: #eaf0fe;
  --radius: 18px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
a { color: inherit; text-underline-offset: .2em; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #587ef0; outline-offset: 3px; }
.frame { width: min(1300px, calc(100% - 72px)); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--white); }
.mast { display: flex; align-items: center; min-height: 68px; gap: 38px; }
.mast a { text-decoration: none; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 780; letter-spacing: -.045em; }
.brand-mark { width: 31px; height: 31px; display: inline-flex; align-items: end; justify-content: center; gap: 3px; padding-bottom: 8px; border-radius: 9px; background: var(--blue); }
.brand-mark i { width: 3px; border-radius: 2px; background: white; height: 6px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:nth-child(3) { height: 16px; }
.mast nav { display: flex; gap: 25px; }
.mast nav a, .lab { font-size: 14px; color: var(--muted); font-weight: 600; }
.mast a:hover, .footer a:hover { color: var(--blue); }
.lab { margin-left: auto; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 49px 0 35px; }
.kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--blue); font-weight: 720; font-size: 14px; letter-spacing: .06em; }
.kicker span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.65rem, 5vw, 3.75rem); font-weight: 800; line-height: 1.15; letter-spacing: -.065em; }
.lead { margin-top: 13px; color: var(--muted); font-size: 17px; }
.freshness { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--white); font-size: 14px; white-space: nowrap; }
.freshness::before { content: ""; border-radius: 50%; width: 7px; height: 7px; background: #426ec7; }
.panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 21px; align-items: start; }
.watchlist { padding: 18px 12px 13px; }
.watch-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 9px; }
.watch-head h2 { font-size: 17px; }
.watch-head span { color: var(--muted); font-size: 14px; }
.product-group { margin: 13px 0 4px; }
.product-group h3 { color: var(--muted); font-size: 14px; font-weight: 600; padding: 0 8px 5px; }
.product { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; align-items: center; text-align: left; gap: 4px 8px; margin: 3px 0; padding: 10px 8px; background: transparent; border: 1px solid transparent; border-radius: 9px; }
.product:hover { background: #f2f5fb; }
.product[aria-pressed="true"] { background: var(--soft-blue); border-color: #d4dfff; }
.product-name { font-weight: 700; font-size: 14px; }
.product-price { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 690; color: var(--blue); white-space: nowrap; }
.product small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.watch-main { min-width: 0; }
.monitor { padding: 25px 27px 18px; }
.monitor-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.monitor-head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); letter-spacing: -.045em; line-height: 1.15; }
.monitor-head .muted { margin-top: 7px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.55; }
.view-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 100%; }
.view-controls select { appearance: none; max-width: 170px; padding: 7px 27px 7px 10px; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) calc(100% - 12px) 50% / 5px 5px no-repeat, linear-gradient(135deg, var(--muted) 50%, transparent 50%) calc(100% - 7px) 50% / 5px 5px no-repeat, white; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); background: #f4f6fa; border-radius: 9px; }
.segmented button { padding: 6px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.segmented button[aria-pressed="true"] { color: var(--blue); background: white; border-color: #dfe6f3; font-weight: 680; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 21px 0 25px; }
.metric { background: #f7f9fc; border: 1px solid #e8edf5; border-radius: 12px; padding: 11px 12px; overflow-wrap: anywhere; }
.metric dt { font-size: 14px; color: var(--muted); }
.metric dd { margin: 4px 0 0; font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 770; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.metric small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.chart-head h3 { font-size: 17px; white-space: nowrap; }
.chart-head small { margin-left: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.series-controls { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: end; }
.series-controls button { display: inline-flex; align-items: center; gap: 5px; padding: 4px 1px; background: transparent; border: 0; color: var(--ink); font-size: 14px; }
.series-controls button[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
.series-dot { width: 9px; height: 9px; display: inline-block; flex: none; border-radius: 50%; background: var(--series-color); }
.series-controls button[aria-pressed="false"] .series-dot { background: #b9c4d4; }
.chart-wrap { position: relative; height: 278px; }
canvas { display: block; width: 100%; height: 100%; border-radius: 6px; touch-action: pan-y; }
.chart-empty { position: absolute; inset: 14px 8px 36px 69px; display: grid; place-content: center; text-align: center; padding: 10px; pointer-events: none; color: var(--muted); background: #ffffffd9; }
.chart-foot { border-top: 1px solid var(--line); padding-top: 10px; }
.daily { margin-top: 8px; }
summary { cursor: pointer; width: fit-content; font-size: 14px; color: var(--blue); font-weight: 650; }
.insights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.insight { padding: 19px 21px; }
.insight h2, .channels h2 { font-size: 19px; letter-spacing: -.03em; }
.insight .muted, .section-head .muted { margin: 4px 0 12px; }
.empty-row { color: var(--muted); background: #f7f9fc; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.event { padding: 9px 0; border-bottom: 1px solid var(--line); }
.event:last-child { border-bottom: 0; }
.event-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.event strong { font-size: 14px; }
.event time { color: var(--muted); font-size: 14px; }
.event p { margin-top: 3px; }
.channels { margin-top: 21px; padding: 22px 25px; }
.section-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.text-link { color: var(--blue); font-size: 14px; font-weight: 650; white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 21px; }
.source-row { border-top: 1px solid var(--line); padding: 10px 0 5px; }
.source-row a { text-decoration-color: #a7b7d4; }
.source-row a:hover { color: var(--blue); }
.source-status { color: var(--muted); font-size: 13px; }
.method { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 14px; }
.method ul { padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.records-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
.records-table :is(th, td) { text-align: left; padding: 7px 7px; border-bottom: 1px solid var(--line); }
.records-table th { color: var(--muted); }
.table-wrap { overflow: auto; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 22px 0 31px; color: var(--muted); font-size: 14px; }
.alert { padding: 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { display: block; padding: 8px 12px; }
@media (max-width: 1000px) {
  .frame { width: calc(100% - 40px); }
  .workspace { grid-template-columns: 218px minmax(0, 1fr); gap: 14px; }
  .monitor { padding-inline: 17px; }
  .monitor-head { align-items: start; flex-wrap: wrap; }
  .chart-head { align-items: start; }
  .metrics { gap: 6px; }
  .metric { padding-inline: 8px; }
}
@media (max-width: 720px) {
  .frame { width: calc(100% - 28px); }
  .mast { min-height: 60px; gap: 12px; }
  .mast nav { gap: 12px; margin-left: auto; }
  .lab { display: none; }
  .intro { display: block; padding: 31px 0 19px; }
  .lead { margin-top: 8px; }
  .freshness { margin-top: 14px; }
  .workspace { display: block; }
  .watchlist { margin-bottom: 12px; }
  .products { display: flex; align-items: start; overflow-x: auto; gap: 8px; }
  .product-group { margin: 5px 0 0; min-width: 150px; }
  .product-group h3 { white-space: nowrap; }
  .chart-head { display: block; }
  .series-controls { margin-top: 5px; justify-content: start; }
  .chart-wrap { height: 235px; }
  .insights, .source-grid { grid-template-columns: minmax(0, 1fr); }
  .insight, .channels { padding-inline: 16px; }
}
@media (max-width: 395px) {
  .metrics { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
