/* PWA tibida — habillage : noir, blanc, jaune tibida, gris.
 * Graisses ≤ 600, saisies ≥ 16 px, casse phrase. */
:root {
  --yellow: #ffce00;
  --black: #0a0a0a;
  --ink: #161616;
  --grey: #6b6b6b;
  --line: #e6e6e6;
  --bg: #f4f4f4;
  --bubble-in: #fff3b0;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
input { font-size: 16px; }
.view { display: none; min-height: 100%; }
.view.on { display: flex; flex-direction: column; }

/* ——— Marque ——— */
.brand { display: flex; align-items: center; gap: 9px; }
.brand .disc { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: #000; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 17px; }
.brand .word { font-weight: 600; font-size: 20px; letter-spacing: -0.2px; }

/* ——— Écran de démarrage interne ——— */
#view-boot { background: #000; color: #fff; align-items: center; justify-content: center; }
#view-boot img { width: 176px; height: auto; }
#view-boot p { color: #9a9a9a; margin-top: 18px; font-size: 14px; }

/* ——— Connexion ——— */
.auth-screen { background: #000; color: #fff; padding: calc(28px + var(--safe-t)) 22px calc(24px + var(--safe-b)); }
.auth-screen .logo { width: 74px; height: auto; margin: 22px auto 4px; display: block; }
.auth-screen h1 { text-align: center; font-size: 24px; font-weight: 600; margin: 12px 0 4px; }
.auth-screen .sub { text-align: center; color: #bdbdbd; margin: 0 0 26px; font-size: 15px; }
.auth-methods { display: flex; flex-direction: column; gap: 11px; max-width: 420px; width: 100%; margin: 0 auto; }
.btn-method {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid #2c2c2c;
  background: #171717; color: #fff; font-weight: 500; font-size: 16px;
}
.btn-method.primary { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }
.btn-method .g { font-weight: 600; }
.auth-panel { display: none; background: #171717; border: 1px solid #2c2c2c; border-radius: 14px; padding: 16px; }
.auth-panel.on { display: block; }
.auth-panel label { display: block; font-size: 13px; color: #bdbdbd; margin: 0 0 6px; }
.auth-screen > label, .auth-screen .code-zone label { display: block; font-size: 13px; color: #bdbdbd; margin: 0 0 6px; }
.auth-panel input[type="text"], .auth-panel input[type="email"], .auth-panel input[type="tel"],
.auth-screen input[type="text"], .auth-screen input[type="email"], .auth-screen input[type="tel"] {
  width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid #3a3a3a;
  background: #0d0d0d; color: #fff; margin-bottom: 12px; font-size: 16px;
}
.btn-go {
  width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: var(--yellow); color: #000; font-weight: 600; font-size: 16px;
}
.btn-go:disabled { opacity: 0.45; }
/* Le champ code est AUTONOME : même rendu sur tous les écrans
 * (connexion, inscription, récupération, complétion) — largeur
 * contenue dans sa carte, fond sombre, bordure jaune au toucher.
 * Correctif du 2026-10-14 : sur l'écran de complétion, aucune
 * règle ne le cadrait ; il prenait sa largeur libre et le fond
 * blanc d'iOS, et débordait de l'écran. */
.code-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 12px 13px; border-radius: 10px; border: 1px solid #3a3a3a;
  background: #0d0d0d; color: #fff; margin-bottom: 12px;
  text-align: center; letter-spacing: 8px; font-size: 24px !important; font-weight: 600;
}
.code-input:focus { border-color: var(--yellow); outline: none; }
.auth-msg { min-height: 20px; font-size: 14px; color: #ffb3b3; margin: 8px 0 0; }
.auth-msg.ok { color: #ffe97a; }
.btn-link { background: none; border: none; color: #ffe97a; padding: 6px 0; font-size: 14px; }
.auth-screen .foot { text-align: center; color: #777; font-size: 12.5px; margin-top: auto; padding-top: 26px; }

/* Le champ téléphone partagé, en sombre sur cet écran */
.auth-screen .pf-wrap, #view-complete .pf-wrap { --pf-bg: #0d0d0d; }

/* ——— Compléter le compte ——— */
#view-complete { color: #fff; padding: calc(28px + var(--safe-t)) 22px calc(24px + var(--safe-b)); }
#view-complete h1 { font-size: 22px; font-weight: 600; margin: 18px 0 6px; }
#view-complete .sub { color: #bdbdbd; margin: 0 0 22px; font-size: 15px; }
.step-card { background: #171717; border: 1px solid #2c2c2c; border-radius: 14px; padding: 16px; margin-bottom: 14px; max-width: 420px; width: 100%; margin-left: auto; margin-right: auto; }
.step-card h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.step-card p { color: #bdbdbd; font-size: 14px; margin: 0 0 12px; }
.step-card input[type="email"] {
  width: 100%; padding: 12px 13px; border-radius: 10px; border: 1px solid #3a3a3a;
  background: #0d0d0d; color: #fff; margin-bottom: 12px; font-size: 16px;
}
#view-complete .wrap { max-width: 420px; width: 100%; margin: 0 auto; width: 100%; }

/* ——— Conversation ——— */
#view-chat { background: var(--bg); height: 100dvh; }
.chat-head {
  background: #000; color: #fff; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
}
.chat-head .spacer { flex: 1; }
.icon-btn {
  background: #1d1d1d; border: 1px solid #333; color: #fff; border-radius: 999px;
  padding: 7px 13px; font-size: 14px; font-weight: 500;
}
.icon-btn.ride { background: var(--yellow); color: #000; border-color: var(--yellow); font-weight: 600; }
.ride-banner {
  display: none; background: #fff8d6; border-bottom: 1px solid #ecd34d;
  padding: 10px 14px; font-size: 14.5px; align-items: center; gap: 8px; flex-wrap: wrap;
}
/* Code de montée épinglé (lot course) : le même composant
 * que la page de suivi — puce jaune, code en gros, Copier. */
.codechip {
  flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--yellow); color: #111; border-radius: 12px; padding: 9px 13px; margin-top: 2px;
}
.codechip .t { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.codechip .n { font-size: 21px; font-weight: 600; letter-spacing: 4px; }
.codechip button { font-size: 12px; font-weight: 600; border: 1.5px solid #111; background: transparent; color: #111; border-radius: 999px; padding: 5px 10px; margin-left: 0; }
/* Carte d'activation des notifications (lot course) :
 * montrée une seule fois, quand une course est active. */
.push-invite { background: #fff; border-bottom: 1px solid var(--line); padding: 14px; }
.push-invite h3 { font-size: 16px; font-weight: 600; margin: 0 0 5px; color: #111; }
.push-invite p { color: #666; font-size: 13.5px; line-height: 1.45; margin: 0; }
.push-invite .row { display: flex; gap: 10px; margin-top: 12px; }
.push-invite .on { flex: 1; background: var(--yellow); color: #111; border: 0; border-radius: 12px; padding: 11px; font-weight: 600; font-size: 14px; }
.push-invite .later { flex: 1; background: transparent; color: #111; border: 1px solid #ccc; border-radius: 12px; padding: 11px; font-weight: 500; font-size: 14px; }
.ride-banner.on { display: flex; }
.ride-banner b { font-weight: 600; }
.ride-banner button { margin-left: auto; background: #000; color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-weight: 500; }
#messages { flex: 1; overflow-y: auto; padding: 14px 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,0.05); }
.msg.out { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.in { background: var(--bubble-in); align-self: flex-end; border-bottom-right-radius: 5px; }
.msg .time { display: block; font-size: 11px; color: #9a9a9a; margin-top: 4px; text-align: right; }
.msg img.media { max-width: 100%; border-radius: 10px; display: block; }
.choices { display: flex; flex-direction: column; gap: 7px; margin-top: 9px; }
.choice-btn {
  background: #fff; border: 1.5px solid var(--yellow); color: #000; border-radius: 12px;
  padding: 10px 12px; font-weight: 500; font-size: 15px; text-align: left;
}
.choice-btn small { display: block; color: var(--grey); font-weight: 400; font-size: 13px; margin-top: 1px; }
.choice-btn:disabled { opacity: 0.45; border-color: var(--line); }
.cta-btn {
  display: inline-block; margin-top: 9px; background: var(--yellow); color: #000; border: none;
  border-radius: 12px; padding: 11px 16px; font-weight: 600; font-size: 15px;
}
.composer {
  display: flex; align-items: flex-end; gap: 7px; background: #fff; border-top: 1px solid var(--line);
  padding: 9px 10px calc(9px + var(--safe-b));
}
.composer .tool {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 19px; display: flex; align-items: center; justify-content: center; flex: none;
}
.composer .tool.rec { background: #e03131; border-color: #e03131; color: #fff; }
#composer-input {
  flex: 1; border: 1px solid var(--line); border-radius: 21px; padding: 10px 14px;
  resize: none; max-height: 110px; font-size: 16px; font-family: inherit; background: #fafafa;
}
#composer-send {
  width: 42px; height: 42px; border-radius: 50%; border: none; background: var(--yellow);
  color: #000; font-size: 18px; font-weight: 600; flex: none;
}

/* ——— Course (suivi embarqué) ——— */
#view-ride { height: 100dvh; background: #000; }
.ride-head { background: #000; color: #fff; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 14px 10px; }
.ride-head button { background: #1d1d1d; border: 1px solid #333; color: #fff; border-radius: 999px; padding: 7px 14px; }
#ride-frame { flex: 1; width: 100%; border: none; background: #fff; }

/* ——— Surcouche (page carte du bot) ——— */
#overlay { display: none; position: fixed; inset: 0; background: #000; z-index: 50; flex-direction: column; }
#overlay.on { display: flex; }
#overlay .bar { display: flex; align-items: center; padding: calc(10px + var(--safe-t)) 14px 10px; background: #000; color: #fff; }
#overlay .bar button { margin-left: auto; background: var(--yellow); border: none; color: #000; font-weight: 600; border-radius: 999px; padding: 8px 16px; }
#overlay iframe { flex: 1; width: 100%; border: none; background: #fff; }

/* ——— Compte ——— */
#view-account { background: var(--bg); height: 100dvh; }
.acct-body { padding: 18px 16px; overflow-y: auto; }
.acct-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.acct-card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.acct-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.acct-row:last-child { border-bottom: none; }
.acct-row span:first-child { color: var(--grey); }
.btn-danger { width: 100%; padding: 13px; border-radius: 12px; border: 1px solid #e03131; background: #fff; color: #e03131; font-weight: 500; }
.btn-ghost { width: 100%; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; margin-bottom: 10px; }

/* Toast */
#toast {
  position: fixed; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%) translateY(20px);
  background: #000; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14.5px;
  opacity: 0; pointer-events: none; transition: all 0.25s; z-index: 99; max-width: 88vw; text-align: center;
}
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Compléter le compte : liaison sociale de l'e-mail */
.social-holder{display:flex;justify-content:center;margin:12px 0 4px;min-height:44px}
.social-holder:empty{display:none}
.small-note{font-size:13px;color:#9a9aa0;text-align:center;margin-top:10px}
.sep{display:flex;align-items:center;gap:10px;color:#77777d;font-size:12.5px;margin:16px 0 4px}
.sep::before,.sep::after{content:'';flex:1;height:1px;background:#333338}
.step-card .btn-method{width:100%;margin-top:10px}

/* Nouveau logo horizontal + écrans sign in / sign up (.614) */
.brandlogo{height:28px;width:auto;display:block;margin:14px 0 2px;align-self:flex-start}
.brandlogo.sm{height:19px;margin:0}
.ride-title{font-weight:600;font-size:16px;color:#fff}
.btn-method svg{width:17px;height:17px;fill:currentColor;vertical-align:-3px;margin-right:9px}
.auth-screen .social-holder{margin:14px 0 2px}
.auth-screen .btn-ghost.light{background:#171717;color:#fff;border:1px solid #333;width:100%;margin-top:10px}
.auth-screen .btn-go.alt{background:#fff;color:#000;margin-top:6px}
.switch-line{text-align:center;color:#bdbdbd;font-size:15px;margin-top:20px}
.switch-line .btn-link{display:inline;padding:0;font-size:15px}
/* Texte réduit de 3 points sur les écrans de connexion et
 * d'inscription (ordre d'Elhadji) : champs inchangés (16 px,
 * règle iOS), plancher 11 px pour les petits textes. */
.auth-screen h1{font-size:21px}
.auth-screen .sub{font-size:12px}
.auth-screen .btn-method{font-size:13px}
.auth-screen .btn-go{font-size:13px}
.auth-screen label{font-size:11px}
.auth-screen .auth-msg{font-size:11px}
.auth-screen .btn-link{font-size:11px}
.auth-screen .switch-line,.auth-screen .switch-line .btn-link{font-size:12px}
.auth-screen .foot{font-size:11px}

/* Mentions légales : case à cocher (sign in / sign up) */
.legal-check{display:flex;gap:10px;align-items:flex-start;background:transparent;border:0;border-radius:0;padding:0;margin:22px 0 2px;font-size:12px;color:#d8d8d8;line-height:1.45;cursor:pointer}
.legal-check input{width:20px;height:20px;flex:none;margin:0;accent-color:var(--yellow)}
.legal-check a{color:#ffe97a;text-decoration:underline}

/* Choix avec image (classes de véhicules dans la conversation) */
.choice-btn.has-img{display:flex;align-items:center;gap:11px;text-align:left}
.choice-btn.has-img img{width:56px;height:40px;object-fit:cover;border-radius:8px;flex:none;background:#eee}
.choice-btn.has-img span{display:block}

/* Conversation : canevas mobile plein cadre, et sur bureau un
 * canevas BLANC centré à coins arrondis sur fond gris
 * (demande d'Elhadji 2026-10-13) — bot à gauche, moi à droite. */
.chat-canvas{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;background:var(--bg)}
@media (min-width: 900px){
  #view-chat{background:#dcd8d2;align-items:center;justify-content:center;padding:26px 18px;box-sizing:border-box}
  .chat-canvas{max-width:820px;background:#fff;border-radius:24px;box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden}
  .chat-canvas #messages{background:#fff;padding:18px 20px 10px}
  .chat-canvas .msg.out{background:#f2f2f3;box-shadow:none}
  .chat-canvas .choice-btn{background:#f7f7f8}
  /* Bureau : les textes restent dans leur coin, comme
   * WhatsApp — jamais de bulle qui traverse tout le canevas. */
  .chat-canvas .msg{max-width:68%}
}

/* Photos chauffeur/voiture : MINIATURES (ordre d'Elhadji —
 * jamais la photo en grand dans la conversation ; un toucher
 * l'agrandit pour vérifier, un autre la réduit). */
.msg img.media.mini{width:64px;height:64px;object-fit:cover;border-radius:12px;cursor:pointer}
.msg img.media.mini.full{width:100%;height:auto;max-width:260px}

/* Corrections d'Elhadji (captures du 2026-10-13 22:05) :
 * espace entre le champ téléphone et le bouton SMS de
 * l'inscription ; le G de Google en couleur, sans fond. */
#su-phone-send{margin-top:12px}
.btn-method svg.gsvg{width:19px;height:19px;margin-right:2px}

/* Corrections d'Elhadji (captures du 2026-10-13 22:28) :
 * JAMAIS deux boutons qui se touchent — 12 px entre les
 * boutons empilés (paire Google/Apple comprise) ; espace
 * avant le bouton code de l'étape téléphone ; retour
 * visuel quand la case légale n'est pas cochée. */
.btn-method{margin-bottom:12px}
.step-card .btn-go{margin-top:12px}
.legal-check.nudge{animation:legalNudge 1.4s ease}
@keyframes legalNudge{0%,100%{outline:0 solid rgba(255,225,3,0)}25%,60%{outline:2px solid #FFE103;border-radius:8px}}

/* Écrans larges (correction d'Elhadji du 2026-10-13 22:32,
 * photos tablette contre la page Resend) : un formulaire
 * ne s'étale JAMAIS d'un bord à l'autre de l'écran. Les
 * écrans d'accès vivent dans une colonne centrée de
 * 440 px maximum ; sur téléphone, rien ne change. Même
 * colonne pour « Mon compte ». */
@media (min-width: 700px) {
  .auth-screen { align-items: center; }
  .auth-screen > * { width: 100%; max-width: 440px; }
  .auth-screen .logo { width: 74px; }
  #view-complete .brandlogo { align-self: center; }
  #view-account .acct-body { width: 100%; max-width: 440px; margin: 0 auto; }
  #view-account .chat-head { width: 100%; max-width: 440px; margin: 0 auto; }
}

/* Fenêtre de fusion de comptes (écran de complétion,
   correctif du 2026-10-14) */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 60; }
.modal-card { background: #171717; border: 1px solid #2c2c2c; border-radius: 16px; padding: 20px; max-width: 420px; width: 100%; }
.modal-card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: #fff; }
.modal-card p { color: #bdbdbd; font-size: 14px; margin: 0 0 16px; }
.modal-card .btn-go { width: 100%; margin-bottom: 10px; }
.modal-card .btn-ghost { width: 100%; }

/* ————— Accueil (design de la capture validée le 2026-10-14) —————
 * Fond soie noire, cartes services photo, sélection marketplace,
 * navigation basse à + central. Écran sombre, colonne centrée. */
#view-home, #view-orders { background: #000; color: #fff; height: 100dvh; position: relative; overflow: hidden; }
#view-home::before, #view-orders::before {
  content: ""; position: absolute; inset: 0;
  background: url('/app/assets/home-silk.jpg') center 22% / cover no-repeat;
  opacity: .88; pointer-events: none;
}
#view-home::after, #view-orders::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.12) 30%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.82));
  pointer-events: none;
}
.home-scroll { flex: 1; overflow-y: auto; position: relative; z-index: 1; -webkit-overflow-scrolling: touch; }
.home-inner { padding: calc(14px + var(--safe-t)) 18px 26px; max-width: 600px; margin: 0 auto; width: 100%; }
.home-head { display: flex; align-items: center; gap: 10px; }
.home-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(140deg, #3a3a3a, #171717);
  border: 2px solid var(--yellow); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 600; cursor: pointer; padding: 0;
}
.home-loc {
  display: flex; align-items: center; gap: 5px; background: none; border: none;
  color: #fff; font-size: 16.5px; font-weight: 600; cursor: pointer; padding: 6px 2px;
}
.home-loc .pin { font-size: 15px; }
.home-loc .chev { color: #cfc9b8; font-size: 12px; }
.home-chips { display: flex; gap: 8px; margin-top: 16px; }
.hchip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(16,16,16,.62); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: 999px; padding: 9px 15px;
  font-size: 14px; font-weight: 500; cursor: pointer; backdrop-filter: blur(4px);
}
.hchip .ck {
  width: 17px; height: 17px; border-radius: 50%; background: #35c759; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600;
}
.hchip.on { background: var(--yellow); border-color: var(--yellow); color: #111; font-weight: 600; }
#chip-open.on { background: rgba(16,16,16,.62); border-color: var(--yellow); color: #fff; box-shadow: inset 0 0 0 1px var(--yellow); }
.home-q { font-size: 27px; line-height: 1.28; font-weight: 600; font-style: italic; margin: 20px 0 18px; letter-spacing: -.2px; }
.home-svcs { display: flex; gap: 10px; }
.svc {
  flex: 1; position: relative; border: none; padding: 0; cursor: pointer;
  border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1.12;
  background: #171717; box-shadow: 0 10px 26px rgba(0,0,0,.45);
}
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.svc .lb {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 6px 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-align: center;
}
.svc .soon {
  position: absolute; top: 8px; right: 8px; background: var(--yellow); color: #111;
  font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 999px; font-style: normal;
}
.home-search {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  background: rgba(14,14,14,.72); border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 6px 6px 18px; backdrop-filter: blur(4px);
}
.home-search input {
  flex: 1; background: none; border: none; outline: none; color: #fff;
  font-size: 16px; min-width: 0;
}
.home-search input::placeholder { color: #b9b2a2; }
.home-search .go {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  background: var(--yellow); color: #111; font-size: 19px;
  display: flex; align-items: center; justify-content: center; font-weight: 600;
}
.home-ride {
  margin-top: 14px; background: var(--yellow); color: #111; border-radius: 14px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.home-ride b { font-weight: 600; }
.home-ride button { margin-left: auto; background: #111; color: #fff; border: none; border-radius: 999px; padding: 7px 14px; font-weight: 600; cursor: pointer; }
.home-div { display: flex; align-items: center; gap: 12px; margin: 26px 0 4px; color: #d8d2c2; font-size: 12.5px; letter-spacing: .05em; }
.home-div span { flex: 1; height: 1px; background: rgba(255,255,255,.16); }
.home-titlerow { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 12px; }
.home-titlerow h2 { font-size: 21px; font-weight: 600; margin: 0; }
#home-seeall { background: none; border: none; color: var(--yellow); font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; }
#home-seeall .arr { border: 1.5px solid var(--yellow); border-radius: 50%; width: 21px; height: 21px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.home-rail { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.home-rail::-webkit-scrollbar { display: none; }
.home-rail.all { flex-wrap: wrap; overflow-x: visible; }
.hcard {
  flex: 0 0 238px; background: rgba(16,16,16,.78); border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px; overflow: hidden; cursor: pointer; backdrop-filter: blur(4px);
}
.home-rail.all .hcard { flex: 1 1 160px; }
.hcard .hph { position: relative; aspect-ratio: 16 / 9.4; background: #232323; }
.hcard .hph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard .hini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 600; color: #8d8776; }
.hcard .hph img { z-index: 1; }
.hfav {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 33px; height: 33px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.94); color: #111;
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
}
.hfav.on { color: #e0245e; }
.hcard .hbd { padding: 11px 13px 13px; }
.hcard .hnm { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcard .hmeta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #d8d2c2; margin-top: 5px; }
.hdot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: #e07f13; }
.hdot.open { background: #35c759; }
.hdot.closed { background: #d64545; }
.hcard .hsub { font-size: 12.5px; color: #a79f8f; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-load, .home-empty { color: #cfc9b8; font-size: 14px; padding: 12px 2px; }
/* Navigation basse de l'accueil */
.tabbar {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: flex-end; gap: 2px;
  margin: 0 auto calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 576px;
  background: rgba(10,10,10,.88); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: 7px 8px; backdrop-filter: blur(8px);
}
.tabbar button {
  flex: 1; background: none; border: none; color: #a79f8f; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 500; padding: 7px 2px; border-radius: 999px;
}
.tabbar button .ic { font-size: 19px; line-height: 1; }
.tabbar button.on { background: var(--yellow); color: #111; font-weight: 600; }
.tabbar .fab {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: var(--yellow); color: #111; font-size: 26px; font-weight: 600;
  align-items: center; justify-content: center; margin-top: -16px;
  border: 3px solid #000; padding: 0; line-height: 1;
}
/* Mes commandes */
.orders-q { font-size: 25px; font-weight: 600; margin: 8px 0 20px; }
.orders-empty {
  background: rgba(14,14,14,.66); border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px; padding: 30px 22px; text-align: center; backdrop-filter: blur(4px);
}
.orders-empty .big { font-size: 42px; }
.orders-empty .t { font-size: 17px; font-weight: 600; margin: 12px 0 6px; }
.orders-empty .mut { color: #b9b2a2; font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.orders-empty .btn-go { width: 100%; }

/* ——— Coursiers : page de commande (dessin validé le
 * 2026-10-15). Carte + points déplaçables, adresses sur la
 * carte, formulaire, dock figé (paiement, modèles, infos,
 * Commander). ——— */
#view-courier { background: var(--bg); }
.cr-canvas { display: flex; flex-direction: column; height: 100dvh; }
.cr-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cr-head { display: flex; align-items: center; gap: 11px; padding: calc(12px + var(--safe-t)) 16px 4px; }
.cr-head .cr-x { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cr-titles { flex: 1; min-width: 0; }
.cr-titles h1 { font-size: 21px; font-weight: 600; margin: 0; letter-spacing: -.3px; }
.cr-titles p { margin: 1px 0 0; color: var(--grey); font-size: 13px; }
.cr-recenter { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; font-weight: 600; font-size: 13.5px; padding: 8px 14px; }
.cr-mapwrap { position: relative; margin-top: 8px; }
#cr-map { height: 318px; width: 100%; background: #e9e6da; z-index: 1; }
.cr-addrpanel { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; background: #fff; border-radius: 16px; box-shadow: 0 6px 20px rgba(20,18,10,.16); padding: 4px 12px; }
.cr-aprow { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.cr-aprow input { flex: 1; min-width: 0; border: none; outline: none; font-size: 16px; font-weight: 500; background: transparent; color: var(--ink); padding: 4px 0; }
.cr-aprow input::placeholder { color: #a09a8b; font-weight: 400; }
.cr-dotA { flex: 0 0 auto; width: 11px; height: 11px; border-radius: 50%; background: var(--yellow); border: 2.5px solid var(--ink); }
.cr-tri { flex: 0 0 auto; display: flex; }
.cr-clr { flex: 0 0 auto; width: 26px; height: 26px; border: none; border-radius: 50%; background: #f0eee7; display: flex; align-items: center; justify-content: center; color: var(--grey); }
.cr-apdiv { height: 1px; background: var(--line); }
.cr-sugg { position: absolute; top: calc(100% + 6px); left: -12px; right: -12px; background: #fff; border-radius: 14px; box-shadow: 0 10px 26px rgba(20,18,10,.18); overflow: hidden; display: none; z-index: 600; }
.cr-sugg.on { display: block; }
.cr-sugg button { display: flex; width: 100%; gap: 10px; align-items: baseline; text-align: left; border: none; background: #fff; padding: 11px 14px; font-size: 14.5px; color: var(--ink); border-bottom: 1px solid #f1efe8; }
.cr-sugg button:last-child { border-bottom: none; }
.cr-sugg .d { margin-left: auto; color: var(--grey); font-size: 12.5px; white-space: nowrap; }
.cr-locate { position: absolute; right: 12px; bottom: 12px; z-index: 500; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(20,18,10,.14); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cr-pin { background: none; border: none; }
.cr-maphint { display: flex; gap: 7px; align-items: center; margin: 9px 18px 0; color: var(--grey); font-size: 12.5px; }
.cr-form { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 17px; }
.cr-gps { display: flex; align-items: center; gap: 8px; border: none; background: none; font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 2px 4px; text-align: left; }
.cr-gps .g { color: var(--grey); font-weight: 400; }
.cr-flabel { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--grey); margin: 0 0 7px 2px; }
.cr-field { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 13px; }
.cr-field span { display: block; font-size: 12.5px; color: var(--grey); }
.cr-field input { width: 100%; border: none; outline: none; font-size: 16px; font-weight: 500; background: transparent; color: var(--ink); padding: 2px 0 0; }
.cr-sizes { display: flex; gap: 8px; margin-top: 9px; }
.cr-sizes button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 0; font-size: 14.5px; font-weight: 500; }
.cr-sizes button.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.cr-role { display: flex; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--grey); margin: 0 2px 5px; }
.cr-role .cr-acts { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cr-moi { font-size: 12.5px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px; }
.cr-book { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cr-contact { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 12px; margin-bottom: 10px; }
.cr-contact .cr-nm { flex: 1; min-width: 0; border: none; outline: none; font-size: 16px; font-weight: 500; background: transparent; color: var(--ink); }
.cr-contact .cr-ph { flex: 0 0 auto; border-left: 1px solid var(--line); padding-left: 10px; }
.cr-instr { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.cr-instr textarea { flex: 1; border: none; outline: none; resize: none; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.cr-mic { flex: 0 0 auto; width: 44px; height: 44px; border: none; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cr-mic.rec { background: #d92d20; color: #fff; }
.cr-vnote { margin-top: 9px; display: flex; align-items: center; gap: 11px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 14px 8px 9px; }
.cr-vplay { width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.cr-vdur { font-size: 13px; font-weight: 600; }
.cr-vlbl { flex: 1; font-size: 12.5px; color: #cfcbc0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-vdel { border: none; background: none; color: #cfcbc0; display: flex; padding: 4px; }
.cr-dock { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(20,18,10,.06); padding: 12px 16px calc(12px + var(--safe-b)); }
.cr-dock .cr-flabel { margin-bottom: 6px; }
.cr-pays { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
.cr-pays::-webkit-scrollbar { display: none; }
.cr-pays button { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.cr-pays button.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.cr-modhead { display: flex; align-items: baseline; margin-top: 11px; }
.cr-modhead b { font-size: 15.5px; font-weight: 600; }
.cr-modhead span { margin-left: auto; color: var(--grey); font-size: 12.5px; }
.cr-models { display: flex; gap: 9px; overflow-x: auto; flex-wrap: nowrap; margin-top: 8px; padding-bottom: 2px; scrollbar-width: none; }
.cr-models::-webkit-scrollbar { display: none; }
.cr-model { flex: 0 0 96px; border: 1.5px solid var(--line); border-radius: 14px; padding: 6px; background: #fff; text-align: left; }
.cr-model.on { border-color: var(--yellow); box-shadow: 0 0 0 1.5px var(--yellow); }
.cr-model img { width: 100%; height: 38px; object-fit: contain; border-radius: 9px; background: #f7f5ee; display: block; }
.cr-model b { display: block; font-size: 12.5px; font-weight: 600; margin-top: 5px; line-height: 1.15; min-height: 29px; color: var(--ink); }
.cr-selinfo { font-size: 12.5px; color: var(--grey); margin: 9px 0 0; }
.cr-selinfo b { color: var(--ink); font-weight: 600; }
.cr-datarow { display: flex; gap: 10px; margin-top: 9px; }
.cr-datarow .d { flex: 1; }
.cr-datarow .d.right { text-align: right; }
.cr-datarow label { display: block; font-size: 11.5px; color: var(--grey); margin-bottom: 1px; }
.cr-datarow b { font-size: 15.5px; font-weight: 600; }
.cr-cta { width: 100%; margin-top: 12px; border: none; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 600; padding: 15px 0; }
.cr-cta:disabled { opacity: .45; }
#ride-cancel { margin-left: auto; border-color: #5a2b28; color: #ffb4ab; }
#cancel-sheet { position: fixed; inset: 0; z-index: 900; background: rgba(8,8,8,.55); display: flex; align-items: flex-end; justify-content: center; }
#cancel-sheet .cs-card { background: #fff; color: var(--ink); width: 100%; max-width: 480px; border-radius: 20px 20px 0 0; padding: 20px 18px calc(16px + var(--safe-b)); }
#cancel-sheet h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
#cancel-sheet #cs-list button { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 13px 14px; font-size: 15.5px; margin-bottom: 8px; }
#cancel-sheet #cs-close { display: block; width: 100%; border: none; background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 0; font-size: 15.5px; font-weight: 600; margin-top: 6px; }

/* ===== Infos utiles (vue) + carte de couverture (composant) =====
 * Dessins validés par Elhadji le 2026-10-15. Mêmes données que le bot
 * et le serveur (lib/useful.js) — la vue ne fait que les afficher. */
.home-useful { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; margin: 2px 0 12px; color: var(--ink); }
.home-useful .hu-tx { flex: 1; min-width: 0; }
.home-useful .hu-tx b { display: block; font-size: 15.5px; font-weight: 600; }
.home-useful .hu-tx span { display: block; font-size: 12.5px; color: var(--grey); margin-top: 1px; }
.home-useful .hu-arr { flex: 0 0 auto; font-size: 18px; color: var(--grey); }
/* Les vues Infos utiles ont la hauteur de l'écran, comme les
 * autres vues de l'application : c'est ce qui permet au contenu de
 * défiler DANS la vue et aux barres de rester collées en haut. */
#view-useful, #view-ufsearch, #view-ufplace { height: 100dvh; background: var(--bg); }
.uf-canvas { display: flex; flex-direction: column; height: 100%; }
.uf-scroll { flex: 1; overflow-y: auto; padding: 6px 16px calc(18px + var(--safe-b)); }
.uf-sec { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--grey); margin: 16px 0 8px; }
.uf-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 2px 14px; }
.uf-sosrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.uf-sosrow:last-child { border-bottom: 0; }
.uf-sosrow .who { flex: 1; min-width: 0; }
.uf-sosrow .who b { display: block; font-size: 15px; font-weight: 600; }
.uf-sosrow .who span { font-size: 12.5px; color: var(--grey); }
.uf-sosrow .num { font-size: 16px; font-weight: 600; white-space: nowrap; }
.uf-call { flex: 0 0 auto; background: var(--yellow); color: #000; font-weight: 600; font-size: 13.5px; border-radius: 999px; padding: 8px 14px; text-decoration: none; }
.uf-search { display: block; margin-top: 14px; }
.uf-search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 12px 16px; font-size: 16px; color: var(--ink); }
.uf-mapbtn { width: 100%; margin-top: 10px; background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 12px 0; font-size: 15px; font-weight: 600; }
.uf-shareloc { width: 100%; margin-top: 10px; background: var(--yellow); color: var(--ink); border: none; border-radius: 999px; padding: 12px 0; font-size: 15px; font-weight: 600; }
.uf-locnote { font-size: 12.5px; color: var(--grey); margin: 6px 2px 0; }
.uf-place .acts .rep { color: var(--grey); font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 2px; }
/* Pilules de catégories (2026-10-15) : rangée horizontale défilante,
 * icône seule ; la pilule active s'élargit et affiche le nom. */
.uf-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.uf-pills::-webkit-scrollbar { display: none; }
.uf-pill { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.uf-pill svg { width: 22px; height: 22px; flex: 0 0 auto; }
.uf-pill .nm { display: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.uf-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; gap: 8px; padding: 0 16px 0 13px; }
.uf-pill.on .nm { display: inline; }
/* Parcours à deux niveaux confirmé par Elhadji le 2026-10-16 : les
 * deux barres (catégories à icônes, sous-catégories en texte) restent
 * collées en haut pendant que tout le reste défile dessous. */
.uf-sticky { position: sticky; top: 0; z-index: 6; background: var(--bg); margin: 0 -16px; padding: 4px 16px 0; }
.uf-sticky .uf-pills { padding-bottom: 6px; }
/* Sous-catégories : texte seul, l'actuelle marquée par le trait en
 * dessous (le surligneur, comme l'onglet actif de l'accueil). */
.uf-subs { display: flex; gap: 20px; overflow-x: auto; padding: 2px 2px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-bottom: 1px solid var(--line); }
.uf-subs::-webkit-scrollbar { display: none; }
.uf-sub { flex: 0 0 auto; position: relative; background: none; border: none; padding: 9px 1px 11px; font-size: 15px; font-weight: 500; color: var(--grey); cursor: pointer; white-space: nowrap; }
.uf-sub.on { color: var(--ink); font-weight: 600; }
.uf-sub.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 2px; background: var(--yellow); }
.uf-sec-wrap { scroll-margin-top: 118px; }
.uf-sec2 { font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); margin: 20px 0 2px; }
.uf-sec2 span { color: var(--grey); font-weight: 500; letter-spacing: 0; text-transform: none; }
.uf-more { width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 10px 0; font-size: 14px; font-weight: 600; cursor: pointer; }
.uf-searchbtn { display: block; width: 100%; text-align: left; margin-top: 14px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 12px 16px; font-size: 16px; color: var(--grey); cursor: pointer; }
/* Recherche plein écran : résultats par catégorie, lignes touchables. */
.ufs-row { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; cursor: pointer; }
.ufs-row b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.ufs-row span { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
/* Fiche d'un lieu (ouverte depuis la recherche). */
.ufp-name { font-size: 20px; font-weight: 600; margin: 10px 0 2px; }
.ufp-meta { font-size: 14px; color: var(--grey); line-height: 1.5; }
.ufp-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ufp-acts a, .ufp-acts button { display: block; text-align: center; border-radius: 999px; padding: 13px 0; font-size: 15px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; }
.ufp-acts .call { background: var(--yellow); color: #000; }
.ufp-acts .go { background: var(--ink); color: #fff; }
.ufp-acts .map { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ufp-acts .rep { background: none; color: var(--grey); font-weight: 500; }
.uf-list { display: flex; flex-direction: column; gap: 10px; }
.uf-place { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; }
.uf-place .top { display: flex; align-items: flex-start; gap: 10px; }
.uf-place .top b { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 600; }
.uf-place .dist { flex: 0 0 auto; font-size: 13.5px; font-weight: 600; }
.uf-place .meta { font-size: 13px; color: var(--grey); margin-top: 2px; }
.uf-place .acts { display: flex; gap: 8px; margin-top: 10px; }
.uf-place .acts a { flex: 1; text-align: center; border-radius: 999px; padding: 10px 0; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.uf-place .acts .call { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.uf-place .acts .go { background: var(--ink); color: #fff; }
.uf-note { background: #f7f2df; border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: #5c5540; margin-top: 16px; }
#view-cmap { position: relative; }
.cm-map { position: absolute; inset: 0; }
.cm-top { position: absolute; top: 0; left: 0; right: 0; z-index: 600; padding: calc(10px + var(--safe-t)) 12px 0; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.cm-top > * { pointer-events: auto; }
.cm-head { display: flex; align-items: center; gap: 10px; }
.cm-head .cr-x { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); box-shadow: 0 2px 8px rgba(20,18,10,.12); }
.cm-title { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px 13px; box-shadow: 0 2px 8px rgba(20,18,10,.10); }
.cm-title b { display: block; font-size: 16px; font-weight: 600; }
.cm-title span { font-size: 12.5px; color: var(--grey); }
.cm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.cm-chip { flex: 0 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; font-weight: 500; color: var(--ink); box-shadow: 0 2px 8px rgba(20,18,10,.08); }
.cm-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.cm-pos { position: absolute; right: 14px; bottom: 250px; z-index: 600; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(20,18,10,.18); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.cm-pin { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1.5px solid #d8d4e2; box-shadow: 0 3px 10px rgba(20,18,10,.25); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--ink); position: relative; }
.cm-pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px; border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; }
.cm-pin.sel { border: 2.5px solid var(--ink); box-shadow: 0 0 0 6px rgba(255,206,0,.45), 0 6px 16px rgba(20,18,10,.30); }
.cm-sheet { position: absolute; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 600; background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(20,18,10,.22); padding: 15px 16px; }
.cm-row { display: flex; align-items: center; gap: 12px; }
.cm-badge { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; overflow: hidden; }
.cm-badge img { width: 100%; height: 100%; object-fit: cover; }
.cm-who { flex: 1; min-width: 0; }
.cm-who b { display: block; font-size: 16.5px; font-weight: 600; }
.cm-who span { font-size: 13px; color: var(--grey); }
.cm-status { flex: 0 0 auto; font-size: 13px; font-weight: 600; }
.cm-actions { display: flex; gap: 8px; margin-top: 12px; }
.cm-actions a, .cm-actions button { flex: 1; text-align: center; border-radius: 999px; padding: 12px 0; font-size: 15px; font-weight: 600; text-decoration: none; border: none; }
.cm-actions .primary { background: var(--ink); color: #fff; }
.cm-actions .call { background: var(--yellow); color: #000; }
.cm-actions .ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.cm-hint { margin: 9px 0 0; text-align: center; font-size: 12.5px; color: var(--grey); }
