:root {
  --bg: #f0f4f8;
  --card: #fff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #2563eb;
  --new: #dc2626;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.first-use-notice {
  margin: 10px 20px 0;
  padding: 10px 14px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(146, 64, 14, 0.08);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #10213f 0%, #1e3a8a 45%, #0f172a 100%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.45);
}
.brand { display: flex; gap: 12px; align-items: center; flex: 0 0 auto; }
.brand h1 { font-size: 18px; }
.subtitle { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.logo { font-size: 28px; }
.top-marquee-box {
  flex: 1 1 auto;
  max-width: 520px;
  min-width: 240px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 10px;
  background: rgba(255,255,255,0.92);
  overflow: hidden;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15,23,42,0.18) inset, 0 2px 8px rgba(15,23,42,0.12);
}
.top-marquee-text {
  display: inline-block;
  min-width: 100%;
  padding-left: 100%;
  color: #dc2626;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  animation: marquee-left 11s linear infinite;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.top-actions { display: flex; gap: 8px; flex: 0 0 auto; align-items: center; flex-wrap: wrap; }
.top-trash-btn { background: rgba(255,255,255,0.92); color: #7c2d12; border-color: rgba(255,255,255,0.75); font-weight: 700; }
.top-trash-btn.active { background: #f97316; color: #fff; border-color: #fed7aa; box-shadow: 0 0 0 2px rgba(255,255,255,0.35) inset; }
.layout { display: flex; flex: 1; min-height: 0; }
.sidebar {
  width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.panel { padding: 16px; border-bottom: 1px solid var(--border); }
.panel h2 { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; }
.field span { color: var(--muted); }
.field input, .field select, dialog input, dialog select {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px;
}
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 8px; padding: 10px; text-align: center; }
.stat span { display: block; font-size: 22px; font-weight: 700; color: var(--primary); }
.stat.highlight span { color: var(--new); }
.stat label { font-size: 11px; color: var(--muted); }
.meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.tabs { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.tab {
  padding: 10px 14px; border: none; background: transparent; text-align: left;
  border-radius: 8px; cursor: pointer; font-size: 14px;
}
.tab.active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.content { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 16px; }
.progress {
  height: 32px; background: var(--card); border-radius: 10px; margin-bottom: 12px;
  border: 1px solid var(--border); position: relative; display: flex; align-items: center; padding: 0 12px;
}
.progress.hidden { display: none; }
.progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, #93c5fd, #2563eb); opacity: 0.35; transition: width 0.2s;
}
#progressText { position: relative; z-index: 1; font-size: 12px; color: var(--muted); }
.tab-pane {
  flex: 1; overflow: auto; background: var(--card); border-radius: 10px;
  border: 1px solid var(--border);
  position: relative;
}
.list-watermark {
  position: fixed;
  left: calc(280px + (100vw - 280px) / 2);
  top: 52vh;
  width: min(34vw, 360px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
  z-index: 0;
  background: none;
  opacity: 0;
  transform: translate(-50%, -50%);
}
#tabList > *:not(.list-watermark) { position: relative; z-index: 1; }
#tabList .ann-table { background: transparent; }
.tab-pane.hidden { display: none; }
#tabList.hidden .list-watermark { display: none; }
.ann-table, .sites-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ann-table th, .sites-table th {
  position: sticky; top: 0; background: #f8fafc; padding: 10px 12px;
  text-align: left; border-bottom: 1px solid var(--border); color: var(--muted);
}
.ann-table td, .sites-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ann-table tbody tr { cursor: pointer; }
.ann-table tbody tr:hover { background: #f8fafc; }
.ann-table tbody tr.unread { background: #fffbeb; }
.badge-new {
  background: var(--new); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px;
}
.badge-dup {
  background: #f59e0b; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px;
  margin-left: 2px; cursor: help;
}
.title-cell { color: var(--text); line-height: 1.4; font-weight: 500; }
.date-cell { font-variant-numeric: tabular-nums; white-space: nowrap; color: #1e293b; font-size: 15px; font-weight: 700; }
.time-cell { font-variant-numeric: tabular-nums; white-space: nowrap; color: #334155; font-size: 15px; font-weight: 700; }
.link-cell { color: var(--primary); font-size: 12px; word-break: break-all; text-decoration: none; }
.link-cell:hover { text-decoration: underline; }
.invalid-link { color: #dc2626; font-weight: 700; }
.invalid-site-row { background: #fef2f2; }
.invalid-site-row td { border-bottom-color: #fecaca; }
.invalid-url { color: #dc2626; font-weight: 700; }
.site-error { margin-top: 4px; color: #dc2626; font-size: 12px; line-height: 1.35; }
.empty { text-align: center; color: var(--muted); padding: 48px !important; }
.btn {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 13px;
}
.btn.primary { background: #fff; color: var(--primary); font-weight: 600; }
.topbar .btn.ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn.btn-ok { background: #d1fae5 !important; color: #065f46 !important; border-color: #6ee7b7 !important; }
.btn.btn-new { background: #fef3c7 !important; color: #92400e !important; border-color: #fcd34d !important; font-weight: 700; }
.btn.btn-err { background: #fee2e2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }
.btn.small { padding: 4px 8px; font-size: 12px; }
.btn.block { width: 100%; }
.btn.danger { color: var(--new); }
.activation-status {
  align-self: center;
  font-size: 12px;
  color: #fff;
  background: rgba(15,23,42,0.28);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 7px 10px;
  white-space: nowrap;
}
.login-body {
  min-height: 100vh;
  height: auto;
  display: grid;
  place-items: center;
  overflow: auto;
  background: radial-gradient(circle at top left, #bfdbfe, transparent 34%), linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0f172a);
  padding: 24px;
}
.login-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15,23,42,0.36);
  padding: 30px;
}
.login-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}
.login-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(37,99,235,0.28);
}
.login-brand h1 { font-size: 22px; margin-bottom: 4px; }
.login-brand p, .login-tip { color: var(--muted); font-size: 13px; }
.activation-form .field input {
  font-size: 17px;
  letter-spacing: 1px;
  padding: 12px 14px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 5px;
  margin-bottom: 18px;
}
.auth-tab {
  border: none;
  background: transparent;
  border-radius: 9px;
  padding: 10px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.auth-tab.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 18px rgba(15,23,42,0.10);
}
.login-submit { margin-top: 8px; padding: 12px 14px; background: #2563eb !important; color: #fff !important; }
.login-tip { margin-top: 16px; text-align: center; }
.login-tip a { color: var(--primary); text-decoration: none; font-weight: 600; }
.login-tip a:hover { text-decoration: underline; }
.login-modern-body {
  background:
    radial-gradient(circle at 18% 18%, rgba(96, 165, 250, 0.42), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(168, 85, 247, 0.32), transparent 28%),
    linear-gradient(135deg, #08111f 0%, #0f2a5c 48%, #0b1120 100%);
}
.login-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}
.login-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 30px;
  padding: 44px;
  color: #fff;
  background: linear-gradient(150deg, rgba(37,99,235,0.86), rgba(15,23,42,0.78));
  box-shadow: 0 32px 90px rgba(2, 6, 23, 0.46);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.login-hero-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  pointer-events: none;
}
.login-hero-badge {
  position: absolute;
  top: 44px;
  left: 44px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}
.login-hero-panel h1 { position: relative; max-width: 560px; font-size: 44px; line-height: 1.16; margin-bottom: 18px; letter-spacing: -1px; }
.login-hero-panel p { position: relative; max-width: 520px; color: rgba(255,255,255,0.82); font-size: 16px; line-height: 1.75; }
.login-feature-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.login-feature-grid div { padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px); }
.login-feature-grid strong { display: block; font-size: 20px; margin-bottom: 5px; }
.login-feature-grid span { color: rgba(255,255,255,0.76); font-size: 12px; }
.login-hero-note { position: relative; margin-top: 18px; color: rgba(255,255,255,0.72); font-size: 12px; }
.login-modern-card { align-self: center; backdrop-filter: blur(16px); }
.login-disclaimer { margin-top: 18px; padding: 14px; border: 1px solid #dbeafe; border-radius: 16px; background: linear-gradient(180deg, #f8fbff, #eff6ff); }
.login-disclaimer h2 { font-size: 14px; color: #1d4ed8; margin-bottom: 8px; }
.login-disclaimer p { color: #475569; font-size: 12px; line-height: 1.65; margin-top: 6px; }
@media (max-width: 860px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-hero-panel { min-height: auto; padding: 34px; }
  .login-hero-badge { position: relative; top: auto; left: auto; align-self: flex-start; margin-bottom: 80px; }
  .login-hero-panel h1 { font-size: 32px; }
  .login-feature-grid { grid-template-columns: 1fr; }
}
.admin-card { width: min(500px, 100%); }
.code-result {
  margin-top: 18px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
.code-result span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.code-result strong {
  display: block;
  color: #1d4ed8;
  font-size: 25px;
  letter-spacing: 2px;
  word-break: break-all;
  margin-bottom: 14px;
}
.admin-body { display: block; padding: 24px; }
.admin-body .login-card { margin: 8vh auto; }
.captcha-row { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.captcha-box {
  border: 1px solid #bfdbfe;
  background: repeating-linear-gradient(135deg, #eff6ff, #eff6ff 8px, #dbeafe 8px, #dbeafe 16px);
  color: #1d4ed8;
  border-radius: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 4px;
  cursor: pointer;
}
.admin-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  color: var(--text);
}
.admin-header,
.admin-section {
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(15,23,42,0.20);
}
.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 18px;
}
.admin-header h1 { font-size: 24px; }
.admin-header p { color: var(--muted); margin-top: 4px; }
.admin-actions { display: flex; gap: 8px; }
.admin-section { padding: 20px; margin-bottom: 18px; }
.admin-section h2 { font-size: 16px; margin-bottom: 14px; }
.admin-inline-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.admin-inline-form input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.admin-table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.admin-table th, .admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.admin-table th { background: #f8fafc; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table code { font-family: Consolas, monospace; color: #475569; }
.admin-op-cell { min-width: 190px; white-space: normal !important; }
.admin-op-cell .btn { margin: 2px; }
.status-pill { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; }
.status-pill.on { color: #047857; background: #d1fae5; }
.status-pill.off { color: #991b1b; background: #fee2e2; }
.status-pill.used { color: #92400e; background: #fef3c7; }
.sites-toolbar { padding: 12px; display: flex; gap: 8px; border-bottom: 1px solid var(--border); }
.url-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.status-on { color: #16a34a; }
.status-off { color: var(--muted); }
dialog { border: none; border-radius: 12px; padding: 24px; width: 420px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.add-panel { background: #eff6ff; }
.add-panel h2 { color: var(--primary); text-transform: none; letter-spacing: 0; font-size: 15px; }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.btn.block { width: 100%; margin-top: 4px; }
.interval-fixed { color: var(--primary); font-weight: 500; }
.msg { font-size: 12px; margin-top: 10px; line-height: 1.4; }
.msg.hidden { display: none; }
.msg.ok { color: #16a34a; }
.msg.err { color: var(--new); }
.group-switch {
  display: inline-flex; gap: 4px; padding: 3px;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 10px;
  background: rgba(255,255,255,0.12);
}
.group-switch .group-btn { border-color: transparent; background: transparent; color: #fff; min-width: 58px; }
.group-switch .group-btn.active { background: #fff; color: var(--primary); font-weight: 700; }
.group-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; padding: 2px 7px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.group-tag.group1 { background: #dbeafe; color: #1d4ed8; }
.group-tag.group2 { background: #fee2e2; color: #b91c1c; }
.meme-panel { background: #fff7ed; padding: 10px; }
.meme-carousel {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: #ffedd5; border: 1px solid #fed7aa;
  display: flex; align-items: center; justify-content: center;
}
.meme-carousel img { width: 100%; height: 100%; object-fit: contain; display: block; }
.focus-alert-dialog::backdrop, .holiday-notice-dialog::backdrop { background: rgba(15, 23, 42, 0.55); }
.focus-alert { min-width: 360px; max-width: 560px; }
.holiday-notice { min-width: 360px; max-width: 560px; }
.holiday-notice h3 { color: #b45309; margin-bottom: 10px; font-size: 18px; }
.holiday-notice p { color: var(--text); line-height: 1.7; margin-bottom: 10px; }
.holiday-tip { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 12px; }
.holiday-check { margin-top: 12px; color: var(--muted); }
.focus-alert h3 { color: var(--new); margin-bottom: 10px; font-size: 18px; }
.focus-alert p { color: var(--text); line-height: 1.5; margin-bottom: 12px; }
.focus-alert-list { max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; padding: 8px; font-size: 13px; line-height: 1.5; }
.focus-alert-item { padding: 6px 4px; border-bottom: 1px solid var(--border); }
.focus-alert-item:last-child { border-bottom: none; }
#focusStatus.focus-on { color: var(--new); font-weight: 700; }
.meme-settings { margin-top: 10px; }
.meme-settings summary { cursor: pointer; font-size: 12px; color: var(--primary); font-weight: 700; }
#memeUrls { width: 100%; resize: vertical; min-height: 76px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; font-family: inherit; }
.meme-actions { display: flex; gap: 8px; margin-top: 8px; }

/* 标签树形分类 */
.tag-tree { display: flex; flex-direction: column; gap: 2px; }
.tag-tree-empty { font-size: 12px; color: var(--muted); padding: 6px 2px; line-height: 1.5; }
.tag-tree-all { background: none; border: none; cursor: pointer; text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--text); width: 100%; transition: background 0.15s; }
.tag-tree-all:hover { background: #f1f5f9; }
.tag-tree-all.active { background: #e0f2fe; color: #0369a1; }
.tag-group { border-radius: 6px; }
.tag-group-header { display: flex; align-items: center; gap: 6px; padding: 5px 10px; cursor: pointer; border-radius: 6px; transition: background 0.15s; user-select: none; }
.tag-group-header:hover { background: #f1f5f9; }
.tag-group-header.active { background: #e0f2fe; color: #0369a1; font-weight: 700; }
.tag-arrow { font-size: 10px; color: var(--muted); width: 10px; flex-shrink: 0; }
.tag-group-name { flex: 1; font-size: 13px; font-weight: 600; }
.tag-count { font-size: 11px; color: var(--muted); background: #f1f5f9; padding: 1px 6px; border-radius: 8px; }
.tag-site-list { list-style: none; margin: 0; padding: 0 0 4px 22px; display: none; }
.tag-group.open .tag-site-list { display: block; }
.tag-site-item { padding: 4px 10px; font-size: 12px; color: var(--text); cursor: pointer; border-radius: 5px; transition: background 0.12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag-site-item:hover { background: #f1f5f9; }
.tag-site-item.active-site { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.sub-tag-header { padding-left: 18px !important; background: none; }
.sub-tag-header:hover { background: #f1f5f9; }
.sub-tag-header.active { background: #e0f2fe; color: #0369a1; font-weight: 700; }
.tag-child-item { list-style: none; }
.tag-sort-btns { display: flex; gap: 3px; margin-left: auto; opacity: 0.82; }
.tag-group-header:hover .tag-sort-btns { opacity: 1; }
.tag-sort-btn { background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; cursor: pointer; font-size: 12px; padding: 0 6px; line-height: 20px; min-width: 24px; color: #475569; font-weight: 700; }
.tag-sort-btn:hover:not(:disabled) { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.tag-sort-btn:disabled { opacity: 0.35; cursor: default; background: #f8fafc; }

/* 站点标签徽章 */
.site-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.site-tag { display: inline-block; padding: 1px 7px; border-radius: 10px; background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 600; border: 1px solid #bae6fd; }
.word-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.word-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: 12px; font-weight: 600; }
.word-chip button { border: none; background: transparent; color: #991b1b; cursor: pointer; font-weight: 800; padding: 0 2px; }
.block-word-row { display: flex; gap: 6px; margin: 8px 0; }
.block-word-row input { flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.trash-box { margin-top: 8px; max-height: 240px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #f8fafc; padding: 8px; }
.trash-page { display: flex; flex-direction: column; }
.trash-page-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #fff7ed, #ffffff 55%, #eff6ff);
  border-bottom: 1px solid var(--border);
}
.trash-page-header h2 { font-size: 20px; color: #7c2d12; margin-bottom: 4px; }
.trash-control-panel {
  margin: 14px 16px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fffaf5;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.06);
}
.trash-control-head h3 { font-size: 16px; color: #7c2d12; margin-bottom: 4px; }
.trash-word-row { max-width: 760px; }
.trash-word-row input { min-height: 38px; font-size: 13px; }
.trash-control-panel .word-list { margin: 10px 0 12px; }
.trash-control-panel .word-chip { font-size: 13px; padding: 4px 9px; }
.trash-control-panel .msg { margin-top: 8px; }
.trash-control-panel {
  margin: 14px 16px;
  padding: 16px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fffaf5;
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.06);
}
.trash-control-head h3 { font-size: 16px; color: #7c2d12; margin-bottom: 4px; }
.trash-word-row { max-width: 760px; }
.trash-word-row input { min-height: 38px; font-size: 13px; }
.trash-control-panel .word-list { margin: 10px 0 12px; }
.trash-control-panel .word-chip { font-size: 13px; padding: 4px 9px; }
.trash-control-panel .msg { margin-top: 8px; }
.trash-page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.trash-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.trash-table th {
  position: sticky;
  top: 78px;
  z-index: 2;
  background: #fff7ed;
  color: #9a3412;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid #fed7aa;
}
.trash-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.trash-table tbody tr:hover { background: #fff7ed; }
.trash-reason { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #fee2e2; color: #991b1b; font-size: 12px; font-weight: 700; }
.trash-time { color: var(--muted); white-space: nowrap; font-size: 12px; }
.trash-page.hidden { display: none; }
.trash-box.hidden { display: none; }
.trash-item { padding: 6px 4px; border-bottom: 1px solid var(--border); font-size: 12px; line-height: 1.45; }
.trash-item:last-child { border-bottom: none; }
.trash-item span, .trash-empty { color: var(--muted); font-size: 11px; }
.admin-inline-form select { min-height: 38px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 12px; }
.admin-stat-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #f8fafc; }
.admin-stat-card span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.admin-stat-card strong { display: block; color: var(--primary); font-size: 26px; line-height: 1.1; }
.admin-stat-card em { display: block; color: var(--muted); font-size: 12px; font-style: normal; margin-top: 4px; }
.admin-date-stats { margin-top: 14px; }
.admin-date-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.admin-date-stats-head h3 { margin: 0; font-size: 16px; color: var(--text); }
.admin-date-stats-head select { min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.admin-table-wrap.compact { max-height: 280px; overflow: auto; }
