/* ===================================================================
 * app.css — 编辑中心 · 后台通用样式（设计令牌 / 组件 / 列表 / 登录）
 * 编辑器专用样式已拆至 editor.css，仅 edit.php 引入。
 * 响应式规则按作用域分别放在两个文件末尾，编辑器侧始终最后生效。
 * =================================================================== */
/* ============ 1. 设计令牌 ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light;

  /* 品牌 / 强调 */
  --brand: #bd4a33;
  --brand-hover: #a63d28;
  --brand-press: #8e3220;
  --brand-light: #faebe5;
  --brand-ghost: #fdf4f1;
  --brand-contrast: #fff8f5;

  /* 中性色 */
  --bg: #f3f1ec;
  --bg-soft: #f8f6f1;
  --surface: #fffdfa;
  --surface-alt: #f7f4ee;
  --surface-sunken: #efebe3;
  --text: #34302a;
  --text-secondary: #756f65;
  --text-tertiary: #a39b8e;
  --text-heading: #1b1916;
  --border: #e6e1d7;
  --border-light: #efeae1;
  --border-strong: #d7d0c4;

  /* 语义色 */
  --ok: #2c7a57;
  --ok-light: #e8f4ed;
  --danger: #b3261e;
  --danger-light: #fbeae8;
  --warn: #a9691a;
  --warn-light: #fdf1df;
  --violet: #6c4bb6;
  --violet-light: #f1edfa;
  --info: #2c63a8;
  --info-light: #eaf1fa;

  /* 形状 / 阴影 */
  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(31, 26, 18, .05);
  --shadow-sm: 0 1px 2px rgba(31, 26, 18, .04), 0 8px 20px -14px rgba(31, 26, 18, .22);
  --shadow: 0 2px 6px rgba(31, 26, 18, .04), 0 20px 44px -30px rgba(31, 26, 18, .28);
  --shadow-lg: 0 26px 70px -30px rgba(31, 26, 18, .38);
  --focus-ring: 0 0 0 3px rgba(189, 74, 51, .15);
  --scroll-thumb: #d5cec2;

  /* 布局 */
  --topbar-h: 64px;
  --header-h: 64px;
  --bar-bg: #26231e;
  --bar-text: #f8f4ec;

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", monospace;

  /* 文章调色板（预览侧默认；.preview-scroll 继承） */
  --accent: #0066CC;
  --accent-hover: #0052A3;
  --accent-light: #E6F0FB;
  --accent-border: #B3D4F5;
  --accent-subtle: #F0F7FF;
  --accent-text: #0066CC;
}

/* 深色主题 */
html.dark {
  color-scheme: dark;
  --brand: #e56f55;
  --brand-hover: #ef8269;
  --brand-press: #f0967f;
  --brand-light: #34221c;
  --brand-ghost: #2a1d18;
  --brand-contrast: #2b1913;

  --bg: #131210;
  --bg-soft: #181613;
  --surface: #1c1a17;
  --surface-alt: #23201c;
  --surface-sunken: #14120f;
  --text: #ddd7cc;
  --text-secondary: #a39a8c;
  --text-tertiary: #776f63;
  --text-heading: #f7f2e9;
  --border: #302c26;
  --border-light: #28241f;
  --border-strong: #413b33;

  --ok: #6bc59a;
  --ok-light: #122b20;
  --danger: #f08c82;
  --danger-light: #331a18;
  --warn: #e0a45b;
  --warn-light: #2e2314;
  --violet: #b79aef;
  --violet-light: #241d33;
  --info: #84aee6;
  --info-light: #182333;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .25), 0 8px 22px -16px rgba(0, 0, 0, .6);
  --shadow: 0 2px 8px rgba(0, 0, 0, .28), 0 24px 50px -32px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --focus-ring: 0 0 0 3px rgba(229, 111, 85, .22);
  --scroll-thumb: #47413a;
  --bar-bg: #2b2822;
  --bar-text: #f4efe6;

  --accent-light: #16233a;
  --accent-border: #274a78;
  --accent-subtle: #10203a;
}

