:root {
  --bg: #0f1420;
  --card: #182031;
  --line: #2a354c;
  --text: #e8edf6;
  --muted: #94a3b8;
  --accent: #5b8cff;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--bg); z-index: 2;
}
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-mark {
  background: var(--accent); color: #fff; border-radius: 6px;
  padding: 2px 7px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.brand-name { font-weight: 700; font-size: 17px; }
.brand-sub { color: var(--muted); font-size: 13px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 20px 16px 48px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; margin-bottom: 16px;
}
.title { margin: 0 0 8px; font-size: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.login-card { max-width: 420px; margin: 8vh auto; }
label { display: block; margin: 14px 0; color: var(--muted); font-size: 13px; }
input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #0d1320; color: var(--text); font-size: 16px;
}
.btn {
  border: 0; border-radius: 8px; padding: 10px 16px;
  font-size: 14px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--accent); color: #fff; width: 100%; margin-top: 6px; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: wait; }
.error {
  background: rgba(255,107,107,.12); border: 1px solid var(--danger);
  color: #ffd7d7; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { margin: 0; }
.stat-label { display: block; color: var(--muted); font-size: 12px; }
.stat-value { display: block; font-size: 24px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.section-title { margin: 0 0 12px; font-size: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
.empty { color: var(--muted); text-align: center; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.text-list { display: flex; flex-direction: column; gap: 14px; }
.report-text {
  white-space: pre-wrap; word-break: break-word; margin: 0;
  font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #cbd5e1; background: #0d1320; border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; max-height: 460px; overflow: auto;
}
@media (max-width: 760px) {
  .wrap { padding: 14px 12px 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .columns { grid-template-columns: 1fr; }
  .stat-value { font-size: 20px; }
  .brand-sub { display: none; }
  .topbar { padding: 12px; }
}
