/* 运维面板。方向：密、稳、可读——不是营销页，也不是空白黑底。
   颜色只传达状态；数字一律等宽表格数字。 */

:root {
  --bg: #0c1017;
  --bg-wash: #101722;
  --surface: #151c27;
  --surface-2: #1b2433;
  --surface-3: #232e3f;
  --line: #2f3b50;
  --line-soft: #222d3d;

  /* 次要文字在 --bg 上的对比度：dim 9.6:1、mute 6.2:1。以前 mute 只有 4.1:1，高分屏上看不清 */
  --fg: #eef1f5;
  --fg-dim: #b8c2d0;
  --fg-mute: #8d99ac;

  /* 单一强调：钢蓝，饱和度压低 */
  --accent: #6a93b8;
  --accent-soft: rgba(106, 147, 184, .14);
  --accent-line: rgba(106, 147, 184, .35);

  --ok: #4fae7a;
  --warn: #c9a04a;
  --bad: #d3675f;
  --ok-soft: rgba(79, 174, 122, .12);
  --warn-soft: rgba(201, 160, 74, .12);
  --bad-soft: rgba(211, 103, 95, .12);

  /* 不从外网拉字体：本机面板，谷歌字体在国内经常加载不出来，白等还闪一下 */
  --font: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "Microsoft YaHei UI", monospace;

  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 8px;

  --shadow: 0 12px 32px -16px rgba(4, 8, 16, .85);

  /* 表格列多，1280 在 2K 屏上只占一半、两边大片空着。超宽屏仍然收住，别一行拉到 3 米 */
  --page-max: clamp(1280px, 88vw, 2200px);
  --page-pad: clamp(16px, 2.2vw, 40px);

  --z-nav: 10;
  --z-grain: 50;
}

* { box-sizing: border-box; }

/* 根字号跟屏宽走：1366 屏 15px、1920 屏约 16px、2560 屏 17.5px。下面的字号全用 rem */
html { scroll-behavior: smooth; font-size: clamp(15px, calc(.35vw + 9.5px), 17.5px); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--r-sm);
}
.skip:focus { left: 12px; top: 10px; }

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--fg);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(106, 147, 184, .07), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(79, 174, 122, .04), transparent 50%),
    linear-gradient(180deg, var(--bg-wash), var(--bg) 42%);
  background-attachment: fixed;
}

/* 极轻噪点，破开纯平死黑 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
a:hover { color: #8ab0cf; border-bottom-color: currentColor; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

code, .mono, td.num, th.num, .n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
code { color: var(--fg-dim); font-size: 0.889rem; }

/* ── 导航 ─────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 max(var(--page-pad), calc((100% - var(--page-max)) / 2 + var(--page-pad)));
  height: 3.4rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}

nav .brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-right: 16px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -.2px;
}
nav a.brand { color: var(--fg); border-bottom: none; }
nav a.brand:hover { color: #8ab0cf; }

.gid { font-family: var(--mono); font-size: 0.815rem; color: var(--fg-mute); }

/* 页签分组：看 / 运营 / 客服 / 设置，组和组之间一道竖线 */
nav .sep { width: 1px; height: 1.3rem; margin: 0 .45rem; background: var(--line); flex: none; }

nav a.tab {
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  border-bottom: none;
  color: var(--fg-dim);
  font-size: 0.963rem;
  font-weight: 500;
}
nav a.tab:hover { color: var(--fg); background: var(--surface-2); }
nav a.tab[aria-current="page"] {
  color: var(--fg);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

nav .gamepick { margin-left: auto; display: flex; align-items: center; gap: 8px; }
nav .logout { margin-left: auto; }
nav .gamepick + .logout { margin-left: 10px; }
nav .gamepick label { color: var(--fg-mute); font-size: 0.852rem; letter-spacing: .02em; }

main {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--page-pad) 64px;
  position: relative;
  z-index: 1;
}

/* ── 标题 ─────────────────────────────────────────────────────────── */

h1 {
  font-size: 1.63rem;
  font-weight: 600;
  letter-spacing: -.4px;
  line-height: 1.2;
  margin: 0 0 2px;
}

.sub {
  color: var(--fg-mute);
  font-size: 0.889rem;
  margin: 0 0 18px;
  font-family: var(--mono);
}