/* ===== 文章调色板 · 导出侧（恒浅色，与 UI 深浅色解耦） ===== */
.lms-export-vars {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #334155;
  --text-secondary: #64748b;
  --text-heading: #0f172a;
  --border: #e2e8f0;
  --border-light: #e2e8f0;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --accent: #0066CC;
  --accent-hover: #0052A3;
  --accent-light: #E6F0FB;
  --accent-border: #B3D4F5;
  --accent-subtle: #f8fafc;
  --accent-text: #0066CC;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

/* ===== 文章主题色（预览侧 + 导出侧共用） ===== */
.preview-scroll.theme-sky,    .lms-export-vars.theme-sky    { --accent: #0ea5e9; --accent-hover: #0284c7; --accent-light: #f0f9ff; --accent-border: #bae6fd; --accent-subtle: #f0f9ff; --accent-text: #0ea5e9; }
.preview-scroll.theme-emerald, .lms-export-vars.theme-emerald { --accent: #10b981; --accent-hover: #059669; --accent-light: #ecfdf5; --accent-border: #a7f3d0; --accent-subtle: #f0fdf4; --accent-text: #059669; }
.preview-scroll.theme-rose,   .lms-export-vars.theme-rose   { --accent: #f43f5e; --accent-hover: #e11d48; --accent-light: #fff1f2; --accent-border: #fecdd3; --accent-subtle: #fff5f6; --accent-text: #e11d48; }
.preview-scroll.theme-orange, .lms-export-vars.theme-orange { --accent: #f97316; --accent-hover: #ea580c; --accent-light: #fff7ed; --accent-border: #fed7aa; --accent-subtle: #fff7ed; --accent-text: #ea580c; }
.preview-scroll.theme-teal,   .lms-export-vars.theme-teal   { --accent: #14b8a6; --accent-hover: #0d9488; --accent-light: #f0fdfa; --accent-border: #99f6e4; --accent-subtle: #f0fdfa; --accent-text: #0d9488; }
.preview-scroll.theme-warm,   .lms-export-vars.theme-warm   { --accent: #a16207; --accent-hover: #854d0e; --accent-light: #fffbeb; --accent-border: #fde68a; --accent-subtle: #fefce8; --accent-text: #854d0e; }
.preview-scroll.theme-purple, .lms-export-vars.theme-purple { --accent: #8b5cf6; --accent-hover: #7c3aed; --accent-light: #f5f3ff; --accent-border: #ddd6fe; --accent-subtle: #faf5ff; --accent-text: #7c3aed; }

/* 深色模式下的文章主题色：提高对比度，避免浅色块 */
html.dark .preview-scroll {
  --accent: #6ea8ff; --accent-hover: #8bbdff;
  --accent-light: #16253a; --accent-border: #2c4a70;
  --accent-subtle: #10203a; --accent-text: #8bbdff;
}
html.dark .preview-scroll.theme-sky {
  --accent: #38bdf8; --accent-hover: #7dd3fc; --accent-light: #082f49;
  --accent-border: #155e75; --accent-subtle: #08222f; --accent-text: #7dd3fc;
}
html.dark .preview-scroll.theme-emerald {
  --accent: #34d399; --accent-hover: #6ee7b7; --accent-light: #052e24;
  --accent-border: #065f46; --accent-subtle: #062a20; --accent-text: #6ee7b7;
}
html.dark .preview-scroll.theme-rose {
  --accent: #fb7185; --accent-hover: #fda4af; --accent-light: #3d1620;
  --accent-border: #7f2c3c; --accent-subtle: #33131b; --accent-text: #fda4af;
}
html.dark .preview-scroll.theme-orange {
  --accent: #fb923c; --accent-hover: #fdba74; --accent-light: #3a2110;
  --accent-border: #7c3d12; --accent-subtle: #301b0d; --accent-text: #fdba74;
}
html.dark .preview-scroll.theme-teal {
  --accent: #2dd4bf; --accent-hover: #5eead4; --accent-light: #042f2e;
  --accent-border: #115e59; --accent-subtle: #042624; --accent-text: #5eead4;
}
html.dark .preview-scroll.theme-warm {
  --accent: #d4a72c; --accent-hover: #f0c75e; --accent-light: #2e2310;
  --accent-border: #57451a; --accent-subtle: #2a200e; --accent-text: #e6bd54;
}
html.dark .preview-scroll.theme-purple {
  --accent: #a78bfa; --accent-hover: #c4b5fd; --accent-light: #2a2143;
  --accent-border: #4c3d7a; --accent-subtle: #241c38; --accent-text: #c4b5fd;
}

/* ============ 2. 基础 ============ */
html { height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1000px 620px at 6% -10%, rgba(189, 74, 51, .055), transparent 62%),
    radial-gradient(900px 640px at 104% 4%, rgba(44, 122, 87, .045), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-hover); }

::selection { background: var(--brand-light); color: var(--brand-press); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }
* { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }

[hidden] { display: none !important; }

button, input, select, textarea { font-family: inherit; }
button { color: inherit; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-color: var(--border-strong);
  border-radius: 5px;
  box-shadow: 0 1px 0 var(--border);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--text-secondary);
}

/* 深浅色图标显隐 */
.theme-icon { display: none; line-height: 1; }
html:not(.theme-mode-dark):not(.theme-mode-system) .theme-icon-light { display: inline-flex; }
html.theme-mode-dark .theme-icon-dark { display: inline-flex; }
html.theme-mode-system .theme-icon-system { display: inline-flex; }

/* ============ 3. 通用组件 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  font-size: 13px; font-weight: 600; line-height: 1.35;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text-heading); transform: translateY(-1px); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { flex: none; }

.btn-primary {
  background: linear-gradient(180deg, #cb573c, var(--brand));
  border-color: #ad4129;
  color: #fff;
  box-shadow: 0 1px 2px rgba(120, 42, 25, .22), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-hover)); border-color: var(--brand-press); color: #fff; box-shadow: 0 4px 14px -4px rgba(150, 56, 35, .5); }
html.dark .btn-primary { background: linear-gradient(180deg, #ef8269, var(--brand)); border-color: #c75d45; color: #21120d; }
html.dark .btn-primary:hover { color: #1b0f0b; }

.btn-dark {
  background: linear-gradient(180deg, #34302a, #23201b);
  border-color: #1d1a16;
  color: #f8f4ec;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn-dark:hover { background: #1b1916; border-color: #141210; color: #fff; }
html.dark .btn-dark { background: #f0ebe2; border-color: #f0ebe2; color: #1b1916; }
html.dark .btn-dark:hover { background: #fff; border-color: #fff; color: #141210; }

.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand); box-shadow: none; }
.btn-outline:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--border-strong); }

.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #941e17; border-color: #941e17; color: #fff; }

.btn-ai {
  background: linear-gradient(135deg, #51407f, #7f4fb7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px -4px rgba(94, 61, 147, .6), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-ai:hover { background: linear-gradient(135deg, #463570, #7443a9); border-color: transparent; color: #fff; box-shadow: 0 4px 16px -4px rgba(94, 61, 147, .7); }

.btn-sm { min-height: 31px; padding: 5px 11px; font-size: 12.5px; gap: 6px; }
.btn-block { width: 100%; }
.btn.loading { opacity: .65; pointer-events: none; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--text-secondary);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border); color: var(--text-heading); }
.icon-danger:hover { background: var(--danger-light); border-color: transparent; color: var(--danger); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}

.alert {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 11px 15px; margin-bottom: 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px; line-height: 1.6;
}
.alert::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; margin-top: 7px; background: currentColor; }
.alert-ok { background: var(--ok-light); border-color: rgba(44, 122, 87, .16); color: var(--ok); }
.alert-error { background: var(--danger-light); border-color: rgba(179, 38, 30, .14); color: var(--danger); }

/* 表单 */
.form-field { display: block; margin-bottom: 15px; }
.form-field > span {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 6px; font-size: 12px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: .01em;
}
.form-field > span em, .field-note { font-style: normal; font-weight: 400; color: var(--text-tertiary); font-size: 11px; }

input[type="text"], input[type="password"], input[type="datetime-local"], input[type="search"], input[type="url"], input[type="number"], select, textarea.field-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
input::placeholder, textarea::placeholder { color: var(--text-tertiary); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: var(--focus-ring); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-alt); color: var(--text-secondary); cursor: not-allowed; }

select {
  appearance: none; -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23756f65' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}
html.dark select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a39a8c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); }

textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }
.inline-form { display: inline; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }

/* 标签 / 徽章 */
.tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; margin: 2px 5px 2px 0;
  border: 1px solid transparent; border-radius: 99px;
  background: var(--brand-light); color: var(--brand);
  font-size: 11.5px; font-weight: 500; line-height: 1.65;
  transition: background .15s, color .15s, border-color .15s;
}
a.tag-chip:hover { background: var(--brand); color: #fff; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; margin: 2px 4px 2px 0;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface-alt); color: var(--text-secondary);
  font-size: 11.5px; line-height: 1.65;
}
.cat-chip::before { content: ""; width: 5px; height: 5px; border-radius: 1.5px; background: var(--text-tertiary); }
.cat-chip:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.cat-chip:hover::before { background: var(--brand); }

.sync-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 99px;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 11px; font-weight: 500; white-space: nowrap;
}
.sync-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-tertiary); }
.sync-badge.synced { background: var(--ok-light); border-color: transparent; color: var(--ok); }
.sync-badge.synced::before { background: var(--ok); box-shadow: 0 0 0 3px rgba(44, 122, 87, .13); }

