/* Phone-first additions on top of styles.css.
   Everything here assumes one hand, poor light, and a moving vehicle. */

.wrap { max-width: 560px; padding: 16px 14px 96px; }

/* 44px is the smallest reliably tappable target; inputs get 16px text because
   anything smaller makes iOS zoom the whole page on focus. */
input, select, button, textarea { min-height: 44px; font-size: 16px; }

button.wide { width: 100%; margin-top: 10px; }
.row { display: flex; gap: 8px; align-items: stretch; }
.row input { flex: 1 1 auto; }
.row button { flex: 0 0 auto; }

label { margin-top: 12px; }

.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.result:first-child { border-top: none; }
.result .name { font-weight: 600; }

.gps {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.gps.ok { border-color: var(--accent); color: var(--accent); }

.preview {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* One item per row on a phone: three columns side by side are unusable. */
.item {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.item:first-child { border-top: none; }
.item .line { display: flex; gap: 8px; margin-top: 8px; }
.item .line input[type="number"] { flex: 0 0 110px; }
.item .line input[type="text"] { flex: 1 1 auto; }
.item .drop { flex: 0 0 44px; }

/* The photo stays visible while typing, which is the whole point. */
@media (min-width: 720px) {
  .wrap { max-width: 880px; }
}
