:root {
  --bg: #09090b;
  --bg2: #111827;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(30, 41, 59, 0.9);
  --text: #e5eefb;
  --muted: #a5b4cc;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --success: #22c55e;
  --warning: #f59e0b;
  --critical: #ef4444;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  color: var(--text);
}

body {
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
}

.shell {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

main:not(.shell) {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 20px;
  margin: 12px 0;
}

.live-game-widget {
  margin: 10px 0 18px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(6, 182, 212, 0.08)),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.live-game-widget[hidden] {
  display: none;
}

.live-heading {
  margin-bottom: 12px;
}

.live-heading h2 {
  margin-bottom: 4px;
}

.live-heading p {
  margin: 0;
}

.live-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.live-game-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  background: rgba(8, 15, 31, 0.72);
}

.live-game-topline,
.live-game-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.live-game-footer {
  justify-content: space-between;
  margin-top: 10px;
}

.live-game-footer a {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.live-matchup {
  margin-left: auto;
  color: var(--text);
  font-weight: 800;
}

.live-scoreboard {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.live-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
}

.live-team-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--text);
}

.live-team-abbr {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.live-team-score {
  min-width: 2ch;
  text-align: right;
  font-size: clamp(1.75rem, 6vw, 2.7rem);
  line-height: 1;
  font-weight: 900;
  color: #f8fafc;
}

.hero {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -50px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
  filter: blur(8px);
}

.avatar { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.summary-wrap { display: flex; gap: 12px; align-items: center; }
.tagline { margin: 0; color: #cbd5e1; font-style: italic; }
.update-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
  font-size: 14px;
}
.eyebrow {
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin: 0 0 12px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(1.8rem, 4.4vw, 3.2rem);
  line-height: 1.02;
  max-width: none;
  white-space: nowrap;
  margin-bottom: 18px;
}
h2 { margin-bottom: 12px; }
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}
.top-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  text-decoration: none;
}
.top-links a:hover {
  transform: translateY(-2px);
}

.collapsible-card summary {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collapsible-card summary::-webkit-details-marker {
  display: none;
}

.collapsible-card summary::before {
  content: '▸';
  font-size: 1rem;
  color: var(--muted);
}

.collapsible-card[open] summary::before {
  content: '▾';
}

.collapsible-card summary::after {
  content: none;
}

.collapsible-card > :not(summary) {
  margin-top: 14px;
}
.lede, .card p, li, .muted-line {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover, .project:hover, .card a:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #9333ea);
  border-color: transparent;
}

.button.ghost {
  background: rgba(255,255,255,0.03);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spark-list {
  padding-left: 20px;
  margin: 0;
}

.tilt { transform: rotate(-1deg); }
.accent {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.82), rgba(49, 46, 129, 0.75));
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dbe6ff;
  font-size: 0.92rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.project h3 { margin-bottom: 8px; }
.project span {
  font-size: 1.6rem;
  color: var(--accent-3);
}

.report-panel {
  display: block;
}

.report-body {
  margin-top: 14px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  max-height: none;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 22px;
  background: rgba(8, 15, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.report-table th, .report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.report-table th {
  color: #9ca3af;
  font-size: 13px;
}

.report-table td {
  font-size: 14px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #dbe6ff;
  font: 0.98rem/1.8 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.stocks-shell {
  display: grid;
  gap: 24px;
}

.stocks-hero {
  padding: 28px 28px 24px;
}

.stocks-hero .tagline {
  max-width: 60ch;
}

.hero-actions {
  margin-top: 18px;
}

.button.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.02);
}

.stocks-meta-grid {
  align-items: start;
}

.stocks-summary-card,
.stocks-section-card {
  padding: 24px;
}

.stocks-summary-card h2,
.stocks-section-card h2 {
  margin-bottom: 10px;
}

#latestMeta p {
  margin: 6px 0;
  color: var(--text);
}

.muted-line {
  color: var(--muted);
}

.compact-table table {
  background: transparent;
}

.compact-table th,
.compact-table td {
  font-size: 13px;
  padding: 8px 10px;
}

.stocks-table-block + .stocks-table-block {
  margin-top: 26px;
}

.stocks-table-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.report-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
  background: rgba(8, 15, 31, 0.92);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  table-layout: fixed;
  font-variant-numeric: tabular-nums;
}

