/* VS Code "Dark Modern" (the default dark theme) workbench colors. */
:root {
  --bg-editor: #1f1f1f;
  --bg-chrome: #181818;          /* title bar, activity bar, side bar, status bar, panels */
  --bg-input: #313131;
  --bg-widget: #202020;
  --bg-hover: #2a2d2e;
  --bg-active: #37373d;
  --bg-selected: #04395e;
  --border: #2b2b2b;
  --border-input: #3c3c3c;
  --fg: #cccccc;
  --fg-strong: #e7e7e7;
  --fg-muted: #9d9d9d;
  --fg-faint: #6e7681;
  --accent: #0078d4;
  --accent-hover: #026ec1;
  --link: #4daafc;
  --focus: #0078d4;
  --red: 248, 81, 73;            /* #f85149 */
  --green: 46, 160, 67;          /* #2ea043 */
  --error-fg: #f88070;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", system-ui, Ubuntu, "Droid Sans", sans-serif;
  --font-mono: "Cascadia Code", Consolas, "Courier New", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg-editor);
  color: var(--fg);
  font: 13px/1.4 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 1px solid var(--focus); outline-offset: -1px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---- workbench grid -------------------------------------------------------------------------------- */
.workbench {
  --side-w: 0px;
  --vod-w: 0px;
  display: grid;
  grid-template-rows: 35px minmax(0, 1fr) 22px;
  grid-template-columns: 48px minmax(0, 1fr) var(--vod-w) var(--side-w);   /* filters slide in on the far right */
  grid-template-areas: "title title title title" "activity editor vod side" "status status status status";
  height: 100vh;
  overflow: hidden;
  transition: grid-template-columns .2s ease;
}
.workbench.filters-open { --side-w: 280px; }
.workbench.vod-open { --vod-w: var(--vod-size, 560px); }
.workbench.resizing { transition: none; user-select: none; cursor: col-resize; }
.titlebar {
  grid-area: title;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 12px;
  font-size: 12px;
  color: var(--fg-muted);
}
.titlebar .brand { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.titlebar .brand svg { color: var(--accent); }
.titlebar .center { flex: 1; text-align: center; }
.titlebar .center .search {
  display: inline-block; min-width: 280px; max-width: 520px; width: 40%;
  background: var(--bg-input); border: 1px solid var(--border-input); border-radius: 6px;
  padding: 2px 10px; color: var(--fg-muted);
}
.titlebar form { margin: 0; display: flex; align-items: center; gap: 6px; }
.titlebar .user { color: var(--fg-muted); }

.activitybar {
  grid-area: activity;
  background: var(--bg-chrome);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
}
.activitybar .act {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--fg-faint); border: 0; border-left: 2px solid transparent; background: none; position: relative;
}
.activitybar button.act { cursor: pointer; }
.activitybar a.act:hover, .activitybar button.act:hover { color: var(--fg-strong); text-decoration: none; }
.activitybar .active, .activitybar button.act[aria-expanded="true"] { color: var(--fg-strong); border-left-color: var(--accent); }
.activitybar .soon { cursor: default; opacity: .45; }
.activitybar .act-sep { width: 24px; height: 1px; background: var(--border-input); margin: 2px 0 4px; }
.badge {
  position: absolute; right: 8px; bottom: 8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700; line-height: 16px; text-align: center;
}

.sidebar {
  grid-area: side;
  background: var(--bg-chrome);
  overflow: hidden;           /* clips the fixed-width content while the drawer slides */
  min-width: 0;
}
.filters-open .sidebar { border-left: 1px solid var(--border); }
.sidebar-inner { width: 280px; height: 100%; overflow-y: auto; }
/* Closed panels: hidden once the slide finishes, so they can't be tabbed into or peek out. */
.sidebar, .vodpanel { visibility: hidden; transition: visibility 0s .2s, transform .2s ease; }
.filters-open .sidebar, .vod-open .vodpanel { visibility: visible; transition: visibility 0s, transform .2s ease; }
.backdrop { display: none; }
.sidebar-title {
  height: 35px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 20px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted);
}
.section { border-top: 1px solid var(--border); }
.section > summary {
  list-style: none; cursor: pointer; height: 22px; display: flex; align-items: center; gap: 2px;
  padding-left: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--fg);
}
.section > summary::-webkit-details-marker { display: none; }
.section > summary::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: currentColor;
  -webkit-mask: url("chevron.svg") center / 16px no-repeat; mask: url("chevron.svg") center / 16px no-repeat;
  transform: rotate(0deg); transition: transform .1s;
}
.section[open] > summary::before { transform: rotate(90deg); }
.section .body { padding: 4px 12px 12px 20px; display: grid; gap: 6px; }
.section label.field { display: grid; gap: 3px; color: var(--fg-muted); font-size: 12px; }

select, input[type="date"], input[type="text"], input[type="password"] {
  width: 100%; height: 26px; padding: 2px 6px;
  background: var(--bg-input); color: var(--fg); border: 1px solid var(--border-input); border-radius: 2px;
  font: 13px var(--font-ui);
}
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); cursor: pointer; }
select:focus, input:focus { outline: none; border-color: var(--focus); }
.checklist { display: grid; gap: 1px; max-height: 220px; overflow-y: auto; }
.checklist label { display: flex; align-items: center; gap: 6px; padding: 2px 4px; border-radius: 3px; cursor: pointer; }
.checklist label:hover { background: var(--bg-hover); }
input[type="checkbox"] { accent-color: var(--accent); margin: 0; }

.btn {
  height: 26px; padding: 0 12px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-hover); }
