:root {
  --bg: #f3f0e7;
  --bg-accent: #e3dcc9;
  --ink: #1f2a2a;
  --accent: #9e2a2b;
  --accent-2: #0a7a64;
  --panel: #fffaf0;
  --border: #d7cfbf;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, var(--bg-accent), var(--bg));
}

a {
  color: var(--accent);
}

.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #1f2a2a;
  color: #f5f5f1;
}

.shell-header nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.shell-header nav a {
  color: #f5f5f1;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.shell-header nav a:hover {
  border-bottom-color: #f5f5f1;
}

.shell-brand {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.shell-main {
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.grid.two-up {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.collapsible-stack {
  display: grid;
  gap: 0.6rem;
}

.collapsible-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.collapsible-row summary {
  cursor: pointer;
  padding: 0.75rem 0.9rem;
  font-weight: 600;
}

.collapsible-row[open] summary {
  border-bottom: 1px solid var(--border);
}

.collapsible-body {
  padding: 0.8rem;
}

.report-embed {
  display: block;
  width: 100%;
  min-height: 240px;
  overflow-x: auto;
  padding: 0.8rem;
}

.report-embed > * {
  max-width: 100%;
}

.wrap-anywhere {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
}

.filter-form {
  margin-bottom: 1rem;
}

.filter-form-live {
  align-items: stretch;
}

.filter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.filter-meta {
  color: #655e51;
  font-size: 0.88rem;
  font-weight: 600;
}

.filter-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-checkboxes {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.filter-checkboxes legend {
  width: 100%;
  margin-bottom: 0.2rem;
  font-weight: 600;
}

.filter-checkbox {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 500;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
}

.filter-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-chip-pill {
  --position-bg: #ebe8de;
  --position-fg: #1f2a2a;
  --position-border: #cbbfa6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  border: 1px solid var(--position-border);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  background: #fff;
  color: #5d564a;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;
  transition: all 120ms ease;
}

.filter-chip input:checked + .filter-chip-pill {
  background: var(--position-bg);
  color: var(--position-fg);
  border-color: var(--position-border);
}

.filter-chip:hover .filter-chip-pill {
  border-color: #94886f;
  color: #3d362c;
}

.filter-chip input:focus-visible + .filter-chip-pill {
  outline: 2px solid #807863;
  outline-offset: 1px;
}

.button.secondary {
  background: #605850;
}

.filter-chip-all {
  border-color: #1f2a2a;
  color: #1f2a2a;
  background: #fff;
  font-weight: 700;
}

.filter-chip-all.is-active {
  background: #1f2a2a;
  color: #fff;
  border-color: #1f2a2a;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

input,
select,
button,
.button {
  font: inherit;
  padding: 0.56rem 0.86rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-shell {
  display: grid;
  gap: 1rem;
}

.dashboard-toolbar,
.operator-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0 0.1rem;
}

.dashboard-refresh-form {
  margin: 0;
}

.dashboard-toolbar-meta {
  margin: 0;
  color: #655e51;
  font-size: 0.88rem;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
  gap: 1rem;
  align-items: start;
}

.dashboard-lineup-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.dashboard-content-grid {
  display: block;
  column-gap: 1rem;
  column-count: 1;
}

.dashboard-lineup-rail {
  position: sticky;
  top: 1rem;
}

.dashboard-content-grid {
  margin: 0;
}

.dashboard-scoreboard-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgb(33 96 135 / 0.09), transparent 24%),
    linear-gradient(180deg, rgb(255 252 246 / 0.96), rgb(247 241 231 / 0.98));
  border: 1px solid #e0d3bc;
  box-shadow: 0 12px 32px rgb(34 27 19 / 0.06);
}

.dashboard-scoreboard-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.dashboard-scoreboard-copy {
  display: grid;
  gap: 0.18rem;
}

.dashboard-scoreboard-title,
.dashboard-scoreboard-meta {
  margin: 0;
}

.dashboard-scoreboard-title {
  font-size: 1rem;
  color: #2d271f;
}

.dashboard-scoreboard-meta {
  color: #6f6557;
  font-size: 0.82rem;
}

.dashboard-scoreboard-link {
  color: #6a4a14;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-scoreboard-link:hover,
.dashboard-scoreboard-link:focus-visible {
  text-decoration: underline;
}

.dashboard-widget-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-self: start;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 1rem;
  width: 100%;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 252 246 / 0.96), rgb(248 241 229 / 0.98)),
    linear-gradient(135deg, #fff 0%, #eee2cb 100%);
  box-shadow: 0 10px 28px rgb(39 30 21 / 0.06);
}

.dashboard-panel-lineup .widget-body {
  gap: 1rem;
}

.dashboard-panel-primary,
.dashboard-panel-signal {
  grid-column: auto;
}

.dashboard-lineup-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.dashboard-lineup-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-lineup-section {
  display: grid;
  gap: 0.45rem;
}

.dashboard-section-label {
  margin: 0;
  padding: 0.1rem 0 0.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #786d5c;
}

.dashboard-player-card {
  min-height: 0;
}

.dashboard-panel-primary .widget-list.dense,
.dashboard-panel-signal .widget-list.dense {
  gap: 0.5rem;
}

.dashboard-panel-primary .widget-list.dense li,
.dashboard-panel-signal .widget-list.dense li {
  padding: 0.48rem 0.62rem;
}

.operator-auth-strip {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  padding: 0.55rem 0.1rem 0;
  color: rgba(72, 66, 56, 0.82);
  font-size: 0.74rem;
}

.operator-auth-strip-label,
.operator-auth-indicator-label,
.operator-auth-refresh-link {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.operator-auth-strip-label {
  color: rgba(82, 74, 63, 0.72);
}

.operator-auth-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
  text-decoration: none;
  cursor: help;
}

.operator-auth-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #c45f3f;
  box-shadow: 0 0 0 1px rgba(63, 52, 41, 0.14);
}

.operator-auth-indicator.is-ready .operator-auth-dot {
  background: #2f8a58;
}

.operator-auth-indicator.is-broken .operator-auth-dot {
  background: #bf5d39;
}

.operator-auth-refresh-link {
  color: rgba(82, 74, 63, 0.78);
  text-decoration: none;
}

.operator-auth-refresh-link:hover,
.operator-auth-refresh-link:focus-visible {
  color: rgba(52, 45, 36, 0.95);
}

.operator-lineup-column,
.operator-widgets-column {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-items: start;
}

.operator-widgets-column {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.widget-panel {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  align-self: start;
}

.widget-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 1rem;
}

.widget-header::-webkit-details-marker {
  display: none;
}

.widget-header-title {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  min-height: 2rem;
}

.widget-header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}

.widget-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
  align-self: start;
  margin-top: 0.05rem;
}

.widget-refresh-form {
  display: none;
}

.widget-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #d9ccb6;
  background: #f4ecde;
  color: var(--ink);
  cursor: pointer;
}

.widget-icon-button:hover {
  background: #ede1cd;
}

.widget-icon-button-static {
  cursor: inherit;
  pointer-events: none;
}

.widget-action-icon,
.widget-toggle-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.widget-toggle-icon {
  transition: transform 0.16s ease;
}

.widget-collapsible[open] .widget-toggle-icon {
  transform: rotate(180deg);
}

.widget-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid #e8dfcf;
  align-content: start;
}

.widget-meta {
  color: #655e51;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.widget-meta-placeholder {
  visibility: hidden;
}

.panel-cache-status {
  margin: 0 0 0.85rem;
  color: #655e51;
  font-size: 0.82rem;
  line-height: 1.4;
}

.scoreboard-panel-cache-status {
  margin: 0 0 1rem;
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.widget-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.65rem;
  position: relative;
  padding: 0.68rem 0.78rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e8dfcf;
}

.widget-player-card {
  min-height: 0;
}

.widget-player-card-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.widget-player-card-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.1rem;
  justify-items: start;
  position: relative;
  z-index: 2;
}

.widget-player-card-main > strong,
.widget-player-card-main .player-name-cell strong {
  line-height: 1.2;
  font-size: 0.94rem;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.widget-player-card-main .player-name-cell strong a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.widget-player-card-primary-link {
  color: inherit;
  text-decoration: none;
}

.widget-player-card-primary-link:hover,
.widget-player-card-primary-link:focus-visible {
  text-decoration: underline;
}

.team-logo {
  object-fit: contain;
}

.widget-player-card-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
}

.widget-player-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  min-width: 1.28rem;
  height: 1.28rem;
  padding-inline: 0.18rem;
  border-radius: 999px;
  border: 1px solid #ddcfb8;
  background: #fbf4e8;
  color: #7b5b1b;
  font-size: 0.72rem;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65);
}

.widget-player-card-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.widget-player-card-badge-detail {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.widget-player-card-meta-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.widget-player-card-subtitle {
  margin-right: 0.22rem;
}

.widget-player-card-separator {
  color: #8b8376;
}

.widget-player-card-eyebrow {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #776e61;
}

.widget-player-card-inline-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  margin-right: 0.14rem;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  border: 1px solid #dbcaa9;
  background: #f9f1df;
  color: #72561f;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.widget-player-card-stats {
  min-width: 4.2rem;
  display: grid;
  align-content: start;
  gap: 0.08rem;
  justify-items: end;
  text-align: right;
  position: relative;
  z-index: 2;
}

.widget-player-card-stats > span,
.widget-player-card-stats > small {
  line-height: 1.2;
}

.widget-player-card-stats > span {
  font-size: 0.8rem;
  font-weight: 450;
  color: #564f44;
}

.widget-player-card-stats > small {
  font-size: 0.72rem;
  color: #746b5d;
}

.widget-player-card-stats-empty {
  min-width: 0;
}

.player-name-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.player-name-team-logo {
  flex: 0 0 auto;
}

.player-lookup-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7d6f57;
  text-decoration: none;
}