.report-table thead th {
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-table th,
.report-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.report-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.report-table tbody tr:last-child td {
  border-bottom: none;
}

.report-table th:first-child,
.report-table td:first-child {
  width: 40%;
}

.report-table th:not(:first-child),
.report-table td:not(:first-child) {
  width: 15%;
  text-align: right;
}

.report-table td:first-child {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.report-table td:not(:first-child) {
  color: #e5eefc;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 15, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.table-card {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  height: 100%;
}

.grid.two-up {
  align-items: stretch;
}

.grid.two-up .table-card table {
  height: 100%;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  text-align: left;
}

th {
  color: #dbe6ff;
  background: rgba(255,255,255,0.04);
}

.portland-fire-line td {
  color: #d4a017 !important;
  font-weight: 800 !important;
  background: rgba(212, 160, 23, 0.12) !important;
  text-shadow: 0 0 0.01px currentColor;
}

a:link, a:visited {
  color: #ffffff;
  text-decoration: none;
}

a:hover, a:active {
  opacity: .95;
  text-decoration: none;
}

#transactionsTable a,
#transactionsTable a:link,
#transactionsTable a:visited,
#transactionsTable a:hover,
#transactionsTable a:active,
#overviewTable a,
#overviewTable a:link,
#overviewTable a:visited,
#overviewTable a:hover,
#overviewTable a:active,
#rosterTable a,
#rosterTable a:link,
#rosterTable a:visited,
#rosterTable a:hover,
#rosterTable a:active,
#injuryReportTable a,
#injuryReportTable a:link,
#injuryReportTable a:visited,
#injuryReportTable a:hover,
#injuryReportTable a:active {
  text-decoration: underline;
}

#injuryReportTable th:nth-child(1),
#injuryReportTable td:nth-child(1) {
  width: 18%;
}

#injuryReportTable th:nth-child(2),
#injuryReportTable td:nth-child(2) {
  width: 18%;
}

#injuryReportTable th:nth-child(3),
#injuryReportTable td:nth-child(3) {
  width: 12%;
}

#injuryReportTable th:nth-child(4),
#injuryReportTable td:nth-child(4) {
  width: 16%;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.standings-team-short {
  display: none;
}

.games-date-short,
.games-tipoff-short,
.schedule-date-short,
.schedule-opponent-short,
.schedule-homeaway-short,
.schedule-venue-short,
.schedule-status-short,
.schedule-outcome-short {
  display: none;
}

