/* Miami baseball: real-data components. Orange #F47321, green #005030. */
:root{--mia-maroon:#005030;--mia-maroon-deep:#003a22;--mia-gold:#F47321;--mia-gold-soft:#dfe9e3;--mia-made:#005030;--mia-floor:#eef4ef;--mia-floor-line:#b9cbbf}
:root[data-theme="dark"]{--mia-made:#7fd0a6;--mia-floor:#1d2a36;--mia-floor-line:#5e6f7d}
.playeravatar.has-photo{padding:0;overflow:hidden;background:var(--mia-gold-soft)}
.playeravatar.has-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;display:block}
.playercell{display:flex;align-items:center;gap:10px;min-width:0}
.jersey{color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums}
.grade.na{background:var(--surface-soft,#f2f5f7);color:var(--muted)}
.column-empty{border:1px dashed var(--line);border-radius:8px;padding:22px 12px;text-align:center;font-size:11px;color:var(--muted)}
.depth-player{display:flex;align-items:center;gap:10px}
.depth-player .grow{min-width:0}
.depth-player .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lineup-slot{display:grid;grid-template-columns:120px 34px minmax(0,1fr);align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.lineup-slot:last-of-type{border-bottom:0}
.lineup-slot select{width:100%;max-width:320px;justify-self:end}
/* Season strip */
.mia-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:18px 0 22px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);overflow:hidden}
.mia-strip>div{padding:16px 18px;border-right:1px solid var(--line);min-width:0}
.mia-strip>div:last-child{border-right:0}
.mia-strip span{display:block;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:600}
.mia-strip b{display:block;font-size:18px;margin:6px 0 3px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mia-strip small{display:block;font-size:11px;color:var(--muted);line-height:1.45}
/* Shot chart */
.shot-chart{width:100%;max-width:520px;height:auto;display:block;margin:0 auto}
.shot-chart .sc-floor{fill:var(--mia-floor);stroke:var(--mia-floor-line)}
.shot-chart .sc-lines path,.shot-chart .sc-lines rect,.shot-chart .sc-lines circle{stroke:var(--mia-floor-line);stroke-width:1.5}
.shot-chart circle.sc-made{fill:var(--mia-made);stroke:#fff;stroke-width:1;opacity:.9}
.shot-chart circle.sc-miss{fill:none;stroke:var(--muted);stroke-width:1.6;opacity:.75}
.sc-legend{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;font-size:11px;color:var(--muted);margin-top:10px}
.sc-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.sc-legend i.sc-made{background:var(--mia-made)}
.sc-legend i.sc-miss{border:1.6px solid var(--muted)}
.sc-legend i.att-acc{background:var(--mia-maroon);border-radius:2px}
.sc-legend i.att-non{background:var(--mia-gold);border-radius:2px}
.tablewrap.scroll-y{max-height:460px;overflow:auto}
.tablewrap.scroll-y thead th{position:sticky;top:0;background:var(--surface,#fff);z-index:1}
tr.mia-row td{background:color-mix(in srgb,var(--mia-gold-soft) 28%,transparent)}
/* Venue */
.mia-venue{margin-top:22px}
.mia-venue .metricgrid{margin-bottom:18px}
.att-chart{display:flex;align-items:flex-end;gap:6px;height:170px;padding:10px 4px 0;border-bottom:1px solid var(--line)}
.att-bar{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}
.att-bar span{display:block;width:100%;max-width:34px;background:var(--mia-gold);border-radius:3px 3px 0 0}
.att-bar.acc span{background:var(--mia-maroon)}
:root[data-theme="dark"] .att-bar.acc span{background:#3aa673}
.att-bar small{font-size:9px;color:var(--muted);white-space:nowrap;overflow:hidden;max-width:100%;padding-bottom:4px}
.home-dates{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin-top:10px}
.home-dates>div{border:1px solid var(--line);border-radius:8px;padding:9px 11px;min-width:0}
.home-dates b{display:block;font-size:11px;color:var(--muted);font-weight:600}
.home-dates span{display:block;font-size:13px;font-weight:600;margin:3px 0 2px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-dates small{display:block;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Staff */
.staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;padding:18px 20px}
.staff-card{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:10px;min-width:0}
.staff-card img{width:48px;height:64px;object-fit:cover;object-position:50% 10%;border-radius:6px;background:var(--mia-gold-soft);flex:none}
.staff-card b{display:block;font-size:13px;color:var(--ink)}
.staff-card span{display:block;font-size:11px;color:var(--muted);line-height:1.4;margin-top:2px}
/* Reports */
.report-head{display:flex;gap:12px;align-items:center;margin-bottom:12px}
.report-head>div{flex:1;min-width:0}
.report-head p{margin:0;font-size:12px}
.report-line{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:12px}
.report-line span{color:var(--muted);flex:none}
.report-line b{font-weight:500;text-align:right}
.csu-reports-grid .actions{margin-top:12px}
.profile-photo{width:64px;height:84px;object-fit:cover;object-position:50% 10%;border-radius:8px;background:var(--mia-gold-soft);flex:none}
@media (max-width:900px){.mia-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.mia-strip>div:nth-child(2){border-right:0}.mia-strip>div:nth-child(-n+2){border-bottom:1px solid var(--line)}}
@media (max-width:560px){.mia-strip{grid-template-columns:1fr}.mia-strip>div{border-right:0;border-bottom:1px solid var(--line)}.mia-strip>div:last-child{border-bottom:0}.lineup-slot{grid-template-columns:34px minmax(0,1fr)}.lineup-slot b{grid-column:1/-1}.att-chart{gap:3px}.att-bar small{display:none}.staff-grid{grid-template-columns:1fr;padding:14px}}
@media print{.mia-venue,.mia-strip{break-inside:avoid}}
.tracker-global-access .tga-disclosure:empty{display:none}
/* Inline action-help chips: keep them in page headers only; elsewhere they break row layouts. */
:is(.depth-player,.filters,.lineup-slot,.boardcard,.tablewrap,.compare-card,.panel-body,.drawer,.modal,.metricgrid) .ts-inline-help{display:none!important}
.tracker-support-tools{align-items:start}
.tracker-support-tools>details{align-self:start}
.home-dates small{white-space:normal}
.show-more{display:flex;justify-content:center;padding:14px}
.plan-input{width:130px!important;max-width:100%}.bc-plan-members{white-space:normal;max-width:260px;line-height:1.45}

/* Batted-ball map */
.spray-chart{width:100%;max-width:520px;height:auto;display:block;margin:0 auto}
.spray-chart .sp-grass{fill:var(--mia-floor);stroke:var(--mia-floor-line);stroke-width:1.5}
.spray-chart .sp-dirt{fill:color-mix(in srgb,var(--mia-gold) 14%,var(--mia-floor));stroke:none}
.spray-chart .sp-lines{stroke:var(--mia-floor-line);stroke-width:1.5;fill:none}
.spray-chart .sp-infield{fill:none;stroke:var(--mia-floor-line);stroke-width:1.5}
.spray-chart .sp-mound{fill:color-mix(in srgb,var(--mia-gold) 22%,var(--mia-floor));stroke:var(--mia-floor-line)}
.spray-chart .sp-zone circle{fill:var(--mia-made);stroke:#fff;stroke-width:1.5}
.spray-chart .sp-zone.empty circle{fill:none;stroke:var(--muted);stroke-dasharray:3 3}
.spray-chart .sp-zone text{font:700 12px/1 Inter,system-ui,sans-serif;fill:#fff;text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.25);stroke-width:2px}
.spray-chart .sp-zone.empty text{fill:var(--muted);stroke:none}
.meta-strong{font-size:12px;font-weight:600;color:var(--ink)}
.depth-grid.mia-depth{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));align-items:start}
@media (max-width:620px){.depth-grid.mia-depth{grid-template-columns:1fr}}

.mia-back-ad{flex:none;color:#fff;font-size:12px;font-weight:600;text-decoration:none;border:1px solid #ffffff55;border-radius:7px;padding:8px 12px;white-space:nowrap}
.mia-back-ad:hover{background:#ffffff14}
.mia-back-ad-hero{margin-top:10px}.mia-back-ad-hero a{color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:3px}
@media (max-width:1100px){.mia-back-ad{display:none}}
@media (min-width:1101px){.mia-back-ad-hero{display:none}}