/* ============ 4. 顶栏导航 ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: rgba(255, 253, 250, .84);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
html.dark .topbar { background: rgba(28, 26, 23, .84); }
.topbar-inner {
  /* 不限宽：编辑页是三栏满宽布局，顶栏若被 max-width 夹住会与内容错位。
     列表页内容是居中窄栏，顶栏满宽 + 固定内边距是常见做法，无需同步。 */
  width: 100%; max-width: none; height: 100%;
  margin: 0; padding: 0 28px;
  display: flex; align-items: center; gap: 26px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text-heading); }
.brand:hover { color: var(--text-heading); }
.brand-dot {
  width: 30px; height: 30px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #d05b3f, #a63b25);
  color: #fff8f4;
  font-family: var(--font-serif); font-size: 15px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 2px 7px -2px rgba(140, 45, 27, .55);
}
.brand-name { font-family: var(--font-serif); font-size: 16px; font-weight: 700; letter-spacing: .02em; }

.topnav { display: flex; align-items: center; gap: 2px; min-width: 0; }
.topnav a {
  position: relative;
  padding: 7px 12px; border-radius: 8px;
  color: var(--text-secondary); font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.topnav a:hover { background: var(--surface-alt); color: var(--text-heading); }
.topnav a.active { background: var(--surface-alt); color: var(--text-heading); box-shadow: inset 0 0 0 1px var(--border-light); }
.topnav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px;
  width: 14px; height: 2px; margin-left: -7px;
  border-radius: 2px; background: var(--brand);
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

.new-article-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  min-height: 34px; padding: 7px 13px;
  border: 1px solid #ad4129; border-radius: 9px;
  background: linear-gradient(180deg, #c9553a, var(--brand));
  color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 1px 2px rgba(120, 42, 25, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: background .16s, box-shadow .16s, transform .16s;
}
.new-article-btn:hover { background: var(--brand-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 5px 16px -5px rgba(150, 56, 35, .6); }
html.dark .new-article-btn { color: #21120d; border-color: #c75d45; background: linear-gradient(180deg, #ef8269, var(--brand)); }
html.dark .new-article-btn:hover { color: #1b0f0b; }

.user-chip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 3px 10px 3px 3px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface);
  color: var(--text); font-size: 12.5px;
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3a6f5c, #2c7a57);
  color: #fff; font-size: 11.5px; font-weight: 700;
}
.user-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ 5. 页面容器 / 标题 ============ */
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 32px 28px 72px; }
.container.narrow { max-width: 560px; }
.container.narrow-wide { max-width: 860px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 24px;
}
.page-head h1 {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; line-height: 1.25;
  letter-spacing: -.01em; color: var(--text-heading);
}
.eyebrow {
  margin-bottom: 7px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brand);
}
.page-sub { margin-top: 6px; font-size: 13px; color: var(--text-secondary); }
.page-head .btn { margin-bottom: 2px; }

/* 数据概览 */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--surface-alt); color: var(--text-secondary);
}
.stat-card.tone-brand .stat-icon { background: var(--brand-light); color: var(--brand); }
.stat-card.tone-ok .stat-icon { background: var(--ok-light); color: var(--ok); }
.stat-card.tone-info .stat-icon { background: var(--info-light); color: var(--info); }
.stat-card.tone-violet .stat-icon { background: var(--violet-light); color: var(--violet); }
.stat-body { min-width: 0; }
.stat-card b {
  display: block; font-size: 25px; font-weight: 700; line-height: 1.15;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  color: var(--text-heading);
}
.stat-card b.c-ok { color: var(--ok); }
.stat-card span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); }

