body {
  padding-bottom: env(safe-area-inset-bottom);
}
.loading {
  text-align: center;
  margin-top: 30vh;
  color: var(--muted);
}
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 16px 120px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
}
.topbar .inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.crew-name {
  font-size: 1.25rem;
  font-weight: 800;
}
.crew-swatch {
  width: 14px;
  align-self: stretch;
  border-radius: 6px;
}
.members {
  color: var(--muted);
  font-size: 0.95rem;
}
:where(button).big { /* only buttons (the logo also has a "big" class); :where keeps the old weight so button styles still win where they did */
  width: 100%;
  min-height: 64px;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 14px;
  margin-top: 0.6rem;
}
.current {
  border: 3px solid var(--brand);
  margin: 1rem 0;
}
.current h2 {
  font-size: 1.35rem;
  margin-bottom: 0.15rem;
}
.stop {
  margin: 0.7rem 0;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.6rem;
}
.stop .num {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--muted);
  text-align: center;
  padding-top: 0.1rem;
}
.stop .title {
  font-weight: 700;
  font-size: 1.1rem;
}
.stop .addr {
  color: var(--muted);
  font-size: 0.95rem;
}
.stop .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}
.stop .actions button {
  flex: 1;
  min-height: 48px;
  font-weight: 700;
}
.stop.done {
  opacity: 0.72;
}
.stop.here {
  outline: 3px solid var(--ok);
}
.banner {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin: 0.8rem 0;
  font-weight: 600;
}
.banner.info {
  background: color-mix(in srgb, var(--brand) 14%, var(--panel));
}
.banner.ok {
  background: color-mix(in srgb, var(--ok) 16%, var(--panel));
}
.banner.warn {
  background: color-mix(in srgb, var(--warn) 18%, var(--panel));
}
.crew-pick {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0.6rem 0;
  padding: 1rem;
  border-radius: 14px;
  min-height: 70px;
  border-left-width: 10px;
}
.crew-pick strong {
  font-size: 1.2rem;
}
.section-title {
  margin: 1.4rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: var(--muted);
}
.notice-list li {
  margin: 0.5rem 0;
  font-weight: 600;
}
.menu-btn {
  min-width: 48px;
  font-size: 1.2rem;
}
.footer-actions {
  margin-top: 2rem;
  display: grid;
  gap: 0.6rem;
}
.code-input {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 1.4rem;
  text-align: center;
}
form.card input {
  width: 100%;
}

/* ---- Batch 2: finished stops, one-time stops, wrong-truck alert, driver ---- */
.stop.finished {
  opacity: 0.6;
  background: color-mix(in srgb, var(--danger) 9%, var(--panel));
}
.stop.one-time {
  border-left: 4px dashed var(--warn);
}
.chip.finished {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}
.banner.danger {
  background: color-mix(in srgb, var(--danger) 16%, var(--panel));
  border: 2px solid var(--danger);
}
.banner.danger button {
  margin-top: 0.6rem;
  width: 100%;
}
.left-count {
  font-weight: 600;
  color: var(--muted);
}
.busy-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.8rem 1rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--warn) 22%, var(--panel));
  border-bottom: 2px solid var(--warn);
}

.top-mark { height: 18px; flex: none; }

/* ---- Crew confirmation reminder on the checked-in card (owner, 2026-11-23) ---- */
.confirm-reminder {
  margin: 0.8rem 0 1rem;
  padding: 0.6rem 0.75rem;
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--soft);
}
.confirm-q {
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---- Snow depth on the checked-in card (4" or more = 2×) ---- */
.snow-choice {
  margin: 0.8rem 0 1rem;
}
.snow-q {
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.snow-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.snow-btn {
  min-height: 56px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 12px;
  border-width: 2px;
}
.snow-btn.on {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-text);
}
.snow-btn.on.deep {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}

/* ---- Not completed: why? (quick picks + typed reason) ---- */
.reason-q {
  font-weight: 700;
  margin: 0 0 0.5rem;
}
.reason-q:focus {
  outline: none;
}
.reason-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.reason-pick {
  min-height: 44px;
  border-radius: 999px;
  padding: 0.4em 0.9em;
}
.reason-box {
  width: 100%;
  min-height: 4.5em;
}
.reason-hint {
  color: var(--danger);
  font-weight: 600;
  margin: 0.4rem 0 0;
}
.reason-line {
  overflow-wrap: anywhere;
}

/* Put AVA on the home screen (waiting screen). Easy to find, not loud. */
.install-btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 1rem;
  font-size: 1.05rem;
}
.install-steps {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.6rem;
  font-size: 1.15rem;
  line-height: 1.5;
}
.install-steps li {
  margin: 0.6rem 0;
  padding-left: 0.2rem;
}
.install-steps li::marker {
  font-weight: 700;
}
.share-icon {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.3em;
  color: #0a84ff;
}
.menu-dots {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
  font-weight: 900;
  font-size: 1.3em;
  line-height: 1;
  vertical-align: -0.1em;
}
.install-done {
  font-weight: 700;
  color: var(--ok);
}
.install-help .other-phone {
  margin-top: 0.25rem;
  font-size: 1rem;
}
