/* Ortenor — espace client. Lisible en plein soleil, utilisable d'une main, gants compris. */
:root {
  --paper: #ffffff; --ink: #111318; --muted: #5f6672; --line: #d9dee4; --field: #f3f5f7;
  --action: #ffc72c; --action-ink: #111318; --alert: #c6362b; --ok: #1f8a4c; --info: #1c5fa8;
  --radius: 10px; --tap: 56px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.4; }
body { padding-bottom: calc(var(--tap) + env(safe-area-inset-bottom) + 12px); }
body.plain { padding-bottom: 24px; }
h1 { font-size: 26px; line-height: 1.15; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 24px 0 8px; font-weight: 700; }
/* Point C (25/09/2026, voir docs/DECISIONS-activation.md) : titre de l'écran final d'activation,
   plus petit qu'un h1 standard mais toujours plus gros que le h2 en dessous (19px). */
h1.active-headline { font-size: 22px; }
p { margin: 8px 0; }
a { color: var(--info); }
.muted { color: var(--muted); font-size: 15px; }
.big { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 4px 0 10px; }
.quote { border-left: 4px solid var(--line); padding: 6px 12px; margin: 8px 0 14px; color: var(--ink); }
.sheet, .screen { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
header.top { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 5; }
body.plain header.top { position: static; } /* LOT 113 : jamais au milieu d'une capture pleine page */
header.top .screen { padding: 12px 16px; }
header.top h1 { margin: 0; font-size: 22px; }
.wordmark { font-weight: 800; letter-spacing: 0.02em; font-size: 20px; }
.wordmark b { background: var(--action); padding: 0 6px; border-radius: 4px; }
/* Retouches /e/ (21/09/2026) : flèche de retour en haut à droite, sur la même ligne que "Ortenor"
   (remplace l'ancien back-link par écran, en haut à gauche de chaque section — voir
   routes/activation.js shell()/signupScript). */
.header-row { display: flex; align-items: center; justify-content: space-between; }

/* Boutons : hauteur 56 px, plein largeur par défaut */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: var(--tap); padding: 10px 16px;
  border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer; width: 100%; }
/* Chantier "supprimer l'écran d'attente RIB" (22/09/2026) : squelette de l'écran suivant affiché
   immédiatement après "Activer mon essai", pendant que la finalisation continue en tâche de fond. */
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.skeleton-field, .skeleton-btn { background: var(--field); border-radius: var(--radius); animation: skeleton-pulse 1.2s ease-in-out infinite; }
.skeleton-field { height: var(--tap); margin: 16px 0 10px; }
.skeleton-btn { height: var(--tap); margin-top: 20px; max-width: 220px; }
/* LOT 27 (28/09/2026) : spinner du bouton "Écouter votre répondeur" pendant la préparation --
   currentColor pour rester lisible sur .btn.quiet comme sur .btn.primary sans variante par thème. */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }
/* Chantier 4 (22/09/2026) : barre de progression pendant l'import RIB par photo/PDF. */
.rib-progress { height: 6px; border-radius: 3px; background: var(--field); margin-top: 8px; overflow: hidden; }
.rib-progress-bar { height: 100%; width: 0; background: var(--action); border-radius: 3px; transition: width 0.15s linear; }


.btn.primary { background: var(--action); border-color: var(--action); color: var(--action-ink); }
.btn.small { min-height: 44px; width: auto; font-size: 15px; padding: 6px 12px; }
.btn.quiet { border-color: var(--line); font-weight: 500; }
.btn.danger { border-color: var(--alert); color: var(--alert); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
form.eta { display: flex; flex-wrap: wrap; gap: 8px; }
form.eta .btn { width: auto; flex: 1 1 30%; }
form.eta p { flex-basis: 100%; margin: 4px 0; }
.done { flex-basis: 100%; color: var(--ok); font-weight: 600; }
/* Chantier "essai activable sans RDV" : panneaux de confirmation intégrés (jamais confirm()/
   prompt(), peu fiables en PWA installée sur l'écran d'accueil iOS) — "Intervention terminée" /
   "Gagné", onglet Appels. */
.quiet-panel { background: var(--field); border-radius: var(--radius); padding: 10px 12px; margin-top: 10px; }
.quiet-panel label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); flex-basis: 100%; }

