.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-status { flex: 1; min-width: 0; }
.top-actions { display: flex; gap: 8px; }
.setup-banner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: var(--warn-bg); color: #5a3a00; padding: 8px 16px; border-bottom: 1px solid #f0dcb0; font-weight: 600; }
.setup-banner .btn { min-height: 36px; padding: .35em .9em; }
.cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(260px, 320px) minmax(380px, 1fr) minmax(340px, 420px); }
.col { min-height: 0; display: flex; flex-direction: column; }
.col h2 { font-size: 1.05rem; margin: 0; }
.col-inbox { background: #fff; border-right: 1px solid var(--line); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 8px; }
.small-btn { min-height: 36px; padding: .35em .8em; font-size: .9rem; }
.search { margin: 0 14px 10px; width: calc(100% - 28px) !important; min-height: 40px !important; }
.convos { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.convo { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 14px; border-top: 1px solid #eef1f5; cursor: pointer; width: 100%; text-align: left; background: none; border-left: 4px solid transparent; border-right: 0; border-bottom: 0; }
.convo:hover { background: #f6f8fb; }
.convo.active { background: #eaf0ff; border-left-color: var(--brand); }
.convo .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo .tm { font-size: .78rem; color: var(--muted); }
.convo .last { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.convo .last span { overflow: hidden; text-overflow: ellipsis; }
.convo.unread .nm, .convo.unread .last { color: var(--ink); font-weight: 700; }
.badge { background: var(--bad); color: #fff; border-radius: 999px; font-size: .75rem; font-weight: 800; padding: 1px 7px; margin-left: 4px; }
.convos .none { padding: 18px 14px; color: var(--muted); font-size: .92rem; }
.col-thread { background: var(--bg); border-right: 1px solid var(--line); }
.empty-thread { margin: auto; text-align: center; max-width: 380px; padding: 24px; }
.big-emoji { font-size: 3rem; }
.thread { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.thread-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.who { flex: 1; min-width: 0; }
.who-name { font-weight: 800; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linkish { background: none; border: 0; color: var(--brand); padding: 0 2px; font-size: .85rem; font-weight: 600; text-decoration: underline; }
.back-btn { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 75%; padding: 9px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.msg.in { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.out { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .meta { display: block; font-size: .72rem; opacity: .75; margin-top: 3px; }
.msg.out a { color: #fff; }
.sys { align-self: center; font-size: .82rem; color: var(--muted); background: #e9edf3; padding: 4px 10px; border-radius: 999px; text-align: center; }
.quick { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid #cfd8e6; border-radius: 999px; padding: 6px 12px; font-size: .86rem; white-space: nowrap; }
.chip:hover { background: #eef3ff; border-color: #a9bff5; }
.compose { display: flex; gap: 8px; padding: 10px 12px; align-items: flex-end; }
.compose textarea { min-height: 48px; max-height: 160px; }
.compose .btn { min-height: 48px; padding: 0 22px; }
.send-note { margin: 0 14px 10px; min-height: 1em; }
.send-note.err { color: var(--bad); font-weight: 600; }
.col-side { padding: 12px; gap: 10px; overflow-y: auto; }
.map-wrap { overflow: hidden; flex-shrink: 0; }
.map { height: 220px; background: #e8edf2; }
.map-foot { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; align-items: center; flex-wrap: wrap; }
.orders-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 2px 0; }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order { padding: 12px 14px; }
.order.done { opacity: .78; }
.order .o-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order .o-name { font-weight: 800; }
.order .addr { margin-top: 6px; font-size: .92rem; display: grid; grid-template-columns: 22px 1fr; gap: 2px 4px; }
.order .addr a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed #9fb1d1; }
.order .o-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.order .o-foot .btn { min-height: 34px; padding: .25em .8em; font-size: .85rem; }
.orders .none { color: var(--muted); font-size: .92rem; padding: 6px 2px; }
.drv-marker { background: none; border: 0; }
.drv-marker div { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.drv-marker.stale div { background: #8a94a6; }
/* dialogs */
.dlg { border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.dlg.wide { width: min(720px, 96vw); }
.dlg::backdrop { background: rgba(15, 22, 35, .45); }
.dlg-body { padding: 20px 22px 22px; max-height: 88vh; overflow-y: auto; }
.dlg h2 { margin: 0 0 6px; }
.dlg-title-row { display: flex; justify-content: space-between; align-items: center; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.row2 .full { grid-column: 1 / -1; margin-top: 12px; }
.align-end { display: flex; align-items: flex-end; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; margin-top: 14px; background: #f3f7ff; padding: 10px 12px; border-radius: 10px; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: 10px 0 0; }
.set-sec { border-top: 1px solid var(--line); padding: 14px 0 6px; margin-top: 10px; }
.set-sec h3 { margin: 0 0 6px; font-size: 1.05rem; }
.howto { background: #f6f8fb; border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.howto summary, .adv summary { cursor: pointer; font-weight: 600; }
.howto ol { margin: 8px 0 4px; padding-left: 20px; }
.howto li { margin: 4px 0; }
.adv { margin-top: 12px; }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code { flex: 1; background: #f3f5f8; border: 1px solid var(--line); padding: 10px; border-radius: 8px; overflow-wrap: anywhere; font-size: .9rem; }
.tabbar { display: none; }
@media (max-width: 1180px) {
  .cols { grid-template-columns: minmax(240px, 300px) 1fr; }
  .col-side { grid-column: 1 / -1; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; align-items: start; overflow: visible; }
  .cols { overflow-y: auto; grid-template-rows: minmax(520px, 70vh) auto; }
}
@media (max-width: 760px) {
  .topbar { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .top-status { order: 3; flex-basis: 100%; }
  .top-actions .btn { padding: .5em .7em; }
  #logoutBtn { display: none; }
  .cols { display: block; overflow: hidden; }
  .col { height: 100%; }
  .cols[data-tab="inbox"] .col-thread, .cols[data-tab="inbox"] .col-side,
  .cols[data-tab="thread"] .col-inbox, .cols[data-tab="thread"] .col-side,
  .cols[data-tab="side"] .col-inbox, .cols[data-tab="side"] .col-thread { display: none; }
  .col-side { display: flex; overflow-y: auto; border-top: 0; }
  .back-btn { display: inline-flex; min-height: 40px; padding: 0 12px; }
  .msg { max-width: 88%; }
  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { background: none; border: 0; padding: 12px 4px; font-weight: 700; font-size: .9rem; color: var(--muted); }
  .tabbar button.active { color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
  .row2 { grid-template-columns: 1fr; }
  .quick { flex-wrap: nowrap; }
}

/* rider allowlist */
.riders-banner { background: #eaf1ff; color: #12306e; border-bottom-color: #c9d8fb; }
.tag-off { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #fff1d6; color: #6b4500; font-size: .78rem; font-weight: 600; }
.convo .tag-off { margin: 0 0 0 6px; vertical-align: middle; }
.rider-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 8px; }
.rider-add label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 4px; }
.rider-add input { width: 100%; }
.rider-list { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow: auto; }
.rider-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.rider-list li:first-child { border-top: 0; }
.rider-list li.none { color: var(--muted, #667); justify-content: flex-start; }
.rider-list .rl-name { font-weight: 600; }
.rider-list .rl-phone { color: var(--muted, #667); margin-left: 8px; font-variant-numeric: tabular-nums; }
.rider-list .btn { min-height: 34px; padding: .25em .8em; }
@media (max-width: 560px) { .rider-add { grid-template-columns: 1fr; } }

/* scheduled trips */
.when-pick { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.when-pick legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; background: #fff; cursor: pointer; }
.seg input:checked + span { border-color: var(--brand); background: #eef3ff; color: #12306e; }
.seg input:focus-visible + span { outline: 3px solid #9cb8ff; outline-offset: 2px; }
.when-later { margin-top: 8px; }
.when-later input[type=date], .when-later input[type=time] { width: 100%; }
.when-preview { margin: 6px 0 0; font-weight: 700; color: #12306e; min-height: 1.2em; }
.orders-sub { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 6px; }
.orders-sub h3 { margin: 0; font-size: .95rem; }
.order .o-when { margin-top: 4px; font-weight: 800; font-size: 1rem; }
.order.soon { border: 2px solid #f2b84b; }
.order.late { border: 2px solid var(--bad); background: #fff7f7; }
.late-flag { color: var(--bad); font-weight: 800; }
.order .o-foot .btns { display: flex; gap: 6px; }
.inline-form label { display: block; font-size: .92rem; margin-bottom: 6px; }
.inline-row { display: flex; gap: 8px; align-items: center; }
.inline-row input { width: 110px; }

.tag-notext { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: .78rem; font-weight: 600; }
#oPick { width: 100%; }

input[type=date], input[type=time] { width: 100%; border: 1px solid #c9d1dc; border-radius: 10px; padding: .55em .8em; background: #fff; min-height: 46px; font: inherit; color: inherit; }

.adv-texting > summary { cursor: pointer; list-style: none; }
.adv-texting > summary::-webkit-details-marker { display: none; }
.adv-texting > summary h3 { display: inline; font-size: 1.05rem; }
.adv-texting > summary::before { content: '▸ '; color: var(--muted); }
.adv-texting[open] > summary::before { content: '▾ '; }
#bigNewRide { margin-top: 10px; font-size: 1.1rem; padding: .8em 1.6em; }

/* ---- Rider texting hidden (default): trips + map only ---- */
body.tx-off .tx-only { display: none !important; }
body:not(.tx-off) .tx-off-only { display: none !important; }
.trips-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px 2px; }
.trips-hero h2 { font-size: 1.25rem; margin: 0 0 2px; }
.trips-hero > div { display: flex; flex-direction: column; }
body.tx-off .cols { grid-template-columns: 1fr; grid-template-rows: none; overflow: hidden; }
body.tx-off .col-side { display: flex; flex-direction: column; grid-column: 1 / -1; border-top: 0; padding: 16px 20px; gap: 8px; overflow: hidden;
  width: 100%; max-width: 1180px; margin: 0 auto; }
body.tx-off .orders-head h2, body.tx-off #ordersCount { display: none; }
body.tx-off .orders { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 0 4px 12px 0; }
body.tx-off .orders-sub:first-child { margin-top: 2px; }
@media (max-width: 900px) {
  body.tx-off .cols { display: block; overflow-y: auto; }
  body.tx-off .col-side { padding: 12px; overflow: visible; }
  body.tx-off .orders { overflow: visible; }
}

/* ---- Driver screen (read-only mirror of the driver page + live map) ---- */
.dv-card { display: flex; flex-direction: column; align-items: center; padding: 10px 6px 12px; background: #f6f8fa; flex-shrink: 0; }
.dv-head { width: 100%; max-width: 392px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.dv-head h2 { font-size: 1.05rem; margin: 0; }
.dv-tag { font-size: .78rem; font-weight: 700; color: #7a4b00; background: #fff3dc; border: 1px solid #f2d39b; border-radius: 999px; padding: 2px 9px; }
.phone { width: 392px; max-width: 100%; height: 760px; max-height: 100%; flex: 1 1 auto; min-height: 420px; border: 8px solid #1d2329; border-radius: 30px; overflow: hidden; background: #eef2f0; box-shadow: 0 6px 22px rgba(0,0,0,.14); }
body.tx-off .phone { max-height: 760px; height: auto; }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; background: #eef2f0; }
@media (max-width: 900px) { .phone, body.tx-off .phone { height: 680px; flex: none; } }

/* ---- small map: hide / show / bigger ---- */
.map-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.map-btns .linkish { font-size: .85rem; }
.show-map-btn { display: none; }
body.map-hidden .map-wrap { display: none !important; }
body.map-hidden .show-map-btn { display: inline-flex; }
.map-wrap.big { position: fixed; z-index: 60; top: 6vh; left: 8vw; width: 84vw !important; height: 88vh; margin: 0; display: flex; flex-direction: column; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45), 0 10px 40px rgba(0,0,0,.3); }
.map-wrap.big .map { flex: 1 1 auto; height: auto; min-height: 0; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0 12px; cursor: pointer; font-weight: 400; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; width: 46px; height: 26px; border-radius: 13px; background: #c9d1db; position: relative; transition: background .15s; margin-top: 2px; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.switch-row input:checked + .switch-ui { background: var(--brand); }
.switch-row input:checked + .switch-ui::after { left: 23px; }
.switch-row input:focus-visible + .switch-ui { outline: 3px solid var(--brand); outline-offset: 2px; }
.trips-hero .btn { white-space: nowrap; }

/* address autocomplete */
.ac-list { position: fixed; z-index: 50; background: #fff; border: 1px solid #d5dbe5; border-radius: 12px; box-shadow: 0 12px 32px rgba(15,22,35,.18); overflow-y: auto; padding: 4px; }
.ac-list.hidden { display: none; }
.ac-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.25; }
.ac-item.active, .ac-item:hover { background: #eaf2ff; }
.ac-pin { flex: none; width: 18px; text-align: center; }
.ac-text { flex: 1; min-width: 0; }
.ac-tag { flex: none; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #5b6b82; background: #eef1f6; border-radius: 999px; padding: 2px 8px; }
.ac-more { padding: 8px 10px; }

a.btn { text-decoration: none; display: inline-flex; align-items: center; }


/* =====================================================================
   2026-10 refresh: softer, more modern look (dashboard, Driver, Reports).
   Only pages that load dispatch.css get this; the driver's own page
   (/driver/) does not load this file and is unchanged.
   ===================================================================== */
:root {
  --bg: #f4f6fa; --card: #ffffff; --ink: #111827; --muted: #6b7280; --line: #e5e8ee;
  --brand: #2563eb; --brand-ink: #fff; --brand-soft: #eef4ff;
  --ok: #0f8a5f; --ok-bg: #e6f6ee; --warn: #a15c00; --warn-bg: #fff4de; --bad: #d32f2f; --bad-bg: #fdecec;
  --chip: #f1f3f7; --radius: 12px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 2px 10px rgba(16,24,40,.05);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.12);
  --future: #eef5ff; --future-line: #c9dcfb; --future-ink: #1d4ed8;
  --past: #f6f7f9; --past-line: #e4e7ec; --past-ink: #6b7280;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--bg); font-size: 15px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -.01em; }

/* buttons */
.btn { min-height: 38px; padding: .45em .95em; border-radius: 10px; font-size: .92rem; font-weight: 600; border-color: #dde1e8;
  box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: background .12s, border-color .12s, box-shadow .12s, transform .05s; }
.btn:hover { background: #f6f8fb; border-color: #cdd3dd; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,.25), 0 2px 6px rgba(37,99,235,.18); }
.btn.primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.ok { background: var(--ok); border-color: var(--ok); }
.btn.ok:hover { background: #0b7550; }
.btn.danger { color: var(--bad); border-color: #f2c9c9; background: #fff; }
.btn.danger:hover { background: #fff5f5; border-color: #e9a9a9; }
.btn.big { font-size: 1rem; min-height: 44px; padding: .55em 1.15em; border-radius: 11px; }
.small-btn { min-height: 32px; }
.linkish { color: var(--brand); text-decoration: none; }
.linkish:hover { text-decoration: underline; }

/* inputs */
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=time], textarea, select {
  border: 1px solid #d5dbe4; border-radius: 10px; min-height: 42px; padding: .5em .75em; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.16); }
label { font-size: .86rem; color: #374151; margin: .75em 0 .3em; }

/* pills */
.pill { font-size: .78rem; padding: .22em .65em; font-weight: 600; letter-spacing: .01em; }
.pill.st-sent { background: #fff4de; color: #9a5800; }
.pill.st-accepted { background: #e8f0ff; color: #1d4ed8; }
.pill.st-picked_up { background: #efe9ff; color: #6d28d9; }
.pill.st-completed { background: var(--ok-bg); color: var(--ok); }
.pill.st-cancelled { background: #f1f2f4; color: #8b2b2b; }

/* cards */
.card { border: 1px solid #e7eaf0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* top bars (dashboard, Driver, Reports) */
.topbar, body .dvs-top, body .rp-top { background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16,24,40,.04);
  padding: 8px 18px; min-height: 56px; gap: 12px; position: relative; z-index: 5; }
.brand { font-weight: 750; font-size: 1.08rem; gap: 9px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(16,24,40,.15); }
body .dvs-top h1, body .rp-top h1 { font-size: 1.08rem; font-weight: 750; }
.top-actions { gap: 6px; }
.top-status .pill { font-size: .8rem; padding: .3em .75em; }
.setup-banner { font-size: .9rem; padding: 6px 16px; }

/* trips list */
body.tx-off .col-side { padding: 14px 20px; }
.trips-hero { padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.trips-hero h2 { font-size: 1.2rem; font-weight: 750; }
.orders { gap: 0; }
.day-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 8px 10px; align-content: start; margin: 0 0 14px; }
.day-group > .day-head, .day-group > .orders-sub, .day-group > .none, .day-group > summary { grid-column: 1 / -1; }
.day-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 7px 12px; border-radius: 10px; margin: 6px 0 0; }
.day-head h3 { margin: 0; font-size: .98rem; font-weight: 750; }
.day-head .day-date { font-weight: 500; color: var(--muted); font-size: .88rem; margin-left: 4px; }
.day-head .day-count { font-size: .82rem; color: var(--muted); font-weight: 600; }
.day-head.today { background: #fff; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--brand); }
.day-head.future { background: var(--future); border: 1px solid var(--future-line); box-shadow: inset 3px 0 0 #60a5fa; }
.day-head.future h3 { color: var(--future-ink); }
.day-head.past { background: #eceef2; border: 1px solid #e1e4ea; box-shadow: inset 3px 0 0 #9ca3af; }
.day-head.past h3 { color: #4b5563; }
.earlier-toggle { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.earlier-toggle:hover { background: #e5e8ed; }
.earlier-toggle h3 { color: #4b5563; }
.orders-sub { margin: 8px 2px 0; }
.orders-sub h4 { margin: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.orders .none { font-size: .88rem; padding: 4px 4px 2px; }

.order { padding: 9px 12px 10px; transition: box-shadow .12s, border-color .12s; }
.order:hover { box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 6px 16px rgba(16,24,40,.07); }
.order .o-name { font-weight: 700; font-size: .98rem; }
.order .o-tags { display: inline-flex; gap: 6px; align-items: center; flex-shrink: 0; }
.order .addr { font-size: .9rem; margin-top: 5px; }
.order .addr a { border-bottom-color: #c3cede; }
.order .o-when { font-size: .95rem; font-weight: 700; }
.order .o-foot { margin-top: 7px; }
.order .o-foot .btn { min-height: 30px; padding: .2em .75em; font-size: .82rem; border-radius: 8px; }
.day-tag { display: inline-flex; align-items: center; padding: .18em .6em; border-radius: 999px; font-size: .74rem; font-weight: 700; background: #f1f3f7; color: #4b5563; white-space: nowrap; }
.order.future { background: #f5f9ff; border-color: var(--future-line); }
.order.future .day-tag { background: #dbe8ff; color: var(--future-ink); }
.order.past { background: var(--past); border-color: var(--past-line); box-shadow: none; color: #4b5563; }
.order.past .o-name, .order.past .addr a { color: #4b5563; }
.order.past .step.done { border-top-color: #9ca3af; color: #4b5563; }
.order.done { opacity: 1; }
.order.done:not(.past) { background: #fbfcfd; }
.order.soon { border: 1px solid #f2b84b; box-shadow: inset 3px 0 0 #f2b84b, var(--shadow); }
.order.late { border: 1px solid #f0a3a3; background: #fff6f6; box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }
.order .day-tag + .pill { margin: 0; }
.steps { gap: 6px; margin-top: 6px; }
.order .o-foot { margin-top: 5px; }
.step { font-size: .72rem; padding-top: 6px; border-top-width: 3px; border-top-color: #e5e8ee; border-radius: 1px; }
.step b { font-size: .74rem; font-weight: 650; }

/* dialogs and forms */
.dlg { border-radius: 16px; box-shadow: 0 24px 64px rgba(15,23,42,.28); }
.dlg::backdrop { background: rgba(15,23,42,.42); backdrop-filter: blur(2px); }
.dlg-body { padding: 18px 22px 20px; }
.dlg h2 { font-size: 1.2rem; font-weight: 750; }
.dlg-actions { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 18px; }
.seg span { min-height: 42px; border-width: 1px; border-radius: 10px; font-weight: 650; font-size: .95rem; }
.seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: #1e3a8a; box-shadow: 0 0 0 1px var(--brand) inset; }
.when-pick legend { font-size: .86rem; color: #374151; }
.check { background: var(--brand-soft); border-radius: 10px; font-size: .9rem; }
.set-sec { border-top-color: var(--line); }
.set-sec h3 { font-size: 1rem; }
.howto { background: #f6f8fb; border: 1px solid var(--line); }

/* danger zone (Settings, last) */
.danger-zone > summary { list-style: none; cursor: pointer; padding: 4px 0; }
.danger-zone > summary::-webkit-details-marker { display: none; }
.danger-zone > summary h3 { display: inline; color: #9b1c1c; font-size: 1rem; }
.danger-zone > summary::before { content: '▸ '; color: #b91c1c; }
.danger-zone[open] > summary::before { content: '▾ '; }
.danger-box { margin-top: 10px; border: 1px solid #f3c4c4; background: #fff7f7; border-radius: 10px; padding: 10px 14px 14px; }
.danger-box h4 { margin: 0 0 4px; font-size: .95rem; }
.danger-box p { margin: 0 0 10px; color: #4b1d1d; }

/* Driver screen */
body .dvs-main { gap: 18px; }
.dv-tag { font-size: .74rem; background: #fff4de; border-color: #f3d9a4; }
.phone { border-width: 7px; border-radius: 28px; box-shadow: 0 10px 30px rgba(16,24,40,.16); }
.map-wrap { border-radius: var(--radius); }
.map-top { padding: 7px 12px; }

/* Reports screen */
body .rp-card { border: 1px solid #e7eaf0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
@media (min-width: 981px) { body .rp-main { grid-template-columns: 410px minmax(0, 1fr); } }
body .weeks-card { overflow-x: auto; }
body table.weeks th, body table.weeks td { padding: 5px 6px; }
body table.weeks th { letter-spacing: .02em; }
body table.weeks td:first-child { white-space: normal; }
body.rp .btn { min-height: 34px; border-radius: 9px; }
body .sum { border-radius: 10px; background: #fafbfc; border-color: #e8ebf0; }
body .sum.main { background: var(--brand-soft); border-color: #cddcff; }
body table.rt th { background: #f7f8fa; }
body table.weeks tbody tr.sel td { background: var(--brand-soft); }

@media (max-width: 900px) { .day-group { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .btn { min-height: 40px; }
  .topbar { min-height: 0; }
  .day-head { padding: 6px 10px; }
}
@media print {
  body .rp-card { box-shadow: none; border: none; }
}

/* organisation logo (Chatzer Hakodesh Kraly) under the Dispatch brand */
.brand-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; flex-shrink: 0; }
.org-logo { display: block; height: 32px; width: auto; object-fit: contain; }
.brand-wrap .org-logo { margin-left: 1px; }
.top-org { height: 32px; flex-shrink: 0; }
.login-org { height: 44px; margin: 0 auto 8px; }
.topbar { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) { .brand-wrap .org-logo { height: 28px; } .top-org { height: 28px; } }
@media print { .org-logo { display: none; } }

/* logged-out screen: the organisation logo sits BEHIND the PIN card, centred on the same point and larger than it */
#login.login { position: relative; overflow: hidden; padding: 16px; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(ellipse at 50% 50%, #fffdf7 0%, #f8f2e5 55%, #eee6d5 100%); }
.login-stage { display: grid; place-items: center; width: 100%; min-height: calc(100vh - 32px); min-height: calc(100dvh - 32px); }
.login-stage > * { grid-area: 1 / 1; }
.login-hero { display: block; height: min(80vh, 720px); width: auto; max-width: 96vw; object-fit: contain; z-index: 0;
  filter: drop-shadow(0 6px 18px rgba(90,60,15,.16)); user-select: none; -webkit-user-drag: none; pointer-events: none; }
#login.login .card { position: relative; z-index: 1; margin: 0; width: min(100%, 380px); padding: 16px 22px 18px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px) saturate(1.1); backdrop-filter: blur(6px) saturate(1.1);
  box-shadow: 0 12px 40px rgba(60,40,10,.22); border: 1px solid rgba(140,100,40,.18); }
#login.login h1 { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 2px; font-size: 1.3rem; }
#login.login h1 .logo { width: 28px; height: 28px; border-radius: 7px; margin: 0; display: inline-block; }
#login.login .muted { margin: 0 0 8px; color: #4b5260; }
#login.login input { font-size: 1.6rem; padding: .3em; background: #fff; }
#login.login .err { margin: .3em 0 .2em; min-height: 1.2em; }

@media (max-width: 600px) {
  #login.login { padding: 12px 0; }
  .login-stage { min-height: calc(100vh - 24px); min-height: calc(100dvh - 24px); }
  .login-hero { width: 100vw; height: auto; max-width: 100vw; max-height: 92vh; }
  #login.login .card { width: min(calc(100% - 96px), 280px); padding: 12px 14px 14px; }
  #login.login h1 { font-size: 1.02rem; }
  #login.login h1 .logo { width: 22px; height: 22px; }
  #login.login input { font-size: 1.4rem; padding: .2em; }
}

/* app name beside the small logo on the Driver and Reports screens */
.app-name { font-weight: 700; font-size: .95rem; white-space: nowrap; color: var(--text, #1b1f27); }
@media (max-width: 760px) { .app-name { font-size: .85rem; } }
@media print { .app-name { display: none; } }
@media (max-width: 1640px) and (min-width: 761px) { .rp-top > .small.muted { display: none; } }


/* =====================================================================
   Navy top bar + warm beige page (Oct 20, 5:14 PM request)
   ===================================================================== */
:root {
  --bg: #f4eee2; --line: #e6dccb; --chip: #f3ede1;
  --navy: #0f2747; --navy-2: #173a6b; --gold: #e6be6a;
  --shadow: 0 1px 2px rgba(70,50,20,.06), 0 3px 12px rgba(70,50,20,.06);
}
html, html body { background: var(--bg); }
body .rp-card, body .card, .order, body .dvs-card { border-color: #e9e0cf; }
body .rp-card { box-shadow: var(--shadow); }

/* the bar itself */
.topbar, body .dvs-top, body .rp-top {
  background: linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  border-bottom: 1px solid #0a1c36; box-shadow: 0 2px 10px rgba(10,28,54,.22);
  color: #fff; min-height: 92px; padding: 12px 22px; gap: 14px; }
.topbar { padding-top: 12px; padding-bottom: 12px; }

/* brand row: mark · name · logo, all on one line */
.brand-wrap { flex-direction: row; align-items: center; }
.brand, .top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; }
.top-brand { flex-shrink: 0; }
.brand #bizName, .top-brand .app-name { color: #fff; font-weight: 750; font-size: 1.32rem; letter-spacing: .005em; }
.brand-mark { display: inline-flex; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.25); overflow: hidden; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.org-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center;
  height: 66px; padding: 4px 10px; border-radius: 16px; background: #fbf6ea;
  box-shadow: 0 2px 8px rgba(0,0,0,.25), inset 0 0 0 1px rgba(200,150,60,.35); overflow: visible !important; }
.topbar .brand img.org-logo, .org-badge img.org-logo, .org-badge .top-org {
  height: 56px; width: auto; border-radius: 0; box-shadow: none; margin: 0; display: block; }

/* buttons & pills on navy */
.topbar .btn, body .dvs-top .btn, body .rp-top .btn {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.24); color: #fff; box-shadow: none; }
.topbar .btn:hover, body .dvs-top .btn:hover, body .rp-top .btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }
.topbar .btn.primary, body .rp-top .btn.primary, body .dvs-top .btn.primary {
  background: linear-gradient(180deg, #f3d488, #dcae55); border-color: #e7bf6a; color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.topbar .btn.primary:hover, body .rp-top .btn.primary:hover, body .dvs-top .btn.primary:hover { background: linear-gradient(180deg, #f7dc98, #e2b862); }
.topbar .btn:focus-visible, body .dvs-top .btn:focus-visible, body .rp-top .btn:focus-visible { outline: 2px solid #f3d488; outline-offset: 2px; }
.top-status .pill { box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.top-status .pill:not([class*="ok"]):not([class*="warn"]):not([class*="bad"]) { background: rgba(255,255,255,.14); color: #fff; }
body .dvs-top h1, body .rp-top h1 { color: #fff; }
body .dvs-top .muted, body .rp-top .muted, body .dvs-top .small, body .rp-top .small { color: rgba(255,255,255,.72); }
body .dvs-top a:not(.btn), body .rp-top a:not(.btn) { color: #fff; }

/* login: same warm beige family */
#login.login { background: radial-gradient(ellipse at 50% 50%, #fffdf7 0%, #f6efe1 55%, #ece2cf 100%); }
#login.login h1 .logo { width: 30px; height: 30px; border-radius: 8px; }

@media (max-width: 1100px) and (min-width: 761px) {
  .brand #bizName, .top-brand .app-name { font-size: 1.12rem; }
}
@media (max-width: 760px) {
  .topbar, body .dvs-top, body .rp-top { min-height: 0; padding: 10px 12px; gap: 8px 10px; }
  .brand, .top-brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
  .brand #bizName, .top-brand .app-name { font-size: 1.02rem; }
  .org-badge { height: 50px; padding: 3px 7px; border-radius: 13px; }
  .topbar .brand img.org-logo, .org-badge img.org-logo, .org-badge .top-org { height: 44px; }
  #login.login h1 .logo { width: 24px; height: 24px; }
  .topbar .top-actions { flex-wrap: wrap; gap: 5px; max-width: 100%; }
  .topbar .top-actions .btn { white-space: nowrap; font-size: .78rem; padding: .36em .42em; min-height: 36px; }
  body .rp-top .btn, body .dvs-top .btn { white-space: nowrap; }
}
@media print {
  .topbar, body .dvs-top, body .rp-top { background: #fff !important; color: #000; box-shadow: none; min-height: 0; }
  .brand-mark, .org-badge { display: none !important; }
  html, html body { background: #fff !important; }
}


/* =====================================================================
   Navy logged-out page, logo as a soft watermark (Oct 20, 5:18 PM request)
   ===================================================================== */
#login.login {
  background: radial-gradient(ellipse at 50% 45%, #1d4479 0%, #143461 38%, #0f2747 72%, #0a1c36 100%);
  color: #fff; }
html:has(#login.login:not(.hidden)), html:has(#login.login:not(.hidden)) body { background: #0f2747; }
.login-hero { opacity: .30; filter: drop-shadow(0 0 28px rgba(230,190,106,.55)) drop-shadow(0 0 70px rgba(230,190,106,.25)); }
#login.login .card {
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(230,190,106,.55); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(3,10,25,.55), 0 0 0 6px rgba(255,255,255,.06); color: var(--ink, #111827); }
#login.login h1 { color: #0f2747; }
#login.login .muted { color: #4b5260; }
#login.login input { border-color: #d9cdb4; }
#login.login input:focus { border-color: #c8963d; box-shadow: 0 0 0 3px rgba(230,190,106,.35); }
#login.login .btn.primary {
  background: linear-gradient(180deg, #f3d488, #dcae55); border-color: #e7bf6a; color: #0f2747;
  box-shadow: 0 2px 8px rgba(15,39,71,.25); font-weight: 750; }
#login.login .btn.primary:hover { background: linear-gradient(180deg, #f7dc98, #e2b862); }
#login.login .err { color: #c62828; }

/* "+ New ride" buttons in the middle of the dashboard: same gold-with-navy as the top bar's */
#bigNewRide, #heroNewRide, .app .btn.primary.big#bigNewRide {
  background: linear-gradient(180deg, #f3d488, #dcae55); border-color: #e7bf6a; color: #0f2747;
  box-shadow: 0 2px 8px rgba(15,39,71,.18); font-weight: 750; }
#bigNewRide:hover, #heroNewRide:hover { background: linear-gradient(180deg, #f7dc98, #e2b862); border-color: #dcae55; }
#bigNewRide:focus-visible, #heroNewRide:focus-visible { outline: 2px solid #0f2747; outline-offset: 2px; }

@media (max-width: 760px) {
  /* phone: the watermark spreads past the card on every side (clipped by the page, no sideways scroll) */
  .login-hero { transform: scale(1.75); opacity: .26; }
}

/* top-bar logo: no box, logo straight on the navy (Fish 5:29 PM) */
.org-badge { background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; height: auto !important; }
.topbar .brand img.org-logo, .org-badge img.org-logo, .org-badge .top-org {
  height: 60px; filter: drop-shadow(0 0 1.2px rgba(255,255,255,.85)) drop-shadow(0 0 5px rgba(255,226,160,.35)); }
@media (max-width: 760px) { .topbar .brand img.org-logo, .org-badge img.org-logo, .org-badge .top-org { height: 46px; } }
@media print { .org-logo { filter: none !important; } }

/* TRIPS heading in capitals, no emoji (Fish 5:42 PM) */
.trips-hero h2.trips-title { letter-spacing: .08em; font-weight: 800; color: #0f2747; }
/* Change address dialog */
#addrDlg input:disabled { background: #f3f0ea; color: #6b6b6b; }
#aPickNote { margin: 4px 0 0; }

/* tiny tag: driver's phone wake-up alarm is set for this trip (Fish 10:14 PM: very small) */
.order .alarm-tag { font-size: 11px; font-weight: 500; color: #7a8190; white-space: nowrap; margin-left: 4px; vertical-align: 1px; }

/* ---------- v23: chat on each call (dispatch ↔ driver) ---------- */
.order .o-foot .btn.chat-btn { gap: .35em; }
.btn.chat-btn .chat-n { font-size: .74rem; font-weight: 700; color: var(--muted); background: #eef1f6; border-radius: 999px; padding: 0 .5em; line-height: 1.5; }
.btn.chat-btn .chat-badge { font-size: .74rem; font-weight: 800; color: #fff; background: var(--bad); border-radius: 999px; min-width: 1.5em; padding: 0 .45em; line-height: 1.5; text-align: center; }
.order .o-foot .btn.chat-btn.unread { background: #fff6dc; border-color: #e7bf6a; color: var(--navy, #0f2747); animation: chatPulse 1.6s ease-in-out infinite; }
.order .o-foot .btn.chat-btn.on { background: var(--navy, #0f2747); border-color: var(--navy, #0f2747); color: #fff; }
.order .o-foot .btn.chat-btn.on .chat-n { background: rgba(255,255,255,.18); color: #fff; }
@keyframes chatPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(230,190,106,.0); } 50% { box-shadow: 0 0 0 4px rgba(230,190,106,.45); } }
.chat-preview { display: block; width: 100%; text-align: left; margin-top: 7px; padding: 6px 9px; border: 1px solid #ecd9a8; background: #fffaf0; border-radius: 9px; font-size: .86rem; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chat-preview .cp-tag { font-weight: 700; color: #8a5a00; flex-shrink: 0; }
.ochat { margin-top: 8px; border: 1px solid #d6dde8; border-radius: 11px; background: #f7f9fc; overflow: hidden; }
.ochat-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 11px; background: var(--navy, #0f2747); color: #fff; }
.ochat-head b { font-size: .88rem; }
.ochat-head .small { color: #b9c6dc; flex: 1; }
.ochat-head .ochat-x { min-height: 26px; padding: 0 .55em; font-size: .8rem; background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.ochat-thread { max-height: 260px; overflow-y: auto; padding: 9px 10px 4px; display: flex; flex-direction: column; gap: 6px; }
.ochat-empty { padding: 4px 2px 8px; }
.cm { display: flex; flex-direction: column; max-width: 78%; }
.cm .cm-b { padding: 6px 10px; border-radius: 12px; font-size: .9rem; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.cm .cm-t { font-size: .72rem; color: var(--muted); margin: 2px 4px 0; }
.cm.them { align-self: flex-start; }
.cm.them .cm-b { background: #fff; border: 1px solid #dfe4ec; border-bottom-left-radius: 4px; }
.cm.me { align-self: flex-end; align-items: flex-end; }
.cm.me .cm-b { background: var(--navy, #0f2747); color: #fff; border-bottom-right-radius: 4px; }
.cm .seen { color: var(--ok); font-weight: 600; }
.cm.sys { align-self: center; max-width: 92%; font-size: .74rem; color: var(--muted); background: #e9edf3; border-radius: 999px; padding: 2px 10px; text-align: center; }
.ochat-chips { display: flex; gap: 6px; padding: 4px 10px 0; flex-wrap: wrap; }
.ochat-chips .chip { font-size: .78rem; padding: 3px 10px; }
.ochat-form { display: flex; gap: 6px; padding: 8px 10px 10px; }
.ochat-form input[type=text] { min-height: 36px; padding: .4em .7em; font-size: .9rem; }
.ochat-form .btn { min-height: 36px; }

/* v23: undo the latest step from the dashboard */
.step .step-undo { display: block; margin-top: 3px; padding: 1px 7px; font: inherit; font-size: .68rem; font-weight: 600; color: var(--muted); background: var(--card, #fff); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; line-height: 1.5; }
.step .step-undo:hover { background: #f7f9fc; color: var(--ink); }

/* ---------- v24: ONE chat with the driver (top of Trips) + driver ETA pill ---------- */
.mchat { margin: 6px 0 8px; border: 1px solid #d6dde8; border-radius: 12px; background: #f7f9fc; overflow: hidden; }
.mchat.unread { border: 2px solid var(--gold, #e6be6a); box-shadow: 0 0 0 3px rgba(230,190,106,.25); }
.mchat-head { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; background: var(--navy, #0f2747); color: #fff; border: 0; font: inherit; text-align: left; cursor: pointer; }
.mc-title { font-weight: 800; font-size: .98rem; flex-shrink: 0; }
.mc-badge { flex-shrink: 0; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #d92d20; color: #fff; font-size: .82rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--navy, #0f2747), 0 0 0 3px #f2c94c; animation: chatPulse 1.6s ease-in-out infinite; }
.mc-badge.hidden { display: none; }
.mc-last { flex: 1; min-width: 0; color: #f6dc95; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-arrow { margin-left: auto; font-size: .8rem; color: #cfd8e6; flex-shrink: 0; }
.mc-thread { max-height: 280px; overflow-y: auto; padding: 9px 10px 4px; display: flex; flex-direction: column; gap: 6px; }
.mc-chips { display: flex; gap: 6px; padding: 4px 10px 0; flex-wrap: wrap; }
.mc-chips .chip { font-size: .78rem; padding: 3px 10px; }
.mc-form { display: flex; gap: 6px; padding: 8px 10px 10px; }
.mc-form input[type=text] { flex: 1; min-width: 0; min-height: 36px; padding: .4em .7em; font-size: .9rem; }
.mc-form .btn { min-height: 36px; }
.cm.them.new .cm-b { background: #fff6dc; border: 2px solid var(--gold, #e6be6a); font-weight: 700; }
.cm-about { display: inline-block; font-size: .7rem; font-weight: 800; color: #8a6514; background: #fbf0d3; border-radius: 5px; padding: 0 5px; margin-right: 3px; }
.cm.me .cm-about { background: rgba(246,220,149,.2); color: #f6dc95; }
.pill.eta { background: var(--navy, #0f2747); color: #f6dc95; font-weight: 800; font-size: .82rem; margin-left: 5px; }
.pill.eta.fresh { box-shadow: 0 0 0 2px var(--gold, #e6be6a); animation: chatPulse 1.6s ease-in-out infinite; }
.pill.eta.late { background: #b42318; color: #fff; }
.mchat { flex-shrink: 0; }

/* v25/v26: place search — bold place name with its address under it */
.ac-text { display: flex; flex-direction: column; }
.ac-name { font-weight: 700; color: #0f1f3d; }
.ac-sub { font-size: 13px; color: #5b6b82; margin-top: 1px; }
.ac-pin { align-self: flex-start; padding-top: 1px; }
