@media (min-width: 861px) {
    .dash .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
.nav a.on, .dash aside a.on { color: var(--ink); }
.dash aside a.on { background: var(--soft); color: var(--purple); }
.system { padding: 36px 0 72px; }
.sheet { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.sheet h1 { font-size: 36px; }
.sheet h2 { font-size: 22px; letter-spacing: -0.03em; }
.sheet label { display: block; font-weight: 700; font-size: 14px; margin: 12px 0; }
.sheet input, .sheet textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fafafc; margin-top: 6px; font: inherit; }
.sheet input[type="checkbox"], .sheet input[type="file"] { width: auto; }
.system > h1, .page-hero h1 { font-size: clamp(36px, 4.4vw, 56px); }
.auth-card textarea, .stack-panel textarea, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fafafc; margin-top: 6px; font: inherit;
}
.auth-card input[type="file"] { width: 100%; margin-top: 6px; }
.check input, .auth-card input[type="checkbox"] { width: auto; margin: 0; }
.amounts label {
  display: block; text-align: center; border: 1px solid #e6e6ee; background: white; border-radius: 999px;
  padding: 10px 0; font-weight: 800; cursor: pointer; color: #3a3d48;
}
.amounts input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.amounts label:has(input:checked) { background: var(--purple); color: white; border-color: var(--purple); }
.cover-preview { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; margin-top: 8px; }
.cover-fallback {
  width: min(1120px, calc(100% - 40px)); height: 220px; margin: 0 auto; border-radius: 22px;
  background: linear-gradient(100deg, #6a45ff 0%, #b14bff 48%, #ff4fa2 100%);
}
.avatar.initials { display: grid; place-items: center; background: var(--soft); color: var(--purple); font-weight: 800; font-size: 28px; }
.avatar.lg.initials { font-size: 36px; }
.dash aside form { margin: 0; }
.dash aside button { font: inherit; font-size: 14.5px; }
table.rank { width: 100%; border-collapse: collapse; }
table.rank th, table.rank td { text-align: left; padding: 12px 8px; border-top: 1px solid var(--line); vertical-align: top; }
table.rank th { color: var(--muted); font-size: 13px; }
table.rank .num { text-align: right; white-space: nowrap; }
table.rank a { font-weight: 800; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: white; font-weight: 800; }
.tabs a.on { background: var(--purple); color: white; border-color: transparent; }
.bars { display: flex; align-items: stretch; gap: 8px; height: 200px; margin-top: 12px; }
.bars > div { flex: 1; display: flex; flex-direction: column; height: 100%; min-width: 0; }
.bars .bar-amount {
  flex: 0 0 auto;
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 1.2;
  color: #1b1f33;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bars span { flex: 1 1 auto; background: #efeaff; border-radius: 10px 10px 0 0; position: relative; min-height: 8px; }
.bars i { display: block; width: 100%; position: absolute; bottom: 0; border-radius: 10px 10px 0 0; background: linear-gradient(180deg, #8b6cff, #6d4aff); }
.bars small { flex: 0 0 auto; display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 6px; }
.panel .chart-total { margin-top: 14px; }
.panel .chart-total strong { font-size: 22px; letter-spacing: -0.03em; color: #1b1f33; }
.search-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.search-row label { flex: 1; min-width: 220px; }
.search-row input { width: 100%; }
.empty { color: var(--muted); }
@media (max-width: 860px) {
  .cover-fallback { width: min(1120px, calc(100% - 32px)); height: 160px; }
}
@media (max-width: 560px) {
  .cover-fallback { width: min(1120px, calc(100% - 24px)); }
}