/* Page de validation /v/:token */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions .btn { width: auto; flex: 1 1 40%; }
form.complete { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
form.complete label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
form.complete input, form.complete select { min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }

/* Listes */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.list > li.row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px 12px; }
.list > li.row .eta, .list > li.row .done { grid-column: 1 / -1; }
.when { font-weight: 700; font-variant-numeric: tabular-nums; }
/* LOT 69 : onglet Agenda -- jour en petit au-dessus de l'heure, dans la colonne de gauche (72 px), sans déborder sur le titre. */
.when { display: flex; flex-direction: column; min-width: 0; }
.when-day { font-size: 11px; font-weight: 500; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdv-main { min-width: 0; overflow-wrap: anywhere; }
.rdv-address { color: var(--muted); min-height: 1.4em; border-radius: 4px; outline: none; -webkit-user-select: text; user-select: text; }
.rdv-address:focus { color: inherit; box-shadow: 0 0 0 2px var(--info); }
.rdv-address.empty:not(:focus)::before { content: attr(data-placeholder); color: var(--muted); opacity: 0.7; }
.saved-flag { display: block; font-size: 12px; color: var(--ok); min-height: 0; }
.rdv-phone { margin: 16px 0 0; }
.tel-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--info); text-decoration: underline; }
.go-slot { margin: 8px 0 0; }
.go-slot .btn { display: flex; width: 100%; min-height: 48px; }
.phone { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.flag { display: inline-block; margin: 6px 0; padding: 4px 8px; border-radius: 6px; background: #fbe9e6; color: var(--alert); font-weight: 600; font-size: 15px; }
/* LOT 43 (29/09/2026) : onglet Appels -- une carte par appelant, une question selon l'étape. */
.lead-card .meta { flex-wrap: wrap; position: relative; }
.lead-card .meta .phone { flex: 1 1 auto; }
.lead-card .quote.vm audio { margin: 4px 0 8px; }
.lead-card .who { display: grid; gap: 2px; flex: 1 1 auto; }
.lead-card .phone.name { font-size: 22px; }
.lead-card .num { font-size: 14px; font-variant-numeric: tabular-nums; }
.lead-card .card-sub { margin: 4px 0 6px; }
.lead-question { margin-top: 12px; display: grid; gap: 8px; }
.lead-question .q { margin: 0; font-size: 19px; font-weight: 700; }
.lead-question .row-actions { margin-top: 0; }
.btn.big { min-height: 64px; font-size: 22px; }
.btn.small { min-height: 40px; font-size: 15px; width: auto; justify-self: start; }
.btn.quiet { border-color: var(--line); font-weight: 500; }
.card-menu { position: relative; margin-left: auto; }
.card-menu summary { list-style: none; cursor: pointer; padding: 0 10px; font-size: 24px; line-height: 1; color: var(--muted); min-height: 32px; }
.card-menu summary::-webkit-details-marker { display: none; }
.card-menu-items { position: absolute; right: 0; top: 100%; z-index: 5; min-width: 240px; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 4px; display: grid; }
.card-menu-items button { text-align: left; background: none; border: 0; padding: 12px; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; border-radius: 6px; }
.card-menu-items button:hover { background: var(--field); }
.msg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.msg-menu summary { min-height: 32px; }
.toast.undo button { background: none; border: 0; color: inherit; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0 0 0 4px; }
.done-cards { margin-top: 20px; }
.done-cards > summary { cursor: pointer; font-weight: 700; padding: 10px 0; color: var(--muted); }
.status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.status button { min-height: 40px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.status button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.status button[data-s="signe"][aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.status button[data-s="perdu"][aria-pressed="true"] { background: var(--muted); border-color: var(--muted); }
.chips { display: flex; gap: 8px; margin: 12px 0; }
.chips button { min-height: 40px; padding: 4px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; font-size: 15px; }
.chips button[aria-pressed="true"] { border-color: var(--ink); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.stats div { background: var(--field); border-radius: var(--radius); padding: 10px 12px; }
.stats strong { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 14px; }
.empty { padding: 32px 0; color: var(--muted); }

/* Formulaires */
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, select, textarea { width: 100%; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--field); font: inherit; font-size: 17px; color: var(--ink); }
textarea { min-height: 80px; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch input { width: 28px; min-height: 28px; height: 28px; accent-color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tap) + env(safe-area-inset-bottom) + 20px); transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; font-weight: 600; max-width: 90vw; z-index: 20; }
.toast.error { background: var(--alert); }

/* Réglages : sections repliables (chantier "réglages repliables", 24/09/2026) -- <details>/
   <summary> natifs (repliés par défaut via l'absence de l'attribut "open"), même famille de
   séparateur 1px (var(--line)) que .switch/.list ci-dessus. */
.settings-section { border-bottom: 1px solid var(--line); }
.settings-section summary { cursor: pointer; list-style: none; position: relative; display: flex; align-items: center;
  min-height: var(--tap); padding: 10px 30px 10px 0; font-size: 19px; font-weight: 700; }
.settings-section summary::-webkit-details-marker { display: none; }
.settings-section summary::after { content: "▸"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px; transition: transform 0.15s; }
.settings-section[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.settings-section .settings-body { padding-bottom: 18px; }
/* Mode vacances : case "Activé" dans le titre lui-même, visible et actionnable section repliée. */
.vac-toggle { display: flex; align-items: center; gap: 8px; margin: 0 12px 0 auto; font-size: 15px; font-weight: 500; }
.vac-toggle input { width: 26px; min-height: 26px; height: 26px; margin: 0; accent-color: var(--ink); }
/* Séparateur au-dessus d'Agenda -- .or-sep (déjà utilisé côté parcours d'activation) affiche un mot
   flanqué de deux traits, pas adapté à un simple séparateur nu : règle dédiée, même var(--line). */
.settings-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0 0; }

/* Retouches parcours activation (20/09/2026) — bloc "Votre offre", partagé entre /offre et /e/:token
   (voir src/offerBlock.js), et lien d'aide (/e/:token, /s/:token) : règles communes ici pour que
   les deux pages restent visuellement identiques sans dupliquer de style au cas par cas. */
.offer { background: var(--field); border-radius: var(--radius); padding: 16px; margin: 38px 0; }
.offer h2 { font-size: 24px; margin: 0 0 8px; }
.offer-hero { text-align: center; }
.offer-hero p { margin: 4px 0; }
/* Point A (23/09/2026) : style commun au sous-titre (hors carré offre) et à "Payez à la fin..."
   (dans le carré) — même taille/graisse/couleur que le texte courant, explicite plutôt qu'hérité. */
.offer-lead { font-size: 17px; font-weight: 400; color: var(--ink); }
.price-hero { font-size: 44px; font-weight: 800; line-height: 1; margin: 8px 0; }
.or-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 14px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.helpline { margin-top: 28px; text-align: center; }
/* Point 10 (chantier démo bidirectionnelle, 20/09/2026), retouché le 21/09/2026 : flèche seule
   (jamais le mot "Retour"), zone de clic >= 48x48px — un seul bouton partagé par tout le parcours
   (voir shell()), en haut à droite, tiré par une marge négative qui compense le padding du .sheet
   parent (voir .header-row ci-dessus). */
.back-link { display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; min-height: 48px; font-size: 28px; line-height: 1;
  color: var(--muted); font-weight: 600; text-decoration: none; margin: -8px -8px 0 0; }
.helpline a { color: var(--info); font-weight: 600; text-decoration: underline; }
/* Point B (23/09/2026, voir docs/DECISIONS-activation.md) : #6b7280 plutôt que --muted (#5f6672)
   -- gris plus clair, contraste encore AA sur fond blanc (4,83:1, seuil 4,5:1 pour un texte de
   cette taille). */
/* Point C (23/09/2026) : cadre de hauteur fixe (~3 lignes visibles) avec défilement interne pour
   le texte du mandat SEPA (souvent plus long que 3 lignes) -- même style visuel, juste contenu
   dans un cadre discret pour signaler le défilement. */
/* Point A (23/09/2026) : 52px (~3 lignes) -> 83px (~5 lignes, 11px/1.35 = 14,85px/ligne + 8px de
   padding vertical). Retouche (24/09/2026) : 83px -> 67px (~4 lignes, 4*14,85 + 8 ≈ 67,4px), la
   barre de défilement et le dégradé restent inchangés (indépendants de max-height ci-dessous).
   Retouche (26/09/2026, Lot 12 point 5) : 67px -> 53px (~3 lignes, 3*14,85 + 8 ≈ 52,55px, arrondi
   à 53px) -- retour à la même valeur qu'au 23/09/2026, demandée à nouveau explicitement.
   `overflow-y: scroll` (jamais `auto`) pour que la barre garde sa place même si un texte plus court
   tenait un jour dans le cadre -- ne dépend jamais de la longueur du texte du mandat.
   `::-webkit-scrollbar*` force Chrome/Safari (desktop et iOS) à sortir du mode overlay (barre
   visible seulement pendant le défilement, jamais par défaut sur iPhone) pour une barre classique
   toujours visible ; `scrollbar-width`/`scrollbar-color` fait l'équivalent sur Firefox. `::after` en
   `position: sticky; bottom: 0` (dernier "enfant" du texte, généré) plutôt qu'un conteneur
   supplémentaire : reste collé au bas du cadre pendant le défilement interne (le cadre lui-même est
   le conteneur défilant), dégradé vers la couleur de fond pour signaler la suite du texte --
   `pointer-events: none` : ne gêne jamais le défilement/la sélection du texte en dessous. */
.mandate-text { color: #6b7280; font-size: 11px; font-weight: 400; line-height: 1.35; margin: 6px 0;
  max-height: 53px; overflow-y: scroll; -webkit-overflow-scrolling: touch; position: relative;
  padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--field);
  scrollbar-width: thin; scrollbar-color: #9aa1ac var(--field); }
.mandate-text::-webkit-scrollbar { width: 6px; }
.mandate-text::-webkit-scrollbar-track { background: var(--field); }
.mandate-text::-webkit-scrollbar-thumb { background: #9aa1ac; border-radius: 6px; }
.mandate-text::after { content: ''; position: sticky; display: block; bottom: -4px; left: 0;
  margin-top: -20px; height: 20px; width: 100%; pointer-events: none;
  background: linear-gradient(to bottom, rgba(243,245,247,0) 0%, var(--field) 85%); }
.company-summary { background: var(--field); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.company-summary p { margin: 0; }

/* Barre d'onglets */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom); z-index: 10; }
nav.tabs a { flex: 1; min-height: var(--tap); display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
nav.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 4px 0 var(--action); }
.hidden { display: none !important; }
/* LOT 28 (28/09/2026) : texte gardé pour les lecteurs d'écran mais jamais affiché visuellement --
   contrairement à .hidden (display:none), reste lisible par un lecteur d'écran. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(0.98); } }

/* Bannière « ajouter à l'écran d'accueil » (Safari iOS, hors mode standalone) */
#a2hsBanner { position: sticky; top: 0; z-index: 15; background: var(--action); color: var(--action-ink);
  padding: 10px 16px; display: flex; align-items: center; gap: 10px; font-size: 15px; }
#a2hsBanner .arrow { font-size: 20px; animation: a2hsBounce 1.2s ease-in-out infinite; flex-shrink: 0; }
#a2hsBanner .txt { flex: 1; line-height: 1.3; }
#a2hsBanner .txt b { display: block; }
#a2hsBanner button.close { background: none; border: none; color: var(--action-ink); font-size: 20px;
  line-height: 1; padding: 4px 6px; cursor: pointer; flex-shrink: 0; }
@keyframes a2hsBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
#a2hsBanner .a2hsIcon { vertical-align: -3px; color: var(--action-ink); flex-shrink: 0; }

/* Lot 12, points 9/10 (26/09/2026, voir docs/DECISIONS-activation.md) : bandeau "Finalisez votre
   configuration" et ligne d'info SMS automatique, en tête de l'accueil (onglet Appels). */
.config-banner { background: var(--field); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; margin: 0 0 10px; font-weight: 600; }
#missedCallInfo { position: relative; padding-right: 30px; margin: 0 0 10px; }
#missedCallInfo button.close { position: absolute; top: -4px; right: 0; background: none; border: none;
  color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }

