/* =====================================================================
   Tema grafite (branco e preto) — idêntico aos desenhos do passageiro (claro) e do motorista (escuro).
   Carrega por último e só troca cores: o layout continua o mesmo.
   Claro = branco com grafite #2a2d31 · Escuro = preto grafite #151618. Verde só em avisos de "ok".
   ===================================================================== */

/* ---------- passageiro: escuro ---------- */
body.is-ped {
  --pv-bg: #151618; --pv-map: #1b1d20; --pv-base: #1c1e21; --pv-sheet: rgba(255,255,255,.03); --pv-s2: rgba(255,255,255,.05); --pv-s3: rgba(255,255,255,.10);
  --pv-text: #f1f2f3; --pv-soft: #c9cdd1; --pv-mut: #8b9096; --pv-line: rgba(255,255,255,.10); --pv-line2: rgba(255,255,255,.2);
  --pv-acc: #f1f2f3; --pv-ink: #1c1e21; --pv-acc-soft: rgba(255,255,255,.10); --pv-acc-line: rgba(255,255,255,.6);
  --pv-route: #ffffff; --pv-ring: #1c1e21; --pv-brand: #f1f2f3; --pv-brand-ink: #1c1e21;
  --pv-bad: #ff7a74; --pv-bad-ink: #ffc4c0; --pv-warn: #e8a400; --pv-warn-ink: #ffd98a; --pv-dest: #ffffff;
  --pv-grid: rgba(255,255,255,.06); --pv-glass: rgba(28,30,33,.88); --pv-shadow: 0 -22px 50px rgba(0,0,0,.5);
  --pv-card: #25282c; --pv-card-hi: rgba(255,255,255,0); --pv-card-lo: rgba(255,255,255,0); --pv-edge: rgba(255,255,255,.10);
  --pv-fade: 28,30,33;
  --pv-sheet-bg: #1c1e21;
}
/* ---------- passageiro: claro ---------- */
html[data-theme="light"] body.is-ped {
  --pv-bg: #e4e6e9; --pv-map: #e9ebed; --pv-base: #ffffff; --pv-sheet: rgba(24,27,31,.03); --pv-s2: #f1f2f3; --pv-s3: #e3e5e8;
  --pv-text: #1c1e21; --pv-soft: #3d4046; --pv-mut: #6b7076; --pv-line: rgba(24,27,31,.10); --pv-line2: rgba(24,27,31,.20);
  --pv-acc: #2a2d31; --pv-ink: #ffffff; --pv-acc-soft: rgba(42,45,49,.08); --pv-acc-line: rgba(42,45,49,.55);
  --pv-route: #2a2d31; --pv-ring: #ffffff; --pv-brand: #2a2d31; --pv-brand-ink: #ffffff;
  --pv-bad: #c8453f; --pv-bad-ink: #8f2a25; --pv-warn: #b26b00; --pv-warn-ink: #7a4a00; --pv-dest: #1c1e21;
  --pv-grid: rgba(255,255,255,.9); --pv-glass: rgba(255,255,255,.92); --pv-shadow: 0 -18px 40px rgba(20,24,28,.16);
  --pv-card: #ffffff; --pv-card-hi: rgba(255,255,255,0); --pv-card-lo: rgba(255,255,255,0); --pv-edge: rgba(24,27,31,.12);
  --pv-fade: 255,255,255;
  --pv-sheet-bg: #ffffff;
}
html:has(body.is-ped) { background: #1c1e21; }
html[data-theme="light"]:has(body.is-ped) { background: #ffffff; }
html[data-theme="light"] .ped-hero { color: #1c1e21; --pv-text: #1c1e21; --pv-soft: #3d4046; --pv-mut: #6b7076; --pv-line: rgba(24,27,31,.12); }
html[data-theme="light"] .ped-hero::after { background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(24,27,31,.10) 100%); }
html[data-theme="light"] .ped-sl-thumb { color: #2a2d31; }
body.is-ped .ped-sheet { box-shadow: var(--pv-shadow); }
html[data-theme="light"] body.is-ped .ped-sheet { border: 0; }

/* ---------- motorista: escuro ---------- */
html body.is-driver {
  --bg: #151618; --text: #f1f2f3; --soft: #c9cdd1; --muted: #8b9096;
  --glass: rgba(255,255,255,.04); --glass-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --accent: #f1f2f3; --accent-ink: #1c1e21; --accent-soft: rgba(255,255,255,.08); --accent-line: rgba(255,255,255,.35);
  --ok: #6fcf9b; --warn: #e8a400; --bad: #ff7a74; --info: #aeb4ba; --violet: #aeb4ba; --teal: #aeb4ba; --accent-route: #ffffff;
  --fill: #1f2124; --s2: #25282c; --s3: #2f3237;
  --p-bg: #151618; --p-bg-0: rgba(21,22,24,0); --p-card: #1f2124;
  background: #151618; background-image: none;
}
/* ---------- motorista: claro ---------- */
html[data-theme="light"] body.is-driver {
  --bg: #e9ebed; --text: #1c1e21; --soft: #3d4046; --muted: #6b7076;
  --glass: rgba(24,27,31,.04); --glass-2: rgba(24,27,31,.07); --line: rgba(24,27,31,.10); --line-2: rgba(24,27,31,.20);
  --accent: #2a2d31; --accent-ink: #ffffff; --accent-soft: rgba(42,45,49,.08); --accent-line: rgba(42,45,49,.45);
  --ok: #2f8f5f; --warn: #b26b00; --bad: #c8453f; --info: #55595f; --violet: #55595f; --teal: #55595f; --accent-route: #2a2d31;
  --fill: #ffffff; --s2: #f1f2f3; --s3: #e3e5e8;
  --p-bg: #e9ebed; --p-bg-0: rgba(233,235,237,0); --p-card: #fff;
  background: #e9ebed; background-image: none;
}
/* cartões do motorista: sem tons de cor (azul, roxo, verde, rosa) */
html body.is-driver .drv .pc.t-hero, html body.is-driver .drv-hero, html[data-theme="light"] body.is-driver .drv .pc.t-hero, html[data-theme="light"] body.is-driver .drv-hero,
html[data-theme="light"] body.is-driver .drv .pc.t-blue, html[data-theme="light"] body.is-driver .drv .pc.t-violet, html[data-theme="light"] body.is-driver .drv .pc.t-teal,
html[data-theme="light"] body.is-driver .drv .pc.t-warm, html[data-theme="light"] body.is-driver .drv .pc.t-green {
  background: var(--fill) !important; border: 1px solid var(--line) !important; }
html[data-theme="light"] body.is-driver .btn.primary { background: #2a2d31; color: #fff; border-color: #2a2d31; }
html[data-theme="light"] body.is-driver .btn.primary:hover:not(:disabled) { background: #3d4046; }
html body.is-driver .btn.primary { color: var(--accent-ink); }
html[data-theme="light"] body.is-driver .drv-bar i { background: rgba(42,45,49,.28); }
html[data-theme="light"] body.is-driver .drv-bar.today i { background: #2a2d31; box-shadow: none; }
html[data-theme="light"] body.is-driver .drv-ride .ric { background: rgba(42,45,49,.08); color: #2a2d31; }
html body.is-driver .drv-bar.today i { box-shadow: none; }

/* botões e campos do painel (cabeçalho e inputs) em grafite */
html[data-theme="light"] .theme-btn:focus-visible, .theme-btn:focus-visible { outline-color: var(--text); }

/* ---------- mapa em malha: sem crédito de mapa de ruas, rota neon no escuro (como nos painéis de teste) ---------- */
.ped-hero .ped-credit { display: none !important; }
.ped-hero.has-map .ped-streets { opacity: 0; }
html[data-theme="dark"] body.is-ped { --pv-route: hsl(var(--hue, 160) 100% 62%); --pv-acc-line: rgba(255,255,255,.6); }
html[data-theme="dark"] .ped-map .m-glow { opacity: .3; }
.ped-hero::after { background: linear-gradient(to bottom, transparent 70%, var(--pv-map) 100%) !important; }

/* botão de arrastar: pílula cheia (escura no claro, branca no escuro) com a bolinha invertida, como no desenho */
.ped-slide, .ped-bar .ped-slide { background: var(--pv-acc); border-color: transparent; }
.ped-sl-label { color: var(--pv-ink); }
.ped-sl-fill { background: rgba(128,128,128,.28); }
.ped-sl-thumb { background: var(--pv-ink); color: var(--pv-acc); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.ped-slide[data-state="busy"] .ped-sl-label, .ped-slide[data-state="done"] .ped-sl-label { color: var(--pv-ink); }

/* =====================================================================
   Folha única, como no desenho aprovado: os grupos ficam um abaixo do outro, sem cartão e sem empilhar,
   e os motoristas ficam LADO A LADO (deslize para o lado), com o escolhido levantado e contornado.
   ===================================================================== */
.ped-pile { gap: 6px; }
.ped-pc { position: static !important; transform: none !important; filter: none !important; will-change: auto; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; padding: 14px 0 6px; }
.ped-pc::after { display: none !important; }
.ped-pc .pc-h h2 { font-size: 15px; font-weight: 500; }
.ped-pc .pc-v { font-size: 12px; font-weight: 300; }
.ped-pc .ped-route, .ped-pc .ped-card { background: none; border: 0; padding-left: 0; padding-right: 0; }

.ped-sheet .drv-hint { display: none !important; }
.ped-sheet .drv-list, .ped-sheet .drv-list.deck { display: flex !important; flex-direction: row !important; gap: 10px; overflow-x: auto !important; overflow-y: hidden !important; max-height: none !important; scroll-snap-type: x mandatory;
  margin: 0 -18px; padding: 8px 18px 10px !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ped-sheet .drv-list::-webkit-scrollbar { display: none; }
.ped-sheet .drv-body .drv-list > .drv-card, .ped-sheet .drv-list > .drv-card, .ped-sheet .drv-list.deck > .drv-card {
  position: relative !important; top: auto !important; transform: none; flex: none !important; width: min(292px, 82vw); scroll-snap-align: center; padding: 14px; border-radius: 22px; border: 0;
  background: var(--pv-s2) !important; box-shadow: inset 0 0 0 1px var(--pv-line); transition: box-shadow .25s, transform .35s cubic-bezier(.34,1.56,.64,1); }
.ped-sheet .drv-list > .drv-card::after { display: none !important; }
.ped-sheet .drv-list > .drv-card.on, .ped-sheet .drv-body .drv-list > .drv-card.on { background: var(--pv-s2) !important; box-shadow: inset 0 0 0 2px var(--pv-text); transform: translateY(-3px); border: 0; }
.ped-sheet .drv-list > .drv-card.on .drv-price strong { color: var(--pv-text); }
.ped-sheet .drv-list > .drv-back, .ped-sheet .drv-list > .drv-empty, .ped-sheet .drv-list > .drv-loading { flex: none; }
.drv-av { border: 0 !important; box-shadow: 0 0 0 2px var(--pv-base), 0 0 0 4px var(--pv-text); overflow: visible; background: none; }
.drv-av > * { border-radius: 50%; }
.drv-row { display: flex; align-items: center; gap: 12px; }
.drv-who b { font-weight: 500; font-size: 15px; }
.drv-price { margin-left: auto; text-align: right; white-space: nowrap; }
.drv-price strong { font: 500 17px/1.1 'Inter', 'Poppins', system-ui, sans-serif; letter-spacing: -.02em; }
.drv-bot { margin-top: 12px; }
.drv-car { background: none; border: 0; width: 46px; height: 30px; border-radius: 0; color: var(--pv-text); }
.drv-foot { justify-content: center; }
.drv-who > small { display: none; }
.drv-who .drv-rate small { white-space: nowrap; }
.drv-rate small { font-weight: 300; }

/* =====================================================================
   Telas da corrida do motorista (desenho aprovado "IMAITRE Painéis")
   ===================================================================== */
.ap-nav, .ap-chip { position: absolute; z-index: 4; left: 14px; right: 14px; top: 62px; }
.ap-nav { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 22px; background: var(--pv-card); color: var(--pv-text); box-shadow: 0 8px 22px -10px rgba(0,0,0,.4), inset 0 0 0 1px var(--pv-line); }
.ap-nic { width: 42px; height: 42px; border-radius: 14px; background: var(--pv-acc); color: var(--pv-ink); display: grid; place-items: center; flex: none; }
.ap-ntx { min-width: 0; flex: 1; }
.ap-ntx b { display: block; font-weight: 500; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-ntx small { display: block; font-size: 12px; color: var(--pv-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-nbt { display: flex; gap: 6px; flex: none; }
.ap-nbt a { padding: 8px 12px; border-radius: 99px; background: var(--pv-s2); color: var(--pv-text); font-size: 12px; text-decoration: none; }
.ap-chip { right: auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 99px; background: var(--pv-card); color: var(--pv-text); font-size: 13px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.35), inset 0 0 0 1px var(--pv-line); }
.ap-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--pv-text); }
html[data-theme="dark"] .ap-chip i, html:not([data-theme="light"]) .ap-chip i { background: hsl(var(--hue,160) 100% 62%); box-shadow: 0 0 10px hsl(var(--hue,160) 100% 62%); }
.ap-chip.dk { background: var(--pv-acc); color: var(--pv-ink); }
html[data-theme="light"] .ap-chip i { background: var(--pv-text); }
.ap-chip.dk i { background: var(--pv-ink) !important; box-shadow: none !important; }

.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 2px 0 12px; }
.ap-top small { color: var(--pv-mut); font-size: 12px; font-weight: 300; display: block; }
.ap-top.end { align-items: flex-end; margin-top: 0; }
.ap-big { font-size: 52px; line-height: 1; font-weight: 300; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.ap-sub { margin-top: 6px; }
.ap-lab { color: var(--pv-mut); font-size: 12px; }
.ap-kmw { text-align: right; } .ap-kmw b { display: block; font-weight: 500; font-size: 15px; } .ap-kmw small { color: var(--pv-mut); font-size: 12px; }
.ap-late { display: block; color: var(--pv-warn-ink); font-size: 12px; margin-bottom: 8px; }

.ap-ring { position: relative; width: 104px; height: 104px; flex: none; }
.ap-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 8; }
.ap-ring .bg { stroke: var(--pv-s3); }
.ap-ring .fg { stroke: var(--pv-warn); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
html:not([data-theme="light"]) .ap-ring.neon .fg { stroke: hsl(var(--hue,160) 100% 62%); }
.ap-rt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 22px; font-variant-numeric: tabular-nums; }
.ap-rt small { display: block; font-size: 11px; color: var(--pv-mut); }

.ap-rts { display: grid; gap: 10px; margin: 0 0 12px; }
.ap-row { display: flex; align-items: center; gap: 12px; }
.ap-row b { display: block; font-weight: 400; font-size: 15px; }
.ap-row small { color: var(--pv-mut); font-size: 12px; display: block; }
.ap-pt { width: 10px; height: 10px; border-radius: 50%; background: var(--pv-text); flex: none; }
.ap-pt.sq { border-radius: 3px; }

.ap-hd { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.ap-hd b { display: block; font-weight: 500; font-size: 16px; }
.ap-hd small { color: var(--pv-mut); font-size: 12px; display: block; }
.ap-hd > .ap-pill, .ap-hd > .ap-chat { margin-left: auto; }
.ap-av { display: block; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 2px var(--pv-base), 0 0 0 4px var(--pv-text); }
.ap-av img, .ap-av canvas { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.ap-pill { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 11px; background: var(--pv-s3); color: var(--pv-text); margin-right: 6px; }
.ap-pill.am { background: color-mix(in srgb, var(--pv-warn) 20%, transparent); color: var(--pv-warn-ink); }
.ap-sum { margin: 6px 0 10px; }
.ap-sum > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--pv-line); font-size: 14px; font-weight: 300; }
.ap-sum > div:last-child { border: 0; }
.ap-sum b { font-weight: 500; font-size: 15px; text-align: right; }

.ap-wait { display: flex; align-items: center; gap: 14px; margin: 4px 0 8px; }
.ap-wtx { display: block; margin-top: 8px; color: var(--pv-mut); font-size: 12px; line-height: 1.45; }
.ap-ask { display: block; text-align: center; color: var(--pv-mut); font-size: 12px; margin-top: 10px; }
.ap-code { display: flex; gap: 8px; justify-content: center; margin: 12px 0; }
.ap-code b { width: 56px; height: 62px; border-radius: 16px; background: var(--pv-s2); box-shadow: inset 0 0 0 1px var(--pv-line); display: grid; place-items: center; font-weight: 300; font-size: 32px; color: var(--pv-text); }
.ap-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ap-pad button { height: 42px; border-radius: 14px; background: var(--pv-s2); color: var(--pv-text); font-size: 19px; border: 0; }
.ap-pad button:active { background: var(--pv-s3); }
.ap-nc { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 99px; background: transparent; color: var(--pv-mut); box-shadow: inset 0 0 0 1px var(--pv-line); font-size: 14px; border: 0; }
.ap-nc ~ .ped-ghost { height: auto; min-height: 0; padding: 10px; box-shadow: none; background: none; }
.ap-code b { width: 52px; height: 56px; font-size: 30px; }
.ap-pad button { height: 40px; }
.ap-chat .ped-chatbtn { width: 46px; height: 46px; min-height: 0; padding: 0; border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px var(--pv-line); color: var(--pv-text); position: relative; display: grid; place-items: center; margin: 0; }
.ap-chat .ped-chatbtn[hidden] { display: none; }
.ap-chat .chat-name { display: none; }
.ap-chat .chat-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 50%; background: var(--pv-bad); color: #fff; font-size: 10px; display: grid; place-items: center; }
/* painel baixo: o mapa fica com ~2/3 da tela enquanto o motorista busca e leva o passageiro */
.ap-top.end { margin-bottom: 4px; } .ap-top.end .ap-big { font-size: 44px; }
.ap-hd { margin: 6px 0; }
.ap-sum { margin: 2px 0 6px; } .ap-sum > div { padding: 7px 0; }


/* ---------- passageiro: acompanhamento (desenho aprovado) ---------- */
.ap-chip.wide { right: 14px; justify-content: center; }
.ap-chip i.neon { background: hsl(var(--hue,160) 100% 62%) !important; box-shadow: 0 0 10px hsl(var(--hue,160) 100% 62%) !important; }
.ap-ctr { text-align: center; padding-top: 4px; }
.ap-ctr h3 { font-size: 20px; font-weight: 400; margin: 4px 0; }
.ap-ctr small { color: var(--pv-mut); font-size: 12px; }
.ap-radar { position: relative; width: 130px; height: 130px; margin: 6px auto 10px; }
.ap-radar i { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--pv-text); opacity: 0; animation: ap-rad 2.4s ease-out infinite; }
.ap-radar i:nth-child(2) { animation-delay: .8s; } .ap-radar i:nth-child(3) { animation-delay: 1.6s; }
.ap-radar b { position: absolute; inset: 50px; border-radius: 50%; background: var(--pv-text); }
@keyframes ap-rad { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ap-radar i { animation: none; opacity: .4; } }
.ap-lnk { display: block; width: 100%; text-align: center; color: var(--pv-mut); font-size: 14px; font-weight: 300; padding: 14px 0 4px; background: none; border: 0; }
.ap-plate { margin-left: auto; padding: 5px 12px; border-radius: 8px; background: #fff; color: #1c1e21; font-weight: 500; font-size: 15px; letter-spacing: .14em; box-shadow: inset 0 3px 0 #2a4fa8, inset 0 0 0 1px rgba(0,0,0,.18); }
.ap-cr { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; font-size: 14px; }
.ap-cr small { color: var(--pv-mut); }
.ap-act { display: flex; justify-content: space-around; margin-top: 14px; }
.ap-actb { display: flex !important; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 300; color: var(--pv-mut); background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; width: auto !important; min-height: 0 !important; text-decoration: none; position: relative; }
.ap-actb > i, .ap-actb > svg { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--pv-line); display: grid; place-items: center; color: var(--pv-text); font-style: normal; }
.ap-actb > svg { padding: 15px; }
.ap-actb.pri > i, .ap-actb.pri > svg { background: var(--pv-acc); color: var(--pv-ink); box-shadow: none; }
.ap-actb .chat-badge { position: absolute; top: -4px; right: calc(50% - 32px); min-width: 18px; height: 18px; border-radius: 50%; background: var(--pv-bad); color: #fff; font-size: 10px; display: grid; place-items: center; }
.ap-actb .chat-name { font-size: 12px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-row2 { display: flex; gap: 10px; margin-top: 12px; }
.ap-bt1, .ap-bt2 { flex: 1; }
.ap-bt1 .ped-chatbtn { width: 100%; height: 52px; border-radius: 99px; background: var(--pv-acc); color: var(--pv-ink); font-size: 15px; justify-content: center; margin: 0; }
.ap-bt2 { height: 52px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--pv-line); background: none; border: 0; color: var(--pv-text); font-size: 15px; }
.ap-bt2.red { color: var(--pv-bad); }
.ap-wait { margin: 0 0 8px; align-items: flex-start; }
.ap-wait b { font-weight: 500; font-size: 17px; }
.ap-ctr h3 { text-transform: none !important; letter-spacing: 0 !important; font-size: 20px !important; font-weight: 400 !important; color: var(--pv-text) !important; }
.ap-actb .chat-name { font-size: 0 !important; max-width: none !important; }
.ap-actb .chat-name::after { content: 'Conversar'; font-size: 12px; }
.ap-bt1 .ped-chatbtn { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 16px; }
.ap-bt1 .ped-chatbtn[hidden] { display: none; }
.ap-bt1 .ped-chatbtn svg { width: 20px; height: 20px; padding: 0; background: none; box-shadow: none; }
.ap-bt1 .chat-name { font-size: 0 !important; }
.ap-bt1 .chat-name::after { content: 'Responder'; font-size: 15px; }
.ped-rate .ped-h2 { font-size: 16px; font-weight: 400; text-align: center; color: var(--pv-text); text-transform: none; letter-spacing: 0; }
.ped-starrow { display: flex; gap: 6px; justify-content: center; margin: 12px 0; }
.ped-star { width: 44px; height: 44px; color: var(--pv-mut); background: none; border: 0; padding: 0; }
.ped-star.on { color: var(--pv-warn); }
.ped-star svg { width: 100%; height: 100%; }
.ped-sheet .ped-card.ped-rate { background: none; box-shadow: none; padding: 0; }

/* ---------- carro no mapa, rota apagada e cor viva (acompanha o ciclo neon do tema escuro) ---------- */
.ped-map .m-rest { stroke: var(--pv-route); stroke-width: 3; opacity: .28; }
.ped-map .m-car-b { fill: var(--pv-text); stroke: var(--pv-ring); stroke-width: 2.5; }
.ped-map .m-car-w { fill: var(--pv-ring); }
.ap-bar { height: 6px; border-radius: 6px; background: var(--pv-s3); overflow: hidden; margin: 12px 0; }
.ap-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--pv-text); transition: width .6s ease; }
html:not([data-theme="light"]) .ap-bar i { background: hsl(var(--hue,160) 100% 62%); box-shadow: 0 0 12px hsl(var(--hue,160) 100% 62%); }
html:not([data-theme="light"]) .ap-ring .fg { stroke: hsl(var(--hue,160) 100% 62%); }
html:not([data-theme="light"]) .ped-slide[data-state="ready"] .ped-sl-thumb { box-shadow: 0 0 0 3px hsl(var(--hue,160) 100% 62% / .55), 0 0 18px hsl(var(--hue,160) 100% 62% / .6); }
.ap-etab { text-align: right; } .ap-etab b { display: block; font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; } .ap-etab small { color: var(--pv-mut); font-size: 12px; }
.ap-chatpill .ped-chatbtn { height: 40px; min-height: 0; padding: 0 16px; border-radius: 99px; background: none; box-shadow: inset 0 0 0 1px var(--pv-line); color: var(--pv-text); font-size: 15px; display: inline-flex; align-items: center; margin: 0; }
.ap-chatpill .ped-chatbtn svg { display: none; } .ap-chatpill .ped-chatbtn[hidden] { display: none; }
.ap-chatpill .chat-name { font-size: 0; } .ap-chatpill .chat-name::after { content: 'Conversar'; font-size: 15px; }
.ap-chatpill .ped-chatbtn { width: auto !important; } .ap-chatpill .chat-name { display: inline !important; }
/* painel baixo compacto (mapa com 2/3 da tela) */
.ped-bar:has(.ped-slide) { padding-top: 22px; }
.ap-sum > div { padding: 6px 0; }
.ap-bar { margin: 8px 0; }


/* =====================================================================
   Escolha do motorista: folha compacta, igual ao desenho aprovado
   (linhas Embarque/Destino com km e min, "Motoristas perto de você", cartões na horizontal, botão escuro de arrastar)
   ===================================================================== */
.ped-sheet.compact { padding-top: 30px; gap: 0; }
/* acompanhamento, "Escolha outro motorista": a folha compacta não tem espaço entre os blocos; dá respiro entre o botão de arrastar e "Cancelar corrida" (ou o aviso de cancelar) */
.ped-sheet.compact > .drv-body ~ .ped-ghost, .ped-sheet.compact > .drv-body ~ .ped-confirm, .ped-sheet.compact > .drv-body ~ .ped-msg { margin-top: 16px; }
.ped-sheet.compact .ped-intro, .ped-sheet.compact [data-card="trajeto"] > .pc-h, .ped-sheet.compact .ped-addstop, .ped-sheet.compact .ped-hint,
.ped-sheet.compact .drv-top, .ped-sheet.compact .drv-foot { display: none !important; }
.ped-sheet.compact .ped-pc[data-card="trajeto"] { padding: 0; }
.ped-sheet.compact .ped-route { padding: 0; display: block; background: none; border: 0; }
.ped-sheet.compact .ped-pt { gap: 12px; padding: 0; margin-bottom: 12px; align-items: center; cursor: pointer; }
.ped-sheet.compact .ped-pt:not(.last)::after { display: none; }
.ped-sheet.compact .ped-dot { width: 10px; height: 10px; box-shadow: none; background: var(--pv-text); border: 0; }
.ped-sheet.compact .ped-dot.d { border-radius: 3px; background: var(--pv-text); box-shadow: none; }
.ped-sheet.compact .ped-dot.s { background: none; border: 2px solid var(--pv-text); }
.ped-sheet.compact .ped-pt-t { gap: 0; }
.ped-sheet.compact .ped-lab { font-size: 12px; font-weight: 300; color: var(--pv-mut); }
.ped-sheet.compact .ped-addr { font-size: 15px; font-weight: 400; line-height: 1.3; -webkit-line-clamp: 1; }
.ped-sheet.compact .ped-pt.first .ped-edit, .ped-sheet.compact .ped-pt.last .ped-edit { display: none; }
.ped-sheet.compact .ped-pt .ped-inp { height: 40px; font-size: 15px; }
.rt-km { margin-left: auto; text-align: right; white-space: nowrap; display: none; }
.ped-sheet.compact .rt-km { display: block; }
.rt-km b { display: block; font: 500 15px/1.2 'Inter', 'Poppins', system-ui, sans-serif; color: var(--pv-text); }
.rt-km small { display: block; font-size: 12px; font-weight: 300; color: var(--pv-mut); }
.ped-sheet.compact .ped-pc[data-card="motorista"] { padding: 4px 0 0; }
.ped-sheet.compact .ped-pc[data-card="motorista"] .pc-h { min-height: 0; margin: 6px 0 2px; align-items: baseline; }
.ped-sheet.compact .ped-pc[data-card="motorista"] .pc-h h2 { font-size: 15px; font-weight: 500; }
.ped-sheet.compact .ped-pc[data-card="motorista"] .pc-v { font-size: 12px; font-weight: 300; color: var(--pv-mut); }
.ped-sheet.compact .drv-list { padding-bottom: 8px !important; }
.ped-sheet.compact .drv-carname b { font-weight: 400; font-size: 14px; }
.ped-sheet.compact .drv-carname small { text-transform: none; }

.ped-moreline { display: flex; align-items: baseline; justify-content: space-between; width: 100%; background: none; border: 0; padding: 4px 0 10px; font: 300 12.5px 'Poppins', system-ui, sans-serif; color: var(--pv-mut); text-align: left; }
.ped-moreline b { font-weight: 500; color: var(--pv-text); text-decoration: underline; text-underline-offset: 3px; }
.ped-more { display: grid; gap: 4px; padding-bottom: 6px; }
.ped-more .ped-cont { display: none; }
.ped-more .ped-addstop2 { justify-self: start; padding: 4px 0; }
.ped-more[hidden], .ped-moreline[hidden] { display: none; }
.ped-sheet.compact .ped-bar { padding-top: 6px; margin-top: 0; }
.ped-sheet.compact .ped-bar::before { display: none; }

.drv-car.none { width: 56px; height: 28px; }
.drv-car-svg { width: 100%; height: 100%; display: block; }
.ped-hero[data-mode="route"] .m-ring { animation: pv-radar 4.2s ease-out infinite; stroke-width: 1.5; }
.ped-hero[data-mode="route"] .m-ring.r2 { animation-delay: 1.4s; } .ped-hero[data-mode="route"] .m-ring.r3 { animation-delay: 2.8s; }
html[data-theme="light"] .ped-sheet::before { background: var(--pv-line); }

/* botões vermelhos do rodapé (Cancelar corrida, O cliente não pagou...): mesma altura, largura e curva do botão de arrastar */
.ped-bar .ped-ghost, .ped-bar .ped-ghost.bad { height: 58px !important; min-height: 58px !important; padding: 0 20px !important; font-size: 15px !important; font-weight: 400; border-radius: 999px; margin-top: 10px !important; box-shadow: none; display: flex; align-items: center; justify-content: center; }

/* ---------- mapa 3D de navegação (pedir-3d.js): quando há dados, ele desenha tudo e o SVG/malha saem de cena ---------- */
.ped-hero.has-3d .ped-map, .ped-hero.has-3d .ped-mesh { display: none; }
.ped-hero.has-3d::after { background: linear-gradient(to bottom, var(--pv-map) 0, transparent 40%), linear-gradient(to bottom, transparent 72%, var(--pv-map) 100%) !important; }
.ped-hero.has-3d .ped-credit { display: block; }

/* ---------- painel do motorista: taxa da plataforma e ofertas ---------- */
.drv .drv-fee .big-money { margin-top: 2px; }
.drv .drv-fee-prev { margin-top: 12px; }
.drv .drv-hint2 { margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; }
.drv .drv-offers-grid { display: grid; gap: 10px; }
.drv .drv-offer { display: grid; gap: 8px; padding: 16px; border-radius: 20px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.drv .drv-offer.on { box-shadow: inset 0 0 0 2px var(--text); }
.drv .drv-offer .of-h { display: flex; align-items: center; gap: 12px; }
.drv .drv-offer .of-h > div { display: grid; gap: 1px; min-width: 0; }
.drv .drv-offer .of-h strong { font-weight: 500; font-size: 16px; }
.drv .drv-offer .of-h .muted { font-size: 12px; }
.drv .drv-offer .of-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--text); background: var(--glass-2); }
.drv .drv-offer .of-p { display: flex; align-items: baseline; gap: 2px; }
.drv .drv-offer .of-p b { font: 500 26px/1 'Inter', 'Poppins', system-ui, sans-serif; letter-spacing: -.03em; }
.drv .drv-offer .of-p small { color: var(--muted); font-size: 13px; }
.drv .drv-offer p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.drv .drv-offer .badge { justify-self: start; }
.drv .drv-offer .btn.block { width: 100%; justify-content: center; }
@media (min-width: 720px) { .drv .drv-offers-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Painel do gestor / super admin — grafite, claro e escuro (igual ao modelo)
   ===================================================================== */
html body.is-panel:not(.is-ped):not(.is-driver) {
  --bg: #151618; --text: #f1f2f3; --soft: #c9cdd1; --muted: #8b9096;
  --glass: rgba(255,255,255,.04); --glass-2: rgba(255,255,255,.07); --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.16);
  --accent: #f1f2f3; --accent-ink: #1c1e21; --accent-soft: rgba(255,255,255,.08); --accent-line: rgba(255,255,255,.35);
  --ok: #6fcf9b; --warn: #e8a400; --bad: #ff7a74; --info: #aeb4ba; --violet: #aeb4ba; --teal: #aeb4ba;
  --fill: #1f2124; --s2: #25282c; --s3: #2f3237; --on-fill: #1c1e21;
  --grad-blue: #1f2124; --grad-warm: #1f2124; --rainbow: linear-gradient(90deg, #8b9096, #f1f2f3);
  --bar-a: #f1f2f3; --bar-b: #8b9096;
  background: #151618; background-image: none; color-scheme: dark;
}
html[data-theme="light"] body.is-panel:not(.is-ped):not(.is-driver) {
  --bg: #e9ebed; --text: #1c1e21; --soft: #3d4046; --muted: #6b7076;
  --glass: rgba(24,27,31,.04); --glass-2: rgba(24,27,31,.07); --line: rgba(24,27,31,.10); --line-2: rgba(24,27,31,.20);
  --accent: #2a2d31; --accent-ink: #ffffff; --accent-soft: rgba(42,45,49,.08); --accent-line: rgba(42,45,49,.45);
  --ok: #2f8f5f; --warn: #b26b00; --bad: #c8453f; --info: #55595f; --violet: #55595f; --teal: #55595f;
  --fill: #ffffff; --s2: #f1f2f3; --s3: #e3e5e8; --on-fill: #ffffff;
  --grad-blue: #ffffff; --grad-warm: #ffffff; --rainbow: linear-gradient(90deg, #9aa0a6, #2a2d31);
  --bar-a: #2a2d31; --bar-b: #6b7076;
  background: #e9ebed; color-scheme: light;
}
html:has(body.is-panel:not(.is-ped):not(.is-driver)) { background: #151618; }
html[data-theme="light"]:has(body.is-panel:not(.is-ped):not(.is-driver)) { background: #e9ebed; }
html body.is-panel:not(.is-ped):not(.is-driver) .logo b { background: var(--accent); }
html body.is-panel:not(.is-ped):not(.is-driver) .logo b::after { background: var(--on-fill); }
html body.is-panel:not(.is-ped):not(.is-driver) .avatar, html body.is-panel:not(.is-ped):not(.is-driver) .pav { background: var(--accent); color: var(--accent-ink); }
html body.is-panel:not(.is-ped):not(.is-driver) .strong { color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .card, html body.is-panel:not(.is-ped):not(.is-driver) .pane, html body.is-panel:not(.is-ped):not(.is-driver) .kpi, html body.is-panel:not(.is-ped):not(.is-driver) .kpi2 { background: var(--fill); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
html[data-theme="light"] body.is-panel:not(.is-ped):not(.is-driver) .card, html[data-theme="light"] body.is-panel:not(.is-ped):not(.is-driver) .pane, html[data-theme="light"] body.is-panel:not(.is-ped):not(.is-driver) .kpi, html[data-theme="light"] body.is-panel:not(.is-ped):not(.is-driver) .kpi2 { box-shadow: 0 1px 2px rgba(20,24,28,.05); }
html body.is-panel:not(.is-ped):not(.is-driver) .card.grad, html body.is-panel:not(.is-ped):not(.is-driver) .m-hero { background: var(--fill); border: 1px solid var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .kpi.hot { border-color: var(--line-2); } html body.is-panel:not(.is-ped):not(.is-driver) .kpi.hot b { color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .rcard, html body.is-panel:not(.is-ped):not(.is-driver) .pcard, html body.is-panel:not(.is-ped):not(.is-driver) .cmt, html body.is-panel:not(.is-ped):not(.is-driver) .check { background: var(--s2); border: 1px solid var(--line); }
html body.is-panel:not(.is-ped):not(.is-driver) dialog.modal, html body.is-panel:not(.is-ped):not(.is-driver) .modal-head, html body.is-panel:not(.is-ped):not(.is-driver) .toast, html body.is-panel:not(.is-ped):not(.is-driver) .tabbar { background: var(--fill); color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) dialog.modal::backdrop { background: rgba(10,12,14,.55); }
html body.is-panel:not(.is-ped):not(.is-driver) .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
html body.is-panel:not(.is-ped):not(.is-driver) .btn:not(.primary):not(.danger) { color: var(--text); border-color: var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
html body.is-panel:not(.is-ped):not(.is-driver) .pills, html body.is-panel:not(.is-ped):not(.is-driver) .seg, html body.is-panel:not(.is-ped):not(.is-driver) .tabs { background: var(--s2); border: 1px solid var(--line); box-shadow: none; }
html body.is-panel:not(.is-ped):not(.is-driver) .pills a.on, html body.is-panel:not(.is-ped):not(.is-driver) .chips button.on, html body.is-panel:not(.is-ped):not(.is-driver) .tab.on, html body.is-panel:not(.is-ped):not(.is-driver) .seg button.on { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); box-shadow: none; }
html body.is-panel:not(.is-ped):not(.is-driver) .pills a { color: var(--soft); } html body.is-panel:not(.is-ped):not(.is-driver) .pills a:hover { color: var(--text); } html body.is-panel:not(.is-ped):not(.is-driver) .pills a.on:hover { color: var(--accent-ink); background: var(--accent); }
html body.is-panel:not(.is-ped):not(.is-driver) .chips button, html body.is-panel:not(.is-ped):not(.is-driver) .chip { background: var(--glass); border: 1px solid var(--line-2); color: var(--soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .chip.good, html body.is-panel:not(.is-ped):not(.is-driver) .badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
html body.is-panel:not(.is-ped):not(.is-driver) .badge.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, transparent); }
html body.is-panel:not(.is-ped):not(.is-driver) .badge.bad, html body.is-panel:not(.is-ped):not(.is-driver) .chip.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
html body.is-panel:not(.is-ped):not(.is-driver) .inp { background: var(--s2); color: var(--text); border: 1px solid var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .rainbow { background: var(--rainbow); opacity: .5; }
html body.is-panel:not(.is-ped):not(.is-driver) .pbar i { background: linear-gradient(90deg, var(--bar-b), var(--bar-a)); }
html body.is-panel:not(.is-ped):not(.is-driver) .hc i { background: linear-gradient(180deg, var(--bar-a), var(--bar-b)); }
html body.is-panel:not(.is-ped):not(.is-driver) .hbars .tr { background: var(--glass-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .notice { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
html body.is-panel:not(.is-ped):not(.is-driver) .tabbar { border: 1px solid var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .tabbar a { color: var(--muted); }
html body.is-panel:not(.is-ped):not(.is-driver) .tabbar a.on { color: var(--text); background: var(--accent-soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .rb { background: var(--glass); border-color: var(--line); color: var(--soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .rb:hover { background: var(--glass-2); color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .rb.out { color: var(--bad); }
html body.is-panel:not(.is-ped):not(.is-driver) .rb.sub { color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .topbar .theme-btn { width: 46px; height: 46px; }
html body.is-panel:not(.is-ped):not(.is-driver) table th { color: var(--muted); }
html body.is-panel:not(.is-ped):not(.is-driver) table td, html body.is-panel:not(.is-ped):not(.is-driver) table th { border-color: var(--line); }
html body.is-panel:not(.is-ped):not(.is-driver) .mo.ok .st { background: var(--ok); box-shadow: none; color: #fff; } html body.is-panel:not(.is-ped):not(.is-driver) .mo.no .st { background: var(--bad); box-shadow: none; color: #fff; }
html body.is-panel:not(.is-ped):not(.is-driver) .sup-item:hover, html body.is-panel:not(.is-ped):not(.is-driver) .sup-item.on { border-color: var(--accent-line); background: var(--accent-soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .bub.out { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .sub-plan.cur { border-color: var(--accent-line); box-shadow: none; }
html body.is-panel:not(.is-ped):not(.is-driver) input[type=file].inp::file-selector-button { color: var(--text); background: var(--glass-2); border-color: var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) h3 { color: var(--muted); }
@media (max-width: 760px) { html body.is-panel:not(.is-ped):not(.is-driver) { background: var(--bg); } }

/* gestor: acertos finos (texto de destaque, ícones, gráficos e marca em tons de grafite) */
html body.is-panel:not(.is-ped):not(.is-driver) .motiv { color: var(--text); } html body.is-panel:not(.is-ped):not(.is-driver) .motiv b { color: var(--text); font-weight: 600; }
html body.is-panel:not(.is-ped):not(.is-driver) .card.mini { --c: var(--soft) !important; }
html body.is-panel:not(.is-ped):not(.is-driver) .card.mini .ib { background: var(--glass-2); color: var(--soft); }
html body.is-panel:not(.is-ped):not(.is-driver) .logo b { background: var(--text) !important; }
html body.is-panel:not(.is-ped):not(.is-driver) .m-hero { background: var(--fill) !important; border: 1px solid var(--line-2) !important; }
html body.is-panel:not(.is-ped):not(.is-driver) .area path[stroke="#4da3ff"] { stroke: var(--muted); } html body.is-panel:not(.is-ped):not(.is-driver) .area path[stroke="#27e68a"] { stroke: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .area stop[stop-color="#4da3ff"] { stop-color: var(--muted); } html body.is-panel:not(.is-ped):not(.is-driver) .area stop[stop-color="#27e68a"] { stop-color: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .area line { stroke: var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .dot { background: var(--fill); border-color: var(--text); box-shadow: none; }
html body.is-panel:not(.is-ped):not(.is-driver) .dim-label { color: var(--muted); }
html body.is-panel:not(.is-ped):not(.is-driver) .dots i { background: var(--s3); }

html body.is-panel:not(.is-ped):not(.is-driver) .sheet-grid .ic, html body.is-panel:not(.is-ped):not(.is-driver) .qa .ic { color: var(--text); background: var(--glass-2); border: 1px solid var(--line-2); }
html body.is-panel:not(.is-ped):not(.is-driver) .legend button[style*="#4da3ff"] i, html body.is-panel:not(.is-ped):not(.is-driver) .legend button:first-child i { background: var(--muted); }
html body.is-panel:not(.is-ped):not(.is-driver) .legend button:nth-child(2) i { background: var(--text); }
html body.is-panel:not(.is-ped):not(.is-driver) .score .rainbow, html body.is-panel:not(.is-ped):not(.is-driver) .rainbow { display: none; }
html body.is-panel:not(.is-ped):not(.is-driver) .tabbar a .bd, html body.is-panel:not(.is-ped):not(.is-driver) .tabbar .badge-n { background: var(--bad); color: #fff; }

/* =====================================================================
   Páginas públicas que sobram dentro do app (Entrar, retorno de pagamento): mesmo grafite do site, claro e escuro
   ===================================================================== */
html body.is-site { background: #151618; color: #f1f2f3; }
html[data-theme="light"] body.is-site { background: #e9ebed; color: #1c1e21; }
html body.is-site .ws {
  --g0: #151618; --g1: #1f2124; --g2: #25282c; --g3: #2f3237;
  --mint: #f1f2f3; --mint-ink: #1c1e21; --mint-deep: #aeb4ba;
  --text: #f1f2f3; --soft: #c9cdd1; --muted: #8b9096; --line: rgba(255,255,255,.10); --line2: rgba(255,255,255,.18);
  --paper: #25282c; --ink: #f1f2f3; --ink2: #c9cdd1; color-scheme: dark;
}
html[data-theme="light"] body.is-site .ws {
  --g0: #e9ebed; --g1: #ffffff; --g2: #f1f2f3; --g3: #e3e5e8;
  --mint: #2a2d31; --mint-ink: #ffffff; --mint-deep: #55595f;
  --text: #1c1e21; --soft: #3d4046; --muted: #6b7076; --line: rgba(24,27,31,.10); --line2: rgba(24,27,31,.20);
  --paper: #ffffff; --ink: #1c1e21; --ink2: #3d4046; color-scheme: light;
}
html body.is-site .ws-head.scrolled, html body.is-site .ws-head.open { background: color-mix(in srgb, var(--g0) 86%, transparent); }
html body.is-site .ws-head nav a:hover { color: var(--text); }
html body.is-site .ws .btn:hover:not(:disabled), html body.is-site .ws .btn.primary:hover:not(:disabled) { background: var(--text); color: var(--g0); border-color: var(--text); }
html body.is-site .ws .login-photo::after { background: linear-gradient(180deg, transparent 50%, rgba(21,22,24,.85)); }
html body.is-site .ws .login-photo figcaption { color: #fff; }
html body.is-site .ws .inp, html body.is-site .ws input, html body.is-site .ws select { background: var(--g2); color: var(--text); border-color: var(--line2); }
html body.is-site .ws .inp:focus, html body.is-site .ws input:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--line); outline: none; }
html body.is-site .ws .notice { background: color-mix(in srgb, #e8a400 12%, transparent); color: var(--text); border-color: color-mix(in srgb, #e8a400 45%, transparent); }
html body.is-site .ws .theme-btn { width: 42px; height: 42px; }
html body.is-site .ws-foot { background: var(--g1); }
html body.is-site .ws .btn.ghost-sm { background: transparent; color: var(--text); border: 1px solid var(--line2); }
html body.is-site .ws .btn.ghost-sm:hover:not(:disabled) { background: var(--text); color: var(--g0); border-color: var(--text); }


/* ---------- tela do passageiro: espaços, grupo do Pix, foto do carro redonda ---------- */
.ped-sheet .ped-threadw { margin: 2px 0 10px; }
.ped-sheet .ped-live { margin-bottom: 4px; }
.ped-det { border-radius: 22px; background: var(--pv-s2); padding: 0 16px; }
.ped-det > summary { cursor: pointer; padding: 15px 0; font-size: 14.5px; color: var(--pv-soft); list-style: none; display: flex; justify-content: space-between; }
.ped-det > summary::after { content: '▾'; color: var(--pv-mut); transition: transform .25s; }
.ped-det[open] > summary::after { transform: rotate(180deg); }
.ped-det > summary::-webkit-details-marker { display: none; }
.ped-det .ped-dl { margin: 0 0 16px; }
.ped-pixg { border-radius: 22px; background: var(--pv-s2); padding: 14px 16px 16px; display: grid; gap: 10px; }
.ped-pixg-l { font-size: 12.5px; color: var(--pv-mut); }
.ped-pixg-r { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ped-pixg-r code { font: inherit; font-size: 17px; font-weight: 500; letter-spacing: .01em; overflow-wrap: anywhere; user-select: all; min-width: 0; }
.ped-pixg-b { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--pv-line2); background: var(--pv-sheet); color: var(--pv-text); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.ped-pixg-b:active { transform: scale(.94); }
.ped-pixg-b.ok { background: var(--pv-acc); border-color: var(--pv-acc); color: var(--pv-ink); }
.ped-pixg-n { min-height: 16px; font-size: 12.5px; color: var(--pv-acc); margin-top: -4px; }
.ped-pixg-n:empty { display: none; }
.ped-pixg.none .ped-sub { margin: 0; }
.ped-drvcard .ped-car .drv-car { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 0; background: var(--pv-s3); box-shadow: 0 0 0 2px var(--pv-sheet), 0 0 0 3.5px var(--pv-line2); display: grid; place-items: center; flex: none; }
.ped-drvcard .ped-car .drv-car img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.ped-drvcard .ped-car .drv-car.none { width: 56px; height: 56px; }
.ped-drvcard .ped-car { justify-content: flex-start; }
.ped-drvcard .ped-car .ap-plate, .ped-drvcard .ped-car .plate { margin-left: auto; }

/* ---------- cartão "Obrigado pela sua avaliação": ícone e texto lado a lado, sem vão ---------- */
.ped-card.ped-thanks { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.ped-thanks .ped-t { gap: 2px; min-width: 0; text-align: left; }

/* ---------- canto esquerdo do mapa: logo IMAITRE sem fundo; a cor acompanha o tema do mapa ---------- */
.ped-brand, .ped-brand:hover { height: 44px; padding: 0; gap: 0; background: none !important; border: 0 !important; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; color: #f6f7f8; }
html[data-theme="light"] .ped-brand { color: #1b1d20; }
.ped-brand svg { display: block; width: 34px; height: auto; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
html[data-theme="light"] .ped-brand svg { filter: drop-shadow(0 1px 3px rgba(255,255,255,.7)); }

/* ---------- motorista: navegação (distância, rua, 3D, Maps, Waze) dentro do painel de baixo, alinhada, sem caixa ---------- */
.ap-nav { position: static; z-index: auto; left: auto; right: auto; top: auto; background: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0; gap: 12px; }
.ap-nav .ap-nic { width: 42px; height: 42px; }
.ap-nav .ap-ntx b { font-size: 15px; font-weight: 500; line-height: 1.15; }
.ap-nav .ap-ntx small { font-size: 11.5px; }
.ap-nav .ap-nbt { gap: 4px; }
.ap-nav .ap-nbt a, .ap-nav .ap-nbt .ap-n3d { padding: 8px 11px; }

/* ---------- lista de motoristas do passageiro: favorito e destaque pago ---------- */
.ped-sheet .drv-list > .drv-card.feat, .drv-card.feat { background: linear-gradient(155deg, rgba(247,208,99,.20), rgba(247,208,99,.05) 58%), var(--pv-s2); box-shadow: inset 0 0 0 1.5px rgba(236,184,70,.8), 0 14px 30px -16px rgba(236,184,70,.65); border-color: transparent; }
.drv-card.feat .drv-row > :first-child { box-shadow: 0 0 0 2px rgba(236,184,70,.95); border-radius: 50%; }
.drv-card.feat .drv-price strong { color: #e0a933; }
html[data-theme="light"] .drv-card.feat .drv-price strong { color: #a87300; }
.drv-tag { background: linear-gradient(135deg, #f8d867, #e5a834); color: #2b1d00; box-shadow: 0 4px 12px -4px rgba(229,168,52,.7); }
.drv-tag.fav { right: auto; left: 14px; background: var(--pv-text); color: var(--pv-sheet, #fff); box-shadow: 0 4px 12px -6px rgba(0,0,0,.5); }
.drv-card.fav .drv-row > :first-child { box-shadow: 0 0 0 2px var(--pv-text); border-radius: 50%; }
.drv-card.feat.fav { padding-top: 16px; }

/* ---------- Pix dentro do painel (janela de pagamento) ---------- */
.pix-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; text-align: center; min-width: 0; }
.pix-box > * { min-width: 0; max-width: 100%; }
.pix-qr { box-sizing: content-box; max-width: 100%; }
.pix-top { display: grid; gap: 2px; justify-items: center; }
.pix-top span { font-size: 14px; opacity: .72; }
.pix-top b { font: 500 34px/1.1 'Inter', 'Poppins', system-ui, sans-serif; letter-spacing: -.03em; }
.pix-qr { width: 200px; height: 200px; padding: 10px; border-radius: 18px; background: #fff; image-rendering: pixelated; }
.pix-hint { margin: 0; font-size: 13.5px; line-height: 1.45; opacity: .78; max-width: 38ch; }
.pix-code { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 16px; background: rgba(127,127,127,.14); }
.pix-code code { flex: 1; min-width: 0; font: 12px/1.3 ui-monospace, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; user-select: all; }
.pix-copy { flex: none; border: 0; border-radius: 99px; padding: 11px 18px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: currentColor; color: inherit; position: relative; }
.pix-copy { background: #f1f2f3; color: #151618; }
html[data-theme="light"] .pix-copy { background: #1d1f22; color: #fff; }
.pix-copy.ok { background: #25d266 !important; color: #052412 !important; }
.pix-wait { margin: 0; display: block; font-size: 13.5px; opacity: .85; }
.pix-wait i { display: inline-block; margin-right: 8px; vertical-align: middle; width: 9px; height: 9px; border-radius: 50%; background: #25d266; box-shadow: 0 0 0 0 rgba(37,210,102,.6); animation: pix-pulse 1.4s infinite; }
@keyframes pix-pulse { 70% { box-shadow: 0 0 0 9px rgba(37,210,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,210,102,0); } }
.pix-err { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(224,82,82,.14); font-size: 14px; }
.pix-ok { display: grid; gap: 6px; justify-items: center; padding: 10px 0 4px; }
.pix-ok span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; background: #25d266; color: #052412; }
.pix-ok b { font-size: 20px; font-weight: 600; }
.pix-ok small { opacity: .75; }
.pix-box .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .pix-wait i { animation: none; } }

/* cartão de adesão e preço riscado (painel do motorista) */
.drv .drv-offer.adh { box-shadow: inset 0 0 0 2px var(--text); }
.drv .drv-offer .of-p .was { margin-right: 8px; font-size: 15px; color: var(--muted); }


/* Apareça mais: card alto demais para a pilha fixa (o fim ficaria escondido), então rola solto e as ofertas ficam compactas */
.drv .pc.drv-offers { position: relative; top: auto; }
.drv .drv-offer { grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; row-gap: 10px; padding: 14px; }
.drv .drv-offer > p, .drv .drv-offer > .badge, .drv .drv-offer > .btn { grid-column: 1 / -1; }
.drv .drv-offer .of-p { flex-direction: column; align-items: flex-end; gap: 2px; }
.drv .drv-offer .of-p b { font-size: 22px; }
.drv .drv-offer .of-p .was { margin: 0; font-size: 13px; text-decoration: line-through; }
.drv .drv-offer > p { font-size: 13px; }
.drv .drv-offer .badge { display: none; }
