/* Customer journey overrides. Keep recognition, approvals and evidence intact. */
:root {
  --journey-muted: #52675f;
  --journey-focus: #247a70;
  --journey-line: #cad6cd;
}
#review-heading, #export-heading, #photos-heading, #tripContext, #mapPanel { scroll-margin-top:90px; }
.subject-clue-label { display:block; font-size:13px; margin:12px 0 5px; }
#subjectClueForm input { width:100%; min-height:44px; padding:9px 12px; border:1px solid var(--journey-line); border-radius:6px; color:var(--ink); background:var(--white); }
#checkSubjectClue { margin-top:14px; }

button,
input,
textarea,
summary,
a { touch-action: manipulation; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--journey-focus);
  outline-offset: 3px;
}

.button,
.text-button,
.filter,
.map-controls button {
  min-height: 44px;
  min-width: 44px;
}

.button { font-size: 14px; line-height: 1.35; }
textarea { font-size: 14px; }
textarea::placeholder,
.coordinate-inputs input::placeholder { color: #52675f; opacity: 1; }
.text-button { color: #43675d; font-size: 12px; padding: 10px 5px; }
.filter { padding: 10px 11px; font-size: 12px; color: #52675f; }
.filter span { font-size: 11px; }
.filter.active { color: #20594f; border-color: #b7cec1; }

.field-hint,
.drop-zone small,
.local-note,
.optional-label,
.muted-label,
.photo-info small,
.selected-photo p,
.review-placement,
.empty-collection small,
.empty-inspector small,
.legend,
.map-footer p {
  color: var(--journey-muted);
  font-size: 12px;
  line-height: 1.55;
}

.intro p { font-size: 14px; }
.workflow { gap: 16px; color: #586961; font-size: 12px; flex-wrap: wrap; }
.workflow li { min-height: 32px; }
.workflow span { width: 25px; height: 25px; font-size: 12px; }
.section-number { color: #576b5d; }
.count-badge { color: #52675f; font-size: 12px; }
.drop-zone p { font-size: 14px; color: var(--journey-muted); }
.drop-zone .button { min-width: 160px; }
.drop-zone small { margin-top: 13px; }
.local-note { align-items: flex-start; justify-content: flex-start; padding-top: 16px; }
.local-note svg { margin-top: 2px; }

.journey-navigation {
  display: flex;
  gap: 9px;
  align-items: stretch;
  margin: 0 0 18px;
}
.journey-navigation .button { min-width: 130px; }
.journey-navigation .button[aria-pressed="true"] { border-color: #247a70; }
.journey-progress {
  border: 1px solid #c5d9cc;
  border-radius: 10px;
  background: #eef4ea;
  padding: 16px 18px;
  margin-bottom: 18px;
  color: var(--ink);
}
.journey-progress strong { display: block; font-size: 15px; }
.journey-progress p { color: var(--journey-muted); font-size: 13px; line-height: 1.5; margin: 4px 0 10px; }
.journey-progress progress { display: block; width: 100%; height: 8px; accent-color: var(--teal); }
.journey-progress progress::-webkit-progress-bar { background: #dce7dc; border-radius: 5px; }
.journey-progress progress::-webkit-progress-value { background: var(--teal); border-radius: 5px; }
.journey-progress progress::-moz-progress-bar { background: var(--teal); border-radius: 5px; }

.upload-feedback { color: var(--ink); font-size: 13px; line-height: 1.5; margin: 13px 0 0; }
.upload-feedback:empty,
.collection-summary:empty,
.journey-progress p:empty,
#discoveryAvailability:empty { display: none; }
.upload-issues { margin-top: 7px; font-size: 13px; color: #785431; }
.upload-issues ul { margin: 8px 0 0; padding-left: 22px; overflow-wrap: anywhere; }
.upload-issues li + li { margin-top: 7px; }

.journey-details,
.review-details { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 3px; }
summary { min-height: 44px; cursor: pointer; padding: 10px 0; color: #205f55; font-size: 13px; line-height: 1.65; font-weight: 600; }
.journey-details summary span,
.map-panel summary span { color: var(--journey-muted); font-weight: 400; }
.review-details summary { min-height: 44px; padding: 10px 0; font-size: 13px; line-height: 1.65; }
.journey-details[open] summary { margin-bottom: 6px; }
.backup-tools { margin: 13px 0; }
.backup-tools .review-subactions { gap: 16px; flex-wrap: wrap; margin-top: 0; }
.operator-details { margin-top: 15px; }
.operator-details .ai-status { margin-top: 0; padding-top: 0; border-top: 0; }
.ai-status strong,
.ai-status p,
.connection-help,
.usage-counts,
.usage-reservation,
.usage-note,
.usage-loading { font-size: 12px; line-height: 1.55; color: var(--journey-muted); }
.usage-heading h3 { font-size: 13px; }
.usage-total > span { font-size: 12px; }
.usage-stopped { color: #785324; font-size: 12px; }

.analysis-actions { margin-top: 14px; align-items: flex-start; flex-wrap: wrap; }
.analysis-actions .button { min-width: 170px; }
.analysis-actions > span { font-size: 12px; color: var(--journey-muted); line-height: 1.55; }
.processing-consent { color: var(--journey-muted); font-size: 12px; line-height: 1.6; margin: 11px 0 0; }
.collection-summary { font-size: 13px; color: var(--journey-muted); line-height: 1.55; margin: 0 0 13px; }
#startReview { margin-bottom: 6px; }
#stopDiscovery { margin-top: 13px; }
.photos-panel .collection-heading { gap: 12px; align-items: center; }
.collection-heading > div { min-width: 0; }
.collection-heading h2 { overflow-wrap: anywhere; }

.photo-info strong { font-size: 12px; }
.photo-info small { font-size: 11px; }
.status { font-size: 11px; line-height: 1.4; white-space: normal; }
.status.verified,
.status.approved { color: #28664e; }
.status.estimated { color: #86551a; }
.status.uncertain,
.status.ready,
.status.loading,
.status.manual { color: #4d6068; }
.status.error { color: #884332; }
.photo-card .status { max-width: 100%; }
.photo-card:focus-within { outline: 3px solid var(--journey-focus); outline-offset: 3px; }
.photo-card > button:focus-visible { outline-offset: -3px; }
.photo-index { font-size: 11px; background: #183c3c; }
.approval-check { width: 24px; height: 24px; }

/* Review comes before optional map exploration and downloading. */
.review-panel > .inspector-panel { order: 0; }
.review-panel > .map-panel { order: 1; }
.review-panel > .export-panel { order: 2; }
.map-panel > summary { padding: 14px 21px; min-height: 52px; }
.map-panel[open] > summary { border-bottom: 1px solid var(--line); }
.map-viewport { touch-action: pan-y; }
.map-viewport.loaded { touch-action: none; }
.map-controls button { width: 44px; height: 44px; }
.map-controls button:focus-visible { outline-offset: -3px; }
.map-marker,
.map-marker.selected { width: 44px; height: 44px; }
.map-marker svg { position: absolute; left: 11px; bottom: 0; width: 22px; height: 28px; }
.map-marker.selected svg { left: 7.5px; width: 29px; height: 36px; }
.map-welcome { padding: 16px 20px; }
.map-welcome p { color: #52675f; font-size: 13px; }
.map-welcome .button { min-height: 44px; font-size: 13px; }
.map-welcome small { font-size: 11px; color: #52675f; }
.map-attribution { font-size: 11px; color: #365348; }
.map-footer .legend { gap: 14px; flex-wrap: wrap; }

.review-heading { gap: 12px; align-items: flex-start; }
.review-heading h2 { flex: 1; min-width: 0; }
.review-heading .status { flex-shrink: 0; max-width: 48%; }
.inspector-panel .selected-photo img { height: clamp(220px, 23vw, 310px); }
.inspector-panel .photo-filename { font-size: 12px; overflow-wrap: anywhere; }
.review-summary { font-size: 14px; }
.review-placement { font-size: 13px; }
.review-actions { gap: 10px; }
.review-actions .button { font-size: 14px; flex: 1 1 140px; }
#nextReview { width: 100%; margin-top: 12px; }
#addTravelClue,
#refreshEvidence { margin-top: 10px; }
.camera-summary,
.review-details .camera-summary,
.evidence-panel strong,
.evidence-panel ul,
.confidence-row { color: var(--journey-muted); font-size: 12px; line-height: 1.6; }
.coordinate-sources { font-size: 12px; gap: 8px 12px; }
.coordinate-sources a { color: #205f55; min-height: 44px; display: inline-flex; align-items: center; padding: 9px 0; overflow-wrap: anywhere; }
.coordinate-inputs input { min-height: 44px; font-size: 14px; }
.coordinate-inputs label { font-size: 12px; color: var(--journey-muted); }
.coordinates legend { font-size: 13px; }
.landmark-note { color: #77521e; font-size: 12px; }
.photo-warnings { color: #784c37; font-size: 12px; }
.review-subactions { gap: 12px; flex-wrap: wrap; }
.remove-photo { color: #78523e; }
.export-panel p { color: #c5d8cb; font-size: 13px; line-height: 1.6; }
.export-panel > small { font-size: 12px; color: #b6cebc; line-height: 1.6; }
#refreshApproved { margin-top: 11px; width: 100%; }
.site-footer { font-size: 12px; color: var(--journey-muted); }
#workspaceStatus { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .analysis-actions { flex-direction: column; align-items: stretch; }
  .analysis-actions .button { width: 100%; }
  .workflow { gap: 10px; font-size: 11px; }
}

@media (max-width: 720px) {
  .journey-navigation {
    position: sticky;
    top: 8px;
    z-index: 15;
    gap: 6px;
    padding: 6px;
    margin: 0 -6px 16px;
    border: 1px solid #cad6cd;
    border-radius: 9px;
    background: #fffefa;
    box-shadow: 0 4px 16px #183c3c15;
  }
  .journey-navigation .button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 7px 5px; font-size: 12px; }
  #review-heading,
  #export-heading,
  #photos-heading,
  #tripDetails { scroll-margin-top: 90px; }
  .workspace[data-mobile-view="collection"] > .review-panel { display: none; }
  .workspace[data-mobile-view="review"] > .collection-panel { display: none; }
  .workspace { gap: 0; }
  .workflow { gap: 13px; font-size: 11px; }
  .workflow span { width: 24px; height: 24px; font-size: 11px; }
  .review-panel,
  .collection-panel { gap: 16px; }
  .inspector-panel .selected-photo img { height: clamp(230px, 55vw, 350px); }
  .map-viewport { height: 360px; }
  .map-illustration { width: 220px; height: 82px; }
  .map-welcome small { max-width: 300px; }
  .review-details summary,
  .journey-details summary,
  .map-panel > summary { font-size: 14px; }
  .review-actions .button { flex-basis: 135px; }
  .journey-progress { padding: 15px; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 430px) {
  .header-right { gap: 5px; }
  .brand { font-size: 20px; }
  .brand small { font-size: 9px; letter-spacing: .55px; }
  .brand-mark { width: 35px; height: 35px; }
  .workflow { gap: 10px; font-size: 10px; }
  .workflow li { gap: 5px; }
  .workflow span { width: 22px; height: 22px; font-size: 10px; }
  .context-panel,
  .photos-panel,
  .inspector-panel { padding: 17px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-thumb { height: 110px; }
  .photo-info { padding: 8px; }
  .photo-info strong { font-size: 11px; }
  .photo-info small { font-size: 11px; }
  .status { font-size: 10px; padding: 4px 6px; }
  .filters { gap: 6px; }
  .filter { font-size: 12px; padding: 10px 9px; }
  .filter span { margin-left: 4px; font-size: 11px; }
  .inspector-panel .selected-photo .location-name { font-size: 18px; }
  .collection-heading { flex-wrap: wrap; }
  .collection-heading > div { flex: 1 1 150px; }
  .map-panel > summary { padding-left: 17px; padding-right: 17px; }
  .map-welcome { padding: 13px 17px; }
  .map-welcome h3 { font-size: 21px; }
  .map-welcome p { margin-top: 5px; margin-bottom: 10px; }
  .review-actions .button { flex-basis: 100%; }
  .coordinate-inputs { grid-template-columns: 1fr; gap: 10px; }
  .usage-total { flex-wrap: wrap; }
  .usage-heading { flex-wrap: wrap; }
  .section-heading h2 { font-size: 15px; }
}
.clear-confirmation { width:min(460px,calc(100% - 32px)); border:1px solid var(--line); border-radius:13px; padding:24px; color:var(--ink); background:var(--white); }
.clear-confirmation::backdrop { background:rgba(20,57,56,.42); }
.clear-confirmation .review-actions { flex-wrap:wrap; }