.link-list a { display: inline-block; margin: 4px 0; }
.link-table { border: none; background: transparent; }
.link-table th, .link-table td { border: none; padding: 6px 0; }
.ok { color: var(--success); }
.warning { color: var(--warning); }
.critical { color: var(--critical); }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; width: 100%; align-items: stretch; }
.metric { background: #0b1220; border: 1px solid #1f2937; border-radius: 10px; padding: 10px; min-width: 0; width: 100%; height: 100%; box-sizing: border-box; }
.metric-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.metric-value { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-sub { font-size: 12px; color: #94a3b8; margin-top: 4px; }

#overviewTable th:first-child,
#overviewTable td:first-child {
  width: 32%;
  color: #dbe6ff;
  font-weight: 800;
}

#overviewTable td:last-child {
  font-size: 15px;
}

.footer {
  text-align: center;
  padding: 26px 8px 0;
}

.footer p {
  color: rgba(229, 238, 251, 0.7);
}

body.minimal-table-mode {
  --fire-red: #c8102e;
  --fire-blue: #cee5eb;
  --fire-ink: #201a1c;
  --fire-smoke: #f5f8f9;
  min-height: 100vh;
  background: var(--fire-smoke);
  color: var(--fire-ink);
  font-family: "Arial Narrow", "Roboto Condensed", "Aptos Narrow", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

body.minimal-table-mode .noise,
body.minimal-table-mode .subsite-shell > p:first-child,
body.minimal-table-mode .section-heading {
  display: none;
}

body.minimal-table-mode .shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

body.minimal-table-mode .card {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
}

body.minimal-table-mode .table-card {
  height: auto;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

body.minimal-table-mode table {
  width: 100%;
  min-width: 720px;
  border: 0;
  border-radius: 0;
  border-collapse: collapse;
  background: #fff;
  color: var(--fire-ink);
  font-variant-numeric: tabular-nums;
}

body.minimal-table-mode th,
body.minimal-table-mode td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(32, 26, 28, 0.16);
  color: var(--fire-ink);
  font-size: 14px;
  line-height: 1.35;
}

body.minimal-table-mode th {
  background: var(--fire-red);
  color: var(--fire-blue);
  font-family: Impact, "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.minimal-table-mode[data-view="overview"] #overviewTable thead {
  display: none;
}

body.minimal-table-mode tr:nth-child(even) td {
  background: rgba(206, 229, 235, 0.36);
}

body.minimal-table-mode a,
body.minimal-table-mode a:link,
body.minimal-table-mode a:visited,
body.minimal-table-mode a:hover,
body.minimal-table-mode a:active {
  color: var(--fire-red);
  text-decoration: underline;
}

body.minimal-table-mode .portland-fire-line td {
  color: var(--fire-red) !important;
  background: var(--fire-blue) !important;
  font-weight: 900 !important;
}

body.minimal-table-mode .status-pill {
  min-width: 0;
  padding: 2px 7px;
  border-color: var(--fire-red);
  border-radius: 2px;
  background: var(--fire-blue);
  color: var(--fire-red);
  font-size: 12px;
}

#cockpit-headline p,
#cockpit-insights li,
#cockpit-jobs li,
#cockpit-activity-list li {
  color: var(--muted);
  line-height: 1.6;
}

#cockpit-insights,
#cockpit-jobs,
#cockpit-activity-list {
  margin: 0;
  padding-left: 20px;
}

@media (max-width: 980px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .two-up,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px;
    display: block;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .shell { width: min(1100px, calc(100% - 20px)); }
  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    padding: 10px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  }
  td {
    border-bottom: none;
    padding: 6px 12px;
  }
}

