.court-popup-mode .live-v2 { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.tracker-v2 .tracker-head, .tracker-v2 .event-strip { flex: 0 0 auto; }
.court-popup-mode .live-court { padding: 12px 16px 44px; min-height: 0; }
.court-popup-mode .live-court #posCourt { width: 100%; height: 100%; max-width: none; min-height: 0; flex: 1 1 auto; }
.court-popup-mode .entry-panel.court-event-popup { position: absolute; z-index: 10; top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: min(640px, calc(100% - 32px)); min-height: 320px; height: auto; overflow: visible; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); }
.court-popup-mode [hidden] { display: none !important; }
.court-popup-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.court-popup-toolbar > span { color: var(--brand-ink); font-weight: 600; }
.court-popup-toolbar-actions { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.court-popup-mode .entry-panel .live-lineup-heading { flex-wrap: wrap; }
.court-popup-mode .live-lineup-heading h3, .court-popup-mode .draft-save-state { display: none; }
.court-popup-mode .live-lineup-heading { justify-content: flex-end; }
.court-popup-mode .entry-panel .opts:not(.players) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.court-popup-mode .entry-panel .opts.players { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.court-popup-mode .entry-panel section > label { color: var(--ink-muted); }
.court-popup-mode .entry-panel section > label::first-letter { color: var(--brand-ink); }
.court-popup-mode .entry-panel section > label { font-weight: 600; }
.court-popup-mode .entry-panel section > label.court-popup-optional { display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid color-mix(in srgb, var(--ink-muted) 42%, var(--line)); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--ink-muted) 8%, var(--surface)); color: var(--ink-muted); }
.court-popup-mode .entry-panel section > label:has(+ .choice-row) { white-space: nowrap; }
.court-popup-mode .court-popup-result { margin: 12px 0; padding: 12px; border: 1px solid color-mix(in srgb, var(--brand-ink) 30%, var(--line)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--brand-tint) 44%, var(--surface)); }
.court-popup-mode .court-popup-result > label { color: var(--brand-ink); font-weight: 700; }
.court-popup-mode .live-custom-buttons { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.court-entry-launchers { position: absolute; bottom: 12px; left: 20px; right: 20px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; }
.court-entry-launchers > span { color: var(--ink-muted); font-size: 13px; }
.live-session-menu { position: relative; }
.live-session-menu summary { cursor: pointer; list-style: none; }
.live-session-menu summary::-webkit-details-marker { display: none; }
.live-session-actions { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); display: grid; gap: 8px; width: 160px; padding: 12px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-pop); }
.dashboard-live-session { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.dashboard-live-session p { margin: 4px 0 0; color: var(--ink-muted); font-size: 13px; }
.dashboard-live-session strong { font-size: 16px; }
.dashboard-live-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 767px) {
  .court-popup-mode .tracker-head { padding: 10px 12px; }
  .court-popup-mode .live-court { padding: 8px 8px 44px; }
  .court-popup-mode .entry-panel.court-event-popup { top: 50%; left: 50%; width: min(640px, calc(100% - 16px)); min-height: 280px; }
  .court-entry-launchers { left: 8px; right: 8px; bottom: 8px; }
  .court-entry-launchers > span { flex-basis: 100%; text-align: center; }
  .dashboard-live-session { align-items: flex-start; flex-direction: column; }
  .event-strip { flex-wrap: wrap; }
  .court-popup-mode .step-track { display: none; }
  .event-strip .btn small, .event-strip .btn kbd, .event-strip .status small { display: none; }
  .event-strip .btn { font-size: 12px; padding: 6px 8px; }
  .event-strip .status { flex-basis: 100%; }
}

/* A content-sized card for quick court entry. */
.court-popup-mode .entry-panel.court-event-popup { padding: 10px 14px 12px; }
.court-popup-mode .entry-panel section { padding-top: 8px; }
.court-popup-mode .entry-panel section + section { margin-top: 0; }
.court-popup-mode .entry-panel section > label { margin-bottom: 6px; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }
.court-popup-mode .entry-panel kbd, .court-popup-mode .entry-panel .chip-avatar { display: none; }
.court-popup-mode .entry-panel .opts.players .option { padding: 6px 10px; min-height: 44px; }
.court-popup-mode .entry-panel .draft-edit-chips { margin: 4px 0; gap: 4px; }
.court-popup-mode .entry-panel .draft-edit-chips button { min-height: 26px; padding: 0 8px; font-weight: 500; }
.court-popup-mode .entry-panel .complete { margin-top: 10px; }
.court-popup-more { position: absolute; z-index: 12; top: 48px; right: 14px; width: min(360px, calc(100% - 28px)); padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink-muted); font-size: 12px; box-shadow: var(--shadow-pop); }
.court-popup-more[hidden] { display: none; }
.court-popup-more .live-event-controls { display: grid; gap: 4px; margin: 0; }
.court-popup-more .tracking-guide-button { margin-top: 4px; }

.court-popup-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Popup choices stay compact and visible after a shot is selected. The
   optional marker is intentionally part of the label, not a disclosure. */
.court-popup-mode .entry-panel .choice-row,
.court-popup-mode .entry-panel .opts:not(.players) { align-items: stretch; }
.court-popup-mode .entry-panel .choice-row .option { min-width: 0; }
.court-popup-mode .entry-panel .option { min-height: 38px; }