.player-lookup-link:hover,
.player-lookup-link:focus-visible {
  color: #5d503d;
}

.player-lookup-icon {
  flex: 0 0 auto;
}

.player-preview-tooltip-wrap {
  max-width: 100%;
}

.player-preview-tooltip-content {
  min-width: 18rem;
  max-width: min(24rem, 85vw);
  padding: 0;
}

.player-preview-tooltip-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem;
}

.player-preview-tooltip-header {
  display: grid;
  gap: 0.15rem;
}

.player-preview-tooltip-name {
  font-size: 0.88rem;
  line-height: 1.2;
}

.player-preview-tooltip-subtitle {
  color: #746b5d;
}

.player-preview-tooltip-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  color: #564f44;
  font-size: 0.74rem;
}

.player-preview-tooltip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.player-preview-tooltip-copy {
  margin: 0;
  color: #3f382e;
}

.player-preview-tooltip-link {
  color: #225c9c;
  font-weight: 600;
  text-decoration: none;
}

.player-preview-tooltip-link:hover,
.player-preview-tooltip-link:focus-visible {
  text-decoration: underline;
}

.players-page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.players-page-meta {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  color: #746b5d;
  font-size: 0.82rem;
}

.player-detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.player-detail-hero-copy {
  display: grid;
  gap: 0.45rem;
}

.player-page {
  width: min(1540px, calc(100vw - 2.4rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.player-spotlight {
  display: block;
  padding: 1.2rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgb(215 168 73 / 0.18), transparent 28%),
    linear-gradient(180deg, rgb(255 252 245 / 0.98), rgb(244 236 219 / 0.98));
  border: 1px solid rgb(214 198 167 / 0.9);
  box-shadow: 0 18px 42px rgb(64 49 28 / 0.08);
}

.player-spotlight-hero {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  max-width: 30rem;
}

.player-spotlight-meta {
  margin: 0;
  color: #7f7159;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.player-spotlight-name-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  flex-wrap: wrap;
}

.player-spotlight-team-logo {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.player-spotlight-name {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #2a241c;
  flex: 0 1 auto;
}

.player-spotlight-position-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.7rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #d9c59b;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7e8 0%, #f1e0bd 100%);
  color: #72561f;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-spotlight-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0;
  color: #675f53;
  font-size: 1rem;
}

.player-spotlight-copy {
  max-width: 60ch;
  margin: 0;
  color: #4b453c;
  font-size: 1rem;
  line-height: 1.55;
}

.player-spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-spotlight-badge-warning {
  background: #f5e1d9;
  color: #8b402c;
}

.player-spotlight-total {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e8dfcf;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0 0%, #f4ede0 100%);
  color: #2a241c;
}

.player-spotlight-total-label {
  display: block;
  color: #746b5d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-spotlight-total-score {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
  letter-spacing: -0.03em;
}

.player-spotlight-total-source {
  color: #7b7062;
  font-size: 0.76rem;
}

.player-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
  width: 100%;
}

.player-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  appearance: none;
  box-shadow: 0 8px 18px rgb(31 21 16 / 0.14);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.player-link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgb(31 21 16 / 0.18);
  filter: saturate(1.05);
}

.player-link-button:focus-visible {
  outline: 2px solid rgb(31 42 42 / 0.35);
  outline-offset: 2px;
}

.player-link-button-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
}

.player-link-button-mark-yahoo {
  background: rgb(255 255 255 / 0.18);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.player-link-button-mark-mlb {
  width: 1.55rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: rgb(255 255 255 / 0.12);
  padding: 0.1rem 0.14rem;
}

.player-link-button-mark-mlb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-link-button-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.player-link-button-yahoo {
  background: linear-gradient(135deg, #720e9e 0%, #6001d2 45%, #4d0a91 100%);
  border-color: rgb(96 1 210 / 0.7);
  box-shadow: 0 8px 18px rgb(96 1 210 / 0.3);
  color: #fff;
}

.player-link-button-savant {
  background:
    linear-gradient(135deg, rgb(4 34 76 / 0.98), rgb(7 63 132 / 0.96) 58%, rgb(194 48 43 / 0.92) 100%);
  border-color: rgb(12 53 110 / 0.62);
  box-shadow: 0 8px 18px rgb(8 44 102 / 0.24);
  color: #fff;
}

.player-alert-panel {
  border-color: #e4c8bb;
  background: linear-gradient(180deg, #fff9f7 0%, #fff0eb 100%);
}

.player-layout-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
  grid-auto-flow: dense;
}

.player-layout-grid > turbo-frame {
  display: block;
  min-width: 0;
}

.player-card-column-item {
  display: grid;
  grid-column: span 4;
  min-width: 0;
}

.player-grid-span-2 {
  grid-column: span 6;
}

.player-card-span-3 {
  grid-column: span 3;
}

.player-card-span-4 {
  grid-column: span 4;
}

.player-card-span-2 {
  grid-column: span 2;
}

.player-card-span-6 {
  grid-column: span 6;
}

.player-card-span-8 {
  grid-column: span 8;
}

.player-card-span-12 {
  grid-column: 1 / -1;
}

.player-context-card {
  grid-column: span 4;
}

.player-surface-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 253 247 / 0.98), rgb(248 242 229 / 0.98));
  box-shadow: 0 12px 30px rgb(62 47 25 / 0.05);
}

.player-frame-shell {
  min-height: 100%;
}

.player-frame-skeleton-lines {
  display: grid;
  gap: 0.55rem;
}

.player-frame-skeleton-lines span {
  display: block;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgb(231 223 205 / 0.8), rgb(245 240 231 / 0.95), rgb(231 223 205 / 0.8));
}

.player-frame-skeleton-value {
  min-height: 18rem;
}

.player-frame-skeleton-statcast,
.player-frame-skeleton-percentiles {
  min-height: 15rem;
}

.player-frame-skeleton-summary {
  min-height: 13rem;
}

.player-frame-skeleton-shape {
  min-height: 20rem;
}

.player-surface-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.player-surface-heading-copy {
  display: grid;
  gap: 0.15rem;
}

.player-card-title {
  margin: 0;
  color: #2c261e;
  font-size: 1rem;
  font-weight: 700;
}

.player-surface-kicker {
  margin: 0 0 0.15rem;
  color: #85735b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-surface-kicker-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.player-surface-meta {
  color: #786d60;
  font-size: 0.8rem;
  white-space: nowrap;
}

.player-surface-header-tool {
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 0 0 auto;
}

.player-surface-header-tool .table-head-info {
  position: static;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.player-surface-copy {
  margin: 0;
  color: #4f473d;
  line-height: 1.5;
}

.player-lookup-header {
  padding: 0.8rem 0.95rem;
}

.player-component-list {
  display: grid;
  gap: 0.55rem;
}

.player-component-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #eadfcb;
  border-radius: 12px;
  background: #fffdfa;
  color: #40382f;
}

.player-spray-panel {
  padding: 1rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgb(211 161 64 / 0.12), transparent 18%),
    linear-gradient(180deg, rgb(255 253 247 / 0.98), rgb(245 238 226 / 0.98));
}

.player-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.player-detail-errors,
.player-detail-list {
  margin-left: 1.25rem;
}

.player-metric-grid,
.player-detail-metric-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.7rem;
}

.player-metric-grid-compact,
.player-detail-metric-list-compact {
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

.player-metric-grid-inline,
.player-detail-metric-list-inline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.25rem, 1fr);
  grid-template-columns: none;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.player-metric-grid-inline::-webkit-scrollbar,
.player-detail-metric-list-inline::-webkit-scrollbar {
  display: none;
}

.player-detail-metric-tile,
.player-detail-metric-list div {
  position: relative;
  border: 1px solid #e8dfcf;
  border-radius: 10px;
  background: #fff;
  padding: 0.65rem 2.35rem 0.65rem 0.75rem;
}

.player-detail-metric-tile dt,
.player-detail-metric-list dt {
  color: #746b5d;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-metric-term {
  display: block;
  padding-right: 0.25rem;
}

.player-detail-metric-tile dd,
.player-detail-metric-list dd {
  margin: 0.2rem 0 0;
  color: #2f2a23;
  font-size: 0.95rem;
  font-weight: 600;
}

.player-statcast-subsection {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgb(226 214 192 / 0.8);
}

.player-statcast-subsection-title {
  margin: 0;
  color: #6f6557;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-season-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.9rem;
}

.player-season-toolbar-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.player-season-toolbar-group-inline {
  margin-bottom: 0.2rem;
}

.player-season-toolbar-label,
.player-season-toolbar-note {
  margin: 0;
  color: #675f53;
  font-size: 0.84rem;
}

.player-season-toolbar-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-season-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-season-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid #ddcfb0;
  border-radius: 999px;
  background: #fffaf1;
  color: #5b5246;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.player-season-chip.is-active {
  border-color: #1f2a2a;
  background: #1f2a2a;
  color: #fff7eb;
}

.player-value-total {
  margin-bottom: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e8dfcf;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffaf0 0%, #f4ede0 100%);
}

.player-value-total-label {
  display: block;
  color: #746b5d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-value-total-score {
  display: block;
  margin-top: 0.2rem;
  color: #2f2a23;
  font-size: 1.12rem;
  line-height: 1;
}

.player-value-deltas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 0.5rem;
}

.player-value-delta,
.player-detail-metric-tile {
  position: relative;
  display: grid;
  align-content: space-between;
  padding: 0.55rem 2.2rem 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #e8dfcf;
  background: #fff;
}

