/* ============================================================
   给梨任务托管 · 样式表
   ------------------------------------------------------------
   基调：清水、薄荷、极简编辑风。
   全部颜色走 1px 描边与极淡底色分层，不使用渐变、不使用 emoji。
   主题变量由后端注入（--brand --accent --bg --surface --text
   --muted --border --radius），这里只负责消费与派生。
   ============================================================ */

/* ------------------------------------------------------------
   1. 变量
   ------------------------------------------------------------ */
:root {
  --ok: #0f7a52;
  --warn: #96601a;
  --err: #b0281f;
  --info: #1a6a8c;
  --ok-soft: color-mix(in srgb, var(--ok) 12%, transparent);
  --warn-soft: color-mix(in srgb, var(--warn) 13%, transparent);
  --err-soft: color-mix(in srgb, var(--err) 10%, transparent);
  --info-soft: color-mix(in srgb, var(--info) 12%, transparent);
  --accent2: var(--accent);

  /* 描边与底色：用当前文字色派生，深浅主题自动适配。
     线比模板常见的更实一点，靠 1px 分界而不是阴影堆层次。 */
  --line: color-mix(in srgb, var(--text) 11%, transparent);
  --line-2: color-mix(in srgb, var(--text) 21%, transparent);
  --wash: color-mix(in srgb, var(--text) 4%, transparent);
  --wash-2: color-mix(in srgb, var(--text) 7.5%, transparent);
  --tint: color-mix(in srgb, var(--brand) 7%, transparent);
  --tint-2: color-mix(in srgb, var(--brand) 13%, transparent);
  --on-brand: #ffffff;

  --r: var(--radius, 8px);
  --r-sm: 6px;

  --sh-1: 0 1px 1px color-mix(in srgb, var(--text) 4%, transparent);
  --sh-2: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent),
          0 12px 28px -22px color-mix(in srgb, var(--text) 26%, transparent);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas,
          "Liberation Mono", Menlo, monospace;

  --topbar-h: 62px;
}

html[data-scheme="dark"] {
  --ok: #63d6a0;
  --warn: #e8b978;
  --err: #ff9184;
  --info: #86cbe8;
  --on-brand: #06110f;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-2: 0 2px 6px -2px rgba(0, 0, 0, .5), 0 18px 40px -28px #000;
}

/* ------------------------------------------------------------
   2. 基础
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: light;
}
html[data-scheme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a {
  color: var(--brand);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--brand); text-decoration: underline; }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { font-family: inherit; }

::selection {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 65%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

code {
  font-family: var(--mono);
  font-size: .9em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--wash);
  border: 1px solid var(--line);
}

/* 大字号收紧字距，汉字才不散 */
h1 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }

/* ------------------------------------------------------------
   3. 骨架
   ------------------------------------------------------------ */
.wrap { width: min(1140px, calc(100% - 44px)); margin-inline: auto; }

main {
  display: block;
  padding: 32px 0 72px;
  min-height: calc(100vh - var(--topbar-h) - 190px);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--surface); padding: 10px 16px; z-index: 999;
  border: 1px solid var(--line-2); border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 80;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; height: var(--topbar-h);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 650; font-size: 15px;
  letter-spacing: 0; white-space: nowrap;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-mark {
  width: 27px; height: 27px; flex: none;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px; font-weight: 700; line-height: 1;
  letter-spacing: 0;
}
.brand-mark.sm { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.brand-name { font-weight: 650; }

.nav { display: flex; align-items: center; gap: 2px; }
.navlink {
  position: relative;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.navlink:hover { color: var(--text); background: var(--wash); text-decoration: none; }
.navlink.is-active { color: var(--text); font-weight: 600; }
.navlink.is-active::after {
  content: "";
  position: absolute; left: 11px; right: 11px; bottom: -19px;
  height: 2px; border-radius: 2px;
  background: var(--brand);
}

.sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; flex: none; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 10px 3px 3px; margin-right: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px; font-weight: 550;
  color: var(--text);
  max-width: 180px;
}
.user-chip > span:not(.user-avatar):not(.badge) {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-avatar {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tint-2);
  color: var(--brand);
  font-size: 11.5px; font-weight: 700;
}

.nav-badge {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 5px;
  margin-left: 5px; vertical-align: 1px;
  border-radius: 999px;
  background: var(--err); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}

/* 移动端菜单按钮：只在窄屏出现 */
.nav-toggle {
  display: none;
  width: 36px; height: 36px; flex: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 15px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 34px;
}
.footer-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 9px; }
.foot-brand b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.foot-brand span { font-size: 12px; color: var(--muted); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.foot-copy { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   4. 按钮
   ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border: 1px solid var(--btn-bd);
  border-radius: 7px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13.5px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer; user-select: none;
  transition: background .15s ease, border-color .15s ease,
              color .15s ease, transform .06s ease, box-shadow .15s ease;
}
.btn:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line-2));
  background: color-mix(in srgb, var(--brand) 4%, var(--btn-bg));
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }

