/* ============================================================
   早睡商店 · 后台样式
   与商城样式同源（同一套变量和组件），只保留后台页面用到的规则；后台独立部署，所以单独一份。
   ============================================================ */
:root {
  --header-h: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .4s ease, color .4s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(255, 46, 196, .35); }
/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d2a55, #2a2a45);
  border-radius: 8px;
  border: 2px solid var(--bg-deep);
}
::-webkit-scrollbar-thumb:hover { background: #4d3570; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--violet);
  box-shadow: 0 0 12px rgba(185, 103, 255, .35);
}
.icon-btn .material-symbols-rounded { font-size: 19px; }
#volumeSlider {
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--magenta) var(--fill, 65%), var(--line) var(--fill, 65%));
  outline: none;
  cursor: pointer;
}
#volumeSlider::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--magenta);
  box-shadow: 0 0 8px rgba(255, 46, 196, .7);
}
/* ============ 按钮体系 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn .material-symbols-rounded { font-size: 19px; }
.btn--primary {
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 4px 22px rgba(255, 46, 196, .35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 46, 196, .5), 0 0 18px rgba(139, 92, 246, .4);
}
.btn--primary:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--line-bright);
}
.btn--outline:hover {
  color: var(--text);
  border-color: var(--violet);
  box-shadow: inset 0 0 18px rgba(139, 92, 246, .12), 0 0 14px rgba(139, 92, 246, .2);
}
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* ============ 通用 Section ============ */
.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px 60px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.field label small { color: var(--text-faint); font-weight: 400; }
.field select, .field input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus, .field input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18);
}
.form-error {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(248, 113, 113, .45);
  background: rgba(248, 113, 113, .1);
  color: var(--red);
  font-size: 13px;
}
/* 状态徽章 */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line-bright);
  color: var(--text-dim);
}
.order-status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.st-pending { color: var(--yellow); border-color: rgba(250, 204, 21, .4); }
.st-paid { color: var(--green); border-color: rgba(74, 222, 128, .4); }
.st-processing { color: var(--cyan); border-color: rgba(0, 229, 255, .4); }
.st-done { color: var(--violet); border-color: rgba(185, 103, 255, .4); }
.st-refunded { color: var(--red); border-color: rgba(248, 113, 113, .4); }
.st-cancelled { color: var(--text-faint); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  transition: color .2s, border-color .2s;
}
.copy-btn:hover { color: var(--text); border-color: var(--violet); }
.copy-btn .material-symbols-rounded { font-size: 16px; }
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}
.admin-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap; /* 表格一律不折行，放不下就横向滚动 */
}
.admin-table td.cell-wrap { white-space: normal; min-width: 260px; }
.admin-table td.cell-product { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(139, 92, 246, .05); }
.admin-table code { font-family: var(--font-mono); color: var(--cyan); }
.cell-product {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-dim);
}
.cell-time { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.admin-empty { text-align: center; color: var(--text-faint); padding: 32px 0 !important; }
.mini-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-bright);
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  cursor: pointer;
  transition: color .18s, border-color .18s;
  margin-right: 4px;
}
.mini-btn:hover { color: var(--text); border-color: var(--violet); }
.mini-btn--warn:hover { color: var(--red); border-color: var(--red); }
.panel-form {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.panel-form h3 {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.panel-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.panel-form-grid input, .panel-form-grid select {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
.panel-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}
.panel-form textarea:focus, .panel-form-grid input:focus { border-color: var(--violet); }
.field textarea {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-bright);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
  outline: none;
  resize: vertical;
}
.field textarea:focus { border-color: var(--violet); }
.notify-subs h3 {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin: 16px 0 10px;
}
/* ============================================================
   早睡商店 · 全站主题层（宣纸 · 墨 · 印泥）
   加载于 styles.css 之后，styles.css 只提供基础布局。
   - 默认 = 白天：宣纸底、墨色正文与主按钮、印泥红只做少量点缀
   - body.tokyo-dark = 夜间：暖深灰，结构与白天完全一致，只换变量
   组件一律引用下方变量，不要再写死颜色。
   ============================================================ */
/* ============ 主题变量：白天 ============ */
body {
  --bg: #FAF9F5;            /* 宣纸：页面底色 */
  --bg-deep: #F3F1EA;       /* 米灰：次级区块 */
  --sunk: #F3F1EA;
  --card: #FFFFFF;          /* 素白：面板 */
  --card-hover: #FBFAF6;
  --line: #E4E1D7;
  --line-soft: #ECE9E0;
  --line-bright: #D4D0C4;
  --text: #1F1E1B;          /* 墨 */
  --text-dim: #5C5A53;
  --text-faint: #6A675E;   /* 小字说明，对比度 ≥4.6 */
  --ink: #1F1E1B;
  --on-ink: #FAF9F5;
  --on-ink-soft: rgba(250,249,245,.18);
  --seal: #A84F2E;          /* 印泥：唯一强调色（作文字时对比度 ≥4.5） */
  --seal-soft: #F6E6DD;
  --seal-ink: #8E3F25;
  --ok-soft: #E8F0E6;  --ok-line: #CFE0CB;
  --warn-soft: #F7EDD6; --warn-line: #EBD9AE;
  --danger-soft: #F7E4E0; --danger-line: #EBC9C1;
  --info-soft: #E9EEF2;
  --hover: rgba(31,30,27,.05);
  --selection: rgba(194,97,63,.22);
  --backdrop: rgba(31,30,27,.42);
  /* 旧变量名兼容（styles.css 基础层仍在引用） */
  --magenta: var(--seal); --purple: var(--seal); --violet: var(--seal); --cyan: var(--seal);
  --green: #356A43; --yellow: #82580C; --red: #A53D29;
  --grad-main: linear-gradient(var(--ink), var(--ink));
  --grad-soft: linear-gradient(var(--sunk), var(--sunk));
  --radius: 14px;
  --radius-sm: 10px;
  --font-serif: "ZS Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --font-num: "Iowan Old Style", Palatino, Georgia, serif;
  --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, monospace;
  background: var(--bg);
  color: var(--text);
}
/* ============ 主题变量：夜间（暖深灰） ============ */
body.tokyo-dark {
  --bg: #1E1D1B;
  --bg-deep: #2A2926;
  --sunk: #2A2926;
  --card: #262523;
  --card-hover: #2C2B28;
  --line: #3A3934;
  --line-soft: #33322E;
  --line-bright: #4A4843;
  --text: #F1EEE5;
  --text-dim: #BDB9AE;
  --text-faint: #A8A498;   /* 夜间小字，对比度 ≥5.2 */
  --ink: #F1EEE5;
  --on-ink: #1E1D1B;
  --on-ink-soft: rgba(30,29,27,.14);
  --seal: #E08B66;
  --seal-soft: #3D2E27;
  --seal-ink: #F0B497;
  --ok-soft: #26332A;  --ok-line: #34473A;
  --warn-soft: #3A3221; --warn-line: #54472B;
  --danger-soft: #3D2724; --danger-line: #5A3631;
  --info-soft: #262D33;
  --hover: rgba(241,238,229,.06);
  --selection: rgba(224,139,102,.3);
  --backdrop: rgba(0,0,0,.55);
  --green: #8CC096; --yellow: #E3B860; --red: #E8836F;
}
/* ============ 设计 tokens（组件层，双主题共用） ============ */
body {
  --tk-surface: var(--card);
  --tk-black: var(--ink);
  --tk-border: var(--line);
  --tk-border-strong: var(--line-bright);
  --tk-muted: var(--text-dim);
  --tk-faint: var(--text-faint);
  --tk-green: var(--green);
  --tk-yellow: var(--yellow);
  --tk-red: var(--red);
  --tk-link: var(--seal);
  --tk-shadow-soft: 0 0 0 1px var(--line);
  --tk-shadow-elevated: 0 0 0 1px var(--line-bright), 0 12px 32px rgba(31,30,27,.10);
  --tk-r-sm: 8px;
  --tk-r-md: 12px;
  --tk-r-lg: 18px;
  --tk-r-pill: 9999px;
}
/* ============ 顶部导航壳（全站统一 UI 位置） ============ */
.tokyo-nav-shell {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--tk-border);
}
.tokyo-nav-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  height: 64px; display: flex; align-items: center; gap: 24px;
}
.tokyo-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; }
.tokyo-brand-text strong { display: block; line-height: 1.1; }
.tokyo-brand-text small { display: block; font-size: 10.5px; font-weight: 600; color: var(--tk-muted); letter-spacing: .4px; }
.tokyo-nav-main { display: flex; gap: 4px; flex: 1; }
.tokyo-nav-main a {
  padding: 8px 14px; border-radius: var(--tk-r-pill); font-size: 14px; font-weight: 600;
  color: var(--tk-muted); transition: color .15s, background .15s; white-space: nowrap;
}
.tokyo-nav-main a:hover { color: var(--text); background: var(--hover); }
.tokyo-nav-main a.is-active { color: var(--text); background: var(--hover); }
.tokyo-nav-tools { display: flex; align-items: center; gap: 8px; }
.tokyo-nav-tools .icon-btn {
  width: 34px; height: 34px; border-radius: var(--tk-r-pill);
  border: 1px solid var(--tk-border-strong); background: var(--card); color: var(--tk-muted);
  display: grid; place-items: center; font-size: 17px; cursor: pointer;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-faint); }
