/* Diamond Recruiter - app + component styles.
 * Shares Diamond Commander's design language 1:1 (tokens.css is copied verbatim).
 * Primitives below are ported from Commander so the suite feels like one product;
 * the evaluation-specific components (rating pad, scouting card, radar, board) are new.
 */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.5; color: var(--ink);
  background: var(--page-backdrop);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, .display { font-family: var(--font-display); }
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- AppShell ---------- */
.app { width: 100%; max-width: 520px; margin: 0 auto; min-height: 100vh; position: relative;
  display: flex; flex-direction: column; background: var(--bg); background-image: var(--field-mesh);
  box-shadow: 0 0 0 1px rgba(14,31,58,.05), 0 18px 60px rgba(14,31,58,.16); }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: 13px 20px; color: var(--on-navy);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.06)),
    linear-gradient(100deg, var(--navy), var(--navy-2));
  border-bottom: 1px solid rgba(0,0,0,.25);
  box-shadow: 0 2px 14px rgba(14,31,58,.22);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 800; font-size: 18px; letter-spacing: var(--tracking-tight); color: #fff; }
.brand .gem { color: var(--clay-top); font-size: 17px; filter: drop-shadow(0 1px 4px rgba(213,181,102,.5)); }
.brand small { font-weight: 700; color: var(--on-navy-soft); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; border: 1px solid rgba(159,179,212,.35); padding: 2px 6px; border-radius: 999px; }
.topbar .spacer { flex: 1; }
.eventchip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.08); color: #fff; font-weight: 700; font-size: 13px;
  border: 1px solid rgba(159,179,212,.28); cursor: pointer; transition: background var(--t);
  min-width: 0; max-width: 52vw;
}
.eventchip:hover { background: rgba(255,255,255,.16); }
.eventchip .tname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eventchip .caret { flex: 0 0 auto; opacity: .7; }
.eventchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--team); box-shadow: var(--ring); flex:0 0 auto; }
.theme-toggle { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer;
  font-size: 19px; line-height: 1; box-shadow: var(--shadow-sm); transition: transform var(--t), background var(--t), border-color var(--t); }
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--clay); }
.theme-toggle .theme-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-sun { display: inline; }
.topbar .theme-toggle { flex: 0 0 auto; background: rgba(255,255,255,.08); color: var(--on-navy); border-color: rgba(255,249,233,.22); box-shadow: none; }
.topbar .theme-toggle:hover { background: rgba(255,255,255,.16); border-color: rgba(255,249,233,.42); }
.teamstripe { height: 4px; background: linear-gradient(90deg, var(--team), var(--team) 42%, var(--team-2) 72%, var(--team-3)); }
.body { flex: 1; width: 100%; }
.main { width: 100%; padding: 16px 14px 92px; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; font-weight: 800; letter-spacing: var(--tracking-tight); margin: 0; line-height: 1.05; }
.page-h .sub { color: var(--ink-soft); font-size: 14px; margin-top: 4px; font-weight: 500; }

/* Bottom tab bar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px;
  z-index: 40; display: flex; justify-content: space-around;
  background: linear-gradient(100deg, var(--navy), var(--navy-2));
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(14,31,58,.28);
}
.tabbar .tab {
  flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px;
  color: var(--on-navy-soft); font-size: 12px; font-weight: 700; cursor: pointer; border-radius: var(--r-xs);
  white-space: nowrap; position: relative;
  background: none; border: 0; font-family: inherit; appearance: none; -webkit-appearance: none;
}
.tabbar .tab:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.tabbar .tab .ic { font-size: 22px; }
.tabbar .tab.active { color: #fff; }
.tabbar .tab.active::before { content: ""; position: absolute; top: 0; left: 26%; right: 26%; height: 3px;
  border-radius: 999px; background: var(--team); box-shadow: 0 1px 6px var(--team); }
.tabbar .tab.active .ic { filter: drop-shadow(0 2px 6px rgba(213,181,102,.45)); }

/* ---------- Primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--card-highlight), var(--shadow-sm); padding: 18px; margin-bottom: 16px; }
.card.pad-lg { padding: 24px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: var(--tracking-wide); color: var(--ink-soft); margin: 0; }

@media (min-width: 720px) {
  .app, .tabbar { max-width: 980px; }
  .main { padding: 24px 28px 104px; }
}

.btn {
  font-family: var(--font-display); cursor: pointer; border: 1px solid transparent; border-radius: var(--r-sm);
  min-height: 44px; padding: 0 17px; font-weight: 700; font-size: 15px; letter-spacing: .005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background var(--t), transform var(--t), box-shadow var(--t), border-color var(--t), filter var(--t);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 0 var(--accent-press), var(--shadow-sm); }
.btn-primary:hover:not(:disabled) { background: var(--accent-press); }
.btn-cta { background: linear-gradient(180deg, var(--clay-top), var(--clay)); color: var(--on-clay); box-shadow: var(--cta-shadow); }
.btn-cta:hover:not(:disabled) { filter: brightness(1.04); }
.btn-ghost { background: var(--accent-soft); color: var(--accent-ink); }
.btn-ghost:hover:not(:disabled) { filter: brightness(.96); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c9c9; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 17px; padding: 0 22px; border-radius: var(--r); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line);
  font-family: var(--font-display); }
.badge.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #c4ebcf; }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); border-color: #f0e0a8; }
.badge.gold { background: var(--clay-soft); color: var(--clay-press); border-color: var(--clay-top); }

/* Form controls */
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
label.fld { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 6px;
  text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-display); }
