.ci-panel {
  max-width: 68rem;
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}
.ci-location, .ci-actions, .ci-filter { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.ci-location { justify-content: space-between; color: var(--muted); padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.ci-location span { font-weight: 750; overflow-wrap: anywhere; }
.ci-heading { display: grid; gap: .4rem; }
.ci-heading h2 { font-size: clamp(1.9rem, 3vw, 2.45rem); }
.ci-panel p { max-width: 70ch; }
.ci-review { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 1.65rem; align-items: start; }
.ci-section, .ci-evidence, .ci-form { min-width: 0; display: grid; gap: .85rem; }
.ci-section { border-top: 1px solid var(--line); padding-top: 1rem; }
.ci-section > .btn { justify-self: start; }
.ci-review .ci-section { border-top: 0; padding-top: 0; }
.ci-form { max-width: 45rem; }
.ci-form > .btn { justify-self: start; }
.ci-panel label:not(.ci-check) { display: grid; gap: .35rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.ci-filter { align-items: end; }
.ci-check { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.ci-check input { accent-color: var(--gold); width: 1.2rem; height: 1.2rem; flex: none; }
.ci-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.ci-panel :is(.btn,.input) { min-height: 44px; max-width: 100%; }
.ci-panel select.input { background: var(--solid); }
.ci-panel .input[type=file] { width: 100%; padding: .45rem; }
.ci-panel .input[type=file]::file-selector-button {
  font: inherit; color: var(--ink); background: var(--panel2); padding: .35rem .55rem;
  margin-inline-end: .75rem; border: 1px solid var(--line2); border-radius: .4rem; cursor: pointer;
}
.ci-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.ci-counts div { display: grid; gap: .2rem; padding: .7rem .65rem .85rem; }
.ci-counts div + div { border-inline-start: 1px solid var(--line); }
.ci-counts dt { color: var(--muted); font-size: .875rem; }
.ci-counts dd { margin: 0; font: 700 1.6rem/1 var(--num); font-variant-numeric: tabular-nums; }
.ci-mappings { border-block: 1px solid var(--line); padding: .45rem 0; }
.ci-mappings summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 750; }
.ci-mappings p { margin-bottom: .65rem; }
.ci-mappings[open] { padding-bottom: 1rem; }
.ci-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ci-rows li { display: flex; gap: .75rem; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.ci-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.ci-rows p { font-size: .875rem; }
.ci-rows .btn { flex: none; }
.ci-evidence blockquote { margin: 0; padding: 1rem; border-radius: .65rem; background: var(--bg2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ci-evidence mark { color: var(--ink); background: color-mix(in srgb, var(--gold) 24%, var(--bg2)); }
.ci-evidence .btn { justify-self: start; }
.ci-evidence + .ci-evidence { margin-top: 1rem; }
.ci-attachments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ci-attachment {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: .5rem;
  min-width: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  overflow-wrap: anywhere;
}
.ci-attachment-state { font-size: .875rem; font-weight: 700; color: var(--ink); }
.ci-attachment :is(audio, video) { min-width: 0; }
.ci-attachments:has(> :nth-child(2)) :is(img, video).ci-media { max-height: 13rem; }
.ci-media { display: block; max-width: 100%; max-height: 24rem; border-radius: .55rem; }
.ci-evidence audio { width: 100%; }
.ci-frame { display: grid; justify-items: start; gap: .4rem; margin: 0; min-width: 0; }
.ci-frame a { max-width: 100%; }
.ci-frame img { object-fit: contain; object-position: left; }
.ci-play-video summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 700; }
.ci-value { font-weight: 750; overflow-wrap: anywhere; }
.ci-time { font-variant-numeric: tabular-nums; }
.ci-evidence-copy p { margin-bottom: .35rem; }
.ci-cells { display: grid; grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr); gap: .28rem .8rem; margin: 0; font-size: .9rem; }
.ci-cells dt { font-weight: 650; }
.ci-cells dd { margin: 0; font-weight: 400; white-space: pre-wrap; overflow-wrap: anywhere; }
.ci-links { display: grid; gap: .75rem; min-width: 0; margin: 0; padding: .65rem; border: 1px solid var(--line); }
.ci-links .ci-evidence { margin: 0; padding: .55rem; background: var(--bg2); border-radius: .5rem; }
.ci-links input { accent-color: var(--gold); }
.ci-status { padding: .65rem .8rem; border-radius: .55rem; background: var(--bg2); color: var(--ink); overflow-wrap: anywhere; }
.ci-empty { padding: 1rem 0; }
.ci-feedback:empty { display: none; }
@media (max-width: 760px) {
  .ci-review { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .ci-review .ci-section { border-top: 1px solid var(--line); padding-top: 1rem; }
}
@media (max-width: 480px) {
  .ci-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ci-counts div:nth-child(odd) { border-inline-start: 0; }
  .ci-counts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ci-grid { grid-template-columns: minmax(0, 1fr); }
  .ci-location { align-items: flex-start; }
  .ci-rows li { align-items: flex-start; }
  .ci-rows li:has([data-capture-action=undo]) { flex-direction: column; }
  .ci-panel .ci-actions .goldb { width: 100%; }
}
