:root { --bg:#f4f5f7; --card:#fff; --ink:#1b1f23; --muted:#6a737d; --accent:#0b6bcb; --warn:#c2410c; --ok:#15803d; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.4 system-ui,sans-serif; background:var(--bg); color:var(--ink); }
header { display:flex; justify-content:space-between; align-items:center; padding:10px 16px; background:#111827; color:#fff; flex-wrap:wrap; gap:8px; }
header h1 { font-size:18px; margin:0; }
#who { font-size:14px; display:flex; gap:10px; align-items:center; }
main { max-width:720px; margin:0 auto; padding:12px; }
nav { display:flex; gap:6px; margin:8px 0 12px; flex-wrap:wrap; }
nav button, button { font:inherit; padding:8px 14px; border:1px solid #cbd5e1; background:#fff; border-radius:8px; cursor:pointer; }
nav button.on, button.primary { background:var(--accent); color:#fff; border-color:var(--accent); }
button.danger { color:var(--warn); border-color:var(--warn); }
button:disabled { opacity:.5; }
.card { background:var(--card); border-radius:12px; padding:12px 14px; margin:10px 0; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.grow { flex:1; }
.route { font-weight:600; }
.muted { color:var(--muted); font-size:14px; }
.badge { display:inline-block; padding:2px 8px; border-radius:99px; font-size:13px; background:#e2e8f0; }
.badge.now { background:#fee2e2; color:#b91c1c; font-weight:600; }
.badge.offer { background:#dcfce7; color:var(--ok); }
.badge.request { background:#e0f2fe; color:var(--accent); }
label { display:block; margin:10px 0 4px; font-size:14px; color:var(--muted); }
input, select, textarea { font:inherit; width:100%; padding:8px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; }
.seg { display:flex; gap:6px; flex-wrap:wrap; }
.seg label { margin:0; display:flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; color:var(--ink); }
.seg input { width:auto; }
.err { color:var(--warn); margin:8px 0; }
.ok { color:var(--ok); margin:8px 0; }
.hidden { display:none; }
#map { height:300px; border-radius:12px; overflow:hidden; margin:8px 0; }
.pin { width:18px; height:18px; border-radius:50%; border:2px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.5); cursor:pointer; }
.pin.place { width:10px; height:10px; background:#6a737d; }
.pin.offer { background:var(--ok); }
.pin.request { background:var(--accent); }
button.result { display:block; width:100%; text-align:left; margin-top:4px; font-size:14px; }
footer { text-align:center; padding:20px 12px 28px; font-size:14px; color:var(--muted); }
footer a { color:var(--accent); }
.placefield { position:relative; }
.suggest { position:absolute; left:0; right:0; z-index:10; background:#fff; border:1px solid #cbd5e1; border-radius:8px; margin-top:2px; max-height:320px; overflow:auto; box-shadow:0 4px 12px rgba(0,0,0,.12); }
.suggest .opt { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid #eef0f3; border-radius:0; padding:8px 10px; background:#fff; }
.suggest .opt:hover { background:#f1f5f9; }
.suggest .opt.common::before { content:"★ "; color:#f59e0b; }
.suggest .opt .muted { font-size:13px; }
#who a.hdr-link { color:#fff; }
#toasts { position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:1000; width:min(92vw,420px); display:flex; flex-direction:column; gap:8px; }
.toast { background:#111827; color:#fff; padding:12px 14px; border-radius:10px; box-shadow:0 6px 20px rgba(0,0,0,.3); cursor:pointer; }
.toast .muted { color:#cbd5e1; }