.player-value-delta dt,
.player-detail-metric-tile dt {
  color: #746b5d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.player-value-delta dd,
.player-detail-metric-tile dd {
  margin: 0.12rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.player-frame-valuation .player-value-total {
  margin-bottom: 0.45rem;
}

.player-frame-valuation .player-value-delta dd {
  font-size: 0.8rem;
}

.player-value-delta-positive,
.player-detail-metric-tile-positive {
  background: #effaf4;
  border-color: #c4ead2;
}

.player-value-delta-positive dd,
.player-detail-metric-tile-positive dd {
  color: #1f7a45;
}

.player-value-delta-negative,
.player-detail-metric-tile-negative {
  background: #fff1f1;
  border-color: #f0cccc;
}

.player-value-delta-negative dd,
.player-detail-metric-tile-negative dd {
  color: #b7472a;
}

.player-value-delta-neutral,
.player-detail-metric-tile-neutral {
  background: #f7f3eb;
}

.player-detail-metric-tile .table-head-info,
.player-value-delta .table-head-info,
.player-detail-metric-list div .table-head-info {
  position: absolute;
  top: 0.62rem;
  right: 0.62rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  margin-left: 0;
}

.player-detail-metric-tile .table-head-info-trigger,
.player-value-delta .table-head-info-trigger,
.player-detail-metric-list div .table-head-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.player-disclosure-grid {
  align-items: start;
}

.player-disclosure-card {
  align-self: start;
  position: relative;
  overflow: visible;
}

.player-disclosure-summary {
  display: grid;
  gap: 0.15rem;
}

.player-disclosure-summary::-webkit-details-marker {
  display: none;
}

.player-disclosure-title {
  color: #2f2a23;
  font-size: 1rem;
  font-weight: 700;
}

.player-disclosure-meta {
  color: #746b5d;
  font-size: 0.8rem;
}

.player-disclosure-card .collapsible-body {
  overflow: visible;
}

.table-head-info {
  position: relative;
  z-index: 30;
}

.table-head-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  box-shadow: none;
  line-height: 1;
  color: #6d665b;
}

.player-percentile-list {
  display: grid;
  gap: 0.7rem;
}

.player-percentile-row {
  display: grid;
  gap: 0.35rem;
}

.player-percentile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: #2f2a23;
  font-size: 0.9rem;
  font-weight: 600;
}

.player-percentile-bar {
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe8de;
}

.player-percentile-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f7a45 0%, #57b86e 100%);
}

.player-spray-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.85rem;
  border: 1px solid #e8dfcf;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7f3eb 0%, #fff 100%);
  padding: 0.85rem;
  overflow: hidden;
}

.player-spray-chart {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
}

.player-spray-field-line,
.player-spray-field-arc {
  fill: none;
  stroke: #d7cab5;
  stroke-width: 3;
}

.player-spray-home-plate {
  fill: #e8dfcf;
}

.player-spray-point {
  opacity: 0.86;
}

.player-spray-point-ball-in-play {
  fill: #8e7f69;
}

.player-spray-point-extra-base {
  fill: #c98a25;
}

.player-spray-point-home-run {
  fill: #b7472a;
}

.player-spray-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-batted-ball-supporting {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.player-batted-ball-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.player-batted-ball-grid.is-primary-only {
  grid-template-columns: 1fr;
}

.player-batted-ball-sidebar {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.player-batted-ball-primary {
  display: flex;
  min-height: 0;
}

.player-batted-ball-notes {
  display: grid;
  align-content: start;
  min-height: 100%;
  padding: 0.85rem;
  border: 1px dashed #d8c8a8;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf1 0%, #f6efdf 100%);
}

.player-pitcher-stack {
  display: grid;
  gap: 0.75rem;
}

.player-pitcher-section {
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e8dfcf;
  border-radius: 12px;
  background: rgb(255 252 246 / 0.88);
}

.player-pitcher-section-title {
  margin: 0;
  color: #6f624e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.player-pitcher-notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.player-pitcher-board {
  display: grid;
  gap: 0.8rem;
  width: 100%;
  min-height: 100%;
  padding: 0.9rem;
  border: 1px solid #decfb2;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgb(29 93 122 / 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgb(193 85 52 / 0.12), transparent 24%),
    linear-gradient(180deg, #fffdf7 0%, #f7f0e2 100%);
}

.player-pitcher-hero {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0.8rem;
}

.player-pitcher-hero-copy {
  display: grid;
  gap: 0.18rem;
}

.player-pitcher-hero-label {
  margin: 0;
  color: #6f624e;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.player-pitcher-hero-title {
  margin: 0;
  color: #24303a;
  font-size: 1.3rem;
  line-height: 1.05;
}

.player-pitcher-hero-copy-text {
  margin: 0;
  color: #5a5248;
  font-size: 0.86rem;
  line-height: 1.4;
}

.player-pitcher-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.player-pitcher-stat-chip,
.player-pitcher-footer-chip {
  display: grid;
  gap: 0.12rem;
  min-width: 5.1rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgb(219 205 179 / 0.95);
  border-radius: 12px;
  background: rgb(255 251 244 / 0.92);
}

.player-pitcher-stat-chip-label,
.player-pitcher-footer-chip-label {
  color: #7a6e5d;
  font-size: 0.68rem;
  font-weight: 700;
}

.player-pitcher-stat-chip-value,
.player-pitcher-footer-chip-value {
  color: #21303c;
  font-size: 0.84rem;
  font-weight: 700;
}

.player-pitcher-visual-wrap {
  min-height: min(43vh, 24rem);
  padding: 0.6rem;
  border: 1px solid rgb(218 205 181 / 0.95);
  border-radius: 16px;
  background: linear-gradient(180deg, rgb(250 246 237 / 0.95), rgb(255 255 255 / 0.96));
}

.player-pitcher-radar {
  width: 100%;
  height: 100%;
}

.player-pitcher-radar-ring {
  fill: none;
  stroke: rgb(205 192 165 / 0.7);
  stroke-width: 1;
}

.player-pitcher-radar-axis {
  stroke: rgb(189 176 151 / 0.8);
  stroke-width: 1;
}

.player-pitcher-radar-label {
  fill: #6b6052;
  font-size: 13px;
  font-weight: 700;
}

.player-pitcher-radar-shape {
  fill: rgb(31 86 129 / 0.22);
  stroke: #1f5681;
  stroke-width: 2.2;
}

.player-pitcher-radar-point {
  fill: #c15734;
  stroke: #fffaf0;
  stroke-width: 2;
}

.player-pitcher-radar-core {
  fill: #23303a;
  stroke: rgb(221 198 150 / 0.85);
  stroke-width: 2;
}

.player-pitcher-radar-core-label {
  fill: #fff8ea;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.player-pitcher-radar-core-subtitle {
  fill: rgb(237 222 191 / 0.88);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-pitcher-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.widget-list.dense {
  gap: 0.45rem;
}

.widget-list.dense li {
  padding: 0.38rem 0.52rem;
  border-radius: 10px;
}

.widget-list.dense strong,
.widget-list.dense span,
.widget-list.dense small {
  line-height: 1.2;
}

.widget-list small,
.widget-stats small {
  display: block;
  color: #655e51;
}

.widget-stats {
  text-align: right;
}

.widget-error {
  margin: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: #fff0eb;
  color: #8a2f1a;
  border: 1px solid #e6b3a6;
}

.widget-error-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.widget-error-row form {
  margin: 0;
}

.scoreboard-shell {
  display: grid;
  gap: 1.2rem;
}

.scoreboard-frame,
.scoreboard-toolbar {
  display: grid;
  gap: 1rem;
}

.scoreboard-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.dashboard-fantasy-frame {
  display: grid;
  gap: 1rem;
}

.scoreboard-mobile-shell {
  display: none;
  gap: 1rem;
}

.scoreboard-mobile-tablist {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.scoreboard-mobile-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  appearance: none;
  border: 1px solid #dccfb8;
  border-radius: 999px;
  background: #f8f1e4;
  color: #4d453a;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.scoreboard-mobile-tab-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.scoreboard-mobile-tab-emoji {
  font-size: 0.95rem;
  line-height: 1;
  flex: 0 0 auto;
}

.scoreboard-mobile-tab.is-active {
  background: #2e5f75;
  border-color: #2e5f75;
  color: #fffaf0;
}

.scoreboard-mobile-panel {
  display: grid;
  gap: 1rem;
}

.scoreboard-fantasy-shell,
.scoreboard-board-shell {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.scoreboard-surface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.scoreboard-command-center {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: start;
}

.scoreboard-command-main {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.scoreboard-overview-header {
  display: grid;
  gap: 0.35rem;
}

.scoreboard-overview-copy,
.scoreboard-board-copy,
.scoreboard-console-copy,
.scoreboard-console-hint {
  margin: 0;
  color: #6a6256;
}

.scoreboard-overview-copy,
.scoreboard-console-hint {
  font-size: 0.92rem;
  line-height: 1.45;
}

.scoreboard-console {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 252 245 / 0.96), rgb(245 236 219 / 0.98)),
    linear-gradient(135deg, #fff 0%, #ead7b6 100%);
  box-shadow: 0 14px 36px rgb(39 31 22 / 0.08);
}

.scoreboard-console-header {
  display: grid;
  gap: 0.3rem;
}

.scoreboard-console-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2e281f;
}

.scoreboard-console-copy {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scoreboard-console-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.scoreboard-console-metric {
  display: grid;
  gap: 0.22rem;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid #dfd1ba;
  background: rgb(255 255 255 / 0.72);
}

.scoreboard-console-metric.is-live {
  border-color: #cadfcb;
  background: linear-gradient(180deg, #f9fdf9, #edf6ee);
}

.scoreboard-console-metric.is-scheduled {
  border-color: #d9d1c0;
  background: linear-gradient(180deg, #fffdf8, #f6f0e5);
}

.scoreboard-console-metric-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a6d5c;
}

.scoreboard-console-metric-value {
  font-size: 1.5rem;
  line-height: 1;
  color: #2f2921;
}

.scoreboard-board-section {
  display: grid;
  gap: 0.9rem;
}

.scoreboard-board-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.scoreboard-board-heading {
  display: grid;
  gap: 0.25rem;
}

.scoreboard-board-copy {
  font-size: 0.94rem;
  line-height: 1.4;
}

.scoreboard-board-toolbar {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid #ddd1bf;
  background: linear-gradient(180deg, rgb(255 252 246 / 0.94), rgb(247 240 227 / 0.96));
}

.scoreboard-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.scoreboard-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  appearance: none;
  border: 1px solid #d8ccb8;
  background: rgb(255 255 255 / 0.75);
  color: #5f564a;
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.scoreboard-filter-chip-label {
  white-space: nowrap;
}

.scoreboard-filter-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  background: rgb(95 86 74 / 0.08);
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1;
}

.scoreboard-filter-chip:hover,
.scoreboard-filter-chip:focus-visible {
  border-color: #c5a56f;
  color: #4f3a1c;
  outline: none;
}

.scoreboard-filter-chip.is-active {
  border-color: #b58743;
  background: linear-gradient(180deg, #fbf0da, #f2deba);
  color: #4f3716;
}

.scoreboard-filter-chip.is-active .scoreboard-filter-chip-count {
  background: rgb(79 55 22 / 0.12);
}

.scoreboard-filter-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.scoreboard-sort-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #736958;
  margin-right: 0.2rem;
}

.scoreboard-sort-chip {
  min-height: 2rem;
}

.scoreboard-filter-chip-toggle input {
  margin: 0;
}

.scoreboard-refresh-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid #ddd2bf;
  background: rgb(255 255 255 / 0.72);
  color: #6f6658;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scoreboard-refresh-status.is-refreshing {
  border-color: #e0b36f;
  color: #8d5610;
}

.scoreboard-refresh-indicator {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #8d8476;
  opacity: 0.7;
}

.scoreboard-refresh-indicator.is-refreshing {
  background: #bc7a17;
  opacity: 1;
}

.scoreboard-status-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.scoreboard-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.scoreboard-date-select-form {
  display: none;
  margin: 0;
}

.scoreboard-date-select-label {
  display: grid;
  gap: 0.35rem;
}

.scoreboard-date-select-label span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scoreboard-date-select {
  width: 100%;
  appearance: none;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(246 237 220 / 0.96)),
    linear-gradient(135deg, #fff 0%, #efe2c8 100%);
  border: 1px solid #d5c6a7;
  box-shadow: 0 4px 14px rgb(46 35 21 / 0.08);
  color: #4f4638;
  font-weight: 600;
  padding-right: 2.5rem;
}

.scoreboard-date-chip {
  display: grid;
  gap: 0.1rem;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  border: 1px solid #ddd2bf;
  background: rgb(255 255 255 / 0.72);
  color: #6b6457;
  text-align: center;
  text-decoration: none;
}

.scoreboard-date-chip:hover {
  border-color: #cdbb9d;
  background: rgb(255 255 255 / 0.92);
  color: #493f32;
}

.scoreboard-date-chip.is-selected {
  border-color: #b78f52;
  background: #f7e8c9;
  color: #5f4218;
}

.scoreboard-date-chip-day {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.scoreboard-date-chip-date {
  font-size: 0.85rem;
  font-weight: 600;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.scoreboard-section-title {
  margin: 0;
  color: #2b2a24;
}

.scoreboard-section-title-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.2rem 0;
}

.scoreboard-section-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  flex: 0 0 auto;
}

.scoreboard-section-title-icon.is-fantasy {
  width: 1.55rem;
  height: 1.55rem;
}

.scoreboard-section-svg {
  width: 1.2rem;
  height: 1.2rem;
}

.scoreboard-section-title-text {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2f2a22;
}

.scoreboard-section-title-mlb {
  margin-top: 0.5rem;
}

.scoreboard-date-strip {
  margin-top: 0.15rem;
  margin-bottom: 0.75rem;
}

.scoreboard-date-picker {
  margin-bottom: 0;
}

.scoreboard-date-panel {
  display: grid;
  gap: 0.7rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.54);
}

.scoreboard-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  color: #5e564b;
  font-size: 0.84rem;
  font-weight: 600;
}

.scoreboard-filter-toggle input {
  margin: 0;
}

.scoreboard-date-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.35rem;
}

.scoreboard-date-summary::-webkit-details-marker {
  display: none;
}

.scoreboard-date-summary-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #2f2a22;
}