input[type=text], input[type=date], input[type=number], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 12px 13px; font-size: 16px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-family: var(--font-body);
  transition: border-color var(--t), box-shadow var(--t); font-variant-numeric: tabular-nums;
}
textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input:disabled { background: var(--surface-2); color: var(--ink-soft); }
.row { display: grid; gap: 12px; }
.row.c2 { grid-template-columns: 1fr 1fr; }
.row.c3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .row.c3 { grid-template-columns: 1fr 1fr; } }
.hint { color: var(--ink-soft); font-size: 13px; line-height: 1.55; }

.checkrow { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; line-height: 1.5; }
.checkrow input[type=checkbox] { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.checkrow > span { min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chiptog { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 999px;
  cursor: pointer; min-height: 40px; transition: background var(--t), color var(--t), border-color var(--t); }
.chiptog:hover { border-color: var(--accent); color: var(--accent); }
.chiptog.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.chiptog.danger.on { background: var(--danger); color: #fff; border-color: var(--danger); }

.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background var(--t); }
.switch .track::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform var(--t); }
.switch input:checked + .track { background: var(--field); }
.switch input:checked + .track::before { transform: translateX(18px); }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; font-family: var(--font-display); font-weight: 700; color: var(--ink-soft);
  padding: 8px 13px; border-radius: var(--r-xs); cursor: pointer; min-height: 36px; }
.seg button.on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow-lg);
  font-weight: 600; font-size: 14px; animation: rise var(--t-slow); display: flex; align-items: center; gap: 9px; }
.toast::before { content: "●"; font-size: 9px; color: var(--field); }
.toast.err { background: #5b1414; } .toast.err::before { content: "!"; color: #ffb4b4; font-weight: 800; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.scrim { position: fixed; inset: 0; background: rgba(14,31,58,.5); backdrop-filter: blur(3px); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 18px; animation: fade var(--t); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; max-width: 470px;
  max-height: 90vh; overflow: auto; animation: pop var(--t-slow); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 8px; }
.modal-h h2 { font-size: 19px; margin: 0; font-weight: 800; letter-spacing: var(--tracking-tight); }
.modal-b { padding: 8px 22px 22px; }
.x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 17px; color: var(--ink-soft); }
.x:hover { background: var(--line); }