.btn.secondary { background: #313131; color: var(--fg); border-color: var(--border-input); }
.btn.secondary:hover { background: #3c3c3c; }
.btn.ghost { background: transparent; color: var(--fg-muted); height: 22px; padding: 0 6px; }
.btn.ghost:hover { background: var(--bg-hover); color: var(--fg); }

/* ---- editor ---------------------------------------------------------------------------------------- */
.editor { grid-area: editor; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tabs { height: 35px; background: var(--bg-chrome); display: flex; border-bottom: 1px solid var(--border); flex: none; }
.tab {
  display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 35px;
  border-right: 1px solid var(--border); color: var(--fg-muted);
}
.tab.active { background: var(--bg-editor); color: var(--fg-strong); box-shadow: inset 0 1px 0 var(--accent); margin-bottom: -1px; }
.breadcrumbs { height: 22px; flex: none; padding: 0 16px; display: flex; align-items: center; gap: 4px; color: var(--fg-muted); font-size: 12px; }
.breadcrumbs .sep { opacity: .6; }
.editor-body { flex: 1; overflow: auto; padding: 8px 16px 24px; }

.grid { display: grid; gap: 12px; margin-bottom: 12px; }
.grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid.team-player { grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr); }

.panel { background: var(--bg-chrome); border: 1px solid var(--border); border-radius: 4px; min-width: 0; display: flex; flex-direction: column; }
.panel-head {
  height: 30px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px; border-bottom: 1px solid var(--border);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted);
}
.panel-head .hint { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-faint); }
.panel-body { overflow: auto; min-height: 0; }
.panel-body.tall { max-height: 420px; }
.empty { padding: 16px 12px; color: var(--fg-faint); font-style: italic; }

/* ---- recent scrims tiles --------------------------------------------------------------------------- */
.recent { display: flex; align-items: stretch; }
.recent-labels {
  flex: none; display: grid; grid-template-rows: 40px 34px 30px; align-items: center;
  padding: 8px 10px 10px 12px; color: var(--fg-muted); font-size: 12px; border-right: 1px solid var(--border);
}
.tiles { display: flex; gap: 6px; padding: 8px 10px 10px; overflow-x: auto; }
.tile {
  flex: none; width: 92px; display: grid; grid-template-rows: 40px 34px 30px; text-align: center;
  border: 1px solid var(--border-input); border-radius: 3px; cursor: pointer; background: var(--bg-widget);
  transition: opacity .1s;
}
.tile:hover { border-color: #5a5a5a; }
.tile .head { display: grid; align-content: center; border-bottom: 1px solid rgba(255,255,255,.06); line-height: 1.2; }
.tile .date { font-size: 11px; color: var(--fg-muted); }
.tile .opp { font-weight: 600; color: var(--fg-strong); }
.tile .wl { display: flex; align-items: center; justify-content: center; font: 600 15px var(--font-mono); color: var(--fg-strong); }
.tile .kd { display: flex; align-items: center; justify-content: center; font: 13px var(--font-mono); }
.dim .tile:not(.selected), .dim tr.row:not(.selected) { opacity: .38; }
.tile.selected, tr.row.selected td:first-child { box-shadow: inset 0 0 0 1px var(--focus); }

/* ---- tables ---------------------------------------------------------------------------------------- */
table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.data th {
  position: sticky; top: 0; z-index: 1; background: var(--bg-chrome);
  text-align: right; font-weight: 600; font-size: 11.5px; color: var(--fg-muted);
  padding: 6px 10px; border-bottom: 1px solid var(--border); white-space: normal; vertical-align: bottom; line-height: 1.25;
}
table.data th.l, table.data td.l { text-align: left; }
table.data td { padding: 4px 10px; text-align: right; border-bottom: 1px solid #242424; white-space: nowrap; }
table.data td.num { font-family: var(--font-mono); font-size: 12.5px; }
table.data tr.row { cursor: pointer; }
table.data tbody tr:hover td { background-image: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)); }
table.data td.strong { color: var(--fg-strong); font-weight: 600; }
table.data th.sortable { cursor: pointer; user-select: none; }
table.data th.sortable:hover { color: var(--fg); }
table.data th .arrow { font-size: 9px; margin-left: 3px; opacity: .8; }
.code { text-transform: uppercase; }

