:root {
  --primary: #0e7490;
  --primary-dark: #155e75;
  --primary-soft: #cffafe;
  --accent: #ea580c;
  --accent-soft: #ffedd5;
  --ok: #059669;
  --ok-soft: #d1fae5;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --info: #2563eb;
  --info-soft: #dbeafe;
  --ink: #1f2937;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --surface: #ffffff;
  --canvas: #f3f4f6;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.05);
  --radius: 8px;
  --sidebar-w: 248px;
  --bottom-h: 64px;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 9px 11px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12); }
textarea { min-height: 84px; resize: vertical; }
label { font-size: 13px; color: var(--muted); display: block; margin: 0 0 6px; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  width: var(--sidebar-w);
  background: #103f4c;
  color: #ecfeff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 10px 20px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, #22d3ee 0%, #0e7490 100%);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.25);
  position: relative;
  flex: 0 0 auto;
}
.brand-mark::before {
  content: "";
  position: absolute; inset: 11px;
  border: 2px solid #fff; border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.28);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: 0; }
.brand-sub { font-size: 12px; color: #a5f3fc; opacity: 0.9; }

.side-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; border: 0; background: transparent; color: #cffafe;
  padding: 11px 12px; border-radius: 8px; font-size: 15px; text-align: left;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: #ffffff; color: #134e5a; font-weight: 700; }
.nav-item .nav-ico { width: 20px; height: 20px; flex: 0 0 auto; }
.nav-item.active .nav-ico { color: var(--primary); }
.side-foot { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 12px; }
.side-user {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: transparent; border: 0; border-radius: 8px; padding: 8px;
  color: #ecfeff; text-align: left;
}
.side-user:hover { background: rgba(255,255,255,0.08); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f59e0b; color: #fff; font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta strong { font-size: 14px; }
.user-meta small { font-size: 11px; color: #a5f3fc; }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  min-height: 72px;
}
.page-title { margin: 0; font-size: 21px; letter-spacing: 0; }
.page-subtitle { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.site-picker select {
  width: auto;
  min-width: 110px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 28px 8px 10px;
}
.menu-btn { display: none; }
.page { padding: 22px 24px 36px; width: 100%; max-width: 1240px; margin: 0 auto; }

.bottom-nav {
  display: none;
  position: fixed; inset: auto 0 0; height: var(--bottom-h);
  background: #fff; border-top: 1px solid #111; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-item {
  position: relative;
  flex-direction: column; gap: 2px; font-size: 11px; padding: 8px 0 5px; text-align: center;
  color: #111;
}
.bottom-nav .nav-item .nav-ico { width: 21px; height: 21px; color: #111; }
.bottom-nav .nav-item.active { background: #fff; color: #111; font-weight: 700; }
.bottom-nav .nav-item.active .nav-ico { color: #111; }
.bottom-nav .nav-item.active::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; background: #111; border-radius: 0 0 2px 2px;
}
.bottom-nav .nav-item:not(.active) { color: #4b5563; }
.bottom-nav .nav-item:not(.active) .nav-ico { color: #4b5563; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 14px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #c2410c; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { padding: 6px 10px; font-size: 13px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .btn-ico { width: 16px; height: 16px; }

.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted);
}
.icon-btn svg { width: 18px; height: 18px; }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel-pad { padding: 18px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel-title { font-size: 16px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.panel-title svg { width: 18px; height: 18px; color: var(--primary); }
.panel-sub { font-size: 12px; color: var(--faint); font-weight: 400; margin-left: 6px; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.stat-ico {
  width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; flex: 0 0 auto;
}
.stat-ico svg { width: 22px; height: 22px; }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-name { font-size: 13px; color: var(--muted); margin-top: 2px; }
.bg-cyan { background: var(--primary); }
.bg-amber { background: #d97706; }
.bg-green { background: var(--ok); }
.bg-red { background: var(--danger); }
.bg-blue { background: var(--info); }

.segment-row { display: flex; gap: 10px; flex-wrap: wrap; }
.seg {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; font-size: 14px;
}
.seg.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .search { position: relative; flex: 1 1 240px; min-width: 180px; }
.toolbar .search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.toolbar .search input { padding-left: 34px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th {
  text-align: left; font-size: 12px; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #f9fafb; white-space: nowrap;
}
td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
tbody tr:hover { background: #f8fafc; }
tbody tr[data-detail-id] { cursor: pointer; }
tr:last-child td { border-bottom: 0; }
.td-main { font-weight: 600; }
.td-sub { color: var(--faint); font-size: 12px; display: block; }
.num { font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.spare-group-row td { background: #f0fdfa; padding: 6px 14px; }
.spare-group { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.spare-group-stats { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px;
  font-size: 12px; font-weight: 600; padding: 3px 9px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-normal { background: var(--ok-soft); color: var(--ok); }
.b-warning { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-muted { background: #f3f4f6; color: var(--muted); }
.b-accent { background: var(--accent-soft); color: var(--accent); }

.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid #f3f4f6;
}
.list-row:last-child { border-bottom: 0; }
.list-main { flex: 1; min-width: 0; }
.list-title { font-weight: 600; font-size: 14px; }
.list-sub { color: var(--faint); font-size: 12px; }
.list-note { font-size: 12px; color: var(--muted); margin-top: 2px; }
.site-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.site-edit-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 10px 14px; align-items: end; padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
}
.site-edit-row:last-child { border-bottom: 0; }
.site-edit-row .site-actions { align-items: center; }

.alert-list .list-row { border-left: 3px solid transparent; }
.alert-list .warn-item { border-left-color: var(--warn); }
.alert-list .danger-item { border-left-color: var(--danger); background: #fffaf5; }

.empty {
  text-align: center; color: var(--faint); padding: 52px 18px; font-size: 14px;
}
.empty svg { width: 44px; height: 44px; margin: 0 auto 12px; display: block; color: #d1d5db; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field-check { display: flex; align-items: center; gap: 8px; }
.field-check input { width: auto; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.kv { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.kv .k { font-size: 12px; color: var(--faint); }
.kv .v { font-size: 14px; font-weight: 600; margin-top: 2px; word-break: break-word; }

.timeline { border-left: 2px solid #e5e7eb; margin-left: 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 12px; }
.tl-item { position: relative; }
.tl-item::before {
  content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line);
}
.tl-item.return::before { background: var(--ok); }
.tl-item.consume::before { background: var(--accent); }
.tl-head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.tl-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tl-time { color: var(--faint); font-size: 12px; }

.notice { padding: 12px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.notice-warn { background: var(--warn-soft); color: #92400e; border: 1px solid #fde68a; }
.notice-ok { background: var(--ok-soft); color: #065f46; border: 1px solid #a7f3d0; }
.notice-info { background: var(--primary-soft); color: #155e75; border: 1px solid #a5f3fc; }
.notice-danger { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

.hero {
  background: linear-gradient(120deg, #155e75 0%, #0e7490 58%, #0891b2 100%);
  color: #fff; border-radius: 10px; padding: 20px 22px; margin-bottom: 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  box-shadow: var(--shadow);
}
.hero h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: 0; }
.hero p { margin: 0; color: #cffafe; font-size: 14px; }
.hero .hero-stat { text-align: right; }
.hero .hero-stat strong { display: block; font-size: 30px; }
.hero .hero-stat span { font-size: 13px; color: #a5f3fc; }

.alert-pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 4px 10px;
}
.alert-pill svg { width: 13px; height: 13px; }
.pill-danger { background: rgba(254, 226, 226, 0.18); color: #fecaca; border: 1px solid rgba(254, 202, 202, 0.45); }
.pill-warn { background: rgba(254, 243, 199, 0.16); color: #fde68a; border: 1px solid rgba(253, 230, 138, 0.4); }

.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.quick-card {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.quick-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.quick-ico { width: 34px; height: 34px; border-radius: 7px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.quick-ico svg { width: 18px; height: 18px; color: #fff; }
.quick-card strong { display: block; font-size: 13px; }
.quick-card small { color: var(--faint); font-size: 11px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select { width: auto; min-width: 120px; }

.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  z-index: 60; animation: fade 0.15s ease-out;
}
.modal {
  position: fixed; z-index: 70; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 10px; box-shadow: 0 20px 60px rgba(15,23,42,0.25);
  animation: rise 0.18s ease-out;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 18px; overflow-y: auto; }
.close-btn { flex: 0 0 auto; }
.close-btn { font-size: 22px; line-height: 1; }

.toast-wrap { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1f2937; color: #fff; padding: 10px 16px; border-radius: 8px;
  box-shadow: var(--shadow); font-size: 14px; display: flex; align-items: center; gap: 8px;
  animation: drop 0.2s ease-out;
}
.toast.success { background: #065f46; }
.toast.error { background: #991b1b; }
.toast svg { width: 16px; height: 16px; }

.settings-group { margin-bottom: 18px; }
.settings-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 0 0 10px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; }

.code-area {
  background: #0f172a; color: #a5f3fc; border-radius: 8px; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; min-height: 120px; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

.hidden { display: none !important; }
.photo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.photo-hint { font-size: 12px; color: var(--faint); }
.photo-preview {
  display: block;
  max-width: 220px;
  max-height: 170px;
  width: auto;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 6px;
  object-fit: contain;
}
.detail-photo {
  display: block;
  max-width: 300px;
  max-height: 220px;
  width: auto;
  height: auto;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
}
.auth-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(150deg, #0f766e 0%, #155e75 46%, #0e7490 100%);
}
.auth-shell { width: 100%; max-width: 430px; }
.auth-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(2, 44, 34, 0.28);
  padding: 26px 24px 24px;
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.auth-brand h1 { margin: 0; font-size: 21px; }
.auth-brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.auth-card .seg { flex: 1; }
.auth-submit { width: 100%; margin-top: 18px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -44%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  body.drawer-open .sidebar {
    display: flex;
    position: fixed;
    z-index: 80;
    width: min(78vw, 280px);
    box-shadow: 0 0 0 100vw rgba(15, 23, 42, 0.35);
  }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .bottom-nav { display: flex; }
  .page { padding: 16px 14px calc(84px + env(safe-area-inset-bottom)); }
  .topbar { padding: 10px 14px; min-height: 60px; }
  .page-title { font-size: 18px; }
  .page-subtitle { font-size: 12px; }
  .topbar-actions .btn { padding: 8px 10px; font-size: 13px; }
  .site-picker select { min-width: 0; width: 92px; font-size: 12px; padding: 8px 22px 8px 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { display: none; }
  .stats-grid .stat-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    margin: 0;
    padding: 8px 4px;
    gap: 10px;
  }
  .stats-grid .stat-ico { width: 38px; height: 38px; }
  .stats-grid .stat-ico svg { width: 19px; height: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .hero .hero-stat { text-align: left; }
  .modal {
    position: fixed;
    inset: 0;
    transform: none;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .modal-header { padding: 10px 12px; min-height: 46px; }
  .modal-body {
    flex: 1;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    overflow: hidden;
    overscroll-behavior: none;
  }
  .modal-body .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }
  .modal-body .field { margin-bottom: 0; }
  .modal-body label { font-size: 10px; margin-bottom: 2px; }
  .modal-body input,
  .modal-body select,
  .modal-body textarea {
    font-size: 13px;
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 6px;
  }
  .modal-body textarea { min-height: 30px; height: 30px; }
  .modal-body .photo-row { margin-bottom: 3px; }
  .modal-body .photo-preview { max-height: 64px; max-width: 180px; margin-top: 3px; }
  .modal-body .form-actions { margin-top: 7px; padding-top: 7px; }
  .modal-body .notice { padding: 7px 9px; margin-bottom: 7px; font-size: 11px; }
  .modal-body .field-full { grid-column: 1 / -1; }
  .modal-body .field-full .photo-hint { font-size: 11px; }
  .table-wrap { margin: 0 -14px; }
  .panel { margin-bottom: 14px; }
}

@media (max-width: 420px) {
  .quick-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page { padding: 10px 10px calc(76px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 54px; padding: 8px 10px; }
  .hero { padding: 10px 14px; margin-bottom: 8px; border-radius: 8px; }
  .hero h2 { font-size: 16px; margin-bottom: 3px; }
  .hero p { font-size: 12px; }
  .hero .hero-stat strong { font-size: 20px; }
  .panel { margin-bottom: 10px; }
  .panel-head { padding: 8px 10px; }
  .panel-pad { padding: 12px; }
  .stats-grid { gap: 6px; }
  .stats-grid .stat-ico { display: none; }
  .stats-grid .stat-card { padding: 5px 2px; gap: 2px; align-items: flex-start; flex-direction: column; }
  .stats-grid .stat-num { font-size: 19px; }
  .stats-grid .stat-name { font-size: 11px; }
  .stats-grid .list-sub { font-size: 10px; }
  .list-row { padding: 8px 10px; }
  .site-edit-row { grid-template-columns: 1fr; gap: 8px; }
  .site-edit-row .site-actions { justify-content: flex-end; }
  .list-title { font-size: 13px; }
  .list-sub { font-size: 11px; }
  .page-title { font-size: 16px; }
  .page-subtitle { font-size: 11px; }
  .btn { padding: 7px 10px; font-size: 13px; }
  .alert-pill { font-size: 11px; }
}
