:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-2: #38bdf8;
  --good: #22c55e;
  --danger: #ef4444;
  --radius: 10px;
  --stat-panel: #a8c4e0;
  --stat-table: #c5d9ee;
  --stat-header: #9eb4cf;
  --stat-header-text: #2c4054;
  --stat-header-border: #6a8da8;
  --stat-name: #bdd4e8;
  --stat-border: #8fadc8;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: linear-gradient(165deg, #0f172a 0%, #1a2744 45%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.85rem;
}
.site-nav a {
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.site-main {
  padding: 1rem;
  max-width: 960px;
  margin: 0 auto 4rem;
}

h1 { font-size: 1.35rem; margin: 0 0 1rem; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--surface-2);
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
}
.btn-primary { background: var(--accent); color: #111; font-weight: 600; }
.btn-sm { padding: 0.3rem 0.55rem; font-size: 0.75rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }
.btn.active { background: var(--accent); color: #111; }

.dashboard-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
.dashboard-list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.dashboard-list-bar .dashboard-list-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-shrink: 0;
}
.dashboard-list-bar .date-picker,
.dashboard-list-bar .quick-settings {
  display: flex;
  align-items: center;
}
.dashboard-list-bar .btn,
.dashboard-list-bar button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  margin: 0;
  padding: 0 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
  -webkit-appearance: none;
  appearance: none;
}
.dashboard-list-bar .date-picker-trigger:not(:has(.date-picker-label)),
.dashboard-list-bar .quick-settings-trigger,
.dashboard-list-bar .btn.btn-icon {
  width: 2.25rem;
  padding: 0;
}
.dashboard-list-bar .date-picker-icon,
.dashboard-list-bar .quick-settings-trigger svg,
.dashboard-list-bar .btn.btn-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dashboard-list-bar .btn.btn-icon.active svg {
  stroke: #111;
}

.quick-settings {
  position: relative;
}
.quick-settings-trigger {
  color: var(--text);
}
.quick-settings-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 21;
  min-width: 16.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.quick-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.15rem;
}
.quick-settings-row + .quick-settings-row {
  border-top: 1px solid var(--surface-2);
}
.quick-settings-label {
  font-size: 0.82rem;
  color: var(--text);
}
.quick-settings-row--colours {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}
.quick-settings-menu .color-brightness-control {
  width: 100%;
}
.color-brightness-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.color-brightness-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.color-brightness-slider-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.color-brightness-end {
  font-size: 0.68rem;
  color: var(--muted);
  flex: 0 0 auto;
  min-width: 2rem;
}
.color-brightness-end:last-child {
  text-align: right;
}
.color-brightness-slider {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--accent, #38bdf8);
  cursor: pointer;
}
.settings-color-brightness-wrap {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--surface-2);
  max-width: 22rem;
}

.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 2.5rem;
  height: 1.35rem;
  background: var(--surface-2);
  border-radius: 999px;
  transition: background 0.15s ease;
  position: relative;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.05rem;
  height: 1.05rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.toggle-switch input:checked + .toggle-track {
  background: var(--accent);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(1.15rem);
}
.toggle-switch input:disabled + .toggle-track::after {
  background: #e2e8f0;
}
.date-picker {
  position: relative;
}
.date-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.25rem;
}
.date-picker-icon {
  display: flex;
  line-height: 0;
  color: var(--text);
}
.date-picker-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.date-picker-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  min-width: 9.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.date-picker-item {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--surface-2);
}
.date-picker-item:last-child {
  border-bottom: none;
}
.date-picker-item:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.date-picker-item.active {
  background: rgba(249, 115, 22, 0.2);
  color: var(--accent);
  font-weight: 600;
}