.tokyo-auth-actions { display: flex; gap: 8px; align-items: center; }
/* ============ 胶囊按钮（Tokyo 语义：黑=动作，颜色只做低饱和提示） ============ */
.tokyo-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--tk-r-pill); font-weight: 700; font-size: 14px;
  padding: 9px 20px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.tokyo-btn--black { background: var(--ink); color: var(--on-ink); box-shadow: var(--tk-shadow-soft); }
.tokyo-btn--black:hover { transform: translateY(-1px); box-shadow: var(--tk-shadow-elevated); }
.tokyo-btn--ghost { background: var(--card); color: var(--text); border-color: var(--tk-border-strong); }
.tokyo-btn--ghost:hover { border-color: var(--text); }
.tokyo-btn--sm { padding: 6px 14px; font-size: 13px; }
/* ============ 页面骨架 / 面板 ============ */
.tokyo-main { max-width: 1200px; margin: 0 auto; padding: 26px 20px 60px; }
.tokyo-panel {
  background: var(--tk-surface); border-radius: var(--tk-r-lg);
  box-shadow: var(--tk-shadow-soft); overflow: hidden;
}
.tokyo-panel-header {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--tk-border);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.tokyo-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .18em; color: var(--tk-faint);
  text-transform: uppercase; display: block; margin-bottom: 3px;
}
.tokyo-panel-title { font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.tokyo-panel-sub { font-size: 12.5px; color: var(--tk-muted); margin-top: 3px; }
.tokyo-panel-body { padding: 18px 22px 22px; }
/* ============================================================
   以下：既有组件的 Tokyo 浅色化（默认生效；夜间由 styles.css 原样式回归）
   ============================================================ */
::selection { background: var(--selection); }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }
/* ---- 输入控件 ---- */
.field label { color: var(--text); font-weight: 700; }
.field input, .field select, .field textarea {
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text);
  border-radius: 10px; box-shadow: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink); box-shadow: none; outline: none;
}
.form-error { color: var(--tk-red); }
/* ---- 按钮：胶囊化，黑=动作 ---- */
.btn { border-radius: var(--tk-r-pill); font-weight: 700; box-shadow: none; }
.btn--primary {
  background: var(--ink); color: var(--on-ink); border: none;
  box-shadow: var(--tk-shadow-soft);
}
.btn--primary:hover {
  background: var(--ink); transform: translateY(-1px); box-shadow: var(--tk-shadow-elevated);
}
.btn--outline {
  background: var(--card); color: var(--text); border: 1.5px solid var(--line-bright); box-shadow: none;
}
.btn--outline:hover { border-color: var(--ink); }
.copy-btn, .mini-btn {
  border-radius: var(--tk-r-pill); font-weight: 700;
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text); box-shadow: none;
}
.copy-btn:hover, .mini-btn:hover { border-color: var(--ink); }
.mini-btn--warn { border-color: var(--danger-line); color: var(--tk-red); }
/* ---- 状态 chip：低饱和 tint ---- */
.order-status { border-radius: var(--tk-r-pill); font-weight: 700; font-size: 12px; }
.st-paid { background: var(--info-soft); color: var(--tk-link); }
.st-done { background: var(--ok-soft); color: var(--tk-green); }
.st-pending { background: var(--sunk); color: var(--text-dim); }
.st-processing { background: var(--warn-soft); color: var(--tk-yellow); }
.st-cancelled { background: var(--sunk); color: var(--text-faint); }
.st-refunded { background: var(--danger-soft); color: var(--tk-red); }
.notify-subs h3 { color: var(--text); }
.admin-table { background: var(--card); border-radius: var(--tk-r-md); box-shadow: var(--tk-shadow-soft); }
.admin-table th { color: var(--text-faint); border-bottom: 1px solid var(--line); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.admin-table td { border-bottom: 1px solid var(--line-soft); color: var(--text); }
.admin-table tr:hover td { background: var(--card-hover); }
.admin-empty { color: var(--text-faint); }
.admin-hint { color: var(--text-faint); }
.panel-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--tk-r-lg); box-shadow: var(--tk-shadow-soft); }
.panel-form h3 { color: var(--text); }
.panel-form input, .panel-form select {
  background: var(--card); border: 1.5px solid var(--line-bright); color: var(--text); border-radius: 10px;
}
@media (max-width: 860px) {
  .tokyo-nav-wrap { gap: 12px; }
  .tokyo-nav-main { overflow-x: auto; }
}
@media (max-width: 560px) {
  .tokyo-main { padding: 16px 12px 40px; }
  .tokyo-panel-header { padding: 14px 16px 12px; }
  .tokyo-panel-body { padding: 14px 16px 16px; }
  /* 手机导航：两行布局（品牌+工具 / 链接横滚），杜绝横向溢出 */
  .tokyo-nav-wrap { flex-wrap: wrap; height: auto; padding: 8px 12px 6px; gap: 6px 10px; }
  .tokyo-nav-shell { position: sticky; top: 0; z-index: 60; }
  .tokyo-nav-tools { margin-left: auto; }
  .tokyo-nav-main { order: 5; flex: 1 1 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .tokyo-nav-main::-webkit-scrollbar { display: none; }
  .tokyo-nav-main a { padding: 6px 10px; white-space: nowrap; }
}
/* ============ 子页面板（查单/订单/兑换/结算/账户 统一结构） ============ */
.tokyo-sub-panel { max-width: 1020px; margin: 0 auto; }
.tokyo-main > .tokyo-panel + .tokyo-panel { margin-top: 20px; }
.tokyo-panel-body .field { margin-bottom: 14px; }
/* ============ 管理控制台（侧边栏 + 弹窗） ============ */
.adm-shell { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-side { position: sticky; top: 84px; background: var(--card); border-radius: var(--tk-r-lg); box-shadow: var(--tk-shadow-soft); padding: 12px 10px; }
.adm-side-group { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; padding: 12px 12px 6px; }
.adm-side-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border-radius: 12px; color: var(--text-dim); font-weight: 600; font-size: 14px;
  border: none; background: none; text-align: left; cursor: pointer;
  transition: background .15s, color .15s;
}
.adm-side-item .material-symbols-rounded { font-size: 19px; }
.adm-side-item:hover { background: var(--hover); color: var(--text); }
.adm-side-item.is-active { background: var(--ink); color: var(--on-ink); }
.adm-main { min-width: 0; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.adm-head .tokyo-kicker { margin-bottom: 2px; }
.adm-head h1 { font-size: 22px; font-weight: 800; }
.adm-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.adm-stat { background: var(--card); border-radius: var(--tk-r-md); box-shadow: var(--tk-shadow-soft); padding: 16px 18px; }
.adm-stat span { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-faint); margin-bottom: 4px; }
.adm-stat strong { font-size: 22px; font-weight: 800; }
.adm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.adm-card { background: var(--card); border-radius: var(--tk-r-lg); box-shadow: var(--tk-shadow-soft); padding: 20px 22px; }
.adm-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.adm-card .admin-hint { display: block; color: var(--text-faint); font-size: 12px; margin-bottom: 12px; }
.adm-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.adm-modal-mask { position: fixed; inset: 0; background: var(--backdrop); z-index: 100; }
.adm-modal {
  position: fixed; z-index: 101; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(540px, calc(100vw - 32px)); max-height: 86vh; overflow: auto;
  background: var(--card); border-radius: var(--tk-r-lg); box-shadow: var(--tk-shadow-elevated);
}
.adm-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--tk-border); position: sticky; top: 0; background: var(--card); }
.adm-modal-head h3 { font-size: 16px; font-weight: 800; }
.adm-modal-x { border: none; background: none; font-size: 18px; color: var(--text-faint); cursor: pointer; padding: 4px; }
.adm-modal-body { padding: 18px 20px 20px; }
.adm-modal-body .field { margin-bottom: 12px; }
.adm-modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; }
.adm-mini-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.adm-mini-table th { text-align: left; color: var(--text-faint); font-weight: 700; padding: 6px 8px; border-bottom: 1px solid var(--tk-border); }
.adm-mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 960px) {
  .adm-shell { grid-template-columns: 1fr; padding: 14px 12px 40px; }
  .adm-side { position: static; display: flex; flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .adm-side-group { width: 100%; padding: 6px 8px 2px; }
  .adm-grid-2 { grid-template-columns: 1fr; }
}
/* 待办清单行 */
.adm-todo {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--tk-r-md);
  background: var(--bg-deep); border: 1px solid var(--tk-border);
}
.adm-todo .material-symbols-rounded { font-size: 22px; }
.adm-todo > div { flex: 1; min-width: 0; }
.adm-todo b { display: block; font-size: 14px; }
.adm-todo small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 1px; }
.adm-todo--danger { background: var(--danger-soft); border-color: var(--danger-line); }
.adm-todo--danger .material-symbols-rounded, .adm-todo--danger b { color: var(--tk-red); }
.adm-todo--warn { background: var(--warn-soft); border-color: var(--warn-line); }
.adm-todo--warn .material-symbols-rounded, .adm-todo--warn b { color: var(--tk-yellow); }
.adm-todo--ok { background: var(--ok-soft); border-color: var(--ok-line); }
.adm-todo--ok .material-symbols-rounded, .adm-todo--ok b { color: var(--tk-green); }
/* 滚动条槽位恒定：内容长短不挤动居中导航（消除切页 5px 跳动） */
html { overflow-y: scroll; scrollbar-gutter: stable; }
/* 侧栏拉满行高，联系客服与目录同底 */
/* 查单页订单表：状态/操作不挤压 */
#myOrdersBody .order-status { white-space: nowrap; }
#myOrdersBody td:last-child, #myOrdersBody th:last-child { white-space: nowrap; width: 1%; padding-right: 18px; }
/* ============================================================
   宣纸 · 墨 · 印泥：组件层（覆盖以上旧规则，双主题共用变量）
   ============================================================ */