/* ---------- Auth / onboarding ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden;
  background: radial-gradient(1100px 560px at 50% -12%, #dbe8df 0%, transparent 58%), linear-gradient(180deg, var(--bg), var(--bg-2)); }
.auth::after { content: ""; position: absolute; left: 50%; bottom: -42vh; width: 130vw; height: 80vh; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(180deg, rgba(182,138,63,.08), transparent); border-radius: 14% 14% 0 0;
  border-top: 2px solid rgba(16,39,32,.08); pointer-events: none; }
.auth .panel { width: 100%; max-width: 440px; text-align: center; position: relative; z-index: 1; }
.auth .logo { font-family: var(--font-display); font-size: 34px; font-weight: 900; letter-spacing: var(--tracking-tight); margin-bottom: 6px; color: var(--navy); }
.auth .logo .gem { color: var(--accent); }
.auth .tag { color: var(--ink-soft); margin-bottom: 26px; font-size: 15px; font-weight: 500; }
.auth .card { text-align: left; border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.steps .step { flex: 1; height: 6px; border-radius: 999px; background: var(--line-strong); transition: background var(--t); }
.steps .step.on { background: var(--clay); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { border: 1.5px solid var(--line-strong); border-radius: var(--r-lg); padding: 18px; cursor: pointer; background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t), transform var(--t); text-align: left; }
.choice:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.choice.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: var(--ring); }
.choice .emoji { font-size: 30px; line-height: 1; }
.choice .t { font-family: var(--font-display); font-weight: 800; margin-top: 8px; font-size: 16px; }
.choice .d { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Empty / hero states ---------- */
.empty { text-align: center; padding: 40px 18px; color: var(--ink-soft); }
.empty .big { font-size: 46px; margin-bottom: 8px; color: var(--accent); filter: drop-shadow(0 4px 12px rgba(30,106,76,.25)); }
.empty h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 4px; font-size: 19px; }

/* ---------- Misc helpers ---------- */
.stack > * + * { margin-top: 12px; }
.muted { color: var(--ink-soft); }
.right { margin-left: auto; }
.center { text-align: center; }
.flex { display: flex; align-items: center; gap: 10px; }
.wrap-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; color: var(--accent); font-family: var(--font-display); font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: var(--r-xs); }
.linkbtn:hover { background: var(--accent-soft); }
.linkbtn.danger { color: var(--danger); }
.linkbtn.danger:hover { background: var(--danger-soft); }

/* ===========================================================================
   EVALUATION COMPONENTS (new to Recruiter)
   =========================================================================== */

/* ---- Stat scorebug: broadcast-style number tiles ---- */
.scorebug { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--card-highlight), var(--shadow-sm); }
.scorebug .sb-stat { background: var(--surface); padding: 13px 14px; text-align: center; }
.scorebug .sb-num { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-stat); line-height: 1; color: var(--ink);
  letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }
.scorebug .sb-lbl { font-family: var(--font-display); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-soft); margin-top: 4px; }
.scorebug .sb-stat.ok .sb-num { color: var(--ok); }
.scorebug .sb-stat.warn .sb-num { color: var(--warn-ink); }
.scorebug .sb-stat.gold .sb-num { color: var(--clay-press); }

/* ---- Roster / athlete list ---- */
.alist { display: grid; gap: 8px; }
.arow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 13px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); cursor: pointer; text-align: left; width: 100%; font-family: var(--font-body);
  color: var(--ink); transition: background var(--t), border-color var(--t), box-shadow var(--t); }
.arow:hover { background: var(--surface-2); border-color: var(--accent-line); }
.bib { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: linear-gradient(180deg, var(--navy-3), var(--navy));
  color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; box-shadow: var(--shadow-sm); }
.arow .who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.arow .who .nm { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .who .sub { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow .aright { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* overall pill (0-100) with red->green scale via inline color token */
.ovr { font-family: var(--font-display); font-weight: 900; font-size: 15px; min-width: 46px; text-align: center;
  padding: 6px 8px; border-radius: var(--r-sm); color: #fff; font-variant-numeric: tabular-nums; }
.rankpill { font-family: var(--font-display); font-weight: 800; font-size: 12px; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.rankpill.top { background: var(--clay-soft); color: var(--clay-press); border-color: var(--clay-top); }

/* quick tags */
.qtags { display: flex; gap: 4px; flex-wrap: wrap; }
.qtag { font-size: 11px; font-weight: 800; font-family: var(--font-display); padding: 2px 8px; border-radius: 999px; letter-spacing: .02em; }
.qtag.star { background: var(--clay-soft); color: var(--clay-press); }
.qtag.project { background: var(--accent-soft); color: var(--accent-ink); }
.qtag.concern { background: var(--warn-soft); color: var(--warn-ink); }
.qtag.injury { background: var(--danger-soft); color: var(--danger); }

/* ---- Progress bar ---- */
.progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--field)); transition: width var(--t-slow); }

/* ---- THE RATING PAD (the star screen) ---- */
.pad-shell { display: flex; flex-direction: column; gap: 14px; }
.pad-athlete { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: var(--on-navy); box-shadow: var(--shadow-md); }
.pad-athlete .bib { width: 54px; height: 54px; font-size: 21px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,249,233,.25); }
.pad-athlete .who { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.pad-athlete .who .nm { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: var(--tracking-tight); }
.pad-athlete .who .sub { color: var(--on-navy-soft); font-size: 13px; }
.pad-athlete .navb { display: flex; gap: 6px; flex: 0 0 auto; }
.pad-athlete .navb button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,249,233,.25);
  background: rgba(255,255,255,.08); color: var(--on-navy); font-size: 18px; cursor: pointer; }