.scoreboard-date-summary-value {
  margin-left: auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.82rem;
  color: #6a6256;
}

.scoreboard-date-summary-arrow {
  position: absolute;
  right: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  color: #8b7f70;
  transition: transform 120ms ease;
  transform: rotate(-90deg);
}

.scoreboard-date-panel[open] > .scoreboard-date-summary .scoreboard-date-summary-arrow {
  transform: rotate(0deg);
}

.scoreboard-yahoo-section {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.scoreboard-yahoo-section.is-compact-league-widget {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 14rem);
  align-items: start;
}

.scoreboard-yahoo-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  align-content: start;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgb(255 252 246 / 0.96), rgb(248 241 229 / 0.98)),
    linear-gradient(135deg, #fff 0%, #eee2cb 100%);
  box-shadow: 0 10px 28px rgb(39 30 21 / 0.06);
}

.scoreboard-yahoo-week {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  color: #6a6256;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scoreboard-yahoo-matchup,
.scoreboard-yahoo-meta {
  margin: 0;
}

.scoreboard-yahoo-matchup {
  font-size: 1rem;
  line-height: 1.35;
}

.scoreboard-yahoo-matchup-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  min-width: 0;
  padding: 0.15rem 0 0;
}

.scoreboard-yahoo-matchup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.1rem 0 0.25rem;
}

.scoreboard-yahoo-matchup-team h3,
.scoreboard-yahoo-matchup-team p,
.scoreboard-yahoo-matchup-center p {
  margin: 0;
}

.scoreboard-yahoo-matchup-team,
.scoreboard-yahoo-matchup-center,
.scoreboard-yahoo-mini-team,
.scoreboard-yahoo-mini-center {
  min-width: 0;
}

.scoreboard-yahoo-matchup-team h3 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.scoreboard-yahoo-matchup-team h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}

.scoreboard-yahoo-matchup-team p {
  color: #6a6256;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.2;
}

.scoreboard-yahoo-matchup-team-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.4rem;
}

.scoreboard-yahoo-matchup-record-current,
.scoreboard-yahoo-matchup-record-projected {
  white-space: nowrap;
}

.scoreboard-yahoo-matchup-team-opponent {
  text-align: right;
}

.scoreboard-yahoo-matchup-record-projected {
  color: #867a68;
}

.scoreboard-yahoo-matchup-record-projected::before {
  content: "(";
}

.scoreboard-yahoo-matchup-record-projected::after {
  content: ")";
}

.scoreboard-yahoo-matchup-center {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
}

.scoreboard-yahoo-matchup-total {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #ddcfb8;
  background: linear-gradient(180deg, #fffdfa, #f7edda);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.scoreboard-yahoo-matchup-total small {
  font-size: 1em;
  color: #5e564b;
}

.scoreboard-yahoo-table-wrap {
  max-width: 100%;
  overflow-x: clip;
}

.scoreboard-yahoo-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2dacb;
  border-radius: 12px;
  overflow: hidden;
}

.scoreboard-yahoo-table th,
.scoreboard-yahoo-table td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid #ece4d6;
  text-align: center;
  overflow-wrap: anywhere;
}

.scoreboard-yahoo-table thead th {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a6256;
  background: #f4efe4;
  white-space: nowrap;
}

.scoreboard-yahoo-table tbody th {
  font-size: 0.95rem;
  font-weight: 700;
  background: #fbf8f0;
}

.scoreboard-yahoo-table-row-icon {
  width: 2.75rem;
  min-width: 2.75rem;
  text-align: center !important;
  padding-inline: 0.4rem !important;
}

.scoreboard-yahoo-team-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 auto;
}

.scoreboard-yahoo-team-marker-ball {
  font-size: 1rem;
  line-height: 1;
}

.scoreboard-yahoo-table tbody tr:last-child th,
.scoreboard-yahoo-table tbody tr:last-child td {
  border-bottom: 0;
}

