/* ═══════════════════════════════════════════
   components.css — Cards, tables, buttons, etc.
═══════════════════════════════════════════ */

/* ── Card ── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.06);
}

/* ── Court scoreboard-controls dropdown items ── */
.court-ctrl-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 9px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.court-ctrl-item:hover { background: var(--bg-hover); }

/* ── KPI Grid ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  border-top: 2px solid var(--border-2);
}
.kpi-blue  { border-top-color: var(--blue); }
.kpi-teal  { border-top-color: var(--teal-lt); }
.kpi-green { border-top-color: var(--green-lt); }
.kpi-amber { border-top-color: var(--amber-lt); }
.kpi-red   { border-top-color: var(--red-lt); }
.kpi-purple{ border-top-color: var(--purple-lt); }

.kpi-icon {
  font-size: 16px;
  margin-bottom: 6px;
  opacity: 0.7;
}
.kpi-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-4);
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.8px;
  line-height: 1;
}
.kpi-sub {
  font-size: 10px;
  color: var(--text-4);
  margin-top: 4px;
}

/* ── Filters bar ── */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-input);
  flex-wrap: wrap;
}
/* Per-column filter funnel in the games table header */
.col-funnel {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  color: var(--text-4);
  opacity: .55;
  cursor: pointer;
  vertical-align: middle;
  transition: color .12s, opacity .12s;
}
.col-funnel:hover { color: var(--blue); opacity: 1; }
.col-funnel-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.filter-btn {
  height: 28px;
  min-height: 28px;
  max-height: 28px;
  padding: 0 11px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  background: none;
  border: 1px solid transparent;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1;
}
.filter-btn:hover  { background: var(--bg-hover); color: var(--text); border-color: var(--border); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.filter-btn.live.active { background: #10B981; border-color: #10B981; }

.filter-select {
  height: 28px;
  padding: 0 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-2);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color .12s;
}
.filter-select:focus { border-color: var(--blue); }

.filter-spacer { flex: 1; }

.filter-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 9px;
  height: 28px;
  transition: border-color .12s;
}
.filter-search:focus-within { border-color: var(--blue); }
.filter-search input {
  border: none;
  background: none;
  font-size: 12px;
  color: var(--text);
  width: 160px;
}
.filter-search input::placeholder { color: var(--text-4); }
.filter-icon { color: var(--text-4); font-size: 12px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { border-bottom: 1px solid var(--border); }
th {
  padding: 0 12px;
  height: 34px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-4);
  text-align: left;
  white-space: nowrap;
  background: var(--bg-input);
  user-select: none;
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text-2); }

td {
  padding: 0 12px;
  height: 40px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  vertical-align: middle;
  color: var(--text-2);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-input);
}
.table-count { font-size: 11px; color: var(--text-4); }

/* ── Pagination ── */
.page-btn {
  width: 24px; height: 24px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.page-btn:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-2); color: var(--text); }
.page-btn.active { background: #26282e; border-color: #26282e; color: #fff; font-weight: 700; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--font);
  transition: all .12s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary       { background: #26282e; color: #fff; border-color: #26282e; }
.btn-primary:hover { background: #32353d; border-color: #32353d; }
.btn-secondary { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-2); }
.btn-ghost     { background: none; color: var(--text-3); }
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-danger    { background: var(--red-bg); color: var(--red-text); border-color: var(--red-border); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 11.5px; border-radius: 5px; }

.action-btn {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: none;
  border: none;
  color: var(--text-4);
  transition: all .12s;
}
.action-btn:hover { background: var(--bg-hover); color: var(--text-2); }
.action-btn.danger { color: var(--red); }
.action-btn.danger:hover { background: var(--red-bg); color: var(--red); }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.badge-blue   { background: var(--blue-lt);   color: var(--blue-text);   border: 1px solid var(--blue-border); }
.badge-green  { background: var(--green-bg);  color: var(--green-text);  border: 1px solid var(--green-border); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber-text);  border: 1px solid var(--amber-border); }
.badge-red    { background: var(--red-bg);    color: var(--red-text);    border: 1px solid var(--red-border); }
.badge-teal   { background: var(--teal-bg);   color: var(--teal-text);   border: 1px solid var(--teal-border); }
.badge-purple { background: var(--purple-bg); color: var(--purple-text); border: 1px solid var(--purple-border); }
.badge-gray   { background: var(--bg);        color: var(--text-3);      border: 1px solid var(--border); }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.8s infinite;
  flex-shrink: 0;
}

