/* Hot Zones + player-page visuals (matchup card maps, player maps, movement profile). Own file (2026-10-25) so the college portal's
   player pages load the same rules as the MLB site and the college Match-Maker - never a copy. Uses the MLB tokens (--color-*, --ui-*);
   the college portal maps its own tokens onto them (college.css .cb-zbridge). */
/* HOT ZONES on the matchup card (owner 2026-10-23): red = good for the hitter, blue = good for the pitcher, gray = league average */
.zones-card { --z-hot: #e34948; --z-cold: #2a78d6; --z-mid: #f0efec; --z-line: var(--color-bg-primary); --z-dot: #1c1f24; --z-dot-ring: #fff; }
:root[data-theme="dark"] .zones-card { --z-hot: #e66767; --z-cold: #3987e5; --z-mid: #383835; --z-dot: #f5f5f2; --z-dot-ring: #1c1f24; }
.zhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--color-text-secondary); margin-bottom: 10px; }
.zscale { display: inline-flex; background: var(--ui-fill); border-radius: 999px; padding: 2px; }
.zscale button { border: 0; background: transparent; font: 600 11px/1 var(--font-sans); padding: 5px 9px; border-radius: 999px; color: var(--ui-ink); cursor: pointer; }
.zscale button.on { background: var(--ui-ink); color: var(--ui-on-ink); }
.zmaps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.zmap.zbig { grid-column: 1 / -1; }
.zmap.zbig svg { max-width: 447px; }
.zmap { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.zmap svg { width: 100%; max-width: 329px; height: auto; display: block; }
.zmap .zcell { stroke: var(--z-line); stroke-width: 1.2; }
.zmap .zbox { fill: none; stroke: var(--color-text-primary); stroke-width: 1; opacity: .55; pointer-events: none; }
.zmap .zv { font: 700 6.4px/1 var(--font-mono, ui-monospace, monospace); text-anchor: middle; pointer-events: none; }
.zmap .zv.zo { font-size: 5.6px; }
.zmap .zdot { fill: var(--z-dot); stroke: var(--z-dot-ring); stroke-width: .6; opacity: .9; pointer-events: none; }
.zmap figcaption { text-align: center; font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; }
.zmap figcaption span { color: var(--color-text-secondary); font-size: 11.5px; }
.zkey { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 11.5px; color: var(--color-text-secondary); margin: 12px 0 4px; }
.zkey i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--z-cold), var(--z-mid), var(--z-hot)); }
.zlines { margin: 10px 0 6px; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.zmap .zv.zl { font-size: 5.4px; }
.zmap .zplate { fill: var(--color-bg-primary); stroke: var(--color-text-tertiary); stroke-width: .8; }
.zmap .zboxout { fill: none; stroke: var(--color-text-tertiary); stroke-width: .8; }
.zmap .zside { font: 700 5.6px/1 var(--font-sans); letter-spacing: .06em; fill: var(--color-text-tertiary); text-anchor: middle; }
/* hot zones: one pitch at a time (owner 2026-10-23) - a scrolling row of pitch buttons, "All" first */
.zpitches { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; margin-bottom: 4px; scrollbar-width: none; }
.zpitches::-webkit-scrollbar { display: none; }
.zpitches button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 6px 11px; font: 600 12px/1.1 var(--font-sans); background: var(--ui-fill); color: var(--ui-ink); cursor: pointer; white-space: nowrap; }
.zpitches button small { font-weight: 500; opacity: .7; margin-left: 2px; }
.zpitches button.on { background: var(--ui-ink); color: var(--ui-on-ink); }
/* "Where they meet" heat map (2026-10-24): smooth blue-white-red, zone + shadow band drawn over it */
.zmap .zhit { fill: transparent; }
.zmap.zheat .zbox { stroke-width: 1.4; opacity: .9; }
.zmap .zgrid { fill: none; stroke: var(--color-text-primary); stroke-width: .4; opacity: .35; pointer-events: none; }
.zmap .zshadow { fill: none; stroke: var(--color-text-tertiary); stroke-width: .6; stroke-dasharray: 1.6 1.6; pointer-events: none; }
.zheatkey { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--color-text-secondary); }
.zheatkey i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--z-cold), transparent 50%, var(--z-hot)); box-shadow: inset 0 0 0 .5px var(--color-text-tertiary); }
.zdetail { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 18px 0 10px; padding-top: 12px; border-top: 1px solid var(--color-border-primary, rgba(127,127,127,.2)); font: 600 12px/1 var(--font-sans); color: var(--color-text-secondary); }
/* pitch ranking on Hot Zones (owner 2026-10-24) */
.zrankhead { font-size: 11.5px; color: var(--color-text-secondary); margin: 2px 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
/* pitch pills as gauges (owner 2026-10-24): his best pitch full; the rest fill by how close they come to it */
.zpitches button.zfill { background: linear-gradient(to right, color-mix(in oklab, var(--z-cold) 34%, var(--ui-fill)) var(--zf), var(--ui-fill) var(--zf)); }
.zpitches button.zfill.on { background: linear-gradient(to right, color-mix(in oklab, var(--z-cold) 70%, var(--ui-ink)) var(--zf), var(--ui-ink) var(--zf)); }
.zrankkey { display: inline-flex; align-items: center; gap: 5px; color: var(--color-text-tertiary); }
.zrankkey i { width: 14px; height: 8px; border-radius: 4px; display: inline-block; }
.zrankkey i.b { background: linear-gradient(to right, color-mix(in oklab, var(--z-cold) 55%, var(--ui-fill)) 60%, var(--ui-fill) 60%); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--z-cold) 30%, transparent); }
.zpitches .zrank { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; margin-right: 6px; border-radius: 999px; font: 700 10px/1 var(--font-sans); background: var(--ui-ink); color: var(--ui-on-ink); opacity: .75; }
.zpitches button.on .zrank { background: var(--ui-on-ink); color: var(--ui-ink); }
.zrankline { font-size: 13px; color: var(--color-text-secondary); margin: 8px 0 2px; }
/* hitter vs pitches like each one (owner 2026-11-05): red = the hitter's side, blue = the pitcher's, as on the maps */
.zhs { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; font: 700 10px/1.1 var(--font-sans); letter-spacing: .01em; vertical-align: 1px; }
.zhs.h { background: var(--z-hot); color: #fff; }
.zhs.s { background: var(--z-cold); color: #fff; }
.zhs.a { box-shadow: inset 0 0 0 1px currentColor; opacity: .75; }
.zhsline { font-size: 12.5px; color: var(--color-text-secondary); margin: 4px 0 2px; line-height: 1.45; }
.zhsline .zhs { margin: 0 4px 0 0; }

/* player pages (owner 2026-10-25): hot zones (the card's player maps, both measures, either hand) + movement profile with the Glitch+ signal */
.pz-card .zpitches { padding-bottom: 6px; }
.pz-sub { font-size: 12px; color: var(--color-text-secondary); margin: 2px 0 10px; }
.pz-head { margin-top: 0; padding-top: 0; border-top: 0; }
.mv-card { --mv-grid: var(--color-border-tertiary); --mv-axis: var(--color-border-secondary); --mv-ink: var(--color-text-tertiary); --mv-sig: #d0342c; --mv-ring: var(--color-bg-primary); }
:root[data-theme="dark"] .mv-card { --mv-sig: #ff6b5e; }
.mv-head { margin-top: 0; padding-top: 0; border-top: 0; }
.mv-signal { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--color-bg-tertiary); font-size: 12.5px; line-height: 1.4; margin-bottom: 10px; }
.mv-signal b { font-size: 13px; }
.mv-signal span { color: var(--color-text-secondary); }
.mv-signal.on { box-shadow: inset 3px 0 0 var(--mv-sig); }
.mv-wrap { display: flex; justify-content: center; }
.mv-svg { width: 100%; max-width: 360px; height: auto; display: block; }
.mv-svg .mv-g { stroke: var(--mv-grid); stroke-width: .6; }
.mv-svg .mv-g0 { stroke: var(--mv-axis); stroke-width: 1; }
.mv-svg .mv-tk { font: 500 8px/1 var(--font-sans); fill: var(--mv-ink); }
.mv-svg .mv-ax { font: 600 9px/1 var(--font-sans); fill: var(--color-text-secondary); letter-spacing: .02em; }
.mv-svg .mv-typ { fill-opacity: .07; stroke-opacity: .7; stroke-width: 1.1; stroke-dasharray: 3 2.5; }
.mv-svg .mv-dot { fill-opacity: .5; stroke: var(--mv-ring); stroke-width: .5; }
.mv-svg .mv-mean { stroke: var(--mv-ring); stroke-width: 2; }
.mv-svg .mv-slot { stroke: var(--color-text-tertiary); stroke-width: 1; stroke-dasharray: 2 3; }
.mv-svg .mv-slotp { fill: var(--color-bg-primary); stroke: var(--color-text-primary); stroke-width: 1.4; }
.mv-svg .mv-sig { stroke: var(--mv-sig); stroke-width: 1.3; stroke-linecap: round; fill: none; }
.mv-svg .mv-sigh { fill: var(--mv-sig); }
.mv-svg .mv-sig-halo { stroke: var(--mv-ring); stroke-width: 3.4; stroke-linecap: round; fill: none; }
.mv-svg .mv-sigh-halo { fill: var(--mv-ring); stroke: var(--mv-ring); stroke-width: 2.2; stroke-linejoin: round; }
.mv-svg .mv-armb { stroke: var(--mv-axis); stroke-width: 1.2; }
.mv-svg .mv-arml { stroke: var(--color-text-secondary); stroke-width: 2.4; stroke-linecap: round; }
.mv-svg .mv-armb2 { fill: var(--color-text-secondary); }
.mv-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 10px; }
.mv-legend button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 5px 10px; font: 600 11.5px/1 var(--font-sans); background: var(--ui-fill); color: var(--ui-ink); cursor: pointer; }
.mv-legend button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mv-legend button.off { opacity: .4; text-decoration: line-through; }
.mv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mv-table th { font: 600 10.5px/1 var(--font-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-tertiary); text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--color-border-tertiary); }
.mv-table th:first-child, .mv-table td:first-child { text-align: left; }
.mv-table td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--color-border-tertiary); vertical-align: top; }
.mv-table td small { display: block; font-size: 10.5px; color: var(--color-text-tertiary); margin-top: 1px; }
.mv-table .mv-name { display: flex; align-items: flex-start; gap: 6px; }
.mv-table .mv-name i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-top: 3px; flex: 0 0 auto; }
.mv-table .mv-name small.mv-listed { display: block; }
.mv-wrap { position: relative; }
.mv-svg .mv-hit { fill: transparent; cursor: pointer; outline: none; }
.mv-svg .mv-mean, .mv-svg .mv-typ, .mv-svg .mv-slot, .mv-svg .mv-slotp, .mv-svg .mv-sig, .mv-svg .mv-sigh, .mv-svg .mv-sig-halo, .mv-svg .mv-sigh-halo, .mv-svg .mv-arm { pointer-events: none; }
.mv-svg .mv-hit:focus-visible { stroke: var(--color-text-primary); stroke-width: 1.2; }
.mv-pop { position: absolute; transform: translate(-50%, calc(-100% - 6px)); z-index: 5; background: var(--color-bg-primary); color: var(--color-text-primary);
  border: 0.5px solid var(--color-border-secondary); border-radius: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .14); padding: 7px 10px; font-size: 12px;
  line-height: 1.35; white-space: nowrap; }
