#event-debrief {
  width: min(1120px, calc(100% - 24px));
  max-height: 93dvh;
  padding: clamp(14px, 3vw, 32px);
  background: #101c19;
  border: 1px solid #42584a;
  color: #edf4e9;
}
.debrief-heading, .debrief-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.debrief-heading h2 { font-size: clamp(24px, 5vw, 46px); margin: .2rem 0; overflow-wrap: anywhere; }
.debrief-kicker { color: #cbe38d; font-size: .85rem; }
#debrief-date, #debrief-coverage { color: #b6c6bd; }
#debrief-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: #42584a;
  border: 1px solid #42584a;
  margin: 1rem 0;
}
#debrief-metrics div { background: #172522; padding: .8rem; }
#debrief-metrics dt { color: #b6c6bd; font-size: .86rem; }
#debrief-metrics dd { margin: .3rem 0 0; font: 1.65rem ui-monospace, monospace; }
.debrief-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(175px, 245px); gap: 1rem; }
.debrief-layout aside { border-top: 1px solid #42584a; }
#debrief-map { height: clamp(260px, 47vh, 520px); background: #28372f; border: 1px solid #42584a; isolation: isolate; }
#debrief-player:not([hidden]) { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; padding-top: .75rem; }
#debrief-player label { flex: 1; min-width: 120px; }
#debrief-time { width: 100%; }
#debrief-clock { font: .85rem ui-monospace, monospace; }
#debrief-tracks label { display: flex; align-items: center; gap: .55rem; }
#debrief-tracks input { width: auto; }
.debrief-swatch { width: .65rem; height: .65rem; border-radius: 50%; flex: none; }
.debrief-label { background: #101c19; color: #fff; border-color: #758d7e; font-weight: 600; }
@media (max-width: 670px) {
  #debrief-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debrief-layout { grid-template-columns: 1fr; }
}
@media print {
  body:has(#event-debrief[open]) > :not(#event-debrief) { display: none !important; }
  #event-debrief[open] { position: static; display: block; width: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: #111; background: #fff; }
  #event-debrief::backdrop, .debrief-actions, #debrief-player, #debrief-retry { display: none !important; }
  #event-debrief #debrief-date, #debrief-coverage, .debrief-kicker, #debrief-metrics dt { color: #34443d; }
  #debrief-metrics div { background: #eef3ef; }
  #debrief-map { print-color-adjust: exact; break-inside: avoid; }
}

#debrief-timeline { display: grid; gap: 5px; max-height: 340px; overflow: auto; }
.debrief-event { display: grid; gap: 4px; text-align: left; overflow-wrap: anywhere; }
.debrief-event small { color: #b6c6bd; }
.debrief-event[aria-pressed="true"] { border-color: #cbe38d; }
@media print {
  #debrief-timeline { max-height: none; overflow: visible; }
  .debrief-event, .debrief-event small { color: #34443d; background: #fff; break-inside: avoid; }
}
