:root {
  --brand-charcoal: #263138;
  --brand-slate: #4c5866;
  --bg: var(--brand-charcoal);
  --sidebar: var(--brand-charcoal);
  --surface: var(--brand-slate);
  --surface-2: #414e59;
  --surface-3: #35414b;
  --border: #697783;
  --text: #f7fafc;
  --muted: #d1dce4;
  --blue: #a6d4ff;
}

body {
  background: var(--brand-charcoal);
}

.main-shell {
  background: linear-gradient(145deg, var(--brand-charcoal), #34414a);
}

.sidebar {
  border-right-color: #667480;
  background: linear-gradient(165deg, var(--brand-charcoal), #3a4650 72%, var(--brand-slate));
}

.brand p,
.side-link,
.side-icon,
.tab,
.field,
.tagline,
.site-footer {
  color: #d1dce4;
}

.side-link:hover {
  background: #586777;
}

.side-link.is-active {
  border-color: #8ca0af;
  background: var(--brand-slate);
}

.side-divider {
  background: #72808b;
}

.topbar,
.site-footer {
  background: var(--brand-charcoal);
}

.tabbar {
  background: #36434d;
}

.tab.is-active,
.eyebrow,
.text-link {
  color: #b7dcff;
}

.subtitle {
  color: #d1dce4;
}

.field select,
.field input {
  border-color: #82909b;
  background: var(--brand-slate);
}

.field select:focus,
.field input:focus {
  border-color: #b7dcff;
  box-shadow: 0 0 0 3px #b7dcff33;
}

.card,
.profile-card {
  border-color: #73818d;
  background: linear-gradient(155deg, var(--brand-slate), #3e4b56);
}

.card:hover {
  border-color: #a5b3bf;
}

.card-description,
.metric-list dt,
.error-stat span,
.error-stat small,
.impact-copy,
.split-stat small {
  color: #d1dce4;
}

.metric-ring {
  border-color: #778592;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  background: #394650;
  color: #fff;
}

.metric-ring.green {
  border-top-color: var(--green);
  border-right-color: var(--green);
}

.metric-ring.cyan {
  border-top-color: #78d1ed;
  border-right-color: #78d1ed;
}

.error-stat,
.segmented {
  background: #3a4752;
}

.canvas-slot {
  border-color: #758592;
  background: radial-gradient(circle at 50% 48%, #7e9eb322, transparent 40%),
    linear-gradient(#ffffff0d 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0d 1px, transparent 1px),
    #34414b;
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.zone-comparison-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 1px 0 9px;
  color: #d5dee6;
  font-size: 9px;
}
.zone-comparison-legend > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.batter-side-segmented { margin: 0 0 13px; }
.batter-side-comparison {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  min-height: 260px;
  padding: 1px 4px 5px;
}
.batter-side-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}
.batter-side-panel + .batter-side-panel { border-left: 1px solid #aebbc326; }
.batter-side-panel[hidden] { display: none !important; }
.batter-side-comparison[data-mode="leftHanded"],
.batter-side-comparison[data-mode="rightHanded"] { grid-template-columns: minmax(0, 1fr); }
.batter-side-comparison[data-mode="leftHanded"] .batter-side-panel,
.batter-side-comparison[data-mode="rightHanded"] .batter-side-panel { width: min(100%, 240px); justify-self: center; border-left: 0; }
.batter-side-panel h3 { margin: 0 0 3px; color: #e6eef7; font-size: 11px; font-weight: 750; }
.batter-side-donut-wrap { position: relative; width: min(100%, 116px); aspect-ratio: 1; }
.batter-side-donut { position: absolute; inset: 0; width: auto; height: auto; min-height: 0; border: 0; border-radius: 50%; background: transparent; }
.batter-side-donut::before { display: none; }
.cards-grid.zone .canvas-slot.batter-side-donut { width: auto; height: auto; min-height: 0; }
.batter-side-donut-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.batter-side-donut-center strong { color: #f2f7fc; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.batter-side-caption { margin-top: -2px; color: #9fb0c2; font-size: 9px; }
.batter-side-counts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; margin-top: 13px; }
.batter-side-counts > div { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.batter-side-counts strong { color: #e8f1fa; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.batter-side-counts span { color: #aebdcb; font-size: 8px; line-height: 1.2; }
.batter-side-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; padding: 9px 10px; border-radius: 5px; background: #ffffff08; color: #9eafbf; }
.batter-side-note i { flex: 0 0 auto; margin-top: 1px; color: #91b9e7; font-size: 12px; }
.batter-side-note p { margin: 0; font-size: 9px; line-height: 1.45; }
.zone-comparison-legend i { display: inline-block; width: 17px; height: 10px; }
.legend-rulebook { border: 1.5px dashed #d6dee5; }
.legend-called { border: 2px solid #88c8ff; background: #65aee71a; }
.zone-comparison-layout { display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 7px; min-height: 360px; }
.zone-comparison-slot { height: 360px; min-height: 0; }
.zone-expansion-metrics { display: grid; align-content: center; gap: 23px; padding: 10px 1px 10px 9px; border-left: 1px solid #aebbc326; }
.zone-expansion-metrics > div { display: grid; gap: 5px; }
.zone-expansion-metrics span { color: #d3dde5; font-size: 11px; font-weight: 600; line-height: 1.35; }
.zone-expansion-metrics strong { color: #f3f8fc; font-size: 17px; font-weight: 750; font-variant-numeric: tabular-nums; }

.canvas-slot::before {
  border-color: #8ca1ae;
}

.slot-label {
  border-color: #8095a4;
  background: #465766;
  color: #e5f3ff;
}

.data-table th {
  background: #394650;
  color: #e4edf4;
}

.data-table th,
.data-table td,
.profile-detail,
.profile-card-heading {
  border-color: #73818d;
}

.cards-grid.context .table-card .data-table tbody tr:nth-child(even) {
  background: #45525d;
}

.cards-grid.context .table-card .data-table th {
  color: #e4edf4;
}

.profile-hero {
  border-color: #8796a2;
  background: radial-gradient(circle at 68% 18%, #a9bac422, transparent 38%),
    linear-gradient(120deg, var(--brand-slate), #3b4852 58%, var(--brand-charcoal));
}

.profile-score {
  border-color: #93a7b7;
  background: linear-gradient(150deg, #566878, #35434e);
}

.profile-highlight {
  border-color: #778794;
  background: linear-gradient(135deg, var(--brand-slate), #3d4b56);
}

.profile-kicker,
.profile-section-heading span {
  color: #b7dcff;
}

.profile-meta,
.profile-intro p,
.profile-highlight span,
.profile-section-heading p,
.profile-card-heading p,
.profile-detail dt {
  color: #d1dce4;
}

.profile-hero::after {
  border-color: #c6d3dc2b;
}

.profile-card-heading,
.profile-detail {
  border-color: #768591;
}

.profile-score span,
.info-button {
  color: #f1f7fc;
}

/* Font Awesome is the project standard for interface icons. */
.side-icon,
.tab > i {
  display: grid;
  place-items: center;
  line-height: 1;
}

.tab > i {
  font-size: 18px;
}

.export-button i {
  margin-right: 5px;
  font-size: 14px;
}

.info-button {
  display: grid;
  place-items: center;
  border: 0;
  font-size: 16px;
  line-height: 1;
}

.info-button:hover {
  color: #b7dcff;
}

.error-comparison {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
}

.error-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d7e1e8;
  font-size: 10px;
}

.error-summary span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.error-summary i {
  color: #ffc77d;
  font-size: 12px;
}

.error-summary strong {
  color: #f7fafc;
  font-size: 13px;
}

.error-share-bar {
  display: flex;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #667480;
}

.error-share-bar span {
  width: var(--share);
}

.error-share-false {
  background: #ff8a91;
}

.error-share-missed {
  background: #ffc77d;
}

.error-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-card .error-stat {
  gap: 6px;
  min-height: 82px;
  padding: 10px 9px;
  border-color: #82909b;
  border-left-width: 4px;
  border-radius: 7px;
  background: linear-gradient(145deg, #53616e, #414d58);
}

.error-card .error-stat-false {
  border-left-color: #ff8a91;
}

.error-card .error-stat-missed {
  border-left-color: #ffc77d;
}

.error-card .error-stat > span {
  color: #e6edf2;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .015em;
}

.error-stat-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px;
}

.error-card .error-stat .error-stat-values strong {
  margin: 0;
  font-size: 25px;
}

.error-card .error-stat .error-stat-values b {
  color: #f1f5f8;
  font-size: 11px;
}

.error-explanation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 5px;
  margin: 8px 0 0;
  color: #d1dce4;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}

.error-explanation i {
  color: #a9c9eb;
  font-size: 9px;
}

.error-explanation span {
  color: #f4f8fb;
  font-weight: 700;
}

.impact-card {
  align-self: start;
  height: 270px;
  min-height: 270px;
  padding: 15px 19px;
}

.cards-grid.context .impact-card {
  height: 310px;
  min-height: 310px;
}

.impact-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 17px;
  width: min(100%, 390px);
  margin-inline: auto;
}

.impact-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 2px 0 16px;
  border-bottom: 1px solid #a9b7c044;
}

.impact-outcome-value {
  color: #ffc77d;
  font-size: 42px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.065em;
}

.impact-outcome-value span {
  margin-left: 1px;
  font-size: 22px;
  letter-spacing: -.03em;
}

.impact-outcome-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.impact-outcome-copy > span {
  color: #ffd69e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.impact-outcome-copy > span i {
  margin-right: 4px;
  font-size: 10px;
}

.impact-outcome-copy > strong {
  color: #f6f9fb;
  font-size: 12px;
  line-height: 1.25;
}

.impact-outcome-copy > small {
  color: #cbd6de;
  font-size: 10px;
}

.impact-supporting {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.impact-support-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.impact-support-value {
  display: flex;
  align-items: center;
  gap: 7px;
}

.impact-support-value i {
  color: #a9d7ff;
  font-size: 14px;
}

.impact-support-value strong {
  color: #fff;
  font-size: 23px;
  line-height: 1;
}

.impact-support-label {
  color: #e7eef3;
  font-size: 10px;
  line-height: 1.25;
}

.impact-support-metric > span {
  color: #cbd6de;
  font-size: 9px;
  line-height: 1.25;
}

.home-away-card {
  align-self: start;
  height: 270px;
  min-height: 270px;
}

.cards-grid.context .home-away-card {
  height: 320px;
  min-height: 320px;
}

.home-away-comparison {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  width: min(100%, 390px);
  margin: 0 auto;
  padding: 4px 0;
}

.home-away-delta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #cbd9e4;
  font-size: 11px;
}

.home-away-delta > i {
  color: #8be0c1;
  font-size: 13px;
}

.home-away-delta strong {
  margin-left: 3px;
  color: #8be0c1;
  font-size: 16px;
}

.home-away-delta small {
  font-size: 10px;
}

.home-away-sides {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-away-sides::after {
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  background: #9eabb655;
  content: "";
}

.home-away-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.home-away-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #e9f0f5;
  font-size: 12px;
  font-weight: 750;
}

.home-side .home-away-label i {
  color: #83d7ff;
}

.away-side .home-away-label i {
  color: #ffc77d;
}

.home-away-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  aspect-ratio: 1;
  margin-bottom: 7px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) 0 var(--score), #85919b 0 100%);
  --ring-color: #83d7ff;
}

.home-away-ring::before {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #46535e;
  content: "";
}

.away-side .home-away-ring {
  --ring-color: #ffc77d;
}

.home-away-ring > strong {
  position: relative;
  color: #fff;
  font-size: 20px;
  letter-spacing: -.04em;
}

.home-away-ring > strong small {
  font-size: 11px;
}

.home-away-total {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #eaf1f6;
  font-size: 10px;
}

.home-away-total strong {
  font-size: 12px;
}

.home-away-total span,
.home-away-subtotal {
  color: #cbd6de;
  font-size: 9px;
}

.cards-grid.context .home-away-comparison {
  gap: 12px;
}

.cards-grid.context .home-away-ring {
  width: 98px;
  margin-bottom: 7px;
}

.canvas-slot {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 300px;
  min-height: 180px;
  border: 0;
  border-radius: 4px;
  background: transparent;
}

.cards-grid.context .canvas-slot { height: 360px; }
.cards-grid.context .canvas-slot[data-chart-id="context-speed-accuracy"] { height: 400px; }
.cards-grid.context .canvas-slot[data-chart-id="context-pitch-type"] { height: 400px; }
.cards-grid.context .clutch-card { height: 320px; min-height: 320px; align-self: start; }
.cards-grid.context .canvas-slot[data-chart-id="context-clutch-situations"] { height: 260px; }
.cards-grid.context .canvas-slot[data-chart-id="context-framing-influence"] { height: 400px; }
.cards-grid.context .canvas-slot[data-chart-id="context-team-zone"] { height: 400px; }
.cards-grid.zone .decision-heatmap-slot { height: 360px; }
.cards-grid.zone .canvas-slot[data-chart-id="zone-height-accuracy"] { height: 380px; }
.cards-grid.zone .canvas-slot[data-chart-id="zone-edge-accuracy"] { height: 320px; }
.edge-accuracy-axis-title { margin: -3px 0 6px; color: #cbd6e0; font-size: 11px; text-align: center; }
@media (max-width: 760px) { .cards-grid.zone .canvas-slot[data-chart-id="zone-edge-accuracy"] { height: 350px; } }
.cards-grid.zone .canvas-slot[data-chart-id="zone-quadrant-accuracy"] {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  margin-inline: auto;
}
.egregious-content {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr);
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 0 0 4px;
}
.egregious-card .card-header,
.cards-grid.zone .card:has(.egregious-content) .card-header { margin-bottom: 4px; }
.cards-grid.zone .egregious-donut-wrap {
  position: relative;
  width: min(100%, 224px);
  aspect-ratio: 1;
  justify-self: center;
}
.egregious-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.egregious-donut-center strong { color: #f2f7fb; font-size: 30px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.egregious-donut-center span { margin-top: 2px; color: #b6c8d7; font-size: 9px; font-weight: 700; line-height: 1.25; letter-spacing: .08em; }
.cards-grid.zone .canvas-slot.egregious-donut { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
.egregious-breakdown { display: grid; min-width: 0; }
.egregious-stat { min-width: 0; padding: 7px 0; }
.egregious-stat + .egregious-stat { border-top: 1px solid rgba(160, 181, 201, .18); }
.egregious-stat-heading { display: flex; align-items: center; gap: 6px; color: #d6e2ec; font-size: 10px; font-weight: 700; }
.egregious-stat-heading i { font-size: 11px; }
.egregious-stat-material .egregious-stat-heading i { color: #ff6674; }
.egregious-stat-minor .egregious-stat-heading i { color: #86b4f3; }
.egregious-stat-value { display: flex; align-items: baseline; gap: 7px; margin-top: 4px; }
.egregious-stat-value strong { color: #f5f8fb; font-size: 26px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
.egregious-stat-value span { color: #d7e2ec; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }
.egregious-stat-material .egregious-stat-value span { color: #ff9aa3; }
.egregious-stat-minor .egregious-stat-value span { color: #a8c8f5; }
.egregious-stat p { margin: 4px 0 0; color: #9db0c2; font-size: 9px; line-height: 1.35; }
.egregious-note {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(155, 178, 198, .14);
  border-radius: 7px;
  background: rgba(225, 237, 247, .035);
  color: #afc0cf;
}
.egregious-note > i { margin-top: 1px; color: #9fcfff; font-size: 14px; }
.egregious-note p { margin: 0; font-size: 9px; line-height: 1.45; }
.egregious-note strong { color: #e5edf4; font-weight: 700; }
.zone-consistency-summary {
  display: grid;
  grid-template-columns: 62px minmax(95px, 1fr) minmax(105px, auto);
  align-items: center;
  gap: 9px;
  min-height: 64px;
  margin: 2px 0 8px;
}
.zone-consistency-score {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#32c9a4 calc(var(--score) * 1%), #294054 0);
  box-shadow: 0 0 16px rgba(50, 201, 164, .12);
}
.zone-consistency-score::before {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #142239;
  content: "";
}
.zone-consistency-score span { position: relative; color: #ecfff9; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.zone-consistency-score-copy { display: grid; gap: 3px; min-width: 0; }
.zone-consistency-score-copy strong { color: #e7f0f7; font-size: 10px; line-height: 1.2; }
.zone-consistency-score-copy span { color: #9ab0c2; font-size: 9px; }
.zone-consistency-mismatch {
  display: grid;
  justify-items: start;
  gap: 1px;
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(151, 174, 193, .2);
}
.zone-consistency-mismatch strong { color: #ff6674; font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.zone-consistency-mismatch span { color: #e5edf4; font-size: 9px; font-weight: 700; white-space: nowrap; }
.zone-consistency-mismatch small { color: #9ab0c2; font-size: 8px; line-height: 1.3; }
.zone-consistency-legend { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 0 0 2px; color: #bdcbd7; font-size: 9px; }
.zone-consistency-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.consistency-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.consistency-dot.is-consistent { background: #80b5ff; box-shadow: 0 0 7px rgba(128,181,255,.3); }
.consistency-dot.is-inconsistent { background: #f15b62; box-shadow: 0 0 7px rgba(241,91,98,.25); }
.cards-grid.zone .canvas-slot.zone-consistency-chart { height: 278px; min-height: 240px; }
.cards-grid.zone .canvas-slot.zone-comparison-slot { height: 360px; }
.cards-grid.zone .canvas-slot.zone-comparison-slot {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cards-grid.zone .canvas-slot.zone-comparison-slot::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  left: -10%;
  width: 120%;
  display: block;
  background: url("../assets/catcher-silhouette.png") no-repeat calc(50% + 14px) 56% / auto 150%;
  content: "";
  opacity: .08;
  pointer-events: none;
  transform: scaleX(.9);
}
.zone-comparison-slot > .chart-surface { position: relative; z-index: 1; }
.canvas-slot::before { display: none; }
.chart-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2e4765;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 48%, #1f528055, transparent 38%), linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px), #101c2d;
  background-size: auto, 34px 34px, 34px 34px, auto;
}
.zone-scale-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 20px;
  margin: 0 0 3px;
  color: #cbd6e0;
  font-size: 9px;
  line-height: 1.2;
}
.zone-scale-note > i { color: #9dcfff; font-size: 10px; }
.zone-scale-note strong { color: #f1f6fa; font-size: 10px; font-variant-numeric: tabular-nums; }
.zone-scale-note small { color: #c0ccd6; font-size: 8px; }
.chart-scroll-wide {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #8fc8ff #263138;
  scrollbar-width: thin;
}
.chart-scroll-wide:focus-visible { outline: 2px solid #9dcfff; outline-offset: 2px; }
.chart-scroll-wide::-webkit-scrollbar { height: 7px; }
.chart-scroll-wide::-webkit-scrollbar-track { border-radius: 999px; background: #263138; }
.chart-scroll-wide::-webkit-scrollbar-thumb { border-radius: 999px; background: #718da5; }
.chart-scroll-wide::-webkit-scrollbar-thumb:hover { background: #9dcfff; }
.home-away-comparison { gap: 5px; width: 100%; min-height: 0; padding: 0; }
.home-away-chart { height: 138px; min-height: 138px; }
.home-away-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; padding: 0 3px 2px; color: #d5e0e8; font-size: 9px; line-height: 1.35; text-align: center; }
.home-away-summary strong { color: #f4f8fb; }
.home-away-summary b { grid-column: 1 / -1; color: #9de3cb; font-size: 10px; }
.home-away-summary b i { margin-right: 4px; }
.cards-grid.context .home-away-comparison { gap: 8px; }
.cards-grid.context .home-away-chart { height: 180px; min-height: 180px; }
.cards-grid.context .home-away-summary { font-size: 10px; }

@media (max-width: 760px) {
  .tab > i {
    font-size: 16px;
  }

  .home-away-ring {
    width: 74px;
  }
}

@media (max-width: 520px) {
  .batter-side-comparison { min-height: 238px; padding-inline: 0; }
  .batter-side-panel { padding-inline: 5px; }
  .batter-side-donut-wrap { width: min(100%, 104px); }
  .batter-side-counts { margin-top: 10px; }
  .batter-side-counts span { font-size: 7px; }
  .batter-side-note { padding: 8px; }
  .batter-side-note p { font-size: 8px; }
  .zone-comparison-layout { grid-template-columns: minmax(0, 1fr) 90px; gap: 3px; min-height: 330px; }
  .cards-grid.zone .canvas-slot.zone-comparison-slot { height: 330px; }
  .zone-expansion-metrics { gap: 18px; padding-left: 6px; }
  .zone-expansion-metrics span { font-size: 10px; }
  .zone-expansion-metrics strong { font-size: 15px; }
  .egregious-content { grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr); gap: 6px; }
  .egregious-stat { padding: 6px 0; }
  .egregious-stat-value strong { font-size: 23px; }
  .egregious-note { padding: 8px; }
  .zone-consistency-summary { grid-template-columns: 56px minmax(70px, 1fr) minmax(90px, auto); gap: 7px; }
  .zone-consistency-score { width: 54px; height: 54px; }
  .zone-consistency-score::before { width: 43px; height: 43px; }
  .zone-consistency-score span { font-size: 12px; }
  .zone-consistency-mismatch { padding-left: 7px; }
  .zone-consistency-mismatch strong { font-size: 20px; }
  .cards-grid.zone .canvas-slot.zone-consistency-chart { height: 250px; min-height: 225px; }
}

.profile-hero {
  min-height: 304px;
  border-color: #93a3af;
  background: radial-gradient(ellipse at 76% 0%, #8dc9ef28, transparent 34%), radial-gradient(ellipse at 5% 100%, #a0e1ce13, transparent 40%), linear-gradient(112deg, #536575, #394854 47%, #29353e);
  box-shadow: 0 20px 42px #111a2080, inset 0 1px #ffffff1a;
}

.profile-hero::after {
  right: 175px;
  bottom: -255px;
  width: 500px;
  height: 500px;
  border-color: #d4e7f21a;
  box-shadow: 0 0 0 28px #d4e7f20a, 0 0 0 56px #d4e7f207;
}

.profile-portrait {
  position: relative;
  min-height: 270px;
  border: 1px solid #d9e4ebaa;
  border-radius: 12px;
  background: #222d35;
  box-shadow: 0 14px 30px #10182075, 0 0 0 5px #ffffff0a;
}

.profile-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, #111a22db);
  content: "";
  pointer-events: none;
}

.profile-portrait img { filter: saturate(.82) contrast(1.04); }

.profile-portrait-caption {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 15px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #f4f8fb;
}

.profile-portrait-caption span {
  color: #c4e1f4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}

.profile-portrait-caption span i { margin-right: 4px; color: #8bd8ff; }
.profile-portrait-caption strong { font-size: 11px; letter-spacing: .1em; }

.profile-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #c5deee36;
  border-radius: 5px;
  background: #dcecf112;
}

.profile-kicker i { color: #9bd9ff; font-size: 11px; }
.profile-intro h2 { margin-top: 13px; text-shadow: 0 4px 20px #10182066; }
.profile-meta > span:last-child i { margin-right: 5px; color: #a9d7f3; font-size: 12px; }
.profile-intro p { max-width: 530px; text-shadow: 0 1px 8px #111a2077; }

.profile-score {
  min-height: 244px;
  border-color: #d7e8f340;
  background: radial-gradient(circle at 50% 43%, #a5e4cf21, transparent 48%), linear-gradient(155deg, #71869570, #26353fd9);
  box-shadow: inset 0 1px #ffffff1c, 0 12px 28px #10182045;
}

.profile-score .rating-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d6e4ec;
}

.profile-score .rating-label i { color: #8de0bd; font-size: 12px; }
.rating-donut { filter: drop-shadow(0 4px 15px #79d3c12c); }
.rating-track { stroke: #d7e2e966; }

.profile-highlights { gap: 14px; }

.profile-highlight {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-height: 104px;
  padding: 15px 17px;
  overflow: hidden;
  border-color: #aebdc866;
  border-radius: 12px;
  background: linear-gradient(140deg, #5c6b78, #45535e 65%, #3a4751);
  box-shadow: 0 12px 24px #111a2044, inset 0 1px #ffffff14;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.profile-highlight::after {
  position: absolute;
  top: -40px;
  right: -35px;
  width: 100px;
  height: 100px;
  border: 1px solid #ffffff12;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #ffffff06;
  content: "";
  pointer-events: none;
}

.profile-highlight:hover {
  transform: translateY(-3px);
  border-color: #d1e0e9;
  box-shadow: 0 16px 28px #111a205c, inset 0 1px #ffffff20;
}

.profile-highlight > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.profile-highlight .profile-highlight-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #ffffff10;
  color: #bde5ff;
  font-size: 17px;
}

.highlight-debut .profile-highlight-icon { color: #a8e1cf; }
.highlight-series .profile-highlight-icon { color: #ffd48a; }
.highlight-tenure .profile-highlight-icon { color: #c7b8ff; }
.profile-highlight > div > span { color: #d0dce4; font-size: 10px; font-weight: 700; }

.profile-highlight strong {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  font-size: 22px;
}

.profile-highlight strong small { color: #c5d1d9; font-size: 10px; font-weight: 600; letter-spacing: 0; }
.profile-section-heading { padding-top: 12px; }

.profile-section-heading > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b9e1fa;
}

.profile-section-heading > div > span i { font-size: 12px; }
.profile-section-heading h3 { font-size: 26px; text-shadow: 0 3px 15px #00000030; }

.profile-card {
  position: relative;
  overflow: hidden;
  border-color: #9cabb766;
  border-radius: 12px;
  background: radial-gradient(circle at 100% 0%, #d8e7f00d, transparent 38%), linear-gradient(155deg, #53616d, #424f5a 72%, #394650);
  box-shadow: 0 12px 28px #111a203b, inset 0 1px #ffffff14;
  transition: transform .18s ease, border-color .18s ease;
}

.profile-card::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 42px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #8cd7ff, #9ce0c0);
  content: "";
}

.profile-card:hover { transform: translateY(-2px); border-color: #c2d1db; }

.profile-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding-bottom: 13px;
}

.profile-card-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid #c0d6e733;
  border-radius: 11px;
  background: #a9d7f318;
  color: #b9e1fa;
  font-size: 15px;
}

.profile-card h4 { font-size: 15px; }
.profile-card-heading p { margin-top: 3px; }
.profile-detail { transition: padding .16s ease, background .16s ease; }
.profile-detail:hover { padding-right: 7px; padding-left: 7px; background: #ffffff08; }
.profile-detail dd { font-variant-numeric: tabular-nums; }

.table-signal {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.table-signal i,
.signal-legend i {
  font-size: 7px;
}

.data-table td .signal-good { color: #7de0b8; }
.data-table td .signal-watch { color: #ffd37d; }
.data-table td .signal-low { color: #ff8b92; }

.table-card .card-footer,
.ranking-card .card-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d3dde4;
  font-size: 9px;
  white-space: nowrap;
}

.signal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.signal-legend .signal-good { color: #7de0b8; }
.signal-legend .signal-watch { color: #ffd37d; }
.signal-legend .signal-low { color: #ff8b92; }

.profile-signal-legend {
  padding: 7px 10px;
  border: 1px solid #9cabb744;
  border-radius: 7px;
  background: #ffffff08;
}

.profile-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.profile-signal i { font-size: 7px; }
.profile-signal.signal-good { color: #7de0b8; }
.profile-signal.signal-watch { color: #ffd37d; }
.profile-signal.signal-low { color: #ff8b92; }

@media (max-width: 760px) {
  .profile-portrait { min-height: 150px; }
  .profile-score { min-height: 190px; }
}

@media (max-width: 420px) {
  .profile-portrait { min-height: 125px; }
}

@media print {
  body,
  .main-shell,
  .topbar,
  .site-footer,
  .card,
  .profile-hero,
  .profile-card,
  .profile-highlight {
    background: #fff;
  }

  .subtitle,
  .profile-meta,
  .profile-intro p,
  .profile-highlight span,
  .profile-section-heading p,
  .profile-card-heading p,
  .profile-detail dt {
    color: #333;
  }
}