/* ---- 基础：字体 / 滚动 / 关掉旧主题的霓虹效果 ---- */
html { scroll-behavior: auto; }
body { font-family: var(--font-display); overflow-x: clip; -webkit-font-smoothing: antialiased; transition: none; }
* { text-shadow: none !important; }
::selection { background: var(--selection); }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-bright); border: 2px solid var(--bg); border-radius: 8px; }
.icon-btn:hover { box-shadow: none !important; }
a { color: inherit; }
/* 标题统一宋体 */
.tokyo-panel-title, .adm-head h1 {
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .02em;
}
.tokyo-panel-title { font-size: 21px; }
.tokyo-kicker { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--text-faint); }
/* 价格 / 金额用衬线数字 */
.adm-stat strong {
  font-family: var(--font-num); font-weight: 500;
}
/* ---- 顶部导航 ---- */
.tokyo-nav-shell { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tokyo-brand { gap: 10px; color: var(--ink); }
.zs-logo { width: 30px; height: 30px; flex: none; color: var(--ink); }
.tokyo-brand-text strong { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.tokyo-brand-text small { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--text-faint); }
.tokyo-nav-main a { border-radius: 10px; font-weight: 500; color: var(--text-dim); }
.tokyo-nav-main a:hover { background: var(--hover); color: var(--text); }
.tokyo-nav-main a.is-active { background: transparent; color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.tokyo-nav-tools .icon-btn { border-radius: 10px; background: transparent; border-color: var(--line); color: var(--text-dim); }
/* ---- 按钮：圆角矩形，墨色主按钮，无阴影 ---- */
.tokyo-btn, .btn { border-radius: 10px; font-weight: 600; box-shadow: none; transform: none !important; }
.tokyo-btn--black, .btn--primary { background: var(--ink); color: var(--on-ink); border: 1px solid var(--ink); box-shadow: none; }
.tokyo-btn--black:hover, .btn--primary:hover { background: var(--ink); opacity: .88; box-shadow: none; }
.tokyo-btn--ghost, .btn--outline { background: transparent; color: var(--text); border: 1px solid var(--line-bright); }
.tokyo-btn--ghost:hover, .btn--outline:hover { border-color: var(--ink); background: var(--hover); }
.copy-btn, .mini-btn { border-radius: 8px; background: transparent; border: 1px solid var(--line-bright); color: var(--text); font-weight: 600; }
.copy-btn:hover, .mini-btn:hover { border-color: var(--ink); }
/* ---- 面板：细边框代替投影 ---- */
.tokyo-panel, .adm-side, .adm-card, .adm-stat, .admin-table, .panel-form {
  background: var(--card); border: 1px solid var(--line); box-shadow: none;
}
.tokyo-panel { border-radius: var(--tk-r-lg); }
.tokyo-panel-header { border-bottom: 1px solid var(--line-soft); padding: 20px 24px 16px; }
.tokyo-panel-body { padding: 20px 24px 24px; }
.tokyo-panel-sub { color: var(--text-dim); }
/* ---- 表单控件 ---- */
.field label { font-weight: 600; }
.field input, .field select, .field textarea, .panel-form input, .panel-form select {
  background: var(--card); border: 1px solid var(--line-bright); border-radius: 10px; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus, .panel-form input:focus, .panel-form select:focus {
  border-color: var(--ink); box-shadow: 0 0 0 3px var(--sunk); outline: none;
}
.order-status { border-radius: 999px; font-weight: 600; }
.st-paid { background: var(--info-soft); color: var(--text); }
.st-done { background: var(--ok-soft); color: var(--green); }
.st-processing { background: var(--warn-soft); color: var(--yellow); }
.st-pending, .st-cancelled { background: var(--sunk); color: var(--text-dim); }
.st-refunded { background: var(--danger-soft); color: var(--red); }
/* ---- 后台 ---- */
.adm-side-item.is-active { background: var(--ink); color: var(--on-ink); }
.adm-side-item:hover { background: var(--hover); }
@media (max-width: 640px) {
  .tokyo-panel-header { padding: 16px 16px 12px; }
}
.field label small { font-weight: 400; color: var(--text-faint); margin-left: 6px; }
.form-error { color: var(--red); }
.tk-msgs { max-height: 400px; overflow-y: auto; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); display: flex; flex-direction: column; gap: 12px; }
.tk-msg { display: flex; flex-direction: column; max-width: 78%; }
.tk-msg-mine { align-self: flex-end; align-items: flex-end; }
.tk-msg-user { align-self: flex-start; align-items: flex-start; }
.tk-bubble { padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tk-msg-mine .tk-bubble { background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 4px; }
.tk-msg-user .tk-bubble { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tk-msg-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }
.tk-msg-sys { align-self: center; font-size: 11.5px; color: var(--text-faint); background: var(--card); border-radius: 999px; padding: 2px 12px; }
.tk-reply { margin-top: 12px; }
.tk-reply textarea { width: 100%; border: 1px solid var(--line-bright); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; background: var(--card); color: inherit; }
.admin-table-wrap { scrollbar-width: thin; }
/* hidden 属性优先于组件的 display（修：未登录时后台骨架外露） */
[hidden] { display: none !important; }
/* ---- 导航「工单」未读红点（原由 JS 注入样式） ---- */
.tokyo-nav-main a { position: relative; }

/* ---- 订单筛选 / 详情 / 支付流水 ---- */
.adm-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-filter input, .adm-filter select { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--card); color: var(--text); }
.adm-filter input { flex: 1; min-width: 200px; }
.adm-row-link { cursor: pointer; }
.adm-row-link:hover td { background: var(--card-hover); }
.adm-detail { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 14px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.adm-detail > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.adm-detail > div:first-child { border-top: 0; }
.adm-detail dt { color: var(--text-faint); }
.adm-detail dd { margin: 0; word-break: break-all; }
.adm-paylog { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.adm-paylog > div { font-size: 12px; padding: 8px 10px; background: var(--sunk); border-radius: 8px; }
.adm-paylog code { display: block; margin-top: 4px; font-size: 11px; color: var(--text-dim); word-break: break-all; white-space: pre-wrap; }

/* ---- 内容与客服：二维码 ---- */
.adm-qr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.adm-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.adm-qr img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 8px; }
.adm-qr label { cursor: pointer; }

/* 窄屏：侧栏变成可换行的紧凑按钮条，不再把内容挤到下面 */
@media (max-width: 960px) {
  .adm-side { padding: 8px; gap: 4px; }
  .adm-side-group { display: none; }
  .adm-side-item { width: auto; padding: 7px 10px; font-size: 13px; }
  .adm-side-item .material-symbols-rounded { font-size: 17px; }
}
.admin-table .order-status { white-space: nowrap; }

/* ---- 内容与客服：客服渠道列表 ---- */
.adm-ch-list { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.adm-ch { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.adm-ch-qr { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.adm-ch-qr img, .adm-ch-qr > span { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line-soft); }
.adm-ch-qr > span { display: grid; place-items: center; font-size: 12px; color: var(--text-faint); background: var(--sunk); }
.adm-ch-qr .mini-btn { text-align: center; cursor: pointer; font-size: 12px; }
.adm-ch-fields { display: flex; flex-direction: column; gap: 6px; }
.adm-ch-fields input { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line-bright); border-radius: 8px; background: var(--card); color: var(--text); }
.adm-ch-ops { display: flex; flex-direction: column; gap: 6px; }
.adm-ch-ops .mini-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .adm-ch { grid-template-columns: 1fr; } .adm-ch-ops { flex-direction: row; } }

.adm-stat small { display: block; margin-top: 4px; }

/* ============ 2FA 登录 / 安全中心 ============ */
.adm-otp { font-family: var(--font-mono); font-size: 22px !important; letter-spacing: .35em; text-align: center; }
.adm-otp::placeholder { font-family: var(--font-display); font-size: 14px; letter-spacing: normal; }
.adm-login .tokyo-panel-title { font-family: var(--font-serif); }
.adm-qr { display: inline-block; margin: 10px 0; padding: 12px; border-radius: 12px; background: #fff; }
.adm-qr svg { display: block; width: 180px; height: 180px; }
.adm-sec-list { margin: 10px 0 0; padding-left: 18px; line-height: 1.9; font-size: 13.5px; color: var(--text-dim); }
.adm-code { margin: 8px 0; padding: 12px 14px; border-radius: 10px; background: var(--sunk); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-all; }
.adm-op-ok { color: var(--green) !important; }

/* ============ 手机：底部导航 + 全部菜单弹层 ============ */
.adm-tabbar, .adm-menu-scrim { display: none; }
@media (max-width: 640px) {
  .adm-shell { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  body:has(#panelView:not([hidden])) .tokyo-nav-main { display: none; }
  .adm-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 76; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  body:has(#panelView[hidden]) .adm-tabbar { display: none; }
  .adm-tabbar button { display: grid; justify-items: center; gap: 1px; padding: 4px 0; border: 0; background: none; border-radius: 10px; color: var(--text-faint); font: inherit; font-size: 11.5px; cursor: pointer; }
  .adm-tabbar .material-symbols-rounded { font-size: 23px; }
  .adm-tabbar svg { display: block; }
  .adm-tabbar button.is-on { color: var(--text); font-weight: 600; }
  /* 侧栏变成从底部弹出的「全部」菜单 */
  .adm-side { display: none; }
  .adm-menu-open .adm-side {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 75;
    height: auto; max-height: 70vh; align-content: start; overflow-y: auto; padding: 12px; border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  }
  .adm-menu-open .adm-side .adm-side-item { flex-direction: column; justify-content: center; gap: 4px; padding: 10px 4px; font-size: 12.5px; text-align: center; }
  .adm-menu-open .adm-side .adm-side-item .material-symbols-rounded { font-size: 22px; }
  .adm-menu-open .adm-menu-scrim { display: block; position: fixed; inset: 0; z-index: 74; background: rgba(20, 18, 15, .32); }
}

/* ============ 优惠码与券：标签页 / 表单两列 / 选用户 ============ */
.adm-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--sunk, var(--bg-deep)); }
.adm-seg button { padding: 8px 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; }
.adm-seg button small { margin-left: 4px; font-weight: 400; color: var(--text-faint); }
.adm-seg button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--tk-shadow-soft); }
.adm-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.adm-form-2 select, .adm-modal-body select { width: 100%; font: inherit; font-size: 14px; padding: 9px 10px; border: 1px solid var(--line-bright); border-radius: 10px; background: var(--card); color: var(--text); }
.adm-pick-list { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow-y: auto; margin-top: 8px; }
.adm-pick { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: 10px; cursor: pointer; font-size: 13px; }
.adm-pick small { color: var(--text-faint); margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-pick.is-off { opacity: .5; cursor: default; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.adm-chip { padding: 4px 10px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink); font: inherit; font-size: 12.5px; cursor: pointer; }
@media (max-width: 560px) { .adm-form-2 { grid-template-columns: 1fr; } }

/* ============================================================
   后台 UI 升级（2026-10）：仪表盘 KPI / 7 天柱状图 / 卡片标题行 / 表单页 / 表格收紧
   ============================================================ */
.adm-head { align-items: center; margin-bottom: 18px; }
.adm-head h1 { font-size: 24px; }
.adm-card { border-radius: 16px; padding: 18px 20px; }
.adm-card + .adm-card { margin-top: 16px; }
.adm-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.adm-card-h h3 { margin: 0; font-size: 15px; font-weight: 700; }
.adm-card-h small { font-size: 12px; color: var(--text-faint); }
.adm-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--seal); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

/* KPI */
.adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.adm-kpi { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.adm-kpi-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-deep); color: var(--text-dim); font-size: 20px; max-width: none; }
.adm-kpi:first-child .adm-kpi-ic { background: var(--seal-soft); color: var(--seal-ink); }
.adm-kpi > div { min-width: 0; }
.adm-kpi small { display: block; font-size: 12px; font-weight: 600; color: var(--text-faint); }
.adm-kpi strong { display: block; margin: 2px 0 3px; font-family: var(--font-num); font-size: 24px; font-weight: 500; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-delta { display: block; font-style: normal; font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-delta.is-up { color: var(--green); }
.adm-delta.is-down { color: var(--red); }

/* 仪表盘两栏：图表 + 待处理 */
.adm-dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.adm-dash .adm-card + .adm-card { margin-top: 0; }
.adm-todos { display: flex; flex-direction: column; gap: 10px; }
.adm-dash-foot { margin: 14px 0 0; font-size: 12px; }
.adm-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; height: 190px; align-items: end; padding-top: 6px; }
.adm-bar { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.adm-bar em { font-style: normal; font-size: 11px; color: var(--text-faint); font-family: var(--font-num); white-space: nowrap; }
.adm-bar i { display: block; width: 100%; max-width: 38px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--line-bright); transition: background .15s; }
.adm-bar:hover i { background: var(--text-faint); }
.adm-bar.is-today i { background: var(--seal); }
.adm-bar.is-today em { color: var(--seal-ink); font-weight: 600; }
.adm-bar span { display: grid; justify-items: center; font-size: 11.5px; color: var(--text-dim); line-height: 1.3; }
.adm-bar span small { font-size: 10.5px; color: var(--text-faint); }

/* 表格：不再强制 860 宽（放得下就不横滚），单元格收紧，副行用小字 */
.admin-table { min-width: 100%; }
.admin-table th { padding: 10px 14px; font-size: 11.5px; letter-spacing: .06em; background: var(--bg-deep); }
.admin-table th:first-child { border-top-left-radius: 12px; }
.admin-table th:last-child { border-top-right-radius: 12px; }
.admin-table td { padding: 11px 14px; }
.admin-table td small.admin-hint { font-size: 11.5px; }
.admin-table .cell-product { max-width: 280px; }
.adm-card .admin-table-wrap { border-radius: 12px; }
.cell-actions { white-space: nowrap; }
.cell-actions .mini-btn:last-child { margin-right: 0; }
.adm-sub-code { font-size: 11px !important; color: var(--text-faint) !important; }

/* 表单页（新增 / 编辑商品） */
.adm-form-page { max-width: 760px; }
.adm-form-page .adm-card h3 { margin: 0 0 14px; font-size: 15px; }
.adm-span-2 { grid-column: 1 / -1; }
.adm-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.adm-check input { width: 16px; height: 16px; }
.adm-form-page textarea, .adm-modal-body textarea { width: 100%; font: inherit; resize: vertical; }
.adm-form-foot { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }

@media (max-width: 1100px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .adm-dash { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .adm-kpi { padding: 12px; gap: 10px; }
  .adm-kpi-ic { width: 30px; height: 30px; font-size: 17px; }
  .adm-kpi strong { font-size: 19px; }
  .adm-bars { height: 160px; gap: 6px; }
  .adm-bar em { font-size: 10px; }
  .adm-form-foot { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .adm-head h1 { font-size: 21px; }
}
/* 「操作」列固定在右侧：表格放不下横向滚动时，按钮始终看得见 */
.admin-table:has(th.th-actions) th:last-child,
.admin-table:has(th.th-actions) td:last-child { position: sticky; right: 0; z-index: 1; white-space: nowrap; }
.admin-table:has(th.th-actions) td:last-child { background: var(--card); box-shadow: -10px 0 10px -10px rgba(31,30,27,.18); }
.admin-table:has(th.th-actions) tr:hover td:last-child { background: var(--card-hover); }
.admin-table:has(th.th-actions) th:last-child { background: var(--bg-deep); box-shadow: -10px 0 10px -10px rgba(31,30,27,.18); }
.admin-table td:last-child .mini-btn:last-child { margin-right: 0; }
.adm-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--line-bright); vertical-align: 1px; }
.adm-dot.is-on { background: var(--green); }
.adm-mono { font-family: var(--font-mono); font-size: 12.5px; }
/* 表单字段间距 */
.adm-form-page .field, .adm-modal-body .field { margin-bottom: 14px; }
.adm-form-page .field label, .adm-modal-body .field label { display: block; margin-bottom: 6px; font-size: 13px; }
.adm-form-page .field label small, .adm-modal-body .field label small { font-weight: 400; color: var(--text-faint); margin-left: 6px; }
.adm-form-2 .field { min-width: 0; }
