:root { --ink:#13262b; --muted:#5d7178; --line:#dde7e6; --bg:#f4f8f7; --card:#fff; --brand:#0b8988; --brand-dark:#096d6c; --hot:#d84e2f; --warn:#9a5b00; --bad:#b3261e; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
button { font:inherit; cursor:pointer; }
.top { display:flex; align-items:center; justify-content:space-between; height:54px; padding:0 20px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-size:17px; } .brand b { color:var(--brand); letter-spacing:.04em; }
.top nav { display:flex; gap:6px; }
.top nav button { border:0; background:none; padding:8px 14px; border-radius:8px; color:var(--muted); font-weight:600; }
.top nav button.active { background:#e3f3f2; color:var(--brand-dark); }
.pill { display:inline-block; min-width:20px; padding:0 6px; border-radius:999px; background:var(--brand); color:#fff; font-size:12px; text-align:center; }
.layout { display:grid; grid-template-columns:minmax(380px, 460px) 1fr; height:calc(100vh - 54px); }
.panel { overflow-y:auto; padding:16px; display:grid; gap:14px; align-content:start; }
.map-wrap { position:relative; } #map { position:absolute; inset:0; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:14px; }
.card h2, .card h3 { margin:0 0 8px; font-size:15px; } .card h2 small { font-weight:400; color:var(--muted); }
.step { display:inline-grid; place-items:center; width:22px; height:22px; margin-right:6px; border-radius:50%; background:var(--brand); color:#fff; font-size:12px; font-weight:700; }
.muted { color:var(--muted); font-size:13px; } .help { color:var(--muted); font-size:13px; margin:4px 0 0; }
.drop { display:grid; gap:6px; justify-items:center; text-align:center; padding:22px 12px; border:2px dashed #b9d3d1; border-radius:12px; background:#fafdfd; }
.drop.over { border-color:var(--brand); background:#eaf7f6; }
.primary, .ghost, .link { border-radius:9px; padding:8px 14px; font-weight:650; font-size:14px; }
.primary { border:0; background:var(--brand); color:#fff; } .primary:hover { background:var(--brand-dark); } .primary:disabled { opacity:.5; cursor:wait; }
.ghost { border:1px solid #b9d3d1; background:#fff; color:var(--brand-dark); } .ghost.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.link { border:0; background:none; color:var(--brand-dark); padding:4px 6px; text-decoration:none; }
progress { width:100%; height:8px; accent-color:var(--brand); }
.row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.city { display:flex; width:100%; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px; margin-top:6px; border:1px solid var(--line); border-radius:10px; background:#fff; text-align:left; }
.city:hover { border-color:var(--brand); } .city b { font-size:15px; } .city span { color:var(--muted); font-size:13px; }
.chips { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0 0; }
.chip { padding:3px 9px; border-radius:999px; background:#eef4f4; color:#35545a; font-size:12px; }
.back { border:0; background:none; color:var(--brand-dark); font-weight:650; padding:0; }
.notice { padding:11px 12px; border-radius:10px; background:#fff7e8; border:1px solid #f0d9a8; color:var(--warn); font-size:14px; }
.notice.ok { background:#eaf7f1; border-color:#bfe0cf; color:#1f6a4f; }
.spot { display:grid; grid-template-columns:30px 1fr; gap:10px; padding:12px 0; border-top:1px solid var(--line); } .spot:first-of-type { border-top:0; }
.rank { display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--hot); color:#fff; font-weight:800; }
.spot h4 { margin:0; font-size:15px; } .count { color:var(--hot); font-weight:700; }
.actions { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.restaurant { display:grid; grid-template-columns:1fr auto; gap:6px 10px; padding:10px 0; border-top:1px solid var(--line); }
.restaurant:first-child { border-top:0; } .restaurant .meta { color:var(--muted); font-size:13px; } .stars { color:#b36b00; font-weight:700; }
.route { display:grid; grid-template-columns:1fr auto; gap:4px 10px; padding:9px 0; border-top:1px solid var(--line); }
.route:first-of-type { border-top:0; } .bar { height:5px; border-radius:3px; background:#d6ebe9; margin-top:4px; } .bar i { display:block; height:100%; border-radius:3px; background:var(--brand); }
.badge { padding:2px 8px; border-radius:999px; font-size:12px; font-weight:650; } .badge.done { background:#e3f5ec; color:#1f6a4f; } .badge.queued { background:#eef3fb; color:#2b4a8a; } .badge.failed { background:#fdecea; color:var(--bad); }
.toast { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); z-index:1000; max-width:min(560px, 92vw); padding:11px 16px; border-radius:10px; background:#13262b; color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.25); }
.toast.error { background:var(--bad); }
.hotspot-label { display:grid !important; place-items:center; width:26px !important; height:26px !important; border:2px solid #fff; border-radius:50%; background:var(--hot); color:#fff; font-weight:800; box-shadow:0 2px 6px rgba(0,0,0,.35); }
details summary { cursor:pointer; color:var(--brand-dark); font-weight:650; }
table { width:100%; border-collapse:collapse; font-size:14px; } th, td { padding:8px 6px; border-top:1px solid var(--line); text-align:left; vertical-align:top; } th { color:var(--muted); font-weight:600; font-size:12px; }
@media (max-width: 860px) { .layout { grid-template-columns:1fr; grid-template-rows:45vh auto; height:auto; } .map-wrap { order:-1; height:45vh; } .panel { overflow:visible; } }
.route.lit { background:#fff3ef; margin:0 -8px; padding-left:8px; padding-right:8px; border-radius:8px; }
.legend { padding:8px 10px; border-radius:10px; background:rgba(255,255,255,.94); box-shadow:0 1px 6px rgba(0,0,0,.25); font-size:12px; line-height:1.7; color:var(--ink); }
.legend b { display:block; margin-bottom:2px; }
.swatch { display:inline-block; vertical-align:middle; margin-right:6px; }
.swatch.line { width:22px; height:5px; border-radius:3px; background:#1a56db; box-shadow:0 0 0 1.5px #fff, 0 0 0 2.5px #c9d6f5; }
.swatch.spot { width:16px; height:16px; border-radius:50%; background:var(--hot); color:#fff; font-size:10px; font-weight:800; text-align:center; line-height:16px; }
.swatch.dot { width:11px; height:11px; border-radius:50%; background:rgba(11,137,136,.55); border:1px solid var(--brand); }
.traffic { display:flex; align-items:center; gap:8px; margin:3px 0; } .traffic .bar { flex:1; margin:0; height:7px; } .traffic .bar i { background:#f0a02a; }
.check { display:flex; align-items:center; gap:6px; margin:8px 0 2px; font-size:13px; color:var(--muted); }
.swatch.spot { flex:none; min-width:16px; }
.end-dot { display:block; width:16px; height:16px; border-radius:50%; border:3px solid #1a56db; box-shadow:0 1px 4px rgba(0,0,0,.4); }
.route.lit { background:#eef3ff; }
.layout.wide { grid-template-columns:minmax(760px, 1fr) minmax(300px, 34%); }
.table-wrap { overflow-x:auto; margin-top:10px; }
table.restaurants { min-width:880px; } table.restaurants th { position:sticky; top:0; background:#fff; }
table.restaurants td { padding:10px 8px; } table.restaurants .num { font-weight:700; color:var(--muted); }
table.restaurants .why { max-width:300px; color:#31484e; font-size:13px; } table.restaurants .acts { white-space:nowrap; } table.restaurants .acts .ghost { display:block; margin-bottom:4px; }
.prio { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.prio.High { background:#fde7e4; color:#a8281a; } .prio.Medium { background:#fff0d6; color:#8a5200; } .prio.Low { background:#eceff0; color:#53636a; }
#source-filter { padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:#fff; }
@media (max-width: 1180px) { .layout.wide { grid-template-columns:1fr; grid-template-rows:auto 55vh; height:auto; } .layout.wide .map-wrap { order:2; height:55vh; } .layout.wide .panel { overflow:visible; } }
.who { display:flex; align-items:center; gap:10px; font-size:14px; } .who small { color:var(--muted); }
.top { gap:12px; } #nav { display:flex; gap:6px; flex:1; margin-left:18px; } #nav button { border:0; background:none; padding:8px 14px; border-radius:8px; color:var(--muted); font-weight:600; } #nav button.active { background:#e3f3f2; color:var(--brand-dark); }
.layout.plain { grid-template-columns:1fr; } .layout.plain .map-wrap { display:none; } .layout.plain .panel { max-width:1280px; width:100%; margin:0 auto; }
.login { max-width:420px; margin:6vh auto 0; } .stack { display:grid; gap:12px; } label { font-size:13px; color:var(--muted); font-weight:600; }
label input, label select { display:block; width:100%; margin-top:4px; padding:9px 10px; border:1px solid var(--line); border-radius:8px; font:inherit; color:var(--ink); background:#fff; }
form.inline { display:flex; flex-wrap:wrap; gap:10px; align-items:end; } form.inline label { flex:1; min-width:160px; }
.status { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700; background:#eceff0; color:#53636a; }
.status.contacted { background:#e6eefc; color:#244a96; } .status.interested { background:#fff0d6; color:#8a5200; } .status.onboarded { background:#e3f5ec; color:#1f6a4f; } .status.not_interested { background:#fdecea; color:#a8281a; }
textarea { width:100%; padding:8px; border:1px solid var(--line); border-radius:8px; font:inherit; resize:vertical; } table.restaurants select { padding:6px 8px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }
[hidden], input[hidden] { display:none !important; }  /* the file picker behind the styled button stays out of sight */
