:root {
  --page: #f2f7fd;
  --surface: #fff;
  --text: #142f50;
  --muted: #5f7590;
  --blue: #0866eb;
  --line: #d7e5f4;
  --font: "Segoe UI", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --nav-art: url('visual-assets-v2/navigation-texture-v2.png');
}
body { font-size: 14px; line-height: 1.5; }
.site-header {
  height: 55px; padding: 0 18px; gap: 27px; background: #081c32 var(--nav-art) center/cover;
  color: #f4f9ff; border-bottom: 1px solid #264764; box-shadow: 0 2px 9px #06243b18;
}
.wordmark { display: flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font); font-size: 19px; line-height: 1.05; letter-spacing: -.6px; }
.wordmark img { width: 36px; height: 36px; object-fit: contain; }
.wordmark .brand-type { color: #fff; }
.wordmark small { display: block; font-size: 9px; font-weight: 400; letter-spacing: 2px; margin-top: 5px; color: #d8e8f7; }
.site-header .header-nav { display: flex; gap: 26px; margin-left: 8px; font-size: 13px; }
.site-header .header-nav a { color: #f3f8ff; border: 0; }
.site-header form { gap: 0; }
.site-header input { width: clamp(205px, 25vw, 390px); height: 32px; border: 1px solid #adc6dd; border-radius: 4px 0 0 4px; background: #f7fbff; font-size: 13px; }
.site-header form button { min-height: 32px; border-radius: 0 4px 4px 0; border-color: #adc6dd; color: #164b7d; padding: 3px 10px; }
.site-header .private-badge { border: 0; padding: 0; color: #b5cbe0; background: transparent; font-size: 11px; white-space: nowrap; }
.site-layout { display: flex; align-items: stretch; }
.site-sidebar { width: 145px; flex: 0 0 145px; min-height: calc(100vh - 55px); position: relative; background: #0b2239 var(--nav-art) center/cover; color: #ecf5ff; }
.site-sidebar #nav { display: flex; flex-direction: column; position: sticky; top: 69px; padding: 16px 8px 170px; gap: 3px; }
.site-sidebar #nav a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 9px; color: #eef7ff; text-decoration: none; font-size: 13px; border: 0; border-radius: 4px; background: transparent; }
.site-sidebar #nav a.nav-current { background: #0866ed; background-image: url('visual-assets-v2/tab-skins-v2.png'); background-size: 325.637181% 304.20168%; background-position: 1.993355% 48.971193%; background-repeat: no-repeat; font-weight: 600; box-shadow: 0 3px 12px #00216f55; }
.site-sidebar #nav a:hover { background-color: #1b4164; }
.site-sidebar #nav a.nav-current:hover { background-color: #0866ed; }
.visual-glyph { display: inline-block; width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sidebar-brand { position: sticky; top: calc(100vh - 100px); padding: 17px 13px; margin: -128px 8px 0; border-top: 1px solid #294b66; color: #a3c3df; font-size: 12px; }
.sidebar-brand small { display: block; font-size: 9px; letter-spacing: 1.4px; margin-top: 4px; }
.site-page { min-width: 0; flex: 1; }
main { max-width: 1700px; margin: 0 auto; padding: 14px 14px 65px; min-height: calc(100vh - 109px); }
body[data-view="player"] main { padding-top: 0; }
footer { padding: 11px 0; margin: 0 14px; font-size: 11px; justify-content: flex-end; gap: 17px; }
footer span:first-child { margin-right: auto; font-weight: 500; }
.heading { margin-bottom: 10px; }
.heading h1 { font-size: 21px; }
.release-line { font-size: 11px; }
.panel {
  border: 0; border-image: none; background-color: #fff;
  background-image: url('visual-assets-v2/panel-surface-v2.png');
  background-size: 102.55% 108.06%; background-position: 50% 48.15%; background-repeat: no-repeat;
  padding: 12px 13px; border-radius: 5px; box-shadow: 0 2px 9px #15375b06;
}
.panel h2, .panel h3 { font-size: 15px; line-height: 1.4; font-weight: 700; }
.card-heading { margin-bottom: 3px; gap: 7px; min-height: 24px; flex-wrap: nowrap; }
.card-heading h2, .panel > h2, .panel > h3 { padding-left: 9px; border-left: 3px solid #0b6cff; }
.card-heading .panel-info { margin-left: auto; border: 0; background: transparent; min-height: 24px; padding: 0 5px; font-size: 15px; color: #6194cf; }
.panel-context { display: flex; align-items: center; gap: 8px; margin: 1px 0 6px 12px; color: #536d8d; font-size: 12px; }
.panel-context select { max-width: 100%; padding: 1px 5px; min-height: 25px; font-size: 12px; background: #f9fcff; border-color: #c9dff6; }
.panel-context .context-label { min-width: 0; overflow-wrap: anywhere; }
.panel-context .context-domain { font-size: 10px; color: #778fa8; white-space: nowrap; }
.profile-hero {
  min-height: 176px; margin: 0 -14px; display: flex; align-items: center; gap: 23px; padding: 0 21px 0 13px;
  position: relative; color: #fff; background-color: #0c243d; background-size: auto 100%, cover; background-position: right center, center; background-repeat: no-repeat;
}
.profile-hero.hero-pitching { background-image: url('visual-assets-v2/hero-pitching-v2.png'), var(--nav-art); }
.profile-hero.hero-batting { background-image: url('visual-assets-v2/hero-batting-v2.png'), var(--nav-art); }
.profile-portrait { align-self: stretch; width: 178px; flex: none; display: flex; justify-content: center; align-items: flex-end; background: #112c4238; position: relative; }
.profile-portrait img { display: block; width: 178px; height: 176px; object-fit: contain; object-position: center bottom; }
.profile-portrait img[hidden], .portrait-fallback[hidden] { display: none; }
.portrait-fallback { margin: auto; font-size: 12px; color: #cadaeb; }
.profile-nameplate { position: relative; min-width: 0; padding: 17px 0; text-shadow: 0 1px 4px #031222bb; }
.profile-kicker { color: #a5c4de; font-size: 10px; letter-spacing: 2px; margin-bottom: 5px; }
.profile-nameplate h1 { font-size: clamp(25px, 2.5vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.5px; color: #fff; }
.profile-team { margin: 12px 0 8px; color: #f2f7ff; font-size: 15px; font-weight: 500; }
.profile-position { margin-left: 10px; padding-left: 13px; border-left: 1px solid #7491af; }
.profile-facts { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; font-size: 13px; color: #e0efff; }
.profile-facts span:first-child { color: #fff; font-weight: 600; }
.profile-info { min-height: 24px; padding: 0 3px; border: 0; background: transparent; color: #afcee9; font-size: 14px; }
.profile-info:hover { background: #173753 !important; }
.profile-context { margin-left: auto; align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; min-width: 128px; padding: 15px 0; text-shadow: 0 1px 4px #071d35; }
.profile-season { padding: 3px 7px; font-size: 12px; font-weight: 600; letter-spacing: .5px; background: #071d3988; border-radius: 3px; }
.profile-level { color: #fff; background: #0866ed; padding: 2px 10px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.profile-actions { display: flex; gap: 5px; margin-top: 14px; }
.profile-actions button { font-size: 12px; padding: 4px 9px; min-height: 29px; color: #e9f5ff; background: #0b28449c; border-color: #577a9f; }
.profile-actions .primary { background: #0866ed; border-color: #0866ed; }
.player-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 0 -14px; padding: 5px 12px; background: #f7fbff; border-bottom: 1px solid #d4e6f7; }
.player-controls .domain-tabs { margin: 0; border: 0; gap: 2px; }
.player-controls .tab { min-width: 73px; height: 30px; font-size: 12px; padding: 3px 9px; }
.player-controls .filters { margin: 0; gap: 7px; align-items: center; }
.player-controls .filters label { display: block; }
.player-controls .filters label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.player-controls select { min-height: 29px; font-size: 12px; padding: 3px 7px; border-color: #aecded; }
.player-controls .scope-picker select { width: min(320px, 100%); max-width: 320px; }
.mobile-profile-actions { display: none; }
.tab, .subtabs button, .group-tabs button[aria-selected="true"], .primary {
  border: 0; background-color: transparent; background-image: url('visual-assets-v2/tab-skins-v2.png');
  background-size: 325.637181% 302.92887%; background-position: 50.033223% 49.072165%; background-repeat: no-repeat;
  border-radius: 4px; color: #153c68;
}
.tab[aria-selected="true"], .subtabs button[aria-selected="true"], .group-tabs button[aria-selected="true"], .primary {
  background-color: transparent; background-image: url('visual-assets-v2/tab-skins-v2.png');
  background-size: 325.637181% 304.20168%; background-position: 1.993355% 48.971193%; color: #fff; font-weight: 600;
}
.tab:hover:not(:disabled), .subtabs button:hover:not(:disabled) { background-image: url('visual-assets-v2/tab-skins-v2.png'); background-size: 325.637181% 302.92887%; background-position: 98.07309% 49.072165%; color: #143a64; }
.primary:hover:not(:disabled) { background-color: #055bd6; background-image: url('visual-assets-v2/tab-skins-v2.png'); background-size: 325.637181% 304.20168%; background-position: 1.993355% 48.971193%; }
.domain-tabs .glyph, .domain-tabs .visual-glyph { display: none; }
.subtabs { margin-top: 7px; padding-bottom: 6px; gap: 4px; border-bottom: 1px solid #d9e7f5; }
.subtabs button { min-height: 30px; min-width: 110px; padding: 4px 14px; font-size: 12px; }
#player-content { margin-top: 9px; }
.overview { display: grid; grid-template-columns: minmax(350px, 440px) minmax(0, 1fr); gap: 12px; margin-top: 0; align-items: start; }
.overview-support { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.overview-support .support-wide { grid-column: 1 / -1; }
.overview-support > .panel { min-width: 0; }
.overview-support:has(> :only-child) { grid-template-columns: 1fr; }
.overview.single-panel { grid-template-columns: minmax(350px, 540px); }
.panel-add { border: 0; background: transparent; min-width: 24px; min-height: 24px; padding: 0 4px; color: #6194cf; }
.pct-axis { display: grid; grid-template-columns: 109px minmax(76px, 1fr) 62px; gap: 6px; margin: 0 0 3px; align-items: center; font-size: 10px; color: #7b8ea6; }
.pct-axis .axis-values { display: flex; justify-content: space-between; margin: 0 13px; }
.pct-axis > span:last-child { text-align: right; }
.pct-row { display: grid; grid-template-columns: 109px minmax(76px, 1fr) 62px; gap: 6px; min-height: 28px; height: 28px; font-size: 13px; line-height: 1.2; }
.pct-label { min-height: 28px; height: 28px; padding: 0; border: 0; background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; letter-spacing: -.15px; }
.pct-label:hover { color: #0866ed; background: transparent !important; }
.pct-rail { height: 24px; margin: 0 13px; }
.p-track, .p-fill { top: 3px; height: 18px; border: 0; border-image: none; width: 100%; border-radius: 3px; }
.p-marker { width: 24px; height: 24px; top: 0; color: #fff; font-size: 12px; font-weight: 600; background-repeat: no-repeat; }
.p-marker.middle, .p-marker.neutral { color: #fff; }
.p-marker img { display: none; }
.pct-raw { font-size: 13px; line-height: 1.2; }
.pct-hold { text-align: center; color: #8b9db1; font-size: 13px; }
.pct-missing { min-height: 26px; height: 26px; border: 0; background: transparent; padding: 0; color: #8498ad; font-size: 14px; }
.pct-missing:hover { background: transparent !important; color: #0866ed; }
.pct-group-title { margin-top: 3px; padding: 1px 0; min-height: 19px; border: 0; color: #667e99; font-size: 11px; }
.pct-subdivider { height: 4px; }
.context-select { width: min(100%, 230px); }
.no-related { font-size: 12px; color: #7188a0; padding: 8px 0; }
.overview-models .movement-chart { max-width: 460px; }
.overview-models .section-gap { margin-top: 9px; }
.model-preview-table { margin-top: 5px; font-size: 12px; }
.model-preview-table th, .model-preview-table td { height: 27px; font-size: 12px; padding: 3px 8px; }
.overview-models .movement-chart text { font-size: 13px; }
.profile-source { margin-top: 9px; color: #7890a9; font-size: 11px; text-align: right; }
.empty, .error, .loading { border-color: #d3e3f3; background: #fff; }
.stat-grid { margin: 12px 0; }
.table-shell { border-color: #d4e3f4; border-radius: 4px; }
th { color: #41678f; background: #edf5ff; }
.name-head { background: #edf5ff; }
.segmented { background: #e4edf8; }
.toolbar { font-size: 12px; }
.scope-note { font-size: 12px; }
.compare-tray { border-color: #a4c9ed; background: #f8fbff; }
.section-gap { margin-top: 12px; }
.profile-data-details { margin-top: 12px; }
.metadata-grid { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 8px 12px; margin: 13px 0; font-size: 13px; }
.metadata-grid dt { color: #6480a0; }
.metadata-grid dd { margin: 0; overflow-wrap: anywhere; }
@media(min-width:1450px) {
  .overview { grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); }
  .overview-support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:1200px) {
  .site-header .header-nav { display: none; }
  .site-header { gap: 15px; }
  .overview { grid-template-columns: minmax(350px, 47%) minmax(0, 1fr); }
  .overview-support { grid-template-columns: 1fr; }
  .profile-facts { gap: 10px; }
  .profile-nameplate h1 { font-size: 29px; }
  .profile-context { min-width: 105px; }
  .profile-actions { flex-direction: column; margin-top: 5px; }
}
@media(max-width:960px) {
  .site-sidebar { display: none; }
  .site-sidebar:has(#nav.open) { display: block; position: fixed; top: 55px; left: 0; z-index: 50; width: 185px; min-height: auto; bottom: 0; overflow: auto; box-shadow: 5px 0 16px #071f3e44; }
  .site-sidebar #nav, .site-sidebar #nav.open { position: static; padding: 12px 8px 80px; display: flex; flex-direction: column; background: transparent; height: auto; border: 0; }
  .sidebar-brand { display: none; }
  .menu-toggle { display: block; color: #fff; background: transparent; border: 0; min-width: 32px; min-height: 32px; }
  .menu-toggle:hover:not(:disabled) { background: #24435d; }
  .site-header .header-nav { display: none; }
  .site-header input { width: 230px; }
  .profile-context { min-width: 110px; }
  .profile-nameplate h1 { font-size: 28px; }
}
@media(max-width:760px) {
  .overview { grid-template-columns: 1fr; }
  .overview.single-panel { grid-template-columns: 1fr; }
  .overview-support { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-hero { gap: 15px; }
  .profile-portrait { width: 140px; }
  .profile-portrait img { width: 140px; }
  .profile-context { min-width: 86px; }
  .profile-nameplate h1 { font-size: 25px; }
  .profile-team { font-size: 13px; }
  .profile-facts { font-size: 12px; gap: 7px; }
  .wordmark { font-size: 17px; }
  .site-header input { width: 180px; }
  .private-badge { display: none; }
}
@media(max-width:600px) {
  .site-header { height: 51px; padding: 0 10px; gap: 7px; flex-wrap: nowrap; }
  .site-header .wordmark { gap: 5px; font-size: 14px; letter-spacing: -.5px; }
  .wordmark img { width: 27px; height: 27px; }
  .wordmark small { font-size: 8px; letter-spacing: 1.2px; margin-top: 3px; }
  .site-header .menu-toggle { min-width: 27px; padding: 0; }
  .site-header form { margin-left: auto; min-width: 0; }
  .site-header input { width: min(24vw, 128px); min-width: 68px; font-size: 12px; border-radius: 4px; }
  .site-header form button { display: none; }
  .site-sidebar:has(#nav.open) { top: 51px; }
  main { padding: 10px 10px 65px; }
  .profile-hero { margin: 0 -10px; min-height: 155px; padding: 0 10px 0 5px; gap: 10px; background-position: center; }
  .profile-portrait { width: 104px; }
  .profile-portrait img { width: 104px; height: 155px; }
  .profile-nameplate { flex: 1; padding: 11px 6px; margin-left: -4px; background: #071d348c; border-radius: 4px; }
  .profile-nameplate h1 { font-size: 23px; line-height: 1.1; overflow-wrap: anywhere; }
  .profile-kicker { font-size: 8px; letter-spacing: 1.3px; margin-bottom: 4px; }
  .profile-team { font-size: 12px; margin: 9px 0 5px; }
  .profile-position { display: block; border: 0; padding: 0; margin: 2px 0 0; font-size: 11px; color: #ccdef0; }
  .profile-facts { gap: 2px 8px; font-size: 11px; }
  .profile-context { align-self: start; min-width: 0; padding-top: 7px; position: absolute; right: 9px; top: 0; gap: 3px; }
  .profile-season { font-size: 9px; padding: 1px 4px; }
  .profile-level { font-size: 9px; padding: 1px 5px; }
  .profile-actions { display: none; }
  .player-controls { margin: 0 -10px; padding: 5px 9px; gap: 5px; }
  .player-controls .domain-tabs { width: 100%; overflow: auto; margin: 0; gap: 3px; }
  .player-controls .tab { min-width: 0; flex: 1 1 0; padding: 3px 5px; height: 31px; font-size: 12px; }
  .player-controls .filters { width: 100%; flex-wrap: nowrap; gap: 5px; }
  .player-controls .scope-picker { flex: 1; width: auto; }
  .player-controls .scope-picker select { width: 100%; max-width: 100%; }
  .player-controls select { font-size: 12px; min-height: 31px; }
  .mobile-profile-actions { display: flex; gap: 3px; flex: none; }
  .mobile-profile-actions button { width: 27px; min-width: 27px; min-height: 31px; padding: 0; font-size: 15px; }
  .subtabs { flex-wrap: wrap; gap: 3px; padding-bottom: 5px; }
  .subtabs button { min-width: 88px; min-height: 32px; font-size: 11px; padding: 3px 9px; }
  .panel { padding: 11px 10px; }
  .panel h2, .panel h3 { font-size: 14px; }
  .panel-context { font-size: 11px; margin-left: 12px; }
  .overview { gap: 10px; }
  .overview-support { grid-template-columns: 1fr; gap: 10px; }
  .pct-row { grid-template-columns: 105px minmax(60px,1fr) 56px; height: 34px; min-height: 34px; gap: 4px; }
  .pct-axis { grid-template-columns: 105px minmax(60px,1fr) 56px; gap: 4px; }
  .pct-axis { margin-left: 0; margin-right: 0; }
  .pct-label { font-size: 13px; min-height: 34px; height: 34px; }
  .pct-raw { font-size: 13px; }
  .pct-rail { margin: 0 12px; }
  .pct-missing { min-height: 34px; height: 34px; }
  .pct-group-title { min-height: 19px; font-size: 11px; }
  footer { margin: 0 10px; gap: 9px; font-size: 10px; }
  .release-line { font-size: 10px; }
  .heading h1 { font-size: 19px; }
  .toolbar-actions button { font-size: 12px; }
  .model-preview-table th, .model-preview-table td { height: 33px; }
}
@media(max-width:360px) {
  .site-header .wordmark { font-size: 12px; }
  .wordmark img { width: 24px; height: 24px; }
  .wordmark small { font-size: 7px; letter-spacing: 1px; }
  .profile-portrait { width: 88px; }
  .profile-portrait img { width: 88px; }
  .profile-nameplate h1 { font-size: 21px; }
  .pct-row, .pct-axis { grid-template-columns: 94px minmax(52px,1fr) 52px; }
  .pct-label { font-size: 12px; }
  .pct-raw { font-size: 12px; }
}
@media(pointer:coarse) {
  .pct-label, .pct-missing { min-height: 40px; height: 40px; }
  .pct-row { height: 40px; min-height: 40px; }
  .profile-info, .panel-info { min-width: 38px; min-height: 38px; }
  input, select { font-size: 16px; }
}
