/* ==========================================================================
   琉璃 · 简洁企业风（对标「站点工坊」clean 皮肤）
   白底 · 1px 细边框 · 近黑主色 · 侧边栏 · 系统字体
   ========================================================================== */

:root {
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #fafafa;
  --c-line: #e9e9ef;
  --c-line-2: #e2e2e8;
  --c-divider: #f0f0f4;
  --c-ink: #18181b;
  --c-ink-2: #52525b;
  --c-muted: #8a8a93;
  --c-hover: #f4f4f6;
  --c-ok: #12a67a;
  --c-err: #ef4444;
  --c-warn: #b45309;
  --r-lg: 14px;
  --r-md: 12px;
  --r-sm: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-2: 0 2px 8px rgba(16, 24, 40, .06);
}

/* ---------------------------------------------------------------- 基础 */
body.theme-clean {
  background: #fafafa;
  color: var(--c-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

body.theme-clean::before,
body.theme-clean .doodle-layer,
body.theme-clean .spray { display: none !important; }

/* ---------------------------------------------------------------- 侧边栏 */
body.theme-clean .topbar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 228px;
  height: 100vh;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 20px 14px;
  background: #fff;
  border-right: 1px solid #ececf1;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow-y: auto;
}

body.theme-clean .brand {
  order: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 18px;
  color: var(--c-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
  transform: none;
  text-shadow: none;
}

body.theme-clean .brand .blob {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #18181b;
  border: none;
  box-shadow: none;
  transform: none;
}

body.theme-clean .nav {
  order: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  flex-wrap: nowrap;
}

body.theme-clean .nav a,
body.theme-clean .nav button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: var(--r-sm);
  background: transparent;
  box-shadow: none;
  transform: none;
  color: #6b6b76;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: background .15s, color .15s;
}

body.theme-clean .nav a:nth-child(even),
body.theme-clean .nav button:nth-child(even) { transform: none; }

body.theme-clean .nav a:hover,
body.theme-clean .nav button:hover {
  background: var(--c-hover);
  color: var(--c-ink);
  transform: none;
  box-shadow: none;
}

body.theme-clean .nav a.on {
  background: var(--c-hover);
  color: var(--c-ink);
  font-weight: 600;
}

/* ---------------------------------------------------------------- 内容区 */
/* 只有存在侧边栏时才右移内容 */
body.theme-clean:has(.topbar) .wrap { margin-left: 228px; }
body.theme-clean .wrap {
  margin-left: 0;
  width: auto;
  max-width: 1180px;
  padding: 28px 34px 56px;
}

body.theme-clean .admin-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--c-divider);
  margin-bottom: 20px;
}

body.theme-clean .graffiti {
  font-size: clamp(21px, 2.2vw, 24px);
  font-weight: 600;
  letter-spacing: -.2px;
  color: var(--c-ink);
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: none;
  line-height: 1.35;
  margin: 0;
}

body.theme-clean .kicker {
  display: inline-block;
  background: #f4f4f6;
  color: #8a8a93;
  border: 1px solid var(--c-line);
  border-radius: 6px;
  box-shadow: none;
  transform: none;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 600;
  padding: 2px 8px;
}

body.theme-clean .marker::after { display: none; }
body.theme-clean .section-head { margin-bottom: 14px; }
body.theme-clean .section-head h2 {
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 600;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: none;
  letter-spacing: 0;
  margin: 0;
}
body.theme-clean .section-head .hint { color: var(--c-muted); font-size: 12px; letter-spacing: 0; }

/* ---------------------------------------------------------------- 卡片 */
body.theme-clean .card,
body.theme-clean .item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  transform: none;
  padding: 18px 20px;
  color: var(--c-ink);
}

/* 简洁风：全部取消涂鸦风的歪斜/旋转 */
body.theme-clean .card,
body.theme-clean .item,
body.theme-clean .card:nth-child(n),
body.theme-clean .item:nth-child(n) { transform: none; }

body.theme-clean .card:nth-child(even),
body.theme-clean .item:nth-child(even) { transform: none; }

body.theme-clean .card:hover,
body.theme-clean .item:hover {
  transform: none;
  box-shadow: var(--shadow-2);
  border-color: #dcdce4;
}

body.theme-clean .card .tape { display: none; }

