/* 运营后台：顶栏 + 左侧导航 + 右侧内容，白卡片放在浅灰底上 */
:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --line: #e6e8ee;
  --line-strong: #d5d9e2;
  --text: #1d2129;
  --text-2: #4e5969;
  --text-3: #86909c;
  --primary: #2f6bff;
  --primary-soft: #eaf0ff;
  --primary-press: #1f55d6;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --ok: #19a463;
  --ok-soft: #e7f7ef;
  --warn: #d97a08;
  --warn-soft: #fff4e5;
  --side: 216px;
  --top: 56px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  color: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------- 登录 ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
}
.login-card .brand { margin-bottom: 22px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-card p.sub { color: var(--text-3); margin: 0 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; height: 40px; margin-top: 6px; }

/* ---------- 框架 ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--top);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.brand-logo { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand small { color: var(--text-3); font-weight: 400; margin-left: 2px; }
.top .spacer { flex: 1; }
.switcher { position: relative; }
.switcher-btn {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 10px 0 8px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer;
}
.switcher-btn:hover { border-color: var(--line-strong); }
.switcher-btn .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.switcher-btn svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.menu svg { width: 16px; height: 16px; color: var(--text-3); }
.switcher-btn .dot {
  width: 22px; height: 22px; border-radius: 6px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.menu {
  position: absolute; top: 40px; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  padding: 6px; z-index: 30;
}
.menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer;
}
.menu button:hover { background: var(--bg); }
.menu button.on { color: var(--primary); background: var(--primary-soft); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.who { color: var(--text-2); display: flex; align-items: center; gap: 12px; }

.side {
  position: fixed;
  top: var(--top); bottom: 0; left: 0;
  width: var(--side);
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  overflow-y: auto;
  z-index: 10;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 12px; border-radius: 8px;
  color: var(--text-2); cursor: pointer; user-select: none;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-item svg { width: 18px; height: 18px; flex: none; }

.main {
  margin-left: var(--side);
  padding: calc(var(--top) + 20px) 24px 40px;
  min-height: 100vh;
}
.page { max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; min-height: 34px; }
.page-head h2 { margin: 0; font-size: 20px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { color: var(--text-3); font-size: 13px; margin-bottom: 6px; }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--primary); }

/* ---------- 组件 ---------- */
.card { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 15px; }
.card-head .hint { color: var(--text-3); font-size: 12.5px; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid.kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: 2fr 1fr; }
.grid.halves { grid-template-columns: 1fr 1fr; }
.chart.small svg { height: 160px; }
.meter-row { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.meter-row span { width: 48px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.meter { flex: 1; height: 8px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.meter > div { height: 100%; border-radius: 5px; }
.hint { color: var(--text-3); font-size: 12px; }
.events { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.events li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.events .t { color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid > .card + .card { margin-top: 0; }

.kpi .card { padding: 16px 18px; }
.kpi .label { color: var(--text-3); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 28px; font-weight: 650; margin: 6px 0 2px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: 12.5px; color: var(--text-3); }
.up { color: var(--ok); }
.down { color: var(--danger); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: #fff; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #b9c0cc; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-press); border-color: var(--primary-press); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.ghost { border-color: transparent; background: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.field label { display: block; color: var(--text-2); margin-bottom: 6px; font-size: 13px; }
.field .help { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.input, select.input, textarea.input {
  width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; outline: none;
}
textarea.input { height: auto; min-height: 120px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12); }
.input.sm { height: 30px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 6px; }
.seg { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; }
.seg button { border: 0; background: none; height: 28px; padding: 0 12px; border-radius: 6px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: #fff; color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.checks { display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); margin: 0; cursor: pointer; }

.table-wrap { overflow-x: auto; margin: 0 -20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--text-3); font-weight: 500; font-size: 13px; background: #fafbfc; }
tbody tr:hover { background: #fafbff; }
tbody tr.click { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .clip { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.empty { color: var(--text-3); text-align: center; padding: 40px 0; }

.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; background: var(--bg); color: var(--text-2); }
.tag.blue { background: var(--primary-soft); color: var(--primary); }
.tag.green { background: var(--ok-soft); color: var(--ok); }
.tag.orange { background: var(--warn-soft); color: var(--warn); }
.tag.red { background: var(--danger-soft); color: var(--danger); }
.tag.gray { background: #f0f1f4; color: var(--text-3); }
.tag + .tag { margin-left: 4px; }

.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding-top: 14px; color: var(--text-3); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input { width: 240px; }
.toolbar select.input { width: 140px; }

/* 图表 */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 260px; }
.chart .tip {
  position: absolute; pointer-events: none; background: #1d2129; color: #fff; font-size: 12.5px;
  padding: 8px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -100%); display: none; line-height: 1.6;
}
.legend { display: flex; gap: 14px; color: var(--text-2); font-size: 12.5px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars .row { display: grid; grid-template-columns: 64px 1fr 56px; gap: 10px; align-items: center; margin: 10px 0; }
.bars .track { height: 10px; background: var(--bg); border-radius: 6px; overflow: hidden; }
.bars .fill { height: 100%; border-radius: 6px; }
.bars .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }

/* 抽屉 */
.mask { position: fixed; inset: 0; background: rgba(15, 20, 30, 0.32); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
  background: #fff; z-index: 41; box-shadow: -8px 0 30px rgba(16, 24, 40, 0.12);
  display: flex; flex-direction: column;
}
.drawer-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-head .btn { margin-left: auto; }
.drawer-body { padding: 18px 20px; overflow-y: auto; flex: 1; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 10px 12px; margin-bottom: 18px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; word-break: break-all; }
.days { display: grid; grid-template-columns: repeat(15, 1fr); gap: 3px; margin: 8px 0 4px; }
.days span { aspect-ratio: 1; border-radius: 4px; background: #eef0f4; }
.days span.on { background: var(--primary); }

/* 配置 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.drawer.wide { width: min(760px, 100%); }
.drawer-foot { display: flex; gap: 8px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); }
.drawer-foot .spacer { flex: 1; }
.form-grid.four { grid-template-columns: 2fr 1fr 1fr 1fr; margin-bottom: 12px; }
.modal.wide { width: min(760px, calc(100% - 32px)); }
.card.notice { background: var(--warn-soft); color: var(--warn); box-shadow: none; margin-bottom: 16px; padding: 12px 16px; }
table.rules td.rule-keys { max-width: 240px; white-space: normal; line-height: 1.9; }
table.rules td.rule-keys .tag { margin: 2px 4px 2px 0; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.history-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.history-head .hint { margin-left: auto; }
table.diff { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.diff td { padding: 4px 8px; border: 1px solid var(--line); vertical-align: top; word-break: break-all; }
table.diff td.old { background: var(--danger-soft); color: var(--danger); }
table.diff td.new { background: var(--ok-soft); color: var(--ok); }
.jse { height: 280px; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; --jse-theme-color: var(--primary); --jse-theme-color-highlight: var(--primary-press); --jse-font-family-mono: ui-monospace, SFMono-Regular, Menlo, monospace; }
.jse.short { height: 200px; }
.range-row { display: flex; align-items: center; gap: 6px; }
.range-row input[type=range] { flex: 1; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: 8px; height: 36px; color: var(--text); cursor: pointer; }
.switch { position: relative; width: 36px; height: 20px; border-radius: 10px; border: 0; background: #c9cdd4; cursor: pointer; padding: 0; transition: background .15s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--ok); }
.switch.on i { left: 18px; }
.pct { display: flex; align-items: center; gap: 8px; min-width: 96px; }
.pct-track { flex: 1; height: 6px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.pct-fill { height: 100%; background: var(--primary); }
.pct span { font-variant-numeric: tabular-nums; color: var(--text-2); width: 36px; text-align: right; }
table.rules td.rule-name { min-width: 160px; max-width: 240px; white-space: normal; }
table.rules td.rule-name .hint { margin-top: 3px; white-space: normal; }
table.rules tr.off td { color: var(--text-3); }
table.rules tr.off b { color: var(--text-3); font-weight: 500; }
.trace { list-style: none; margin: 0; padding: 0; }
.trace li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.trace li .hint { margin-left: auto; }

/* 弹窗 */
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow-y: auto;
  background: #fff; border-radius: 12px; z-index: 41; box-shadow: 0 20px 50px rgba(16, 24, 40, 0.2);
}
.modal-head { padding: 18px 22px 0; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-body { padding: 16px 22px; }
.modal-foot { padding: 0 22px 18px; display: flex; gap: 8px; justify-content: flex-end; }


.toast {
  position: fixed; left: 50%; top: 72px; transform: translateX(-50%); z-index: 60;
  background: #1d2129; color: #fff; padding: 9px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.toast.bad { background: var(--danger); }
.loading { color: var(--text-3); padding: 40px 0; text-align: center; }

@media (max-width: 1100px) {
  .grid.kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.halves { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --side: 0px; }
  .side { position: fixed; top: var(--top); left: 0; right: 0; bottom: auto; width: auto; height: 48px; display: flex; gap: 4px; padding: 5px 8px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .nav-item { height: 36px; flex: none; }
  .main { padding: calc(var(--top) + 64px) 16px 32px; }
  .top { padding: 0 12px; gap: 10px; }
  .brand small, .who .email { display: none; }
  .brand { font-size: 0; gap: 0; }
  .switcher-btn .name { max-width: 140px; }
  .form-grid { grid-template-columns: 1fr; }
  .toolbar .input { width: 100%; }
}

/* 更新页：一个包一张卡片，顶上一句话说玩家现在拿到哪一个 */
.patch-acts { text-align: right; white-space: nowrap; }
.patch-acts .btn + .btn { margin-left: 6px; }
table.patches td.num { white-space: nowrap; }
table.patches .zero { color: var(--line-strong); }
table.patches tr.patch-sec td { padding-top: 18px; padding-bottom: 6px; border-bottom: none; font-size: 13px; }
table.patches tr.patch-sec b { margin-right: 10px; }
.patch-live { color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 6px; }
.hint.bad { color: var(--danger); }
table.patches th, table.patches td { padding-left: 10px; padding-right: 10px; }
table.patches th:first-child, table.patches td:first-child { padding-left: 20px; }
table.patches th:last-child, table.patches td:last-child { padding-right: 20px; }
table.patches td.rule-name { max-width: 320px; }
/* 窄屏横向滚动时操作列钉在右边 */
table.patches td.patch-acts { position: sticky; right: 0; background: var(--panel); box-shadow: -8px 0 8px -8px rgba(0, 0, 0, .12); }
table.patches tr.patch-sec td { position: static; }
table.patches th:last-child { position: sticky; right: 0; }
.cfg-form-sec { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; color: var(--text-2); font-size: 13px; }
.cfg-form-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 12px; margin-bottom: 8px; }
.cfg-form-row label { display: flex; flex-direction: column; font-size: 13px; }
.cfg-form-row label .hint { font-size: 11px; }
.cfg-others { list-style: none; margin: 0; padding: 0; }
.cfg-others li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
#rpf, #rch { flex-wrap: wrap; }
.cfg-form-group { margin: 14px 0 8px; color: var(--text-3); font-size: 12px; }
/* 配置：平台页与实验 */
.cfg-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cfg-tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.cfg-tabs button.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.cfg-tabs button.exp { margin-left: auto; }
.cfg-form { padding: 4px 20px 12px; }
.cfg-group { margin: 18px 0 4px; color: var(--text-3); font-size: 12px; font-weight: 600; }
.cfg-row { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cfg-row:last-child { border-bottom: none; }
.cfg-label .hint { margin-top: 3px; font-size: 12px; }
.cfg-value .input { width: 100%; }
.cfg-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; align-items: center; }
.cfg-src { color: var(--text-3); }
.cfg-src.own { color: var(--primary); }
button.link { border: 0; background: none; padding: 0; color: var(--primary); cursor: pointer; font-size: 12px; }
button.link.exp { color: var(--warn); }
.cfg-savebar { position: sticky; bottom: 0; display: flex; gap: 8px; align-items: center; padding: 12px 20px; margin-top: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.08); }
.cfg-savebar[hidden] { display: none; }
.cfg-savebar .spacer { flex: 1; }
#cdirty { color: var(--text-2); font-size: 13px; }
.cfg-exp-bar { margin-bottom: 12px; display: flex; gap: 12px; align-items: center; }
.cfg-exp { margin-bottom: 12px; }
.cfg-exp.off { opacity: .6; }
.cfg-exp.flash { box-shadow: 0 0 0 2px var(--primary); }
.cfg-exp-head, .cfg-exp-acts { display: flex; gap: 10px; align-items: center; }
.cfg-exp-head .spacer, .cfg-exp-acts .spacer { flex: 1; }
.cfg-diff { list-style: none; margin: 10px 0; padding: 0; }
.cfg-diff li { display: grid; grid-template-columns: 120px auto auto 1fr; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; }
.cfg-diff li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-diff .old { color: var(--text-3); text-decoration: line-through; font-family: ui-monospace, Menlo, monospace; max-width: 260px; }
.cfg-diff .new { font-family: ui-monospace, Menlo, monospace; }
.cfg-diff .arrow { color: var(--text-3); }
.cfg-preview { margin-top: 18px; }
@media (max-width: 720px) { .cfg-row { grid-template-columns: 1fr; gap: 6px; } }
.cfg-value select:has(option[value=""]:checked) { color: var(--text-3); }
.cfg-meta:empty { display: none; }
.cfg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.cfg-chips span { background: var(--bg); color: var(--text-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.cfg-exp-bar .btn + .btn { margin-left: 0; }
.cfg-ekey { display: grid; grid-template-columns: 180px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cfg-ekey .hint { font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
#eadd { margin-top: 10px; color: var(--primary); }
#eadd[hidden] { display: none; }
.cfg-range { display: flex; align-items: center; gap: 8px; }
.cfg-range span { color: var(--text-3); }
.cfg-diff.two li { grid-template-columns: 120px 1fr; }
.cfg-form-row .seg { flex-wrap: wrap; }
.cfg-form-row .seg { justify-self: start; }
.cfg-diff li.same { grid-template-columns: 120px 1fr; color: var(--text-3); }

/* 口径：ⓘ 悬停 */
.tip-i { position: relative; display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text-3); font: 600 10px/1 Georgia, serif; font-style: italic; cursor: help; vertical-align: 1px; margin-left: 2px; }
.tip-i:hover, .tip-i:focus { color: var(--text); border-color: var(--text-3); outline: none; }
.tip-i[data-tip]:hover::after, .tip-i[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; left: -6px; top: calc(100% + 6px); z-index: 50;
  width: max-content; max-width: 260px; white-space: normal; text-align: left;
  background: var(--text); color: #fff; font: 400 12px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-style: normal;
  padding: 7px 10px; border-radius: 6px;
}
.spark { display: block; width: 100%; height: 32px; margin-top: 10px; }
.nothing { color: var(--text-3); font-size: 13px; padding: 6px 0 2px; }
.mini-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-bottom: 8px; }
.mini-stats div { display: flex; flex-direction: column; gap: 2px; }
.mini-stats span { color: var(--text-3); font-size: 13px; }
.mini-stats b { font-size: 18px; font-variant-numeric: tabular-nums; }
h4.sub { margin: 18px 0 8px; font-size: 13px; color: var(--text-2); font-weight: 600; }
button.link.more { display: block; margin: 10px auto 0; font-size: 13px; }
.user-sum { display: flex; align-items: center; gap: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.user-sum div { display: flex; flex-direction: column; gap: 2px; }
.user-sum span { color: var(--text-3); font-size: 12px; }
.user-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plist .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; flex: none; }
.plist .spacer { flex: 1; }
.top #range { margin-right: 8px; }
.toolbar .seg { flex: none; }
.tip-i.wide[data-tip]:hover::after, .tip-i.wide[data-tip]:focus::after { max-width: min(520px, calc(100vw - var(--side) - 120px)); white-space: pre-line; word-break: break-all; }
img.dot { object-fit: cover; padding: 0; background: none; }
.picon-pick { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.picon-pick .dot { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 20px; }
.picon { margin-bottom: 14px; }
.menu .dot { width: 22px; height: 22px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.field .picon-pick { display: inline-flex; margin: 0; }
/* 更新页 */
table.patches tr.patch-sec .unnamed { color: var(--text-2); font-weight: 600; margin-right: 6px; }
table.patches tr.patch-sec .hint { margin-right: 10px; }
table.patches td.dim { color: var(--text-3); }
table.patches td .pct { margin-top: 6px; max-width: 140px; }
.patch-result { white-space: nowrap; font-variant-numeric: tabular-nums; }
.patch-result .sep { color: var(--line-strong); margin: 0 6px; }
.patch-result .warn { color: var(--warn); }
.patch-result .bad { color: var(--danger); font-weight: 600; }
table.patches tr.off .patch-acts .btn { visibility: hidden; }
table.patches tr.off:hover .patch-acts .btn, table.patches tr.off .patch-acts .btn:focus { visibility: visible; }

/* 服务器流量：一个大数 + 进度条 + 一行小字，下面是每天的出流量 */
.net-head { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 10px; }
.net-used { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.net-pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text-2); }
.net-meter { height: 10px; }
.net-foot { margin: 8px 0 12px; }