/* Bloc "Votre essai comprend" / rappel des automatisations restantes (chantier offre, 21/09/2026) */
.offer-includes { margin: 14px 0; }
.offer-includes h2 { font-size: 24px; margin: 0 0 8px; } /* point A (23/09/2026) : meme taille/graisse que ".offer h2" ("Votre offre") */
.offer-blank { height: 24px; } /* LOT 36 : ligne vide avant le titre « FAQ » */
.list.compact > li { border-bottom: none; padding: 4px 0 4px 18px; position: relative; }
.list.compact > li::before { content: '•'; position: absolute; left: 2px; color: var(--muted); }
.small { font-size: 13px; }
/* Chantier "nouvelle page 1 de /e/" (22/09/2026) : accroche, carré offre restructuré (plus de prix
   isolé en gros), accordéons "Votre essai comprend". */
.offer-price { margin-top: 14px; }
.offer-stop { margin-top: 14px; }
.acc-list { border-top: 1px solid var(--line); margin-top: 10px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  min-height: var(--tap); padding: 12px 2px; background: none; border: none; text-align: left;
  font: inherit; color: var(--ink); cursor: pointer; }
.acc-title { flex: 1; font-size: 16px; line-height: 1.3; }
.acc-title b { font-weight: 700; }
.acc-chev { flex-shrink: 0; font-size: 22px; color: var(--muted); transition: transform 0.15s ease; }
.acc-head[aria-expanded="true"] .acc-chev { transform: rotate(90deg); }
.acc-body p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
/* Point A (23/09/2026) : demi-ligne d'espace en fin de bloc déplié (moitié de l'ancienne ligne
   vide entière, ~33px de <p>&nbsp;</p> -> ~16px). */
