/* Redstitch — Recruit Scoring Dashboard
 * Layout: 7-day calendar strip + 4 KPI tiles + two-column body (table + right
 * summary). Style DNA matches the Worklist Scheduler (see static/css/worklist.css)
 * but swapped from info-blue to brand-red accents.
 */

:root {
  --bg-app: #faf9f5;
  --bg-surface: #ffffff;
  --bg-muted: #f5f4ef;
  --bg-row-hover: #faf8f3;
  --bg-row-crm: #f7f5ef;
  --bg-success: #eaf3de;
  --text-success: #173404;

  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #999999;

  --border-faint: rgba(0, 0, 0, 0.08);
  --border-muted: rgba(0, 0, 0, 0.14);
  --border-strong: rgba(0, 0, 0, 0.24);

  --brand: #c8102e;
  --brand-deep: #a30d26;
  --brand-tint: #fdebee;
  --brand-tint-strong: #f9d4da;

  --selected-bg: #fdf4f5;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-popover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -8px 0 32px rgba(0, 0, 0, 0.12);
  --shadow-modal: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-action-bar: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-app);
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 96px;
}

button { font-family: inherit; }

/* ─── App header ─────────────────────────────────────────────── */

.app-header {
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border-faint);
}
.app-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.wordmark-logo {
  height: 32px;
  width: auto;
  display: block;
}
.wordmark-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.back-link {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}
.back-link:hover { color: var(--text-primary); }

/* ─── Page shell ─────────────────────────────────────────────── */

.page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px;
}

.page-title { margin-bottom: 16px; }
.page-title h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
}
.page-title .subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}
.page-title .dot { margin: 0 6px; color: var(--text-tertiary); }

/* ─── 7-day calendar strip ───────────────────────────────────── */

.calendar-strip {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: 10px;
  margin-bottom: 20px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-md);
  padding: 8px;
  font-size: 11px;
  text-align: center;
  user-select: none;
}
.cal-day .dow {
  color: var(--text-secondary);
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cal-day .dom {
  font-weight: 500;
  font-size: 13px;
  color: var(--text-primary);
}
.cal-day .count {
  color: var(--text-tertiary);
  font-size: 10px;
  margin-top: 4px;
  font-weight: 500;
}
.cal-day.is-future { opacity: 0.65; }
.cal-day.is-focused {
  background: var(--brand-tint);
  border: 1.5px solid var(--brand);
  padding: 7.5px; /* compensate for thicker border */
}
.cal-day.is-focused .dow,
.cal-day.is-focused .dom,
.cal-day.is-focused .count {
  color: var(--brand-deep);
  font-weight: 600;
}
.calendar-note {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ─── Summary tiles ──────────────────────────────────────────── */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tile {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}
.tile-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tile-value {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.tile-cap {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* ─── Body grid: table left, summary right ───────────────────── */

.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: start;
}

/* ─── Table card ─────────────────────────────────────────────── */

.table-card {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-faint);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-muted);
  border-bottom: 0.5px solid var(--border-faint);
}
.table-card-title {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.table-card-count {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-secondary);
}
.table-card-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rows-select {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}
.rows-select select {
  font: inherit;
  font-size: 11px;
  padding: 2px 4px;
  border: 0.5px solid var(--border-muted);
  border-radius: 4px;
  background: var(--bg-surface);
  cursor: pointer;
  color: var(--text-primary);
}
.reset-btn {
  font: inherit;
  font-size: 11px;
  color: var(--text-secondary);
  background: transparent;
  border: 0.5px solid var(--border-muted);
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
}
.reset-btn:hover { color: var(--brand-deep); border-color: var(--brand); }

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

/* ─── Player table ───────────────────────────────────────────── */

.player-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  table-layout: fixed;
}
.player-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-table thead th {
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border-faint);
  white-space: nowrap;
  vertical-align: middle;
}
.th-sort {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  padding: 2px 2px 2px 0;
  color: inherit;
}
.th-sort:hover { color: var(--text-primary); }
.th-sort::after {
  content: " ↕";
  color: var(--text-tertiary);
  font-size: 9px;
  opacity: 0.5;
  margin-left: 2px;
}
.th-sort.is-sorted-desc::after { content: " ↓"; color: var(--brand); opacity: 1; }
.th-sort.is-sorted-asc::after  { content: " ↑"; color: var(--brand); opacity: 1; }

.th-filter {
  background: transparent;
  border: none;
  padding: 3px 4px;
  margin-left: 2px;
  cursor: pointer;
  color: var(--text-tertiary);
  border-radius: 4px;
  vertical-align: middle;
  position: relative;
  line-height: 0;
}
.th-filter:hover { background: var(--bg-muted); color: var(--text-primary); }
.th-filter svg { width: 11px; height: 11px; display: block; }
.th-filter.is-active { color: var(--brand); }
.th-filter.is-active::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  border: 1px solid var(--bg-surface);
}