.mv-pop.below { transform: translate(-50%, 6px); }
.mv-pop-h { display: flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 4px; }
.mv-pop-h i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mv-pop-h span { font-weight: 500; color: var(--color-text-secondary); margin-left: 4px; }
.mv-pop-s { font-size: 11.5px; color: var(--color-text-secondary); margin: -2px 0 4px; }
.mv-pop-g { display: grid; grid-template-columns: auto auto; gap: 1px 12px; font-variant-numeric: tabular-nums; }
.mv-pop-g span { color: var(--color-text-secondary); }
.mv-pop-g b { font-weight: 600; text-align: right; }
/* player page: the two tabs under the percentile rankings (owner 2026-10-25), the matchup card's tab style (.mx-tabs / .mx-tab) */
.pv-drops.mx-panel-card { margin: 1.25rem 0 0.75rem; padding: 0.6rem; }
.pv-drops .mx-tabs { margin-top: 0; }
#pv-drop:not(:empty) { margin: 0 0 1.25rem; }
.pv-drop-box .mx-panel-card { margin-top: 0; }
.mv-table tr.mv-none td { color: var(--color-text-tertiary); }
/* where each pitch gets better (owner 2026-10-25): one smoothed square per pitch, heat-map colors */
.gn-block { margin-top: 0; }
.gn-head { font: 600 12px/1 var(--font-sans); color: var(--color-text-secondary); margin-bottom: 10px; }
.gn-maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 10px; }
.gn-map { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gn-map svg { width: 100%; max-width: 190px; height: auto; display: block; }
.gn-map .gn-bg { fill: var(--color-bg-primary); }
.gn-map .gn-frame { fill: none; stroke: var(--color-border-secondary); stroke-width: .8; }
.gn-map .gn-axis { stroke: var(--color-text-tertiary); stroke-width: .4; stroke-dasharray: 1.5 2; opacity: .6; }
.gn-map .gn-zero { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.gn-map .gn-dot { stroke: var(--color-bg-primary); stroke-width: 1.6; }
.gn-map .gn-lab { font: 600 7px/1 var(--font-sans); fill: var(--color-text-tertiary); }
.gn-map figcaption { text-align: center; font-size: 12px; line-height: 1.3; display: flex; flex-direction: column; }
.gn-map figcaption b { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.gn-map figcaption b i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.gn-map figcaption span { color: var(--color-text-secondary); font-size: 11.5px; }
.gn-map figcaption .gn-odd { font-size: 10.5px; color: var(--color-text-tertiary); font-style: italic; }
.gn-map .gn-out { fill: var(--color-bg-primary); opacity: .45; }
/* the velo strip under each circle (owner 2026-11-04): 3 mph slower to 3 mph faster, same colors */
.gn-map svg.gv-svg { margin-top: -2px; }
.gn-map .gv-out { fill: var(--color-bg-primary); opacity: .55; }
.gn-map .gv-tick { stroke: var(--color-text-tertiary); stroke-width: .5; opacity: .7; }
.gn-map figcaption .gv-say { font-size: 11px; color: var(--color-text-secondary); }
.gn-block .gn-head { margin: 0 0 10px; padding-top: 0; border-top: 0; flex-wrap: wrap; }

/* the hitter figure beside each zone map (owner 2026-10-25) */
.zmap .zbatter { fill: var(--color-text-tertiary); opacity: .45; }

/* where he throws it (pitcher pages): the left of three maps */
.zmaps.z3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .zmaps.z3 { grid-template-columns: 1fr 1fr; } .zmaps.z3 > .zuse { grid-column: 1 / -1; } }

/* college player pages: show one, two or three maps (owner 2026-10-26) */
.pz-show { margin-bottom: 6px; }
.zmaps.zn1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.zmaps.zn2 { grid-template-columns: 1fr 1fr; }
.mv-table td.mv-stuff { font-weight: 700; }
.mv-table td.mv-dim { color: var(--color-text-tertiary); }

/* matchup card: Defense tab (owner 2026-10-26) */
.df-head { font-size: 13.5px; margin-bottom: 8px; }
.df-wrap { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: 14px; align-items: start; }
@media (max-width: 640px) { .df-wrap { grid-template-columns: 1fr; } }
.df-svg { width: 100%; height: auto; }
.df-line, .df-fence { fill: none; stroke: var(--color-border-secondary, #c9c9c9); stroke-width: 1; }
.df-dirt { fill: none; stroke: #c9a67a; stroke-width: 1; stroke-dasharray: 3 2; }
.df-diamond { fill: none; stroke: var(--color-border-secondary, #c9c9c9); stroke-width: 0.8; }
.df-gb { fill: #a8673a; opacity: 0.55; }
.df-air { fill: #2b8fd6; opacity: 0.45; }
.df-std { fill: var(--color-bg-primary, #fff); stroke: var(--color-text-secondary, #777); stroke-width: 1.1; stroke-dasharray: 2 1.5; }
.df-pos { fill: var(--color-text-primary, #111); }
.df-arrow { stroke: var(--color-text-primary, #111); stroke-width: 1.4; }
.df-lab { fill: var(--color-bg-primary, #fff); font: 700 4.4px/1 var(--font-sans, sans-serif); text-anchor: middle; }
.df-gbline { font-size: 12.5px; color: var(--color-text-secondary); margin: 6px 0; }
.df-key { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--color-text-secondary); margin-top: 6px; }
.df-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.df-k-pos { background: var(--color-text-primary, #111); } .df-k-std { border: 1px dashed var(--color-text-tertiary, #999); }
.df-k-gb { background: #a8673a; } .df-k-air { background: #2b8fd6; }
.gn-bleed-bg { fill: var(--color-bg-secondary, #eee); opacity: 0.85; }
.gn-bleed-line { stroke: var(--color-text-tertiary, #999); stroke-width: 1.2; }
.gn-bleed { stroke: var(--color-text-tertiary, #999); stroke-width: 0.6; stroke-dasharray: 2 1.5; }
.gn-bleed-lab { font: 600 6.5px/1 var(--font-sans, sans-serif); fill: var(--color-text-secondary, #555); }
/* the two grades sit together, a little apart from the measurements (owner 2026-10-26) */
.mv-table .mv-g1 { width: 1%; white-space: nowrap; padding-left: 10px; padding-right: 8px; }
.mv-table .mv-g2 { width: 1%; white-space: nowrap; padding-left: 8px; padding-right: 20px; border-right: 1px solid var(--color-border-tertiary); }
.mv-table th.mv-g1, .mv-table th.mv-g2 { text-align: right; }

/* field-level view (owner 2026-10-27): each fielder's area shaded by the hitter's share of balls there, moves labeled in feet */
.df-card { --z-hot: #e34948; --z-cold: #2a78d6; }
:root[data-theme="dark"] .df-card { --z-hot: #e66767; --z-cold: #3987e5; }
.df-zone { stroke: var(--color-bg-primary, #fff); stroke-width: 0.8; } .df-zone.hot { fill: var(--z-hot); } .df-zone.cold { fill: var(--z-cold); }
.df-zpct { fill: var(--color-text-primary, #111); font: 700 7px/1 var(--font-sans, sans-serif); text-anchor: middle; opacity: 0.85; }
.df-ft { fill: var(--color-text-primary, #111); font: 800 6.6px/1 var(--font-sans, sans-serif); paint-order: stroke; stroke: var(--color-bg-primary, #fff); stroke-width: 2.5px; }
.df-headfill { fill: var(--color-text-primary, #111); }
.df-k-heat { width: 34px !important; height: 8px !important; border-radius: 4px !important; background: linear-gradient(90deg, #2a78d6, #f0efec, #e34948); box-shadow: inset 0 0 0 .5px var(--color-text-tertiary); }
.df-moves li b { min-width: 2em; display: inline-block; }
.df-few { font-size: 11.5px; color: var(--color-text-secondary); margin-top: 6px; font-style: italic; }
/* the pitch designer (owner 2026-11-04): one movement chart, drag a pitch, velo slider; side panel; stacks when narrow */
.pd-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 18px; align-items: start; }
.pd-chart { min-width: 0; }
.pd-svg { width: 100%; max-width: 470px; height: auto; display: block; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.pd-svg .pd-reach { fill: none; stroke: var(--color-text-tertiary); stroke-width: .6; stroke-dasharray: 2 2; opacity: .7; pointer-events: none; }
.pd-svg .pd-dot { stroke: var(--color-bg-primary); stroke-width: 1.4; cursor: grab; }
.pd-svg .pd-dot.off { opacity: .55; cursor: default; }
.pd-svg .pd-sel { fill: none; stroke: var(--color-text-primary); stroke-width: 1.4; pointer-events: none; }
.pd-svg .pd-now { fill: none; stroke-width: 1.3; stroke-dasharray: 2.2 1.8; pointer-events: none; }
.pd-svg .pd-arrow { stroke: var(--color-text-secondary); stroke-width: 1.2; fill: none; pointer-events: none; }
.pd-svg .pd-arrowh { fill: var(--color-text-secondary); pointer-events: none; }
.pd-svg .pd-code { font: 700 5.6px/1 var(--font-sans); fill: #fff; pointer-events: none; }
.pd-svg .gn-bleed { pointer-events: none; }
.pd-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 12.5px; }
.pd-card { border: .5px solid var(--color-border-secondary); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.pd-name { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pd-name i, .pd-rows i, .pd-sum i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.pd-ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pd-ins label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--color-text-secondary); }
.pd-ins input { width: 100%; box-sizing: border-box; font: 500 13px/1.2 var(--font-sans); padding: 5px 6px; border-radius: 6px; border: .5px solid var(--color-border-secondary); background: var(--color-bg-primary); color: var(--color-text-primary); }
.pd-ins small { color: var(--color-text-tertiary); font-size: 10.5px; }
.pd-velo { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--color-text-tertiary); }
.pd-velo input { flex: 1; accent-color: var(--z-hot); }
.pd-read { display: flex; flex-direction: column; gap: 3px; color: var(--color-text-secondary); }
.pd-read b, .pd-ars b, .pd-rows b { color: var(--color-text-primary); }
.pd-read b.up, .pd-ars b.up, .pd-rows b.up { color: var(--z-hot); }
.pd-read b.dn, .pd-ars b.dn, .pd-rows b.dn { color: var(--z-cold); }
.pd-read small { color: var(--color-text-tertiary); font-size: 11px; }
.pd-btns { display: flex; gap: 8px; }
.pd-btns button { font: 600 12px/1 var(--font-sans); padding: 7px 12px; border-radius: 999px; border: .5px solid var(--color-border-secondary); background: var(--color-bg-primary); color: var(--color-text-primary); cursor: pointer; }
.pd-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pd-rows li { display: grid; grid-template-columns: auto 1fr auto; column-gap: 6px; align-items: center; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.pd-rows li > b { grid-column: 3; grid-row: 1; }
.pd-rows li em { grid-column: 2; font-style: normal; font-size: 11px; color: var(--color-text-tertiary); }
.pd-rows li.on { background: var(--ui-fill, rgba(127,127,127,.08)); }
.pd-ars { color: var(--color-text-secondary); }
.pd-ars small { display: block; color: var(--color-text-tertiary); font-size: 10.5px; }
@media print { .pd-btns, .pd-velo input { display: none; } }
.pd-svg .mv-g { stroke: var(--color-border-tertiary); stroke-width: .6; }
.pd-svg .mv-g0 { stroke: var(--color-border-secondary); stroke-width: 1; }
.pd-svg .mv-tk { font: 500 8px/1 var(--font-sans); fill: var(--color-text-tertiary); }
.pd-svg .mv-ax { font: 600 9px/1 var(--font-sans); fill: var(--color-text-secondary); letter-spacing: .02em; pointer-events: none; }
.pd-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--color-text-tertiary); }
.pd-bar button { font: 600 11px/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; border: .5px solid var(--color-border-secondary); background: var(--color-bg-primary); color: var(--color-text-primary); cursor: pointer; }
@media print { .pd-bar { display: none; } }
.pd-svg .pd-reachline { fill: none; stroke: var(--color-text-secondary); stroke-width: .7; stroke-dasharray: .6 2.2; stroke-linecap: round; opacity: .6; pointer-events: none; }
.pd-svg .pd-out-line { stroke: var(--color-text-secondary); stroke-width: .5; opacity: .45; }
.pd-svg .pd-thin-dot { fill: var(--color-text-primary); opacity: .35; }
.pd-svg .pd-thin { pointer-events: none; }
.pd-pick { color: var(--color-text-secondary); }
.pd-pick b { color: var(--color-text-primary); font-size: 13px; }
.pd-redkey i { background: linear-gradient(90deg, transparent, var(--z-hot)); }
.pd-lever { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; font-size: 12.5px; color: var(--color-text-secondary); }
.pd-lever button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.pd-lever > button { font-size: 13px; color: var(--color-text-primary); padding: 6px 10px; border-radius: 8px; border: .5px solid var(--color-border-secondary); }
.pd-lever b.up { color: var(--z-hot); }
.pd-lever-more { font-size: 11.5px; color: var(--color-text-tertiary); }
.pd-lever-more button { text-decoration: underline dotted; text-underline-offset: 2px; }
.pd-lever.none { color: var(--color-text-tertiary); }
.pd-svg .pd-normal { fill: none; stroke: var(--color-text-secondary); stroke-width: 1; stroke-dasharray: 1.5 1.5; opacity: .8; pointer-events: none; }
.pd-usage { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: -4px 0 10px; font-size: 12px; color: var(--color-text-secondary); }
.pd-usage b { color: var(--color-text-primary); font-weight: 600; }
.pd-usage small { flex-basis: 100%; font-size: 10.5px; color: var(--color-text-tertiary); }
/* panel cleanup (owner 2026-11-04): lever + plan up top, usage apart, one readout card, the rest behind Details */
.pd-plan { font-size: 12.5px; color: var(--color-text-secondary); }
.pd-plan small { color: var(--color-text-tertiary); font-size: 10.5px; }
.pd-usage { padding: 6px 10px; border-left: 2px solid var(--color-border-secondary); flex-direction: column; }
.pd-side .zheatkey { margin-top: 10px; }
.pd-details { margin-top: 10px; font-size: 12.5px; }
.pd-details summary { cursor: pointer; font-weight: 600; color: var(--color-text-secondary); }
.pd-det-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin: 10px 0; }
.pd-det-row .pd-ins { display: grid; grid-template-columns: auto repeat(3, minmax(70px, 110px)); align-items: end; gap: 8px; }
.pd-det-row button { font: 600 11px/1 var(--font-sans); padding: 6px 10px; border-radius: 999px; border: .5px solid var(--color-border-secondary); background: var(--color-bg-primary); color: var(--color-text-primary); cursor: pointer; }
.pd-details .pd-lever-more { margin: 8px 0; }
@media (max-width: 560px) { .pd-det-row .pd-ins { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pd-det-row .pd-ins .pd-name { grid-column: 1 / -1; } }
.pd-cardhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pd-cardhead button { font: 600 10.5px/1 var(--font-sans); padding: 5px 9px; border-radius: 999px; border: .5px solid var(--color-border-secondary); background: transparent; color: var(--color-text-secondary); cursor: pointer; }
.pd-details .pd-lever-more button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.pd-plan b { color: var(--color-text-primary); }
.pd-plan b.up { color: var(--z-hot); }
.pd-plan b.dn { color: var(--z-cold); }
/* one list (owner 2026-11-05): a row per pitch beside the chart; the picked row opens to edit it. Rows padded so the color dot never meets the
   row's rounded highlight ("some bleed over here with the colored dot") */
.pd-sum { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.pd-sum li { border-radius: 8px; padding: 6px 10px; }
.pd-rh { display: grid; grid-template-columns: 8px minmax(76px, auto) 1fr; column-gap: 8px; align-items: start; }
.pd-rh i { margin-top: 4px; }
.pd-rh b { white-space: nowrap; }
.pd-rh span { color: var(--color-text-secondary); }
.pd-rh span b { color: var(--color-text-primary); white-space: nowrap; }
.pd-rh span b.up { color: var(--z-hot); }
.pd-rh span b.dn { color: var(--z-cold); }
.pd-sum li.pd-pickable .pd-rh { cursor: pointer; }
.pd-sum li.pd-pickable:hover, .pd-sum li.on { background: var(--color-bg-secondary); }
.pd-edit { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 2px 16px; }
.pd-hint { margin: 0 0 6px; font-size: 12px; color: var(--color-text-tertiary); }
@media print { .pd-edit, .pd-hint { display: none; } }
.pd-rh span small { color: var(--color-text-tertiary); font-size: 11px; }
/* the three headlines (owner 2026-11-05): Focus first / Complete arsenal optimization / Your plan - buttons that set the chart */
.pd-heads { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.pd-head { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; font: inherit; font-size: 12.5px; color: var(--color-text-secondary);
  background: var(--color-bg-primary); border: .5px solid var(--color-border-secondary); border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.pd-head small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-tertiary); }
.pd-head b { font-size: 15px; color: var(--color-text-primary); }
.pd-head b.up { color: var(--z-hot); }
.pd-head b.dn { color: var(--z-cold); }
.pd-head:hover:not(:disabled) { background: var(--color-bg-secondary); }
.pd-head.on { border-color: var(--color-text-primary); box-shadow: inset 0 0 0 1px var(--color-text-primary); }
.pd-head:disabled { cursor: default; opacity: .7; }
.pd-scale { margin: 6px 0 10px; font-size: 11px; color: var(--color-text-tertiary); }
.pd-scale button { font: inherit; color: var(--color-text-secondary); background: none; border: 0; padding: 0 0 0 6px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
@media print { .pd-scale button { display: none; } }
.pd-head em { font-style: normal; display: block; margin-top: 2px; font-size: 11px; color: var(--z-cold); }
.pd-rh small.pd-more { display: block; margin-top: 3px; color: var(--color-text-secondary); font-size: 11.5px; }
.pd-rh small.pd-more b { color: var(--color-text-primary); }
/* SWING / TAKE SPOTS on hitter player pages (owner 2026-11-09; matchmaker.js swingTakeHtml): 2 "swing more" + 2 "lay off" spots, each a small
   zone figure with the spot filled (red = swing more, blue = lay off), the spot's name and his numbers there */
.st-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border-tertiary, rgba(127,127,127,.2)); }
.st-title { font: 600 13px/1.2 var(--font-sans); margin-bottom: 10px; }
.st-title span { font-weight: 500; color: var(--color-text-secondary); margin-left: 4px; }
.st-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.st-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.st-h { font: 700 11px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.st-h.hot { color: var(--z-hot); }
.st-h.cold { color: var(--z-cold); }
.st-row { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; }
.st-row span { display: block; font-size: 12px; color: var(--color-text-secondary); }
.stg { width: 48px; height: 48px; display: block; }
.stg .stg-c { fill: var(--z-mid); stroke: var(--color-bg-primary); stroke-width: 2.5; }
.stg .stg-z { fill: none; stroke: var(--color-text-tertiary); stroke-width: 1.6; }
.stg .stg-r { fill: transparent; stroke: var(--color-text-tertiary); stroke-width: 1; stroke-dasharray: 3 3; }
.stg .on.hot { fill: var(--z-hot); }
.stg .on.cold { fill: var(--z-cold); }
.stg .stg-r.on { stroke: none; }
.st-note { font-size: 11.5px; color: var(--color-text-secondary); margin-top: 10px; line-height: 1.4; }
@media (max-width: 560px) { .st-cols { grid-template-columns: 1fr; gap: 14px; } }