.acc-half-space { height: 16px; }
.badge-ok { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: #e3f3e8; color: var(--ok); font-size: 12px; font-weight: 700; vertical-align: middle; }
/* Point B (23/09/2026, voir docs/DECISIONS-activation.md) : ligne fermée "RIB lu : ..." après un
   import réussi (clé IBAN et clé RIB bonnes). */
.rib-ok { color: var(--ok); font-weight: 600; }
.acc-note { margin-top: 4px; }
.acc-note-toggle { background: none; border: none; padding: 0; font: inherit; color: var(--muted);
  font-size: 14px; text-decoration: underline; cursor: pointer; text-align: left; }

/* Écran RIB (retouches 22/09/2026) : espace entre "Besoin d'aide ? Appelez Nicolas" et le texte du
   mandat — voir routes/activation.js shell()/afterHelp. Style du champ IBAN (police, taille) :
   règle unique dans routes/activation.js shell(), voir #iban dans le <style> inline (appliquée à
   tous les écrans) — plus de doublon ici (Lot 14 groupe B, 26/09/2026). */
.mandate-text { margin-top: 20px; }
/* Chantier "codes de renvoi" (22/09/2026) : case "Composé" par code, avertissement Wi-Fi, repli
   "Copier le code" sur iOS si le tel: vide est refusé. */
.code-row { margin: 18px 0; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.code-check { padding: 6px 0; border-bottom: none; }
.wifi-warning { background: #fff4e0; border-radius: var(--radius); padding: 10px 12px; font-weight: 600;
  color: #7a4a00; margin: 10px 0; }
.dialer-fallback { color: var(--alert); }

/* LOT 54 : pages ouvertes depuis un lien SMS -- meme en-tete/onglets que l'espace (src/spaceNav.js). */
body.with-nav main.sheet { padding-bottom: 96px; }
body.with-nav header.top { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.lead-card.focus { background: #fff8d6; box-shadow: 0 0 0 3px #ffe38a; border-radius: 8px; transition: background .4s; }

/* LOT 59 : bandeau « Nouveau téléphone » -- croix identique et au même endroit que la ligne « Envoi d'un SMS automatique… ». */
#newDeviceBanner { position: relative; padding: 10px 30px 10px 12px; margin: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--field); font-size: 15px; line-height: 1.4; }
#newDeviceBanner button.close { position: absolute; top: 2px; right: 2px; background: none; border: none;
  color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; cursor: pointer; }
#newDeviceBanner .a2hsIcon, #installBody .a2hsIcon { vertical-align: -3px; }

/* LOT 70 : lien discret « Déjà rappelé » sous « Appeler » (zone de clic >= 44 px). */
.already-called { margin: 4px 0 0; }
.already-called a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--muted); text-decoration: underline; }

/* LOT 72 : étiquette « non confirmé » d'une carte sortie toute seule vers « Terminés ». */
.quiet-flag { background: var(--field); color: var(--muted); }
.reopen { margin: 8px 0 0; }

/* LOT 78 : retour discret de l'enregistrement automatique des Réglages. */
.field-flag { display: block; min-height: 0; font-size: 13px; margin: 2px 0 0; }
.field-flag[data-kind="ok"] { color: var(--ok); }
.field-flag[data-kind="warn"] { color: var(--muted); }
.field-flag[data-kind="err"] { color: var(--alert); font-weight: 600; }

/* LOT 120 : journal des appels -- badge gris, filtre, numero cliquable */
.badge-gris { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eceef2; color: #4b5563; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lead-card[data-state="refuse"] .badge-gris { background: #e5e7eb; color: #374151; }
.filters { display: flex; gap: 8px; margin: 0 0 12px; }
.filters .btn { flex: 1 1 0; }
a.phone-link { color: inherit; text-decoration: none; flex: 1 1 auto; }
.lead-card .meta .origin::before { content: "· "; }