.btn.primary {
  --btn-bg: var(--brand);
  --btn-fg: var(--on-brand);
  --btn-bd: transparent;
}
.btn.primary:hover {
  --btn-bg: color-mix(in srgb, var(--brand) 88%, #000);
}
html[data-scheme="dark"] .btn.primary:hover {
  --btn-bg: color-mix(in srgb, var(--brand) 88%, #fff);
}

.btn.default { --btn-bg: var(--surface); }
.btn.ghost {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--muted);
}
.btn.ghost:hover {
  --btn-bd: transparent;
  background: var(--wash); color: var(--text);
  border-color: transparent;
}
.btn.danger { --btn-bg: var(--err); --btn-fg: #fff; --btn-bd: transparent; }
.btn.danger:hover { --btn-bg: color-mix(in srgb, var(--err) 86%, #000); }
.btn.blue { --btn-bg: var(--brand); --btn-fg: var(--on-brand); --btn-bd: transparent; }
.btn.blue:hover { --btn-bg: color-mix(in srgb, var(--brand) 88%, #000); }

.btn.sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 6px; }
.btn.lg { height: 44px; padding: 0 24px; font-size: 14.5px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* ------------------------------------------------------------
   5. 卡片 / 网格 / 指标
   ------------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: none;
}
.card.pad-sm { padding: 18px; }
.card.flat { box-shadow: none; }
/* 直排卡片之间留出呼吸，网格里的卡片不受影响 */
.card + .card { margin-top: 18px; }
.grid > .card + .card, .row > .card + .card, .row-tight > .card + .card { margin-top: 0; }

.card-head, .card > .card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 { font-size: 14.5px; font-weight: 650; letter-spacing: 0; }
.card-body { padding: 20px; }
.card-header { padding: 18px 20px 0; }
.card-desc { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.7; }
.card > .card-desc { padding: 14px 20px 0; }

/* 旧版直排结构（后台页面）适配 */
.card > h2 { font-size: 14.5px; font-weight: 650; padding: 18px 20px 0; margin: 0; }
.card > h2:first-child { padding-top: 18px; }
.card > form { padding: 4px 20px 20px; }
.card > form > h2 { padding-left: 0; padding-right: 0; }
.card > .kv { padding: 4px 20px 18px; }
.card > p { padding: 0 20px 12px; }
.card > .table-wrap { margin-top: 12px; border-radius: 0 0 var(--r) var(--r); border: 0; border-top: 1px solid var(--line); }
.card > label { padding: 0 20px; margin-top: 14px; }
.card > label:first-of-type { margin-top: 16px; }
.card > input, .card > select, .card > textarea { margin: 0 20px; width: calc(100% - 40px); }
.card > .check { padding: 2px 20px; margin-top: 12px; }
.card > details { margin: 14px 20px 18px; }
.card > .btn { margin: 14px 20px 20px; }
.card > .btn-row { padding: 0 20px 18px; margin-top: 12px; }
.card > .row { padding: 0 20px 18px; }
.card > .grid { padding: 0 20px 18px; }
.card > .empty { padding: 40px 20px; }

.grid { display: grid; gap: 18px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); align-items: start; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
.grid.g-main { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.row > .btn { justify-self: start; }
.row-tight { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }

@media (max-width: 980px) {
  .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .grid.g-main { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 660px) {
  .grid.g2, .grid.g3, .row, .grid-form { grid-template-columns: minmax(0, 1fr); }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .row-tight { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .grid.g4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 指标卡 ---------- */
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 17px 19px 16px;
}
.metric-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 550; color: var(--muted);
  letter-spacing: .04em;
}
.metric-value {
  margin-top: 6px;
  font-size: 27px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.metric .v {
  margin-top: 6px;
  font-size: 23px; font-weight: 700; line-height: 1.25;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.metric .unit { font-size: 13px; font-weight: 550; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.metric .sub { margin-top: 3px; font-size: 12px; color: var(--muted); }
.metric.accent {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.metric.accent .metric-value, .metric.accent .v { color: var(--brand); }

.stat {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--wash);
}
.stat .k { font-size: 11.5px; color: var(--muted); font-weight: 550; letter-spacing: .04em; }
.stat .v { font-size: 19px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ------------------------------------------------------------
   6. 徽章 / 标签 / 状态点
   ------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--muted);
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.vip {
  background: transparent; color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  font-weight: 700; letter-spacing: .04em;
}
.badge.dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: color-mix(in srgb, var(--text) 3%, var(--surface));
  color: color-mix(in srgb, var(--text) 62%, var(--muted));
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  white-space: nowrap;
}
.tag.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); background: var(--ok-soft); }
.tag.err { color: var(--err); border-color: color-mix(in srgb, var(--err) 26%, transparent); background: var(--err-soft); }
.tag.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 26%, transparent); background: var(--warn-soft); }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted); display: inline-block; flex: none;
}
.dot.live { background: var(--ok); animation: breathe 2.4s ease-out infinite; }
.dot.off { background: color-mix(in srgb, var(--muted) 60%, transparent); }
.dot.on-err { background: var(--err); }
.dot.on-warn { background: var(--warn); }

/* 徽章上的状态点：用 has-dot，别复用 .dot（那是独立圆点，会把尺寸改坏） */
.badge.has-dot::before,
.badge.dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; flex: none;
}
.badge.dot { display: inline-flex; width: auto; height: auto; border-radius: 6px; }

.pulse { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pulse.off { background: var(--muted); }

@keyframes breathe {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70% { box-shadow: 0 0 0 5px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ------------------------------------------------------------
   7. 额度条
   ------------------------------------------------------------ */
.quota-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: color-mix(in srgb, var(--brand) 3%, var(--surface));
}
.quota-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.quota-k {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .08em;
}
.quota-v {
  font-size: 25px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.quota-v i { font-style: normal; font-size: 13px; font-weight: 550; color: var(--muted); margin-left: 4px; }
.quota-sub { font-size: 12.5px; color: var(--muted); }
.quota-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.quota-bar.is-empty {
  border-color: color-mix(in srgb, var(--warn) 32%, var(--line));
  background: color-mix(in srgb, var(--warn) 4%, var(--surface));
}
.quota-bar.is-empty .quota-v { color: var(--warn); }
.quota-bar.is-empty .quota-sub { color: color-mix(in srgb, var(--warn) 80%, var(--muted)); }

/* ------------------------------------------------------------
   8. 表格
   ------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border-radius: var(--r); }
table.tbl, .table-wrap table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
table.tbl th, .table-wrap table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted); white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
  background: transparent;
}
table.tbl td, .table-wrap table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tbl tbody tr:last-child td,
.table-wrap table tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr, .table-wrap table tbody tr { transition: background .12s ease; }
table.tbl tbody tr:hover, .table-wrap table tbody tr:hover {
  background: var(--wash);
}
.live-tbl .who { font-weight: 600; font-size: 13.5px; }
.live-tbl .msg-cell { max-width: 240px; }
.live-tbl .phase-cell { white-space: nowrap; }

.mono { font-family: var(--mono); font-size: .92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   9. 表单
   ------------------------------------------------------------ */
label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }

input[type="text"], input[type="password"], input[type="tel"], input[type="email"],
input[type="number"], input[type="time"], input[type="date"], input[type="search"],
select, textarea {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder, textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--muted) 45%, var(--line-2)); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
textarea {
  min-height: 96px; resize: vertical;
  line-height: 1.65;
  font-size: 13px;
  padding: 10px 12px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%237e8f8a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select[multiple] { background-image: none; padding-right: 12px; }

input[type="checkbox"], input[type="radio"] {
  accent-color: var(--brand);
  width: 15px; height: 15px;
  margin: 0;
  flex: none;
}

.req { color: var(--err); font-style: normal; margin-left: 3px; }
.field { display: flex; flex-direction: column; }
.field > span { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.check {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 450; color: var(--text);
  cursor: pointer; line-height: 1.5;
}
.check input { margin: 0; }
.check label { margin: 0; font-weight: 450; font-size: 13px; cursor: pointer; }
.hint { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.65; }
/* 连续的 field 自动拉开距离；栅格里的 field 交给 gap */
.field + .field { margin-top: 14px; }
.field-row > .field, .field-row > * > .field,
.grid-form > .field, .grid-form > * > .field { margin-top: 0; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* 直接挂在 .card 下面的控件：覆盖上面的通用宽度，避免溢出卡片
   （同优先级靠后声明，非 !important） */
.card > input, .card > select, .card > textarea {
  margin: 0 20px;
  width: calc(100% - 40px);
}
.form-msg { font-size: 12.5px; margin-top: 6px; min-height: 16px; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ------------------------------------------------------------
   10. 首页 Hero
   ------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  background: var(--surface);
  overflow: hidden;
}
.hero-copy {
  padding: 52px 48px 46px;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 4px 11px 4px 9px;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 550; letter-spacing: .04em;
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -.02em;
  max-width: 13em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  margin-top: 18px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.hero-facts {
  display: flex; gap: 26px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-facts > div { min-width: 72px; }
.hero-facts dt { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.hero-facts dd {
  margin: 3px 0 0;
  font-size: 19px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.hero-facts dd span { font-size: 11.5px; font-weight: 550; color: var(--muted); margin-left: 3px; }

/* 右侧结算单 */
.hero-panel {
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--text) 2.2%, var(--surface));
  padding: 34px 32px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.hp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
}
.hp-head b { color: var(--text); font-size: 12.5px; letter-spacing: .02em; }
.hp-list { list-style: none; display: flex; flex-direction: column; }
.hp-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.hp-list li span { color: var(--muted); }
.hp-list li b {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hp-list li b.up { color: var(--ok); }
.hp-list li b.off { color: var(--muted); font-weight: 500; }
.hp-total {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  margin-top: 6px; padding-top: 16px;
}
.hp-total span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.hp-total b {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.hp-foot {
  margin-top: auto; padding-top: 22px;
  font-size: 11.5px; line-height: 1.75; color: var(--muted);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding: 40px 28px 34px; }
  .hero-panel { border-left: 0; border-top: 1px solid var(--line); padding: 26px 28px 30px; }
  .hero-facts { gap: 20px; margin-top: 28px; }
}
@media (max-width: 480px) {
  .hero-copy { padding: 34px 20px 30px; }
  .hero-panel { padding: 22px 20px 26px; }
}

/* ------------------------------------------------------------
   11. 区块标题 / 特性 / 步骤 / 公告 / 空态
   ------------------------------------------------------------ */
.h-sec {
  display: flex; align-items: center; gap: 14px;
  margin: 52px 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em;
  color: var(--muted);
}
.h-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.section-title {
  display: flex; align-items: baseline; gap: 8px;
  margin: 28px 0 14px;
  font-size: 16px; font-weight: 650;
}
.section-title .n { font-size: 12px; font-weight: 550; color: var(--muted); }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 { margin: 0 0 5px; }
.page-head .eyebrow {
  display: inline-flex;
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  border-radius: 0;
  align-self: auto;
}
.page-head > div > p { color: var(--muted); font-size: 13px; }

/* 特性：用细线分隔，不做六张浮夸卡片 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.feature {
  padding: 26px 28px 26px 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(3n + 2) { padding-left: 28px; border-left: 1px solid var(--line); }
.feature:nth-child(3n + 3) { padding-left: 28px; border-left: 1px solid var(--line); padding-right: 0; }
.feature-ico {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 12px;
}
.feature h3 { font-size: 14.5px; font-weight: 650; margin-bottom: 6px; }
.feature p { font-size: 13px; line-height: 1.8; color: var(--muted); }

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature:nth-child(3n + 2), .feature:nth-child(3n + 3) {
    padding: 22px 22px 22px 0; border-left: 0;
  }
  .feature:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature, .feature:nth-child(even) { padding: 20px 0; border-left: 0; }
}

/* 步骤 */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: flex; gap: 13px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-no {
  flex: none;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  border-radius: 7px;
  background: transparent;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 600;
}
.step-title { font-size: 13.5px; font-weight: 650; }
.step-desc { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin-top: 3px; }

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step, .step + .step { padding: 20px 20px 20px 0; border-left: 0; }
  .step:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(even) { padding: 18px 0; border-left: 0; }
}

/* 公告 */
.notice {
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--info);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13.5px;
}
.notice.pinned {
  border-left-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 3%, var(--surface));
}
.notice.warn { border-left-color: var(--warn); }
.notice.err { border-left-color: var(--err); }
.notice strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.notice-meta { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.notice-list .notice + .notice { margin-top: 10px; }

/* FAQ 列表 */
.faq { border-top: 1px solid var(--line); }
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.faq-item dt { font-size: 13.5px; font-weight: 650; }
.faq-item dd { margin: 6px 0 0; font-size: 13px; line-height: 1.85; color: var(--muted); }
.faq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 700px) { .faq-cols { grid-template-columns: 1fr; } }

/* 空态 */
.empty { text-align: center; padding: 52px 20px; }
.empty .ico { font-size: 30px; margin-bottom: 12px; opacity: .5; }
.empty h3 { font-size: 15px; font-weight: 650; }
.empty p { font-size: 13px; color: var(--muted); margin: 6px 0 18px; line-height: 1.8; }

/* ------------------------------------------------------------
   12. 认证页（左右分栏）
   ------------------------------------------------------------ */
.auth-page {
  min-height: calc(100vh - var(--topbar-h) - 200px);
  display: grid; place-items: center;
  padding: 30px 0;
}
.auth-card {
  width: min(420px, 100%);
  padding: 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  box-shadow: var(--sh-2);
}
.auth-head { margin-bottom: 24px; }
.auth-head h1 { font-size: 21px; letter-spacing: -.01em; }
.auth-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.auth-foot {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

.auth-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  width: min(940px, 100%);
  margin: 20px auto 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 4px);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--sh-2);
}
.auth-aside {
  display: flex; flex-direction: column; justify-content: flex-start;
  gap: 30px;
  padding: 42px 40px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}
.auth-aside .brand { margin-bottom: 30px; }
.auth-aside h2 {
  font-size: 22px; font-weight: 700; line-height: 1.5;
  letter-spacing: -.01em;
  max-width: 12em;
}
.auth-aside h2 em { font-style: normal; color: var(--brand); }
.auth-aside p {
  margin-top: 12px; font-size: 13px; line-height: 1.9;
  color: var(--muted); max-width: 26em;
}
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.auth-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text); line-height: 1.7;
}
.auth-points li::before {
  content: ""; flex: none;
  width: 11px; height: 6px;
  margin-top: 7px;
  border-left: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(-45deg);
}
.auth-aside .auth-note {
  margin-top: 30px;
  font-size: 11.5px; color: var(--muted); line-height: 1.8;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.auth-split .auth-card {
  width: 100%; max-width: none;
  border: 0; border-radius: 0; box-shadow: none;
  padding: 42px 40px;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-split .auth-head { margin-bottom: 22px; }

.pw-row { position: relative; }
.pw-row input { padding-right: 56px; }
.pw-eye {
  position: absolute; right: 5px; top: 50%;
  transform: translateY(-50%);
  height: 28px; padding: 0 8px;
  border: 0; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600;
  border-radius: 6px; cursor: pointer;
}
.pw-eye:hover { color: var(--text); background: var(--wash); }

.pw-meter {
  height: 3px; margin-top: 8px;
  border-radius: 999px; background: var(--wash-2);
  overflow: hidden;
}
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .25s, background .25s; }

@media (max-width: 860px) {
  .auth-split { grid-template-columns: minmax(0, 1fr); }
  .auth-aside {
    padding: 28px 26px; gap: 18px;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .auth-aside h2 { font-size: 19px; max-width: none; }
  .auth-aside .auth-points, .auth-aside .auth-note { display: none; }
  .auth-aside .brand { margin-bottom: 16px; }
  .auth-split .auth-card { padding: 28px 26px 32px; }
}

/* ------------------------------------------------------------
   13. 人机验证
   ------------------------------------------------------------ */
.cap {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--wash);
  margin: 14px 0;
}
.cap-row { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.cap-label {
  flex: 0 0 auto;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  color: var(--muted);
}
.cap-challenge { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cap-body { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cap-expr {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  letter-spacing: .06em; white-space: nowrap; user-select: none;
}
.cap-body img {
  height: 34px; width: auto; display: block;
  border: 1px solid var(--line-2); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.cap-refresh {
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.cap-refresh:hover { color: var(--brand); border-color: var(--brand); }
.cap-input { flex: 1 1 100%; }
.cap-err { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--err); }
#slide-stub { font-size: 12px; color: var(--muted); padding: 6px 0; }

.slide-track {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 170;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background-color: var(--surface);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  touch-action: none; user-select: none;
}
.slide-piece {
  position: absolute; top: 0; left: 0;
  width: 54px; height: 44px;
  background-size: 100% 100%; background-repeat: no-repeat;
  cursor: grab; z-index: 2;
  border-radius: 2px;
  will-change: left;
}
.slide-track.dragging .slide-piece { cursor: grabbing; }
.slide-piece:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.slide-hint {
  position: absolute; left: 0; right: 0; bottom: 4px;
  display: grid; place-items: center;
  font-size: 11px; line-height: 1.4; color: var(--text);
  pointer-events: none; z-index: 3;
}
.slide-hint:not(:empty) {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 0 6px rgba(255, 255, 255, .8);
}
.slide-track.done .slide-hint { color: var(--ok); font-weight: 600; }

/* ------------------------------------------------------------
   14. 提示条 / Toast
   ------------------------------------------------------------ */
.flash {
  padding: 11px 15px;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--info);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 13px; font-weight: 500;
}
.flash.ok { border-left-color: var(--ok); background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.flash.error, .flash.err { border-left-color: var(--err); background: var(--err-soft); border-color: transparent; color: var(--err); }
.flash.warn { border-left-color: var(--warn); background: var(--warn-soft); border-color: transparent; color: var(--warn); }

#toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  align-items: flex-end;
}
.toast {
  min-width: 180px; max-width: 330px;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--sh-2);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  animation: toast-in .2s ease-out;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--err); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------
   15. 后台
   ------------------------------------------------------------ */
.admin-nav {
  display: flex; gap: 4px; flex-wrap: nowrap;
  margin-bottom: 24px; padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a {
  padding: 6px 11px;
  border-radius: 5px;
  font-size: 13px; font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.admin-nav a:hover { color: var(--text); background: var(--wash); text-decoration: none; }
.admin-nav a.is-active {
  color: var(--text); background: var(--wash-2);
  font-weight: 650;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.log-line {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
  padding: 8px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  font-family: var(--mono); font-size: 12px;
  line-height: 1.7;
  word-break: break-all;
}
.lvl-error, .lvl-warn { color: var(--err); }
.lvl-warn { color: var(--warn); }
.lvl-info { color: var(--info); }
.sms-box {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--wash);
  font-size: 12.5px;
  white-space: pre-wrap;
  word-break: break-all;
}

/* 主题管理 */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.theme-card:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.theme-card.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.theme-preview { height: 62px; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.theme-preview i { display: block; width: 18px; height: 18px; border-radius: 5px; }
.theme-name { padding: 10px 14px 2px; font-weight: 650; font-size: 13px; }
.theme-desc { padding: 0 14px 13px; font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------
   16. 代码 / 选项卡 / 加载 / 商城
   ------------------------------------------------------------ */
.code-box, pre.code {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--wash);
  font-family: var(--mono); font-size: 12px; line-height: 1.75;
  color: var(--text);
  overflow-x: auto;
  white-space: pre;
}

.tabs {
  display: flex; gap: 2px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  position: relative;
  padding: 9px 14px;
  border: 0; background: none;
  color: var(--muted);
  font-size: 13px; font-weight: 550;
  cursor: pointer; white-space: nowrap;
  transition: color .15s;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active, .tabs button.is-active { color: var(--text); font-weight: 650; }
.tabs a.is-active::after, .tabs button.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px;
  height: 2px; background: var(--brand); border-radius: 2px;
}

.spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 卡密商城 · 方案 */
.shop-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: stretch;
}
@media (min-width: 980px) {
  /* 桌面端最多三列，5 个方案排成 3+2，不会出现一行四张再落单 */
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: border-color .18s, box-shadow .18s;
}
.plan:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.plan-hot {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 2.5%, var(--surface));
}
.plan-tag {
  position: absolute; top: 16px; right: 16px;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--tint-2);
  color: var(--brand);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.plan-name { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.plan-price {
  display: flex; align-items: baseline; gap: 2px;
  margin: 10px 0 4px;
  font-size: 34px; font-weight: 700; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.plan-price .cur { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan-desc { font-size: 12.5px; color: var(--muted); min-height: 34px; line-height: 1.7; }
.plan-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1 1 auto;
  margin: 20px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.plan-list li {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--text);
}
.plan-list li::before {
  content: ""; flex: none;
  width: 10px; height: 5px;
  border-left: 1.4px solid var(--brand);
  border-bottom: 1.4px solid var(--brand);
  transform: rotate(-45deg);
  opacity: .8;
}
.plan-list b { font-weight: 650; font-variant-numeric: tabular-nums; }
.plan form { margin: 0; }
.plan .btn.block { width: 100%; }

/* 后台商品编辑行 */
.row-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.row-item > .row-fields { grid-column: 1 / -1; }
.row-item > .btn-row { grid-column: 1 / -1; justify-content: flex-end; }
.row-item:first-of-type { border-top: 0; }
.row-fields { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; }
.row-fields > div { min-width: 0; }
.row-fields input[type="text"], .row-fields input[type="number"] { width: 100%; min-width: 76px; }
.row-fields label { margin-bottom: 4px; font-size: 11.5px; }
.row-id { display: flex; flex-direction: column; gap: 5px; min-width: 100px; padding-bottom: 9px; }
.row-actions { padding-bottom: 1px; }
.row-item .btn-row { flex: 0 0 auto; padding-bottom: 1px; }

/* ------------------------------------------------------------
   17. 工具类
   ------------------------------------------------------------ */
.dim { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.muted-block { color: var(--muted); font-size: 13px; line-height: 1.8; }
.accent-text { color: var(--brand); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.err-text { color: var(--err); font-weight: 600; }
.unit { font-size: 12.5px; font-weight: 550; color: var(--muted); margin-left: 4px; }
.v { font-weight: 600; }
.sub { font-size: 12px; color: var(--muted); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.flex-between {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}

.kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 16px; font-size: 13px; }
.kv > div:nth-child(odd) { color: var(--muted); font-weight: 500; }
.kv .v { font-weight: 550; min-width: 0; }
.kv .k { color: var(--muted); }

details > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: "+"; display: inline-block;
  width: 12px; color: var(--muted); font-family: var(--mono);
}
details[open] > summary::before { content: "−"; }

/* ------------------------------------------------------------
   18. 响应式骨架
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: calc(var(--topbar-h) + 1px);
    left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch;
    gap: 2px;
    padding: 12px 22px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    max-height: calc(100vh - var(--topbar-h));
    overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .navlink {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: var(--r-sm);
  }
  .navlink.is-active { background: var(--tint); }
  .navlink.is-active::after { display: none; }
  .nav .sep { display: none; }
  .nav .btn { margin-top: 8px; width: 100%; }
  .user-chip { align-self: flex-start; margin: 8px 0 0; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

@media (max-width: 660px) {
  .live-tbl th:nth-child(4), .live-tbl td:nth-child(4),
  .live-tbl th:nth-child(8), .live-tbl td:nth-child(8) { display: none; }
  table.tbl th, .table-wrap table th { padding: 8px 10px; }
  table.tbl td, .table-wrap table td { padding: 10px; }
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 32px); }
  main { padding: 24px 0 56px; }
  h1 { font-size: 22px; }
  .page-head { align-items: flex-start; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 12px; }
  #toasts { right: 12px; left: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
  .admin-nav { border-radius: var(--r-sm); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   19. 工作台骨架（左侧导航 + 顶栏动作位）
   ============================================================ */
.page { padding: 32px 0 72px; }

.app {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  z-index: 90;
}
.side-head { padding: 16px 16px 14px; border-bottom: 1px solid var(--line); }
.side-head .brand { font-size: 14.5px; }
.side-tag {
  margin-top: 9px;
  font-size: 11px; color: var(--muted);
  letter-spacing: .02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.side-nav { flex: 1 1 auto; overflow-y: auto; padding: 12px 10px 14px; }
.side-label {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px 7px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
}
.side-more { font-size: 11px; letter-spacing: .04em; color: var(--brand); }
.side-more:hover { text-decoration: underline; }

.side-link {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px 8px 12px; margin-bottom: 1px;
  border-radius: 4px;
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  transition: background .14s ease, color .14s ease;
}
.side-link:hover { background: var(--wash); color: var(--text); text-decoration: none; }
/* 选中态用左侧一道墨线，不再铺一块浅色胶囊 */
.side-link.on {
  background: transparent;
  color: var(--text); font-weight: 650;
}
.side-link.on::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 7px;
  width: 2px; border-radius: 2px; background: var(--brand);
}
.side-ico {
  width: 5px; height: 5px; flex: none;
  border-radius: 1px;
  background: currentColor; opacity: .35;
}
.side-link.on .side-ico { background: var(--brand); opacity: 1; }
.side-link.sub { padding-left: 26px; font-size: 13px; }
.side-link.sub.on { background: transparent; color: var(--brand); }
.side-link.sub.on::before { top: 9px; bottom: 9px; }
.side-link.sub.on .side-ico { display: none; }

.side-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}
.side-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.side-user-txt { min-width: 0; }
.side-user-txt b {
  display: block;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-user-txt span { font-size: 10.5px; color: var(--muted); }
.side-exit { font-size: 11.5px; color: var(--muted); flex: none; }
.side-exit:hover { color: var(--err); }

.app-main { display: flex; flex-direction: column; min-width: 0; }

.appbar {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(12px);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line);
}
.appbar-title {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--muted); white-space: nowrap;
}
.appbar-actions {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  justify-content: flex-end;
}
.side-toggle {
  display: none;
  width: 34px; height: 34px; flex: none;
  align-items: center; justify-content: center; flex-direction: column; gap: 4px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: transparent; cursor: pointer; padding: 0;
}
.side-toggle span { width: 14px; height: 1.4px; background: var(--text); border-radius: 2px; }

.canvas {
  padding: 26px 28px 72px;
  width: 100%;
  min-height: calc(100vh - 58px);
}

@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; left: 0; top: 0;
    width: 258px;
    transform: translateX(-101%);
    transition: transform .22s ease;
    box-shadow: var(--sh-2);
  }
  .side.open { transform: translateX(0); }
  body.side-open::after {
    content: ""; position: fixed; inset: 0; z-index: 80;
    background: color-mix(in srgb, var(--text) 30%, transparent);
  }
  .side-toggle { display: flex; }
  .appbar, .canvas { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 660px) {
  .appbar { height: 54px; gap: 8px; }
  .appbar-title { font-size: 11px; letter-spacing: .06em; }
  .canvas { padding-top: 18px; }
  .appbar-actions .btn { height: 32px; padding: 0 10px; font-size: 12.5px; }
}

/* ============================================================
   20. 工作台组件：区块头 / 今日条 / 账号卡 / 侧栏 / 竖排标签
   ============================================================ */
.flash-stack { margin-bottom: 18px; }
.flash-stack .flash:last-child { margin-bottom: 0; }

.blank {
  padding: 34px 22px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
}
.blank b { display: block; font-size: 14px; font-weight: 650; }
.blank p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.blank .btn { margin-top: 14px; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  margin: 0 0 12px;
}
.sec-head h2 { font-size: 14px; font-weight: 650; letter-spacing: .01em; }
.sec-head span { font-size: 12px; color: var(--muted); }

/* 今日条 */
.today {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 20px;
}
.today-cell { padding: 15px 18px 14px; border-left: 1px solid var(--line); min-width: 0; }
.today-cell:first-child { border-left: 0; }
.today-cell > span {
  display: block;
  font-size: 11.5px; color: var(--muted); letter-spacing: .04em;
}
.today-cell > b {
  display: block; margin-top: 5px;
  font-size: 24px; font-weight: 700; line-height: 1.2;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.today-cell > b i { font-style: normal; font-size: 12px; font-weight: 550; color: var(--muted); margin-left: 3px; }
.today-cell > em {
  display: block; margin-top: 2px;
  font-style: normal; font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.today-cell.is-warn > b { color: var(--warn); }
.today-cell.is-key > b { color: var(--brand); }
@media (max-width: 760px) {
  .today { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-cell:nth-child(3) { border-left: 0; }
  .today-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* 账号卡片 */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 12px;
}
.acc-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 15px 16px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.acc-card:hover {
  text-decoration: none;
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--sh-2);
  transform: translateY(-1px);
}
.acc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.acc-name {
  font-size: 14px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acc-state { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); flex: none; }
.acc-phone {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  margin-top: -4px;
}
.acc-nums {
  display: flex; gap: 18px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.acc-nums > div { min-width: 0; }
.acc-nums span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.acc-nums b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.acc-foot {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11px; color: var(--muted);
}
.acc-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 右栏 */
.rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rail .card + .card { margin-top: 0; }

/* 竖向标签（账号设置） */
.side-tabs { display: flex; flex-direction: column; gap: 1px; }
.side-tabs button {
  text-align: left;
  padding: 9px 12px;
  border: 0; border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.side-tabs button:hover { background: var(--wash); color: var(--text); }
.side-tabs button.is-active { background: var(--tint); color: var(--text); font-weight: 600; }

/* 账号页头部 */
.ws-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.ws-head .ws-name { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.ws-head .ws-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ws-head .ws-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* 折叠面板 */
.fold > summary {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "+"; font-family: var(--mono); }
.fold[open] > summary::before { content: "−"; }
.fold > summary:hover { color: var(--text); }

/* 底部危险区 */
.danger-zone {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 22px; padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--err) 22%, var(--line));
  border-radius: var(--r);
  background: color-mix(in srgb, var(--err) 3%, var(--surface));
}
.danger-zone p { font-size: 12px; color: var(--muted); max-width: 42em; }

/* ============================================================
   21. 商城价目表 / 细列表 / 兑换框 / 订单行
   ============================================================ */
.menu {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px; align-items: center;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  transition: background .14s ease;
}
.menu-row:first-child { border-top: 0; }
.menu-row:hover { background: var(--wash); }
.menu-name { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.menu-name h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.menu-desc {
  margin: 6px 0 0;
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
  max-width: 42em;
}
.menu-specs {
  display: flex; flex-wrap: wrap; align-items: center;
  margin-top: 11px;
  font-size: 11.5px; color: var(--muted);
}
.menu-specs span { padding: 0 11px; border-left: 1px solid var(--line-2); }
.menu-specs span:first-child { padding-left: 0; border-left: 0; }
.menu-specs b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.menu-buy {
  display: flex; flex-direction: row-reverse; align-items: center;
  gap: 14px; flex: none;
}
.menu-buy form { flex: none; }
.menu-price {
  font-size: 26px; font-weight: 700; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap;
  min-width: 74px; text-align: right;
}
.menu-price i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.menu-buy .btn { min-width: 100px; justify-content: center; }
.menu-stock { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 640px) {
  .menu-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px; }
  .menu-buy {
    flex-direction: row-reverse; align-items: center; justify-content: space-between;
    width: auto; min-width: 0;
    padding-top: 13px; border-top: 1px dashed var(--line);
  }
  .menu-price { font-size: 20px; }
}

/* 细列表：键值行，末行无线 */
.slim { display: flex; flex-direction: column; }
.slim-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  min-width: 0;
}
.slim-row:last-child { border-bottom: 0; padding-bottom: 0; }
.slim-row:first-child { padding-top: 0; }
.slim-k { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.slim-k small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.slim-v { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.slim-v b { color: var(--text); font-weight: 650; }

/* 卡密兑换框 */
.redeem-box { padding: 4px 20px 20px; }
.redeem-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  padding: 4px 4px 4px 16px;
  transition: border-color .15s ease;
}
.redeem-input:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line-2)); }
.redeem-input input {
  flex: 1 1 auto; min-width: 0;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 12px 0 !important; width: auto !important;
  font-family: var(--mono); font-size: 16px; letter-spacing: .12em;
  text-transform: uppercase;
}
.redeem-input input:focus { outline: 0; }
.redeem-input .btn { flex: none; }
@media (max-width: 560px) {
  .redeem-input { flex-direction: column; align-items: stretch; padding: 12px; gap: 10px; }
  .redeem-input input { padding: 4px 0 !important; font-size: 15px; letter-spacing: .08em; }
}

/* 订单行 */
.ord { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.ord-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto auto;
  gap: 16px; align-items: center;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.ord-row:first-child { border-top: 0; }
.ord-row:hover { background: var(--wash); }
.ord-id { font-family: var(--mono); font-size: 11.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ord-id small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); margin-top: 3px; }
.ord-amt { font-family: var(--mono); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ord-time { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 720px) {
  .ord-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 15px; }
  .ord-row .ord-amt { justify-self: end; }
  .ord-time { grid-column: 1 / -1; }
}

/* ============================================================
   22. 资源条 / 后台表格壳
   ============================================================ */
.meter-row + .meter-row { margin-top: 18px; }
.meter-head {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.meter-head span { font-size: 12.5px; font-weight: 600; color: var(--text); }
.meter-head b { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.meter-head em { font-style: normal; margin-left: auto; font-family: var(--mono); font-size: 11px; }
.meter {
  height: 6px; margin-top: 7px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.meter > i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .4s ease; }
.meter.warn > i { background: var(--warn); }
.meter.err > i { background: var(--err); }

/* 后台表格：贴边、无外层卡片圆角切割问题 */
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.tbl-wrap .tbl { margin: 0; }
.tbl-wrap .tbl th:first-child, .tbl-wrap .tbl td:first-child { padding-left: 18px; }
.tbl-wrap .tbl th:last-child, .tbl-wrap .tbl td:last-child { padding-right: 18px; }

/* ============================================================
   23. 后台用户行 / 卡密行 / 设置分栏
   ============================================================ */
.ulist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 10px;
}
@media (max-width: 960px) { .ulist { grid-template-columns: minmax(0, 1fr); } }
.urow {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 14px 16px;
}
.urow-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px; align-items: center;
}
.urow-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.urow-id .user-avatar { width: 30px; height: 30px; font-size: 13px; }
.urow-id > div { min-width: 0; }
.urow-id b {
  display: block; font-size: 13.5px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.urow-id small {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.urow-tags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.urow-nums { display: flex; gap: 26px; }
.urow-nums > div { text-align: right; }
.urow-nums span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.urow-nums b { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.urow-time { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; text-align: right; }
.urow-act {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 13px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.urow-act form { display: contents; }
@media (max-width: 860px) {
  .urow-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; }
  .urow-nums { grid-column: 1 / -1; gap: 26px; }
  .urow-nums > div { text-align: left; }
  .urow-time { grid-column: 1 / -1; text-align: left; }
}

/* 卡密行 */
.clist { display: flex; flex-direction: column; }
.crow {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
  gap: 16px; align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.crow:first-child { border-top: 0; }
.crow:hover { background: var(--wash); }
.crow-code { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; font-weight: 600; }
.crow-meta { color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .crow { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .crow-meta { grid-column: 1 / -1; }
}

/* ============================================================
   24. 日志流 / 公告行 / 设备卡
   ============================================================ */
.logfeed {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.lg-item {
  display: grid;
  grid-template-columns: 104px 50px 118px minmax(0, 1fr) auto;
  gap: 0 14px;
  align-items: center;
  padding: 7px 16px;
  border-top: 1px solid var(--line);
  transition: background .12s ease;
}
.lg-item:first-child { border-top: 0; }
.lg-item:hover { background: var(--wash); }
.lg-ts {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); white-space: nowrap;
}
.lg-act {
  font-size: 12px; font-weight: 650; letter-spacing: .01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lg-lv {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-family: var(--mono); letter-spacing: .06em;
  color: var(--muted);
}
.lg-lv::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.lg-lv.info::before { background: var(--info); }
.lg-lv.warn::before { background: var(--warn); }
.lg-lv.error::before { background: var(--err); }
.lg-msg {
  margin: 0;
  font-family: var(--mono); font-size: 11.5px;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lg-tags { display: flex; gap: 5px; }
.lg-tags span {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .lg-item {
    grid-template-columns: 96px 50px minmax(0, 1fr);
    gap: 3px 10px;
    padding: 9px 14px;
  }
  .lg-act { grid-column: 3; }
  .lg-msg { grid-column: 1 / -1; }
  .lg-tags { display: none; }
}

/* 公告行 */
.nrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px; align-items: start;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
}
.nrow:first-child { border-top: 0; }
.nrow-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; font-weight: 600; }
.nrow-text { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.7; }
.nrow-act { display: flex; gap: 5px; }
.nrow-act form { display: contents; }

/* 设备卡 */
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.dev-card {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 14px 15px;
}
.dev-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dev-name { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-kv { margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); display: grid; gap: 5px; font-size: 11.5px; }
.dev-kv > div { display: flex; justify-content: space-between; gap: 12px; }
.dev-kv span { color: var(--muted); flex: none; }
.dev-kv b { font-weight: 550; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 设备指纹：单独一行，允许折行，不再被截断 */
.dev-fp {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.dev-fp > span {
  display: block; margin-bottom: 4px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted);
}
.dev-fp code {
  display: block;
  padding: 0; border: 0; border-radius: 0;
  background: none;
  font-family: var(--mono); font-size: 11px; line-height: 1.65;
  color: var(--text);
  word-break: break-all;
}
.dev-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 11px;
  border-top: 1px dashed var(--line);
}
.dev-exp { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.dev-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* 主题卡：隐藏原生单选，选中态走 :has */
.theme-card { position: relative; }
.theme-card input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.theme-card:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.theme-card:has(input:checked) .theme-name::after {
  content: "✓";
  margin-left: 7px;
  color: var(--brand);
  font-weight: 700;
}

/* ============================================================
   25. 单栏认证页（登录 / 注册）
   ============================================================ */
.solo {
  min-height: calc(100vh - 250px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px 0 40px;
}
.solo-in { width: 100%; max-width: 392px; }
.solo-in.wide { max-width: 436px; }

.solo-head { margin-bottom: 20px; }
.solo-head .brand { margin-bottom: 24px; font-size: 14px; }
.solo-head h1 { font-size: 27px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.solo-head p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.75; color: var(--muted); }

.solo-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 22px 22px 24px;
}

.solo-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.solo-foot a { font-weight: 600; }

.solo-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  margin-top: 20px;
}
.solo-meta span {
  padding: 0 13px;
  border-left: 1px solid var(--line-2);
  font-size: 10.5px; color: var(--muted);
  letter-spacing: .02em;
}
.solo-meta span:first-child { border-left: 0; padding-left: 0; }

/* ============================================================
   26. 赞助：两栏 + 金额面板
   ============================================================ */
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 30px; align-items: start;
}
@media (max-width: 880px) {
  .pay-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

.pay-panel {
  position: sticky; top: 84px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 20px 20px 22px;
  box-shadow: var(--sh-1);
}
@media (max-width: 880px) { .pay-panel { position: static; } }

.amt-box {
  display: flex; align-items: center; gap: 8px;
  margin-top: 9px; padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--bg);
  transition: border-color .15s ease;
}
.amt-box:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line-2)); }
.amt-box > span { font-size: 18px; font-weight: 650; color: var(--muted); }
.amt-box input {
  flex: 1 1 auto; min-width: 0;
  border: 0 !important; background: transparent !important; box-shadow: none !important;
  width: auto !important; margin: 0 !important;
  padding: 13px 0 !important;
  font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.amt-box input:focus { outline: 0; }
.amt-box input::-webkit-outer-spin-button,
.amt-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.amt-grid {
  display: flex; flex-wrap: wrap;
  gap: 7px; margin-top: 10px;
}
.amt {
  flex: 1 1 56px;
  height: 34px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  font-size: 12.5px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.amt:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); background: var(--wash); }
.amt.on {
  border-color: var(--brand);
  background: var(--tint);
  color: var(--brand);
}

/* ============================================================
   27. 计划表单：模式分段 / 参数面板 / 星期 / 开关 / 粘性动作条
   ============================================================ */
/* hidden 兜底：flex/grid 组件会盖掉 UA 的 [hidden] */
[hidden] { display: none !important; }
.seg {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.seg-item {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 12px 10px;
  background: var(--surface);
  cursor: pointer;
  transition: background .14s ease;
}
.seg-item:hover { background: var(--wash); }
.seg-item input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg-item b { font-size: 13px; font-weight: 650; color: var(--text); line-height: 1.3; }
.seg-item span { font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.seg-item:has(input:checked) { background: var(--tint); }
.seg-item:has(input:checked) b { color: var(--brand); }
.seg-item:has(input:checked) span { color: color-mix(in srgb, var(--brand) 70%, var(--muted)); }
.seg-item:has(input:checked)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 2px; background: var(--brand);
}
@media (max-width: 700px) {
  .seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 参数面板 */
.seg-pane { margin-top: 18px; }
.pane-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.pane-row .field { min-width: 0; }
.pane-row .time-big { width: 208px; flex: none; }
.pane-row .gap-field { flex: 1 1 220px; max-width: 300px; }

/* 大号时间输入 */
.time-big input[type="time"] {
  font-family: var(--mono);
  font-size: 22px; font-weight: 650;
  letter-spacing: .01em;
  height: 50px;
  font-variant-numeric: tabular-nums;
}

/* 星期 */
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  font-size: 12.5px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.days label:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); }
.days input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.days label:has(input:checked) {
  border-color: var(--brand);
  background: var(--tint);
  color: var(--brand);
}

/* 平台三段 */
.pills {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--wash);
  gap: 2px;
}
.pills label {
  position: relative;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px; font-weight: 550;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s, color .14s, box-shadow .14s;
}
.pills input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pills label:has(input:checked) {
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  box-shadow: var(--sh-1);
}

/* 开关行 */
.switch {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--text);
  cursor: pointer; line-height: 1.5;
}
.switch input {
  position: relative;
  flex: none;
  width: 34px; height: 20px;
  margin: 0;
  border-radius: 999px;
  background: var(--line-2);
  accent-color: transparent;
  cursor: pointer;
  transition: background .16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.switch input::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transition: transform .16s ease;
}
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(14px); }
.switch span { min-width: 0; }

.switch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
@media (max-width: 640px) { .switch-grid { grid-template-columns: minmax(0, 1fr); } }

/* 粘性保存条：贴在卡片底部，滚到哪都能点 */
.plan-actions {
  position: sticky; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 20px -20px -18px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 0 var(--r) var(--r);
}
.plan-actions .tiny { min-width: 0; }

/* 分区小节标题（表单内） */
.f-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

/* ============================================================
   28. 设置页：左侧分区 + 行内设置项
   ============================================================ */
.set-grid {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 34px; align-items: start;
}
.set-grid > div { max-width: 820px; }
.set-nav {
  position: sticky; top: 78px;
  display: flex; flex-direction: column; gap: 1px;
}
.set-nav a {
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12.5px; font-weight: 500;
  color: var(--muted);
  transition: background .14s, color .14s;
}
.set-nav a:hover { background: var(--wash); color: var(--text); text-decoration: none; }
.set-nav a.on { background: var(--tint); color: var(--text); font-weight: 650; }

.set-sec { scroll-margin-top: 82px; }
.set-sec + .set-sec { margin-top: 32px; }
.set-sec > h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 2px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
}
.set-sec > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.set-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 316px;
  gap: 26px; align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: 0; }
.set-desc b { display: block; font-size: 13px; font-weight: 600; line-height: 1.5; }
.set-desc span {
  display: block; margin-top: 3px;
  font-size: 11.5px; line-height: 1.65; color: var(--muted);
}
.set-ctl { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.set-row.is-stack { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; border-bottom: 0; }

/* 题型选择卡：自动 / 10 种 / 关闭 */
.kind-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; margin: 10px 0 6px;
}
.kind-card {
  position: relative; display: block;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
.kind-card input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.kind-card b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.kind-card span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.kind-card:hover { border-color: var(--brand); }
.kind-card:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.kind-card:has(input:checked) b { color: var(--brand); }
.kind-card:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.kind-card.is-off b { color: var(--muted); }
@media (max-width: 1100px) { .kind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kind-grid { grid-template-columns: minmax(0, 1fr); } }
.set-ctl input:not([type="checkbox"]), .set-ctl select { width: 100%; }
.set-ctl textarea { width: 100%; }
.set-ctl .hint { margin-top: 0; }
.set-ctl input[type="number"] { max-width: 190px; }
.set-ctl .switch { justify-content: flex-start; }

@media (max-width: 900px) {
  .set-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .set-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .set-nav a { padding: 5px 10px; background: var(--wash); font-size: 12px; }
  .set-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 0; }
}

/* ============================================================
   29. 账号设置：属性行 + 行内编辑
   ============================================================ */
.prow {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.prow:last-of-type { border-bottom: 0; }
.prow-k { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.prow-v {
  font-size: 13px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
}
.prow-v.mono { font-family: var(--mono); font-size: 12px; }
.prow-a { flex: none; min-width: 44px; text-align: right; }

.link-btn {
  border: 0; background: none; padding: 0;
  font-size: 12px; font-weight: 600;
  color: var(--brand); cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

.prow-edit {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
}
.prow-edit input { flex: 1 1 200px; max-width: 300px; }
@media (max-width: 560px) {
  .prow { grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; }
}

/* ============================================================
   30. 管理页：内联生成条 / 公告编辑器 / 商品卡 / 色值行
   ============================================================ */

/* 一行铺开的小表单：标签在上，动作贴底 */
.inline-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 136px)) minmax(0, 1fr) auto;
  gap: 14px 16px;
  align-items: end;
  padding: 18px 20px 20px;
}
.inline-form .if-cell {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
}
.inline-form .if-cell > span {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}
.inline-form input { height: 36px; font-size: 13px; }
.inline-form .if-go { display: flex; }
.inline-form .if-go .btn {
  height: 36px; min-width: 96px;
  justify-content: center;
}
.inline-form.if-4 { grid-template-columns: 132px minmax(0, 1.5fr) 78px 88px; }
.inline-form .if-wide { grid-column: 1 / -1; }
.inline-form .if-go.is-end { justify-content: flex-end; }
@media (max-width: 860px) {
  .inline-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form.if-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-form .if-cell.is-wide { grid-column: 1 / -1; }
  .inline-form .if-go { grid-column: 1 / -1; }
  .inline-form .if-go .btn { width: 100%; }
}

/* 横向规则条 */
.rule-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
  padding: 16px 20px;
}
.rule-strip > div {
  min-width: 0;
  padding: 0 18px;
  border-left: 1px solid var(--line);
}
.rule-strip > div:first-child { padding-left: 0; border-left: 0; }
.rule-strip > div > span {
  display: block;
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--muted);
}
.rule-strip > div > b {
  display: block; margin-top: 5px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text);
}
.rule-strip em {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 11px; color: var(--muted);
}@media (max-width: 760px) {
  .rule-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .rule-strip > div { padding: 0 14px; }
  .rule-strip > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* 公告编辑器：通栏，标题在上，正文居中，属性条在底 */
.compose { padding: 0; overflow: hidden; }
.compose-title { padding: 20px 22px 0; }
.compose-title input[type="text"] {
  width: 100%; height: 42px;
  padding: 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: none;
  font-size: 17px; font-weight: 650;
  letter-spacing: -.01em;
  box-shadow: none;
}
.compose-title input[type="text"]:focus {
  border-bottom-color: var(--brand);
  box-shadow: none;
}
.compose-body { padding: 0 22px; }
.compose-body textarea {
  width: 100%; min-height: 118px;
  padding: 14px 0; margin: 0;
  border: 0; border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: 13px; line-height: 1.85;
  resize: vertical;
  box-shadow: none;
}
.compose-body textarea:focus { box-shadow: none; }
.compose-foot {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}
.compose-foot .cf-lbl {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--muted);
}
.compose-foot .cf-go { margin-left: auto; display: flex; gap: 14px; align-items: center; }
@media (max-width: 700px) {
  .compose-foot { gap: 12px; }
  .compose-foot .cf-go { margin-left: 0; width: 100%; }
  .compose-foot .cf-go .btn { width: 100%; }
}

