:root {
  --bg: #0b0f17;
  --card: #151b27;
  --card-2: #1d2433;
  --line: #283246;
  --text: #e7ecf3;
  --muted: #8b97ab;
  --accent: #ffc23d;
  --accent-press: #e0a516;
  --green: #2ecc71;
  --err: #ff6b6b;
  --radius: 14px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; }
body { padding: env(safe-area-inset-top) 0 calc(env(safe-area-inset-bottom) + 16px); }
.hidden { display: none !important; }

h1 { font-size: 1.5rem; margin: 0; }
h2 { font-size: 1.05rem; margin: 1.4rem 0 .6rem; }
h3 { font-size: .95rem; margin: 1.2rem 0 .5rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .85rem; }
.err { color: var(--err); font-size: .85rem; min-height: 1em; }

header { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; position: sticky; top: 0; background: var(--bg);
  flex-wrap: wrap; border-bottom: 1px solid var(--line); }
nav { display: flex; gap: 6px; }
.tab { background: var(--card); color: var(--muted); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.tab.active { background: var(--accent); color: #1a1205; border-color: var(--accent); font-weight: 600; }

.tab-panel { display: none; padding: 0 16px; max-width: 560px; margin: 0 auto; }
.tab-panel.active { display: block; }

input { width: 100%; padding: 14px; margin: 6px 0; font-size: 1rem;
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius); outline: none; }
input:focus { border-color: var(--accent); }

button { font-size: 1rem; border: none; border-radius: var(--radius);
  padding: 14px; width: 100%; margin: 8px 0; font-weight: 600; cursor: pointer; }
button:active { transform: translateY(1px); }
.primary { background: var(--accent); color: #1a1205; }
.primary:active { background: var(--accent-press); }
.primary.big { padding: 18px; font-size: 1.15rem; }
.secondary { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.check.on { border-color: var(--accent); }
.check .name { font-weight: 600; }
.check .addr { color: var(--muted); font-size: .8rem; }

.adhoc { margin-top: 12px; }
.adhoc summary { color: var(--accent); padding: 8px 0; cursor: pointer; }

.list .row { display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 8px; }
.list .row .meta { overflow: hidden; }
.list .row .meta b { display: block; }
.list .row .meta span { color: var(--muted); font-size: .8rem; }
.list .row button { width: auto; padding: 8px 12px; margin: 0; font-size: .85rem; }

.result { margin-top: 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; }
.step { display: flex; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: none; }
.step .num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #1a1205; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.step .eta { margin-left: auto; color: var(--muted); font-size: .85rem; }
.step.home .num { background: var(--green); color: #04210f; }
.total { margin: 12px 0; font-weight: 700; }

.gate { position: fixed; inset: 0; background: var(--bg); display: grid;
  place-items: center; padding: 24px; z-index: 10; }
.gate-card { width: 100%; max-width: 360px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  padding: 12px 18px; border-radius: 999px; z-index: 20; box-shadow: 0 8px 30px #0008; }
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