/* 筛选条 */
.filter-bar { padding: 11px 12px; margin-bottom: 16px; }
.filter-form { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1 1 260px; max-width: 360px; min-width: 180px; }
.search-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-tertiary); pointer-events: none; }
.search-field input { padding-left: 37px; }
.filter-form select { width: auto; min-width: 138px; max-width: 200px; }
.filter-form .btn { flex: none; }
.filter-divider { width: 1px; height: 24px; background: var(--border); margin: 0 2px; }

/* 批量条 */
.batch-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px 9px 16px; margin-bottom: 14px;
  border-radius: 12px;
  background: var(--bar-bg);
  color: var(--bar-text);
  box-shadow: 0 10px 30px -16px rgba(20, 17, 13, .6);
  animation: slide-down .18s ease both;
}
.batch-count { font-size: 12.5px; opacity: .82; }
.batch-count b { font-size: 14px; color: #fff; }
.batch-spacer { flex: 1; }
.batch-bar .btn {
  min-height: 29px; padding: 4px 11px; font-size: 12px;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
  color: var(--bar-text); box-shadow: none;
}
.batch-bar .btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .26); color: #fff; }
.batch-bar .btn-danger { background: #c34a3d; border-color: #c34a3d; color: #fff; }
.batch-bar .btn-danger:hover { background: #d95749; border-color: #d95749; }
html.dark .batch-bar { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .8); }

/* 文章表 */
.article-list { padding: 0; overflow: hidden; }
.article-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.article-table th {
  padding: 11px 16px;
  text-align: left;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  white-space: nowrap;
}
.article-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.article-table tbody tr { transition: background .14s; }
.article-table tbody tr:hover { background: var(--bg-soft); }
.article-table tbody tr:last-child td { border-bottom: none; }

.col-check { width: 38px; padding-right: 0 !important; }
.col-title { min-width: 280px; }
.col-date { width: 168px; }
.col-meta { width: 180px; }
.col-sync { width: 104px; }
.col-actions { width: 146px; }

.article-table .row-check, .article-table #selectAll {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--border-strong); border-radius: 5px;
  background: var(--surface);
  cursor: pointer; vertical-align: middle;
  transition: background .14s, border-color .14s;
}
.article-table .row-check:hover, .article-table #selectAll:hover { border-color: var(--brand); }
.article-table .row-check:checked, .article-table #selectAll:checked {
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 10px no-repeat;
  border-color: var(--brand);
}
.article-table .row-check:focus-visible, .article-table #selectAll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.article-title {
  display: inline-block;
  color: var(--text-heading); font-size: 14.5px; font-weight: 600; line-height: 1.45;
}
.article-title:hover { color: var(--brand); }
.article-url {
  display: block; margin-top: 3px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-tertiary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 540px;
}
.tag-row { margin-top: 6px; }

