/* Add or edit a report (specs/pages.md, "add/"). */
.add h1 { font-size: 1.7rem; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.steps li { flex: 1; font-size: .82rem; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; counter-increment: step; }
.steps li::before { content: counter(step) ". "; }
.steps li.on { color: var(--text); border-color: var(--turquoise); font-weight: 700; }
.steps li.done { border-color: var(--turquoise-strong); }

.methods { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 640px) { .methods { grid-template-columns: repeat(2, 1fr); } }
.method {
  display: flex; flex-direction: column; gap: 2px; text-align: left; margin: 0;
  min-height: 60px; padding: 10px 14px; border-radius: var(--radius); cursor: pointer;
  background: var(--surface); border: 2px solid var(--line); color: var(--text); font: inherit;
}
.method span { font-weight: 400; font-size: .88rem; color: var(--muted); }
.method.on { border-color: var(--turquoise); background: var(--public-bg); }

.pick-search { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pick-search input { flex: 1; min-width: 0; }
.pick-results { list-style: none; margin: 0; padding: 4px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pick-results button { width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.pick-results button:hover { background: var(--bg); }
.pick-wrap { position: relative; }
.pick-map { height: 52vh; min-height: 280px; max-height: 520px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.cross { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; z-index: 450; }
.cross::before, .cross::after { content: ""; position: absolute; background: #E0372B; box-shadow: 0 0 0 1px #fff; }
.cross::before { left: 17px; top: 0; width: 2px; height: 36px; }
.cross::after { top: 17px; left: 0; height: 2px; width: 36px; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--turquoise-strong); }
.step-buttons { margin-top: 18px; }
.which-map { height: 240px; border-radius: var(--radius); border: 1px solid var(--line); margin: 10px 0; z-index: 0; }
.which-option { display: flex; gap: 10px; align-items: center; }
.which-option img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }

.name-row { display: grid; grid-template-columns: 1fr 7.5em 44px; gap: 6px; margin-bottom: 6px; }
.name-row button { background: none; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 1.3rem; cursor: pointer; }

.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 8px; }
.photo-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; font-size: .85rem; }
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; display: block; }
.photo-item input { min-height: 38px; margin-top: 6px; font-size: .88rem; padding: 6px 8px; }
.photo-item .row { justify-content: space-between; margin-top: 4px; }
.photo-item button { background: none; border: 0; color: var(--link); cursor: pointer; font: inherit; text-decoration: underline; padding: 6px 0; }
.photo-item .state { color: var(--muted); }
.photo-item .state.error { color: #B3372B; }
.file-button { margin: 0; font-weight: 600; }
.licence { margin-top: 20px; }