/* 三段小切换（级别、状态等） */
.seg-mini {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}
.seg-mini label { position: relative; display: block; }
.seg-mini label + label { border-left: 1px solid var(--line-2); }
.seg-mini input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.seg-mini i {
  display: block;
  padding: 5px 13px;
  font-style: normal; font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  transition: background .14s, color .14s;
}
.seg-mini label:hover i { background: var(--wash); }
.seg-mini label:has(input:checked) i {
  background: var(--tint); color: var(--text); font-weight: 650;
}

/* 商品卡：价格放大，属性横排，动作贴底 */
.prod-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 12px;
}
.prod {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.prod-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 16px; align-items: start;
}
.prod-top .f-label { margin-bottom: 5px; }
.prod-name input {
  width: 100%; height: 34px;
  font-size: 14.5px; font-weight: 600;
}
.prod-name small {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}
.prod-price .price-in {
  display: flex; align-items: center; gap: 5px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.prod-price .price-in i {
  font-style: normal;
  font-size: 14px; font-weight: 600;
  color: var(--muted);
}
.prod-price .price-in input {
  flex: 1; width: 100%; min-width: 0; height: 36px;
  padding: 0; border: 0; background: none; box-shadow: none;
  font-size: 18px; font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.prod-price .price-in input:focus { box-shadow: none; }
.prod-meta {
  display: grid;
  grid-template-columns: 76px 76px 88px minmax(0, 1fr);
  gap: 10px;
}
.prod-meta .f-cell {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0;
}
.prod-meta .f-cell > span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  color: var(--muted);
}
.prod-meta input { height: 32px; font-size: 12.5px; }
.prod-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.prod-acts { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.prod-acts form { display: contents; }
@media (max-width: 520px) {
  .prod-top { grid-template-columns: minmax(0, 1fr); }
  .prod-meta { grid-template-columns: 1fr 1fr; }
  .prod-meta .is-wide { grid-column: 1 / -1; }
}

/* 色值行：色块 + 名称 + 覆盖输入 */
.swatch-list { display: flex; flex-direction: column; }
.swatch-row {
  display: grid;
  grid-template-columns: 32px 118px minmax(0, 1fr);
  gap: 14px; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.swatch-row:last-child { border-bottom: 0; }
.swatch-row input[type="color"] {
  width: 32px; height: 32px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}
.swatch-k b { display: block; font-size: 12.5px; font-weight: 600; }
.swatch-k small {
  display: block; margin-top: 2px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--muted);
}
.swatch-row input[type="text"] { height: 32px; font-size: 12px; font-family: var(--mono); }
.swatch-dot {
  display: block; width: 32px; height: 32px;
  border: 1px dashed var(--line-2);
  background: var(--wash);
}
.palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pal i {
  display: block; height: 38px;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.pal span {
  display: block; margin-top: 5px;
  font-family: var(--mono); font-size: 9.5px;
  color: var(--muted); text-align: center;
}
@media (max-width: 560px) {
  .swatch-row { grid-template-columns: 32px minmax(0, 1fr); }
  .swatch-row .swatch-in { grid-column: 1 / -1; }
}

/* ============================================================
   31. 细节打磨：条目节奏 / 数字对齐 / 空位与焦点
   ============================================================ */

/* 数字统一等宽，纵向扫读时不抖 */
.today-cell > b, .acc-nums b, .urow-nums b, .ord-amt, .slim-v,
.menu-price, .crow-meta, .prow-v, .rule-strip > div > b {
  font-variant-numeric: tabular-nums;
}

/* 分区标题：右侧说明贴基线，过长时省略，不挤标题 */
.sec-head span { max-width: 62%; text-align: right; }

/* 指标条：分母 / 单位比主数字轻一档 */
.today-cell > b .unit, .acc-nums b .unit {
  display: inline;
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin-left: 3px; letter-spacing: 0;
}
.acc-nums b .unit { font-size: 12px; margin-left: 1px; }
.today-cell > b i { margin-left: 3px; letter-spacing: 0; }

/* 账号卡：两栏数字中间一条细线，标签更像标签 */
.acc-nums > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.acc-nums b { font-size: 16px; }
.acc-nums span { font-size: 10px; font-weight: 600; letter-spacing: .06em; }

/* 账号网格补位卡：虚线「＋ 新账号」，让稀疏的网格不空半边 */
.acc-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; min-height: 134px; padding: 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: transparent;
  color: var(--muted);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.acc-tile .plus { font-size: 19px; line-height: 1; font-weight: 400; }
.acc-tile:hover { border-color: var(--brand); color: var(--brand); background: var(--tint); }

/* 价目表：名称 / 价格 / 按钮 三列，价格右对齐便于纵向比价 */
.menu-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; }
.menu-price {
  display: flex; align-items: baseline; justify-content: flex-end; gap: 2px;
  min-width: 78px;
  font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  text-align: right;
  color: var(--accent);          /* 价签用强调色，全页只有这里变暖 */
}
.menu-price i { margin: 0; font-size: 13px; font-weight: 600; opacity: .8; }
.menu-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 112px; }
.menu-cta .btn { min-width: 104px; justify-content: center; }
.menu-stock { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; text-align: right; }
@media (max-width: 640px) {
  .menu-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .menu-price { justify-content: flex-start; font-size: 20px; }
  .menu-cta { flex-direction: row; align-items: center; justify-content: space-between; }
  .menu-cta .btn { width: auto; }
  .menu-stock { text-align: left; }
}

/* 输入框 + 按钮成组，别再上下摞 */
.inline-field { display: flex; gap: 8px; align-items: stretch; }
.inline-field input { flex: 1; min-width: 0; }
.inline-field .btn { flex: none; }

/* 可点的整行：整行都能点，悬停有底色，箭头轻微右移 */
a.slim-row.is-link {
  display: flex;
  border-radius: 6px;
  color: inherit;
  transition: background .14s ease;
}
/* 卡片里的行做一点内缩，悬停底色不会顶到卡片边 */
.card-body a.slim-row.is-link { margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
a.slim-row.is-link:hover { background: var(--wash); text-decoration: none; }
a.slim-row.is-link .slim-v { transition: color .14s ease, transform .14s ease; }
a.slim-row.is-link:hover .slim-v { color: var(--brand); transform: translateX(2px); }

/* 键盘操作时看得见焦点（表单控件已有描边+柔光，不再叠 outline） */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
}

/* 空态居中，动作明确 */
.blank { text-align: center; }
.blank .btn { margin-top: 14px; }

/* 三步引导：只在账号很少时出现，告诉人下一步干什么 */
/* 控制台的三步引导（与首页四步流程分开，之前同名互相踩） */
.howto {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line);
  overflow: hidden;
}
.howto > div { padding: 14px 16px; background: var(--surface); min-width: 0; }
.howto b { display: block; font-size: 12.5px; font-weight: 650; }
.howto span {
  display: block; margin-top: 4px;
  font-size: 11.5px; line-height: 1.7; color: var(--muted);
}
.howto em {
  font-style: normal; margin-right: 6px;
  font-family: var(--mono); font-size: 10.5px; color: var(--brand);
}
@media (max-width: 720px) { .howto { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   32. 人机验证（10 种题型）：题面 / 点选格 / 单选
   ============================================================ */
.cap { padding: 14px 15px 15px; }
.cap-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.cap-head .cap-label { flex: none; }
.cap-head .cap-refresh { margin-left: auto; }
.cap-kind {
  padding: 1px 7px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: var(--surface);
  font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
.cap-kind:empty { display: none; }

.cap-body { display: block; min-width: 0; transition: opacity .15s ease; }
.cap-body.is-loading { opacity: .45; }
.cap-body > * + * { margin-top: 8px; }

/* 中文说明型题面：正文字号，不走等宽 */
.cap-q {
  font-size: 14px; font-weight: 600; line-height: 1.6;
  letter-spacing: .01em;
  color: var(--text);
  word-break: break-word;
}

/* 题面：允许折行，长题不再被裁 */
.cap-expr {
  display: block; width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 15px; font-weight: 600; line-height: 1.65;
  letter-spacing: .08em;
  white-space: normal;
  word-break: break-word;
  user-select: none;
}
.cap-sub {
  margin-top: 8px;
  font-size: 11.5px; line-height: 1.6;
  color: var(--muted);
}
.cap-sub:empty { display: none; }
.cap-input { width: 100%; margin-top: 10px; }
.cap-input-hide { display: none !important; }
.cap-stub { font-size: 12px; color: var(--muted); }

/* 点选格：字数 / 数字混用，选中显示序号 */
.cap-grid { display: grid; gap: 6px; }
.cap-cell {
  position: relative;
  height: 42px; padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.cap-cell:hover { border-color: var(--brand); }
.cap-cell.is-on {
  border-color: var(--brand);
  background: var(--tint);
  color: var(--brand);
}
.cap-cell.is-on::after {
  content: attr(data-order);
  position: absolute; top: 2px; right: 5px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  color: var(--brand);
}

/* 单选：两列按钮，选项里不藏答案 */
.cap-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cap-opt {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
}
/* 无脚本兜底的真单选：藏起圆点，选中态由 :has 表现 */
.cap-opt input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.cap-opt b { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--muted); }
.cap-opt span { min-width: 0; }
.cap-opt:hover { border-color: var(--brand); }
.cap-opt.is-on,
.cap-opt:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.cap-opt.is-on b,
.cap-opt:has(input:checked) b { color: var(--brand); }
.cap-cell:focus-visible,
.cap-opt:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

@media (max-width: 560px) {
  .cap-choice { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   33. 外观编辑台：预设卡 / 实时预览 / 对比度自检
   ============================================================ */
/* 选中态：描边加粗 + 内部细线，不用外发光 */
.theme-card:has(input:checked),
.theme-card.is-active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.theme-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }

/* 标题栏的保存状态 */
.theme-state {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--muted);
}
.theme-state::before {
  content: ""; width: 5px; height: 5px; border-radius: 1px;
  background: var(--ok);
}
.theme-state[data-state="dirty"] { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); }
.theme-state[data-state="dirty"]::before { background: var(--warn); }

/* 预览样张 */
.tryout {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}
.tryout-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tryout-mark {
  margin-left: auto;
  font-size: 11px; font-weight: 650; letter-spacing: .04em;
  color: var(--accent);
}
.tryout-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.tryout-k { font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.tryout-v {
  margin-top: 2px;
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.tryout-v span { font-size: 11.5px; font-weight: 550; color: var(--muted); margin-left: 3px; }
.tryout-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.tryout-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tryout-acts a { font-size: 12.5px; font-weight: 600; }

/* 对比度读数 */
.cw { display: flex; flex-direction: column; }
.cw-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.cw-row:last-child { border-bottom: 0; }
.cw-row span { color: var(--muted); }
.cw-row b { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ok); }
.cw-row.is-bad b { color: var(--err); }

/* 圆角滑杆 */
.radius-in { display: flex; align-items: center; gap: 10px; }
.radius-in input[type="range"] {
  flex: 1 1 auto; min-width: 0;
  accent-color: var(--brand);
  height: 32px; padding: 0;
}
.radius-in input[type="text"] { width: 74px; flex: none; }
.swatch-in input.is-invalid {
  border-color: var(--err);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--err) 16%, transparent);
}

/* 随机池：点掉 = 该题型不参与自动抽题 */
.cap-pool { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 10px; }
.pool-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.pool-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pool-chip::before {
  content: ""; width: 6px; height: 6px; border-radius: 1px;
  background: var(--ok); flex: none;
}
.pool-chip:hover { border-color: var(--brand); }
.pool-chip:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.pool-chip:has(input:checked) {
  border-style: dashed; background: var(--wash); color: var(--muted);
}
.pool-chip:has(input:checked)::before { background: var(--muted); }
.pool-chip:has(input:checked) span { text-decoration: line-through; }


/* ============================================================
   34. 短信接码 / 账号体检 / 个人配色
   ------------------------------------------------------------
   沿用同一套 1px 分界与中性底，不引入新的颜色体系。
   ============================================================ */
.sms-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.sms-intro-main { padding: 26px 28px; min-width: 0; }
.sms-intro-main h1 {
  margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.01em;
}
.sms-intro-main p {
  margin: 9px 0 0; max-width: 620px;
  font-size: 13px; line-height: 1.9; color: var(--muted);
}
.sms-intro-main p b { color: var(--text); font-weight: 650; }
.sms-intro-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.sms-intro-links a {
  font-size: 12.5px; font-weight: 600; color: var(--brand);
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  padding-bottom: 2px;
}
.sms-intro-links a:hover { border-bottom-color: var(--brand); }
.sms-intro-state {
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
  background: var(--wash);
}
.sms-intro-state > span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.sms-intro-state > b { display: block; margin-top: 8px; font-size: 15px; font-weight: 650; }
.sms-intro-state > em {
  display: block; margin-top: 5px; font-size: 11.5px;
  font-style: normal; color: var(--muted); line-height: 1.7;
}
@media (max-width: 720px) {
  .sms-intro { grid-template-columns: minmax(0, 1fr); }
  .sms-intro-state { border-left: 0; border-top: 1px solid var(--line); }
}

.sms-token-field input { font-size: 12.5px; letter-spacing: .02em; }
.sms-more-body { padding: 16px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.sms-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; }
.sms-checks .switch { font-size: 12.5px; }

.sms-steps { display: flex; flex-direction: column; }
.sms-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; line-height: 1.7;
}
.sms-step:last-of-type { border-bottom: 0; }
.sms-step > i {
  flex: none; width: 7px; height: 7px; margin-top: 7px;
  border-radius: 2px; background: var(--line-2);
}
.sms-step.good > i { background: var(--ok); }
.sms-step.bad > i { background: var(--err); }
.sms-step.idle > i { background: var(--line-2); }
.sms-step b { font-weight: 650; }
.sms-step span { color: var(--muted); }
.sms-step.bad span { color: var(--err); }
.sms-step.idle span { color: var(--muted); }
.sms-hint {
  margin: 12px 0 0; padding: 10px 12px;
  border-left: 2px solid var(--line-2);
  background: var(--wash);
  font-size: 12px; line-height: 1.8; color: var(--muted);
}