.scoreboard-yahoo-table-value {
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.scoreboard-yahoo-table-value.is-win {
  background: #edf8f0;
}

.scoreboard-yahoo-table-score {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.scoreboard-yahoo-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.scoreboard-yahoo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d7cfbf;
  background: #fff;
  color: #6a6256;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scoreboard-yahoo-scoreline {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
}

.scoreboard-yahoo-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.scoreboard-yahoo-category {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid #ded6c8;
  background: #fff;
}

.scoreboard-yahoo-category.is-win {
  border-color: #b7d4c5;
  background: #f4fbf6;
}

.scoreboard-yahoo-category.is-loss {
  border-color: #e7c2c2;
  background: #fff6f6;
}

.scoreboard-yahoo-category-name {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a6256;
}

.scoreboard-yahoo-category-values {
  font-size: 0.88rem;
  font-weight: 700;
}

.scoreboard-yahoo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.scoreboard-yahoo-list li {
  display: block;
  padding: 0;
  border-bottom: 0;
}

.scoreboard-yahoo-league-grid {
  grid-template-columns: repeat(auto-fit, minmax(33rem, 1fr));
  gap: 0.6rem;
}

.scoreboard-yahoo-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.scoreboard-yahoo-matchup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 14px;
  border: 1px solid #ddd4c4;
  background: linear-gradient(180deg, #fffdf8, #fbf6eb);
  box-shadow: 0 4px 14px rgb(34 29 23 / 0.05);
}

.scoreboard-yahoo-matchup-side {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  align-content: center;
}

.scoreboard-yahoo-matchup-side.is-right {
  text-align: right;
}

.scoreboard-yahoo-matchup-name,
.scoreboard-yahoo-matchup-scoreline {
  margin: 0;
}

.scoreboard-yahoo-matchup-name {
  font-size: 0.96rem;
  line-height: 1.15;
  font-weight: 700;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.scoreboard-yahoo-matchup-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem 0.38rem;
  margin: 0;
  color: #6a6256;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.64rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.scoreboard-yahoo-matchup-side.is-right .scoreboard-yahoo-matchup-meta {
  justify-self: end;
}

.scoreboard-yahoo-matchup-record {
  color: #7a7266;
  white-space: nowrap;
}

.scoreboard-yahoo-matchup-projected {
  white-space: nowrap;
}

.scoreboard-yahoo-matchup-projected::before {
  content: "(";
}

.scoreboard-yahoo-matchup-projected::after {
  content: ")";
}

.scoreboard-yahoo-matchup-score {
  display: grid;
  justify-items: center;
}

.scoreboard-yahoo-matchup-scoreline {
  min-width: 4.75rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #fff8ea;
  border: 1px solid #e1d2b6;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #2d2a24;
}

.scoreboard-yahoo-list-teams,
.scoreboard-yahoo-list-meta {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: baseline;
}

.scoreboard-yahoo-list-meta {
  color: #6a6256;
  font-size: 0.82rem;
}

.scoreboard-yahoo-summary {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.35rem;
}

.scoreboard-yahoo-summary::-webkit-details-marker {
  display: none;
}

.scoreboard-yahoo-summary-title {
  font-size: 1rem;
  font-weight: 700;
}

.scoreboard-yahoo-summary-score {
  margin-left: auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  color: #2d2a24;
}

.scoreboard-yahoo-summary-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  color: #8b7f70;
  transition: transform 120ms ease;
  transform: rotate(90deg);
  position: absolute;
  right: 0;
  top: 0;
}

.scoreboard-yahoo-panel[open] > .scoreboard-yahoo-summary .scoreboard-yahoo-summary-arrow {
  transform: rotate(0deg);
}

.scoreboard-yahoo-my-matchup-panel[open] > .scoreboard-yahoo-summary .scoreboard-yahoo-summary-score {
  display: none;
}

.scoreboard-yahoo-league-panel[open] {
  gap: 0.85rem;
}

.scoreboard-yahoo-summary-score-compact {
  margin-left: auto;
  font-size: 0.72rem;
  color: #6a6256;
}

.scoreboard-yahoo-section.is-compact-league-widget .scoreboard-yahoo-league-panel {
  align-content: start;
  padding: 0.72rem 0.8rem;
}

.scoreboard-yahoo-section.is-compact-league-widget .scoreboard-yahoo-league-grid {
  grid-template-columns: 1fr;
}

.scoreboard-yahoo-section.is-compact-league-widget .scoreboard-yahoo-matchup-row {
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 0.55rem 0.6rem;
}

.scoreboard-yahoo-section.is-compact-league-widget .scoreboard-yahoo-matchup-side.is-right {
  text-align: left;
}

@media (min-width: calc(56rem + 0.01rem)) {
  .scoreboard-fantasy-shell {
    position: sticky;
    top: 1rem;
    align-content: start;
  }

  .scoreboard-yahoo-section {
    gap: 0.8rem;
  }

  .scoreboard-yahoo-section.is-compact-league-widget {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 14rem);
  }

  .scoreboard-yahoo-panel {
    height: auto;
  }

  .scoreboard-yahoo-league-panel[open] {
    gap: 0.7rem;
  }

  .scoreboard-yahoo-league-grid {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .scoreboard-yahoo-matchup-row {
    padding: 0.72rem 0.8rem;
  }

  .scoreboard-yahoo-matchup-card {
    gap: 0.9rem;
  }

  .scoreboard-yahoo-matchup-hero {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem;
    padding-bottom: 0;
  }

  .scoreboard-yahoo-matchup-center {
    justify-items: center;
    padding-top: 0.1rem;
  }

  .scoreboard-yahoo-matchup-team-opponent {
    text-align: right;
  }

  .scoreboard-yahoo-matchup-team h3 {
    font-size: 1.12rem;
  }

  .scoreboard-yahoo-matchup-team p {
    font-size: 0.66rem;
  }

  .scoreboard-yahoo-matchup-total {
    padding: 0.42rem 0.58rem;
    font-size: 1.18rem;
  }

  .scoreboard-yahoo-table th,
  .scoreboard-yahoo-table td {
    padding: 0.62rem 0.45rem;
    font-size: 0.78rem;
  }

  .scoreboard-yahoo-table thead th {
    font-size: 0.58rem;
  }
}

@media (min-width: calc(56rem + 0.01rem)) and (max-width: 1199px) {
  .scoreboard-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .scoreboard-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  }

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

.scorebug-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 0.95rem 1rem;
  width: 100%;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(247 241 230 / 0.96)),
    linear-gradient(135deg, #fff 0%, #f0e6d4 100%);
  border: 1px solid #d8cfbe;
  box-shadow: 0 8px 24px rgb(40 33 26 / 0.08);
  margin: 0 0 1rem;
}

.scorebug-topline {
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  align-items: center;
  height: 1.9rem;
}

.scorebug-status-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.scorebug-status-badge,
.scorebug-total-badge,
.scorebug-badge {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.scorebug-total-badge {
  margin-left: auto;
}

.scorebug-status-badge-postponed {
  border-color: #d7b14a;
  background: linear-gradient(180deg, rgb(123 84 13 / 0.92), rgb(89 60 8 / 0.96));
  color: #fff4cf;
  box-shadow: inset 0 1px 0 rgb(255 240 194 / 0.18);
}

.scorebug-inning {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.8rem;
  color: #5d564a;
}

.scorebug-stage {
  border-radius: 14px;
  background: #1b2323;
  color: #f6f3ea;
}

.scorebug-stage-shell {
  display: grid;
  gap: 0;
}

.scorebug-stage.has-detail {
  border-radius: 14px 14px 0 0;
}

.scorebug-stage.is-live {
  padding-bottom: 0.15rem;
  overflow: hidden;
}

.scorebug-scoreline {
  display: grid;
  gap: 0.45rem;
  min-height: 4rem;
  align-content: start;
  padding: 15px;
  color: #f6f3ea;
}

.scorebug-probables {
  display: grid;
  gap: 0.15rem;
  padding: 0 15px 13px;
  color: #f6f3ea;
}

.scorebug-probable-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.5rem;
}

.scorebug-probable-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scorebug-probable-name {
  min-width: 0;
  font-size: 0.8rem;
  color: #f7f1e4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebug-team-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.scorebug-team-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  line-height: 1;
}

.scorebug-team-star {
  padding: 0;
  border: 0;
  background: transparent;
  color: #8f8573;
  font-size: 1rem;
  line-height: 1;
}

.scorebug-team-star.is-active {
  color: #bc7a17;
}

.scorebug-team-star:hover {
  color: #8d5610;
}

.scorebug-team-abbr {
  display: inline-flex;
  align-items: center;
  font-family: "Doto", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.scorebug-team-name-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  flex: 1 1 auto;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 82%, transparent 100%);
}

.scorebug-team-name {
  display: inline-flex;
  align-items: center;
  font-family: "Doto", "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: #d7d1c5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1;
}

.scorebug-team-score {
  min-width: 1.5rem;
  text-align: right;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.scorebug-matchup-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.scorebug-boxscore-disclosure {
  display: grid;
  gap: 0.4rem;
}

.scorebug-boxscore-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.scorebug-boxscore-summary::-webkit-details-marker {
  display: none;
}

.scorebug-boxscore-summary::after {
  content: "Show";
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a6c58;
}

.scorebug-boxscore-disclosure[open] .scorebug-boxscore-summary::after {
  content: "Hide";
}

.scorebug-boxscore-players {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
}

.scorebug-boxscore-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  padding: 0.08rem 0;
}

.scorebug-boxscore-player-team {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
  line-height: 1;
  min-width: 1.8rem;
  text-align: center;
}

.scorebug-boxscore-player-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2f2920;
  line-height: 1.15;
}

.scorebug-boxscore-player-pos {
  flex: 0 0 auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  color: #776c5d;
  line-height: 1;
}

.scorebug-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: start;
}

.scorebug-external-links-column {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-content: flex-start;
  min-width: 0;
}

.scorebug-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: #8d5610;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.15;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e2d6c0;
  background: linear-gradient(180deg, #fffaf0, #f8f0e0);
  box-shadow: 0 1px 2px rgb(49 40 28 / 0.06);
  max-width: 100%;
}

.scorebug-external-link-icon {
  flex: 0 0 auto;
}

.scorebug-external-link-label {
  display: inline-block;
  min-width: 0;
  overflow-wrap: normal;
  white-space: nowrap;
}

@media (max-width: 659px) {
  .scorebug-external-links {
    gap: 0.3rem 0.38rem;
  }

  .scorebug-external-link {
    font-size: 0.74rem;
  }
}

.scorebug-external-link:hover,
.scorebug-external-link:focus-visible {
  color: #6f430b;
  text-decoration: none;
  border-color: #cfb68c;
  background: linear-gradient(180deg, #fff8eb, #f4e6c8);
}

.scorebug-live-panel {
  display: grid;
  gap: 0.75rem;
  padding: 0.1rem 0.95rem 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  color: #f6f3ea;
}

.scorebug-live-inning {
  margin: 0;
  font-family: "Doto", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f3e7d0;
  line-height: 1;
  padding-top: 0.08rem;
}

.scorebug-live-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.scorebug-live-scoreboard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.scorebug-live-countboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.9rem;
  width: 100%;
}

.scorebug-live-metric {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  justify-items: center;
}

.scorebug-live-metric-label {
  font-family: "Doto", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4baa9;
}