section { margin-top: 22px; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line-soft);
}
.sec-head h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.1px;
  margin: 0;
  color: var(--fg);
}
.sec-head .aside { margin-left: auto; font-size: 0.889rem; color: var(--fg-mute); }

/* ── 指标：主 KPI + 次要条 ────────────────────────────────────────── */

.kpi-band {
  display: grid;
  grid-template-columns: minmax(15rem, 20rem) 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.kpi-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.kpi-hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--ok);
  opacity: .85;
}
.kpi-hero .n {
  display: block;
  font-size: 2.519rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1px;
}
.kpi-hero .k {
  display: block;
  color: var(--fg-mute);
  font-size: 0.889rem;
  margin-top: 4px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
}
.metric {
  padding: .9rem 1rem .8rem;
  border-left: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.metric:first-child { border-left: none; }
.metric .n {
  display: block;
  font-size: 1.481rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.4px;
}
.metric .k {
  display: block;
  color: var(--fg-mute);
  font-size: 0.815rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.metric a.n { border-bottom: none; }
.metric .n.is-ok, .kpi-hero .n.is-ok { color: var(--ok); }
.metric .n.is-warn, .kpi-hero .n.is-warn { color: var(--warn); }
.metric .n.is-bad, .kpi-hero .n.is-bad { color: var(--bad); }
.metric .n.is-zero, .kpi-hero .n.is-zero { color: var(--fg-mute); }

/* 总览双栏：左主数据，右事件流 */
.dash-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start;
}
.dash-grid > .dash-side { min-width: 0; }
.dash-grid > .dash-main { min-width: 0; }

/* ── 待处理 ───────────────────────────────────────────────────────── */

.todo { margin: 0 0 14px; }
.todo-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.todo-t { font-size: 1.05rem; font-weight: 600; }
.todo-n {
  min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px;
  background: var(--bad); color: #fff; font-weight: 600; text-align: center; font-size: .85rem;
}
.todo-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 8px;
}
.todo-item a {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; align-items: center;
  height: 100%;
  padding: .7rem .9rem .7rem 1rem;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--r-md);
  background: var(--surface); color: var(--fg); border-bottom-width: 1px;
  transition: background .15s ease, border-color .15s ease;
}
.todo-item.is-bad a { border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-soft), var(--surface) 60%); }
.todo-item.is-warn a { border-left-color: var(--warn); background: linear-gradient(90deg, var(--warn-soft), var(--surface) 60%); }
.todo-item a:hover { background: var(--surface-2); border-color: #45556d; }
.todo-item.is-bad a:hover { border-left-color: var(--bad); }
.todo-item.is-warn a:hover { border-left-color: var(--warn); }
.todo-title { font-weight: 600; font-size: 1rem; }
.todo-detail {
  grid-column: 1; color: var(--fg-dim); font-size: .9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.todo-go { grid-row: 1 / span 2; grid-column: 2; color: var(--fg-mute); font-size: .88rem; white-space: nowrap; }
.todo-item a:hover .todo-go { color: var(--fg); }
.todo-ok {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 1rem; border: 1px solid var(--line-soft); border-radius: var(--r-md);
  background: var(--surface);
}

/* 大数字底下的 24 小时在线率 */
.kpi-hero .spark { display: block; width: 100%; height: 2.6rem; margin-top: .6rem; overflow: visible; }
.spark-line { fill: none; stroke: var(--ok); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.spark-area { fill: var(--ok-soft); stroke: none; }
.spark-k { display: block; margin-top: .3rem; font-size: .85rem; color: var(--fg-mute); border-bottom: none; }
.spark-k b { color: var(--fg); font-weight: 600; }
.spark-k:hover { color: var(--fg-dim); }

/* ── 游戏卡（首页）─────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 15px 12px;
  transition: border-color .18s ease, transform .12s ease;
  box-shadow: var(--shadow);
}
.card:hover { border-color: #3a4a60; transform: translateY(-1px); }

.card-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 10px; }
.card-t { font-size: 1.111rem; font-weight: 600; color: var(--fg); border-bottom: none; letter-spacing: -.2px; }
.card-t:hover { color: #8ab0cf; }

.card-warn { margin: 0 0 10px; }

.card-n {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px 8px;
  margin-bottom: 12px;
}
.card-n .n { display: block; font-size: 1.333rem; font-weight: 600; line-height: 1.2; }
.card-n .k { display: block; margin-top: 1px; font-size: 0.815rem; }
.card-n .ratio { font-size: inherit; font-weight: inherit; }
.card-n .n.is-ok { color: var(--ok); }
.card-n .n.is-bad { color: var(--bad); }
.card-n .n.is-zero { color: var(--fg-mute); }

.card-go {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.926rem;
}
.card-go .btn {
  margin-right: auto;
  padding: 5px 11px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #c5d8ea;
}
.card-go .btn:hover { background: rgba(106, 147, 184, .22); border-color: var(--accent); }
.card-go button.danger {
  padding: 3px 9px;
  font-size: 0.889rem;
  color: var(--fg-mute);
  background: none;
  border-color: transparent;
}

/* ── 表格 ─────────────────────────────────────────────────────────── */

.tw {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: auto;
  background: var(--surface);
  width: 100%;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: .6rem .85rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--fg-dim);
  font-weight: 600;
  font-size: 0.852rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: rgba(130, 170, 210, .07); }
/* 从「待处理」点过来的那一行亮一下，不然长表里找不到 */
tbody tr:target td { background: rgba(212, 166, 74, .16); }
tbody tr[id] { scroll-margin-top: 6rem; }
tbody tr:target td:first-child { box-shadow: inset 3px 0 0 var(--warn); }

th.num, td.num,
th.fit, td.fit,
th.act, td.act {
  width: 1%;
  white-space: nowrap;
}
th.num, td.num { font-variant-numeric: tabular-nums; }
th.act, td.act { text-align: right; }

td.nowrap { white-space: nowrap; }
td.trunc, td.grow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 不封顶的话，一条几百字的报错会把整列撑宽，别的列被挤成一字一行；全文在 title 里 */
td.trunc { max-width: 30rem; }

.ratio {
  display: inline-flex;
  align-items: baseline;
  gap: .3em;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}
.ratio > i {
  font-style: normal;
  color: var(--fg-mute);
  font-weight: 400;
}

/* ── 状态点 ───────────────────────────────────────────────────────── */

/* 状态做成带底色的胶囊：一屏几十行时，扫一眼靠颜色块，光一个小点看不出来 */
.st {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .12rem .6rem .12rem .5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap; font-weight: 500; line-height: 1.5;
  background: rgba(141, 153, 172, .1);
}
.st::before {
  content: "";
  width: .45rem; height: .45rem;
  border-radius: 50%;
  background: var(--fg-mute);
  flex: none;
}
.st.ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.st.ok::before { background: var(--ok); }
.st.warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.st.warn::before { background: var(--warn); }
.st.bad { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 32%, transparent); }
.st.bad::before { background: var(--bad); }
.st.mute { color: var(--fg-mute); font-weight: 400; background: transparent; padding-left: 0; }

.st.live::before { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.diverged { color: var(--warn); }

/* ── 容量条 ───────────────────────────────────────────────────────── */

.cap { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.cap .bar {
  width: 48px; height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  flex: none;
}
.cap .bar i { display: block; height: 100%; background: var(--accent); }
.cap .t { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── 表单 ─────────────────────────────────────────────────────────── */

button, input, select, textarea {
  font: inherit;
  color: var(--fg);
  background: #0e131b;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .4rem .75rem;
  transition: border-color .18s ease, background .18s ease, transform .08s ease;
}
button { cursor: pointer; }
button:hover { border-color: #3a4a60; background: var(--surface-2); }
button:active { transform: translateY(1px); }

button.primary {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: #c5d8ea;
}
button.primary:hover { background: rgba(106, 147, 184, .22); border-color: var(--accent); }
button.danger:hover { border-color: var(--bad); color: var(--bad); }

textarea { width: 100%; min-height: 84px; font-family: var(--mono); line-height: 1.5; }
input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--accent); }

form.inline { display: inline; }

.toolbar {
  display: flex;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.field {
  display: grid;
  grid-template-rows: 18px auto;
  align-content: start;
  gap: 4px;
}
.field label { color: var(--fg-mute); font-size: 0.852rem; line-height: 18px; }
.field .help { color: var(--fg-mute); font-size: 0.815rem; }
.toolbar > button { margin-top: 22px; }

/* ── 文本 ─────────────────────────────────────────────────────────── */

.hint { color: var(--fg-mute); font-size: 0.926rem; margin: 0 0 12px; max-width: 58em; line-height: 1.55; }
.k { color: var(--fg-mute); font-size: 0.889rem; }
/* 区服表：一台服务器挂着一整天的多个区名时，整组信息另起一行跟在区名下面 */
.grp { display: block; margin-top: 2px; }
.err { color: var(--bad); }
.ok { color: var(--ok); }
.note {
  color: var(--fg);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 8px 12px;
  margin: 0 0 12px;
  font-size: 0.963rem;
}
.note.ok { color: var(--ok); border-left-color: var(--ok); background: var(--ok-soft); }
.note.err { color: var(--bad); border-left-color: var(--bad); background: var(--bad-soft); }

.empty {
  color: var(--fg-dim);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: 22px 18px;
  text-align: center;
}
.empty .t { color: var(--fg); margin-bottom: 4px; font-weight: 500; }
.empty code {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 8px;
  background: #0b0f15;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.badge {
  display: inline-block;
  min-width: 16px;
  padding: 0 5px;
  background: var(--bad);
  color: #12080a;
  font: 600 0.815rem/1.45 var(--mono);
  text-align: center;
  border-radius: var(--r-sm);
}

tr.waiting td { background: var(--warn-soft); }
tr.waiting td:first-child { box-shadow: inset 2px 0 0 var(--warn); }

.chat td { vertical-align: top; }
.chat tr.out td { color: #b4c7db; }
.chat .who { color: var(--fg-mute); font-size: 0.889rem; white-space: nowrap; }
.ticket-no { font-family: var(--mono); font-weight: 600; }

.liveflag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-mute);
  font-size: 0.852rem;
}
.liveflag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ok);
  animation: breathe 2.4s ease-in-out infinite;
}
.liveflag.paused::before { background: var(--fg-mute); animation: none; }

details.fold { margin-top: 8px; }
details.fold > summary {
  cursor: pointer;
  color: var(--fg-mute);
  font-size: 0.889rem;
  list-style: none;
  padding: 4px 0;
}
details.fold > summary:hover { color: var(--fg-dim); }
details.fold > summary::before { content: "▸ "; }
details.fold[open] > summary::before { content: "▾ "; }

@media (max-width: 980px) {
  .kpi-band { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --page-pad: 14px; }
  main { padding: 14px var(--page-pad) 52px; }
  nav { gap: 1px; overflow-x: auto; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; align-items: stretch; }
  td.trunc { max-width: 140px; }
  h1 { font-size: 1.407rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── 分段切换和翻页（客服单子多的时候靠它） ─────────────────────────── */

.seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
}
.seg > a {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--fg-dim);
  text-decoration: none;
  white-space: nowrap;
}
.seg > a[aria-current="page"] {
  color: var(--fg);
  background: var(--accent-soft);
  border-color: var(--accent);
}
.seg > .k { margin-left: auto; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.pager a { white-space: nowrap; }

.toolbar > a.btn { margin-top: 28px; white-space: nowrap; }

table.dense th, table.dense td { padding: 5px 10px; }
/* 长消息只占剩下的宽度，省略号截断，不把行撑高也不把别的列挤歪 */
table.dense td.trunc { max-width: 0; width: 60%; }
tr.current td { background: var(--accent-soft); }

.tw.scroll { max-height: 420px; }

/* 曲线页 */
/* 在线率、报错数两图并排，各占一半——一个图别占大半屏。窄屏回落单列 */
.chart-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.chart-cols > section { margin-top: 0; min-width: 0; }
@media (max-width: 980px) { .chart-cols { grid-template-columns: 1fr; } }
svg.chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
svg.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
svg.chart .axis { fill: var(--fg-mute); font: 11px var(--mono); }
svg.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
svg.chart .dot { fill: transparent; }
svg.chart .dot:hover { fill: var(--accent); }
svg.chart .bar { fill: var(--bad); opacity: .8; }
svg.chart .bar:hover { opacity: 1; }
