/* Coaching Lab workbench (hockey). Cream theme; tokens fall back to their own values when the site theme is not loaded. */
.csc {
  --c-bg: var(--cr-bg, #f3f0ec); --c-panel: var(--cr-panel, #fbfaf8); --c-panel2: var(--cr-panel-2, #ebe6df); --c-panel3: var(--cr-panel-3, #e2dbd2);
  --c-ink: var(--cr-ink, #1c1c1c); --c-muted: var(--cr-muted, rgba(28,28,28,.66)); --c-line: var(--cr-line, rgba(28,28,28,.10)); --c-line2: var(--cr-line-2, rgba(28,28,28,.2));
  --c-accent: var(--cr-accent, #b4531d); --c-orange: var(--cr-orange, #f59958); --c-brown: var(--cr-brown, #2a211b);
  --c-good: var(--cr-good, #1d6b3d); --c-bad: var(--cr-bad, #b3412c); --c-warn: var(--cr-warn, #9a5b00);
  --c-attack: #e2733a; --c-defend: #35506b;
  background: var(--c-bg) !important; color: var(--c-ink); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; margin: 0;
}
.csc [hidden], .csc svg [hidden] { display: none !important; }
.csc *, .csc *::before, .csc *::after { box-sizing: border-box; }
.csc-skip { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: var(--c-bg); padding: 8px 12px; z-index: 50; border-radius: 0 0 8px 0; }
.csc-skip:focus { left: 0; }
.csc-page { width: 100%; min-width: 0; flex: 1 1 auto; background: var(--c-bg); color: var(--c-ink); max-width: 1680px; margin: 0 auto; padding: 22px clamp(14px, 2.4vw, 32px) 64px; }
.csc-alt { margin: 0 0 6px; font-size: 14px; }  /* release 96: link to the team-plans overview */
.csc-alt a { color: var(--csc-accent, #b4531d); font-weight: 600; text-decoration: none; }
.csc-alt a:hover, .csc-alt a:focus-visible { text-decoration: underline; }
.csc-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.csc-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.csc h1 { margin: 0 0 8px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--c-ink); }
.csc h2 { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; color: var(--c-ink); }
.csc h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.csc-sub { margin: 0; max-width: 680px; font-size: 15px; line-height: 1.5; color: var(--c-muted); }
.csc-sports { display: flex; align-items: center; gap: 10px; }
.csc-sports-label { font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
.csc-sports > div { display: flex; gap: 6px; flex-wrap: wrap; }
.csc-sport { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--c-line2); color: var(--c-muted); background: transparent; }
.csc-sport.is-on { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
/* release 127: a sport you can switch to reads as a button, not a label */
.csc-sports a.csc-sport { text-decoration: none; border-color: var(--c-accent); color: var(--c-accent); background: var(--c-panel); font-weight: 700; cursor: pointer; transition: background .15s ease, color .15s ease; }
.csc-sports a.csc-sport::after { content: '\00a0\2192'; }   /* a no-break space: a flex item drops a plain leading space */
.csc-sports a.csc-sport:hover, .csc-sports a.csc-sport:focus-visible { background: var(--c-accent); color: #fff; outline: none; }
@media (prefers-reduced-motion: reduce) { .csc-sports a.csc-sport { transition: none; } }
/* release 129: every Lab page shows the same chips in the same order (Hockey, Soccer, Football · soon, Basketball · soon), with fixed
   widths for the two that change look (current page / link) and for the simulator badge, and the switch pinned to the top right,
   so moving between sports never shifts them. */
.csc-head { align-items: flex-start; }
.csc-head-copy { flex: 1 1 420px; min-width: 0; }
.csc-head > .csc-sports { flex: 0 1 auto; margin-left: auto; padding-top: 2px; }
.csc-sport { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.csc-sport[data-sport="nhl"], .csc-sport[data-sport="epl"] { width: 7.4em; padding-left: 6px; padding-right: 6px; }
.csc-sports .csc-ver { width: 17.6em; justify-content: center; white-space: nowrap; }
/* release 130: replay reel tag on the rink / pitch, and the Insider note for everyone else */
.csc-replay-tag { font-size: 3.6px; font-weight: 800; letter-spacing: .1px; fill: #1c1c1c; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .8px; pointer-events: none; }
.csc-upgrade { flex-basis: 100%; margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--c-panel2); border: 1px solid var(--c-line2); font-size: 14px; color: var(--c-ink); }
.csc-upgrade a { color: var(--c-accent); font-weight: 700; }
.csc-upgrade-btn { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
/* release 131: nothing under the rink / pitch moves while runs play one after another. The caption keeps one line (two on
   phones), the replay bar's changing parts have fixed widths, and the run counter is a fixed strip of 10. */
.csc-event { height: 22px; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .csc-event { height: 2.9em; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }
.csc-replay-meta { display: inline-block; width: 19em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.csc-replay-bar [data-csc-replay-play] { min-width: 5.8em; }
.csc-replay-bar [data-csc-replay-reel], .csc-replay-bar [data-csc-replay-live] { min-width: 12em; }
.csc-reel { display: flex; align-items: center; gap: 8px; height: 36px; margin-top: 8px; padding: 0 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.csc-reel-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); flex: 0 0 auto; }
.csc-reel-plan { min-width: 4.6em; font-size: 13px; font-weight: 800; color: var(--c-accent); flex: 0 0 auto; }
.csc-reel-count { min-width: 3.6em; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.csc-reel-pips { display: flex; gap: 4px; flex: 0 0 auto; }
.csc-pip { width: 28px; height: 28px; padding: 0; border-radius: 999px; border: 1px solid var(--c-line2); background: transparent; font: inherit; font-size: 12px; font-weight: 700; color: var(--c-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; }
span.csc-pip { cursor: default; }
.csc-pip.is-done { background: var(--c-panel2); color: var(--c-ink); }
.csc-pip.is-cur { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.csc-pip.is-locked { opacity: .45; border-style: dashed; }
.csc-reel-up { flex: 0 0 auto; white-space: nowrap; font-size: 13px; font-weight: 800; color: var(--c-accent); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.csc-reel-up:hover { text-decoration: underline; }
.csc-warn { color: var(--c-warn); font-size: 13px; margin: 8px 0 0; }

/* setup bar */
.csc-bar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; padding: 12px 14px; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 14px; margin-bottom: 14px; }
.csc-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--c-muted); min-width: 0; }
.csc-field b { color: var(--c-ink); font-weight: 700; }
.csc-field-block { margin: 0 0 10px; }
.csc-field-range { min-width: 160px; }
.csc select, .csc input[type="number"] { font: inherit; font-size: 14px; padding: 7px 10px; min-height: 36px; border-radius: 10px; border: 1px solid var(--c-line2); background: var(--c-panel); color: var(--c-ink); max-width: 100%; }
.csc input[type="range"] { width: 100%; accent-color: var(--c-accent); }
.csc :focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* layout */
.csc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.csc-panel { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 14px; padding: 14px; }
.csc-hint { margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.csc-empty { margin: 0; font-size: 14px; color: var(--c-muted); line-height: 1.5; }
.csc-tabs { display: flex; gap: 4px; margin-bottom: 10px; background: var(--c-panel2); border-radius: 10px; padding: 3px; }
.csc-tabs button { flex: 1; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 8px; color: var(--c-muted); cursor: pointer; }
.csc-tabs button[aria-selected="true"] { background: var(--c-panel); color: var(--c-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.csc-roster-list { list-style: none; margin: 0; padding: 0; max-height: 520px; overflow: auto; }
.csc-r { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 7px 4px; border-top: 1px solid var(--c-line); font-size: 13px; align-items: center; }
.csc-r:first-child { border-top: 0; }
.csc-r.is-used .csc-r-name { font-weight: 700; }
.csc-r.is-used::after { content: 'on the ice'; grid-column: 1 / -1; font-size: 11px; color: var(--c-accent); }
.csc-r-pos { font-size: 12px; color: var(--c-muted); text-align: right; }
.csc-q { grid-column: 1 / -1; justify-self: start; font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.csc-q-partly, .csc-q-derived { background: rgba(29,107,61,.12); color: var(--c-good); }
.csc-q-default { background: var(--c-panel2); color: var(--c-muted); }

/* stage */
.csc-stage { min-width: 0; }
.csc-plans { scroll-margin-top: 78px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.csc-plans button[role="tab"] { border: 1px solid var(--c-line2); background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--c-muted); }
.csc-plans button[role="tab"][aria-selected="true"] { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.csc-link { border: 0; background: none; padding: 6px 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--c-accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.csc-link:disabled { color: var(--c-muted); opacity: .5; cursor: default; text-decoration: none; }
.csc-rink-wrap { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 18px; padding: 10px; }
.csc-rink { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 14px; cursor: default; }
.csc-rink:focus-visible { outline-offset: 3px; }
.csc-dir { font-size: 3px; fill: #6f808c; letter-spacing: .1em; text-transform: uppercase; }
.csc-dot { cursor: grab; }
.csc-dot:active { cursor: grabbing; }
.csc-dot:focus { outline: none; }
.csc-dot:focus-visible .csc-body, .csc-dot.is-sel .csc-body { stroke: #1c1c1c; stroke-width: 1; }
.csc-hit { fill: transparent; }
.csc-body { stroke: #fff; stroke-width: .7; }
.csc-dot.csc-attack .csc-body { fill: var(--c-attack); }
.csc-dot.csc-defend .csc-body { fill: var(--c-defend); }
.csc-dot.is-goalie .csc-body { stroke-dasharray: 1.2 .8; stroke: #fff; }
.csc-dot.is-goalie { cursor: pointer; }
.csc-slot { font-size: 2.5px; font-weight: 800; fill: #fff; pointer-events: none; }
.csc-name { font-size: 2.9px; font-weight: 700; fill: #1c1c1c; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: .9px; pointer-events: none; }
.csc-ring { fill: none; stroke: #1c1c1c; stroke-width: .6; stroke-dasharray: 1.4 1; }
.csc-puck { fill: #1c1c1c; stroke: #fff; stroke-width: .35; }
.csc-puck.is-big { stroke-width: .5; }
.csc-puck.is-shot { fill: #b3412c; }
.csc-speed { stroke-width: .8; stroke-linecap: round; opacity: .55; }
.csc-speed.csc-attack, .csc-instr-line.csc-attack, .csc-target.csc-attack { stroke: var(--c-attack); }
.csc-speed.csc-defend, .csc-instr-line.csc-defend, .csc-target.csc-defend { stroke: var(--c-defend); }
.csc-instr-line { stroke-width: .5; stroke-dasharray: 1.6 1.2; }
.csc-target { cursor: grab; fill: none; stroke-width: .9; stroke-linecap: round; }
.csc-replay-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 6px 4px 0; }
.csc-replay-bar input[type="range"] { flex: 1 1 160px; }
.csc-trail { fill: none; stroke: #1c1c1c; stroke-width: .5; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.csc-speed-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.csc-speed-pick select { min-height: 34px; padding: 3px 8px; }
.csc-replay-meta { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.csc-event { min-height: 22px; margin: 8px 2px 0; font-size: 14px; font-weight: 600; }
.csc-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.csc-run { margin-left: auto; }
.csc-stage .csc-results { padding: 16px; }
.csc-issues { margin: 8px 2px 0; font-size: 13px; color: var(--c-bad); min-height: 0; }
.csc-issue { display: block; }

/* buttons */
.csc-btn { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 8px 18px; border-radius: 10px; border: 1px solid var(--c-ink); background: var(--c-ink); color: var(--c-bg); cursor: pointer; }
.csc-btn:hover:not(:disabled) { background: #000; }
.csc-btn:disabled { opacity: .5; cursor: default; }
.csc-btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line2); }
.csc-btn-ghost:hover:not(:disabled) { background: var(--c-panel2); }
.csc-btn-small { min-height: 34px; padding: 5px 12px; font-size: 13px; }
.csc-run { min-width: 150px; background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.csc-run:hover:not(:disabled) { background: #8f3f12; }

/* inspector */
.csc-badge { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--c-panel2); }
.csc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.csc-instr { border: 1px solid var(--c-line); border-radius: 10px; padding: 8px 10px 10px; margin: 0 0 12px; }
.csc-instr legend { font-size: 12px; font-weight: 700; padding: 0 6px; color: var(--c-muted); }
.csc-ratings summary { font-size: 13px; font-weight: 700; cursor: pointer; margin-bottom: 8px; }
.csc-rating { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 6px 0; border-top: 1px solid var(--c-line); }
.csc-rating label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.csc-rating input { width: 74px; min-height: 32px; padding: 4px 8px; text-align: right; }
.csc-src { font-size: 11.5px; line-height: 1.35; color: var(--c-muted); }
.csc-src-derived, .csc-src-measured { color: var(--c-good); }
.csc-src-coach { color: var(--c-accent); font-weight: 600; }

/* results */
.csc-results { scroll-margin-top: 78px; margin-top: 14px; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 18px; padding: 18px; }
.csc-results-head { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.csc-evidence { margin: 0; max-width: 640px; font-size: 13px; color: var(--c-muted); line-height: 1.45; }
.csc-result-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.csc-col { min-width: 0; }
.csc-bar-out { display: flex; height: 30px; border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: var(--c-panel2); }
.csc-bar-out span { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; min-width: 2px; text-shadow: 0 0 2px rgba(0,0,0,.35); }
.csc-legend { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr; gap: 3px; font-size: 13px; }
.csc-legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.csc-legend i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.csc-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.csc-table th, .csc-table td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--c-line); font-variant-numeric: tabular-nums; }
.csc-table th { font-size: 12px; color: var(--c-muted); font-weight: 600; border-top: 0; }
.csc-table td.is-clear { color: var(--c-good); font-weight: 700; }
.csc-facts { margin: 6px 0 0; font-size: 13px; color: var(--c-muted); line-height: 1.5; }
.csc-compare { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line); overflow-x: auto; }
.csc-replays { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 16px; }
.csc-seed { flex-direction: row; align-items: center; gap: 8px; margin-left: auto; }
.csc-seed input { width: 100px; }
.csc-fine { margin: 14px 0 0; font-size: 12px; color: var(--c-muted); line-height: 1.5; word-break: break-word; }
.csc-fine[data-stale="1"] { opacity: .55; }
.csc-notes { margin-top: 18px; display: grid; gap: 8px; }
.csc-notes details { background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 12px; padding: 12px 16px; }
.csc-notes summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.csc-notes ul { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.csc-notes p { font-size: 13.5px; line-height: 1.55; color: var(--c-muted); margin: 10px 0 0; max-width: 780px; }
.csc-cap { font-size: 12px; padding: 1px 8px; border-radius: 999px; margin-right: 6px; }
.csc-cap-executable { background: rgba(29,107,61,.12); color: var(--c-good); }
.csc-cap-diagram, .csc-cap-diagram_only { background: var(--c-panel2); color: var(--c-muted); }

/* a tool page: the workbench starts at the top, so the shell's large page-title hero is hidden here */
body.csc .sds-hero { display: none !important; }
@media (max-width: 1120px) {
  .csc-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .csc-roster { grid-column: 1 / -1; order: 3; }
  .csc-roster-list { max-height: 260px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); column-gap: 14px; }
  .csc-r:nth-child(2) { border-top: 0; }
}
@media (max-width: 760px) {
  .csc-page { padding-top: 14px; }
  .csc-grid { grid-template-columns: minmax(0, 1fr); }
  .csc-inspector { order: 2; }
  .csc-roster { order: 3; }
  .csc-bar { gap: 10px; }
  .csc-bar .csc-field { flex: 1 1 140px; }
  .csc-run { margin-left: 0; flex: 1 1 100%; }
  .csc-rink-wrap { padding: 6px; border-radius: 14px; }
  .csc-seed { margin-left: 0; }
  .csc-tools .csc-btn-small { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .csc * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* hold the cream look even where an older dark site theme is still loaded */
.csc h1, .csc h2, .csc h3 { color: var(--c-ink) !important; font-family: inherit !important; }
.csc select, .csc input[type="number"] { background: var(--c-panel) !important; color: var(--c-ink) !important; border: 1px solid var(--c-line2) !important; }
.csc .csc-btn:not(.csc-btn-ghost) { color: var(--c-bg) !important; } .csc .csc-run { color: #fff !important; }
.csc .csc-btn-ghost { color: var(--c-ink) !important; }

/* ---- version chip, tactics library and test card (release 93) ---- */
.csc-sports { flex-wrap: wrap; justify-content: flex-end; }
.csc-ver { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c-ink); background: var(--c-panel2); border: 1px solid var(--c-line2); text-decoration: none; }
.csc-ver:hover { border-color: var(--c-accent); color: var(--c-accent); }
.csc-ver b { font-weight: 800; color: var(--c-accent); }
.csc input[type="search"] { font: inherit; font-size: 14px; padding: 7px 10px; min-height: 36px; border-radius: 10px; border: 1px solid var(--c-line2) !important; background: var(--c-panel) !important; color: var(--c-ink) !important; max-width: 100%; width: 100%; }
.csc-field-grow { flex: 1 1 240px; }
.csc-tlist { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: auto; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-bg); }
.csc-tgroup { position: sticky; top: 0; z-index: 1; margin: 0; padding: 6px 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); background: var(--c-panel2); border-bottom: 1px solid var(--c-line); }
.csc-titem { display: flex; width: 100%; gap: 8px; align-items: center; text-align: left; font: inherit; font-size: 13.5px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; color: var(--c-ink); cursor: pointer; }
.csc-titem:hover { background: var(--c-panel2); }
.csc-titem[aria-current="true"] { background: var(--c-panel); box-shadow: inset 3px 0 0 var(--c-accent); font-weight: 700; }
.csc-titem .csc-tid { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--c-muted); min-width: 30px; }
.csc-titem .csc-tname { flex: 1 1 auto; min-width: 0; }
.csc-lvl { flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.csc-lvl-runs { background: rgba(29,107,61,.13); color: var(--c-good); }
.csc-lvl-start { background: rgba(154,91,0,.13); color: var(--c-warn); }
.csc-lvl-reference { background: var(--c-panel3); color: var(--c-muted); }
.csc-tdetail { min-width: 0; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-bg); }
.csc-tdetail h3 { margin: 0 0 4px; font-size: 18px; }
.csc-tdetail .csc-tmeta { margin: 0 0 10px; font-size: 12.5px; color: var(--c-muted); display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; }
.csc-tdetail dl { margin: 0 0 12px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; font-size: 14px; line-height: 1.5; }
.csc-tdetail dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); padding-top: 2px; }
.csc-tdetail dd { margin: 0; }
.csc-tlab { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--c-panel); border: 1px solid var(--c-line); font-size: 13.5px; line-height: 1.5; }
.csc-tlab b { display: block; margin-bottom: 2px; }
.csc-trow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.csc-tcards { margin: 10px 0 0; font-size: 13px; color: var(--c-muted); }
.csc-tcards button { font: inherit; font-size: 13px; padding: 0; border: 0; background: none; color: var(--c-accent); text-decoration: underline; cursor: pointer; }
.csc-test { margin: 0 0 12px; padding: 12px 14px; background: var(--c-panel); border: 1px solid var(--c-line); border-left: 3px solid var(--c-accent); border-radius: 14px; }
.csc-test h2 { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 6px; font-size: 17px; }
.csc-test p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.csc-test .csc-plan-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 14px; margin: 8px 0; }
.csc-test .csc-plan-line { padding: 8px 10px; border-radius: 10px; background: var(--c-panel2); font-size: 13.5px; line-height: 1.45; }
.csc-test .csc-plan-line b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.csc-test ul { margin: 4px 0 8px 18px; padding: 0; font-size: 13.5px; line-height: 1.5; color: var(--c-muted); }
.csc-test details { margin: 6px 0 0; font-size: 13.5px; }
.csc-test details summary { cursor: pointer; font-weight: 600; }
.csc-test details dl { margin: 8px 0 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 4px 12px; }
.csc-test details dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.csc-test details dd { margin: 0; }
.csc-test .csc-notice { margin: 0 0 8px; padding: 7px 10px; border-radius: 10px; background: rgba(154,91,0,.1); color: var(--c-warn); font-size: 12.5px; line-height: 1.45; }
.csc-test .csc-notice p { margin: 0 0 4px; font-size: 12.5px; }
.csc-test .csc-notice p:last-child { margin: 0; }
.csc-test h2 { margin: 0 0 2px; }
.csc-test .csc-hint { margin: 0 0 8px; }
.csc-tactics { scroll-margin-top: 76px; }
.csc-test .csc-edited { font-size: 12px; font-weight: 700; color: var(--c-accent); }
.csc-sat { font-size: 11.5px; color: var(--c-muted); font-style: italic; }


/* simulator versions page */
.csv-wrap { max-width: 900px; margin: 0 auto; }
.csv-sim { margin: 0 0 22px; padding: 18px 20px; background: var(--c-panel); border: 1px solid var(--c-line); border-radius: 14px; scroll-margin-top: 80px; }
.csv-sim h2 { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; margin: 0 0 4px; font-size: 22px; }
.csv-cur { font-size: 14px; font-weight: 800; color: var(--c-accent); }
.csv-used { margin: 0 0 12px; font-size: 13px; color: var(--c-muted); }
.csv-ver { padding: 12px 0; border-top: 1px solid var(--c-line); }
.csv-ver h3 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 0 0 6px; font-size: 16px; }
.csv-ver h3 .csv-n { font-weight: 800; color: var(--c-accent); }
.csv-ver h3 .csv-d { font-size: 12.5px; font-weight: 500; color: var(--c-muted); }
.csv-ver ul { list-style: none; margin: 0; padding: 0; }
.csv-ver li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 3px 0; font-size: 14px; line-height: 1.5; }
.csv-kind { align-self: start; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; text-align: center; background: var(--c-panel2); color: var(--c-muted); }
.csv-kind-new { background: rgba(29,107,61,.13); color: var(--c-good); }
.csv-kind-better { background: rgba(53,80,107,.13); color: var(--c-defend); }
.csv-kind-fix { background: rgba(180,83,29,.13); color: var(--c-accent); }
.csv-kind-limit { background: rgba(154,91,0,.13); color: var(--c-warn); }
.csv-engine { margin: 6px 0 0; font-size: 12px; color: var(--c-muted); }
@media (max-width: 560px) { .csv-ver li { grid-template-columns: minmax(0, 1fr); } .csv-kind { justify-self: start; } }
.csc-cap-caveat { background: rgba(154,91,0,.13); color: var(--c-warn); }
.csc-cap-not_simulated { background: var(--c-panel3); color: var(--c-muted); }

/* release 93b: the tactics live in the right-hand panel next to the rink, and stay there after a test is loaded */
.csc-side { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 88px); }
.csc-side-tabs { flex: 0 0 auto; }
.csc-side [data-csc-spane] { min-height: 0; }
.csc-side .csc-tactics { display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1 1 auto; }
.csc-side .csc-inspector { overflow: auto; min-height: 0; }
.csc-side [hidden] { display: none !important; }
.csc-tactics-count { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.csc-tsearch { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-bg); color: var(--c-ink); }
.csc-tfilters { gap: 8px; }
.csc-tfilters .csc-field { font-size: 11.5px; min-width: 0; }
.csc-tfilters select { width: 100%; font-size: 13px; }
.csc-side .csc-tlist { position: relative; flex: 1 1 auto; min-height: 220px; max-height: 470px; overflow: auto; }
.csc-titem { padding: 8px 10px; font-size: 13px; }
.csc-titem .csc-tid { min-width: 28px; }
.csc-tonrink { display: block; font-size: 11px; font-weight: 700; color: var(--c-accent); }
.csc-tlist .csc-tdetail { border: 0; border-radius: 0; border-bottom: 1px solid var(--c-line); padding: 8px 12px 12px; background: var(--c-panel); box-shadow: inset 3px 0 0 var(--c-accent); }
.csc-tlist .csc-tdetail .csc-tmeta { font-size: 11.5px; margin: 0 0 6px; }
.csc-tlist .csc-tdetail dl { grid-template-columns: minmax(0, 1fr); gap: 1px; font-size: 13px; line-height: 1.45; margin: 0 0 8px; }
.csc-tlist .csc-tdetail dd { margin: 0 0 6px; }
.csc-tlist .csc-tdetail .csc-tlab { font-size: 12.5px; line-height: 1.45; padding: 7px 9px; margin: 0 0 8px; }
.csc-tlist .csc-tdetail .csc-tlab b { display: block; }
.csc-tload { width: 100%; justify-content: center; }
.csc-btn.csc-tload.is-here { border-color: var(--c-accent); }
.csc-tnext { margin: 6px 0 4px; font-size: 12px; }
.csc-tcards { margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; }
.csc-side .csc-fine { margin: 0; font-size: 11px; }
@media (max-width: 760px) {
  .csc-side { position: static; max-height: none; }
  .csc-side .csc-tlist { max-height: 420px; }
}
.csc-side-tabs { margin-bottom: 0; }
.csc-tlist .csc-tdetail .csc-tlab { background: var(--c-bg); }
.csc-grid { grid-template-columns: 250px minmax(0, 1fr) 340px; }
@media (max-width: 1120px) { .csc-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
@media (max-width: 760px) { .csc-grid { grid-template-columns: minmax(0, 1fr); } }

/* release 105: share a comparison; a shared plan loaded into the Lab */
.csc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--c-line2); }
.csc-share-out { font-size: 13px; color: var(--c-muted); }
.csc-share-out a { color: var(--c-ink); font-weight: 700; word-break: break-all; }
.csc-share-note { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--c-muted); line-height: 1.45; }
.csc-loaded { margin: 8px 2px 0; padding: 10px 12px; border: 1px solid var(--c-line2); border-radius: 10px; background: var(--c-panel2); font-size: 13px; line-height: 1.45; }
.csc-share.is-locked [data-csc-share-btn] { opacity: .75; }   /* release 106: locked for non-members */
.csc-share.is-locked [data-csc-share-btn] .ti { margin-right: 2px; }

/* release 134: one free test a day, then sign-in that keeps the drawing */
.csc-free { margin: 6px 2px 0; font-size: 13px; font-weight: 600; color: var(--c-muted); }
.csc-gate { margin: 10px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--c-panel); border: 1px solid var(--c-accent); box-shadow: 0 6px 18px rgba(28,28,28,.08); }
.csc-gate-text { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--c-ink); }
.csc-gate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.csc .csc-gate-go { background: var(--c-accent); border-color: var(--c-accent); color: #fff !important; text-decoration: none; }
.csc-gate-plans { font-size: 14px; font-weight: 700; color: var(--c-accent); }

/* release 135: live chances beside the run strip, worked out again as each replayed run ends (fixed height: nothing moves) */
.csc-live { margin: 6px 4px 0; padding: 8px 12px; border-radius: 12px; background: var(--c-panel2); display: grid; gap: 4px; }
.csc-live-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.csc-live-row { display: grid; grid-template-columns: 5.2em minmax(60px, 140px) 1fr; align-items: center; gap: 10px; height: 22px; }
.csc-live-plan { font-size: 13px; font-weight: 800; color: var(--c-accent); }
.csc-live-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--c-panel3); }
.csc-live-bar i { display: block; height: 100%; transition: flex-grow .4s ease; }
.csc-live-text { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

.csc-live-text b { font-weight: 800; }
.csc-live-full { color: var(--c-muted); font-weight: 500; }
@media (max-width: 560px) {
  .csc-live-row { grid-template-columns: 4.6em 1fr; grid-template-rows: 12px 18px; row-gap: 3px; height: 33px; }
  .csc-live-plan { grid-row: 1 / 3; }
  .csc-live-text { grid-column: 2; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .csc-live-bar i { transition: none; } }
/* release 183 (audit): the conclusion first, a starting set, reproducibility folded away */
.csc-conclusion { margin: 4px 0 12px; padding: 10px 12px; border-radius: 8px; background: #f4f4f5; font-size: 14px; line-height: 1.5; color: #18181b; font-weight: 500; }
.csc-tstart { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13px; }
.csc-repro { margin-top: 10px; font-size: 12px; color: #63636b; }
.csc-repro summary { cursor: pointer; }
