/* App (Android/iOS) — mesmo tema do site: fundo café, amarelo/laranja, Fredoka + DM Sans. Feito para celular. */
body.app { min-height: 100svh; padding: env(safe-area-inset-top) 0 0; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
.ap { width: min(560px, 100%); margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.ap h1, .ap h2, .ap h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }
.ap h1 { font-size: 2rem; }
.ap h2 { font-size: 1.45rem; }
.ap h3 { font-size: 1.1rem; }
.ap p { margin: 0; }
.ap-splash { min-height: 70svh; display: grid; place-items: center; align-content: center; gap: 14px; }
.ap-splash img, .ap-logo { border-radius: 50%; box-shadow: 0 0 0 3px rgba(246, 181, 38, 0.35), var(--shadow); }

/* tela de escolha */
.ap-launch { min-height: 100svh; justify-content: center; align-items: center; text-align: center; padding-bottom: 40px; }
.ap-launch h1 { font-size: 2.6rem; }
.ap-choice { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; padding: 18px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); transition: transform .15s, background .15s; }
.ap-choice:active { transform: scale(.98); background: rgba(255, 240, 214, .14); }
.ap-choice span { font-size: 2.2rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(246, 181, 38, .12); flex: none; }
.ap-choice b { font-family: var(--font-display); font-size: 1.3rem; display: block; }
.ap-choice small { color: var(--muted); }
.ap-remember { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }

/* cabeçalho */
.ap-head { display: flex; align-items: center; gap: 12px; }
.ap-head .av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 2px solid rgba(246, 181, 38, .5); flex: none; display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; }
.ap-head .av img { width: 100%; height: 100%; object-fit: cover; }
.ap-head b { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.1; }
.ap-head small { color: var(--muted); }
.ap-head .grow { min-width: 0; }
.ap-back { background: none; border: 0; font-size: 1.4rem; padding: 4px 8px 4px 0; }