/* ── Avatar ── */
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-xl { width: 44px; height: 44px; font-size: 15px; }

/* ── Progress bar ── */
.prog-bar {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}
.prog-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

/* ── Position badges ── */
.pos-badge {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.pos-1 { background: #FEF08A; color: #854D0E; }
.pos-2 { background: #E2E8F0; color: #475569; }
.pos-3 { background: #FED7AA; color: #9A3412; }
.pos-n { background: var(--bg); color: var(--text-4); border: 1px solid var(--border); }

/* ── Modals ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(17,24,39,0.4);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-in .18s ease;
  border: 1px solid var(--border);
}
.modal-lg { max-width: 720px; }
.modal-sm { max-width: 400px; }
.modal-xl { max-width: 900px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.modal-close {
  width: 26px; height: 26px;
  border-radius: var(--radius);
  background: none;
  border: none;
  color: var(--text-4);
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .12s;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

.modal-body   { padding: 18px 20px; overflow-y: auto; flex: 1; }
#modalAddGame .modal-body { overflow: visible; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-input);
}

/* ── Forms ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.span-2 { grid-column: 1 / -1; }
.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: -0.1px;
}
.form-control {
  height: 34px;
  padding: 0 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--text);
  font-family: var(--font);
  transition: all .12s;
}
.form-control:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 2px rgba(24,119,242,0.1); }
.form-control::placeholder { color: var(--text-4); }
textarea.form-control { height: auto; padding: 8px 10px; resize: vertical; min-height: 70px; }
select.form-control { cursor: pointer; }

.form-section {
  grid-column: 1/-1;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-4);
  padding-top: 4px;
}
.form-divider { grid-column: 1/-1; border-top: 1px solid var(--border); }

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}
.empty-icon  { font-size: 32px; margin-bottom: 10px; opacity: 0.5; }
.empty-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.empty-sub   { font-size: 12px; color: var(--text-4); max-width: 280px; }

/* ── Toast ── */
#toast-wrap {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in .18s ease;
  min-width: 200px;
  max-width: 360px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.info    { background: var(--blue); }
.toast.warning { background: var(--amber); }
.toast-icon    { font-size: 14px; flex-shrink: 0; }

/* ── Full-width bottom banner toast ── */
#toast-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--amber);
  box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  animation: toast-in .18s ease;
}

/* ── Dashboard charts ── */
.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.chart-title { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.chart-wrap  { height: 180px; }

/* Dashboard grid layout */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.dash-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.dash-card-title { font-size: 12px; font-weight: 700; color: var(--text); }

/* Activity feed */
.activity-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.activity-item:last-child { border-bottom: none; }
.activity-dot  { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.activity-text { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.activity-time { font-size: 10px; color: var(--text-4); margin-top: 1px; }

/* Score pill */
.score-pill {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Standings extras */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

/* card-header / card-title / card-sub helpers */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 13px; font-weight: 700; color: var(--text); }
.card-sub   { font-size: 11px; color: var(--text-4); margin-top: 2px; }
.card-body  { padding: 14px 16px; }

/* captain picker */
.captain-result-item {
  padding: 8px 12px;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background .1s;
  border-bottom: 1px solid var(--border);
}
.captain-result-item:last-child { border-bottom: none; }
.captain-result-item:hover { background: var(--bg-hover); }
.captain-result-new { color: var(--blue); font-weight: 600; }
.captain-result-new:hover { background: var(--blue-lt); }


/* ── Chart height helpers ── */
.h-280 { height: 280px; }
.h-200 { height: 200px; }
.h-160 { height: 160px; }

/* ── Live label ── */
.live-label { color: var(--teal-lt); font-size: 11px; font-weight: 600; }

/* ── Dashboard panel layout ── */
.panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.panel-row .card { overflow: hidden; }

/* ── Page action bar (replaces duplicate section-header) ── */
.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

/* ── Sticky tabs ── */
.tabs-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  padding: 8px 0 0;
  margin-bottom: 12px;
}


/* ── Sticky page header (tabs + filters combined) ── */
.page-sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  margin: -20px -20px 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

/* ══════════════════════════════════════
   SearchableSelect component
══════════════════════════════════════ */
.ss-root {
  position: relative;
  display: inline-block;
  min-width: 140px;
}
.ss-btn {
  width: 100%;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font);
  cursor: pointer;
  transition: border-color .12s;
  white-space: nowrap;
}
.ss-btn:hover { border-color: var(--border-2); }
.ss-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; }
.ss-chevron { flex-shrink: 0; color: var(--text-4); }

.ss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 9100;
  overflow: hidden;
  flex-direction: column;
  max-height: 320px;
}
.ss-dropdown.ss-open { display: flex; }

.ss-search-wrap {
  padding: 6px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ss-search {
  width: 100%;
  height: 28px;
  padding: 0 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  font-family: var(--font);
  color: var(--text);
  transition: border-color .12s;
}
.ss-search:focus { border-color: var(--blue); outline: none; }
.ss-search::placeholder { color: var(--text-4); }

.ss-list { overflow-y: auto; max-height: 260px; }
.ss-list::-webkit-scrollbar { width: 3px; }
.ss-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

.ss-group {
  padding: 8px 10px 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.ss-group:first-child { border-top: none; margin-top: 0; }
.ss-item {
  padding: 7px 10px 7px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .08s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ss-item:hover      { background: var(--bg-hover); color: var(--text); }
.ss-item-active     { background: var(--blue-lt);  color: var(--blue); font-weight: 600; }
.ss-item-active:hover { background: var(--blue-lt); }
.ss-empty { padding: 10px; font-size: 12px; color: var(--text-4); text-align: center; }
.ss-ph-add {
  border-top: 1px solid var(--border);
  color: var(--blue);
  font-weight: 600;
  padding-left: 12px;
}
.ss-ph-add:hover { background: var(--blue-lt); color: var(--blue); }
.ss-ph-add b { font-weight: 700; }

/* ── Player status filter tabs ── */
.status-tab {
  height: 24px;
  padding: 0 9px;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font);
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: all .1s;
  white-space: nowrap;
}
.status-tab:hover  { background: var(--bg-hover); color: var(--text-2); }
.status-tab.active { background: #26282e; color: #fff; font-weight: 700; }

/* ── Player row utility menu ── */
.player-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: background .1s;
  white-space: nowrap;
}
.player-menu-item:hover { background: var(--bg-hover); color: var(--text); }
.player-menu-item svg   { flex-shrink: 0; color: var(--text-4); }
.player-menu-item:hover svg { color: var(--text-2); }

/* ══════════════════════════════════════
   Merge tool — profile cards
══════════════════════════════════════ */
.mc-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-2);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.mc-card.mc-master {
  border-color: var(--blue);
  border-top-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(24,119,242,.12);
}

.mc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.mc-body { flex: 1; }

.mc-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-4);
  padding: 5px 10px 3px;
  background: var(--bg-input);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mc-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
}
.mc-key {
  font-size: 10.5px;
  color: var(--text-4);
  width: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-val {
  font-size: 12px;
  color: var(--text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-clickable { cursor: pointer; transition: background .1s; }
.mc-clickable:hover { background: var(--blue-lt); }
.mc-selected {
  background: var(--blue-lt);
  border-left: 2px solid var(--blue);
}
.mc-selected .mc-key { color: var(--blue-text); }
.mc-selected .mc-val { color: var(--blue-text); font-weight: 600; }

.mc-blocked { cursor: not-allowed; }
.mc-blocked-val { color: var(--red-lt); text-decoration: line-through; }

/* ── Standings chart cards ── */
.chart-card {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px 10px;
}
.chart-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-4);
  margin-bottom: 10px;
}

/* ── Major release toggle track ── */
#mrSendTo:checked + #mrSendToTrack { background: var(--blue); }
#mrSendToTrack::before {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
#mrSendTo:checked + #mrSendToTrack::before { transform: translateX(16px); }

/* ── gs confirm overlay animations ── */
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes slideUp { from { transform:translateY(16px);opacity:0 } to { transform:translateY(0);opacity:1 } }
