/* Add or edit a post (specs/pages.md, "add/"). */
.add h1 { font-size: 1.8rem; }
.steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.steps li { flex: 1; font-size: .85rem; font-weight: 600; color: var(--muted); border-top: 5px solid var(--line); padding-top: 6px; counter-increment: step; border-radius: 3px; }
.steps li::before { content: counter(step) ". "; }
.steps li.on { color: var(--text); border-color: var(--copper); font-weight: 700; }
.steps li.done { border-color: var(--mint); }

.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(--copper); background: var(--tag-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: 2px 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; scroll-margin-top: 72px; }
.pick-map { height: clamp(240px, calc(100vh - 330px), 480px); height: clamp(240px, calc(100dvh - 330px), 480px); border-radius: var(--radius); border: 2px 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: var(--alarm); 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; }
.step-buttons { margin-top: 18px; }

.photos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 8px; }
.photo-item { background: var(--surface); border: 2px 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: var(--alarm-text); }
.file-button { margin: 0; }
.licence { margin-top: 20px; }
