@font-face {
 font-family:Pretendard; font-style:normal; font-weight:100 500; font-display:swap;
 src:url("./assets/fonts/Pretendard-Regular.woff2") format("woff2");
}
@font-face {
 font-family:Pretendard; font-style:normal; font-weight:501 950; font-display:swap;
 src:url("./assets/fonts/Pretendard-SemiBold.woff2") format("woff2");
}
/* v56 presentation layer. Court coordinates, markup and event handlers are retained. */
:root {
  --vr-bg:#0b1019; --vr-panel:#121b29; --vr-inset:#0e1622;
  --vr-line:#29374a; --vr-ink:#e7edf5; --vr-muted:#98a9bf;
  --vr-accent:#e9b783; --vr-button:#1a2738;
  font-family:Pretendard,Inter,"Noto Sans KR",Arial,sans-serif;
  color-scheme:dark;
}
:root[data-theme="light"] {
  --vr-bg:#f1f3f5; --vr-panel:#fff; --vr-inset:#f5f7fa;
  --vr-line:#d7dfe8; --vr-ink:#19283b; --vr-muted:#5e7087;
  --vr-accent:#8b5428; --vr-button:#edf2f7;
  color-scheme:light;
}
html { background:var(--vr-bg); scroll-padding-top:88px; }
body, body.game-mode { background:var(--vr-bg); color:var(--vr-ink); }
body { min-width:320px; }
.app-header, main, footer { width:min(1460px,calc(100% - 48px)); }
.app-header { padding:32px 0 24px; gap:24px; }
.header-brand h1 { letter-spacing:-1.2px; font-weight:800; }
.header-brand h1 small { color:var(--vr-accent); }
.creator-label, .header-credit, .build-label, .help-text { color:var(--vr-muted) !important; }
.header-credit strong { color:var(--vr-ink); }
.header-tools { gap:10px; }
.top-command-bar {
  width:min(1460px,calc(100% - 48px)); margin:0 auto 24px;
  padding:8px; border:1px solid var(--vr-line); border-radius:16px;
  background:var(--vr-panel); box-shadow:0 8px 24px #0000000a;
}
.section-nav { gap:6px; }
.section-nav a { border:0; border-radius:10px; padding:10px 22px; color:var(--vr-muted); }
.section-nav a.active { background:var(--vr-button); color:var(--vr-ink); }
main { gap:24px; }
main > section, body.game-mode .current-panel, body.game-mode .overview-panel {
  background:var(--vr-panel); border:1px solid var(--vr-line);
  border-radius:22px; padding:26px; box-shadow:0 12px 36px #0000000a;
}
.section-heading { gap:18px; margin-bottom:18px; align-items:center; }
h2 { color:var(--vr-ink); font-weight:750; font-size:23px; letter-spacing:-.7px; }
.eyebrow { color:var(--vr-accent) !important; font-size:10px; font-weight:750; letter-spacing:1.9px; }
.help-text { line-height:1.65; font-size:12px; word-break:keep-all; overflow-wrap:break-word; }
main > section > .help-text { margin-bottom:20px; }
.roster-team, .team-selector, .matchup-team, .analysis-result-card,
.live-matchup-panel, .inline-template-editor {
  border:1px solid var(--vr-line); border-radius:16px; background:var(--vr-inset);
}
.roster-team { padding:20px; }
.roster-team.home { border-top:3px solid #609ddd; }
.roster-team.away { border-top:3px solid #db9269; }
.roster-team-header { margin-bottom:16px; }
.slot-manager { gap:7px; }
.text-button, .slot-button, .primary-button, .theme-toggle,
.live-matchup-toolbar button, .analysis-jog-button {
  border:1px solid var(--vr-line); border-radius:10px;
  background:var(--vr-button); color:var(--vr-ink);
  font-weight:650; box-shadow:none; line-height:1.35;
}
.text-button, .slot-button { padding:9px 12px; }
.primary-button { background:#cf9765; border-color:#cf9765; color:#17202d; padding:11px 18px; }
.game-mode-button { background:#cf9765 !important; border-color:#cf9765 !important; color:#17202d !important; }
.game-mode-button.active { background:#a9d6cf !important; border-color:#a9d6cf !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline:2px solid #76b9d5; outline-offset:3px;
}
button:disabled { opacity:.5; }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]), select, textarea {
  border-color:var(--vr-line); background:var(--vr-inset); color:var(--vr-ink);
  border-radius:9px; min-width:0;
}
.combo-input, .player-picker-row { min-width:0; }
.player-picker-list, .combo-menu { background:var(--vr-panel); border-color:var(--vr-line); border-radius:12px; }
.player-picker-option { border-color:var(--vr-line); background:var(--vr-inset); color:var(--vr-ink); }
.summary-pill, .matchup-result { border-color:var(--vr-line); background:var(--vr-inset); color:var(--vr-ink); }
#current-court-layout { grid-template-columns:minmax(0,640px) minmax(0,280px); gap:48px; align-items:center; }
#current-court-layout .court-side-tools {
  --tool-surface:var(--vr-inset); --tool-line:var(--vr-line);
  --tool-ink:var(--vr-ink); --tool-muted:var(--vr-muted); --tool-button:var(--vr-button);
  gap:16px;
}
#current-court-layout .toolbox-core { border-radius:16px; padding:18px; box-shadow:none; }
#current-court-layout .template-selector { padding:14px; border:1px solid var(--vr-line); border-radius:14px; background:var(--vr-inset); }
#current-court-layout .template-selector select { width:100%; }
#current-court-layout .draw-tool, #current-court-layout .rotation-step-buttons button,
#current-court-layout .rotation-jog-button { border-radius:8px; }
#current-court-layout .sideout-orb { border-radius:14px; background:#cf9765; border-color:#cf9765; color:#17202d; box-shadow:none; }
.current-actions, .overview-actions { gap:8px; flex-wrap:wrap; }
.current-court-title-row { gap:12px; }
.scenario-controls button { border-radius:8px; }
.live-matchup-panel { padding:16px; }
.live-team, .live-matchup-score-grid article { background:var(--vr-inset); border-color:var(--vr-line); border-radius:12px; }
.rotation-card { border-radius:12px; }
.overview-panel { overflow:visible; }
.rotation-overview { min-width:0; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px 10px; }
.analysis-table-wrap { max-width:100%; min-width:0; }
footer { padding:26px 0; gap:12px; color:var(--vr-muted); }
@media (max-width:1100px) {
  .app-header { flex-wrap:wrap; }
  .header-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; }
  #court-section > .section-heading { flex-wrap:wrap; }
  #court-section > .section-heading > .current-actions {
    width:100%; max-width:100%; min-width:0; margin:0; flex:1 1 100%;
    justify-content:center; flex-wrap:wrap; white-space:normal;
  }
  #current-court-layout { grid-template-columns:minmax(0,1fr) minmax(220px,260px); gap:24px; }
  .section-heading { flex-wrap:wrap; }
  .overview-actions { justify-content:center; }
  .rotation-overview { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .app-header, main, footer, .top-command-bar { width:calc(100% - 24px); }
  .app-header { padding:22px 0 18px; }
  .header-brand { grid-template-columns:minmax(0,1fr); gap:10px; width:100%; min-width:0; }
  .header-credit { text-align:left; }
  .header-brand h1 { font-size:clamp(23px,6vw,32px); letter-spacing:-.8px; }
  .header-tools { width:100%; justify-content:center; }
  .top-command-bar { padding:6px; border-radius:12px; gap:6px; }
  .section-nav { flex:1; min-width:0; display:flex; flex-wrap:wrap; justify-content:center; gap:2px; }
  .section-nav a { padding:9px 10px; font-size:12px; white-space:nowrap; }
  .theme-toggle { flex:0 0 auto; padding:9px; font-size:12px; }
  main { gap:16px; }
  main > section { padding:18px 14px; border-radius:16px; min-width:0; }
  .roster-grid, .matchup-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
  .roster-team { padding:16px 12px; min-width:0; }
  .selection-grid { grid-template-columns:minmax(0,1fr); }
  .versus { justify-self:center; }
  .analysis-form-grid, .analysis-form-grid.compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #current-court-layout { grid-template-columns:minmax(0,1fr); gap:22px; }
  #current-court-stage { width:100%; min-width:0; }
  #current-court-layout .court-side-tools { width:100%; max-width:100%; grid-template-columns:minmax(0,1fr); }
  #current-court-layout .toolbox-core { padding:16px; }
  .rotation-overview { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 10px; }
  .overview-actions, .current-actions, .rotation-jog, .sync-actions,
  .live-matchup-toolbar, .analysis-actions { justify-content:center; flex-wrap:wrap; }
  .current-court-title-row { flex-wrap:nowrap; }
  .current-court-title-row h2 { font-size:21px; }
  .current-court-title-row button { font-size:12px; }
  .live-matchup-score-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .live-subheading { flex-wrap:wrap; gap:6px; }
  .live-rotation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .analysis-table-wrap { overflow-x:auto; }
  footer { display:flex; flex-direction:column; text-align:center; }
  .scenario-controls { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; }
  .scenario-controls button { min-width:0; padding:9px 1px; font-size:10px; letter-spacing:-.2px; white-space:nowrap; }
  .section-heading > *, .roster-grid > *, .analysis-form-grid > *,
  .slot-manager > *, .current-actions > *, .overview-actions > * { min-width:0; max-width:100%; }
  .slot-manager { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .slot-manager select { grid-column:1/-1; width:100%; }
  .slot-manager button { width:100%; }
  .player-picker-list { left:0; right:0; min-width:0; max-width:100%; }
  .player-picker-option { min-width:0; }
  .player-picker-name { min-width:0; white-space:normal; word-break:keep-all; overflow-wrap:break-word; }
  .roster-inputs { min-width:0; }
  .help-text, .summary-pill, .template-readout { white-space:normal; word-break:keep-all; overflow-wrap:break-word; }
  .drawing-toolbar-row, .text-note-toolbar { flex-wrap:wrap; justify-content:center; }
}
/* Match the native select text to the bundled Korean typeface. */
select, option, input, textarea, button { font-family:Pretendard,Inter,"Noto Sans KR",Arial,sans-serif; }
:root .court-surface { background:#bed0dc; border-color:#bed0dc; }
:root .court-field { background:#e9b28d; }
:root .court-team.away, :root .court-team.home { background:transparent; }
:root .state-strip { color:#244456; }
:root .roster-team, :root .matchup-team, :root .team-selector { background:var(--vr-inset); }
:root .player-picker-input, :root .player-picker-toggle { background:var(--vr-button); color:var(--vr-ink); }
:root .state-button.active, :root .mode-button.active {
 background:#cf9765; border-color:#cf9765; color:#17202d;
}
:root .mode-button { border-radius:10px; }
@media (max-width:760px) {
 .rotation-card .state-strip { font-size:12px; letter-spacing:-.3px; }
 .rotation-card .state-strip small { font-size:9px; }
 #current-court-layout .text-note-toolbar { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
 #current-court-layout .text-note-toolbar button { min-width:0; padding:8px 3px; white-space:nowrap; }
 #current-court-layout .drawing-toolbar-row { gap:7px; }
 #current-court-layout .toolbox-core .rotation-jog-team { grid-template-columns:auto auto auto auto; }
 .template-readout { line-height:1.6; }
}
/* Result rows fit their panel instead of retaining desktop minimum columns. */
@media (max-width:1100px) {
 .compact-analysis-results, .compact-analysis-results.single-analysis-result { grid-template-columns:minmax(0,1fr); }
 .compact-analysis-results .analysis-result-row {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:10px; min-width:0;
 }
 .analysis-result-left strong { white-space:normal; word-break:keep-all; }
}
@media (max-width:520px) {
 .compact-analysis-results .analysis-result-row {
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"left summary" "signal signal";
 }
}
:root[data-theme] .game-mode-button {
 background:#cf9765 !important; border-color:#cf9765 !important; color:#17202d !important;
 box-shadow:none !important;
}
:root[data-theme] .game-mode-button.active { background:#a9d6cf !important; border-color:#a9d6cf !important; }
:root[data-theme] main > section {
 background:var(--vr-panel) !important; border-color:var(--vr-line) !important;
}
:root[data-theme] #current-court-layout .toolbox-core {
 background:var(--vr-inset) !important; border-color:var(--vr-line) !important; box-shadow:none !important;
}
:root[data-theme] #current-court-layout .sideout-orb {
 background:#cf9765 !important; color:#17202d !important; box-shadow:none !important;
}

/* v57 — restrained surfaces and a consistent light-mode instrument panel. */
:root[data-theme="light"] {
  --vr-bg:#eff2f6;
  --vr-panel:#ffffff;
  --vr-inset:#f6f8fb;
  --vr-line:#dde4ed;
  --vr-ink:#243349;
  --vr-muted:#6f7f93;
  --vr-button:#f0f3f8;
}
:root[data-theme] main > section {
  box-shadow:0 4px 20px #10233c05 !important;
}
:root[data-theme] .top-command-bar {
  border-color:var(--vr-line);
  box-shadow:0 4px 20px #10233c05;
}
:root[data-theme] #current-court-layout .court-side-tools {
  --tool-surface:var(--vr-inset);
  --tool-line:var(--vr-line);
  --tool-ink:var(--vr-ink);
  --tool-muted:var(--vr-muted);
  --tool-button:var(--vr-button);
}
:root[data-theme] #current-court-layout .toolbox-core {
  padding:20px;
  border-radius:18px;
  background:var(--vr-inset) !important;
  border:1px solid var(--vr-line) !important;
  box-shadow:0 4px 16px #12294404 !important;
}
:root[data-theme] #current-court-layout .toolbox-heading {
  padding-bottom:14px;
  margin-bottom:14px;
  border-bottom:1px solid var(--vr-line);
  color:var(--vr-muted);
}
:root[data-theme] #template-manage { color:var(--vr-ink); font-weight:600; }
:root[data-theme] #current-court-layout .template-selector {
  background:var(--vr-panel);
  border-color:var(--vr-line);
  padding:14px 16px;
}
:root[data-theme] #current-court-layout .template-selector select {
  background:var(--vr-panel);
  color:var(--vr-ink);
  border-color:var(--vr-line);
  border-radius:8px;
}
:root[data-theme] #current-court-layout .template-selector-heading {
  color:var(--vr-muted);
}
:root[data-theme] #current-court-layout .template-selector-heading b { color:var(--vr-ink); }
:root[data-theme] #current-court-layout .template-readout { color:var(--vr-muted); }
:root[data-theme] #current-court-layout .toolbox-core .text-note-toolbar,
:root[data-theme] #current-court-layout .toolbox-core .drawing-toolbar,
:root[data-theme] #current-court-layout .toolbox-core .drawing-toolbar-row,
:root[data-theme] #current-court-layout .toolbox-core .rotation-jog-team,
:root[data-theme] #current-court-layout .toolbox-core .current-action-stack {
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0;
}
:root[data-theme] #current-court-layout .draw-tool,
:root[data-theme] #current-court-layout .rotation-step-buttons button,
:root[data-theme] #current-court-layout .rotation-jog-button {
  background:var(--vr-panel) !important;
  border:1px solid var(--vr-line) !important;
  color:var(--vr-ink) !important;
  box-shadow:none !important;
  border-radius:9px;
  transition:background 140ms ease,border-color 140ms ease;
}
:root[data-theme] #current-court-layout .draw-tool:disabled {
  opacity:.38;
}
:root[data-theme] #current-court-layout .draw-tool.active {
  background:#d8e8e6 !important;
  border-color:#91b7b1 !important;
  color:#244a45 !important;
}
:root[data-theme="dark"] #current-court-layout .draw-tool.active {
  background:#284a49 !important;
  border-color:#5b8d85 !important;
  color:#d4ebe7 !important;
}
:root[data-theme] #current-court-layout .toolbox-core .drawing-toolbar-row {
  gap:7px;
  justify-content:center;
}
:root[data-theme] #current-court-layout .toolbox-core .text-note-toolbar {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  margin:12px 0 14px;
  padding:0;
}
:root[data-theme] #current-court-layout .text-note-toolbar .draw-tool {
  min-width:0;
  padding:9px 2px;
  font-size:11px;
  line-height:1.4;
}
:root[data-theme] #current-court-layout .toolbox-core .shape-row {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  width:100%;
  margin-top:12px;
}
:root[data-theme] #current-court-layout .shape-row .draw-tool {
  width:100%;
  min-width:0;
  min-height:62px;
  padding:9px 4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  font-size:11px;
  font-weight:600;
}
.shape-row svg {
  display:block; width:20px; height:20px;
  fill:none; stroke:currentColor; stroke-width:1.65;
  stroke-linecap:round; stroke-linejoin:round;
  pointer-events:none;
}
:root[data-theme] #current-court-layout .toolbar-divider {
  height:1px; background:var(--vr-line); border:0;
  box-shadow:none; margin:14px 0;
}
:root[data-theme] #current-court-layout .current-action-stack {
  border-top:1px solid var(--vr-line);
  padding-top:16px;
  margin-top:16px;
}
:root[data-theme] #current-court-layout .sideout-orb {
  background:#263c52 !important;
  color:#f3f6fa !important;
  border-color:#263c52 !important;
  border-radius:11px;
  font-size:13px;
  letter-spacing:2px;
}
:root[data-theme] #current-court-layout .rotation-jog-label {
  color:var(--vr-muted) !important;
  letter-spacing:.25px;
}
:root[data-theme] #current-court-layout .current-rotation-jog strong {
  color:var(--vr-ink) !important;
}
:root[data-theme] #current-court-layout .width-label { color:var(--vr-muted); }
:root[data-theme] #current-court-layout .color-tool { background:var(--vr-panel) !important; }
@media (max-width:760px) {
  :root[data-theme] #current-court-layout .toolbox-core { padding:16px; }
  :root[data-theme] #current-court-layout .shape-row .draw-tool { min-height:60px; }
}
:root[data-theme] #current-court-layout .toolbox-core .current-rotation-jog,
:root[data-theme] #current-court-layout .toolbox-core .sideout-move-controls,
:root[data-theme] #current-court-layout .toolbox-core .rotation-step-buttons {
 background:transparent !important;
 box-shadow:none !important;
}
:root[data-theme] #current-court-layout .text-note-toolbar .draw-tool {
 height:38px;
 min-height:38px;
 white-space:nowrap;
}