.sms-inbox-list { display: flex; flex-direction: column; }
.sms-msg { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sms-msg:last-child { border-bottom: 0; }
.sms-msg-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sms-msg-top > span { font-size: 12.5px; font-weight: 650; font-family: var(--mono); }
.sms-msg-top > em {
  font-size: 11px; font-style: normal; color: var(--muted);
  padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px;
}
.sms-msg-top > b {
  margin-left: auto; font-family: var(--mono); font-size: 14px;
  letter-spacing: .08em; color: var(--accent);
}
.sms-msg > p {
  margin: 7px 0 0; font-size: 12.5px; line-height: 1.75;
  color: var(--text); word-break: break-word;
}
.sms-msg-foot {
  display: flex; gap: 14px; margin-top: 7px;
  font-size: 11px; color: var(--muted); font-family: var(--mono);
}

.sms-faq { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.sms-faq:last-child { border-bottom: 0; }
.sms-faq b { display: block; font-size: 12.5px; font-weight: 650; }
.sms-faq span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.75; color: var(--muted); }
.sms-faq code, .step-desc code, .card-body code {
  font-family: var(--mono); font-size: .94em;
  padding: 1px 4px; border-radius: 3px; background: var(--wash-2);
}

.sms-poll {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--wash);
  font-size: 11.5px; color: var(--muted); line-height: 1.5;
}
.sms-poll-dot { flex: none; width: 6px; height: 6px; border-radius: 2px; background: var(--line-2); }
.sms-poll[data-kind="waiting"] .sms-poll-dot { background: var(--warn); }
.sms-poll[data-kind="done"] .sms-poll-dot { background: var(--ok); }
.sms-poll[data-kind="done"] { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.sms-poll[data-kind="error"] .sms-poll-dot,
.sms-poll[data-kind="timeout"] .sms-poll-dot { background: var(--err); }
.sms-poll a { color: var(--brand); font-weight: 600; }

.health-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center; gap: 8px;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.health-row:last-child { border-bottom: 0; }
.health-row > b { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-row > span { display: flex; gap: 4px; flex-wrap: wrap; }
.health-row .tag { font-size: 10.5px; padding: 1px 5px; }
.health-row > em { font-style: normal; color: var(--muted); font-size: 12px; }
.health-row:hover > b { color: var(--brand); }

.sms-nudge { border-left: 3px solid var(--brand); }
.sms-nudge b { font-size: 13px; font-weight: 650; }
.sms-nudge p { margin: 6px 0 12px; font-size: 12px; line-height: 1.8; color: var(--muted); }

.theme-picks {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.theme-pick {
  position: relative; display: flex; flex-direction: column; gap: 5px;
  padding: 12px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer;
}
.theme-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-pick:has(input:checked) {
  border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand);
}
.theme-pick:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.theme-swatch {
  display: flex; align-items: flex-end; gap: 4px;
  height: 34px; padding: 6px; margin-bottom: 4px;
  border: 1px solid var(--line); border-radius: 4px;
}
.theme-swatch i { display: block; width: 16px; height: 16px; border-radius: 3px; }
.theme-swatch i + i { width: 8px; height: 8px; }
.theme-swatch.is-follow { background: var(--wash); }
.theme-swatch.is-follow i {
  width: 100%; height: 100%; border: 1px dashed var(--line-2);
  background: transparent; border-radius: 3px;
}
.theme-pick > b { font-size: 12.5px; font-weight: 650; }
.theme-pick > small { font-size: 11px; line-height: 1.6; color: var(--muted); }


/* 接码中心：四步引导收成一张白底卡，避免和首页 .steps 的裸线框混在一起 */
#sms-root > .steps {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
#sms-root > .steps .step { border-bottom: 0; }
#sms-root > .steps .step:last-child { border-bottom: 0; }
@media (max-width: 880px) {
  #sms-root > .steps .step:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 540px) {
  #sms-root > .steps .step:nth-child(even) { border-left: 0; }
}

/* 窄栏里别用四列 rule-strip，改成两行对齐的键值 */
.sms-scope { margin-top: 14px; border-top: 1px solid var(--line); }
.sms-scope > div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.sms-scope > div:last-child { border-bottom: 0; }
.sms-scope span { font-size: 11.5px; color: var(--muted); }
.sms-scope b { font-family: var(--mono); font-size: 11.5px; font-weight: 600; }


/* 无人值守重登：最近一次结果 */
.sms-relink-note {
  margin-top: 14px; padding: 11px 13px;
  border-left: 2px solid var(--line-2);
  background: var(--wash);
  font-size: 12px; line-height: 1.8;
}
.sms-relink-note b { display: block; font-weight: 650; margin-bottom: 3px; }
.sms-relink-note span { color: var(--muted); }
.sms-relink-note em {
  display: block; margin-top: 5px; font-style: normal;
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.sms-relink-note.ok { border-left-color: var(--ok); }
.sms-relink-note.ok b { color: var(--ok); }
.sms-relink-note.bad { border-left-color: var(--warn); }
.sms-relink-note.bad b { color: var(--warn); }


/* 35. 后台接码概览：数字在上、标签在下，一行读完状态 */
.sms-ov-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.sms-ov-stats > div {
  display: flex; flex-direction: column; gap: 5px;
  padding: 14px 18px; border-right: 1px solid var(--line);
}
.sms-ov-stats > div:last-child { border-right: 0; }
.sms-ov-stats span { font-size: 11.5px; color: var(--muted); }
.sms-ov-stats b {
  font-size: 15px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sms-ov-note {
  padding: 10px 18px; font-size: 12px; line-height: 1.75;
  color: var(--warn); background: var(--warn-soft);
  border-bottom: 1px solid var(--line);
}
.sms-ov-note.ok {
  color: var(--ok); background: var(--ok-soft);
}
.sms-ov-note .mono { font-size: 11.5px; }
.sms-ov { min-width: 720px; }
.sms-ov td em {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 11px;
}
.sms-ov td .mono { font-size: 11.5px; color: var(--muted); }
.sms-ov td .tag { margin-right: 4px; }
@media (max-width: 720px) {
  .sms-ov-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sms-ov-stats > div:nth-child(2) { border-right: 0; }
  .sms-ov-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}


/* 36. 账号接码设备 / 接码运行台账 / 验证码倒计时 */
.code-ttl {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: 8px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--wash);
  font-size: 11.5px; color: var(--muted);
}
.code-ttl b {
  font-family: var(--mono); font-size: 12px; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.code-ttl[data-urgent="1"] {
  border-color: var(--warn); background: var(--warn-soft);
}
.code-ttl[data-urgent="1"] b { color: var(--warn); }
.sms-dev {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.sms-dev > label {
  display: block; margin-bottom: 7px;
  font-size: 11.5px; color: var(--muted);
}
.sms-dev-row { display: flex; gap: 8px; align-items: center; }
.sms-dev-row input { flex: 1; min-width: 0; }
.sms-dev .hint { margin: 7px 0 0; font-size: 11.5px; line-height: 1.7; }
.sms-dev #sms-device-note { display: block; margin-top: 5px; }

.sms-ev-stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.sms-ev-stats > div {
  display: flex; flex-direction: column; gap: 5px;
  padding: 13px 16px; border-right: 1px solid var(--line);
}
.sms-ev-stats > div:last-child { border-right: 0; }
.sms-ev-stats span { font-size: 11.5px; color: var(--muted); }
.sms-ev-stats b {
  font-size: 14.5px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sms-ev-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 18px;
  border-bottom: 1px solid var(--line);
}
.sms-ev { min-width: 660px; }
.sms-ev td .mono { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sms-ev td em {
  display: block; margin-top: 3px;
  font-style: normal; font-size: 11px;
}
@media (max-width: 900px) {
  .sms-ev-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sms-ev-stats > div { border-bottom: 1px solid var(--line); }
  .sms-ev-stats > div:nth-child(3) { border-right: 0; }
}
@media (max-width: 720px) {
  .sms-ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sms-ev-stats > div:nth-child(2n) { border-right: 0; }
  .sms-dev-row { flex-wrap: wrap; }
}


/* 37. 我的接码用量 */
.sms-usage-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.sms-usage-stats > div {
  padding: 11px 14px; border-right: 1px solid var(--line);
}
.sms-usage-stats > div:last-child { border-right: 0; }
.sms-usage-stats span {
  display: block; font-size: 11.5px; color: var(--muted);
}
.sms-usage-stats b {
  display: block; margin-top: 4px; font-size: 14px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.sms-usage-recent { margin-top: 12px; }
.sms-usage-row {
  display: grid; grid-template-columns: 150px 78px 1fr 44px;
  gap: 8px; align-items: baseline;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.sms-usage-row:last-child { border-bottom: 0; }
.sms-usage-row .mono { font-size: 11px; color: var(--muted); }
.sms-usage-row b { font-weight: 600; }
.sms-usage-row em { font-style: normal; font-size: 11px; text-align: right; }
.sms-usage-row p {
  grid-column: 1 / -1; margin: 2px 0 0;
  font-size: 11.5px; color: var(--muted); line-height: 1.65;
}
@media (max-width: 720px) {
  .sms-usage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sms-usage-stats > div:nth-child(2n) { border-right: 0; }
  .sms-usage-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .sms-usage-row { grid-template-columns: 1fr 1fr; }
}


/* 38. 接码趋势图（纯 CSS 柱状，不引外部图表库） */
.sms-trend-wrap {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.sms-trend-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.sms-trend-head > span:first-child { font-size: 12.5px; font-weight: 600; }
.sms-trend-legend { display: flex; gap: 12px; }
.sms-trend-legend em {
  display: flex; align-items: center; gap: 5px;
  font-style: normal; font-size: 11.5px; color: var(--muted);
}
.sms-trend-legend i {
  display: inline-block; width: 9px; height: 9px; border-radius: 2px;
}
.sms-trend-legend .lg-send { background: var(--line-2); }
.sms-trend-legend .lg-hit {
  background: color-mix(in srgb, var(--brand) 72%, transparent);
}
.sms-trend-legend .lg-other {
  background: color-mix(in srgb, var(--info) 45%, transparent);
}
.sms-trend-legend .lg-fail {
  background: color-mix(in srgb, var(--err) 58%, transparent);
}
.sms-trend {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px; align-items: end;
}
.sms-trend-col {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.sms-trend-bars {
  display: flex; align-items: flex-end; justify-content: center;
  height: 104px; width: 100%;
}
/* 一根柱子 = 当天全部接码事件，分段从下往上：发码 / 取到码 / 其它 / 异常 */
.sms-trend-bars .stack {
  width: 100%; max-width: 30px; min-height: 2px;
  display: flex; flex-direction: column-reverse; justify-content: flex-start;
  border-radius: 3px 3px 0 0; overflow: hidden;
}
.sms-trend-bars .seg {
  display: block; width: 100%; flex: 0 0 auto;
}
.seg-send { background: var(--line-2); }
.seg-hit { background: color-mix(in srgb, var(--brand) 72%, transparent); }
.seg-other { background: color-mix(in srgb, var(--info) 45%, transparent); }
.seg-fail { background: color-mix(in srgb, var(--err) 58%, transparent); }
.sms-trend-n {
  font-size: 11.5px; font-weight: 650; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sms-trend-x {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
}
.sms-trend-top {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.sms-trend-top > .tiny { display: block; margin-bottom: 8px; }
.sms-trend-user {
  display: flex; align-items: baseline; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed var(--line);
  font-size: 12px;
}
.sms-trend-user:last-child { border-bottom: 0; }
.sms-trend-user b { min-width: 90px; }
.sms-trend-user span { color: var(--muted); }
.sms-trend-user em {
  margin-left: auto; font-style: normal; font-size: 11.5px;
}