.player-table tbody tr {
  border-bottom: 0.5px solid var(--border-faint);
  transition: background 80ms;
  cursor: pointer;
}
.player-table tbody tr:last-child { border-bottom: none; }
.player-table tbody tr:hover { background: var(--bg-row-hover); }
.player-table tbody tr.is-checked { background: var(--selected-bg); }
.player-table tbody tr.is-checked:hover { background: #fae7ea; }
.player-table tbody tr.is-crm { background: var(--bg-row-crm); color: var(--text-secondary); }
.player-table tbody tr.is-crm:hover { background: #f0ede5; }

.player-table td {
  padding: 11px 14px;
  vertical-align: middle;
}
/* With table-layout: fixed, these widths drive the <colgroup>. */
.col-check  { width: 38px; }
.col-fit    { width: 78px; }
.col-name   { width: auto; }
.col-grad   { width: 84px; }
.col-pos    { width: 96px; }
.col-city   { width: 190px; }
.col-metric { width: 108px; }
.col-pg     { width: 100px; }
.col-commit { width: 130px; }
.col-status { width: 96px; }

td.cell-check { text-align: center; }

.cell-check input[type="checkbox"] {
  accent-color: var(--brand);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.cell-check input[disabled] { opacity: 0.35; cursor: not-allowed; }

.cell-fit {
  font-weight: 500;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  min-width: 28px;
  text-align: center;
}
.cell-fit-high  { background: var(--bg-success); color: var(--text-success); }
.cell-fit-mid   { background: var(--brand-tint); color: var(--brand-deep); }
.cell-fit-low   { background: var(--bg-muted); color: var(--text-secondary); }

.cell-name { font-weight: 500; }
.cell-name .multi-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cell-miles {
  color: var(--text-tertiary);
  font-size: 12px;
}
.cell-metric {
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.cell-metric .metric-unit {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-left: 2px;
}
.cell-commit {
  font-size: 12px;
  color: var(--text-secondary);
}
.cell-commit.is-committed { color: var(--text-primary); }

.pg-link {
  color: var(--brand-deep);
  text-decoration: none;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 4px;
}
.pg-link:hover { background: var(--brand-tint); text-decoration: underline; }
.pg-link .pg-arrow {
  font-size: 10px;
  color: var(--text-tertiary);
}
.pg-link:hover .pg-arrow { color: var(--brand-deep); }
.pg-grade-only {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 0.5px solid var(--border-faint);
}
.pill-crm {
  background: #ecebe5;
  color: var(--text-secondary);
}
.pill-link {
  text-decoration: none;
  cursor: pointer;
  transition: background 80ms, color 80ms;
}
.pill-link:hover {
  background: var(--brand-tint);
  color: var(--brand-deep);
  border-color: var(--brand-tint-strong);
}

.table-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ─── Filter popover ─────────────────────────────────────────── */

.filter-popover {
  position: absolute;
  z-index: 80;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-popover);
  padding: 12px 14px 10px;
  min-width: 200px;
  font-size: 13px;
}
.filter-popover-title {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  margin-bottom: 8px;
}
.filter-popover-body { margin-bottom: 10px; }
.popover-input {
  font: inherit;
  font-size: 13px;
  width: 100%;
  padding: 6px 9px;
  border: 0.5px solid var(--border-muted);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.popover-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-tint);
}
select.popover-input { cursor: pointer; }
.popover-help {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.filter-popover-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 0.5px solid var(--border-faint);
}
.popover-clear, .popover-done {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 0.5px solid var(--border-muted);
}
.popover-clear {
  background: var(--bg-surface);
  color: var(--text-secondary);
}
.popover-clear:hover { color: var(--text-primary); }
.popover-done {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 500;
}
.popover-done:hover { background: var(--brand-deep); }

/* ─── Table footer / pagination ──────────────────────────────── */

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-top: 0.5px solid var(--border-faint);
  background: var(--bg-muted);
}
.table-footer-info {
  font-size: 11px;
  color: var(--text-secondary);
}
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  font: inherit;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 0.5px solid var(--border-muted);
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
  min-width: 26px;
}
.page-btn:hover:not(:disabled) {
  color: var(--brand-deep);
  border-color: var(--brand);
}
.page-btn.is-current {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 500;
}
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-ellipsis { font-size: 11px; color: var(--text-tertiary); padding: 0 2px; }

