.container.live-detail-container { padding-top: 8px; }

.live-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 8px;
  color: #000;
  font-size: 14px;
  line-height: 20px;
}
.live-detail-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 8px;
  color: #0153cc;
  border-radius: 4px;
}
.live-detail-breadcrumb > span { min-width: 0; overflow-wrap: anywhere; padding: 8px; }
.live-detail-breadcrumb img { flex-shrink: 0; }

.live-detail-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .1);
}
.live-detail-header { display: flex; align-items: center; gap: 16px; }
.live-detail-header-actions { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.live-detail-delete-form { display: flex; flex: none; margin: 0; }
.live-detail-delete { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 8px; border: 1px solid #b91222; border-radius: 8px; background: #b91222; color: #fff; box-shadow: 0 2px 16px rgba(0, 0, 0, .1); cursor: pointer; }
.live-detail-delete:hover { border-color: #970e1c; background: #970e1c; }
.live-detail-delete img { display: block; width: 24px; height: 24px; }
.live-detail-heading { display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; }
.live-detail-heading h1 { margin: 0; min-width: 0; font-size: 24px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.live-detail-id { flex: 0 1 auto; min-width: 0; max-width: 35%; color: #999; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.live-detail-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(239.055deg, var(--plum, #bb33ff) 0%, #3485fe 99.108%);
  color: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .1);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}
.live-detail-watch:hover { color: #fff; filter: brightness(.95); }
.live-detail-watch:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.live-detail-watch img, .live-detail-download img { flex-shrink: 0; }
.live-detail-divider { height: 1px; overflow: hidden; }
.live-detail-divider img { display: block; }

.live-detail-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.live-detail-description { flex: 1; min-width: 0; }
.live-detail-description p { margin: 0 0 4px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.live-detail-timestamps { display: flex; flex-wrap: wrap; gap: 4px 16px; color: #666; font-size: 12px; line-height: 1.5; }
.live-detail-state { display: inline-flex; flex-shrink: 0; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 16px; background: var(--caribbean, #00eeff); color: #000; font-size: 16px; font-weight: 500; line-height: 19px; }
.live-detail-state--complete { background: #00bf9f; }
.live-detail-state--waiting { background: #e5eeff; color: #003c71; }

.live-detail-groups { display: flex; flex-direction: column; gap: 8px; }
.live-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.live-detail-grid--clinical { padding: 8px; border-radius: 8px; background: #f2f7ff; }
.live-detail-grid--location { padding: 8px; border-radius: 8px; background: #f2f2f2; }
.live-detail-grid--technical { padding-inline: 8px; }
.live-detail-field { min-width: 0; padding: 8px 16px; }
.live-detail-field dt { margin-bottom: 6px; color: #999; font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; overflow-wrap: anywhere; }
.live-detail-field dd { margin: 0; color: #000; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.live-detail-grid--technical dd { font-size: 14px; }
.live-detail-downloads { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 16px; }
.live-detail-downloads .live-remaining { font-size: 10px; font-style: italic; color: #666; }
.live-detail-download { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #0153cc; border-radius: 8px; background: #fff; color: #0153cc; font-size: 16px; line-height: 24px; }
.live-detail-download:hover { color: #0153cc; background: #f2f7ff; }

.live-detail-panel { margin-top: 24px; color: #666; }
.live-detail-panel > summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: hidden; padding: 8px 16px 17px; font-size: 24px; font-weight: 400; line-height: 1; cursor: pointer; list-style: none; }
.live-detail-panel > summary::-webkit-details-marker { display: none; }
.live-detail-panel__chevron { flex-shrink: 0; transition: transform .15s; }
.live-detail-panel__divider { position: absolute; bottom: 0; left: 0; }
.live-detail-panel[open] > summary .live-detail-panel__chevron { transform: rotate(180deg); }
.live-detail-metadata { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; margin: 16px 0 0; padding: 0 16px; }
.live-detail-metadata dt { text-transform: none; }
.live-detail-metadata dd { font-size: 14px; line-height: 1.5; }
.live-detail-metadata-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: text; border-radius: 2px; }
.live-detail-metadata-value:hover, .live-detail-metadata-value:focus { overflow: visible; white-space: normal; overflow-wrap: anywhere; }

.live-detail-management { margin-top: 24px; padding-top: 16px; border-top: 1px solid #d8e2ea; }
.live-detail-management-actions.show-actions { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.live-detail-management-actions.show-actions > .button, .live-detail-management-actions.show-actions > .dropdown { width: auto; }
.live-detail-management-actions.show-actions .button { border-radius: 8px; font-weight: 500; }
.live-detail-management-actions.show-actions .dropdown-menu { max-width: min(500px, calc(100vw - 64px)); }
.live-detail-container :is(a, button, summary, [tabindex]):focus-visible { outline: 2px solid #0153cc; outline-offset: 3px; }

@media (max-width: 1024px) {
  .live-detail-header { flex-wrap: wrap; }
  .live-detail-heading { flex-basis: 100%; }
  .live-detail-id { flex: 1; max-width: none; }
  .live-detail-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .live-detail-card { padding: 12px; }
  .live-detail-heading { align-items: flex-start; gap: 8px; }
  .live-detail-heading h1 { font-size: 20px; }
  .live-detail-header { gap: 12px; }
  .live-detail-id { flex-basis: 100%; font-size: 12px; }
  .live-detail-header-actions { margin-left: auto; }
  .live-detail-watch { padding-inline: 10px; font-size: 14px; gap: 6px; }
  .live-detail-summary { align-items: flex-start; flex-direction: column; gap: 8px; }
  .live-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .live-detail-grid--location .live-detail-field:last-child { grid-column: 1 / -1; }
  .live-detail-field { padding: 8px; }
  .live-detail-field dd { font-size: 14px; }
  .live-detail-downloads { align-items: flex-start; flex-direction: column; gap: 8px; }
  .live-detail-panel > summary { padding-inline: 8px; font-size: 20px; }
  .live-detail-metadata { gap: 0 8px; padding: 0; }
  .live-detail-management-actions.show-actions > .button, .live-detail-management-actions.show-actions > .dropdown { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .live-detail-panel__chevron { transition: none; }
}