/* ---- status bar ------------------------------------------------------------------------------------ */
.statusbar {
  grid-area: status; background: var(--bg-chrome); border-top: 1px solid var(--border);
  display: flex; align-items: stretch; font-size: 12px; color: var(--fg-muted);
}
.statusbar .item { display: flex; align-items: center; gap: 5px; padding: 0 8px; white-space: nowrap; }
.statusbar .remote { background: var(--accent); color: #fff; padding: 0 10px; }
.statusbar .spacer { flex: 1; }
.statusbar button.item { background: none; border: 0; cursor: pointer; color: var(--fg); }
.statusbar button.item:hover { background: rgba(255,255,255,.12); }
.statusbar .loading { color: var(--fg); }

/* ---- login ----------------------------------------------------------------------------------------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login {
  width: 100%; max-width: 360px; background: var(--bg-chrome); border: 1px solid var(--border); border-radius: 6px;
  padding: 28px 28px 24px; box-shadow: 0 8px 24px rgba(0,0,0,.36);
}
.login h1 { font-size: 18px; font-weight: 600; margin: 12px 0 4px; color: var(--fg-strong); }
.login p.sub { margin: 0 0 20px; color: var(--fg-muted); }
.login label { display: grid; gap: 4px; margin-bottom: 12px; color: var(--fg-muted); font-size: 12px; }
.login input { height: 30px; }
.login .btn { width: 100%; height: 30px; margin-top: 6px; }
.login .error {
  background: rgba(var(--red), .12); border: 1px solid rgba(var(--red), .5); color: var(--error-fg);
  padding: 6px 10px; border-radius: 3px; margin-bottom: 14px;
}

.panel.grid-row { margin-bottom: 12px; }
.btn.icon { width: 22px; padding: 0; text-align: center; }

/* ---- breadcrumbs bar + filters button ---------------------------------------------------------------- */
.breadcrumbs { justify-content: space-between; height: 28px; }
.crumbs { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.filters-btn { display: inline-flex; align-items: center; gap: 5px; height: 22px; font-size: 12px; }
.filters-btn.has-active { color: var(--fg-strong); }
.filters-btn .count { background: var(--accent); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 10px; font-weight: 700; }

/* ---- calendar --------------------------------------------------------------------------------------- */
.range-label { color: var(--fg-strong); font-weight: 600; }
.presets { display: flex; gap: 4px; flex-wrap: wrap; }
.presets button {
  height: 22px; padding: 0 8px; border-radius: 11px; cursor: pointer; font-size: 11px;
  background: var(--bg-input); color: var(--fg); border: 1px solid var(--border-input);
}
.presets button:hover { border-color: #5a5a5a; }
.presets button.on { background: var(--bg-selected); border-color: var(--focus); color: #fff; }
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 4px; }
.cal-head .title { font-weight: 600; color: var(--fg-strong); }
.cal-head button {
  width: 24px; height: 24px; border: 0; border-radius: 4px; background: none; color: var(--fg-muted); cursor: pointer; font-size: 15px;
}
.cal-head button:hover:not(:disabled) { background: var(--bg-hover); color: var(--fg); }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-grid .dow { text-align: center; font-size: 10px; color: var(--fg-faint); padding: 2px 0 4px; text-transform: uppercase; }
.cal-grid .day {
  position: relative; height: 28px; border: 0; background: none; color: var(--fg); cursor: pointer;
  font: 12px var(--font-ui); border-radius: 0;
}
.cal-grid .day:hover { background: var(--bg-hover); border-radius: 4px; }
.cal-grid .day.out { color: var(--fg-faint); opacity: .5; }
.cal-grid .day.in { background: rgba(0, 120, 212, .22); }
.cal-grid .day.start, .cal-grid .day.end { background: var(--accent); color: #fff; font-weight: 600; }
.cal-grid .day.start { border-radius: 4px 0 0 4px; }
.cal-grid .day.end { border-radius: 0 4px 4px 0; }
.cal-grid .day.start.end { border-radius: 4px; }
.cal-grid .day.today { box-shadow: inset 0 0 0 1px var(--fg-faint); border-radius: 4px; }
.cal-grid .day.has::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--link);
}
.cal-grid .day.start.has::after, .cal-grid .day.end.has::after { background: #fff; }
.cal-hint { font-size: 11px; color: var(--fg-faint); }
.cal-hint.picking { color: var(--link); }

/* ---- multi-select: tiles, marquee, play buttons ------------------------------------------------------ */
.tiles { position: relative; user-select: none; }
.tile { position: relative; }
.tile.selected { box-shadow: inset 0 0 0 2px var(--focus); }
.marquee { position: absolute; border: 1px solid var(--focus); background: rgba(0, 120, 212, .15); pointer-events: none; z-index: 2; }
.play {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .45); color: #fff; opacity: 0; transition: opacity .1s;
}
.tile:hover .play, .tile:focus-within .play, .play:focus-visible { opacity: 1; }
.play:hover { background: var(--accent); }
@media (hover: none) { .play { opacity: .9; } }
td.playcell { width: 30px; padding: 0 0 0 6px; }
.play-sm {
  width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); color: var(--fg);
}
.play-sm:hover { background: var(--accent); color: #fff; }
.play-sm:disabled { opacity: .25; cursor: default; background: none; }
tr.row.selected td { box-shadow: inset 0 1px 0 var(--focus), inset 0 -1px 0 var(--focus); }
tr.row.selected td:first-child { box-shadow: inset 2px 0 0 var(--focus), inset 0 1px 0 var(--focus), inset 0 -1px 0 var(--focus); }
tr.row.playing td { font-weight: 600; color: var(--fg-strong); }

/* ---- VOD panel (secondary side bar) ------------------------------------------------------------------ */
.vodpanel { grid-area: vod; position: relative; background: var(--bg-chrome); overflow: hidden; min-width: 0; }
.vod-open .vodpanel { border-left: 1px solid var(--border); }
.vod-inner { width: var(--vod-size, 560px); height: 100%; display: flex; flex-direction: column; overflow-y: auto; }
.sash { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; cursor: col-resize; z-index: 3; }
.sash:hover, .resizing .sash { background: var(--focus); }
.vod-head { display: flex; align-items: center; gap: 6px; height: 35px; flex: none; padding: 0 8px 0 14px; border-bottom: 1px solid var(--border); }
.vod-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--fg-strong); }
.vod-title .kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--fg-muted); }
.vod-head a.btn { display: inline-flex; align-items: center; height: 22px; font-size: 12px; }
.player { flex: none; aspect-ratio: 16 / 9; background: #000; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player .no-vod { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--fg-muted); }
.vod-fallback {
  flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--fg-muted);
}
.vod-fallback span { flex: 1; min-width: 0; }
.vod-fallback a.btn { display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.vod-maps-head { flex: none; padding: 10px 14px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); }
.vod-maps { list-style: none; margin: 0; padding: 0 6px 12px; }
.vod-maps button {
  width: 100%; display: grid; grid-template-columns: minmax(28px, auto) 1fr auto 52px; align-items: center; gap: 8px;
  padding: 5px 8px; border: 0; border-radius: 3px; background: none; color: var(--fg); cursor: pointer; text-align: left;
}
.vod-maps button:hover:not(:disabled) { background: var(--bg-hover); }
.vod-maps button.current { background: var(--bg-selected); color: #fff; }
.vod-maps button:disabled { cursor: default; color: var(--fg-faint); }
.vod-maps .g { color: var(--fg-muted); font: 11px var(--font-mono); white-space: nowrap; }
.vod-maps .m .mode { color: var(--fg-muted); font-size: 11px; margin-left: 6px; }
.vod-maps .res { font: 12px var(--font-mono); }
.vod-maps .res.W { color: #6ccb5f; }
.vod-maps .res.L { color: var(--error-fg); }
.vod-maps .t { font: 11px var(--font-mono); color: var(--fg-muted); text-align: right; }

/* ---- page tabs (links) ------------------------------------------------------------------------------ */
a.tab { text-decoration: none; color: var(--fg-muted); }
a.tab:hover { color: var(--fg); background: var(--bg-hover); text-decoration: none; }
a.tab.active:hover { background: var(--bg-editor); color: var(--fg-strong); }
.tabs { overflow-x: auto; scrollbar-width: none; }

/* ---- map chips ------------------------------------------------------------------------------------ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.chip {
  height: 26px; padding: 0 12px; border-radius: 13px; cursor: pointer; font: 12px var(--font-ui); text-transform: capitalize;
  background: var(--bg-input); color: var(--fg); border: 1px solid var(--border-input);
}
.chip:hover { border-color: #5a5a5a; }
.chip.on { background: var(--bg-selected); border-color: var(--focus); color: #fff; }

/* ---- shared table bits -------------------------------------------------------------------------- */
table.data th.has-info, .has-info { text-decoration: underline dotted var(--fg-faint); text-underline-offset: 3px; cursor: help; }
table.data tr.total td { font-weight: 600; color: var(--fg-strong); border-top: 1px solid var(--border-input); }
table.data td.sep-right { border-right: 1px solid var(--border-input); }
.panel-sub { padding: 8px 12px 2px; font-size: 11px; color: var(--fg-muted); border-top: 1px solid var(--border); }

/* ---- HP Main layout ----------------------------------------------------------------------------- */
.grid.hp-top { grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr); }
.grid.hp-mid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); }
.games { display: flex; gap: 6px; padding: 8px 10px 10px; overflow-x: auto; position: relative; user-select: none; align-items: flex-start; }
.game {
  position: relative; flex: none; width: 112px; border: 1px solid var(--border-input); border-radius: 3px; cursor: pointer;
  background: var(--bg-widget); font-size: 12px; transition: opacity .1s;
}
.game.W { background: rgba(46, 160, 67, .22); }
.game.L { background: rgba(248, 81, 73, .22); }
.game:hover { border-color: #5a5a5a; }
.game.selected { box-shadow: inset 0 0 0 2px var(--focus); }
.dim .game:not(.selected) { opacity: .38; }
.game .head { display: grid; text-align: center; padding: 5px 4px 4px; border-bottom: 1px solid rgba(255,255,255,.06); line-height: 1.25; }
.game .date { font-size: 11px; color: var(--fg-muted); }
.game .opp { font-weight: 600; color: var(--fg-strong); }
.game .sub { font-size: 10.5px; color: var(--fg-muted); text-transform: capitalize; }
.game .line { display: flex; justify-content: space-between; padding: 2px 8px; font: 12px var(--font-mono); }
.game .line .lbl { color: var(--fg-muted); }
.game .line.final { border-top: 1px solid rgba(255,255,255,.08); font-weight: 600; color: var(--fg-strong); padding: 4px 8px 5px; }
.game:hover .play, .game:focus-within .play { opacity: 1; }

/* ---- HP In Depth chart -------------------------------------------------------------------------- */
.legend { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg-muted); }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.legend .dot.W { background: #3fb950; }
.legend .dot.L { background: #f85149; }
.legend .dash { width: 16px; border-top: 2px dashed var(--link); display: inline-block; margin-left: 8px; }
.chart { position: relative; padding: 6px 4px 0; min-height: 300px; user-select: none; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #2b2b2b; stroke-width: 1; }
.chart .zero { stroke: #5a5a5a; stroke-width: 1.2; }
.chart .avg { stroke: var(--link); stroke-width: 1.5; stroke-dasharray: 5 4; }
.chart .axis { fill: var(--fg-muted); font: 11px var(--font-ui); }
.chart .avg-label { fill: var(--link); }
.chart .pt { fill: #8b949e; stroke: #181818; stroke-width: 1.5; cursor: pointer; transition: opacity .1s; }
.chart .pt.W { fill: #3fb950; }
.chart .pt.L { fill: #f85149; }
.chart .pt:hover, .chart .pt:focus-visible { stroke: #fff; outline: none; }
.chart svg.has-sel .pt:not(.selected) { opacity: .28; }
.chart .pt.selected { stroke: #fff; stroke-width: 2; }
.chart .pt.playing { stroke: var(--link); stroke-width: 3; }
.chart-tip {
  position: absolute; z-index: 4; pointer-events: none; max-width: 300px; padding: 6px 9px; border-radius: 4px;
  background: #252526; border: 1px solid #454545; box-shadow: 0 4px 14px rgba(0,0,0,.4); font-size: 12px; line-height: 1.45;
}
.chart-tip .t-head { color: var(--fg-strong); font-weight: 600; }
.chart-tip .t-foot { color: var(--fg-faint); margin-top: 2px; }
.sel-hills {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 12px; border-top: 1px solid var(--border);
  min-height: 40px; max-height: 128px; overflow-y: auto; align-items: center;
}
.sel-hills .hint { color: var(--fg-faint); font-size: 12px; }
.hill-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 3px; border-radius: 13px; font-size: 12px;
  background: var(--bg-input); border: 1px solid var(--border-input); white-space: pre;
}
.hill-chip.W { border-color: rgba(63, 185, 80, .6); }
.hill-chip.L { border-color: rgba(248, 81, 73, .6); }

/* ---- dashboard reflows to the editor's own width (filters / VOD panels take space) ----------------- */
.editor { container-type: inline-size; }
@container (max-width: 960px) {
  .grid.two, .grid.team-player, .grid.hp-top, .grid.hp-mid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- phones: filters and VOD become overlays --------------------------------------------------------- */
@media (max-width: 760px) {
  .workbench, .workbench.filters-open, .workbench.vod-open {
    grid-template-columns: 0 minmax(0, 1fr) 0 0; height: 100dvh;
  }
  .activitybar { display: none; }
  .titlebar .center { display: none; }
  .sidebar {
    position: fixed; z-index: 20; top: 35px; bottom: 22px; right: 0; width: min(300px, 88vw);
    transform: translateX(100%); border-left: 1px solid var(--border);
  }
  .filters-open .sidebar { transform: none; }
  .sidebar-inner { width: 100%; }
  .filters-open .backdrop { display: block; position: fixed; inset: 35px 0 22px; z-index: 19; background: rgba(0,0,0,.5); }
  .vodpanel { position: fixed; z-index: 21; top: 35px; bottom: 22px; left: 0; right: 0; transform: translateY(100%); }
  .vod-open .vodpanel { transform: none; }
  .vod-inner { width: 100%; }
  .sash { display: none; }
  .editor-body { padding: 8px 12px 24px; }
}

/* ---- activity bar: bottom group (like VS Code's gear) ----------------------------------------------- */
.activitybar .act-spacer { flex: 1; }

/* ---- Player Names page ---------------------------------------------------------------------------- */
.intro { margin: 2px 0 12px; color: var(--fg-muted); max-width: 900px; }
.merge-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 10px; margin-bottom: 10px; background: var(--bg-chrome); border: 1px solid var(--border); border-radius: 4px;
}
.merge-bar #merge-count { color: var(--fg); min-width: 160px; }
.merge-bar .arrow { color: var(--fg-muted); }
.merge-bar input { width: 260px; height: 26px; }
.msg {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px; margin-bottom: 10px; border-radius: 3px;
  background: rgba(46, 160, 67, .14); border: 1px solid rgba(46, 160, 67, .5); color: var(--fg);
}
.msg.error { background: rgba(var(--red), .12); border-color: rgba(var(--red), .5); color: var(--error-fg); }
.suspects { display: grid; gap: 1px; }
.suspect { padding: 10px 12px; border-bottom: 1px solid #242424; }
.suspect:last-child { border-bottom: 0; }
.s-head { display: flex; align-items: center; gap: 10px; }
.s-name { font: 600 14px var(--font-mono); color: var(--fg-strong); }
.s-meta { color: var(--fg-muted); font-size: 12px; }
.s-sugg { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; margin-top: 8px; }
.s-sugg .btn { height: 24px; justify-self: start; }
.s-why { color: var(--fg-muted); font-size: 12px; }
.shows { display: inline-flex; align-items: center; gap: 6px; }
.shows .renamed { color: var(--link); font-weight: 600; }
.tag { font-size: 10.5px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--border-input); color: var(--fg-muted); }
.tag.custom { border-color: var(--focus); color: var(--link); }
table.data td.checkcell { width: 28px; padding-right: 0; }
table.data tr.picked td { background-color: rgba(0, 120, 212, .16); }
label.check { display: flex; align-items: center; gap: 6px; color: var(--fg); cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.toolbar label.inline { display: flex; align-items: center; gap: 6px; color: var(--fg-muted); }
.toolbar label.inline select { width: auto; min-width: 150px; }
.toolbar label.grow { flex: 1; min-width: 180px; max-width: 360px; }
.explain p { margin: 0 0 8px; color: var(--fg-muted); font-size: 12px; line-height: 1.5; }

/* ---- VOD that can't be embedded ------------------------------------------------------------------- */
.no-embed { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 24px; text-align: center; background: linear-gradient(180deg, #161616, #0d0d0d); }
.no-embed .ne-title { font-size: 15px; font-weight: 600; color: var(--fg-strong); }
.no-embed p { margin: 0; color: var(--fg-muted); max-width: 440px; line-height: 1.45; }
.no-embed a.btn { display: inline-flex; align-items: center; text-decoration: none; height: 28px; }
.no-embed .ne-hint { font-size: 11.5px; color: var(--fg-faint); }

/* ---- Player Hills ----------------------------------------------------------------------------------- */
.player-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pcard { background: var(--bg-chrome); border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px 12px; }
.pc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pc-name { font-size: 15px; font-weight: 600; color: var(--fg-strong); }
.pc-meta { color: var(--fg-muted); font-size: 12px; }
.pc-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-muted); margin: 8px 0 3px; }
.pc-none { color: var(--fg-faint); font-size: 12px; font-style: italic; }
.hill-line { display: grid; grid-template-columns: 1fr auto auto auto 60px; align-items: center; gap: 8px; cursor: pointer;
  padding: 3px 6px; border-radius: 3px; font-size: 12.5px; }
.hill-line.worst { background: rgba(var(--red), .10); }
.hill-line.best { background: rgba(var(--green), .10); }
.hill-line .where { text-transform: capitalize; color: var(--fg-strong); }
.hill-line .sit { font-size: 11px; color: var(--fg-muted); }
.hill-line .kd { font-family: var(--font-mono); color: var(--fg-strong); }
.hill-line .vs, .hill-line .n { font-family: var(--font-mono); color: var(--fg-muted); font-size: 11.5px; text-align: right; }
.hint-line { color: var(--fg-muted); font-size: 12px; margin: 0 0 12px; }
.metric-pick { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.metric-pick select { width: auto; height: 22px; font-size: 12px; }
.heat-map > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; text-transform: capitalize; border-top: 1px solid var(--border); }
.heat-map:first-child > summary { border-top: 0; }
table.heat th.grp { text-align: center; border-left: 1px solid var(--border-input); }
table.data th.grp { text-align: center; color: var(--fg); }       /* phase group header (HP Main Hill Timing) */
.timing-note { margin: 8px 0 0; }
table.heat th.sit { text-align: center; font-weight: 400; font-size: 11px; }
table.heat td.hcell { text-align: center; cursor: pointer; padding: 3px 6px; min-width: 52px; }
table.heat td.hcell .v { display: block; color: var(--fg-strong); }
table.heat td.hcell .n { display: block; font-size: 10px; color: var(--fg-muted); }
table.heat td.hcell.thin { opacity: .45; }
table.heat td.hcell:hover { outline: 1px solid var(--focus); outline-offset: -1px; }

/* ---- coach notes ------------------------------------------------------------------------------------ */
.note-btn {
  height: 20px; min-width: 22px; padding: 0 5px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  background: none; color: var(--fg-faint); font: 11px var(--font-ui); line-height: 18px;
}
.note-btn:hover { color: var(--fg); border-color: var(--border-input); }
.note-btn.has { color: #e2c08d; border-color: rgba(226, 192, 141, .45); background: rgba(226, 192, 141, .10); }
.tile-note { position: absolute; top: 3px; left: 3px; opacity: 0; transition: opacity .1s; }
.tile-note.has, .tile:hover .tile-note, .game:hover .tile-note, .tile:focus-within .tile-note, .game:focus-within .tile-note { opacity: 1; }
@media (hover: none) { .tile-note { opacity: .9; } }
td.notecell { width: 36px; text-align: center; }
.notes-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 720px); padding: 0; border: 1px solid #454545; border-radius: 6px;
  background: var(--bg-chrome); color: var(--fg); box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.notes-dialog[open] { display: flex; flex-direction: column; }
.notes-dialog::backdrop { background: rgba(0, 0, 0, .5); }
.nd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--border); }
.nd-head .kicker { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--fg-muted); text-transform: uppercase; }
#nd-title { color: var(--fg-strong); font-weight: 600; }
.nd-list { overflow-y: auto; padding: 4px 16px; flex: 1; min-height: 60px; }
.nd-form { padding: 10px 16px 14px; border-top: 1px solid var(--border); display: grid; gap: 8px; margin: 0; }
textarea { width: 100%; resize: vertical; background: var(--bg-input); color: var(--fg); border: 1px solid var(--border-input);
  border-radius: 2px; padding: 6px 8px; font: 13px/1.45 var(--font-ui); }
textarea:focus { outline: none; border-color: var(--focus); }
.nd-actions { display: flex; align-items: center; gap: 10px; }
.nd-actions .nd-msg { flex: 1; color: var(--fg-muted); font-size: 12px; }
.note { padding: 10px 0; border-bottom: 1px solid #242424; }
.note:last-child { border-bottom: 0; }
.n-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.n-author { color: var(--link); font-weight: 600; }
.n-body { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.n-acts { display: flex; gap: 4px; margin-top: 4px; }
.note-feed { padding: 4px 12px 12px; }
.note-card { border-bottom: 1px solid var(--border); padding: 8px 0 2px; }
.nc-head { display: flex; align-items: center; gap: 8px; }
.nc-label { color: var(--fg-strong); font-weight: 600; }
.nc-open { margin-left: auto; font-size: 12px; }

/* ---- Form & Alerts --------------------------------------------------------------------------------- */
.summary { margin: -4px 0 12px; padding: 8px 12px; border-left: 3px solid var(--focus); background: rgba(0, 120, 212, .08); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kpi { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-chrome); color: var(--fg); }
.kpi:hover { text-decoration: none; border-color: #5a5a5a; }
.kpi.flagged { border-color: rgba(226, 192, 141, .5); }
.k-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.k-label { color: var(--fg-muted); font-size: 12px; }
.k-flag { font-size: 10.5px; padding: 0 6px; border-radius: 8px; }
.k-flag.good { background: rgba(var(--green), .2); color: #6ccb5f; }
.k-flag.bad { background: rgba(var(--red), .18); color: var(--error-fg); }
.k-val { display: flex; align-items: baseline; gap: 8px; font: 600 24px var(--font-ui); color: var(--fg-strong); margin: 4px 0 2px; }
.k-sub { font-size: 11.5px; color: var(--fg-muted); }
.arrow { font-size: 12px; }
.arrow.good { color: #6ccb5f; }
.arrow.bad { color: var(--error-fg); }
.arrow.flat { color: var(--fg-faint); }
.grid.ov { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); }
.alerts { display: grid; }
.alert { display: grid; grid-template-columns: 22px 1fr auto auto 50px; gap: 10px; align-items: center; padding: 7px 12px;
  border-bottom: 1px solid #242424; color: var(--fg); }
.alert:hover { background: var(--bg-hover); text-decoration: none; }
.alert .a-label { text-transform: capitalize; color: var(--fg-strong); }
.alert .a-val { font-family: var(--font-mono); }
.alert .a-n { color: var(--fg-muted); font-size: 12px; }
.alert .a-go { color: var(--link); font-size: 12px; text-align: right; }
.cmp { display: inline-flex; gap: 6px; align-items: baseline; justify-content: flex-end; }
@container (max-width: 960px) { .grid.ov { grid-template-columns: minmax(0, 1fr); } }

/* ---- Game Deep Dive ------------------------------------------------------------------------------- */
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 8px; flex-wrap: wrap; }
.gh-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.gh-result { font: 700 13px var(--font-ui); padding: 1px 8px; border-radius: 3px; background: var(--bg-input); }
.gh-result.W { background: rgba(var(--green), .3); color: #8fdc84; }
.gh-result.L { background: rgba(var(--red), .25); color: var(--error-fg); }
.gh-score { font: 600 22px var(--font-mono); color: var(--fg-strong); }
.gh-teams { font-size: 15px; font-weight: 600; color: var(--fg-strong); }
.gh-meta { color: var(--fg-muted); text-transform: capitalize; }
.gh-acts { display: flex; gap: 6px; align-items: center; }
.legend .dot.us { background: #4daafc; }
.legend .dot.them { background: #d18616; }
.chart.race { min-height: 330px; }
.race .band.r0 { fill: rgba(255, 255, 255, .025); }
.race .band.r1 { fill: rgba(255, 255, 255, .055); }
.race .target { stroke: #5a5a5a; stroke-dasharray: 4 4; }
.race .rot-label { fill: var(--fg-muted); font-size: 10.5px; }
.race .mbar.up { fill: rgba(63, 185, 80, .8); }
.race .mbar.down { fill: rgba(248, 81, 73, .8); }
.race .hit { fill: transparent; cursor: pointer; }
.race .hit:hover, .race .hit:focus-visible { fill: rgba(0, 120, 212, .10); outline: none; }
table.data tr.them td { color: var(--fg-muted); }

/* ---- Scrim Trends ---------------------------------------------------------------------------------- */
.seg { display: inline-flex; border: 1px solid var(--border-input); border-radius: 3px; overflow: hidden; text-transform: none; letter-spacing: 0; }
.seg button { height: 22px; padding: 0 10px; border: 0; background: none; color: var(--fg-muted); cursor: pointer; font: 12px var(--font-ui); }
.seg button + button { border-left: 1px solid var(--border-input); }
.seg button.on { background: var(--bg-selected); color: #fff; }
.chart.trend { min-height: 240px; }
.chart .trend-line { fill: none; stroke: var(--link); stroke-width: 2.5; stroke-linejoin: round; }
.chart .tdot { fill: #8b949e; fill-opacity: .75; stroke: #181818; stroke-width: 1; }
.chart .tdot.W { fill: #3fb950; }
.chart .tdot.L { fill: #f85149; }
.trend-note { padding: 0 12px 10px; font-size: 11.5px; color: var(--fg-faint); }
.multiples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border); }
.multiple { background: var(--bg-chrome); padding: 8px 10px 4px; }
.mp-head { display: flex; align-items: baseline; gap: 8px; }
.mp-name { font-weight: 600; color: var(--fg-strong); }
.mp-val { color: var(--fg-muted); font-size: 12px; flex: 1; }
.mini { position: relative; min-height: 150px; }
.mini svg { display: block; width: 100%; height: auto; }
.mini .grid { stroke: #2b2b2b; } .mini .zero { stroke: #5a5a5a; } .mini .axis { fill: var(--fg-muted); font: 10px var(--font-ui); }
.mini .trend-line { fill: none; stroke: var(--link); stroke-width: 2; }
.mini .tdot { fill: #8b949e; fill-opacity: .75; } .mini .tdot.W { fill: #3fb950; } .mini .tdot.L { fill: #f85149; }


/* ---- Hill Impact / Team Comparison --------------------------------------------------------------------- */
.head-controls { display: inline-flex; gap: 8px; flex-wrap: wrap; }
table.matrix td.hcell { cursor: default; min-width: 58px; }
table.matrix tr.total td { border-top: 1px solid var(--border-input); }
table.matrix tr.map-start td { border-top: 1px solid var(--border-input); }
table.matrix td.l { text-transform: capitalize; white-space: nowrap; }
table.data tr.own td { box-shadow: inset 0 1px 0 rgba(77, 170, 252, .5), inset 0 -1px 0 rgba(77, 170, 252, .5); }
table.data tr.own td:first-child { color: var(--link); }
.bo-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 12px; }
.bo-cell { display: grid; min-width: 92px; padding: 6px 10px; border: 1px solid var(--border-input); border-radius: 3px; text-align: center; }
.bo-cell.thin { opacity: .45; }
.bo-cell.all { border-color: var(--focus); }
.bo-map { font-size: 12px; color: var(--fg-muted); text-transform: capitalize; }
.bo-v { font: 600 15px var(--font-mono); color: var(--fg-strong); }
.bo-n { font-size: 10.5px; color: var(--fg-muted); }

.hill-line { border: 1px solid transparent; margin-bottom: 2px; }
.hill-line:hover, .hill-line:focus-visible { border-color: var(--border-input); outline: none; filter: brightness(1.15); }
.hill-line.active { border-color: var(--focus); }


/* ---- Scrim Tracker: drag a box from anywhere in the strip; Detailed Scrims matches Overall's height ---- */
.recent .tiles { flex: 1; min-width: 0; }
.grid.two > .panel.fit > .panel-body { flex: 1 1 0; height: 0; min-height: 260px; overflow: auto; }


/* ---- round 8: in-cell bars, trend lines, full-width player trends ---------------------------------------- */
table.data td.barcell { position: relative; }
table.data td.barcell .track { position: absolute; inset: 4px 6px; pointer-events: none; }
table.data td.barcell .bar { position: absolute; top: 0; bottom: 0; border-radius: 2px; }
/* column rules; a .sep-right group rule wins the shared edge (left cell wins in border-collapse) */
table.data.divided th + th, table.data.divided td + td { border-left: 1px solid #2f2f2f; }
table.data th.sep-right { border-right: 1px solid var(--border-input); }
table.data td.barcell .bv { position: relative; }
table.data td.barcell.centered { background-image: linear-gradient(to right, transparent calc(50% - .5px), rgba(255,255,255,.18) calc(50% - .5px), rgba(255,255,255,.18) calc(50% + .5px), transparent calc(50% + .5px)); }
.chart .trend-line.weak, .mini .trend-line.weak { stroke-dasharray: 6 5; opacity: .75; }
.chart line.trend-line { stroke: var(--link); stroke-width: 2.5; }
.mini line.trend-line { stroke: var(--link); stroke-width: 2; }
.trend-note:empty { display: none; }
.multiples { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@container (max-width: 1100px) { .multiples { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); } }
@container (max-width: 700px) { .multiples { grid-template-columns: minmax(0, 1fr); } }

.race .pbar.us { fill: rgba(77, 170, 252, .32); }
.race .pbar.them { fill: rgba(209, 134, 22, .32); }
.race .axis2 { fill: var(--fg-faint); }
.chart.race { min-height: 360px; }
.chart .avgref { stroke: #6e7681; stroke-width: 1.2; stroke-dasharray: 2 4; }

/* ---- Hijack ------------------------------------------------------------------------------------------ */
.grid.hj-mid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); align-items: start; }
.hj-stack { display: grid; gap: 12px; min-width: 0; align-content: start; }
@container (max-width: 960px) { .grid.hj-mid { grid-template-columns: minmax(0, 1fr); } }
table.data tr.group td { background: var(--bg-widget); padding-top: 8px; }
table.data tr.group .grp { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
table.data tr.sub td { color: var(--fg-muted); }
table.data tr.sub td.strong { font-weight: 400; white-space: pre; }
.has-info { cursor: help; text-decoration: underline dotted rgba(255,255,255,.25); text-underline-offset: 3px; }
.res.W { color: #6ccb5f; } .res.L { color: var(--error-fg); }
.game.basic { border-style: dashed; }
.review-note { margin: -2px 0 10px; padding: 6px 10px; border-left: 3px solid #e2c08d; background: rgba(226, 192, 141, .08); color: var(--fg-muted); }
.legend .dot.us, .dot.us { background: #4daafc; }
.legend .dot.them, .dot.them { background: #d18616; }
.legend .dash.loose { width: 16px; border-top: 2px dashed #8b949e; display: inline-block; margin-left: 8px; }
.chart.mix { min-height: 0; padding: 10px 4px 6px; }
.chart.uploads { min-height: 0; padding: 10px 4px 4px; }
.chart .seglabel { fill: #fff; font: 600 11px var(--font-mono); pointer-events: none; }
.chart .ubar.us { fill: #4daafc; } .chart .ubar.them { fill: #d18616; }
.chart .hit { fill: transparent; }
.mix-legend { display: flex; padding: 2px 8px 0 76px; flex-wrap: wrap; gap: 2px 0; }
@container (max-width: 560px) { .mix-legend { padding-left: 4px; } }
.mix-legend .dot, .outcome-legend .dot, .reason .dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.outcome-legend { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 8px 12px 0; }
.outcomes { display: grid; gap: 6px; padding: 10px 12px 12px; }
.oc-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 150px; gap: 10px; align-items: center; }
.oc-name { color: var(--fg-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-bar { display: flex; height: 20px; gap: 2px; }
.oc-seg { display: flex; align-items: center; justify-content: center; border-radius: 2px; color: #fff; font: 600 10.5px var(--font-mono); overflow: hidden; min-width: 2px; }
.oc-n { color: var(--fg-muted); font-size: 11.5px; }
.reason { display: inline-flex; align-items: center; gap: 6px; }
.reason .dot { margin-left: 0; }
.them-name { color: var(--fg-muted); }
.chart.track { min-height: 380px; }
.track .upband.us { fill: rgba(77, 170, 252, .14); }
.track .upband.them { fill: rgba(209, 134, 22, .14); }
.track .path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.track .path.loose { stroke-dasharray: 4 3; stroke-width: 1.5; }
.track .plant { stroke: #181818; stroke-width: 2; }
.track .roundline { stroke: #6e7681; stroke-dasharray: 4 4; }
.track .cross { stroke: var(--fg-muted); stroke-width: 1; pointer-events: none; }
.track .hit { fill: transparent; cursor: pointer; }
.track .hit:focus-visible { outline: none; fill: rgba(0, 120, 212, .06); }
