:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e6f4f1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --ink: #1c2321;
  --muted: #5f6b68;
  --line: #e3e7e5;
  --bg: #f5f7f6;
  --card: #ffffff;
  --danger: #b42318;
  --danger-soft: #fee4e2;
  --ok: #067647;
  --ok-soft: #dcfae6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: .4rem 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: .75rem; }
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); letter-spacing: -.02em; }
.brand span { color: var(--brand); }
.brand .logo { font-size: 1.1rem; }
#nav { display: flex; gap: .25rem; align-items: center; }
#nav a { text-decoration: none; color: var(--ink); padding: .35rem .6rem; border-radius: 8px; font-size: .95rem; }
#nav a:hover, #nav a.on { background: var(--brand-soft); color: var(--brand-dark); }

#devbar { background: #312e81; color: #fff; padding: .4rem 1rem; font-size: .85rem; }
#devbar select { font-size: .85rem; padding: .15rem; }

main { width: 100%; max-width: 820px; margin: 0 auto; padding: 1rem; flex: 1; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }
.foot { text-align: center; padding: 1.25rem 1rem 2rem; font-size: .9rem; color: var(--muted); }
.foot a { color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card + .card, .card + .section, .section + .card { margin-top: .9rem; }
.section { margin-top: 1.4rem; }
.section > h2 { margin-bottom: .6rem; }
.card.soft { background: var(--brand-soft); border-color: #cde9e3; box-shadow: none; }
.card.warn { background: var(--accent-soft); border-color: #fde68a; box-shadow: none; }
.card.danger { background: var(--danger-soft); border-color: #fecdca; box-shadow: none; }
.card.okc { background: var(--ok-soft); border-color: #abefc6; box-shadow: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid transparent;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; padding: .65rem 1.1rem; border-radius: 10px;
  cursor: pointer; text-decoration: none; min-height: 44px; transition: background .15s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--brand); border-color: #b9ddd6; }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.light:hover { background: #f2f4f3; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #912018; }
.btn.amber { background: var(--accent); color: #1c1917; }
.btn.amber:hover { background: #d97706; }
.btn.sm { padding: .35rem .7rem; min-height: 34px; font-size: .9rem; }
.btn.lg { padding: .9rem 1.2rem; font-size: 1.05rem; }

.big-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.big-choice {
  display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1rem; box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.big-choice:hover { border-color: var(--brand); transform: translateY(-1px); }
.big-choice .ico { font-size: 2rem; display: block; }
.big-choice b { display: block; font-size: 1.05rem; margin-top: .3rem; }
.big-choice span { font-size: .85rem; color: var(--muted); }

label { display: block; font-weight: 600; font-size: .92rem; margin: .8rem 0 .3rem; }
label.inline { display: flex; align-items: center; gap: .5rem; font-weight: 500; margin: .5rem 0; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[list], select, textarea {
  width: 100%; font: inherit; padding: .62rem .75rem; border: 1px solid #cfd6d3; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #99d5ca; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--brand); }
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: .83rem; color: var(--muted); margin-top: .25rem; }
.err { color: var(--danger); font-size: .9rem; margin-top: .5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.grid2 > div > label { margin-top: .5rem; }
details { margin-top: .8rem; }
details summary { cursor: pointer; color: var(--brand); font-weight: 600; }

.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; font-weight: 500; padding: .45rem .85rem; border: 1px solid #cfd6d3; border-radius: 999px; cursor: pointer; background: #fff; font-size: .95rem; }
.seg input:checked + label { background: var(--brand); color: #fff; border-color: var(--brand); }
.seg input:focus-visible + label { outline: 2px solid #99d5ca; }

.chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #eef1f0; color: var(--muted); white-space: nowrap; }
.chip.on_way { background: var(--ok-soft); color: var(--ok); }
.chip.detour { background: var(--accent-soft); color: #92400e; }
.chip.brand { background: var(--brand-soft); color: var(--brand-dark); }
.chip.amber { background: var(--accent-soft); color: #92400e; }
.chip.red { background: var(--danger-soft); color: var(--danger); }

.route { font-weight: 700; font-size: 1.05rem; }
.route .arrow { color: var(--muted); font-weight: 400; margin: 0 .3rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--brand-dark); }
.person { display: flex; align-items: center; gap: .5rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.15rem; flex: none; }

.offer-box { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.offer-box .row > input { flex: 1; min-width: 110px; }
.offer-box .row > select { flex: 1; min-width: 140px; }
.thread-line { font-size: .9rem; padding: .25rem 0; display: flex; justify-content: space-between; gap: .5rem; }
.thread-line.me { color: var(--brand-dark); }

.checklist { list-style: none; padding: 0; margin: .5rem 0; }
.checklist li { padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; }
.checklist li:last-child { border-bottom: 0; }
.pill-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }

.hero { text-align: center; padding: 1.5rem .5rem 1rem; }
.hero h1 { font-size: 2rem; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p { font-size: 1.05rem; color: var(--muted); max-width: 30rem; margin: .6rem auto 1.2rem; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; font-size: .92rem; }
.feature b { display: block; margin-bottom: .2rem; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: .35rem 0 .35rem 2.3rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .3rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
#gsi { display: flex; justify-content: center; min-height: 44px; }

#toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(150%); background: #1c2321; color: #fff; padding: .7rem 1.1rem; border-radius: 10px; max-width: 92vw; z-index: 100; transition: transform .25s; font-size: .95rem; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast.bad { background: var(--danger); }

#modal { position: fixed; inset: 0; background: rgba(15, 23, 20, .55); z-index: 90; display: grid; place-items: center; padding: 1rem; }
#modal .box { background: #fff; border-radius: 16px; padding: 1.2rem; max-width: 420px; width: 100%; max-height: 90vh; overflow: auto; }
.dest-btn { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd6d3; border-radius: 10px; padding: .7rem .8rem; min-height: 48px; cursor: pointer; }
.dest-btn:hover { border-color: var(--brand); }
.dest-ico { font-size: 1.2rem; }
.mapbox { position: relative; background: #fff; width: 100%; max-width: 760px; height: min(92vh, 780px); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.map-top { padding: .6rem; border-bottom: 1px solid var(--line); }
.map-top input { min-height: 40px; }
#mapResults { max-height: 160px; overflow: auto; }
.map-result { display: block; width: 100%; text-align: left; font: inherit; font-size: .88rem; background: #fff; border: 0; border-bottom: 1px solid var(--line); padding: .5rem .3rem; cursor: pointer; }
.map-result:hover { background: var(--brand-soft); }
.map-wrap { position: relative; flex: 1; min-height: 240px; }
#map { position: absolute; inset: 0; }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); font-size: 2.4rem; line-height: 1; z-index: 600; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.map-bottom { padding: .7rem .8rem .8rem; border-top: 1px solid var(--line); }
.kp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.kp { margin-top: 0 !important; }
.kp h3 { margin-bottom: .4rem; }
.kp-all { margin-top: .8rem !important; }
.kp-list { list-style: none; padding: 0; margin: 0 0 .3rem; }
.kp-list li { display: flex; gap: .55rem; padding: .35rem 0; font-size: .92rem; line-height: 1.4; border-bottom: 1px solid var(--line); }
.kp-list li:last-child { border-bottom: 0; }
.kp-list li > span:first-child { flex: none; width: 1.3rem; text-align: center; }
@media (max-width: 640px) { .kp-grid { grid-template-columns: 1fr; } }
.fair-head, .fair-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1.5fr; gap: .6rem; align-items: stretch; }
.fair-head { font-weight: 700; font-size: .85rem; color: var(--muted); padding: 0 .2rem .3rem; }
.fair-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem; margin-bottom: .5rem; }
.fair-title { display: flex; gap: .45rem; align-items: flex-start; font-size: .95rem; }
.fair-cell { font-size: .9rem; line-height: 1.4; border-radius: 8px; padding: .45rem .6rem; }
.fair-cell.drv { background: var(--brand-soft); }
.fair-cell.pax { background: var(--accent-soft); }
.fair-tag { display: none; font-weight: 700; font-size: .78rem; margin-bottom: .15rem; }
@media (max-width: 640px) {
  .fair-head { display: none; }
  .fair-row { grid-template-columns: 1fr; }
  .fair-tag { display: block; }
}
.big-choices { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .big-choices { grid-template-columns: 1fr 1fr; }
  .chat-choice { grid-column: 1 / -1; }
}
.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-top: .9rem; }
.feat3 .card + .card { margin-top: 0; }
.feat { display: flex; flex-direction: column; }
.feat h3 { margin-bottom: .4rem; }
.feat .kp-list { flex: 1; margin-bottom: .7rem; }
.feat .kp-list li { font-size: .88rem; }
@media (max-width: 760px) { .feat3 { grid-template-columns: 1fr; } }
.chat-features { display: block; text-decoration: none; color: inherit; margin-top: .9rem; }
.chat-features:hover { border-color: var(--brand); }
.cf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem .9rem; margin-top: .6rem; font-size: .88rem; }
.cf-grid span { padding: .35rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .cf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cf-grid { grid-template-columns: 1fr; } }
.nav-badge { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; margin-left: .25rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.2rem; }
.reply-priv { color: var(--brand); font-weight: 600; }
.dm-car { font-weight: 500; font-size: .8rem; color: var(--brand-dark); background: var(--brand-soft); border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; }
.dm-row { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.dm-row:hover { border-color: var(--brand); }
.dm-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-head { padding-bottom: .7rem; }
.dm-box { padding: .4rem; }
#dmList { height: max(260px, calc(100dvh - 330px)); max-height: none; overflow-y: auto; padding: .3rem; }
.dm-msg { background: #f4f6f5; border-radius: 12px; padding: .5rem .7rem; margin: .4rem 0; max-width: 80%; width: fit-content; }
.dm-msg.mine { background: #dcf8c6; margin-left: auto; }
.dm-meta { font-size: .72rem; color: var(--muted); text-align: right; margin-top: .15rem; }
.dm-quote { border-left: 4px solid var(--brand); background: rgba(15, 118, 110, .08); border-radius: 6px; padding: .3rem .5rem; font-size: .82rem; color: var(--muted); margin-bottom: .3rem; white-space: pre-wrap; }
.dm-quote.compose { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .5rem; }
.app-bar { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; margin: .3rem 0 .8rem; background: #fffbeb; border: 1px solid #f5d77b; border-radius: 10px; font-size: .88rem; }
.app-bar img { border-radius: 7px; flex: none; }
.app-bar .btn.sm { min-height: 30px; padding: .25rem .65rem; font-size: .85rem; }
.app-bar-text { line-height: 1.3; }
.app-card { margin: .4rem 0 .9rem; border-color: #f5d77b; background: #fffbeb; }
.app-card .row { gap: .5rem; }
.app-step { font-size: .9rem; line-height: 1.5; }
.ios-share { display: inline-block; padding: 0 .2rem; }
.chat-cta { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; margin-top: .9rem; }
.chat-box { padding: .4rem; }
#chatList { max-height: 55vh; overflow-y: auto; padding: .3rem; }
.chat-msg { background: #f4f6f5; border-radius: 12px; padding: .55rem .75rem; margin: .45rem 0; max-width: 88%; }
.chat-msg.mine { background: var(--brand-soft); margin-left: auto; }
.chat-head { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; }
.chat-text { margin-top: .2rem; white-space: pre-wrap; word-wrap: break-word; }
.chat-actions { text-align: right; margin-top: .15rem; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; }
.rec-mobile { display: block; margin: .35rem 0 .25rem; padding: .45rem .7rem; background: #fff; border: 1px solid #f5d77b; border-radius: 8px; color: #92400e; font-size: .95rem; }
.travellers { background: var(--brand-soft); border: 1px solid #cde9e3; border-radius: 12px; padding: .9rem; margin-top: 1rem; }
.stepper { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 1.5rem; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--brand); color: #fff; }
.stepper input { width: 70px; text-align: center; font-size: 1.3rem; font-weight: 700; }
.slot { margin-top: .7rem; box-shadow: none; }
#matchMap { height: 420px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.card.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--accent); } 100% { box-shadow: var(--shadow); } }
.sos-btn { display: block; width: 100%; text-align: center; margin-top: .6rem; }

.stars { display: flex; gap: .3rem; }
.stars input { position: absolute; opacity: 0; }
.stars label { margin: 0; font-size: 1.9rem; cursor: pointer; filter: grayscale(1); opacity: .45; }
.stars input:checked + label, .stars label.lit { filter: none; opacity: 1; }
.car-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-top: .6rem; background: #eef1f0; }
.prose h2 { margin-top: 1.2rem; }
.prose li { margin: .3rem 0; }
.empty { text-align: center; color: var(--muted); padding: 1.2rem .5rem; }

@media (max-width: 480px) {
  .hero h1 { font-size: 1.65rem; }
  .features { grid-template-columns: 1fr; }
  #nav a { padding: .35rem .45rem; font-size: .9rem; }
}

/* ---------- Chats (WhatsApp-style) ---------- */
.chats-title h1 { margin-bottom: .3rem; }
.chats-search { width: 100%; border-radius: 999px; padding: .55rem 1rem; margin-bottom: .6rem; }
.chats-list { padding: 0; overflow: hidden; }
.chat-row { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; text-decoration: none; color: inherit; border: 0; border-bottom: 1px solid var(--line); background: #fff; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.chat-row:last-child { border-bottom: 0; }
.chat-row:hover { background: #f7faf9; }
.chat-row.group { background: linear-gradient(90deg, var(--brand-soft), #fff 70%); }
.chat-row .avatar { width: 46px; height: 46px; font-size: 1.35rem; }
.avatar.grp { background: var(--brand); color: #fff; width: 46px; height: 46px; font-size: 1.4rem; }
.avatar.plain { background: #eef1f0; }
.cr-main { min-width: 0; }
.cr-top, .cr-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cr-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-time { font-size: .75rem; color: var(--muted); flex: none; }
.cr-time.new { color: #1fa855; font-weight: 600; }
.cr-preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cr-sub { font-size: .75rem; color: var(--brand-dark); }
.cr-icons { display: flex; align-items: center; gap: .25rem; flex: none; font-size: .8rem; }
.cr-badge { background: #1fa855; color: #fff; border-radius: 999px; min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.cr-badge.muted { background: #a5afac; }
.cr-badge.dot { min-width: .8rem; width: .8rem; height: .8rem; padding: 0; }
.cr-more { background: none; border: 0; font-size: 1.25rem; color: var(--muted); padding: .2rem .4rem; border-radius: 8px; cursor: pointer; flex: none; line-height: 1; }
.cr-more:hover { background: #eef1f0; }
.cr-more.big { font-size: 1.5rem; }
.typing { color: #1fa855; font-style: italic; }
.tick { color: var(--muted); font-size: .78rem; letter-spacing: -.15em; margin-right: .1rem; }
.tick.read { color: #34b7f1; }
.center { text-align: center; }
.back { font-size: 1.4rem; text-decoration: none; color: var(--ink); padding: 0 .4rem 0 0; }
.dm-head .row { align-items: center; gap: .6rem; }
.dm-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-box { background: #efeae2; }
.dm-msg { box-shadow: 0 1px 1px rgba(0, 0, 0, .08); background: #fff; cursor: pointer; position: relative; }
.dm-msg.mine { background: #d9fdd3; }
.dm-msg.location { padding: .35rem; max-width: 280px; }
.chat-text.deleted { font-style: italic; color: var(--muted); }
.chat-text a { word-break: break-all; }
.day-sep { text-align: center; margin: .6rem 0; }
.day-sep span { background: #fff; color: var(--muted); font-size: .75rem; padding: .15rem .6rem; border-radius: 8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.chat-box .day-sep span { background: #eef1f0; }
.reacts { display: flex; gap: .2rem; margin-top: .2rem; flex-wrap: wrap; }
.react { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .85rem; cursor: pointer; }
.react.mine { border-color: #1fa855; background: #e7f8ec; }
.dm-compose { margin-bottom: .4rem; }
.compose-row { gap: .4rem; align-items: flex-end; }
.compose-row textarea { flex: 1; min-height: 42px; max-height: 140px; resize: none; border-radius: 22px; padding: .55rem .9rem; }
.btn.icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
/* bottom-sheet menus */
.sheet { display: flex; flex-direction: column; }
.sheet-btn { background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; padding: .75rem .3rem; font: inherit; cursor: pointer; color: var(--ink); }
.sheet-btn:hover { background: #f7faf9; }
.sheet-btn.danger { color: var(--danger); }
.react-pick { display: flex; justify-content: space-between; gap: .2rem; background: #f4f6f5; border-radius: 999px; padding: .2rem .5rem; margin-bottom: .4rem; }
.react-pick .sheet-btn.emoji { border: 0; font-size: 1.5rem; padding: .3rem; border-radius: 50%; }
.react-pick .sheet-btn.emoji.on { background: #d9fdd3; }
/* location messages */
.loc-card { display: block; }
.smap { position: relative; width: 260px; max-width: 100%; height: 150px; overflow: hidden; border-radius: 8px; background: #e8ece9; }
.smap-tiles { position: absolute; left: 0; top: 0; width: 768px; height: 768px; }
.smap-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.smap-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -95%); font-size: 1.8rem; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3)); }
.loc-info { font-size: .88rem; margin-top: .3rem; padding: 0 .2rem; }
.loc-actions { font-size: .82rem; padding: 0 .2rem; }
.danger-text { color: var(--danger); }

/* ---------- top bar items: full names on laptop, app-style tabs on phone ---------- */
#nav a { position: relative; display: inline-flex; align-items: center; gap: .3rem; }
#nav .ni { font-size: 1rem; }
#nav .ns { display: none; }
#nav a .nav-badge { margin-left: .1rem; }
@media (max-width: 760px) {
  .topbar { padding: .35rem .5rem; }
  .brand { font-size: 1.05rem; }
  #nav { gap: 0; }
  #nav a { flex-direction: column; gap: 0; padding: .2rem .45rem; font-size: .7rem; line-height: 1.15; min-width: 44px; }
  #nav .ni { font-size: 1.15rem; }
  #nav .nl { display: none; }
  #nav .ns { display: inline; }
  #nav a .nav-badge { position: absolute; top: -2px; right: 2px; margin: 0; min-width: 1rem; line-height: 1rem; font-size: .62rem; }
}
@media (max-width: 400px) {
  .brand { font-size: .95rem; }
  #nav a { padding: .2rem .3rem; min-width: 40px; }
}
