:root {
  --bg: #070b12;
  --bg-glow: #122038;
  --panel: #0f1624;
  --panel-2: #151e30;
  --panel-3: #1a2438;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e8eefc;
  --muted: #8b9bb8;
  --accent: #3b9eff;
  --accent-2: #22c55e;
  --accent-3: #a78bfa;
  --danger: #f0435a;
  --warn: #f5a524;
  --cyan: #22d3ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(59, 158, 255, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(34, 211, 238, 0.08), transparent 50%),
    linear-gradient(180deg, #0a101c 0%, var(--bg) 40%, #06090f 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #6bb6ff; }

/* Sidebar */
.side {
  position: fixed; inset: 0 auto 0 0; width: 232px;
  background: linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 12, 20, 0.98));
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 6px;
  backdrop-filter: blur(10px);
  z-index: 20;
}
.brand {
  font-weight: 750; font-size: 15px; padding: 10px 12px 16px;
  letter-spacing: .02em;
  background: linear-gradient(90deg, #fff, #9ec5ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.side nav { display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.side a {
  color: var(--muted); padding: 10px 12px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid transparent; transition: .18s ease;
}
.side a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.side a.active {
  background: linear-gradient(90deg, rgba(59,158,255,.18), rgba(59,158,255,.05));
  color: #fff; border-color: rgba(59,158,255,.25);
  box-shadow: inset 3px 0 0 var(--accent);
}

.main { margin-left: 232px; padding: 22px 28px 56px; min-height: 100vh; }
.top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.top h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.top .sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }

/* Stats */
.grid, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-bottom: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }

