/* lyjs studio — 作者后台样式（第六轮重做）
   目标：从「文字 + 横线」变成有层次的工作台：深色侧栏、卡片、指标块、状态色。
   约束：零外部字体/图标，全部内联 SVG；主站风格 A 不受影响。 */

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #141a24;
  --ink-2: #344054;
  --muted: #667085;
  --line: #eaecf0;
  --line-strong: #d0d5dd;

  --accent: #3b5bdb;
  --accent-600: #3249b8;
  --accent-soft: #eef2ff;

  --ok: #067647;
  --ok-soft: #ecfdf3;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --info: #175cd3;
  --info-soft: #eff8ff;

  --side: #101828;
  --side-2: #0b1220;
  --side-ink: #d0d5dd;
  --side-muted: #7c8798;

  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 28px -18px rgba(16, 24, 40, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14.5px/1.6 -apple-system, "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: 12.5px/1.5 ui-monospace, "SF Mono", Consolas, monospace;
  background: #f2f4f7; color: var(--ink-2);
  padding: 1px 5px; border-radius: 5px; word-break: break-all;
}
h1 { font-size: 25px; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 6px; font-weight: 650; }
h2 { font-size: 15.5px; line-height: 1.35; margin: 0; font-weight: 600; color: var(--ink); }
h3 { font-size: 14px; margin: 0 0 6px; }
p { margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* ---------------------------------------------------------------- 骨架 -- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.shell.guest-shell { grid-template-columns: 1fr; }

/* 侧栏 */
.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--side) 0%, var(--side-2) 100%);
  border-right: 1px solid #1f2937;
  padding: 18px 14px 14px;
  overflow-y: auto;
}
.side .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 18px; color: #fff; font-weight: 700; font-size: 15px;
}
.side .brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 16px;
  background: linear-gradient(135deg, #4f6bed, #22b8cf);
  box-shadow: 0 6px 16px -8px rgba(79, 107, 237, 0.9);
}
.brand-text em { font-style: normal; font-weight: 500; color: var(--side-muted); font-size: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label {
  margin: 16px 10px 6px; font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #5d6b80; font-weight: 600;
}
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--side-ink); font-size: 13.5px;
  border: 1px solid transparent;
}
.side-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none; }
.side-nav a.on {
  background: rgba(255, 255, 255, 0.10);
  color: #fff; font-weight: 600;
  box-shadow: inset 2px 0 0 #6d8bff;
}
.side-nav a .badge { margin-left: auto; }
.side-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.side-foot .who { display: flex; align-items: center; gap: 8px; color: var(--side-ink); font-size: 13px; min-width: 0; }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, 0.12); color: #fff;
}
.side-foot form { margin: 0 0 0 auto; }
.side-foot button.link { color: var(--side-muted); font-size: 12.5px; }
.side-foot button.link:hover { color: #fff; }

/* 内容区 */
.content { min-width: 0; display: flex; flex-direction: column; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 30px 34px 48px; }
.foot { text-align: center; color: #98a2b3; font-size: 12px; padding: 0 20px 26px; }

/* 页头 */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0 0 22px; }
.page-head h1 { margin: 0; }
.page-head .muted { margin: 2px 0 0; }
.eyebrow { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 4px; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-actions form { margin: 0; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.head h1 { margin: 0; }
.head.tight { justify-content: flex-start; gap: 12px; margin-bottom: 8px; }
.head.tight h2 { margin: 0; }

/* ---------------------------------------------------------------- 卡片 -- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 0 0 18px;
  box-shadow: var(--shadow);
}
.card > h2:first-child, .card > .card-head:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.card-head h2 { margin: 0; }
.card-head .small { color: var(--muted); }
.bad-card { border-color: #fda29b; background: var(--bad-soft); }

/* 移动端断点里表格横向滚动；这里的写法保持自测 28l 的原串 */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side {
    position: static; height: auto; flex-direction: row; align-items: center;
    padding: 10px 14px; gap: 10px; overflow-x: auto;
  }
  .side .brand { padding: 0 8px 0 0; }
  .brand-text { display: none; }
  .side-nav { flex-direction: row; gap: 4px; }
  .side-label { display: none; }
  .side-nav a { white-space: nowrap; padding: 6px 9px; }
  .side-nav a.on { box-shadow: none; }
  .side-foot { margin-top: 0; padding: 0; border: 0; margin-left: auto; }
  .side-foot .who span:not(.avatar) { display: none; }
  .wrap { padding: 20px 16px 40px; }
  .ann-edit { grid-template-columns: 1fr; }
  .ann-side { position: static; }
  .cols { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}

/* ------------------------------------------------------------ 指标卡片 -- */
.stats, .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 0 0 20px; }
.stat, .kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.kpi { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.kpi:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-1px); transition: 0.15s ease; }
.kpi-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.kpi-ico.green { background: var(--ok-soft); color: var(--ok); }
.kpi-ico.amber { background: var(--warn-soft); color: var(--warn); }
.kpi-ico.blue { background: var(--info-soft); color: var(--info); }
.kpi-ico .ico { width: 20px; height: 20px; }
.kpi-body { min-width: 0; }
.kpi-num { display: block; font-size: 24px; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; }
.kpi-label { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.kpi-label em { font-style: normal; color: #98a2b3; }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { color: var(--muted); font-size: 12px; }

/* 两栏 */
.cols { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cols > .card { margin-bottom: 0; }

/* 待办列表 */
.todo { list-style: none; margin: 0; padding: 0; }
.todo li + li { border-top: 1px solid var(--line); }
.todo a { display: flex; align-items: center; gap: 12px; padding: 11px 2px; color: var(--ink); }
.todo a:hover { text-decoration: none; background: #fafbfc; }
.todo a:hover .chev { color: var(--accent); transform: translateX(2px); }
.todo-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: #f2f4f7; color: var(--ink-2); }
.todo a > span:nth-child(2) { min-width: 0; }
.todo b { font-size: 15px; }
.todo em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.todo .chev { margin-left: auto; color: #98a2b3; transition: 0.15s ease; }
.todo .pill { margin-left: auto; }

/* 发布块 */
.release-now { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fafbfc; margin-top: 12px; }
.release-now b { display: block; font-size: 14px; }
.release-now span { color: var(--muted); font-size: 12px; }

/* 卡片集合（旧 dashboard） */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 0 0 18px; }
.card.mini { display: block; color: var(--ink); margin: 0; }
.card.mini:hover { text-decoration: none; border-color: var(--line-strong); }
.card.mini b { display: block; font-size: 26px; line-height: 1.15; }
.card.mini span { display: block; font-weight: 600; }
.card.mini em { display: block; font-style: normal; }

/* ---------------------------------------------------------------- 表格 -- */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: 13.5px;
}
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #f9fafb; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:hover td { background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
td.narrow { width: 76px; }
table .muted { color: var(--muted); }
table td code { background: #f4f5f7; }

/* ---------------------------------------------------------------- 表单 -- */
label { display: block; font-size: 13px; color: var(--ink-2); }
input, textarea, select {
  font: inherit; color: var(--ink); width: 100%;
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.14);
}
input.tiny { width: 72px; }
input[type="checkbox"] { width: auto; accent-color: var(--accent); }
input[type="radio"] { width: auto; accent-color: var(--accent); }
textarea { resize: vertical; min-height: 90px; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 550; font-size: 13.5px; cursor: pointer;
  padding: 8px 15px; border-radius: var(--radius-s);
  border: 1px solid transparent; background: var(--accent); color: #fff;
  text-decoration: none; line-height: 1.2;
}
button:hover, .button:hover { background: var(--accent-600); text-decoration: none; }
button:focus-visible, .button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.25); }
button.small, .button.small { padding: 5px 10px; font-size: 12.5px; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 500; box-shadow: none; }
button.link:hover { background: none; text-decoration: underline; }
button.link.danger, .danger { color: var(--bad); }
button.link.danger:hover, .danger:hover { color: #912018; }
button[disabled], .button.off { opacity: 0.45; cursor: default; }
.button.ghost { background: #fff; color: var(--ink-2); border-color: var(--line-strong); }
.button.ghost:hover { background: #f9fafb; color: var(--ink); }
.button.ghost.off { color: #b6bcc6; border-color: var(--line); cursor: default; }
.button.ghost.off:hover { filter: none; }
.button.danger-solid { background: var(--bad); }
.button.danger-solid:hover { background: #912018; }

.grid-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.grid-form label { display: block; }
.grid-form label input, .grid-form label textarea, .grid-form label select { margin-top: 6px; }
.grid-form .wide, .grid-form h2 { grid-column: 1 / -1; }
.grid-form .hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.card > .grid-form { background: none; border: 0; padding: 0; box-shadow: none; }
.actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions.sticky {
  position: sticky; bottom: 12px; z-index: 5; margin: 4px 0 18px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line);
  border-radius: var(--radius-s); backdrop-filter: blur(6px);
}
.self-center { align-self: center; }

/* ---------------------------------------------------------------- 其他 -- */
.muted { color: var(--muted); }
.small { font-size: 12px; }
.en { color: #55606e; font-size: 0.92em; }
.flash {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius-s); margin: 0 0 16px; font-size: 13.5px;
  border: 1px solid transparent;
}
.flash::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin-top: 7px; flex: none; background: currentColor; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: #abefc6; }
.flash.bad { background: var(--bad-soft); color: var(--bad); border-color: #fecaca; }
.flash.bad li { margin-left: 16px; }
.err { color: var(--bad); font-size: 13px; }

.tag, .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 550;
  background: #f2f4f7; color: var(--ink-2); white-space: nowrap;
}
.pill { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tag.published, .tag.released, .tag.rolled_back, .tag.state-active { background: var(--ok-soft); color: var(--ok); }
.tag.draft, .tag.wip, .tag.dirty, .tag.state-draft { background: var(--warn-soft); color: var(--warn); }
.tag.failed, .tag.removed { background: var(--bad-soft); color: var(--bad); }
.tag.state-pending, .tag.changed { background: var(--info-soft); color: var(--info); }
.tag.added { background: var(--ok-soft); color: var(--ok); }
.tag.state-expired, .tag.state-archived { background: #f2f4f7; color: #667085; }
.badge {
  display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px;
  background: #f04438; color: #fff; font-size: 10.5px; line-height: 17px; vertical-align: 1px;
}
.tick { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); }
form.inline { display: inline; margin: 0; }
.ops { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ops form { margin: 0; }
.tabs { display: inline-flex; gap: 2px; margin: 0 0 16px; padding: 3px; background: #eef0f3; border-radius: 10px; }
.tabs a { padding: 5px 13px; border-radius: 8px; color: var(--ink-2); font-size: 12.5px; font-weight: 550; }
.tabs a:hover { text-decoration: none; background: rgba(255, 255, 255, 0.6); }
.tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.pager { display: flex; gap: 8px; align-items: center; }
.notice { border-left: 4px solid var(--accent); padding-left: 14px; }
.notice.notice { border-left-color: var(--warn); }
.notice-head { display: flex; gap: 10px; align-items: center; }
.notice h2 { margin: 8px 0 2px; }
.notice-body p { margin: 8px 0; }
.notice details { margin: 10px 0; }
ul.tech { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
ul.tech li { background: #f2f4f7; border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
ul.links { padding-left: 18px; }
pre.log {
  background: #0b1220; color: #e6edf3; padding: 14px; border-radius: var(--radius-s);
  overflow: auto; max-height: 420px; font: 12px/1.55 ui-monospace, Consolas, monospace;
  white-space: pre-wrap; word-break: break-all;
}

/* 板块树 */
.sec-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-chips .tag { font-size: 12px; padding: 3px 11px; }
.sec-row strong { font-size: 13.5px; }
.sec-row .meta-line { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.sec-row td { vertical-align: top; }
.indent-2 { padding-left: 30px !important; }
.indent-3 { padding-left: 52px !important; }
.tree-mark { color: #98a2b3; margin-right: 5px; }
.sec-row .ops { flex-wrap: wrap; gap: 8px 10px; }
td.ops { display: table-cell; }

/* 公告与预览 */
.ann-edit { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.ann-form { min-width: 0; }
.ann-side {
  position: sticky; top: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.ann-side h2 { margin: 0 0 4px; font-size: 15px; }
.pv-h { font-size: 11px; letter-spacing: 0.08em; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
.ann-side .notice {
  position: relative; padding: 12px 14px 12px 16px; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius-s); background: #fff;
}
.ann-side .notice.notice { border-left-color: var(--warn); }
.pv-close { position: absolute; top: 6px; right: 10px; color: var(--muted); font-size: 16px; line-height: 1; }
.pv-say { margin: 0; }
.pv-say li { margin-bottom: 4px; }
.ann-side .hint:empty { display: none; }
.ann-side .hint { display: block; margin-top: 10px; color: var(--warn); font-size: 12px; }
.ann-group { margin: 0 0 26px; }
.ann-group h2 { font-size: 14.5px; margin: 0 0 10px; }
.ann-group .ops { gap: 8px 12px; align-items: flex-start; }
.ops details.op-more { margin: 0; }
.ops details.op-more summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.ops details.op-more form { margin: 4px 0 0 12px; }

/* 发布计划 */
.plan { border-left: 4px solid var(--line); }
.plan.plan-dirty { border-left-color: var(--warn); }
.plan.plan-clean { border-left-color: var(--ok); }
.plan-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.plan-totals .stat { min-width: 0; padding: 10px 12px; box-shadow: none; }
.plan-totals .stat b { font-size: 19px; }
.plan-sec { margin: 14px 0; }
.plan-sec h3 { font-size: 13.5px; margin: 0 0 6px; color: var(--ink-2); }
.plan-list { list-style: none; padding-left: 0; margin: 6px 0; }
.plan-list li { padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 13px; overflow-wrap: anywhere; }
.plan-list li:last-child { border-bottom: 0; }
.plan-ann { margin: 10px 0; }
.plan-ann .flash { margin: 6px 0; }

/* 信箱 */
table.mail td.dot { width: 26px; color: var(--accent); text-align: center; }
table.mail tr.unread td { font-weight: 600; background: #fbfcff; }
.mail-body {
  white-space: pre-wrap; word-break: break-word; background: #fafbfc;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 14px 16px; margin: 6px 0 14px;
}

/* 预览页 */
.preview-bar {
  background: var(--warn-soft); border: 1px solid #fed7aa; color: #9a3412;
  padding: 9px 14px; border-radius: var(--radius-s); margin-bottom: 16px;
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px;
}
.preview { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.preview h1 { font-size: 26px; }
.preview .meta { color: var(--muted); font-size: 13px; }
.preview .lead { font-size: 16px; }

/* 登录 / 游客页 */
body.guest { background: radial-gradient(1200px 500px at 50% -10%, #e6eaff 0%, var(--bg) 55%); }
body.guest .wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 460px; padding-top: 40px; }
.login { max-width: 100%; margin: 0; padding: 28px 30px; }
.login .login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 700; }
.login .already-actions { display: flex; align-items: center; gap: 16px; margin: 2px 0 14px; }
.login .already-actions form { margin: 0; }
.login .already-actions button { width: auto; margin: 0; padding: 0; }
.login h1 { font-size: 22px; margin-bottom: 4px; }
.login label { display: block; margin: 14px 0; }
.login label input { margin-top: 6px; }
.login button { width: 100%; margin-top: 4px; padding: 10px 14px; }
.login p.muted { font-size: 12.5px; }
.guest .foot { padding-top: 18px; }

@media (max-width: 1100px) {
  .wrap { padding: 26px 24px 44px; }
}
@media (max-width: 720px) {
  .grid-form { grid-template-columns: 1fr; }
  .actions.sticky { position: static; }
  .plan-totals .stat { min-width: 72px; }
  h1 { font-size: 21px; }
}

/* ================================================================
   第七轮：细节层 —— 列表、表单、详情、空态、小按钮
   目标：小界面不再是「文字 + 线条」，而是有分组、有状态、有呼吸。
   ================================================================ */

:root { --ink-3: #98a2b3; --tint: #f9fbff; }

/* 页头：eyebrow + 标题 + 一句说明 */
.page-head { align-items: flex-start; }
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px;
  font-size: 10.5px; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
}
.page-head .eyebrow .ico { width: 13px; height: 13px; stroke-width: 1.9; color: #8b95a5; }
.page-head .lead { margin: 8px 0 0; max-width: 70ch; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.page-head .head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 2px; }

/* 表格：轻表头 + 行悬浮 + 代码列弱化 */
table { box-shadow: var(--shadow); }
thead th {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #8b95a5; background: #fbfcfd; font-weight: 650;
}
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--tint); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child code { background: #eef2f8; }

/* 操作列：药丸小按钮代替裸文字链接 */
td.ops { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; padding: 9px 10px; }
td.ops a, td.ops button.link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink-2); font-size: 12px; line-height: 1.7;
  text-decoration: none; white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
td.ops a:hover, td.ops button.link:hover {
  background: var(--accent-soft); border-color: #c7d2fe; color: var(--accent-600); text-decoration: none;
}
td.ops a.danger, td.ops button.link.danger { color: var(--bad); border-color: #f6d7d3; }
td.ops a.danger:hover, td.ops button.link.danger:hover { background: var(--bad-soft); border-color: #f4b8b2; color: var(--bad); }
td.ops .tick {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border: 1px dashed var(--line-strong); border-radius: 999px; background: #fcfcfd;
}
td.ops details.op-more > summary {
  padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--accent); font-size: 12px; line-height: 1.7; list-style: none;
}
td.ops details.op-more > summary::-webkit-details-marker { display: none; }
td.ops details.op-more[open] > summary { background: var(--accent-soft); border-color: #c7d2fe; }

/* 空态 */
.empty {
  display: grid; place-items: center; gap: 5px; padding: 34px 22px; text-align: center;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--muted); font-size: 13px;
}
.empty .ico { width: 26px; height: 26px; stroke-width: 1.5; color: #b6bfcc; margin-bottom: 4px; }
.empty strong { color: var(--ink); font-size: 14px; font-weight: 600; }

/* 表单：分区标题 + 焦点环 + 提示 */
label { font-weight: 550; }
input, select, textarea { font-size: 13.5px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: #a9bcff; box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.12);
}
textarea { line-height: 1.75; }
.grid-form > label > .hint {
  display: block; margin-top: 5px; font-weight: 450; font-size: 11.5px;
  color: var(--ink-3); line-height: 1.65;
}
.grid-form > h2 {
  font-size: 12px; letter-spacing: 0.04em; color: var(--ink);
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line);
}
.grid-form > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); }

/* 详情页指标条 */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 14px; margin: 0 0 18px; }
.kv > div { padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); }
.kv .k { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.kv .v { font-size: 13.5px; color: var(--ink); line-height: 1.6; }

/* 邮件正文 */
.mail-body {
  white-space: pre-wrap; margin: 14px 0 16px; padding: 16px 18px;
  background: #fcfcfd; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; font-size: 14px; line-height: 1.95; color: var(--ink);
}

/* 标签页：药丸 */
.tabs { border-bottom: 0; gap: 6px; }
.tabs a { padding: 6px 13px; border-radius: 999px; border: 1px solid transparent; }
.tabs a:hover { background: #eef2f7; text-decoration: none; }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 分页按钮 */
.pager .button.off { opacity: 0.45; pointer-events: none; }

/* 列表页顶部的计数小条 */
.count-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  font-size: 11.5px; color: var(--muted); background: #f2f4f7; border-radius: 999px;
}

/* 触感 */
button:active, .button:active { transform: translateY(1px); }

@media (max-width: 720px) {
  .page-head h1 { font-size: 21px; }
  .page-head .lead { font-size: 13px; }
  td.ops { padding: 8px; }
}

/* 详情页操作条（非表格内） */
.ops-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ops-pills button.link, .ops-pills a.button {
  display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; color: var(--ink-2); font-size: 12.5px;
}
.ops-pills button.link:hover { background: var(--accent-soft); border-color: #c7d2fe; color: var(--accent-600); }
.ops-pills button.link.danger { color: var(--bad); border-color: #f6d7d3; }
.ops-pills button.link.danger:hover { background: var(--bad-soft); border-color: #f4b8b2; }

/* 发布卡 */
.publish-card { border-left: 3px solid var(--accent); }
.publish-card form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.publish-card button { align-self: flex-start; }

/* 未读来信 */
.mail tr.unread td { background: #fbfcff; }
.mail tr.unread td.dot { color: var(--accent); }
