.upload-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.upload-heading > .btn, #uploaded-files .panel-head > .btn { flex: none; min-height: 44px; }
#uploaded-files .panel-head .caption { margin-top: 4px; }
.upload-entry h3, .chosen-uploads b { overflow-wrap: anywhere; }
#evidence:has(#upload-form) { width: min(94vw, 540px); }
#evidence:has(#upload-form) > form[method="dialog"] { display: none; }
.upload-form { display: grid; gap: 14px; margin: 8px 0 0; }
.upload-form > p:first-child { color: var(--muted); }
.upload-fields { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 12px; }
.upload-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 650; min-width: 0; }
.upload-form [hidden] { display: none; }
.upload-form select, .upload-form input[type="date"] {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #acbfb2;
  border-radius: 8px; color: var(--ink); background: white; font: inherit; font-weight: 450;
}
.upload-form .upload-drop {
  position: relative; justify-items: center; padding: 20px 12px; border: 1.5px dashed #81a68f;
  border-radius: 12px; text-align: center; background: #f3f8f2; cursor: pointer;
}
.upload-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-drop .i { width: 25px; height: 25px; color: var(--spruce); }
.upload-drop small, .chosen-uploads small { color: var(--muted); font-weight: 450; }
.upload-drop:focus-within { outline: 3px solid #337850; outline-offset: 2px; }
.upload-drop:hover { background: #eaf4e9; }
.chosen-uploads { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chosen-uploads:empty, #upload-status:empty { display: none; }
.chosen-uploads li { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 5px 0; }
.chosen-uploads li > div { display: grid; min-width: 0; gap: 3px; }
.chosen-uploads button, .upload-actions button { min-height: 44px; }
.upload-actions { display: flex; justify-content: flex-end; gap: 8px; }
.upload-actions button:disabled { opacity: .58; cursor: default; }
#upload-status { overflow-wrap: anywhere; }
#evidence:has(#recording-player) { width: min(94vw, 760px); }
#evidence:has(#recording-player) h2 { overflow-wrap: anywhere; }
#recording-player { display: grid; gap: 10px; }
#recording-player [hidden] { display: none; }
#recording-player video { width: 100%; max-height: 43vh; border-radius: 8px; background: #112621; }
#recording-player > .btn { justify-self: start; }
.video-cues { max-height: 22vh; overflow-y: auto; margin-top: 6px; }
.video-cues button { display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left; padding: 10px 5px; min-height: 40px; background: white; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); font: inherit; }
.video-cues button:hover, .video-cues button:focus-visible { background: #eff6f1; }
.video-cues button span { font-size: .85rem; color: var(--spruce); font-variant-numeric: tabular-nums; }
@media (max-width: 540px) {
  #evidence:has(#upload-form) { padding: 17px; }
  .upload-heading { gap: 10px; }
  .upload-fields { grid-template-columns: 1fr; }
}