.card {
  background: linear-gradient(165deg, rgba(22, 30, 48, 0.95), rgba(12, 17, 28, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.card .label { color: var(--muted); font-size: 12px; font-weight: 560; letter-spacing: .04em; }
.card .value {
  font-size: 28px; font-weight: 780; margin-top: 8px; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.card .hint { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.stat-card {
  background: linear-gradient(160deg, #152033 0%, #0d1422 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.stat-card:hover { transform: translateY(-2px); border-color: rgba(59,158,255,.35); }
.stat-card .stat-icon {
  position: absolute; right: 12px; top: 12px; width: 36px; height: 36px;
  border-radius: 10px; display: grid; place-items: center; font-size: 16px;
  background: rgba(255,255,255,.04); color: var(--accent);
}
.stat-card.tone-blue .stat-icon { color: #60a5fa; background: rgba(59,158,255,.12); }
.stat-card.tone-green .stat-icon { color: #4ade80; background: rgba(34,197,94,.12); }
.stat-card.tone-amber .stat-icon { color: #fbbf24; background: rgba(245,158,11,.12); }
.stat-card.tone-rose .stat-icon { color: #fb7185; background: rgba(240,67,90,.12); }
.stat-card.tone-cyan .stat-icon { color: #22d3ee; background: rgba(34,211,238,.12); }
.stat-card.tone-violet .stat-icon { color: #c4b5fd; background: rgba(167,139,250,.12); }
.stat-card .label { color: var(--muted); font-size: 12px; }
.stat-card .value { font-size: 30px; font-weight: 800; margin-top: 10px; letter-spacing: -.03em; }
.stat-card .meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.stat-card .bar {
  margin-top: 12px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden;
}
.stat-card .bar > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px;
}
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.panel-head .muted { margin: 0; }

.quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-actions .btn { min-width: 96px; text-align: center; }
.quick-actions-wide { gap: 10px; }
.quick-actions-wide .btn {
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

.spark {
  display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 12px;
}
.spark span {
  flex: 1; border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(59,158,255,.85), rgba(59,158,255,.15));
  min-width: 6px;
}

.list-clean { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-clean li {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03);
  border: 1px solid var(--line); font-size: 13px;
}
.list-clean .k { color: var(--muted); }
.list-clean .v { font-weight: 650; font-variant-numeric: tabular-nums; }

.table-wrap {
  overflow: auto; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(10, 14, 24, 0.45);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th {
  background: rgba(26, 36, 56, 0.9); color: var(--muted); font-weight: 650;
  position: sticky; top: 0; backdrop-filter: blur(6px);
}
tr:hover td { background: rgba(59, 158, 255, 0.04); }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(180deg, #4aa6ff, #2f86e8);
  color: #fff; border: 0;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(47, 134, 232, 0.28);
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover, button.btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: #fff; }
.btn.ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { border-color: rgba(59,158,255,.45); background: rgba(59,158,255,.08); }
.btn.danger { background: linear-gradient(180deg, #ff6176, #e11d3c); box-shadow: 0 6px 16px rgba(225,29,60,.25); }
.btn.ok { background: linear-gradient(180deg, #34d399, #16a34a); box-shadow: 0 6px 16px rgba(22,163,74,.25); }

.form { display: grid; gap: 12px; max-width: 520px; }
.form.wide { max-width: 900px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input[type=date],
.form input[type=datetime-local],
input[type=date],
input[type=datetime-local] { color-scheme: dark; }
html.theme-light input[type=date],
html.theme-light input[type=datetime-local],
html.theme-light .form input[type=date],
html.theme-light .form input[type=datetime-local] { color-scheme: light; }
.form input, .form select, .form textarea {
  background: #0c1320; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: rgba(59,158,255,.55);
  box-shadow: 0 0 0 3px rgba(59,158,255,.15);
}

.flash { padding: 11px 13px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; animation: flash-in .35s ease; }
.flash.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.32); }
.flash.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.32); }
@keyframes flash-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.nav-toggle {
  display: none;
  position: fixed; top: 10px; left: 10px; z-index: 40;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(15, 22, 36, 0.92);
  color: var(--text); font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow);
}
.ops-panel .ops-plan { margin: 0; padding: 0; }
.ops-panel .ops-plan li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ops-panel .ops-plan li:last-child { border-bottom: 0; }
.card { content-visibility: auto; contain-intrinsic-size: auto 120px; }
.spider-dash-wrap { background: transparent !important; border: none !important; box-shadow: none !important; padding: 0 !important; }
.spider-dash-wrap .panel-head { margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 13px; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px;
  background: #243049; color: #bcd0f7;
}
.tag.warn { background: rgba(245,158,11,.2); color: #fbbf24; }
.tag.ok { background: rgba(34,197,94,.2); color: #4ade80; }
.tag.bad { background: rgba(239,68,68,.2); color: #f87171; }

.auth-page { display: grid; place-items: center; padding: 40px 16px; min-height: 100vh; }
.auth-card {
  width: 100%; max-width: 420px;
  background: linear-gradient(165deg, rgba(22,30,48,.98), rgba(12,17,28,.98));
  border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 560px; }
.auth-card h1 { margin: 0 0 8px; font-size: 22px; }
.pw-field { position: relative; display: block; }
.pw-field > input { width: 100%; padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 8px; top: auto; bottom: 8px;
  width: 28px; height: 28px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); cursor: pointer;
  display: grid; place-items: center; padding: 0; font-size: 15px; line-height: 1;
}
.pw-toggle:hover, .pw-toggle.is-on { color: var(--text); background: rgba(255,255,255,.06); }
.captcha-row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end;
}
.captcha-row img {
  height: 44px; width: 130px; border-radius: 8px; border: 1px solid var(--line);
  cursor: pointer; background: var(--panel);
}
.captcha-hint { font-size: 12px; color: var(--muted); margin: 0; }

.products {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.product {
  background: linear-gradient(160deg, #152033, #0d1422);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color .18s ease, transform .18s ease;
}
.product:hover { border-color: rgba(59,158,255,.35); transform: translateY(-2px); }
.product .price { font-size: 26px; font-weight: 700; }
.product .price small { font-size: 13px; color: var(--muted); font-weight: 500; }
.product ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.cust-list { display: grid; gap: 8px; }
.cust-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cust-filters a { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.cust-filters a.active { color: #fff; border-color: rgba(59,158,255,.45); background: rgba(59,158,255,.16); }
.cust-row {
  display: grid;
  grid-template-columns: minmax(140px, 175px) minmax(100px, 1fr) minmax(130px, 1.35fr) minmax(72px, 0.85fr) 52px minmax(140px, 1fr) auto;
  gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(34, 197, 94, 0.08);
}
.cust-row.tone-warn { background: rgba(245, 158, 11, 0.12); }
.cust-row.tone-bad { background: rgba(240, 67, 90, 0.12); }
.cust-exp { font-variant-numeric: tabular-nums; font-size: 13px; color: #4ade80; font-weight: 650; }
.cust-row.tone-warn .cust-exp { color: #fbbf24; }
.cust-row.tone-bad .cust-exp { color: #fb7185; }
.cust-name { font-size: 14px; color: #cbd5e1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.12); overflow: hidden; }
.cust-bar > i { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.cust-row.tone-warn .cust-bar > i { background: #f59e0b; }
.cust-row.tone-bad .cust-bar > i { background: #f0435a; }
.cust-pct { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: #86efac; font-weight: 700; }
.cust-row.tone-warn .cust-pct { color: #fcd34d; }
.cust-row.tone-bad .cust-pct { color: #fda4af; }
.cust-row.is-quiet { opacity: 0.72; }
.cust-agent { display: block; font-size: 12px; color: var(--muted); }
.cust-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.cust-spider { font-size: 12px; color: #94a3b8; line-height: 1.35; word-break: break-word; }
.cust-remark { min-width: 0; }
.cust-remark-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.cust-remark-form input[type=text] { flex: 1 1 100px; min-width: 80px; max-width: 200px; padding: 6px 8px; font-size: 12px; }
.cust-remark-text { font-size: 12px; color: var(--muted); }
.cust-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cust-actions form { margin: 0; }
.cust-actions .btn { min-height: 34px; padding: 6px 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

@media (max-width: 980px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); z-index: 35;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  body.nav-open .side { transform: translateX(0); }
  body.nav-open::before {
    content: ""; position: fixed; inset: 0; z-index: 34;
    background: rgba(0,0,0,.45); backdrop-filter: blur(2px);
  }
  .side {
    padding: 52px 12px 16px; border-right: 1px solid var(--line);
    flex-direction: column;
  }
  .brand { padding: 4px 6px 12px; font-size: 14px; }
  .side nav {
    flex-direction: column; overflow-x: visible; gap: 4px;
  }
  .side a { flex: none; padding: 10px 12px; white-space: normal; }
  .main { margin-left: 0; padding: 56px 12px 48px; }
  body { display: block; }
  .top { align-items: flex-start; }
  .top h1 { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px; }
  .stat-card .value { font-size: 22px; }
  .stat-card .stat-icon { width: 30px; height: 30px; }
  .form, .form.wide { max-width: none; }
  input, select, textarea { max-width: 100%; font-size: 16px; }
  .btn, button.btn { min-height: 42px; }
  .quick-actions .btn { flex: 1 1 calc(50% - 8px); }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  table { min-width: 640px; }
  .products { grid-template-columns: 1fr; }
  .product:hover, .stat-card:hover { transform: none; }
  .auth-page { padding: 20px 12px; }
  .auth-card { padding: 20px 14px; }
  .captcha-row { grid-template-columns: 1fr; }
  .captcha-row img { width: 100%; max-width: 180px; height: 48px; }
  .toolbar { gap: 8px; }
  .toolbar .btn, .toolbar button { flex: 1 1 auto; }
  .cust-row { grid-template-columns: 1fr auto; }
  .cust-exp { grid-column: 1; }
  .cust-pct { grid-column: 2; }
  .cust-name, .cust-spider, .cust-bar, .cust-remark, .cust-actions { grid-column: 1 / -1; }
  .cust-actions { justify-content: flex-start; }
}
.copy-box-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.48); display: grid; place-items: center; padding: 16px;
}
.copy-box {
  width: min(520px, 100%); background: var(--panel); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow);
}
.copy-box h3 { margin: 0 0 10px; font-size: 16px; }
.copy-box textarea {
  width: 100%; min-height: 180px; resize: vertical; box-sizing: border-box;
  background: #0c1320; color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.45;
}
html.theme-light .copy-box textarea { background: #fff; }
.copy-box-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.copy-box-actions .btn { flex: 1 1 auto; min-height: 42px; }
.shop-card { content-visibility: visible; }
.shop-prices .sell-price { width: 120px; max-width: 100%; box-sizing: border-box; }
.shop-prices .sell-label { display: none; }
.agent-accounts .acc-portal {
  margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px;
}
.agent-accounts .acc-portal a { word-break: normal; }
.agent-accounts .acc-token-short {
  font-size: 12px; white-space: nowrap; word-break: normal;
}
.agent-accounts .btn-mini {
  min-height: 30px; padding: 4px 10px; font-size: 12px;
}
.agent-accounts .acc-actions .js-copy-login { margin-bottom: 6px; }
.agent-accounts .acc-op {
  margin-bottom: 6px; flex-wrap: wrap;
}
.agent-accounts .acc-op input[name="card_secret"] { width: 150px; max-width: 100%; }
.agent-accounts .acc-op input[name="days"] { width: 70px; }
.agent-accounts .acc-op input[name="new_password"] { width: 110px; max-width: 100%; }
.agent-accounts .acc-op-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px;
}
@media (max-width: 860px) {
  .shop-prices { overflow: visible; }
  .shop-prices table { min-width: 0; width: 100%; }
  .shop-prices thead { display: none; }
  .shop-prices tr { display: block; padding: 10px 12px 12px; }
  .shop-prices td { display: block; width: auto; border: 0; padding: 4px 0; }
  .shop-prices .sell-label { display: block; color: var(--muted); font-size: 12px; margin: 8px 0 4px; }
  .shop-prices .sell-price {
    width: 100%; min-height: 44px; font-size: 16px; padding: 10px 12px;
    background: #0c1320; border: 1px solid var(--line); color: var(--text); border-radius: 10px;
  }
  .shop-prices .shop-check {
    display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px;
  }
  .shop-prices .shop-check input { width: 20px; height: 20px; }

  .agent-accounts { overflow: visible; }
  .agent-accounts table { min-width: 0; width: 100%; }
  .agent-accounts thead { display: none; }
  .agent-accounts tbody { display: block; }
  .agent-accounts .acc-row {
    display: block;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
  }
  .agent-accounts .acc-row td {
    display: block; width: auto; border: 0; padding: 4px 0;
  }
  .agent-accounts .acc-row td::before {
    content: attr(data-label);
    display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px;
  }
  .agent-accounts .acc-row td[data-label="账号"]::before { display: none; }
  .agent-accounts .acc-name { font-size: 16px; }
  .agent-accounts .acc-actions::before { margin-bottom: 6px; }
  .agent-accounts .acc-op { width: 100%; }
  .agent-accounts .acc-op input[name="card_secret"],
  .agent-accounts .acc-op input[name="new_password"],
  .agent-accounts .acc-op input[name="days"] {
    flex: 1 1 auto; width: auto; min-width: 0; min-height: 42px;
  }
  .agent-accounts .acc-op-row .btn { flex: 1 1 calc(50% - 8px); min-height: 42px; }
  .agent-accounts .js-copy-login { width: 100%; }
}
.top-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bj-clock {
  font-variant-numeric: tabular-nums; font-size: 13px; color: var(--text);
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.04); white-space: nowrap;
}
.theme-toggle {
  min-height: 34px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px;
}
.theme-toggle:hover { border-color: rgba(59,158,255,.45); }
html.theme-light { color-scheme: light; }
html.theme-light body {
  --bg: #f3f6fb;
  --bg-glow: #dbe7f7;
  --panel: #ffffff;
  --panel-2: #f7f9fc;
  --panel-3: #eef3f9;
  --line: rgba(15, 23, 42, 0.12);
  --text: #142033;
  --muted: #5c6b82;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 40%, #f4f7fb 100%);
  color: var(--text);
}
html.theme-light .side {
  background: #ffffff;
  border-right-color: var(--line);
}
html.theme-light .brand {
  background: none; -webkit-text-fill-color: #142033; color: #142033;
}
html.theme-light .side a:hover { background: rgba(15,23,42,.05); }
html.theme-light .side a.active { color: #0b3a75; }
html.theme-light .card,
html.theme-light .stat-card,
html.theme-light .auth-card,
html.theme-light .product,
html.theme-light .table-wrap {
  background: #fff;
  color: var(--text);
}
html.theme-light th { background: #f3f6fb; color: #5c6b82; }
html.theme-light .form input,
html.theme-light .form select,
html.theme-light .form textarea,
html.theme-light .shop-prices .sell-price,
html.theme-light .nav-toggle {
  background: #fff;
  color: var(--text);
}
html.theme-light .bj-clock { background: #fff; }
html.theme-light .tag { background: #e8eef8; color: #1e3a5f; }
html.theme-light .list-clean li { background: #f8fafc; }
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr; }
}