body.theme-clean .card h3,
body.theme-clean .item h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--c-ink);
  margin: 0 0 8px;
}

body.theme-clean .card p { color: var(--c-ink-2); font-size: 13px; margin: 4px 0; }

body.theme-clean .item .sub,
body.theme-clean .sub {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 3px;
}

body.theme-clean .big-num {
  font-size: 30px;
  font-weight: 650;
  color: var(--c-ink);
  letter-spacing: -.6px;
  line-height: 1.1;
}

body.theme-clean .stat-link { text-decoration: none; display: block; }
body.theme-clean .stat-link .sub { color: var(--c-muted); }
body.theme-clean .stat-link:hover { border-color: #d4d4da; }

/* ---------------------------------------------------------------- 按钮 */
body.theme-clean .btn {
  background: #18181b;
  color: #fff;
  border: 1px solid #18181b;
  border-radius: var(--r-sm);
  box-shadow: none;
  transform: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  letter-spacing: 0;
  transition: background .15s, border-color .15s;
}

body.theme-clean .btn:hover {
  background: #27272a;
  border-color: #27272a;
  transform: none;
  box-shadow: none;
}

body.theme-clean .btn:active { transform: none; box-shadow: none; }

body.theme-clean .btn.ghost {
  background: #fff;
  color: #3f3f46;
  border: 1px solid var(--c-line-2);
}
body.theme-clean .btn.ghost:hover { background: var(--c-hover); border-color: #d4d4da; }

/* 只有「危险/删除」保留红色，其余彩色按钮一律收成白底描边 */
body.theme-clean .btn.pink,
body.theme-clean .btn.red { background: #dc2626; border-color: #dc2626; color: #fff; }
body.theme-clean .btn.pink:hover,
body.theme-clean .btn.red:hover { background: #b91c1c; border-color: #b91c1c; }

body.theme-clean .btn.cyan,
body.theme-clean .btn.orange,
body.theme-clean .btn.lime,
body.theme-clean .btn.green {
  background: #fff;
  color: #3f3f46;
  border: 1px solid var(--c-line-2);
}
body.theme-clean .btn.cyan:hover,
body.theme-clean .btn.orange:hover,
body.theme-clean .btn.lime:hover,
body.theme-clean .btn.green:hover {
  background: var(--c-hover);
  border-color: #d4d4da;
}

body.theme-clean .btn.sm { font-size: 12.5px; padding: 5px 10px; border-width: 1px; border-radius: 8px; }
body.theme-clean .btn.big { font-size: 14px; padding: 10px 18px; border-radius: var(--r-sm); box-shadow: none; }

/* ---------------------------------------------------------------- 标签 */
body.theme-clean .tag {
  background: #f4f4f6;
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  transform: none;
  font-size: 11.5px;
  font-weight: 500;
  padding: 2px 8px;
}

body.theme-clean .tag.lime { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
body.theme-clean .tag.pink { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
body.theme-clean .tag.cyan { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
body.theme-clean .tag.orange { background: #fffbeb; color: #b45309; border-color: #fde68a; }
body.theme-clean .tag.purple { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
body.theme-clean .tag.dark { background: #18181b; color: #fff; border-color: #18181b; }

/* ---------------------------------------------------------------- 表格 */
body.theme-clean .tbl { font-size: 13px; width: 100%; border-collapse: collapse; }
body.theme-clean .tbl th {
  color: var(--c-muted);
  font-size: 11px;
  letter-spacing: .4px;
  font-weight: 600;
  border-bottom: 1px solid var(--c-line);
  background: #fafafa;
  padding: 9px 10px;
  text-transform: none;
}
body.theme-clean .tbl td { border-bottom: 1px solid var(--c-divider); padding: 10px; }
body.theme-clean .tbl tr:hover td { background: #fcfcfd; }

/* ---------------------------------------------------------------- 表单 */
body.theme-clean .input,
body.theme-clean .select,
body.theme-clean .textarea {
  background: #fff;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  box-shadow: none;
  font-size: 13.5px;
  padding: 8px 11px;
  font-family: inherit;
  color: var(--c-ink);
}

body.theme-clean .input:focus,
body.theme-clean .select:focus,
body.theme-clean .textarea:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
  background: #fff;
}

body.theme-clean .field label {
  color: #3f3f46;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 5px;
}

body.theme-clean .textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------------------------------------------------------------- 其他块 */
body.theme-clean .dot { border: none; width: 8px; height: 8px; }
body.theme-clean .dot.ok { background: var(--c-ok); }
body.theme-clean .dot.bad { background: var(--c-err); }
body.theme-clean .dot.warn { background: #d97706; }

body.theme-clean .meter {
  background: #f0f0f4;
  border: none;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
body.theme-clean .meter i { border-radius: 999px; }

body.theme-clean .probe-out {
  background: #0f172a;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

body.theme-clean .secret {
  background: #fafafa;
  color: #18181b;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font-size: 12px;
}

body.theme-clean .hr {
  background: var(--c-divider);
  height: 1px;
  opacity: 1;
  margin: 18px 0;
}

body.theme-clean .footer {
  margin-left: 0;
  border-top: 1px solid var(--c-divider);
  color: var(--c-muted);
  font-size: 12px;
  padding-top: 16px;
  margin-top: 40px;
}

body.theme-clean .err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  transform: none;
  font-size: 12.5px;
}

body.theme-clean .toast,
body.theme-clean .flash .toast {
  background: #18181b;
  color: #fafafa;
  border: none;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transform: none;
  font-size: 12.5px;
}

body.theme-clean .bars .bar {
  background: #d4d4d8;
  border: none;
  border-radius: 3px 3px 0 0;
  box-shadow: none;
}
body.theme-clean .bar-wrap:nth-child(even) .bar { background: #a1a1aa; }
body.theme-clean .bar-wrap span { color: var(--c-muted); }

body.theme-clean .log-item { border-bottom: 1px solid var(--c-divider); }
body.theme-clean .log-item .txt { color: var(--c-ink-2); font-size: 12.5px; }
body.theme-clean .log-item .ver {
  background: #f4f4f6;
  color: var(--c-ink);
  border-radius: 6px;
  font-weight: 600;
}

body.theme-clean .qr-box img { border: 1px solid var(--c-line); border-radius: 10px; box-shadow: none; }

body.theme-clean .metric-grid { background: #fafafa; border: 1px solid var(--c-line); border-radius: 10px; }
body.theme-clean .metric-grid .m span { color: var(--c-muted); }
body.theme-clean .metric-grid .m b { color: var(--c-ink); font-weight: 600; }

/* 弹窗 */
body.theme-clean .modal.open { background: rgba(24, 24, 27, .45); backdrop-filter: blur(2px); }
body.theme-clean .sheet {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
  transform: none;
  padding: 22px;
}
body.theme-clean .sheet h3 { font-size: 17px; font-weight: 600; }
body.theme-clean .sheet .close {
  background: #f4f4f6;
  color: #52525b;
  border: none;
  box-shadow: none;
  width: 30px; height: 30px;
  font-size: 16px;
}
body.theme-clean .sheet .close:hover { background: #e9e9ef; }

/* 登录页 */
body.theme-clean .login-card {
  transform: none;
  width: min(400px, 100%);
  box-shadow: 0 12px 40px rgba(16, 24, 40, .08);
  border-radius: var(--r-lg);
}
body.theme-clean .login-card .graffiti { font-size: 26px; }
body.theme-clean .code-input {
  border: 1px solid var(--c-line-2);
  border-radius: var(--r-sm);
  box-shadow: none;
  font-size: 30px;
  letter-spacing: 10px;
  padding: 12px 6px 12px 16px;
}
body.theme-clean .code-input:focus {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
  background: #fff;
}
body.theme-clean .hintline { color: var(--c-muted); font-size: 12px; }

/* 首页（官网） */
body.theme-clean .hero { padding: 40px 0 12px; gap: 36px; }
body.theme-clean .hero .lead { color: var(--c-ink-2); font-size: 15px; line-height: 1.75; }
body.theme-clean .hero .lead b { color: var(--c-ink); font-weight: 600; }

body.theme-clean .hero-sticker {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 12px;
  transform: none;
}
body.theme-clean .hero-sticker .shot { border: 1px solid var(--c-line); border-radius: 8px; }
body.theme-clean .hero-sticker .cap { color: var(--c-muted); font-size: 12px; }
body.theme-clean .hero-sticker .pin { display: none; }

body.theme-clean .stats { gap: 12px; margin-top: 22px; }
body.theme-clean .stat {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: none;
  transform: none;
  padding: 12px 16px;
  min-width: 104px;
}
body.theme-clean .stat:nth-child(even) { border-color: var(--c-line); box-shadow: none; transform: none; }
body.theme-clean .stat b { color: var(--c-ink); font-weight: 650; font-size: 22px; }
body.theme-clean .stat span { color: var(--c-muted); font-size: 11px; letter-spacing: .3px; }

body.theme-clean .feature .ico {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: #fafafa;
  box-shadow: none;
  color: var(--c-ink);
  font-size: 18px;
  width: 38px; height: 38px;
}
body.theme-clean .feature:nth-child(n) .ico { background: #fafafa; color: var(--c-ink); }

body.theme-clean .shots { gap: 20px; }
body.theme-clean .polaroid {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  padding: 10px;
  transform: none;
}
body.theme-clean .polaroid:nth-child(even) { transform: none; }
body.theme-clean .polaroid img { border: 1px solid var(--c-line); border-radius: 6px; }
body.theme-clean .polaroid p { color: var(--c-ink-2); font-size: 12px; }

/* 主题选择器 */
body.theme-clean .theme-opt {
  border: 1px solid var(--c-line-2);
  box-shadow: none;
  transform: none;
  border-radius: var(--r-md);
  background: #fff;
}
body.theme-clean .theme-opt.on {
  border-color: #18181b;
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
}
body.theme-clean .theme-opt i { color: var(--c-muted); }

/* 字体统一 */
body.theme-clean .nav a,
body.theme-clean .nav button,
body.theme-clean .btn,
body.theme-clean .tag,
body.theme-clean .brand,
body.theme-clean .kicker,
body.theme-clean .stat b,
body.theme-clean .stat span,
body.theme-clean .card h3,
body.theme-clean .item h4,
body.theme-clean .tabs a,
body.theme-clean .code-input,
body.theme-clean .sheet h3,
body.theme-clean .sheet .close,
body.theme-clean .toast,
body.theme-clean .log-item .ver,
body.theme-clean .hero .lead,
body.theme-clean .hero-sticker .cap,
body.theme-clean .section-head .hint,
body.theme-clean .field label,
body.theme-clean .check label,
body.theme-clean .input,
body.theme-clean .select,
body.theme-clean .textarea,
body.theme-clean .footer,
body.theme-clean .hintline,
body.theme-clean .theme-opt b,
body.theme-clean .theme-opt i {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, Arial, sans-serif;
}

body.theme-clean .mono,
body.theme-clean .secret,
body.theme-clean .probe-out,
body.theme-clean .item .sub,
body.theme-clean .sub { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* 长串（hash / 链接 / 密钥）允许任意位置换行，避免撑破窄屏 */
body.theme-clean .mono,
body.theme-clean .secret,
body.theme-clean p,
body.theme-clean td,
body.theme-clean .sub {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 移动端：侧边栏折叠成顶部横向滚动条 */
@media (max-width: 900px) {
  body.theme-clean .topbar {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 14px;
    border-right: none;
    border-bottom: 1px solid #ececf1;
    overflow-x: auto;
    overflow-y: hidden;
  }
  body.theme-clean .brand { padding: 0 12px 0 0; font-size: 15px; }
  body.theme-clean .brand .blob { width: 26px; height: 26px; border-radius: 7px; }
  body.theme-clean .nav { flex-direction: row; gap: 4px; }
  body.theme-clean .nav a,
  body.theme-clean .nav button { width: auto; white-space: nowrap; padding: 7px 11px; font-size: 13px; }
  body.theme-clean .wrap { margin-left: 0; padding: 18px 14px 40px; }
}

/* ==========================================================================
   控制台三端自适应（桌面 ≥1025 / 平板 769–1024 / 手机 ≤768）
   ========================================================================== */

/* 服务器卡片：桌面 3 列，够宽才能放下走势图和四条指标 */
body.theme-clean .grid.srv-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }

/* 哪吒式服务器卡片：用细边框和更小的圆角 */
body.theme-clean .srv.item { padding: 14px 16px; border-radius: 12px; }
body.theme-clean .srv-id b { color: var(--c-ink); }
body.theme-clean .srv-id span { color: var(--c-muted); }
body.theme-clean .sb-track { background: #f0f0f4; }
body.theme-clean .sb-v { color: var(--c-ink); }
body.theme-clean .net-item b { color: var(--c-ink); }
body.theme-clean .srv-stats { border-color: var(--c-divider); }
body.theme-clean .srv-stats b { color: var(--c-ink); }
body.theme-clean .srv-foot { color: var(--c-muted); }
body.theme-clean .srv-actions .small { color: var(--c-muted); }

@media (min-width: 901px) and (max-width: 1024px) {
  body.theme-clean .topbar { width: 200px; padding: 18px 12px; }
  body.theme-clean .wrap,
  body.theme-clean:has(.topbar) .wrap {
    margin-left: 200px;
    padding: 22px 22px 48px;
    max-width: none;
  }
  body.theme-clean .admin-head { flex-wrap: wrap; gap: 10px; }
  body.theme-clean .grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  body.theme-clean .grid.tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  body.theme-clean .grid.srv-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
  body.theme-clean .metric-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  /* 侧栏折叠成顶部横条（已在前面定义），这里补齐内容区 */
  body.theme-clean .wrap,
  body.theme-clean:has(.topbar) .wrap {
    margin-left: 0;
    padding: 16px 14px 40px;
  }
  body.theme-clean .admin-head { padding: 2px 0 12px; margin-bottom: 14px; }
  body.theme-clean .grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  body.theme-clean .grid.tight { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  body.theme-clean .grid.srv-grid { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
  body.theme-clean .metric-grid { grid-template-columns: repeat(4, 1fr); }
  body.theme-clean .sheet { padding: 18px; }
}

@media (max-width: 768px) {
  body.theme-clean .topbar { padding: 9px 12px; }
  body.theme-clean .brand { font-size: 14.5px; }
  body.theme-clean .grid,
  body.theme-clean .grid.tight { grid-template-columns: 1fr; }
  body.theme-clean .grid.srv-grid { grid-template-columns: 1fr; }
  body.theme-clean .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  body.theme-clean .form-grid { grid-template-columns: 1fr; }
  body.theme-clean .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  body.theme-clean .tabs a { white-space: nowrap; }
  /* 表格横向滚动，避免挤压 */
  body.theme-clean .tbl { display: block; overflow-x: auto; white-space: nowrap; }
  /* 柱状图：窄屏改为横向滚动，避免撑破页面 */
  body.theme-clean .bars { gap: 5px; overflow-x: auto; padding-bottom: 6px; }
  body.theme-clean .bar-wrap { flex: 0 0 22px; min-width: 0; }
  body.theme-clean .bar-wrap span { font-size: 9px; }
  body.theme-clean .card, body.theme-clean .item { padding: 15px 16px; }
  body.theme-clean .big-num { font-size: 26px; }
  body.theme-clean .row { gap: 8px; }
  body.theme-clean .btn { font-size: 13px; padding: 7px 12px; }
  body.theme-clean .btn.sm { font-size: 12px; padding: 5px 9px; }
  body.theme-clean .modal { padding: 10px; }
  body.theme-clean .sheet { max-height: 92vh; border-radius: 14px; }
  body.theme-clean .login-card { width: 100%; }
}

@media (max-width: 480px) {
  body.theme-clean .wrap,
  body.theme-clean:has(.topbar) .wrap { padding: 12px 12px 32px; }
  body.theme-clean .graffiti { font-size: 20px; }
  body.theme-clean .card, body.theme-clean .item { padding: 14px; border-radius: 12px; }
  body.theme-clean .metric-grid { grid-template-columns: repeat(2, 1fr); }
  body.theme-clean .metric-grid .m b { font-size: 13px; }
  body.theme-clean .stat-grid,
  body.theme-clean .grid.tight { gap: 10px; }
  body.theme-clean .btn { padding: 7px 10px; }
  body.theme-clean .theme-picker { grid-template-columns: 1fr; }
  body.theme-clean .admin-head { gap: 8px; }
  body.theme-clean .admin-head > div:last-child { margin-left: 0 !important; }
}