.col-date time { display: block; color: var(--text-secondary); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.col-date .file-size { display: block; margin-top: 2px; font-size: 10.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }

.row-actions { display: flex; align-items: center; gap: 2px; }
.row-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text-tertiary);
  cursor: pointer; transition: background .14s, color .14s, border-color .14s;
}
.row-btn:hover { background: var(--brand-light); border-color: transparent; color: var(--brand); }
.row-btn-danger:hover { background: var(--danger-light); color: var(--danger); }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
  background: var(--surface);
}
.pager-info { margin: 0; font-size: 11.5px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pager-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager-num, .pager-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 29px; height: 29px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px; font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: background .14s, color .14s, border-color .14s;
}
.pager-num:hover, .pager-btn:hover { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand); }
.pager-num.is-active {
  background: var(--brand); border-color: var(--brand); color: var(--brand-contrast);
  font-weight: 700; cursor: default;
}
.pager-disabled, .pager-gap {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 29px; height: 29px; padding: 0 9px;
  color: var(--text-tertiary); font-size: 12px;
}
.pager-disabled { opacity: .45; }

.empty-state { padding: 64px 24px; text-align: center; color: var(--text-secondary); }
.empty-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: var(--surface-alt); color: var(--text-tertiary);
  box-shadow: inset 0 0 0 1px var(--border-light);
}
.empty-state p { margin-bottom: 16px; font-size: 13.5px; }