@media (max-width: 640px) {
  body[data-view] {
    overflow-x: hidden;
  }

  body[data-view] .shell {
    width: min(100%, calc(100% - 16px));
    padding: 12px 0 28px;
  }

  body[data-view] .card {
    padding: 12px;
    border-radius: 16px;
  }

  body[data-view] .table-card {
    overflow: visible;
    border-radius: 12px;
  }

  body[data-view] table,
  body.minimal-table-mode table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
  }

  body[data-view] thead,
  body.minimal-table-mode thead {
    display: none;
  }

  body[data-view] tbody,
  body.minimal-table-mode tbody {
    display: grid;
    gap: 10px;
  }

  body[data-view] tr,
  body.minimal-table-mode tr {
    display: grid;
    gap: 0;
    padding: 8px 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    background: rgba(8, 15, 31, 0.72);
    overflow: hidden;
  }

  body[data-view] td,
  body.minimal-table-mode td {
    display: grid !important;
    grid-template-columns: minmax(82px, 36%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100% !important;
    min-width: 0;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    text-align: left !important;
    overflow-wrap: anywhere;
  }

  body[data-view] td:last-child,
  body.minimal-table-mode td:last-child {
    border-bottom: 0;
  }

  body[data-view] td::before,
  body.minimal-table-mode td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  body.minimal-table-mode .shell {
    width: 100%;
    padding: 0;
  }

  body.minimal-table-mode .card {
    padding: 0;
    border-radius: 0;
  }

  body.minimal-table-mode .table-card {
    border-radius: 0;
  }

  body.minimal-table-mode tbody {
    gap: 8px;
    padding: 8px;
    background: var(--fire-smoke);
  }

  body.minimal-table-mode tr {
    border-color: rgba(200, 16, 46, 0.26);
    border-radius: 6px;
    background: #fff;
  }

  body.minimal-table-mode th,
  body.minimal-table-mode td {
    border-bottom: 1px solid rgba(32, 26, 28, 0.16);
  }

  body.minimal-table-mode td::before {
    color: var(--fire-red);
    font-family: Impact, "Arial Narrow", "Roboto Condensed", "Aptos Narrow", Arial, sans-serif;
    letter-spacing: 0.04em;
  }

  body.minimal-table-mode .portland-fire-line td {
    background: var(--fire-blue) !important;
  }

  body[data-view="standings"] .card {
    padding: 10px;
  }

  body[data-view="standings"] .table-card {
    border-radius: 8px;
  }

  body[data-view="standings"] table,
  body[data-view="standings"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="standings"] tbody {
    gap: 0;
  }

  body[data-view="standings"] tr,
  body.minimal-table-mode[data-view="standings"] tr {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 48px 34px 46px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="standings"] td,
  body.minimal-table-mode[data-view="standings"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="standings"] td:nth-child(2),
  body.minimal-table-mode[data-view="standings"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="standings"] td::before,
  body.minimal-table-mode[data-view="standings"] td::before {
    content: none;
  }

  body[data-view="standings"] .standings-team-full {
    display: none;
  }

  body[data-view="standings"] .standings-team-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="standings"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="standings"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="standings"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="standings"] td {
    color: var(--fire-ink);
  }

  body[data-view="schedule"] .card {
    padding: 10px;
  }

  body[data-view="schedule"] .table-card {
    border-radius: 8px;
  }

  body[data-view="schedule"] table,
  body[data-view="schedule"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="schedule"] tbody {
    gap: 0;
  }

  body[data-view="schedule"] tr,
  body.minimal-table-mode[data-view="schedule"] tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 18px minmax(46px, 0.7fr) 52px 58px;
    align-items: center;
    gap: 3px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="schedule"] td,
  body.minimal-table-mode[data-view="schedule"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 2px;
    border-bottom: 0;
    font-size: 11px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="schedule"] td:nth-child(2),
  body.minimal-table-mode[data-view="schedule"] td:nth-child(2),
  body[data-view="schedule"] td:nth-child(4),
  body.minimal-table-mode[data-view="schedule"] td:nth-child(4) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="schedule"] td::before,
  body.minimal-table-mode[data-view="schedule"] td::before {
    content: none;
  }

  body[data-view="schedule"] .schedule-date-full,
  body[data-view="schedule"] .schedule-opponent-full,
  body[data-view="schedule"] .schedule-homeaway-full,
  body[data-view="schedule"] .schedule-venue-full,
  body[data-view="schedule"] .schedule-status-full,
  body[data-view="schedule"] .schedule-outcome-full {
    display: none;
  }

  body[data-view="schedule"] .schedule-date-short,
  body[data-view="schedule"] .schedule-opponent-short,
  body[data-view="schedule"] .schedule-homeaway-short,
  body[data-view="schedule"] .schedule-venue-short,
  body[data-view="schedule"] .schedule-status-short,
  body[data-view="schedule"] .schedule-outcome-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="schedule"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="schedule"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="schedule"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="schedule"] td {
    color: var(--fire-ink);
  }

  body[data-view="games"] .card {
    padding: 10px;
  }

  body[data-view="games"] .table-card {
    border-radius: 8px;
  }

  body[data-view="games"] table,
  body[data-view="games"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="games"] tbody {
    gap: 0;
  }

  body[data-view="games"] tr,
  body.minimal-table-mode[data-view="games"] tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 76px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="games"] td,
  body.minimal-table-mode[data-view="games"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="games"] td:nth-child(2),
  body.minimal-table-mode[data-view="games"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="games"] td::before,
  body.minimal-table-mode[data-view="games"] td::before {
    content: none;
  }

  body[data-view="games"] .games-date-full,
  body[data-view="games"] .games-tipoff-full {
    display: none;
  }

  body[data-view="games"] .games-date-short,
  body[data-view="games"] .games-tipoff-short {
    display: inline;
  }

  body.minimal-table-mode[data-view="games"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="games"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="games"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="games"] td {
    color: var(--fire-ink);
  }

  body[data-view="roster"] .card {
    padding: 10px;
  }

  body[data-view="roster"] .table-card {
    border-radius: 8px;
  }

  body[data-view="roster"] table,
  body[data-view="roster"] tbody {
    display: block;
    width: 100%;
  }

  body[data-view="roster"] tbody {
    gap: 0;
  }

  body[data-view="roster"] tr,
  body.minimal-table-mode[data-view="roster"] tr {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 42px 52px 58px;
    align-items: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    border-width: 0 0 1px;
    background: rgba(8, 15, 31, 0.72);
  }

  body[data-view="roster"] td,
  body.minimal-table-mode[data-view="roster"] td {
    display: block !important;
    width: auto !important;
    padding: 8px 3px;
    border-bottom: 0;
    font-size: 12px;
    line-height: 1.1;
    text-align: center !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-view="roster"] td:nth-child(2),
  body.minimal-table-mode[data-view="roster"] td:nth-child(2) {
    text-align: left !important;
    font-weight: 800;
  }

  body[data-view="roster"] td::before,
  body.minimal-table-mode[data-view="roster"] td::before {
    content: none;
  }

  body.minimal-table-mode[data-view="roster"] tbody {
    padding: 0;
  }

  body.minimal-table-mode[data-view="roster"] tr {
    border-color: rgba(200, 16, 46, 0.18);
    background: #fff;
  }

  body.minimal-table-mode[data-view="roster"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="roster"] td {
    color: var(--fire-ink);
  }
}