/* cartões e textos */
.box { padding: 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.box.hl { background: linear-gradient(135deg, rgba(246, 181, 38, .16), rgba(240, 138, 36, .08)); border-color: rgba(246, 181, 38, .35); }
.box.danger { background: rgba(210, 55, 42, .14); border-color: rgba(210, 55, 42, .45); }
.box.ok { background: rgba(63, 143, 70, .16); border-color: rgba(74, 222, 128, .35); }
.hint { color: var(--muted); font-size: .86rem; }
.row { display: flex; gap: 8px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .btn { flex: 1; }
.big { width: 100%; padding: 17px 20px; font-size: 1.08rem; }
.btn-danger { background: linear-gradient(135deg, #ef5a4a, var(--red-deep)); color: #fff; box-shadow: 0 10px 28px -10px rgba(210, 55, 42, .8); }
.btn-ok { background: linear-gradient(135deg, #5fc46a, var(--green)); color: #0d230f; }
.btn:disabled { opacity: .55; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: rgba(74, 222, 128, .14); color: #a7f3b5; border-color: rgba(74, 222, 128, .3); }
.tag.warn { background: rgba(246, 181, 38, .14); color: #ffd982; border-color: rgba(246, 181, 38, .35); }
.tag.bad { background: rgba(210, 55, 42, .18); color: #ffb3a8; border-color: rgba(210, 55, 42, .4); }
.money { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--yellow); line-height: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* formulários */
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
.fld input, .fld select, .fld textarea, .code-in {
  width: 100%; padding: 14px 15px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25);
  color: var(--text); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld input:focus, .fld select:focus, .fld textarea:focus, .code-in:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246, 181, 38, .2); }
.fld small { font-weight: 400; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.code-in { font-size: 2rem; text-align: center; letter-spacing: .4em; font-family: var(--font-display); padding: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.check input { width: 22px; height: 22px; accent-color: var(--orange); flex: none; margin-top: 1px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.seg label { text-align: center; padding: 10px 6px; border-radius: 12px; font-weight: 700; font-size: .9rem; cursor: pointer; }
.seg input { display: none; }
.seg label:has(input:checked) { background: linear-gradient(135deg, #ffcb45, var(--orange)); color: #2a1405; }
.terms { max-height: 38svh; overflow: auto; white-space: pre-wrap; font-size: .88rem; line-height: 1.5; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.err { color: #ffb3a8; font-weight: 600; font-size: .92rem; }
.err:empty { display: none; }
.test-banner { padding: 10px 14px; border-radius: 14px; background: rgba(246, 181, 38, .14); border: 1px dashed rgba(246, 181, 38, .5); font-size: .9rem; }

/* passos do cadastro */
.steps { display: flex; gap: 5px; }
.steps i { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); }
.steps i.on { background: linear-gradient(90deg, #ffcb45, var(--orange)); }
.steps i.cur { background: var(--yellow); box-shadow: 0 0 10px rgba(246, 181, 38, .6); }
.step-lbl { color: var(--muted); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.qr-box { display: grid; place-items: center; padding: 14px; background: #fff; border-radius: 18px; width: max-content; margin: 0 auto; }
.qr-box img { width: 210px; height: 210px; }
.secret { font-family: ui-monospace, monospace; word-break: break-all; font-size: .9rem; text-align: center; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .3); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, monospace; }
.codes span { padding: 6px; border-radius: 8px; background: rgba(0, 0, 0, .3); text-align: center; }

/* documentos */
.docs { display: flex; flex-direction: column; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); }
.doc .th { width: 64px; height: 48px; border-radius: 10px; background: var(--surface-2) center / cover; flex: none; display: grid; place-items: center; font-size: 1.4rem; }
.doc b { display: block; font-size: .95rem; }
.doc small { color: var(--muted); }
.doc.done { border-color: rgba(74, 222, 128, .4); }
.doc.need { border-color: rgba(246, 181, 38, .6); }
.doc .btn { padding: 9px 14px; }

/* prova de vida */
.lv { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #000; }
.lv video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.lv-oval { position: absolute; left: 50%; top: 44%; width: 62%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: 0 0 0 999px rgba(20, 13, 8, .62); border: 3px solid var(--yellow); transition: width .4s; }
.lv[data-pose='perto'] .lv-oval { width: 80%; }
.lv-txt { position: absolute; left: 0; right: 0; bottom: 34px; text-align: center; padding: 0 16px; }
.lv-txt b { display: block; font-family: var(--font-display); font-size: 1.35rem; text-shadow: 0 2px 8px #000; }
.lv-txt small { color: #ffd982; font-weight: 700; min-height: 1.2em; display: block; }
.lv-steps { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.lv-steps i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.lv-steps i.on { background: #4ade80; }
.poses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.poses img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; transform: scaleX(-1); }

/* análise */
.scan { display: grid; place-items: center; padding: 24px 0 8px; }
.scan-ring { width: 120px; height: 120px; border-radius: 50%; border: 6px solid var(--surface-2); border-top-color: var(--yellow); animation: spin 1.1s linear infinite; display: grid; place-items: center; }
.scan-ring span { animation: spin 1.1s linear infinite reverse; font-size: 2.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: center; }

/* início / turno */
.shift { display: flex; align-items: center; gap: 14px; }
.shift .dot { width: 14px; height: 14px; border-radius: 50%; background: #888; flex: none; }
.shift.on .dot { background: #4ade80; animation: ping 1.6s infinite; }
.sensors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sensors div { padding: 10px 6px; border-radius: 16px; text-align: center; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
.sensors div b { display: block; font-size: 1.3rem; filter: grayscale(1); opacity: .45; }
.sensors div.on { color: var(--text); border-color: rgba(74, 222, 128, .4); }
.sensors div.on b { filter: none; opacity: 1; }
.speed { display: flex; align-items: baseline; gap: 6px; justify-content: center; }
.speed b { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; }
.deliv-map { height: 210px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #1a120c; }
.empty { text-align: center; padding: 26px 10px; color: var(--muted); }
.empty span { font-size: 2.4rem; display: block; }

/* oferta (estilo app de entregas) */
.offer { text-align: center; display: flex; flex-direction: column; gap: 12px; }
.offer .ring { --p: 100; width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0); }
.offer .ring b { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-family: var(--font-display); font-size: 1.6rem; }
.offer .money { font-size: 3rem; }
.offer-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer-facts div { padding: 10px 4px; border-radius: 14px; background: rgba(0, 0, 0, .25); }
.offer-facts b { display: block; font-size: 1.15rem; font-family: var(--font-display); }
.offer-facts small { color: var(--muted); font-size: .75rem; }

/* ganhos */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stats div { padding: 12px 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--yellow); }
.stats small { color: var(--muted); font-size: .78rem; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 130px; }
.bars div { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; font-size: .7rem; color: var(--muted); }
.bars i { width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #ffcb45, var(--orange)); min-height: 3px; }
.list { display: flex; flex-direction: column; }
.list > div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list > div:last-child { border: 0; }

/* perfil */
.pf { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.pf .av { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 3px solid var(--yellow); background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; position: relative; }
.pf .av img { width: 100%; height: 100%; object-fit: cover; }
.plate { display: inline-block; font-family: ui-monospace, 'DM Sans', monospace; font-weight: 800; letter-spacing: .12em; padding: 6px 14px; border-radius: 8px; background: #f4f4f4; color: #111; border: 2px solid #1e3a8a; border-top-width: 8px; }

/* menu inferior */
.ap-tabs { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(24, 15, 9, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
.ap-tabs.no-earn { grid-template-columns: repeat(4, 1fr); }
.ap-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; border-radius: 14px; }
.ap-tabs a span { font-size: 1.35rem; filter: grayscale(.8); }
.ap-tabs a.on { color: var(--yellow); background: rgba(246, 181, 38, .1); }
.ap-tabs a.on span { filter: none; }

/* SOS: segure 1,5 s */
.sos-fab { position: fixed; z-index: 31; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 72px; height: 72px; border-radius: 50%; border: 0; color: #fff; background: radial-gradient(circle at 30% 30%, #ff6b57, var(--red-deep)); box-shadow: 0 10px 30px -6px rgba(210, 55, 42, .9), 0 0 0 4px rgba(210, 55, 42, .25); display: grid; place-items: center; align-content: center; line-height: 1; touch-action: none; user-select: none; -webkit-user-select: none; }
.sos-fab b { font-family: var(--font-display); font-size: 1.3rem; }
.sos-fab small { font-size: .62rem; opacity: .85; }
.sos-fab i { position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p, 0) * 1%), transparent 0); -webkit-mask: radial-gradient(circle, transparent 38px, #000 39px); mask: radial-gradient(circle, transparent 38px, #000 39px); pointer-events: none; }
.cam-preview { position: fixed; z-index: 29; left: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); width: 64px; height: 86px; object-fit: cover; border-radius: 14px; border: 2px solid #4ade80; background: #000; opacity: .9; }

/* janela inferior */
.ap-sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .6); }
.ap-sheet-card { width: min(560px, 100%); max-height: 92svh; overflow: auto; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #2a1c12, #1a110a); border: 1px solid var(--line); border-bottom: 0; display: flex; flex-direction: column; gap: 12px; animation: up .25s ease-out; }
.ap-sheet-card.alarm { background: linear-gradient(180deg, #5a1610, #2a0c08); border-color: rgba(255, 107, 87, .5); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.ask-ico { font-size: 3rem; text-align: center; }
.ask-count { font-family: var(--font-display); font-size: 2.6rem; text-align: center; color: #ffd982; }

/* disfarce (SOS silencioso) */
.ap-disguise { position: fixed; inset: 0; z-index: 90; background: #f3f3f3; color: #555; display: grid; place-items: center; align-content: center; gap: 10px; font-family: system-ui, sans-serif; }
.ap-disguise .spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #ddd; border-top-color: #888; animation: spin 1s linear infinite; }

/* avisos */
.ap-toasts { position: fixed; z-index: 95; top: calc(12px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ap-toast { padding: 12px 16px; border-radius: 16px; background: rgba(36, 24, 15, .97); border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; animation: up .2s; }
@media (max-width: 360px) { .grid2 { grid-template-columns: 1fr; } .sensors { grid-template-columns: repeat(2, 1fr); } }

/* emergência */
.emerg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emerg button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 20px; border: 1px solid rgba(255, 107, 87, .5); background: rgba(210, 55, 42, .18); font-weight: 800; font-size: .95rem; color: #ffd9d3; }
.emerg button b { font-size: 2rem; }
.emerg button:active { transform: scale(.96); background: rgba(210, 55, 42, .4); }
.emerg button[data-emerg='sos'] { background: linear-gradient(135deg, #ef5a4a, var(--red-deep)); color: #fff; }

/* chat com o cliente */
.ap-sheet-card.chat { height: min(640px, 90svh); }
.chat-list { flex: 1; min-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 6px 2px; }
.cm { max-width: 82%; padding: 9px 13px 6px; border-radius: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.cm time { display: block; text-align: right; font-size: .68rem; opacity: .6; margin-top: 2px; }
.cm.me { align-self: flex-end; background: linear-gradient(135deg, #ffcb45, var(--orange)); color: #2a1405; border-bottom-right-radius: 6px; }
.cm.them { align-self: flex-start; background: rgba(255, 240, 214, .12); border-bottom-left-radius: 6px; }
.cm.sys { align-self: center; max-width: 92%; text-align: center; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3); font-size: .86rem; border-radius: 14px; }
.cm-empty { margin: auto; text-align: center; color: var(--muted); padding: 20px; }
.chat-quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chat-quick button { flex: none; border: 1px solid var(--line); background: rgba(255, 240, 214, .07); border-radius: 999px; padding: 7px 13px; font-size: .85rem; font-weight: 600; }
.chat-form { display: flex; gap: 8px; }
.chat-form input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); font-size: 16px; outline: none; }

/* ---- base à prova de tela pequena ---- */
body.app { min-height: 100vh; min-height: 100dvh; }
.ap * { min-width: 0; }
.ap img, .ap video, .ap canvas, .ap svg { max-width: 100%; }
body.app .btn { white-space: normal; line-height: 1.2; text-align: center; }
.ap h1, .ap h2, .ap h3, .ap p, .ap b, .ap small, .ap dd { overflow-wrap: anywhere; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ap-sheet-card { max-height: 92vh; max-height: 92dvh; }
@media (max-width: 340px) { .ap { padding-left: 12px; padding-right: 12px; } .ap h1 { font-size: 1.6rem; } .stats b { font-size: 1rem; } .stats small { font-size: .68rem; } .money { font-size: 1.8rem; } .ord .tag { font-size: .68rem; } }
@media (min-width: 700px) { .ap { padding-top: 28px; } }

/* ---- tela inicial (hub) ---- */
.ap-hub { padding-top: 18px; padding-bottom: 40px; }
.hub-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 4vh; }
.hub-brand img { border-radius: 50%; box-shadow: 0 0 0 3px rgba(246, 181, 38, .35), var(--shadow); }
.hub-brand h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
.hub-quick { display: grid; gap: 10px; }
.hub-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: .92rem; }
.hub-links a, .hub-dl { color: var(--yellow); text-decoration: underline; }
.hub-dl { text-align: center; display: block; padding: 6px; }
.hub-resume { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.hub-install { text-align: center; }
.cap-box:empty { display: none; }
#areas { display: flex; flex-direction: column; gap: 10px; }
.ap-choice { cursor: pointer; border: 1px solid var(--line); font: inherit; color: inherit; }
button.ap-choice { width: 100%; }

/* ---- baixar / passo a passo ---- */
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; }
.how.plain { list-style: none; padding-left: 0; }

/* ---- meus pedidos ---- */
.ap h2.sub { color: var(--muted); font-size: 1.05rem; margin-top: 6px; }
.ord-items { color: var(--muted); font-size: .92rem; }
.ord-eta { font-weight: 700; color: var(--yellow); }
.box.empty { text-align: center; }

/* meta e conquistas */
.goal { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.goal i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffcb45, var(--orange)); transition: width .6s; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badges div { text-align: center; padding: 10px 4px; border-radius: 16px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); opacity: .45; display: flex; flex-direction: column; gap: 2px; }
.badges div.on { opacity: 1; border-color: rgba(246, 181, 38, .5); background: rgba(246, 181, 38, .1); }
.badges b { font-size: 1.7rem; filter: grayscale(1); }
.badges div.on b { filter: none; }
.badges span { font-weight: 700; font-size: .78rem; line-height: 1.15; }
.badges small { color: var(--muted); font-size: .66rem; line-height: 1.15; }
@media (max-width: 340px) { .badges { grid-template-columns: repeat(2, 1fr); } }

/* alvos de toque de pelo menos 44px */
body.app .btn { min-height: 44px; }
.ap a.hint, .hub-links a, .hub-dl, .ap p > a[href^='tel'], .ap a.hint { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 8px; }
.hub-links { gap: 0 12px; }
.ap p > a[href^='tel'] { min-height: 40px; padding: 0 4px; }

/* modo direção */
.drive { position: fixed; inset: 0; z-index: 85; background: #0b0705; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.drive-top { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; }
.drive-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); font-size: 1.1rem; }
.drive-speed { display: flex; align-items: baseline; gap: 8px; }
.drive-speed b { font-family: var(--font-display); font-size: clamp(5rem, 28vw, 9rem); line-height: 1; color: var(--yellow); }
.drive-speed span { color: var(--muted); font-size: 1.4rem; }
.drive-dest { font-size: 1.15rem; max-width: 22em; }
.me-row { background: rgba(246, 181, 38, .12); border-radius: 10px; padding-left: 6px !important; padding-right: 6px !important; }

/* ---------- navegação do entregador ---------- */
.nav { position: fixed; inset: 0; z-index: 95; background: #0b0705; color: #fff; display: flex; flex-direction: column; }
.nav .nav-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.nav-top { position: absolute; z-index: 3; top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: rgba(20, 12, 8, .94); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 8px 28px rgba(0, 0, 0, .5); }
.nav-ico { font-size: 2.4rem; line-height: 1; min-width: 52px; text-align: center; }
.nav-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nav-txt b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; color: var(--yellow); }
.nav-txt span { font-weight: 700; font-size: 1.05rem; }
.nav-txt small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-top button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); font-size: 1.2rem; color: #fff; }
.nav-alert { position: absolute; z-index: 3; top: calc(96px + env(safe-area-inset-top)); left: 12px; right: 12px; padding: 10px 14px; border-radius: 14px; background: #b45309; font-weight: 800; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.nav-bottom { position: absolute; z-index: 3; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 20px; background: rgba(20, 12, 8, .95); border: 1px solid rgba(255, 255, 255, .12); }
.nav-speed { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 4px 10px; border-radius: 14px; background: rgba(0, 0, 0, .35); }
.nav-speed b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--yellow); }
.nav-speed small { color: var(--muted); font-size: .7rem; }
.nav-eta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-eta b { font-size: 1.5rem; line-height: 1.1; }
.nav-eta small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-bottom button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); font-size: 1.2rem; color: #fff; flex: none; }
#nav-exit { background: #b91c1c; }
.nav-sheet { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #1b120c; border-top: 1px solid rgba(255, 255, 255, .15); display: grid; gap: 10px; }
.nav-sheet h2 { margin: 0; }
.nav-hz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-hz-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font-size: .8rem; }
.nav-hz-grid b { font-size: 1.7rem; }
.nav-me { width: 38px; height: 38px; border-radius: 50%; background: rgba(74, 222, 128, .25); border: 2px solid #4ade80; display: grid; place-items: center; transition: transform .6s linear; }
.nav-me i { width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 18px solid #4ade80; transform: translateY(-2px); }
.nav-me-wrap { pointer-events: none; }
.nav-hz-pin { font-size: 1.3rem; }
.nav-sig { font-size: 1.1rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
@media (max-width: 380px) { .nav-bottom { gap: 6px; padding: 8px; } .nav-speed { min-width: 62px; } .nav-speed b { font-size: 2.2rem; } .nav-bottom button { width: 40px; height: 40px; } .nav-txt b { font-size: 1.6rem; } }
.map-pin.nav-me-wrap, .map-pin.hz, .map-pin.sg { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
.nav-speed { cursor: pointer; }
.nav-speed.over b { color: #ef4444; animation: navOver .6s ease-in-out infinite alternate; }
@keyframes navOver { to { opacity: .55; } }
