/* Handball Tracker v1.28 revision 14: linked shot review and light analytics surfaces */
body.v128r14-ui .r3-review-card:has(canvas),
body.v128r14-ui .r13-gk-card,
body.v128r14-ui .r14-linked-review {
  background: #f8fbfe !important;
  color: #102033 !important;
  border-color: rgba(37, 78, 112, .22) !important;
  box-shadow: 0 14px 34px rgba(9, 30, 50, .12) !important;
}
body.v128r14-ui .r3-review-card:has(canvas) h2,
body.v128r14-ui .r3-review-card:has(canvas) h3,
body.v128r14-ui .r3-review-card:has(canvas) h4,
body.v128r14-ui .r14-linked-review h2,
body.v128r14-ui .r14-linked-review h3,
body.v128r14-ui .r13-gk-card h3,
body.v128r14-ui .r13-gk-card h4 {
  color: #0b2440 !important;
}
body.v128r14-ui .r3-review-card:has(canvas) p,
body.v128r14-ui .r14-linked-review p,
body.v128r14-ui .r13-gk-card p,
body.v128r14-ui .r13-gk-card span {
  color: #4a6176 !important;
}
body.v128r14-ui .r3-half-court-wrap,
body.v128r14-ui .r3-goal-wrap,
body.v128r14-ui .r3-full-field-wrap,
body.v128r14-ui .r3-timeline-wrap {
  background: linear-gradient(180deg, #ffffff, #eaf4fb) !important;
  border: 1px solid rgba(37, 78, 112, .20) !important;
  border-radius: 16px;
  padding: 8px;
}
body.v128r14-ui .r3-half-court-wrap canvas,
body.v128r14-ui .r3-goal-wrap canvas,
body.v128r14-ui .r3-full-field-wrap canvas {
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.r14-linked-review { display: grid; gap: 14px; }
.r14-selected-shot-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #e9f5ff);
  border: 1px solid rgba(37, 78, 112, .18);
}
.r14-selected-shot-card.muted { grid-template-columns: 1fr; }
.r14-selected-shot-card h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.r14-selected-shot-card p { margin: 0; }
.r14-kicker { display:block; text-transform: uppercase; letter-spacing:.06em; color:#286b9c !important; font-weight:800; font-size:.72rem; }
.r14-detail-grid { display:grid; grid-template-columns: auto minmax(110px,1fr); gap: 4px 12px; font-size: .88rem; }
.r14-detail-grid span { color:#667b8d; }
.r14-detail-grid b { color:#122436; }
.r14-selected-shot-card button,
.r14-shot-list button {
  border: 1px solid rgba(37, 78, 112, .2);
  background:#fff;
  color:#0b4b7a;
  border-radius: 10px;
  padding: 7px 10px;
  font-weight: 800;
  cursor:pointer;
}
.r14-shot-list { overflow-x:auto; border-radius: 14px; border:1px solid rgba(37,78,112,.15); }
.r14-shot-list table { width:100%; border-collapse: collapse; min-width: 680px; background:#fff; }
.r14-shot-list th { text-align:left; color:#34536c; font-size:.78rem; text-transform: uppercase; letter-spacing:.04em; background:#edf6fc; }
.r14-shot-list th, .r14-shot-list td { padding: 9px 10px; border-bottom:1px solid #e2edf5; color:#102033; }
.r14-shot-list tr.selected td { background:#dff1ff; }
.r14-shot-list tr:hover td { background:#f1f8fd; }
.r14-outcome { display:inline-flex; align-items:center; gap:4px; font-weight:800; border-radius: 999px; padding: 3px 8px; background:#eef3f7; color:#223; }
.r14-outcome.goal { color:#137326; background:#e6f7e9; }
.r14-outcome.save { color:#155bb2; background:#e8f1ff; }
.r14-outcome.miss { color:#b65300; background:#fff2e3; }
.r14-outcome.blocked { color:#886000; background:#fff7d8; }
body.v128r14-ui .r3-field-legend { color:#34536c !important; }
@media (max-width: 760px) {
  .r14-selected-shot-card { grid-template-columns: 1fr; }
  .r14-detail-grid { grid-template-columns: 1fr 1fr; }
  .r14-shot-list table { min-width: 620px; }
}