.scorebug-live-metric-value {
  font-family: "Doto", "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

.scorebug-live-lights {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 0.9rem;
}

.scorebug-live-light {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.scorebug-live-lights-balls .scorebug-live-light.is-on {
  border-color: #49c86c;
  background: #49c86c;
  box-shadow: 0 0 8px rgb(73 200 108 / 0.55);
}

.scorebug-live-lights-strikes .scorebug-live-light.is-on {
  border-color: #f1c34c;
  background: #f1c34c;
  box-shadow: 0 0 8px rgb(241 195 76 / 0.52);
}

.scorebug-live-lights-outs .scorebug-live-light.is-on {
  border-color: #f06464;
  background: #f06464;
  box-shadow: 0 0 8px rgb(240 100 100 / 0.5);
}

.scorebug-live-bases {
  position: relative;
  width: 3.4rem;
  height: 2.9rem;
  margin-top: 10px;
}

.scorebug-live-base {
  position: absolute;
  width: 0.92rem;
  height: 0.92rem;
  transform: rotate(45deg);
  border-radius: 2px;
  border: 1px solid #a79982;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08);
}

.scorebug-live-base.is-occupied {
  border-color: #efc766;
  background: linear-gradient(180deg, #f7d987, #c48a22);
  box-shadow:
    0 0 10px rgb(231 178 58 / 0.22),
    inset 0 1px 0 rgb(255 255 255 / 0.3);
}

.scorebug-live-base-second {
  top: 0.18rem;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  margin-left: 0;
}

.scorebug-live-base-third {
  left: 0.28rem;
  top: 1.26rem;
}

.scorebug-live-base-first {
  right: 0.28rem;
  top: 1.26rem;
}

.scorebug-live-matchup {
  display: grid;
  gap: 0.18rem;
}

.scorebug-live-matchup-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.84rem;
  line-height: 1.35;
}

.scorebug-live-label {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c4baa9;
}

.scorebug-live-player {
  color: #fff9ef;
}

.scorebug-matchup-header {
  padding: 0 0.65rem 0.5rem 0;
  border-bottom: 1px solid #e1d8c7;
  text-align: left;
  vertical-align: bottom;
  font-size: 0.92rem;
  font-weight: 600;
}

.scorebug-matchup-header:last-child {
  padding-right: 0;
  padding-left: 0.65rem;
}

.scorebug-matchup-cell {
  width: 50%;
  padding: 0.55rem 0.65rem 0 0;
  vertical-align: top;
}

.scorebug-matchup-cell:last-child {
  padding-right: 0;
  padding-left: 0.65rem;
}

.scorebug-boxscore {
  display: grid;
  gap: 0.45rem;
}

.scorebug-boxscore-group {
  display: grid;
  gap: 0.12rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dotted #ddd2bf;
}

.scorebug-boxscore-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.scorebug-boxscore-label {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6f6658;
  font-weight: 700;
}

.scorebug-boxscore-count {
  color: #2f2a22;
}

.scorebug-boxscore-players {
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
}

.scorebug-boxscore-player-name {
  font-weight: 600;
}

.scorebug-boxscore-player {
}

.scorebug-boxscore-player-pos {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.68rem;
  color: #837a6b;
  min-width: 1.5rem;
  text-align: left;
}

.scorebug-boxscore-empty {
  color: #857c6d;
}

.scorebug-boxscore-row-success .scorebug-boxscore-label {
  color: #17543b;
}

.scorebug-boxscore-row-warning .scorebug-boxscore-label {
  color: #8b560d;
}

.scorebug-boxscore-row-secondary .scorebug-boxscore-label,
.scorebug-boxscore-row-outline .scorebug-boxscore-label {
  color: #5d564a;
}

.scorebug-boxscore-players > .scorebug-boxscore-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  padding: 0.08rem 0;
}

.scorebug-boxscore-players > .scorebug-boxscore-player > .scorebug-boxscore-player-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #2f2920;
  opacity: 1;
  visibility: visible;
}

.scorebug-inline-detail-container[hidden] {
  display: none;
}

.scorebug-inline-detail-container {
  display: block;
}

.scorebug-detail-stage {
  margin-top: -0.2rem;
  margin-bottom: 0;
  border-radius: 0;
  overflow: visible;
}

@media (max-width: 1199px) {
  .scoreboard-command-center {
    grid-template-columns: 1fr;
  }

  .scoreboard-board-header {
    align-items: start;
    flex-direction: column;
  }

  .scoreboard-board-pills {
    justify-content: flex-start;
  }

  .scoreboard-date-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .scoreboard-yahoo-league-grid {
    grid-template-columns: 1fr;
  }

  .scoreboard-yahoo-table th,
  .scoreboard-yahoo-table td {
    padding: 0.58rem 0.5rem;
  }

  .scoreboard-yahoo-table thead th {
    font-size: 0.68rem;
  }

  .scoreboard-yahoo-table tbody th {
    font-size: 0.88rem;
  }

  .scoreboard-yahoo-table-row-icon {
    width: 1.85rem;
    min-width: 1.85rem;
    padding-inline: 0.2rem !important;
  }

  .scoreboard-yahoo-team-marker {
    width: 0.9rem;
    height: 0.9rem;
  }

  .scoreboard-yahoo-team-marker-ball {
    font-size: 0.78rem;
  }

  .scorebug-context-name {
    white-space: normal;
  }
}

@media (max-width: 56rem) {
  .scoreboard-layout-desktop {
    display: none;
  }

  .scoreboard-mobile-shell {
    display: grid;
  }

  .scoreboard-layout {
    grid-template-columns: 1fr;
  }

  .scoreboard-fantasy-shell {
    position: static;
  }
}

