/* Handball Tracker v1.28 revision 15: player-card shot-order markers, collapsed linked review, unified light analytics and live court */
body.v128r15-ui .r14-linked-review {
  background: linear-gradient(180deg, #eef6fb, #e3f0f8) !important;
  border: 1px solid rgba(34, 78, 112, .25) !important;
  color: #102033 !important;
  box-shadow: 0 14px 30px rgba(7, 27, 44, .16) !important;
}
body.v128r15-ui .r15-linked-review > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 2px 2px 0;
}
body.v128r15-ui .r15-linked-review > summary::-webkit-details-marker { display: none; }
body.v128r15-ui .r15-linked-review > summary h2 { margin: 0; color: #0b2440 !important; }
body.v128r15-ui .r15-linked-review > summary p { margin: 3px 0 0; color: #4a6176 !important; }
body.v128r15-ui .r15-expand-label {
  white-space: nowrap;
  border: 1px solid rgba(34,78,112,.24);
  background: #fff;
  color: #0b4b7a;
  border-radius: 999px;
  padding: 7px 11px;
  font-weight: 800;
  font-size: .82rem;
}
body.v128r15-ui .r15-linked-review[open] .r15-expand-label::before { content: 'Collapse'; }
body.v128r15-ui .r15-linked-review[open] .r15-expand-label { font-size: 0; }
body.v128r15-ui .r15-linked-review[open] .r15-expand-label::before { font-size: .82rem; }
body.v128r15-ui .r15-linked-review:not([open]) { padding-bottom: 14px; }
body.v128r15-ui .r15-linked-review:not([open]) .r14-selected-shot-card,
body.v128r15-ui .r15-linked-review:not([open]) .r14-shot-list { display: none; }

body.v128r15-ui .r3-review-card:has(canvas),
body.v128r15-ui .r13-gk-card {
  background: linear-gradient(180deg, #eef6fb, #e5f1f8) !important;
  border: 1px solid rgba(34, 78, 112, .25) !important;
}
body.v128r15-ui .r3-half-court-wrap,
body.v128r15-ui .r3-goal-wrap,
body.v128r15-ui .r3-full-field-wrap,
body.v128r15-ui .r3-timeline-wrap {
  background: linear-gradient(180deg, #f7fbfe, #dfeef7) !important;
  border-color: rgba(34, 78, 112, .28) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 10px 24px rgba(11,36,64,.08);
}
body.v128r15-ui .r14-selected-shot-card,
body.v128r15-ui .r14-shot-list table {
  background: linear-gradient(180deg, #ffffff, #f2f8fd);
}

/* Live tracking: use the lighter court/readability style without losing the dark app identity. */
body.v128r15-ui #trackingInputCard.tracking-main-card {
  background: linear-gradient(180deg, #eef6fb, #dcecf6) !important;
  color: #102033 !important;
  border-color: rgba(47, 85, 115, .34) !important;
  box-shadow: 0 18px 42px rgba(4, 18, 32, .24) !important;
}
body.v128r15-ui #trackingInputCard h2,
body.v128r15-ui #trackingInputCard h3,
body.v128r15-ui #trackingInputCard label { color: #0b2440 !important; }
body.v128r15-ui #trackingInputCard p,
body.v128r15-ui #trackingInputCard .hint { color: #526b80 !important; }
body.v128r15-ui #courtWrap,
body.v128r15-ui #goalWrap {
  background: linear-gradient(180deg, #f9fcff, #dfedf7) !important;
  border: 1px solid rgba(47,85,115,.28) !important;
  border-radius: 18px !important;
  padding: 8px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 10px 24px rgba(11,36,64,.10);
}
body.v128r15-ui #courtCanvas,
body.v128r15-ui #goalCanvas {
  border-radius: 14px;
  background: #f5f9fc;
}
body.v128r15-ui .court-quick-actions button,
body.v128r15-ui #detailsPanel button,
body.v128r15-ui #detailsPanel input,
body.v128r15-ui #detailsPanel select,
body.v128r15-ui #trackingInputCard input,
body.v128r15-ui #trackingInputCard select {
  border-color: rgba(47,85,115,.28) !important;
}
body.v128r15-ui .r10-active-players {
  background: linear-gradient(180deg, #ffffff, #edf7fd) !important;
  border-color: rgba(47,85,115,.24) !important;
}
@media (max-width: 760px) {
  body.v128r15-ui .r15-linked-review > summary { align-items:flex-start; }
  body.v128r15-ui .r15-expand-label { padding: 6px 10px; }
}