.pad-athlete .navb button:hover { background: rgba(255,255,255,.18); }

.pad-skill { padding: 15px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--card-highlight), var(--shadow-sm); }
/* intangibles look distinct on the pad - a gold left rail marks the separate track */
.pad-intangible { border-color: var(--clay-top); box-shadow: inset 4px 0 0 var(--clay), var(--card-highlight), var(--shadow-sm); }
.pad-section { margin: 6px 2px 2px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(100deg, var(--clay-soft), var(--surface));
  border: 1px solid var(--clay-top); font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--clay-press); display: flex; flex-direction: column; gap: 2px; }
.pad-section span { font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.station-makeup { border-color: var(--clay-top); background: linear-gradient(100deg, var(--clay-soft), var(--surface)); }
.station-makeup .st-ic { background: var(--clay-soft); }
.pad-skill .ps-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pad-skill .ps-name { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.pad-skill .ps-grp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }

/* the big 1..5 (or 1..N) tap buttons */
.ratepad { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.ratebtn { min-height: 62px; border-radius: var(--r); border: 1.5px solid var(--line-strong); background: var(--surface);
  font-family: var(--font-display); font-weight: 900; font-size: 24px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t); position: relative; }
.ratebtn:hover { border-color: var(--accent); transform: translateY(-1px); }
.ratebtn:active { transform: translateY(1px) scale(.98); }
.ratebtn.on { color: #fff; border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ratebtn.v1.on { background: #f8696b; } .ratebtn.v2.on { background: #fca85f; color: var(--ink); }
.ratebtn.v3.on { background: #ffd666; color: var(--ink); } .ratebtn.v4.on { background: #a6d96a; color: var(--ink); }
.ratebtn.v5.on { background: #63be7b; }
.ratepad.scale10 { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); }
.ratebtn .half { position: absolute; bottom: 3px; right: 6px; font-size: 12px; font-weight: 800; opacity: .85; }
.ratebtn.on .half { opacity: 1; }

/* fine (decimal) entry row: − stepper · editable exact-value field · + stepper */
.finerow { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.finebtn { width: 46px; min-height: 46px; flex: 0 0 auto; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; cursor: pointer;
  transition: border-color var(--t), background var(--t), transform var(--t); }
.finebtn:hover { border-color: var(--accent); color: var(--accent); }
.finebtn:active { transform: translateY(1px) scale(.97); }
.fineval { flex: 1 1 auto; min-width: 0; width: auto; text-align: center; font-family: var(--font-display); font-weight: 900;
  font-size: 22px; padding: 9px 8px; border-width: 2px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.fineval::-webkit-outer-spin-button, .fineval::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.finestep { flex: 0 0 auto; font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .04em; }

/* ---- Radar / spider chart wrapper ---- */
.radar-wrap { display: grid; place-items: center; padding: 6px; }
.radar-wrap svg { width: 100%; max-width: 340px; height: auto; }
.radar-poly { fill: var(--accent); fill-opacity: .18; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.radar-grid { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.radar-axis { stroke: var(--line-strong); stroke-width: 1; }
.radar-dot { fill: var(--accent); }
.radar-lbl { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; fill: var(--ink-soft); }

/* ---- Skill breakdown bars (scouting card) ---- */
.skbar-row { display: grid; grid-template-columns: 120px 1fr 48px; align-items: center; gap: 10px; padding: 5px 0; }
.skbar-row .sk-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skbar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.skbar > i { display: block; height: 100%; border-radius: 999px; }
.skbar-row .sk-val { font-family: var(--font-display); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; }
.skbar-row .sk-val .sk-pct { font-family: var(--font-body); font-weight: 600; font-size: 10px; color: var(--ink-soft); margin-top: 1px; }
.grp-h { font-family: var(--font-display); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }

/* ---- Leaderboard header row ---- */
.lead-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.lead-controls .grow { flex: 1 1 auto; }

/* ---- Station cards ---- */
.station { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); margin-bottom: 10px; }
.station .st-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.station .st-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.station .st-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.station .st-meta { font-size: 12.5px; color: var(--ink-soft); }

/* ---- Confidence / coverage meter ---- */
.cov { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-soft); }
.cov .dots { display: inline-flex; gap: 2px; }
.cov .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.cov .dots i.on { background: var(--field); }

/* paywall (shared with DC) */
.paywall { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 15px 18px; border-radius: var(--r-lg);
  background: linear-gradient(100deg, var(--clay-soft), var(--surface)); border: 1px solid var(--clay-top); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.paywall .ic { font-size: 22px; }
.paywall .txt { flex: 1 1 200px; min-width: 0; font-size: 14px; }
.paywall .txt b { color: var(--clay-press); }

/* ---- Read-only share card (fixed light, family-facing) ---- */
.share-page { min-height: 100vh; padding: 22px 16px; background: var(--bg); }
.share-card { max-width: 560px; margin: 0 auto; }
.share-card .shp-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(100deg, var(--navy), var(--navy-2)); color: var(--on-navy); }

/* ---------- Mobile refinements ---------- */
@media (max-width: 560px) {
  .main { padding: 14px 13px 96px; }
  .page-h { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-h h1 { font-size: 23px; }
  .card { padding: 15px; border-radius: var(--r); }
  .row.c2 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .topbar { padding: 11px 14px; gap: 8px; }
  .brand { font-size: 16px; }
  .brand small { display: none; }
  .eventchip { max-width: 44vw; }
  .modal-b { padding: 8px 16px 18px; }
  .modal-h { padding: 16px 18px 6px; }
  .btn { min-height: 46px; }
  .ratebtn { min-height: 66px; font-size: 26px; }
  .scorebug .sb-num { font-size: 32px; }
}
@media (max-width: 400px) {
  .row.c3 { grid-template-columns: 1fr; }
  .auth { padding: 16px; }
}
@media (hover: none) {
  .arow, .choice, .tab, .btn, .eventchip, .ratebtn { -webkit-tap-highlight-color: transparent; }
  .choice:hover { transform: none; box-shadow: none; }
}

/* ===========================================================================
   DESIGN POLISH PASS - tighten dense rows, clarify coverage, add two staged moments
   =========================================================================== */

/* icons-only flags for leaderboard rows (no wrap, sits in the right cluster) */
.qtags-mini { display: inline-flex; gap: 3px; align-items: center; }
.qtag-mini { font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }

/* coverage/confidence meter - a touch bolder so it reads at a glance from the dugout */
.cov { font-size: 12px; }
.cov .dots i { width: 7px; height: 7px; }
.cov .dots i.on { background: var(--field); box-shadow: 0 0 0 1px color-mix(in srgb, var(--field) 40%, transparent); }

/* radar frame widened to match the padded viewBox so edge labels breathe */
.radar-wrap svg { max-width: 360px; }

/* Memorable moment 1 - leaderboard rows stage in on render (rank reveal).
   Short + transform-only so re-filtering feels responsive, never sluggish. */
.alist .arow { animation: arowIn .34s cubic-bezier(.2,.7,.3,1) both; }
.alist .arow:nth-child(1){animation-delay:.02s} .alist .arow:nth-child(2){animation-delay:.05s}
.alist .arow:nth-child(3){animation-delay:.08s} .alist .arow:nth-child(4){animation-delay:.11s}
.alist .arow:nth-child(5){animation-delay:.14s} .alist .arow:nth-child(6){animation-delay:.17s}
.alist .arow:nth-child(7){animation-delay:.20s} .alist .arow:nth-child(8){animation-delay:.23s}
.alist .arow:nth-child(n+9){animation-delay:.25s}
@keyframes arowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* the overall pill lands a beat after its row - the score "drops" like a scorebug */
.alist .arow .ovr { animation: ovrPop .42s var(--spring) both; animation-delay: inherit; }
@keyframes ovrPop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: scale(1); } }

/* Memorable moment 2 - a satisfying spring pop when a rating is tapped/saved */
.ratebtn.on { animation: ratePop .3s var(--spring); }
@keyframes ratePop { 0% { transform: scale(.9); } 55% { transform: translateY(-2px) scale(1.06); } 100% { transform: translateY(-1px) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .alist .arow, .alist .arow .ovr, .ratebtn.on { animation: none !important; }
}

/* makeup / intangibles - a separate, gold-accented track (kept out of the ranking) */
.mk-mini { font-family: var(--font-display); font-weight: 800; color: var(--clay-press); font-size: 11.5px; }
:root[data-theme="dark"] .mk-mini { color: var(--clay-top); }
.makeup-card { border-color: var(--clay-top); background: linear-gradient(180deg, var(--surface), var(--clay-soft)); }

/* ---------- Print: a dedicated ranking sheet (#dr-print), NOT a screenshot of the app ----------
   #dr-print is display:none on screen and the ONLY thing shown on paper. */
#dr-print { display: none; }
.pr-sheet { color: #10213b; font-family: var(--font-body); }
.pr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid #10213b; padding-bottom: 8px; margin-bottom: 12px; }
.pr-title { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -.02em; }
.pr-sub { font-size: 12px; color: #475569; margin-top: 2px; }
.pr-brand { font-family: var(--font-display); font-weight: 800; font-size: 13px; color: #1e6a4c; white-space: nowrap; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.pr-table th { text-align: left; font-family: var(--font-display); font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  color: #fff; background: #10213b; padding: 6px 7px; }
.pr-table th:nth-child(n+5) { text-align: center; }
.pr-table td { padding: 5px 7px; border-bottom: 1px solid #cbd5e1; }
.pr-table .pr-rk { font-family: var(--font-display); font-weight: 800; width: 26px; }
.pr-table .pr-num { color: #64748b; width: 26px; }
.pr-table .pr-name { font-weight: 700; }
.pr-table .pr-n { text-align: center; font-family: var(--font-display); font-weight: 800; width: 58px; }
.pr-table .pr-cov { text-align: center; color: #64748b; }
.pr-table tbody tr:nth-child(even) td { background: #f1f5f9; }
.pr-foot { margin-top: 10px; font-size: 10.5px; color: #64748b; border-top: 1px solid #cbd5e1; padding-top: 6px; }

@media print {
  @page { margin: 14mm; }
  #app, #toasts, .scrim, .install-nudge { display: none !important; }
  body { background: #fff !important; }
  #dr-print { display: block !important; }
  .pr-table th, .pr-table .pr-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pr-table tr { break-inside: avoid; }
}

/* ---- Identity strip (Score screen) + who-you-are notes (multi-evaluator) ---- */
.idstrip { display: flex; align-items: center; gap: 12px; }
.id-av { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.id-av.sm { width: 30px; height: 30px; font-size: 14px; }
.id-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.id-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.id-name { font-family: var(--font-display); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.idnote { display: flex; align-items: center; gap: 10px; }

/* ---- Head coach board entry card ---- */
.boardcard { display: flex; align-items: center; gap: 13px; border-color: var(--clay-top);
  background: linear-gradient(100deg, var(--clay-soft), var(--surface)); }
.boardcard .bc-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--clay-soft);
  display: flex; align-items: center; justify-content: center; font-size: 22px; }
.boardcard .bc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.boardcard .bc-t { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.boardcard .bc-s { font-size: 12.5px; color: var(--ink-soft); }
.boardcard .right { margin-left: auto; font-size: 22px; color: var(--ink-soft); }

/* ---- Compare tab: athlete picker + rater-by-rater table ---- */
.cmp-picker { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; -webkit-overflow-scrolling: touch; }
.cmp-picker .chiptog { white-space: nowrap; flex: 0 0 auto; }
.cmp-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r); }
.cmp-tbl { border-collapse: collapse; width: 100%; font-size: 13px; }
.cmp-tbl th, .cmp-tbl td { padding: 8px 10px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cmp-tbl thead th { background: var(--surface-2); font-family: var(--font-display); font-weight: 800; font-size: 12px;
  position: sticky; top: 0; }
.cmp-tbl .cmp-sk { text-align: left; font-weight: 600; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.cmp-tbl thead .cmp-sk { background: var(--surface-2); }
.cmp-tbl td:not(.cmp-sk):not(.cmp-sp) { font-family: var(--font-display); font-weight: 800; }
.cmp-tbl .cmp-sp { color: var(--ink-soft); }
.cmp-tbl tr.cmp-flag .cmp-sk { color: var(--warn-ink); }
.cmp-tbl tr.cmp-int .cmp-sk { color: var(--clay-press); }
.cmp-tbl tbody tr:last-child td { border-bottom: none; }
.comp-row .card-h { margin-bottom: 8px; }