.page-player .player-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}
.page-player .player-page-identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: min(10rem, 100%);
}
.page-player .player-page-photo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
}
@media (min-width: 768px) {
  .page-player .player-page-photo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }
  .page-player .player-page-identity {
    gap: 1rem;
  }
}
.page-player .player-page-title {
  flex: 1 1 auto;
  min-width: 0;
}
.page-player .player-page-title h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.page-player .player-page-title .player-team-abbr {
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
  color: #64748b;
}
.page-player .player-page-actions {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 100%;
}
.page-player .player-page-teams-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0.65rem 0.85rem;
  width: fit-content;
  max-width: 100%;
}
.page-player .player-page-team-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.page-player .player-page-team-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  cursor: pointer;
}
.page-player-list .player-list-delete,
.page-player .player-list-delete {
  width: 2rem;
  height: 2rem;
  padding: 0;
  flex-shrink: 0;
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}
.page-player-list .player-list-delete:hover,
.page-player .player-list-delete:hover {
  color: #fecaca;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.18);
}
.page-player-list .player-list-delete svg,
.page-player .player-list-delete svg {
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
}

body.page-player table.players-table.stat-lines {
  min-width: 0;
  width: 100%;
}

.page-player-list .player-list-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}
.page-player-list h1,
.page-player-list .alert,
.page-player-list .player-find-section,
.page-player-list .player-my-list-section {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.page-player-list .roster-rows {
  max-width: none;
}
.page-player-list .player-find-section {
  margin-bottom: 1.75rem;
}
.page-player-list .player-my-list-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.page-player-list .player-my-list-header .player-list-section-title {
  margin-bottom: 0;
}
.page-player-list .player-list-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-player-list .player-search-wrap {
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
}
.page-player-list .player-search-input,
.page-search .player-search-input {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 1.05rem;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  border-radius: 12px;
  border: 1px solid var(--surface-2);
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.page-player-list .player-search-input::placeholder,
.page-search .player-search-input::placeholder {
  color: var(--muted);
  opacity: 0.9;
}
.page-player-list .player-search-input:hover,
.page-search .player-search-input:hover {
  border-color: #4a5f7a;
}
.page-player-list .player-search-input:focus,
.page-search .player-search-input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow:
    0 0 0 3px rgba(56, 189, 248, 0.22),
    0 2px 8px rgba(15, 23, 42, 0.25);
}
.page-player-list .roster-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-player-list .roster-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  padding: 0 0.65rem 0 0;
  border-radius: 8px;
}
.page-player-list .roster-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}
.page-player-list .roster-row-photo {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
}
.page-player-list .roster-row-name {
  flex: 1 1 11rem;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  font-weight: 700;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-player-list .roster-row-name a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
.page-player-list .roster-row-name a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}
.page-player-list .roster-row-abbr {
  margin-left: 0.35rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.page-player-list .roster-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  gap: 0.35rem 0.65rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: auto;
}
.page-player-list .roster-add-btn,
.page-player .roster-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.18rem 0.38rem;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.page-player-list .roster-add-icon,
.page-player .roster-add-icon {
  display: block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
}
.page-player-list .roster-team-check {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.page-player-list .roster-team-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  cursor: pointer;
}
.page-player-list .player-list-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-teams .teams-page-header,
.page-teams .alert,
.page-teams .teams-list-section {
  width: 100%;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.page-teams .teams-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.page-teams .teams-page-header h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(10rem, 100%);
}
.page-teams .teams-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 1 auto;
  margin-left: auto;
}
.page-teams .teams-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}
.page-teams .teams-list-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-teams .teams-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-teams .teams-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
}
.page-teams .teams-row:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}
.page-teams .teams-row-primary {
  flex: 1 1 12rem;
  align-self: center;
  min-width: 0;
}
.page-teams .teams-row-cats-summary {
  flex: 1 1 8rem;
  align-self: center;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  min-width: 0;
  padding: 0 0.35rem;
}
.page-teams .teams-row-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-teams .teams-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.page-teams .teams-row-short {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.page-teams .teams-row-badge {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.page-teams .teams-row-badge-yahoo {
  background: rgba(96, 1, 210, 0.22);
  color: #d8c4f8;
  border: 1px solid rgba(96, 1, 210, 0.55);
}
.page-teams .btn-yahoo {
  background: #6001d2;
  color: #fff;
  font-weight: 600;
  border: 1px solid #6001d2;
}
.page-teams .btn-yahoo:hover {
  background: #4f01ad;
  border-color: #4f01ad;
  color: #fff;
}
.page-teams .teams-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 1 auto;
  margin-left: auto;
}
.page-teams .teams-row-inline-form {
  display: inline-flex;
  margin: 0;
}
.page-teams .teams-row-delete {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}
.page-teams .teams-row-delete:hover {
  color: #fecaca;
  border-color: #f87171;
  background: rgba(248, 113, 113, 0.18);
}

.team-category-settings {
  margin: 1.25rem 0;
}
.team-category-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.team-category-heading:not(:first-child) {
  margin-top: 1.25rem;
}
.team-category-help {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 42rem;
}
.team-category-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-bottom: 0.25rem;
}
.team-category-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.team-punt-option[hidden] {
  display: none !important;
}
.team-category-check input {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0;
  cursor: pointer;
}
.team-settings-form .team-category-settings + .team-category-heading {
  margin-top: 1.5rem;
}
.team-settings-lead {
  margin: -0.35rem 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.team-settings-lead-code {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.team-settings-form .form-group {
  max-width: 28rem;
}

@media (max-width: 767px) {
  .page-player-list .player-search-wrap,
  .page-player-list .player-my-list-section,
  .page-player-list .roster-rows {
    max-width: none;
    width: 100%;
  }
  .page-player-list .player-search-input {
    font-size: 1rem;
    padding: 0.8rem 0.95rem;
    border-radius: 10px;
  }
  .page-player-list .roster-row {
    flex-wrap: nowrap;
    gap: 0.35rem 0.5rem;
  }
  .page-player-list .roster-row-photo {
    width: 40px;
    height: 40px;
    border-radius: 5px;
  }
  .page-player-list .roster-row-actions .btn:not(.player-list-delete):not(.roster-add-btn) {
    font-size: 0.75rem;
    padding: 0.28rem 0.5rem;
  }
  .page-player-list .roster-row-name {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page-player-list .roster-row-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    max-width: 62%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-player-list .roster-row-actions::-webkit-scrollbar {
    display: none;
  }
  .page-teams .teams-row {
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0.55rem;
  }
  .page-teams .teams-row-primary {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page-teams .teams-row-cats-summary {
    flex: 0 1 6.5rem;
    font-size: 0.72rem;
    padding: 0 0.2rem;
  }
  .page-teams .teams-row-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    max-width: 58%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .page-teams .teams-row-actions::-webkit-scrollbar {
    display: none;
  }
  .page-teams .teams-page-actions .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
  }
}

.form-group { margin-bottom: 0.75rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; }
input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--surface-2);
  background: #0b1220;
  color: var(--text);
}
.page-trends .trends-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.page-trends .trends-filters .form-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem 0.65rem;
  flex: 0 1 auto;
  margin-bottom: 0;
  min-width: 0;
}
.page-trends .trends-filters .form-group label {
  display: inline;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.page-trends .trends-filters select {
  width: auto;
  min-width: 9rem;
  max-width: min(100%, 22rem);
  flex: 1 1 auto;
  padding: 0.55rem 2.35rem 0.55rem 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: #0b1220;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
}
/* Trends: FG/FT display mode (sizes match Home on desktop; compact rules in mobile MQ below). */
@media (min-width: 768px) {
  .page-trends table.players-table.stat-lines {
    table-layout: auto;
    font-size: 0.78rem;
    min-width: 520px;
  }
  .page-trends table.players-table.stat-lines th,
  .page-trends table.players-table.stat-lines td {
    padding: 0.35rem 0.25rem;
  }
  .page-trends table.players-table.stat-lines thead th.stat-col-player,
  .page-trends table.players-table.stat-lines td.name-cell {
    padding-left: 0.55rem;
  }
  .page-trends table.players-table.stat-lines td.name-cell.on-court {
    padding-left: 0.78rem;
  }
  .page-trends table.players-table.stat-lines thead th.data {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .page-trends table.players-table.stat-lines thead th.stat-fg,
  .page-trends table.players-table.stat-lines thead th.stat-ft,
  .page-trends table.players-table.stat-lines td.stat-fg,
  .page-trends table.players-table.stat-lines td.stat-ft {
    width: auto;
    min-width: 3.5rem;
  }
  .page-trends table.players-table.stat-lines td.data {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    letter-spacing: normal;
    line-height: normal;
  }
  .page-trends table.players-table.stat-lines td.data.stat-fg,
  .page-trends table.players-table.stat-lines td.data.stat-ft {
    font-size: inherit;
    letter-spacing: normal;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    overflow: visible;
    text-overflow: clip;
  }
  body.page-trends table.players-table.stat-lines td.data.stat-fg .view-combined,
  body.page-trends table.players-table.stat-lines td.data.stat-ft .view-combined {
    display: inline-grid !important;
    min-width: 4.75rem;
    max-width: none;
    overflow: visible;
  }
  body.page-trends table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
  body.page-trends table.players-table.stat-lines td.data.stat-ft .view-made-attempts,
  body.page-trends table.players-table.stat-lines td.data.stat-fg .view-percentage,
  body.page-trends table.players-table.stat-lines td.data.stat-ft .view-percentage {
    display: none !important;
  }
  body.page-trends table.players-table.stat-lines thead th.stat-fg,
  body.page-trends table.players-table.stat-lines thead th.stat-ft,
  body.page-trends table.players-table.stat-lines td.stat-fg,
  body.page-trends table.players-table.stat-lines td.stat-ft {
    min-width: 4.75rem;
  }
  body.page-trends table.players-table.stat-lines td.data.stat-fg,
  body.page-trends table.players-table.stat-lines td.data.stat-ft {
    cursor: default;
  }
}

.alert {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid var(--danger); }
.alert-info { background: rgba(56, 189, 248, 0.15); border: 1px solid var(--accent-2); }
.alert-success { background: rgba(34, 197, 94, 0.15); border: 1px solid var(--good); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.stat-lines-panel {
  background: var(--stat-panel);
  border-radius: 12px;
  padding: 0.35rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--stat-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.stat-lines-panel--empty .players-list-empty {
  margin: 0;
}

table.players-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 520px;
}
table.players-table.stat-lines {
  background: var(--stat-table);
  border-radius: 8px;
  overflow: hidden;
  table-layout: fixed;
  --flance-player-col: 23;
}
table.players-table.stat-lines col.col-player {
  width: calc(var(--flance-player-col) * 1%);
}
table.players-table.stat-lines col.col-stat {
  width: calc((100% - var(--flance-player-col) * 1%) / var(--flance-stat-cols, 1));
}
table.players-table th, table.players-table td {
  padding: 0.35rem 0.25rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}
table.players-table.stat-lines th,
table.players-table.stat-lines td {
  border-bottom-color: var(--stat-border);
}
table.players-table.stat-lines thead th {
  background: linear-gradient(180deg, #b4c9de 0%, var(--stat-header) 100%);
  color: var(--stat-header-text);
  font-weight: 800;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.065em;
  padding-top: 0.5rem;
  padding-bottom: 0.42rem;
  border-bottom: 2px solid var(--stat-header-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 1px 2px rgba(44, 64, 84, 0.08);
  vertical-align: bottom;
  line-height: 1.15;
}
table.players-table.stat-lines thead th.stat-col-player {
  text-align: left;
  padding-left: 0.45rem;
  letter-spacing: 0.04em;
}
table.players-table.stat-lines thead th.data {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
}
table.players-table.stat-lines tbody tr:first-child td {
  border-top: none;
}
table.players-table.stat-lines td.data {
  color: #0f172a;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
/* FG/FT: viewport-based (767px), not touch detection. Narrow = made/att; tap toggles %.
   Wide = grid: made/att (right) · bullet · % (left). Zero attempts: centered made/att only. */
table.players-table.stat-lines td.data.stat-fg,
table.players-table.stat-lines td.data.stat-ft {
  cursor: default;
}
table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
table.players-table.stat-lines td.data.stat-ft .view-made-attempts,
table.players-table.stat-lines td.data.stat-fg .view-percentage,
table.players-table.stat-lines td.data.stat-ft .view-percentage {
  min-width: 2.75rem;
}
table.players-table.stat-lines td.data.stat-fg .view-combined,
table.players-table.stat-lines td.data.stat-ft .view-combined {
  display: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 4.75rem;
  max-width: 100%;
  gap: 0 0.12rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}
table.players-table.stat-lines td.data.stat-fg .view-combined .fgft-made,
table.players-table.stat-lines td.data.stat-ft .view-combined .fgft-made {
  text-align: right;
  min-width: 0;
}
table.players-table.stat-lines td.data.stat-fg .view-combined .fgft-sep,
table.players-table.stat-lines td.data.stat-ft .view-combined .fgft-sep {
  text-align: center;
  flex-shrink: 0;
  padding: 0 0.08rem;
  font-weight: 500;
  opacity: 0.55;
  line-height: 1;
}
table.players-table.stat-lines td.data.stat-fg .view-combined .fgft-pct,
table.players-table.stat-lines td.data.stat-ft .view-combined .fgft-pct {
  text-align: left;
  min-width: 0;
}
table.players-table.stat-lines td.data.stat-fg .view-combined.fgft-no-pct,
table.players-table.stat-lines td.data.stat-ft .view-combined.fgft-no-pct {
  grid-template-columns: 1fr;
  justify-items: center;
  min-width: 2.75rem;
}
table.players-table.stat-lines td.data.stat-fg .view-combined.fgft-no-pct .fgft-solo,
table.players-table.stat-lines td.data.stat-ft .view-combined.fgft-no-pct .fgft-solo {
  text-align: center;
  min-width: 0;
}
table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
table.players-table.stat-lines td.data.stat-ft .view-made-attempts {
  display: inline-block;
}
table.players-table.stat-lines td.data.stat-fg .view-percentage,
table.players-table.stat-lines td.data.stat-ft .view-percentage {
  display: none;
}
body.fgft-show-pct table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
body.fgft-show-pct table.players-table.stat-lines td.data.stat-ft .view-made-attempts {
  display: none;
}
body.fgft-show-pct table.players-table.stat-lines td.data.stat-fg .view-percentage,
body.fgft-show-pct table.players-table.stat-lines td.data.stat-ft .view-percentage {
  display: inline-block;
}
@media (min-width: 768px) {
  table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
  table.players-table.stat-lines td.data.stat-ft .view-made-attempts,
  table.players-table.stat-lines td.data.stat-fg .view-percentage,
  table.players-table.stat-lines td.data.stat-ft .view-percentage {
    display: none !important;
  }
  table.players-table.stat-lines td.data.stat-fg .view-combined,
  table.players-table.stat-lines td.data.stat-ft .view-combined {
    display: inline-grid !important;
  }
  table.players-table.stat-lines td.data.stat-fg,
  table.players-table.stat-lines td.data.stat-ft {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
}
@media (max-width: 767px) {
  table.players-table.stat-lines td.data.stat-fg,
  table.players-table.stat-lines td.data.stat-ft {
    cursor: pointer;
  }
  table.players-table.stat-lines td.data.stat-fg .view-combined,
  table.players-table.stat-lines td.data.stat-ft .view-combined {
    display: none !important;
  }
  table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
  table.players-table.stat-lines td.data.stat-ft .view-made-attempts {
    display: inline-block !important;
    min-width: 0;
  }
  table.players-table.stat-lines td.data.stat-fg .view-percentage,
  table.players-table.stat-lines td.data.stat-ft .view-percentage {
    display: none !important;
    min-width: 0;
  }
  body.fgft-show-pct table.players-table.stat-lines td.data.stat-fg .view-made-attempts,
  body.fgft-show-pct table.players-table.stat-lines td.data.stat-ft .view-made-attempts {
    display: none !important;
  }
  body.fgft-show-pct table.players-table.stat-lines td.data.stat-fg .view-percentage,
  body.fgft-show-pct table.players-table.stat-lines td.data.stat-ft .view-percentage {
    display: inline-block !important;
  }
}
table.players-table th:first-child,
table.players-table td.name-cell {
  text-align: left;
  min-width: 118px;
  max-width: 42vw;
}
table.players-table.stat-lines td.name-cell {
  background: var(--stat-name);
  color: #0f172a;
  vertical-align: top;
  padding-left: 0.45rem;
}
table.players-table.stat-lines td.name-cell.on-court {
  box-shadow: inset 4px 0 0 var(--accent);
  padding-left: 0.72rem;
}
table.players-table.stat-lines td.name-cell.custom-color a,
table.players-table.stat-lines td.name-cell.match-upcoming a {
  color: #0f172a;
}
table.players-table td.name-cell a { color: #0f172a; font-weight: 700; }
a.player-profile-link {
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.55);
  text-underline-offset: 0.14em;
}
a.player-profile-link:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}
table.players-table.stat-lines td.name-cell a.player-profile-link {
  text-decoration-color: rgba(15, 23, 42, 0.35);
}
table.players-table.stat-lines td.name-cell a.player-profile-link:hover {
  color: #020617;
  text-decoration-color: #020617;
}
.page-player-list .roster-row-name a.player-profile-link {
  color: var(--text);
  text-decoration-color: rgba(56, 189, 248, 0.45);
}
.page-player-list .roster-row-name a.player-profile-link:hover {
  color: var(--accent-2);
}
table.players-table td.status-cell {
  color: #64748b;
  text-align: left;
  padding-left: 0.5rem;
}
table.players-table.stat-lines .match-info { color: #64748b; }

.player-list-card {
  padding: 0;
  overflow: hidden;
}
.player-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.player-list-table th,
.player-list-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-2);
}
.player-list-table th {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.player-list-table tbody tr:last-child td {
  border-bottom: none;
}
.player-list-team-col {
  text-align: center;
  width: 3.25rem;
}
.player-list-team-col input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}
.player-list-action-col {
  text-align: right;
  white-space: nowrap;
}
.player-list-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.player-name-block {
  line-height: 1.2;
  min-width: 0;
}
.player-name-primary {
  display: block;
  min-width: 0;
}
.player-name-line {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-name-primary a {
  font-weight: 700;
}
.player-name-short {
  display: inline;
}
.player-name-full {
  display: none;
}
.player-team-abbr {
  margin-left: 0.3rem;
  font-weight: 500;
  color: #64748b;
}
.player-name-block .match-meta {
  display: block;
  margin-top: 0.12rem;
  min-width: 0;
}
.player-name-block .match-line {
  display: block;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.62rem;
  font-weight: 400;
  color: #64748b;
}
@media (min-width: 768px) {
  .player-name-short {
    display: none;
  }
  .player-name-full {
    display: inline;
  }
  .player-name-block .match-line {
    font-size: 0.65rem;
  }
}
.badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  vertical-align: middle;
}
.badge-danger { background: var(--danger); color: #fff; }
.badge-warn { background: #eab308; color: #111; }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.match-info { color: var(--muted); font-size: 0.7rem; }
.punt-delta { font-size: 0.7rem; color: var(--muted); }
.punt-delta.up { color: var(--good); }
.punt-delta.down { color: var(--danger); }

.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--surface-2); }
.tab { padding: 0.5rem 0.75rem; color: var(--muted); border-bottom: 2px solid transparent; }
.tab.active { color: var(--text); border-color: var(--accent); }

.accordion-item { margin-bottom: 0.5rem; }
.accordion-head {
  background: var(--surface);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--surface-2);
}
.accordion-body { display: none; padding-top: 0.5rem; }
.accordion-item.open .accordion-body { display: block; }

.debug-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 40vh;
  overflow: auto;
  background: #111;
  border-top: 2px solid var(--accent);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}
.debug-panel .log-error { color: #f87171; }
.debug-panel .log-warning { color: #fbbf24; }

/* Games tab */
.game-card {
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.game-card-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr minmax(5.5rem, auto) 1fr;
  align-items: stretch;
  gap: 0.5rem 0.35rem;
  min-height: 3.5rem;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: center;
}
.game-card-summary:hover { background: rgba(255, 255, 255, 0.04); }
.game-team {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 0.08rem;
  min-width: 0;
}
.game-team.away { justify-content: flex-start; }
.game-team.home { justify-content: flex-end; }
.game-team-meta {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.game-team.away .game-team-meta {
  /* Abbr beside logo; score toward center (mirror of home). */
  justify-content: space-between;
}
.game-team.home .game-team-meta {
  flex-direction: row-reverse;
  justify-content: space-between;
}
.game-abbr {
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  min-width: 2.75rem;
  padding: 0 0.3rem;
  text-align: center;
  box-sizing: border-box;
}
.game-score {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 2.35rem;
  text-align: center;
  box-sizing: border-box;
}
.game-logo {
  width: auto;
  height: calc(100% - 0.35rem);
  max-width: 3.25rem;
  min-height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  align-self: center;
}
.game-time {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  white-space: nowrap;
}
.game-time.double {
  font-size: 0.92rem;
  line-height: 1.15;
  max-width: none;
  white-space: nowrap;
  text-align: center;
  padding-inline: 0.2rem;
}
.game-card-body { padding: 0.35rem 0.5rem 0.75rem; border-top: 1px solid var(--surface-2); }
.game-card.open .game-card-body { display: block; }
.game-side-title {
  margin: 0.5rem 0 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 767px) {
  body.page-dashboard:has(.dashboard-list-bar) .site-main,
  body.page-dashboard .site-main:has(.stat-lines-panel),
  body.page-trends .site-main,
  .site-main:has(.games-tab) {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  body.page-player .site-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  body.page-dashboard .site-main {
    margin-bottom: 2rem;
  }
  body.page-dashboard h1 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
    padding-left: 0.15rem;
  }
  body.page-dashboard .tabs {
    margin-bottom: 0.65rem;
    padding-left: 0.1rem;
  }
  body.page-dashboard .btn-group {
    margin-bottom: 0.5rem;
    padding-left: 0.05rem;
  }

  body.page-dashboard .site-main:has(.stat-lines-panel) .stat-lines-panel,
  body.page-trends .stat-lines-panel {
    margin-left: -0.3rem;
    margin-right: -0.3rem;
    width: calc(100% + 0.6rem);
    padding: 0;
    margin-bottom: 0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }
  body.page-player .stat-lines-panel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .stat-lines-panel .table-wrap {
    overflow-x: visible;
  }
  table.players-table.stat-lines {
    min-width: 0;
    width: 100%;
    font-size: 0.625rem;
    border-radius: 0;
  }
  table.players-table.stat-lines th:first-child,
  table.players-table.stat-lines td.name-cell {
    min-width: 0;
    max-width: none;
  }
  table.players-table.stat-lines th,
  table.players-table.stat-lines td {
    padding: 0.18rem 0.04rem;
  }
  table.players-table.stat-lines thead th {
    font-size: 0.48rem;
    letter-spacing: 0.05em;
    padding-top: 0.32rem;
    padding-bottom: 0.28rem;
    line-height: 1.1;
    border-bottom-width: 2px;
  }
  table.players-table.stat-lines thead th.stat-col-player {
    width: 23%;
    padding-left: 0.25rem;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }
  table.players-table.stat-lines thead th.data {
    font-size: 0.46rem;
    letter-spacing: 0.06em;
  }
  table.players-table.stat-lines td.name-cell {
    width: 23%;
    min-width: 0;
    max-width: none;
    padding: 0.22rem 0.25rem;
    font-size: 0.62rem;
    vertical-align: middle;
  }
  table.players-table.stat-lines td.name-cell.on-court {
    padding-left: 0.5rem;
  }
  table.players-table.stat-lines td.name-cell a {
    font-size: 0.62rem;
    font-weight: 700;
  }
  table.players-table.stat-lines .player-name-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  table.players-table.stat-lines td.data {
    font-size: 0.6rem;
    font-weight: 600;
    line-height: 1.15;
    padding-left: 0;
    padding-right: 0;
  }
  table.players-table.stat-lines td.data.stat-pts {
    font-weight: 700;
  }
  table.players-table.stat-lines td.data.stat-fg .data-percentage,
  table.players-table.stat-lines td.data.stat-ft .data-percentage {
    min-width: 0;
    font-size: 0.58rem;
  }
  table.players-table.stat-lines .match-line {
    font-size: 0.48rem;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.01em;
  }
  table.players-table.stat-lines .badge {
    font-size: 0.48rem;
    padding: 0.05rem 0.2rem;
    margin-left: 0.12rem;
  }
  table.players-table.stat-lines .punt-delta {
    font-size: 0.52rem;
    margin-top: 0.1rem;
  }
  .page-trends table.players-table.stat-lines {
    width: 100%;
    min-width: 0;
    font-size: 0.58rem;
    --flance-player-col: 21;
  }
  .page-trends table.players-table.stat-lines th,
  .page-trends table.players-table.stat-lines td {
    padding: 0.22rem 0.04rem;
  }
  .page-trends table.players-table.stat-lines thead th.stat-col-player,
  .page-trends table.players-table.stat-lines td.name-cell {
    width: 21%;
    padding-left: 0.55rem;
  }
  .page-trends table.players-table.stat-lines td.name-cell.on-court {
    padding-left: 0.75rem;
  }
  .page-trends table.players-table.stat-lines thead th.stat-fg,
  .page-trends table.players-table.stat-lines td.stat-fg,
  .page-trends table.players-table.stat-lines thead th.stat-ft,
  .page-trends table.players-table.stat-lines td.stat-ft {
    width: 10%;
  }
  .page-trends table.players-table.stat-lines thead th.data {
    font-size: 0.46rem;
    letter-spacing: 0.03em;
    padding-left: 0.03rem;
    padding-right: 0.03rem;
  }
  .page-trends table.players-table.stat-lines thead th.stat-fg,
  .page-trends table.players-table.stat-lines thead th.stat-ft {
    letter-spacing: 0.02em;
  }
  .page-trends table.players-table.stat-lines td.data {
    font-size: 0.5rem;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .page-trends table.players-table.stat-lines td.data.stat-pts {
    font-weight: 700;
  }
  .page-trends table.players-table.stat-lines td.data.stat-fg,
  .page-trends table.players-table.stat-lines td.data.stat-ft {
    font-family: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    padding-left: 0.04rem;
    padding-right: 0.04rem;
    white-space: nowrap;
    cursor: pointer;
  }
  .site-main:has(.games-tab) .games-tab {
    margin-left: -0.3rem;
    margin-right: -0.3rem;
    width: calc(100% + 0.6rem);
  }
  .site-main:has(.games-tab) .game-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin-bottom: 0.35rem;
  }
  .site-main:has(.games-tab) .game-card:last-child {
    margin-bottom: 0;
  }
  .site-main:has(.games-tab) .game-card-summary {
    min-height: 3.25rem;
    padding: 0.35rem 0.4rem;
    gap: 0.4rem 0.25rem;
    grid-template-columns: 1fr minmax(5rem, auto) 1fr;
  }
  .site-main:has(.games-tab) .game-team {
    gap: 0.06rem;
  }
  .site-main:has(.games-tab) .game-logo {
    min-height: 2.35rem;
    max-width: 3rem;
  }
  .site-main:has(.games-tab) .game-time {
    font-size: 1.05rem;
  }
  .site-main:has(.games-tab) .game-card-body {
    padding: 0.15rem 0 0.45rem;
    border-top-color: var(--surface-2);
  }
  .site-main:has(.games-tab) .game-card-body .game-side-title {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    margin-top: 0.35rem;
  }
  .site-main:has(.games-tab) .game-card-body .stat-lines-panel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-left: none;
    border-right: none;
  }
  body.page-dashboard:has(.accordion-item) .site-main {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
  body.page-dashboard .accordion-item {
    margin-left: -0.3rem;
    margin-right: -0.3rem;
    width: calc(100% + 0.6rem);
    margin-bottom: 0.35rem;
  }
  body.page-dashboard .accordion-head {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  body.page-dashboard .accordion-body {
    padding-top: 0.25rem;
  }
  body.page-dashboard .accordion-body .stat-lines-panel {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-left: none;
    border-right: none;
  }
}

@media (max-width: 600px) {
  .site-nav { font-size: 0.75rem; gap: 0.45rem; }
}