/* ─── Right summary panel (brand-red tinted, à la worklist's blue) ── */

.summary-panel {
  position: sticky;
  top: 16px;
  background: var(--brand-tint);
  border: 0.5px solid var(--brand-tint-strong);
  border-radius: var(--radius-lg);
  padding: 14px;
  align-self: start;
}
.summary-label-sm {
  font-size: 11px;
  color: var(--brand-deep);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.summary-day {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-deep);
  margin: 2px 0 12px;
}
.summary-section-label {
  font-size: 11px;
  color: var(--brand-deep);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 12px 0 6px;
}
.summary-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.slots-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.slots-label { font-size: 13px; color: var(--text-secondary); }
.slots-count {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.slots-cap {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}
.progress {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
  transition: width 160ms ease-out;
}

.composition-card .comp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 12px;
}
.composition-card .comp-row .c-label { color: var(--text-secondary); }
.composition-card .comp-row .c-count {
  font-weight: 500;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.comp-empty {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  padding: 6px 0;
}

.last-added-card { font-size: 12px; padding: 8px 12px; }
.last-added-card .la-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}
.last-added-card .la-row + .la-row { border-top: 0.5px solid var(--border-faint); }
.last-added-card .la-name { font-weight: 500; }
.last-added-card .la-meta { color: var(--text-secondary); }
.last-added-card .la-fit {
  font-size: 12px;
  color: var(--brand-deep);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ─── Sticky action bar ──────────────────────────────────────── */

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 0.5px solid var(--border-faint);
  box-shadow: var(--shadow-action-bar);
  z-index: 50;
}
.action-bar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.action-count {
  font-size: 14px;
  color: var(--text-secondary);
}
#action-count { color: var(--text-primary); font-weight: 500; }
.action-btn {
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 100ms;
}
.action-btn:hover { background: var(--brand-deep); }

/* ─── Drawer ─────────────────────────────────────────────────── */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 92vw);
  height: 100vh;
  background: var(--bg-surface);
  box-shadow: var(--shadow-drawer);
  z-index: 100;
  overflow-y: auto;
  animation: slideIn 200ms ease-out;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.drawer-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px 8px;
}
.drawer-close:hover { color: var(--text-primary); }
.drawer-content { padding: 32px 32px 48px; }

.drawer-header { margin-bottom: 20px; }
.drawer-header .drawer-name {
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 4px;
  padding-right: 36px;
}
.drawer-header .drawer-sub {
  font-size: 13px;
  color: var(--text-secondary);
}
.drawer-fit-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--brand-tint);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.drawer-fit-banner .fit-num {
  font-size: 32px;
  font-weight: 500;
  color: var(--brand-deep);
  line-height: 1;
  min-width: 50px;
}
.drawer-fit-banner .fit-label {
  font-size: 11px;
  color: var(--brand-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.drawer-fit-banner .fit-tagline {
  font-size: 13px;
  color: var(--text-primary);
}
.drawer-section { margin-bottom: 22px; }
.drawer-section-title {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  font-size: 13px;
}
.drawer-grid .k { color: var(--text-secondary); }
.drawer-grid .v { color: var(--text-primary); text-align: right; font-variant-numeric: tabular-nums; }
.breakdown-row {
  display: grid;
  grid-template-columns: 100px 1fr 60px;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.breakdown-row .b-label { color: var(--text-secondary); }
.breakdown-row .b-bar {
  height: 6px;
  background: var(--bg-muted);
  border-radius: 999px;
  overflow: hidden;
}
.breakdown-row .b-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}
.breakdown-row .b-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  font-weight: 500;
}
.contact-locked {
  background: var(--bg-muted);
  border: 0.5px dashed var(--border-muted);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-locked .lock-icon { font-size: 16px; line-height: 1.3; }
.contact-locked .lock-cta {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ─── Modal ──────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  box-shadow: var(--shadow-modal);
  max-width: 420px;
  width: calc(100% - 32px);
}
.modal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.modal p { margin: 0 0 20px; font-size: 14px; color: var(--text-secondary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-secondary, .btn-primary {
  font: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 0.5px solid var(--border-muted);
}
.btn-secondary { background: var(--bg-surface); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-muted); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 500;
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

/* ─── Toast ──────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms, transform 180ms;
  z-index: 300;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 820px) {
  .body-grid { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .col-pg, .col-commit { display: none; }
  .calendar-grid { gap: 4px; }
  .cal-day { padding: 6px 4px; font-size: 10px; }
}
@media (max-width: 600px) {
  .page { padding: 18px 12px; }
  .player-table thead th, .player-table td { padding: 9px 9px; }
  .col-grad, .col-pos { display: none; }
}
