:root {
  --primary: #0052d9;
  --primary-hover: #0041b8;
  --border: #e0e0e0;
  --bg: #f5f7fa;
  --text: #1a1a1a;
  --text-muted: #666;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --vp-blue: #0b4588;
  --vp-blue-light: #1565b0;
  --vp-sky: #7ec8f0;
  --preview-max-width: 920px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.app { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; }

.page-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.user-bar-name { font-weight: 600; color: var(--text); }
.user-bar-store { color: var(--primary); }
.user-bar-role {
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f2fc;
  color: var(--primary);
  font-weight: 600;
}

.input-store { min-width: 160px; }

.login-page { background: linear-gradient(180deg, #e8f2fc 0%, var(--bg) 40%); min-height: 100vh; }

.login-app {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.login-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-welcome { margin-bottom: 4px; font-size: 1rem; }
.login-meta { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.login-error { color: #c62828; font-size: 0.88rem; margin-top: 12px; }

.login-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.login-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f7fa;
  border: 1px solid var(--border);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.login-link:hover {
  background: #e8f2fc;
}

.visitor-home-page {
  background: linear-gradient(180deg, #e8f2fc 0%, var(--bg) 40%);
  min-height: 100vh;
}

.visitor-home-app {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.visitor-home-store {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
}

.visitor-home-menu {
  display: grid;
  gap: 14px;
}

.visitor-home-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.visitor-home-card:hover {
  border-color: #c5d9f5;
  box-shadow: 0 4px 16px rgba(0, 82, 217, 0.12);
}

.visitor-home-icon {
  grid-row: 1 / span 2;
  font-size: 1.6rem;
}

.visitor-home-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.visitor-home-desc {
  grid-column: 2;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.visitor-home-arrow {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.nav-back, .nav-admin {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-back:hover, .nav-admin:hover { color: var(--primary); }

.header { text-align: center; margin-bottom: 20px; }
.header h1 { font-size: 1.75rem; color: var(--primary); }
.subtitle { color: var(--text-muted); margin-top: 4px; font-size: 0.92rem; }

.stats-page .admin-panel { margin-bottom: 20px; }

.stats-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stats-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.summary-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.breakdown-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.breakdown-title {
  font-size: 0.92rem;
  padding: 10px 12px;
  background: #f5f7fa;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breakdown-table th,
.breakdown-table td {
  white-space: normal;
}

.panel-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== 领导汇报 ===== */
.report-page {
  background: #eef2f6;
}

.report-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.report-toolbar {
  margin-bottom: 16px;
}

.report-document {
  max-width: 900px;
  margin: 0 auto 48px;
  background: #fff;
  padding: 48px 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.report-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 28px;
}

.report-brand {
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.report-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.report-subtitle {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 16px;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.report-section {
  margin-bottom: 28px;
}

.report-section-title {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

.report-highlights {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.8;
}

.report-highlights li {
  margin-bottom: 8px;
}

.report-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.report-metric {
  text-align: center;
  padding: 16px 10px;
  background: #f8fbff;
  border: 1px solid #e0e8f0;
  border-radius: 8px;
}

.report-metric-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.report-metric-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.report-analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.report-analysis-card h3 {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.report-table th,
.report-table td {
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.report-table th {
  background: #f5f7fa;
  color: var(--text-muted);
  font-weight: 600;
}

.report-table.compact th,
.report-table.compact td {
  font-size: 0.84rem;
}

.trend-bar {
  display: inline-block;
  width: 120px;
  height: 10px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
  vertical-align: middle;
}

.trend-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4da3ff, var(--primary));
  border-radius: 999px;
}

.trend-bar-empty {
  color: #aaa;
}

.report-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stats-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fa 100%);
  border: 1px solid #e8edf3;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--preview-max-width);
  margin: 0 auto 20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.field-group { display: flex; align-items: center; gap: 8px; }
.label { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }
.page-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.size-mm { font-weight: 600; color: var(--primary); }

.input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  min-width: 120px;
}
.input-num { width: 80px; min-width: 80px; }

.toolbar-actions { display: flex; gap: 10px; flex-shrink: 0; }

.btn {
  padding: 8px 18px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #e8eaed; color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-block { width: 100%; margin-top: 8px; }

.preview-section {
  width: 100%;
  max-width: var(--preview-max-width);
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.a4-sheet {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 2px dashed #ccc;
}

.visitor-grid {
  display: grid;
  width: 100%;
  height: 100%;
  gap: var(--grid-gap-y, 2%) var(--grid-gap-x, 2%);
  padding: var(--grid-gap-y, 2%) var(--grid-gap-x, 2%);
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
}

.grid-cell {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.grid-cell.empty {
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #fafafa;
}

.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #aaa;
  font-size: 0.75rem;
  gap: 4px;
}
.slot-placeholder .plus { font-size: 1.4rem; }

/* ===== 来访证卡片 ===== */
.visitor-pass {
  width: var(--card-w, 85mm);
  height: var(--card-h, 55mm);
  background: #fff;
  border: 0.4mm solid #d8e3ef;
  border-radius: 2mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
  position: relative;
}

.vp-security {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vp-security-code {
  font-size: 9mm;
  font-weight: 900;
  font-family: "Consolas", "Courier New", monospace;
  color: rgba(21, 101, 176, 0.06);
  letter-spacing: 0.8mm;
  line-height: 1;
  transform: rotate(-22deg);
  white-space: nowrap;
}

.vp-body,
.vp-footer {
  position: relative;
  z-index: 2;
}

.vp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
}

.vp-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.vp-top {
  padding: 2mm 2mm 0 2mm;
  flex-shrink: 0;
}

.vp-logo {
  flex-shrink: 0;
  height: 11mm;
  display: flex;
  align-items: center;
}

.vp-logo-img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.vp-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2.5mm 0 2mm;
  min-height: 0;
}

.vp-title {
  text-align: right;
  font-size: 10mm;
  font-weight: 800;
  color: var(--vp-blue-light);
  letter-spacing: 0.8mm;
  line-height: 1;
}

.vp-main {
  flex-shrink: 0;
  padding: 0 2.5mm 1.5mm;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.vp-no {
  font-size: 4mm;
  font-weight: 700;
  color: var(--vp-blue-light);
  margin-bottom: 0.8mm;
}

.vp-store {
  font-size: 4.2mm;
  font-weight: 700;
  color: var(--vp-blue-light);
  word-break: break-all;
  margin-bottom: 1mm;
}

.vp-notice {
  font-size: 2.3mm;
  color: var(--vp-blue-light);
  line-height: 1.35;
}

/* 独立二维码区 */
.vp-qr-panel {
  width: 28mm;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3mm;
  padding: 1mm 0.6mm;
  background: #f8fbff;
  border-left: 0.4mm dashed #c5d9eb;
}

.vp-qr-img {
  width: 22mm;
  height: 22mm;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 0.3mm solid #e8edf2;
  border-radius: 0.8mm;
  padding: 0.5mm;
}

.vp-qr-placeholder {
  width: 22mm;
  height: 22mm;
  background: #eef2f6;
  border-radius: 0.8mm;
}

.vp-qr-caption {
  font-size: 2mm;
  font-weight: 700;
  color: var(--vp-blue);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

.vp-qr-guide {
  width: 100%;
  font-size: 1.6mm;
  color: var(--vp-blue-light);
  text-align: center;
  line-height: 1.3;
}

.vp-qr-guide p + p {
  margin-top: 0.6mm;
  padding-top: 0.5mm;
  border-top: 0.2mm dashed #c5d9eb;
}

.vp-footer {
  width: 100%;
  background: var(--vp-blue);
  color: #fff;
  padding: 1.2mm 2mm;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2mm;
  box-sizing: border-box;
}

.vp-footer-hm {
  flex-shrink: 0;
  font-size: 5.5mm;
  font-weight: 900;
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 1.2mm;
  line-height: 1;
  user-select: none;
}

.vp-footer-slogan {
  font-size: 3mm;
  letter-spacing: 0.8mm;
  white-space: nowrap;
  flex-shrink: 0;
}

.grid-cell .visitor-pass {
  transform-origin: center center;
}

/* ===== 借证页 ===== */
.borrow-page { background: linear-gradient(180deg, #e8f2fc 0%, var(--bg) 40%); }

.borrow-app {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.borrow-header {
  text-align: center;
  margin-bottom: 20px;
}
.borrow-header h1 { font-size: 1.4rem; color: var(--vp-blue); }
.borrow-subtitle { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }

.borrow-form, .status-box {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.status-box p { margin-bottom: 8px; }
.status-box .muted { color: var(--text-muted); font-size: 0.88rem; }
.status-box--success { border-left: 4px solid #2ba471; }
.status-box--warn { border-left: 4px solid #e37318; }
.status-box--error { border-left: 4px solid #d54941; }

.hidden { display: none !important; }

/* ===== 归还页（安保） ===== */
.return-page { background: linear-gradient(180deg, #e8f4ec 0%, var(--bg) 40%); }

.return-app {
  max-width: 420px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.return-header {
  text-align: center;
  margin-bottom: 16px;
}

.return-header h1 { font-size: 1.4rem; color: #1b7a4a; }
.return-subtitle { color: var(--text-muted); margin-top: 6px; font-size: 0.95rem; }

.scanner-box {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.scan-video {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.scan-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 10px;
  text-align: center;
  font-size: 0.88rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.recent-list {
  margin-top: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.recent-title {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.recent-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-items li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.recent-items li:last-child { border-bottom: none; }

.recent-items li span {
  display: block;
  color: var(--text-muted);
  margin-top: 2px;
  font-size: 0.82rem;
}

.return-link-wrap { margin-top: 12px; }

.return-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: #1b7a4a;
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.return-link:hover { background: #156339; }

/* ===== 后台 ===== */
.admin-app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px 48px;
}

.admin-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
}

.panel-title { font-size: 1.05rem; margin-bottom: 16px; color: var(--primary); }

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-stats { font-size: 0.95rem; color: var(--text-muted); }
.admin-filters { display: flex; gap: 8px; align-items: center; }

.settings-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f5f7fa;
  border-radius: 8px;
  margin-bottom: 16px;
}

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  background: #f5f7fa;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-table .actions { white-space: nowrap; }
.empty-row { text-align: center; color: #aaa; padding: 24px !important; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
}
.tag-available { background: #e8f5e9; color: #2e7d32; }
.tag-borrowed { background: #fff3e0; color: #e65100; }
.tag-borrow { background: #fff3e0; color: #e65100; }
.tag-return { background: #e3f2fd; color: #1565c0; }
.tag-generate { background: #f3e5f5; color: #7b1fa2; }

.log-section {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.log-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.log-toolbar .panel-title { margin-bottom: 0; }

.log-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.input-date { min-width: 150px; }

.log-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.print-only { display: none; }

@media print {
  .no-print { display: none !important; }
  .print-only { display: block !important; }

  @page { size: A4 portrait; margin: 0; }

  body { background: #fff; margin: 0; }

  .print-sheet {
    width: 210mm;
    height: 297mm;
    page-break-after: always;
    box-sizing: border-box;
  }

  .print-sheet .visitor-grid {
    width: 100%;
    height: 100%;
    gap: var(--grid-gap-y) var(--grid-gap-x);
    padding: var(--grid-gap-y) var(--grid-gap-x);
  }

  .print-cell {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .print-cell-empty { visibility: hidden; }

  .visitor-pass {
    box-shadow: none;
    transform: none !important;
    width: var(--card-w, 85mm) !important;
    height: var(--card-h, 55mm) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .vp-security-code {
    color: rgba(21, 101, 176, 0.08);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .vp-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .vp-footer-hm {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .vp-qr-panel {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-page { background: #fff; }
  .report-document {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .report-section { break-inside: avoid; }
}

@media (max-width: 768px) {
  .login-links { grid-template-columns: 1fr; }
  .report-document { padding: 24px 18px; }
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-analysis-grid { grid-template-columns: 1fr; }
  .stats-page .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .breakdown-grid { grid-template-columns: 1fr; }
  .admin-table { font-size: 0.8rem; }
  .vp-title { font-size: 9mm; }
}
