.dash-main { max-width: 960px; margin: 0 auto; padding: 40px 16px 72px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.dash-head h1 { margin: 0; font-size: 1.7rem; }
.dash-sub { color: var(--muted, #6a6a80); margin: 0 0 28px; }
.dash-empty { text-align: center; color: var(--muted, #6a6a80); padding: 48px 16px; border: 1px dashed var(--line, #d9d9e3); border-radius: 12px; }

.rep-list { display: grid; gap: 14px; }
.rep-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line, #d9d9e3); border-radius: 12px; background: var(--card, #fff); }
.rep-score { font-size: 1.5rem; font-weight: 700; text-align: center; border-radius: 10px; padding: 8px 0; }
.rep-score.pass { background: #e9f7ef; color: #1a6b3c; }
.rep-score.warn { background: #fff4e0; color: #96630a; }
.rep-score.fail { background: #fdecec; color: #9b1c1c; }
.rep-main { min-width: 0; }
.rep-title { font-weight: 600; margin: 0 0 3px; }
.rep-meta { font-size: .82rem; color: var(--muted, #6a6a80); }
.rep-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.rep-actions select, .rep-actions .chk { font-size: .85rem; }
.badge { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #ececf5; color: #4a4a68; }
.badge.pub { background: #e3edff; color: #2b4e9b; }
.badge.pool { background: #efe3ff; color: #6b2b9b; }

.pool-table, .admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pool-table th, .pool-table td, .admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line, #e5e5ef); }
.pool-table th, .admin-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted, #6a6a80); }
.chk { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }

.auth-nav { display: flex; gap: 10px; align-items: center; }
.auth-nav a { font-size: .9rem; }
.save-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line, #d9d9e3); border-radius: 12px; background: var(--card, #fff); margin: 16px 0; }
.save-bar .grow { flex: 1 1 180px; }
.save-bar input[type=text] { width: 100%; box-sizing: border-box; padding: 8px 11px; border: 1px solid var(--line, #d9d9e3); border-radius: 8px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #1a1a2e; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .9rem; opacity: 0; transition: opacity .2s; z-index: 50; }
.toast.show { opacity: 1; }

@media (max-width: 560px) {
  .rep-card { grid-template-columns: 48px 1fr; }
  .rep-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (prefers-color-scheme: dark) {
  .rep-score.pass { background: #16321f; color: #a7e0bf; }
  .rep-score.warn { background: #3a2e14; color: #f0c674; }
  .rep-score.fail { background: #3a1e1e; color: #f5b5b5; }
  .badge { background: #2a2a3a; color: #c8c8dc; }
}

/* Anonymous preview: watermark, call to save, upgrade card */
.save-bar.save-cta { border-color: #f1b7bf; background: linear-gradient(180deg, #fff5f6, #fff); }
.save-bar.save-cta .grow { flex: 1 1 280px; line-height: 1.45; }
.preview-banner { position: sticky; top: 76px; z-index: 40; display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #c8102e; color: #fff;
  box-shadow: 0 8px 24px rgba(200, 16, 46, .28); font-size: .93rem; line-height: 1.45; }
.preview-banner > div { flex: 1 1 280px; }
.preview-banner .btn { background: #fff; color: #c8102e; border-color: #fff; font-weight: 700; }
.r-sheet { position: relative; }
.wm-stamp { position: absolute; top: 14px; right: -6px; z-index: 31; pointer-events: none; padding: 6px 14px; transform: rotate(4deg);
  border: 3px solid #c8102e; border-radius: 6px; color: #c8102e; background: rgba(255, 255, 255, .85);
  font: 800 15px/1 var(--font-sans); letter-spacing: .08em; }
#report.is-preview .r-sheet { user-select: none; -webkit-user-select: none; }
#report.wm-tampered { pointer-events: none; }
.wm-tamper { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-wrap: wrap;
  gap: 12px; align-items: center; max-width: min(640px, calc(100vw - 32px)); padding: 14px 18px; border-radius: 12px;
  background: #c8102e; color: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.wm-tamper .btn { background: #fff; color: #c8102e; border-color: #fff; }
.btn.locked { opacity: .75; }
.upgrade-card { text-align: left; border: 2px solid var(--accent); }
.upgrade-card h3 { font-size: 1.45rem; margin: 8px 0 6px; }
@media (min-width: 760px) { .upgrade-card .perks { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.upgrade-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
@media (max-width: 560px) { .wm-stamp { font-size: 12px; right: 4px; } }
@media (prefers-color-scheme: dark) {
  .save-bar.save-cta { background: #2a1418; border-color: #6b2230; }
  .wm-stamp { background: rgba(20, 20, 30, .85); }
}
