.completion-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d9e3eb;
  border-radius: 12px;
  background: #f8fbfd;
}

.completion-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.completion-heading h3 {
  margin: 3px 0 0;
  font-size: 16px;
  color: #17324d;
}

.completion-kicker {
  display: block;
  color: #6a7d8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.completion-required-summary {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f2f8;
  color: #245a83;
  font-size: 11px;
  font-weight: 800;
}

.completion-review-note {
  margin-bottom: 14px;
  padding: 12px;
  border-left: 3px solid #b7791f;
  background: #fff8e8;
  color: #6b4d17;
}

.completion-review-note strong { display: block; margin-bottom: 4px; font-size: 13px; }
.completion-review-note p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.5; }

.completion-text-label {
  display: grid;
  gap: 7px;
  margin: 13px 0;
  color: #32475a;
  font-size: 13px;
  font-weight: 800;
}

.completion-text-label > span { color: #7b8b9b; font-size: 11px; font-weight: 600; }
.completion-text-label textarea,
.completion-text-label input {
  width: 100%;
  border: 1px solid #c8d3dd;
  border-radius: 9px;
  background: white;
  color: #17212b;
  padding: 11px 12px;
  font: inherit;
  resize: vertical;
}

.completion-money-input {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.completion-money-input b { color: #5f7183; font-size: 13px; }

.completion-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.completion-photo-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin: 0;
  padding: 12px;
  border: 1px dashed #aebdca;
  border-radius: 10px;
  background: white;
}

.completion-photo-field strong { color: #20364a; font-size: 13px; }
.completion-photo-field span { color: #718096; font-size: 11px; font-weight: 600; }
.completion-photo-field input[type="file"] {
  width: 100%;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid #d8e0e7;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 11px;
}
.completion-photo-field em {
  color: #245a83;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}
.completion-camera-button {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #2b6f9f;
  border-radius: 8px;
  background: #fff;
  color: #245a83;
  font-weight: 800;
}
.completion-photo-wide { grid-column: 1 / -1; }

.completion-help {
  margin: 11px 0 0;
  color: #718096;
  font-size: 11px;
  line-height: 1.5;
}

.completion-error,
.completion-load-error {
  min-height: 18px;
  margin: 8px 0;
  color: #b42318;
  font-size: 12px;
}

.completion-submit { margin-top: 4px; }

.evidence-camera-dialog {
  width: min(100% - 20px, 560px);
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(11, 31, 48, .35);
}
.evidence-camera-dialog::backdrop { background: rgba(5, 20, 32, .72); }
.evidence-camera-shell { padding: 16px; overflow-y: auto; max-height: calc(100dvh - 20px); }
.evidence-camera-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.evidence-camera-heading span { color: #2b6f9f; font-size: 11px; font-weight: 900; }
.evidence-camera-heading h2 { margin: 3px 0 0; color: #17324d; font-size: 19px; }
.evidence-camera-heading button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #edf2f6; color: #31485d; font-size: 24px; }
.evidence-camera-help, .evidence-camera-privacy { color: #64788b; font-size: 12px; line-height: 1.5; }
.evidence-camera-view { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 13px; background: #0b1720; }
.evidence-camera-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.evidence-camera-view [data-camera-status] { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; }
.evidence-camera-view [data-camera-status][hidden] { display: none; }
.evidence-camera-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.evidence-camera-actions button { flex: 1; }
.evidence-camera-actions strong { min-width: 54px; color: #245a83; text-align: right; }
.evidence-camera-privacy { margin: 9px 0; padding: 9px 10px; border-radius: 8px; background: #eef8f3; color: #276749; font-weight: 700; }
.evidence-server-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.evidence-server-photos > p { grid-column: 1 / -1; margin: 4px 0; padding: 18px; border: 1px dashed #c8d3dd; border-radius: 10px; color: #718096; text-align: center; font-size: 12px; }
.evidence-server-photos figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d9e3eb; border-radius: 10px; background: #f8fafc; }
.evidence-server-photos figure > div { aspect-ratio: 4 / 3; background: #e7edf2; }
.evidence-server-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.evidence-server-photos figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px; color: #456072; font-size: 10px; }
.evidence-server-photos figcaption button { border: 0; background: transparent; color: #b42318; font-size: 11px; font-weight: 800; }
.evidence-camera-confirm { width: 100%; margin-top: 4px; }
.evidence-camera-confirm:disabled { opacity: .55; }

@media (max-width: 430px) {
  .completion-form { padding: 14px; }
  .completion-heading { display: block; }
  .completion-required-summary { display: inline-block; margin-top: 8px; }
  .completion-photo-grid { grid-template-columns: 1fr; }
  .completion-photo-wide { grid-column: auto; }
  .evidence-camera-dialog { width: 100%; max-width: none; max-height: 100dvh; border-radius: 0; }
  .evidence-camera-shell { min-height: 100dvh; max-height: 100dvh; border-radius: 0; }
}


.completion-location-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.completion-location-group {
  padding: 14px;
  border: 2px solid #d9e2ec;
  border-radius: 12px;
  background: #f8fafc;
}

.completion-location-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.completion-location-heading strong {
  color: #102a43;
  font-size: 16px;
}

.completion-location-heading span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #175cd3;
  background: #eaf2ff;
  font-size: 11px;
  font-weight: 700;
}

.completion-location-group .completion-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.completion-location-group .completion-photo-field {
  min-width: 0;
}

@media (max-width: 720px) {
  .completion-location-group {
    padding: 12px;
  }

  .completion-location-group .completion-photo-grid {
    grid-template-columns: 1fr;
  }

  .completion-location-heading {
    align-items: flex-start;
  }
}