/* ============ 6. 分类标签管理 ============ */
.taxo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.panel { overflow: hidden; }
.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-light);
}
.panel-head h2 { font-size: 14.5px; font-weight: 700; color: var(--text-heading); }
.panel-head .count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px;
  border-radius: 99px;
  background: var(--surface-alt); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 10.5px; font-weight: 600;
}
.panel-sub { margin-top: 3px; padding: 0; font-size: 11.5px; color: var(--text-tertiary); }
.panel-head .panel-sub { margin-left: auto; padding: 0; text-align: right; }
.panel-addform { padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--border-light); }
.panel-add-fields { display: flex; gap: 10px; margin-bottom: 10px; }
.taxo-add-row { display: flex; align-items: center; gap: 8px; }
.taxo-add-row input[type="text"] { flex: 1 1 auto; min-width: 0; margin: 0; }
.taxo-add-row .btn { flex: none; }
.cat-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; max-height: 360px; overflow-y: auto; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 6px 5px 11px; margin: 0;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.cat-chip::before { display: none; }
.cat-chip:hover { border-color: var(--border-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }
.cat-chip > b { font-size: 12.5px; font-weight: 600; color: var(--text-heading); }
.cat-chip .cat-slug { font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); background: var(--surface-alt); padding: 1px 6px; border-radius: 99px; }
.tag-cloud { padding: 16px 18px; max-height: 360px; overflow-y: auto; }
.tag-cloud-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 6px 4px 10px; margin: 3px;
  border: 1px solid var(--border); border-radius: 99px;
  background: var(--surface); font-size: 12.5px;
  transition: border-color .15s;
}
.tag-cloud-item:hover { border-color: var(--border-strong); }
.tag-x, .remove-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: transparent; color: var(--text-tertiary);
  font-size: 10px; line-height: 1; cursor: pointer;
  transition: background .14s, color .14s;
}
.tag-x:hover, .remove-tag:hover { background: var(--danger-light); color: var(--danger); }
.panel-empty { display: block; width: 100%; padding: 28px 10px; text-align: center; color: var(--text-tertiary); font-size: 12.5px; }

