:root {
  --forest: #2d4a33;
  --orange: #d97b29;
  --sage: #a8bfa0;
  --cream: #faf6ef;
  --peach: #f8e3d0;
  --muted: #6b6b66;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--cream); color: #1d1d1b; }
body { font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }

header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  background: var(--forest); color: #fff; font-weight: 600;
}
header img { border-radius: 6px; background: #fff; }
header .link { margin-left: auto; color: #fff; }

main { max-width: 560px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.35rem; color: var(--forest); margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; margin: 6px 0 0; }
.error { color: #b3261e; min-height: 1.2em; }
.help { margin-top: 32px; font-size: .9rem; color: var(--muted); text-align: center; }
a { color: var(--forest); }

label { display: block; font-weight: 600; margin: 16px 0 6px; }
input {
  width: 100%; font-size: 1.15rem; padding: 12px; letter-spacing: .04em;
  border: 1px solid var(--sage); border-radius: 10px; background: #fff;
}
input:focus { outline: 2px solid var(--forest); border-color: transparent; }
.phone-row { display: flex; align-items: center; gap: 8px; }
.phone-row span { font-size: 1.15rem; font-weight: 600; }
button {
  font: inherit; cursor: pointer; border: 0; border-radius: 10px;
  width: 100%; margin-top: 16px; padding: 13px; font-weight: 600;
  background: var(--forest); color: #fff;
}
button:disabled { opacity: .55; cursor: default; }
button.link { width: auto; margin: 12px 0 0; padding: 0; background: none; color: var(--forest); font-weight: 500; text-decoration: underline; }

#map { height: 52vh; min-height: 280px; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: #e9e6df; }

.trip {
  background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.trip-head { display: flex; gap: 12px; align-items: center; }
.trip-head img, .trip-head .avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none;
  background: var(--peach); display: grid; place-items: center; font-size: 1.4rem; color: var(--forest);
}
.trip h2 { font-size: 1.1rem; margin: 0; color: var(--forest); }
.trip .sub { color: var(--muted); font-size: .9rem; }
.eta { font-size: 1.6rem; font-weight: 700; color: var(--orange); margin: 10px 0 2px; }
.eta.arrived { color: var(--forest); }
.fresh { font-size: .85rem; color: var(--muted); }
.fresh.stale { color: #b3261e; }
.trip a.open-maps { display: inline-block; margin-top: 8px; font-size: .9rem; }