.board-edit-tools {
 border-bottom:1px solid var(--vr-line); padding-bottom:14px; margin-bottom:14px;
}
.board-edit-label { color:var(--vr-muted); font-size:11px; margin-bottom:9px; }
.board-edit-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; margin-bottom:7px; }
.board-edit-row[hidden] { display:none; }
.board-edit-tools button {
 min-width:0; min-height:38px; padding:8px 5px; border:1px solid var(--vr-line);
 border-radius:9px; background:var(--vr-panel); color:var(--vr-ink);
 font:inherit; font-size:11px; font-weight:600; line-height:1.4;
 word-break:keep-all; cursor:pointer;
}
.board-edit-tools button[aria-pressed="true"] { background:#d8e8e6; color:#244a45; border-color:#91b7b1; }
:root[data-theme="dark"] .board-edit-tools button[aria-pressed="true"] { background:#284a49; color:#d4ebe7; border-color:#5b8d85; }
#board-edit-status { margin:7px 0 0; font-size:11px; line-height:1.6; color:var(--vr-muted); word-break:keep-all; }
#board-edit-status:empty { display:none; }

.alignment-guide { position:absolute; pointer-events:none; z-index:5; display:block; }
.alignment-guide-x { top:0; bottom:0; left:var(--guide-at); border-left:1px dashed #00a5a0; }
.alignment-guide-y { left:0; right:0; top:var(--guide-at); border-top:1px dashed #00a5a0; }

.annotation-move-overlay { z-index:40; position:absolute; inset:0; pointer-events:auto; touch-action:none; cursor:grab; }
.annotation-selection-box {
 position:absolute; pointer-events:none; outline:2px dashed #009cba; outline-offset:6px;
 background:#009cba0a; border-radius:3px;
}
.player-move-locked #current-court .draggable-player { cursor:pointer; }


/* v60 — v57 court geometry with an initially collapsed placement section. */
:root[data-theme] #current-court-layout .placement-tools-disclosure {
  margin:0 0 14px; padding:0;
  border:1px solid var(--vr-line); border-radius:10px;
  background:transparent; box-shadow:none;
}
.placement-tools-disclosure summary {
  display:flex; align-items:center; gap:8px;
  padding:11px 12px; cursor:pointer; list-style:none;
  font-size:11px; font-weight:650; color:var(--vr-ink);
  user-select:none; -webkit-user-select:none;
}
.placement-tools-disclosure summary::-webkit-details-marker { display:none; }
.placement-tools-disclosure summary::after {
  content:"⌄"; margin-left:auto; color:var(--vr-muted); font-size:14px;
}
.placement-tools-disclosure[open] summary::after { content:"⌃"; }
.placement-tools-disclosure summary:focus-visible { outline:2px solid #76b9d5; outline-offset:2px; border-radius:9px; }
#board-edit-indicators { font-size:9px; font-weight:600; color:var(--vr-muted); word-break:keep-all; }
:root[data-theme] #current-court-layout .placement-tools-disclosure .board-edit-tools {
  margin:0; padding:0 10px 6px; border:0 !important;
  border-radius:0; background:transparent !important; box-shadow:none !important;
}


#current-court-layout .annotation-move-button {
  min-width:0; min-height:38px; padding:8px 6px;
  border:1px solid var(--vr-line); border-radius:9px;
  background:var(--vr-panel); color:var(--vr-ink);
  font:inherit; font-size:11px; font-weight:600; line-height:1.4;
  cursor:pointer;
}
#current-court-layout .annotation-move-button[aria-pressed="true"] {
  background:#d8e8e6; border-color:#91b7b1; color:#244a45;
}
:root[data-theme="dark"] #current-court-layout .annotation-move-button[aria-pressed="true"] {
  background:#284a49; border-color:#5b8d85; color:#d4ebe7;
}
#board-edit-status { margin:0 0 10px; }
#board-edit-status:empty { display:none; }
#current-court-layout .board-view-row {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px;
}
#current-court-layout #player-half-size { min-width:0; width:100%; }
/* Absorb the collapsed header within the original toolbox's vertical spacing. */
:root[data-theme] #current-court-layout .toolbox-heading {
  padding-bottom:8px; margin-bottom:8px;
}
.placement-tools-disclosure summary { padding:8px 12px; min-height:38px; }
:root[data-theme] #current-court-layout .placement-tools-disclosure { margin-bottom:10px; }
:root[data-theme] #current-court-layout .toolbox-core .text-note-toolbar { margin:8px 0 10px; }
:root[data-theme] #current-court-layout .toolbox-core .toolbar-divider { margin:8px 0; }
:root[data-theme] #current-court-layout .toolbox-core .current-action-stack { margin-top:10px; padding-top:10px; }