/* ============ 7. 个人资料 ============ */
.profile-head {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px; margin-bottom: 18px;
  background:
    radial-gradient(360px 180px at 100% 0%, rgba(189, 74, 51, .07), transparent 70%),
    var(--surface);
}
.avatar-lg {
  width: 62px; height: 62px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a6f5c, #2c7a57);
  color: #fff; font-size: 23px; font-weight: 700;
  box-shadow: 0 0 0 5px var(--surface-alt), 0 4px 14px -6px rgba(31, 26, 18, .35);
}
.profile-head-info { display: flex; flex-direction: column; gap: 4px; }
.profile-head-info b { font-family: var(--font-serif); font-size: 20px; color: var(--text-heading); }
.profile-head-info span { font-size: 12.5px; color: var(--text-secondary); }
.profile-head-info code { padding: 1px 6px; border-radius: 5px; background: var(--surface-alt); font-family: var(--font-mono); color: var(--text); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel-form { padding: 18px; }
.panel-form .form-actions { justify-content: flex-end; margin-bottom: 0; }
.readonly-input { background: var(--surface-alt) !important; color: var(--text-secondary) !important; cursor: not-allowed; font-family: var(--font-mono); }

/* ============ 8. 登录页 ============ */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(189, 74, 51, .13), transparent 62%),
    radial-gradient(760px 520px at -8% 108%, rgba(44, 122, 87, .10), transparent 62%),
    linear-gradient(rgba(27, 25, 22, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 25, 22, .035) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
  background-attachment: fixed;
}
html.dark .login-body {
  background:
    radial-gradient(900px 560px at 88% -12%, rgba(229, 111, 85, .12), transparent 62%),
    radial-gradient(760px 520px at -8% 108%, rgba(107, 197, 154, .07), transparent 62%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 32px 32px, 32px 32px, auto;
}
.login-shell {
  width: 100%; max-width: 1060px;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 64px; align-items: center;
}
.login-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 30px; color: var(--text-heading); }
.login-brand .brand-dot { width: 32px; height: 32px; font-size: 16px; }
.login-brand strong { font-family: var(--font-serif); font-size: 17px; letter-spacing: .02em; }
.login-hero .eyebrow { margin-bottom: 16px; font-size: 11px; }
.login-hero h1 {
  margin-bottom: 18px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 50px);
  font-weight: 700; line-height: 1.28; letter-spacing: -.015em;
  color: var(--text-heading);
}
.login-hero h1 em { font-style: normal; color: var(--brand); }
.login-hero > p { max-width: 480px; color: var(--text-secondary); font-size: 14px; line-height: 1.9; }
.login-feats { list-style: none; margin-top: 32px; display: grid; gap: 12px; }
.login-feats li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 250, .58);
  backdrop-filter: blur(6px);
}
html.dark .login-feats li { background: rgba(28, 26, 23, .55); }
.login-feats .feat-icon {
  width: 32px; height: 32px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--brand-light); color: var(--brand);
}
.login-feats .feat-body { display: flex; flex-direction: column; gap: 2px; }
.login-feats b { color: var(--text-heading); font-size: 13px; font-weight: 600; }
.login-feats span { color: var(--text-secondary); font-size: 11.5px; }

.login-card {
  position: relative;
  padding: 36px 34px 32px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), #d98a5e 55%, transparent);
}
.login-card h2 { font-family: var(--font-serif); font-size: 23px; color: var(--text-heading); }
.login-sub { margin: 5px 0 24px; font-size: 12.5px; color: var(--text-secondary); }
.login-card .form-field { margin-bottom: 16px; }
.login-card .form-field > span { font-size: 12px; }
.login-card input[type="text"], .login-card input[type="password"] { padding: 11px 13px; font-size: 14px; }
.login-card .btn-block { min-height: 42px; margin-top: 6px; font-size: 14px; letter-spacing: .06em; }
.tip-box {
  margin-top: 20px; padding: 11px 13px;
  border: 1px dashed var(--border-strong); border-radius: 9px;
  background: var(--bg-soft); color: var(--text-secondary);
  font-size: 11.5px; line-height: 1.7;
}
.tip-box code { padding: 1px 5px; border-radius: 4px; background: var(--surface); font-family: var(--font-mono); color: var(--text); }
.login-foot { margin-top: 18px; text-align: center; font-size: 11.5px; color: var(--text-tertiary); }
.login-foot a { color: var(--text-secondary); }
.login-foot a:hover { color: var(--brand); }


/* ---- 通用吐司（ui.js 动态创建，非编辑页同样使用） ---- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 95;
  max-width: min(84vw, 520px);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 99px;
  background: var(--bar-bg);
  color: var(--bar-text);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .55);
  font-size: 12.5px; text-align: center;
  opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: opacity .2s, transform .2s;
}
.toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 15. 动画 ============ */
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ============ 响应式（后台页面） ============ */

@media (max-width: 1180px) {
  .topbar-inner { padding: 0 20px; gap: 18px; }
  .container { padding: 28px 20px 64px; }
  .col-title { min-width: 220px; }
  .article-url { max-width: 360px; }
}