@media (max-width: 640px) {
  body[data-view="overview"] table,
  body.minimal-table-mode[data-view="overview"] table {
    display: table;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 15, 31, 0.72);
    overflow: hidden;
  }

  body[data-view="overview"] thead,
  body.minimal-table-mode[data-view="overview"] thead {
    display: table-header-group;
  }

  body[data-view="overview"] tbody,
  body.minimal-table-mode[data-view="overview"] tbody {
    display: table-row-group;
    padding: 0;
    background: transparent;
  }

  body[data-view="overview"] tr,
  body.minimal-table-mode[data-view="overview"] tr {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  body[data-view="overview"] th,
  body[data-view="overview"] td,
  body.minimal-table-mode[data-view="overview"] th,
  body.minimal-table-mode[data-view="overview"] td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 12px;
    line-height: 1.25;
    text-align: left !important;
    overflow-wrap: normal;
  }

  body[data-view="overview"] td::before,
  body.minimal-table-mode[data-view="overview"] td::before {
    content: none;
  }

  body[data-view="overview"] th:first-child,
  body[data-view="overview"] td:first-child,
  body.minimal-table-mode[data-view="overview"] th:first-child,
  body.minimal-table-mode[data-view="overview"] td:first-child {
    width: 34% !important;
  }

  body.minimal-table-mode[data-view="overview"] table {
    border-color: rgba(200, 16, 46, 0.24);
    background: #fff;
  }

  body.minimal-table-mode[data-view="overview"] tr:nth-child(even) td {
    background: rgba(206, 229, 235, 0.36);
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable td:first-child {
    color: var(--fire-red);
    font-weight: 900;
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable th:first-child {
    color: var(--fire-blue);
    font-weight: 900;
  }

  body.minimal-table-mode[data-view="overview"] #overviewTable td:last-child {
    color: var(--fire-ink);
  }
}