/* v61 — independent folding placement and drawing controls. */
:root[data-theme] #current-court-layout .compact-view-row {
 display:flex; justify-content:center; margin:0 0 12px;
}
:root[data-theme] #current-court-layout .ink-tools-content {
 padding:0 10px 10px;
}
:root[data-theme] #current-court-layout .ink-tools-content .annotation-move-button {
 width:100%; margin-bottom:8px;
}
:root[data-theme] #current-court-layout .ink-tools-content .text-note-toolbar {
 margin:8px 0 10px;
}
.ink-quick-stop {
 display:flex; align-items:center; justify-content:space-between; gap:8px;
 margin:0 0 12px; color:var(--vr-muted); font-size:11px;
}
.ink-quick-stop[hidden] { display:none; }
#ink-stop {
 padding:7px 10px; border:1px solid var(--vr-line); border-radius:8px;
 background:var(--vr-panel); color:var(--vr-ink); font:inherit; cursor:pointer;
}

/* v62 — share the size/annotation row and keep the text editor label in one line. */
:root[data-theme] #current-court-layout .ink-tools-content .ink-actions-row {
 display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px;
 margin:0 0 10px; align-items:stretch;
}
:root[data-theme] #current-court-layout .ink-actions-row #player-half-size,
:root[data-theme] #current-court-layout .ink-actions-row .annotation-move-button {
 display:flex; align-items:center; justify-content:center;
 width:100%; min-width:0; max-width:100%;
 height:38px; min-height:38px; margin:0; padding:7px 4px;
 font-size:10.5px; line-height:1.2; white-space:nowrap;
}
:root[data-theme] #current-court-layout .ink-actions-row #player-half-size {
 letter-spacing:.45px; font-weight:650;
}
:root[data-theme] #current-court-layout .ink-tools-content .text-note-toolbar {
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(68px,1.7fr) repeat(2,minmax(0,.75fr));
 gap:6px;
}
:root[data-theme] #current-court-layout .ink-tools-content .text-note-toolbar .draw-tool {
 display:flex; align-items:center; justify-content:center;
 width:100%; min-width:0; max-width:100%;
 height:38px; min-height:38px; padding:6px 3px;
 font-size:11px; line-height:1.3; text-align:center; white-space:nowrap;
}