@media (max-width: 1024px) {
  .stats-row { gap: 12px; }
  .stat-card { padding: 15px; gap: 11px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-card b { font-size: 23px; }
  .filter-form select { min-width: 120px; }
}

@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manage-grid, .taxo-grid, .profile-grid { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; gap: 34px; max-width: 460px; }
  .login-hero { text-align: center; }
  .login-brand { justify-content: center; }
  .login-hero > p { margin: 0 auto; }
  .login-feats { display: none; }
  .login-hero h1 { font-size: 34px; }

  .article-list { background: transparent; border: none; box-shadow: none; overflow: visible; }
  .article-table, .article-table tbody, .article-table tr, .article-table td { display: block; width: 100%; }
  .article-table thead { display: none; }
  .article-table tr {
    position: relative;
    margin-bottom: 12px; padding: 16px 16px 12px 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
  }
  .article-table tbody tr:last-child td { border-bottom: none; }
  .article-table td { padding: 0; border: none; }
  .article-table .col-check { position: absolute; top: 18px; left: 16px; width: auto; padding: 0 !important; }
  .article-table .col-title { padding-right: 76px; }
  .article-table .col-date { display: flex; align-items: center; gap: 8px; width: auto; padding: 4px 0 8px; }
  .article-table .col-date .file-size { margin: 0; }
  .article-table .col-meta { width: auto; padding: 0 0 10px; }
  .article-table .col-sync { position: absolute; top: 16px; right: 16px; width: auto; padding: 0; }
  .article-table .row-actions { justify-content: flex-end; padding-top: 8px; border-top: 1px solid var(--border-light); }
  .article-url { max-width: 100%; }

  .batch-bar { flex-wrap: wrap; }
  .batch-spacer { display: none; }
  .batch-bar .btn { margin-left: auto; }
}

@media (max-width: 760px) {
  :root { --topbar-h: 58px; --header-h: 58px; }
  .topbar-inner { padding: 0 14px; gap: 12px; }
  .brand-name { display: none; }
  .brand-dot { width: 28px; height: 28px; font-size: 14px; }
  .topnav { gap: 0; overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { padding: 6px 9px; font-size: 12.5px; }
  .topnav a.active::after { display: none; }
  .user-chip { display: none; }
  .topbar-sep { display: none; }
  .new-article-btn { padding: 7px 9px; }
  .new-article-btn .btn-label { display: none; }

  .container { padding: 22px 14px 56px; }
  .page-head { align-items: flex-start; margin-bottom: 18px; }
  .page-head h1 { font-size: 25px; }
  .page-sub { font-size: 12.5px; }
  .stats-row { gap: 10px; }
  .stat-card { padding: 13px; }
  .stat-card b { font-size: 21px; }
  .stat-card span { font-size: 11px; }
  .stat-icon { width: 32px; height: 32px; border-radius: 9px; }

  .search-field { max-width: none; flex: 1 1 100%; }
  .filter-form select { flex: 1 1 calc(50% - 5px); max-width: none; min-width: 0; }
  .filter-divider { display: none; }

  .article-table tr { padding-left: 44px; }
  .article-table .col-check { left: 14px; }
  .article-table .col-title { padding-right: 0; padding-bottom: 6px; }
  .article-table .col-sync { position: static; margin-bottom: 8px; }
  .article-title { font-size: 14px; }
  .pager { padding: 10px 12px; }
  .pager-info { width: 100%; }
  .pager-links { width: 100%; }
  .login-body { padding: 28px 16px; }
  .login-card { padding: 28px 22px 24px; border-radius: 18px; }
  .login-hero h1 { font-size: 30px; }
}

@media (max-width: 480px) {
  .stat-card { gap: 9px; padding: 12px; }
  .stat-icon { width: 29px; height: 29px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-card b { font-size: 19px; }
  .page-head .btn { width: 100%; }
  .cat-cloud, .tag-cloud { padding: 14px; }
}

/* ---------- 回收站（文章列表页底部可折叠区） ---------- */
.trash-card { margin-top: 20px; padding: 0; overflow: hidden; }
.trash-card > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.trash-card > summary::-webkit-details-marker { display: none; }
.trash-card > summary::before {
  content: '▸';
  color: var(--text-secondary);
  font-size: 12px;
  transition: transform .15s ease;
}
.trash-card[open] > summary::before { transform: rotate(90deg); }
.trash-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--surface-sunken);
  color: var(--text-secondary);
  font-size: 11.5px;
}
.trash-hint {
  margin-left: auto;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}
.trash-body { padding: 0 18px 16px; }
.trash-table { margin-top: 4px; }
.trash-name { word-break: break-all; }
.trash-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

@media (max-width: 760px) {
  .trash-hint { display: none; }
}