@media (max-width: 659px) {
  .scoreboard-console-metrics {
    grid-template-columns: 1fr;
  }

  .scoreboard-surface-header,
  .scoreboard-board-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.empty-state {
  margin: 0;
  color: #655e51;
}

.widget-list.warnings li {
  justify-content: start;
  background: #fff8e7;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.nav-auth-button,
.nav-auth-link {
  margin: 0;
}

@media (max-width: 720px) {
  .scoreboard-date-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(4.7rem, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    margin-bottom: 0;
    scrollbar-width: none;
  }

  .scoreboard-date-strip::-webkit-scrollbar {
    display: none;
  }

  .scoreboard-date-panel {
    display: grid;
    gap: 0.6rem;
    padding: 0.72rem;
  }

  .scoreboard-date-select-form {
    display: none;
  }

  .scoreboard-date-select {
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .scoreboard-console {
    padding: 0.9rem;
  }

  .scoreboard-console-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scoreboard-board-toolbar {
    padding: 0.72rem;
    gap: 0.65rem;
  }

  .scoreboard-filter-group {
    gap: 0.38rem;
  }

  .scoreboard-filter-chip {
    padding: 0.36rem 0.58rem;
    font-size: 0.76rem;
  }

  .scoreboard-yahoo-matchup-hero {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
  }

  .scoreboard-yahoo-summary-score {
    font-size: 1.25rem;
  }

  .scoreboard-section-title-inner {
    gap: 0.55rem;
  }

  .scoreboard-section-title-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .scoreboard-section-svg {
    width: 1.05rem;
    height: 1.05rem;
  }

  .scoreboard-section-title-text {
    font-size: 1rem;
  }

  .scoreboard-yahoo-matchup-team-opponent {
    text-align: right;
  }

  .scoreboard-yahoo-matchup-center {
    justify-items: center;
  }

  .scoreboard-yahoo-matchup-total {
    padding: 0.42rem 0.56rem;
    font-size: 1.2rem;
  }

  .scoreboard-yahoo-matchup-team h3 {
    font-size: 0.95rem;
  }

  .scoreboard-yahoo-matchup-team p {
    font-size: 0.62rem;
  }

  .scoreboard-yahoo-table th,
  .scoreboard-yahoo-table td {
    padding: 0.45rem 0.32rem;
    font-size: 0.72rem;
  }

  .scoreboard-yahoo-table thead th {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }

  .scoreboard-yahoo-table-score {
    font-size: 1.1rem;
  }

  .scoreboard-yahoo-categories {
    grid-template-columns: 1fr;
  }

  .scoreboard-yahoo-matchup-row {
    padding: 0.68rem 0.72rem;
    gap: 0.65rem;
  }

  .scoreboard-yahoo-matchup-name {
    font-size: 0.8rem;
  }

  .scoreboard-yahoo-matchup-meta {
    font-size: 0.56rem;
  }

  .scoreboard-yahoo-matchup-scoreline {
    min-width: 4rem;
    font-size: 0.9rem;
  }

  .scorebug-live-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
  }

  .scorebug-live-scoreboard {
    gap: 0.55rem;
  }

  .scorebug-live-countboard {
    gap: 0.35rem;
  }

  .scorebug-live-metric {
    min-width: auto;
  }

  .scorebug-live-metric-label {
    font-size: 0.62rem;
  }

  .scorebug-live-light {
    width: 0.48rem;
    height: 0.48rem;
  }

  .scorebug-live-inning {
    font-size: 1.05rem;
  }

  .scorebug-live-bases {
    width: 2.8rem;
    height: 2.35rem;
    margin-top: 0;
  }

  .scorebug-live-base {
    width: 0.7rem;
    height: 0.7rem;
  }

  .scorebug-live-base-second {
    top: 0.04rem;
  }

  .scorebug-live-base-third {
    left: 0.12rem;
    top: 0.98rem;
  }

  .scorebug-live-base-first {
    right: 0.12rem;
    top: 0.98rem;
  }

  .dashboard-toolbar,
  .operator-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-scoreboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .widget-list li {
    display: grid;
  }

  .widget-stats {
    text-align: left;
  }
}

@media (min-width: calc(56rem + 0.01rem)) and (max-width: 1199px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-content-grid {
    column-count: 1;
  }
}

@media (min-width: calc(56rem + 0.01rem)) and (max-width: 1023.98px) {
  .dashboard-lineup-sections {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: minmax(320px, 2fr) minmax(0, 3fr);
  }

  .dashboard-content-grid {
    column-count: 2;
  }
}

@media (min-width: 1680px) {
  .dashboard-grid {
    grid-template-columns: minmax(340px, 2fr) minmax(0, 3fr);
  }
}

@media (max-width: 56rem) {
  .dashboard-grid,
  .operator-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-lineup-rail {
    position: static;
  }

  .operator-widgets-column {
    grid-template-columns: 1fr;
  }

  .dashboard-content-grid {
    column-count: 1;
  }

  .dashboard-toolbar,
  .operator-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .widget-list li {
    display: grid;
  }

  .widget-stats {
    text-align: left;
  }
}

@media (max-width: 40rem) {
  .dashboard-lineup-sections {
    grid-template-columns: 1fr;
  }
}

.assistant-chat-line,
.assistant-tool-line {
  margin: 0.35rem 0;
  padding: 0.4rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: pre-wrap;
}

.run-live-log {
  margin: 0.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem;
  background: #fff;
  min-height: 180px;
  max-height: 340px;
  overflow: auto;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.35;
}

.table-frame {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.load-more-wrap {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
}

.load-more-button {
  border-radius: 999px;
  padding: 0.58rem 1.15rem;
  min-width: 8.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}

.load-more-done {
  margin: 0;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.45rem;
}

.position-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.position-pill {
  --position-bg: #ebe8de;
  --position-fg: #1f2a2a;
  --position-border: #cbbfa6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--position-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  background: var(--position-bg);
  color: var(--position-fg);
}

.position-color-c {
  --position-bg: #e8f4ff;
  --position-fg: #083e72;
  --position-border: #6ea7d8;
}

.position-color-first {
  --position-bg: #fef3df;
  --position-fg: #6d480b;
  --position-border: #d8a453;
}

.position-color-second {
  --position-bg: #f2ecff;
  --position-fg: #4a2a84;
  --position-border: #8b73cb;
}

.position-color-third {
  --position-bg: #ffe9eb;
  --position-fg: #7b1827;
  --position-border: #d27a84;
}

.position-color-ss {
  --position-bg: #ebfff5;
  --position-fg: #0d5b3b;
  --position-border: #6cbf97;
}

.position-color-of {
  --position-bg: #e8fbff;
  --position-fg: #0f5f6e;
  --position-border: #74b8c3;
}

.position-color-util {
  --position-bg: #f1efe9;
  --position-fg: #4a4337;
  --position-border: #a99f8a;
}

.position-color-dh {
  --position-bg: #fff2f8;
  --position-fg: #7d2a5f;
  --position-border: #d28bb5;
}

.position-color-sp {
  --position-bg: #e8f0ff;
  --position-fg: #183b80;
  --position-border: #6e8fcb;
}

.position-color-rp {
  --position-bg: #eaf8f0;
  --position-fg: #1a5b38;
  --position-border: #74b293;
}

.position-color-strategy {
  --position-bg: #f7edff;
  --position-fg: #5a2a8e;
  --position-border: #a57dcf;
}

.position-color-pitcher {
  --position-bg: #edf6ff;
  --position-fg: #1f4f86;
  --position-border: #7ea8d1;
}

.position-color-all {
  --position-bg: #f0eee8;
  --position-fg: #2d2b27;
  --position-border: #9d9788;
}

pre {
  max-height: 24rem;
  overflow: auto;
  background: #f7f4eb;
  padding: 0.8rem;
  border-radius: 8px;
}

.flash {
  margin: 0.6rem 1.2rem;
  padding: 0.7rem;
  border-radius: 8px;
}

.flash.notice {
  background: #d8f5ea;
}

.flash.alert,
.error {
  background: #ffd7d7;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge-plus {
  background: #d8f5ea;
}

.badge-minus {
  background: #ffd7d7;
}

.badge-neutral {
  background: #ebe8de;
}

.table-column-head {
  min-width: 120px;
}

.table-column-head-link,
.table-column-head-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  width: 100%;
}

.table-column-head-link {
  text-decoration: none;
}

.table-column-head-link:hover {
  text-decoration: underline;
}

.table-column-head-left {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.table-column-head-sort {
  margin-left: auto;
  min-width: 1rem;
  text-align: right;
  font-size: 0.78rem;
  color: #6d665b;
  flex-shrink: 0;
}

.table-head-info {
  display: inline-flex;
  align-items: center;
  margin-left: 0.3rem;
}

.table-head-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  color: #6d665b;
}

.table-head-info-icon {
  display: inline-block;
  stroke: currentColor;
}

/* Fallback visibility rules for RubyUI tooltips in non-utility CSS contexts */
[data-controller~="ruby-ui--tooltip"] {
  position: relative;
  display: inline-flex;
  align-items: center;
}

[data-controller~="ruby-ui--tooltip"] [data-ruby-ui--tooltip-target="content"] {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  transform: translateX(-50%);
  z-index: 5000;
  max-width: min(42ch, 80vw);
  width: max-content;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
  padding: 0.45rem 0.55rem;
  line-height: 1.25;
  font-size: 0.75rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

[data-controller~="ruby-ui--tooltip"]
  [data-ruby-ui--tooltip-target="trigger"]:hover
  + [data-ruby-ui--tooltip-target="content"],
[data-controller~="ruby-ui--tooltip"]
  [data-ruby-ui--tooltip-target="trigger"]:focus-visible
  + [data-ruby-ui--tooltip-target="content"] {
  visibility: visible;
  opacity: 1;
}

.grid.two-up.dashboard-health-snippets {
  grid-template-columns: 2fr 1fr;
}

@media (max-width: 980px) {
  .grid.two-up.dashboard-health-snippets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .players-page-heading,
  .player-detail-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .players-page-meta,
  .player-detail-actions {
    justify-items: start;
    justify-content: flex-start;
  }
}

.assistant-shell {
  display: grid;
  gap: 1rem;
}

.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.assistant-header h1,
.assistant-row h2 {
  margin: 0;
}

.assistant-subtitle {
  margin: 0.35rem 0 0;
  color: #655e51;
}

.assistant-settings {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.assistant-settings label {
  min-width: 10rem;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 1rem;
  align-items: start;
}

.assistant-main,
.assistant-side {
  display: grid;
  gap: 0.85rem;
}

.assistant-main {
  min-height: 72vh;
  grid-template-rows: auto minmax(20rem, 1fr) auto;
}

.assistant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.assistant-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.assistant-status {
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: #655e51;
  font-size: 0.82rem;
  font-weight: 700;
}

.assistant-transcript,
.assistant-tools {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 0;
  max-height: 68vh;
  overflow: auto;
}

.assistant-empty-state {
  margin: 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #fff;
  color: #655e51;
}

.assistant-message {
  display: grid;
  gap: 0.28rem;
}

.assistant-message-user {
  justify-items: end;
}

.assistant-message-assistant {
  justify-items: start;
}

.assistant-message-label {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #655e51;
}

.assistant-message-body {
  max-width: min(78ch, 92%);
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  white-space: pre-wrap;
  line-height: 1.45;
}

.assistant-message-user .assistant-message-body {
  background: #20373b;
  border-color: #20373b;
  color: #fffaf2;
  border-bottom-right-radius: 6px;
}

.assistant-message-assistant .assistant-message-body {
  border-bottom-left-radius: 6px;
}

.assistant-composer {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e8dfcf;
}

.assistant-composer textarea {
  width: 100%;
  resize: vertical;
  background: #fff;
}

.assistant-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.assistant-tool-line {
  margin: 0;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  white-space: pre-wrap;
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.77rem;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .player-spotlight-actions {
    width: 100%;
    min-width: 0;
  }

  .player-layout-grid {
    grid-template-columns: 1fr;
  }

  .player-card-column-item,
  .player-grid-span-2,
  .player-card-span-3,
  .player-card-span-4,
  .player-card-span-2,
  .player-card-span-6,
  .player-card-span-8,
  .player-card-span-12,
  .player-context-card {
    grid-column: auto;
  }

  .player-surface-heading {
    flex-direction: column;
  }

  .player-frame-skeleton-value,
  .player-frame-skeleton-statcast,
  .player-frame-skeleton-percentiles,
  .player-frame-skeleton-summary,
  .player-frame-skeleton-shape {
    min-height: auto;
  }

  .player-season-toolbar,
  .player-batted-ball-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .player-pitcher-notes {
    grid-template-columns: 1fr;
  }

  .player-pitcher-hero {
    grid-template-columns: 1fr;
  }

  .assistant-header,
  .assistant-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .assistant-main {
    min-height: auto;
  }

  .assistant-transcript,
  .assistant-tools {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .player-page {
    width: 100%;
    max-width: 40rem;
    padding-inline: 0.75rem;
    box-sizing: border-box;
    gap: 0.8rem;
    overflow-x: clip;
  }

  .player-spotlight {
    padding: 0.82rem;
    gap: 0.72rem;
  }

  .player-spotlight-hero {
    gap: 0.48rem;
    max-width: none;
  }

  .player-spotlight-meta {
    font-size: 0.64rem;
    letter-spacing: 0.05em;
  }

  .player-spotlight-name-row {
    gap: 0.5rem;
  }

  .player-spotlight-team-logo {
    width: 1.55rem;
    height: 1.55rem;
  }

  .player-spotlight-name {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  .player-spotlight-position-pill {
    min-height: 1.5rem;
    padding: 0.18rem 0.48rem;
    font-size: 0.67rem;
  }

  .player-spotlight-summary {
    gap: 0.3rem 0.65rem;
    font-size: 0.84rem;
  }

  .player-spotlight-copy {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .player-spotlight-badges {
    gap: 0.3rem;
  }

  .player-spotlight-total {
    gap: 0.16rem;
    width: 100%;
  }

  .player-spotlight-total-label {
    font-size: 0.6rem;
  }

  .player-spotlight-total-score {
    font-size: 1.22rem;
  }

  .player-spotlight-total-source {
    font-size: 0.68rem;
  }

  .player-spotlight-actions {
    width: 100%;
    gap: 0.35rem;
    justify-content: flex-start;
    align-items: center;
  }

  .player-link-button {
    min-height: 1.85rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.75rem;
  }

  .player-link-button-mark {
    width: 1.18rem;
    height: 1.18rem;
  }

  .player-link-button-mark-mlb {
    width: 1.3rem;
    height: 0.95rem;
  }

  .player-season-chip-row {
    gap: 0.5rem;
  }

  .player-season-chip {
    min-width: 3rem;
    min-height: 2rem;
    padding: 0.45rem 0.8rem;
  }

  .player-batted-ball-grid {
    grid-template-columns: 1fr;
  }

  .player-pitcher-hero {
    display: grid;
  }

  .player-pitcher-hero-stats {
    justify-content: flex-start;
  }

  .player-pitcher-visual-wrap {
    min-height: 19rem;
  }

  .player-pitcher-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-metric-grid-compact,
  .player-value-deltas-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .player-metric-grid-inline,
  .player-detail-metric-list-inline {
    grid-auto-columns: minmax(6.8rem, 1fr);
    gap: 0.45rem;
  }

  .player-detail-metric-tile,
  .player-value-delta,
  .player-detail-metric-list div {
    min-height: 3.65rem;
    padding: 0.55rem 1.7rem 0.5rem 0.55rem;
  }

  .player-detail-metric-tile dd,
  .player-value-delta dd,
  .player-detail-metric-list dd {
    font-size: 0.82rem;
  }

  .player-detail-metric-tile dt,
  .player-value-delta dt,
  .player-detail-metric-list dt {
    font-size: 0.62rem;
  }

  .player-detail-metric-tile .table-head-info,
  .player-value-delta .table-head-info,
  .player-detail-metric-list div .table-head-info {
    top: 0.45rem;
    right: 0.45rem;
  }

  .player-frame-valuation .player-surface-meta,
  .player-frame-statcast .player-surface-meta {
    display: none;
  }

  .player-frame-valuation .player-value-total {
    display: none;
  }

  .player-frame-statcast .player-surface-heading,
  .player-frame-valuation .player-surface-heading {
    gap: 0.35rem;
  }

  .player-frame-statcast .player-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-surface-card,
  .player-spray-panel {
    padding: 0.82rem;
  }
}

@media (max-width: 675px) {
  .player-page {
    padding-inline: 0.9rem;
  }

  .shell-main {
    padding-inline: 0.9rem;
  }

  .player-spotlight,
  .player-alert-panel,
  .player-surface-card,
  .player-spray-panel,
  .player-disclosure-card {
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .player-page {
    padding-inline: 0.7rem;
  }

  .player-metric-grid-compact,
  .player-value-deltas-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-metric-grid-inline,
  .player-detail-metric-list-inline {
    grid-auto-columns: minmax(6.2rem, 1fr);
  }
}

@media (min-width: 768px) {
  .player-spotlight {
    padding: 0.95rem 1rem;
  }

  .player-spotlight-hero {
    gap: 0.55rem;
    max-width: min(100%, 22rem);
  }

  .player-spotlight-name {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
  }

  .player-spotlight-summary,
  .player-spotlight-copy {
    font-size: 0.9rem;
  }

  .player-spotlight-total {
    width: 100%;
  }

  .player-spotlight-total-score {
    font-size: 1.4rem;
  }

  .player-spotlight-actions {
    width: min(100%, 28rem);
    gap: 0.42rem;
  }

  .player-link-button {
    min-height: 1.95rem;
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
  }

  .player-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: start;
  }

  .player-card-column-item,
  .player-grid-span-2,
  .player-card-span-3,
  .player-card-span-4,
  .player-card-span-2,
  .player-card-span-6,
  .player-card-span-8,
  .player-card-span-12,
  .player-context-card,
  .player-frame-spotlight,
  .player-frame-valuation,
  .player-frame-statcast,
  .player-frame-percentiles,
  .player-frame-shape {
    grid-column: auto;
  }

  .player-frame-spotlight {
    grid-column: 1;
    grid-row: 1;
  }

  .player-frame-valuation {
    grid-column: 1;
    grid-row: 2;
  }

  .player-frame-statcast {
    grid-column: 1;
    grid-row: 3;
  }

  .player-frame-shape {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .player-frame-valuation .player-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-frame-statcast .player-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-card-batted-ball {
    align-self: start;
    min-height: min(70vh, 46rem);
  }

  .player-batted-ball-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
  }

  .player-spray-panel {
    gap: 0.7rem;
  }

  .player-spray-wrap {
    padding: 0.5rem;
    min-height: min(52vh, 30rem);
    max-height: min(52vh, 30rem);
    margin-bottom: 0;
  }

  .player-spray-chart {
    max-height: 100%;
  }

  .player-pitcher-visual-wrap {
    min-height: min(48vh, 28rem);
  }
}

@media (min-width: 1200px) {
  .player-page {
    width: min(1420px, calc(100vw - 3rem));
  }

  .player-spotlight {
    padding: 0.95rem 1rem;
    align-items: start;
  }

  .player-spotlight-hero {
    gap: 0.55rem;
    max-width: min(100%, 24rem);
  }

  .player-spotlight-name {
    font-size: clamp(1.55rem, 1.7vw, 2.05rem);
  }

  .player-spotlight-team-logo {
    width: 1.75rem;
    height: 1.75rem;
  }

  .player-spotlight-position-pill {
    font-size: 0.72rem;
  }

  .player-spotlight-summary,
  .player-spotlight-copy {
    font-size: 0.88rem;
  }

  .player-spotlight-total {
    padding: 0.8rem 0.95rem;
    width: 100%;
    min-width: 0;
  }

  .player-spotlight-total-score {
    font-size: 1.5rem;
  }

  .player-spotlight-actions {
    width: 100%;
  }

  .player-link-button {
    min-height: 1.9rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
  }

  .player-lookup-header {
    padding: 0.65rem 0.8rem;
  }

  .player-surface-card,
  .player-spray-panel {
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 16px;
  }

  .player-card-title,
  .player-disclosure-title {
    font-size: 0.9rem;
  }

  .player-surface-kicker,
  .player-value-total-label,
  .player-detail-metric-list dt,
  .player-value-delta dt {
    font-size: 0.66rem;
  }

  .player-surface-meta,
  .player-disclosure-meta,
  .player-spotlight-total-source {
    font-size: 0.74rem;
  }

  .player-value-total {
    margin-bottom: 0.6rem;
    padding: 0.65rem 0.8rem;
  }

  .player-value-total-score {
    font-size: 0.96rem;
  }

  .player-card-span-8 .player-value-total-score {
    font-size: 1.04rem;
  }

  .player-detail-metric-tile,
  .player-value-delta,
  .player-detail-metric-list div,
  .player-component-item {
    padding: 0.5rem 0.6rem;
  }

  .player-detail-metric-tile,
  .player-value-delta,
  .player-detail-metric-list div {
    padding-right: 2rem;
  }

  .player-detail-metric-tile dd,
  .player-value-delta dd,
  .player-detail-metric-list dd {
    font-size: 0.78rem;
  }

  .player-season-toolbar {
    padding: 0.6rem 0.75rem;
  }

  .player-season-toolbar-note,
  .player-season-toolbar-label,
  .player-season-chip {
    font-size: 0.76rem;
  }

  .collapsible-row summary {
    padding: 0.6rem 0.72rem;
  }

  .collapsible-body {
    padding: 0.6rem 0.72rem;
  }

  .player-percentile-list {
    gap: 0.45rem;
  }

  .player-percentile-head {
    font-size: 0.74rem;
  }

  .player-percentile-bar {
    height: 0.5rem;
  }

  .player-spray-wrap {
    margin-bottom: 0;
    padding: 0.55rem;
    min-height: min(54vh, 32rem);
  }

  .player-spray-chart {
    max-height: 100%;
  }

  .player-batted-ball-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .player-pitcher-visual-wrap {
    min-height: min(52vh, 30rem);
  }

  .player-card-summary .collapsible-body {
    max-height: 16.5rem;
    overflow: auto;
  }

  .player-card-summary .player-surface-copy {
    font-size: 0.86rem;
    line-height: 1.4;
  }

}

@media (min-width: 1280px) {
  .player-layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-frame-valuation .player-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .player-frame-statcast .player-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1440px) {
  .player-page {
    width: min(1540px, calc(100vw - 3rem));
  }

  .player-card-percentiles .collapsible-body {
    max-height: 22rem;
    overflow: auto;
  }

  .player-spray-wrap {
    min-height: min(56vh, 34rem);
    max-height: min(56vh, 34rem);
  }

  .player-spray-chart {
    max-height: 100%;
  }

  .player-batted-ball-grid {
    grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1fr);
    align-items: start;
  }

}

@media (max-width: 560px) {
  .scoreboard-yahoo-league-grid {
    grid-template-columns: 1fr !important;
  }

  .scoreboard-date-panel {
    display: none;
  }

  .scoreboard-date-select-form {
    display: block;
  }

  .scoreboard-yahoo-matchup-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0.7rem;
  }

  .scoreboard-yahoo-matchup-name {
    font-size: 0.82rem;
  }

  .scoreboard-yahoo-matchup-meta {
    font-size: 0.58rem;
  }

  .scoreboard-yahoo-matchup-scoreline {
    min-width: 3.75rem;
    font-size: 0.86rem;
  }
}

@media (max-width: 659px) {
  .scoreboard-console-metrics {
    grid-template-columns: 1fr;
  }
}
