.live-readout {
  margin-top: 14px;
  padding: 15px 16px 12px;
  border: 1px solid #d9e1e7;
  border-radius: 16px;
  background: #f7f9fa;
  color: #19242b;
}
.live-readout-head,
.live-readout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.live-readout-head h3 {
  margin: 0;
  color: #17232a;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.015em;
}
.live-readout-head p {
  margin: 3px 0 0;
  color: #58666f;
  font-size: 12px;
  line-height: 1.45;
}
.live-frame-stamp {
  flex: 0 0 auto;
  color: #46545d;
  font: 600 11px/1.4 "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.live-detection-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 10px;
  padding: 0;
  list-style: none;
}
.live-detection-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1e6e9;
  border-radius: 11px;
  background: #fff;
}
.live-entity-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66737b;
}
.live-detection-row.tone-worker .live-entity-mark { background: #c6532a; }
.live-detection-row.tone-machine .live-entity-mark { background: #2876a8; }
.live-entity-copy { min-width: 0; }
.live-entity-copy strong {
  display: block;
  overflow-wrap: anywhere;
  color: #1b272e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.live-entity-copy small {
  display: block;
  margin-top: 2px;
  color: #596872;
  font: 11px/1.4 "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.live-detection-facts {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #44535d;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.live-helmet-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.live-helmet-state.state-present { background: #e8f4eb; color: #245b38; }
.live-helmet-state.state-absent { background: #fff0e6; color: #85421f; }
.live-helmet-state.state-unknown { background: #edf0f2; color: #46535b; }
.live-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 11px;
  border: 1px dashed #cbd5db;
  border-radius: 11px;
  background: #fff;
}
.live-empty-mark {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8b979e;
}
.live-empty div { display: grid; gap: 2px; }
.live-empty strong { color: #27343c; font-size: 12px; line-height: 1.4; }
.live-empty span:not(.live-empty-mark) { color: #58666f; font-size: 11px; line-height: 1.45; }
.live-readout-foot {
  padding-top: 9px;
  border-top: 1px solid #e0e5e8;
  color: #53616a;
  font-size: 10px;
  line-height: 1.45;
}
.live-readout-foot #localLatency {
  color: #26343c;
  font: 600 11px/1.4 "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .live-readout { padding: 13px 12px 11px; }
  .live-readout-head { align-items: flex-start; }
  .live-frame-stamp { max-width: 46%; text-align: right; }
  .live-detection-row { grid-template-columns: 8px minmax(0, 1fr); }
  .live-detection-facts { grid-column: 2; justify-items: start; text-align: left; }
  .live-readout-foot { align-items: flex-start; }
  .view#camera .camera-wrap + .actions { flex-wrap: nowrap; gap: 6px; }
  .view#camera .camera-wrap + .actions > .btn,
  .view#camera .camera-wrap + .actions > label.btn {
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .live-detection-row { transition: none !important; }
}
