/* =========================================================
   Ridearound — affichage dense (chargé en dernier), sur le modèle de GolfTrack (epure.css) :
   texte 12–13 px, libellés 9–10 px, chiffres clés 15–18 px, boutons 30–40 px.
   La recherche tient sur un écran de téléphone sans défiler.
   Les champs de saisie restent à 16 px (sinon l'iPhone zoome).
   ========================================================= */
:root { --tabs-h: 50px; }
body { font-size: 12.5px; line-height: 1.4; }
.ico { width: 16px; height: 16px; }
.small { font-size: 11px; }
.h2 { font-size: 15px; }

/* ---------- Barres ---------- */
.tabs button { font-size: 9.5px; font-weight: 500; }
.tabs button .ico { width: 19px; height: 19px; stroke-width: 1.7; }
.app-brand { height: 34px; padding: 0 10px 0 8px; border-radius: 10px; gap: 5px; }
.app-brand img { width: 15px; }
.app-brand .wordmark { font-size: 15px; }
.fab { width: 34px; height: 34px; border-radius: 10px; }
.fab .ico { width: 17px; height: 17px; }
.lang-btn { height: 34px; padding: 0 7px 0 8px; border-radius: 10px; font-size: 11px; }
.lang-btn svg { width: 14px; height: 14px; }
.lang-wrap { right: 50px; }
body:not([data-tab="plan"]) .lang-wrap, body.locked .lang-wrap { right: 10px; }
.layers button { padding: 7px 11px; font-size: 12px; }
.toast { font-size: 12px; padding: 8px 12px; }

/* ---------- Recherche : tout tient sans défiler ---------- */
.sheet { max-height: calc(100dvh - var(--tabs-h) - var(--safe-b) - 64px - var(--safe-t)); }
.grip { padding: 6px 0 3px; }
.grip span { width: 30px; height: 4px; }
#v-plan { padding: 0 10px 10px; display: flex; flex-direction: column; gap: 7px; }

.start-row { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; margin: 0; border-radius: 10px; border: 1.5px solid transparent; }
.start-row .dot { width: 9px; height: 9px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.start-k { flex: none; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.start-row .start-label { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-edit { font-size: 11.5px; }
/* Départ manquant : signalé sur place, sans fenêtre */
.start-row.need { border-color: var(--up); background: color-mix(in srgb, var(--up) 10%, var(--surface)); animation: shake .35s; }
.start-row.need .dot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }
.start-row.need .start-label, .start-row.need .start-edit { color: var(--up); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }

.seg { gap: 5px; }
.seg button { min-height: 0; border-radius: 9px; border-width: 1.5px; }
.seg-act button { height: 36px; flex-direction: row; gap: 6px; font-size: 12.5px; }
.seg-act button .ico { width: 17px; height: 17px; }
.seg-shape button { height: 30px; flex-direction: row; gap: 5px; font-size: 11.5px; font-weight: 600; }
.seg-shape button .ico { width: 14px; height: 14px; }

#kind.kinds { gap: 4px; }
#kind button { min-height: 0; height: 30px; padding: 0 4px; border-radius: 9px; font-size: 11.5px; font-weight: 600; border-width: 1.5px; }
#kind button small { display: none; }

.numrow { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; row-gap: 2px; }
.numrow .lbl { margin: 0; font-size: 10px; letter-spacing: .06em; }
.numrow .stepper { margin: 0; gap: 8px; }
.numrow .step { width: 28px; height: 28px; font-size: 17px; }
.numrow .big { min-width: 74px; text-align: center; font-size: 18px; font-weight: 800; }
.numrow .big small { font-size: 11px; }
.numrow .range { grid-column: 1 / -1; height: 20px; }
.range::-webkit-slider-thumb { width: 18px; height: 18px; margin-top: -6.5px; border-width: 2px; }
.range::-moz-range-thumb { width: 14px; height: 14px; }
.range::-webkit-slider-runnable-track { height: 5px; }
.numrow .presets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0; }
.presets button { min-height: 0; height: 26px; padding: 0 4px; font-size: 11px; border-radius: 8px; border-width: 1.5px; }
.presets button small { display: none; }
.elev-hint { margin: 0; font-size: 11px; color: var(--warn); font-weight: 600; }
.elev-hint:empty { display: none; }
#v-plan .cta { height: 40px; font-size: 13.5px; border-radius: 11px; margin-top: 2px; position: static; }
#v-plan .cta .ico { width: 16px; height: 16px; }

/* ---------- Recherche en cours / résultats ---------- */
.searching { padding: 4px 0 8px; gap: 10px; }
.spinner { width: 26px; height: 26px; border-width: 3px; }
#v-search .btn, #v-results .btn { height: 34px; font-size: 12px; border-radius: 9px; }
.res-head { margin-bottom: 4px; }
.res-head .h2 { font-size: 14px; }
.back-btn { height: 30px; font-size: 12.5px; }
.card { padding: 8px 9px; border-radius: 11px; }
.card-head { font-size: 12.5px; margin-bottom: 3px; }
.badge { font-size: 10px; padding: 1px 6px; }
.stats { gap: 4px; }
.stat b { font-size: 15px; }
.stat span { font-size: 9.5px; }
.surfbar { height: 4px; margin: 5px 0 2px; }
.legend { font-size: 10px; }
.legend i { width: 7px; height: 7px; }
.profile svg { height: 40px; }
.miss-list { font-size: 10.5px; }
.actions { margin: 6px 0; }
.actions .cta { height: 38px; font-size: 13px; border-radius: 10px; }
.actions3 .btn { height: 32px; font-size: 11.5px; }

/* ---------- Pages ---------- */
.page { padding: calc(50px + var(--safe-t)) 10px 14px; }
.page-head { padding: 0 2px 8px; }
.page-head h1 { font-size: 19px; }
.page-sub { font-size: 11px; }
.saved-tools { margin-bottom: 6px; gap: 6px; }
.filter button { height: 26px; padding: 0 9px; font-size: 11px; }
.sort { height: 26px; font-size: 11px; }
.saved { gap: 6px; }
.ritem { grid-template-columns: 44px 1fr; gap: 3px 8px; padding: 7px; border-radius: 11px; }
.r-thumb, .r-thumb svg.thumb { width: 44px; height: 44px; border-radius: 8px; }
.r-name { font-size: 12.5px; }
.r-kpis { font-size: 11.5px; gap: 0 8px; }
.r-kpis span { font-size: 10px; }
.r-log { font-size: 10.5px; padding: 2px 8px 2px 6px; }
.r-log .ico { width: 11px; height: 11px; }
.r-meta { font-size: 10px; }
.r-meta .ico { width: 12px; height: 12px; }
.r-acts { padding-top: 5px; gap: 2px; }
.r-acts > * { min-height: 34px; font-size: 8.5px; font-weight: 500; }
.r-acts .ico { width: 15px; height: 15px; }

/* Journal des sorties */
.logp { gap: 8px; padding: calc(8px + var(--safe-t)) 10px 14px; }
.logp-name { font-size: 16px; }
.logp-sub { font-size: 11px; }
.logp-sum { font-size: 11.5px; }
.logp .cta { height: 38px; font-size: 13px; border-radius: 10px; }
.log-item { padding: 7px 8px; gap: 5px; border-radius: 10px; }
.log-date { height: 30px; }
.log-ago { font-size: 10.5px; }
.log-del { width: 30px; height: 30px; }
.log-note { min-height: 46px; padding: 6px 8px; }
.log-save-btn { height: 28px !important; font-size: 11px !important; }

/* Profil */
.profile-head { gap: 10px; }
.avatar { width: 40px; height: 40px; font-size: 16px; }
.profile-head h1 { font-size: 17px; }
.admin-link { padding: 8px 10px; }
.admin-link b { font-size: 12.5px; }
.admin-link small { font-size: 10.5px; }
.group { margin-bottom: 8px; border-radius: 11px; }
.group-title { font-size: 9.5px; padding: 8px 10px 2px; }
.item { min-height: 38px; padding: 4px 10px; font-size: 12.5px; }
.item input { height: 30px; }
.item.col { padding: 7px 10px; gap: 5px; }
.item.col small { font-size: 10.5px; }
.group .seg button { min-height: 0; height: 30px; font-size: 11.5px; flex-direction: row; }
.group .seg button .ico { width: 14px; height: 14px; }
.legal-links { font-size: 10px; }

/* Choix du départ */
.picker .search { height: 40px; }
.plist li { min-height: 42px; padding: 5px 4px; gap: 9px; }
.plist b { font-size: 12.5px; }
.plist small { font-size: 10.5px; }
.pico { width: 30px; height: 30px; }
.mappick-t { font-size: 12.5px; }
.mappick .cta, .mappick .row .btn { height: 38px; font-size: 13px; }

/* Connexion */
.hero-mark { width: 64px; }
.wordmark.xl { font-size: 28px; }
.hero-tag { font-size: 13.5px; }
.hero-list { font-size: 12px; gap: 6px; }
.auth-card { padding: 14px; gap: 8px; }
.auth-card h2 { font-size: 18px; }
.auth-btn { height: 40px; font-size: 13.5px; }
.auth-note, .auth-link { font-size: 12px; }
.auth-legal, .form-hint { font-size: 10.5px; }
.auth .field { font-size: 11.5px; }
.auth .field input { height: 40px; }
.auth .cta { height: 40px; font-size: 13.5px; }
.auth .seg button { min-height: 0; height: 34px; font-size: 12px; }
.check { font-size: 12px; }
.consent-list { font-size: 12px; }

dialog { padding: 14px; }
dialog .h2 { font-size: 15px; }
dialog .btn { height: 34px; font-size: 12.5px; }

@media (min-width: 900px) {
  .sheet { max-height: none; }
  .lang-wrap { right: 58px; }
  body:not([data-tab="plan"]) .lang-wrap { right: auto; left: 370px; }
}

/* Sorties : une ligne condensée en lecture, édition sur demande */
.log-list { gap: 4px; }
.log-item { flex-direction: row; align-items: center; gap: 6px; padding: 4px 4px 4px 9px; min-height: 36px; border-radius: 9px; }
.log-d { flex: none; font-size: 11.5px; font-weight: 700; }
.log-txt { flex: 1; min-width: 0; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-txt.none { color: var(--muted); font-style: italic; }
.log-ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); }
.log-ic .ico { width: 15px; height: 15px; }
.log-ic:active { background: var(--surface-2); }
.log-ic.log-del { color: var(--up); }
.log-item.editing { flex-direction: column; align-items: stretch; padding: 7px 8px; gap: 6px; border-color: var(--accent); }
.log-item.editing .log-top { gap: 6px; }
.log-sp { flex: 1; }
.log-item.editing .btn { height: 30px; font-size: 11.5px; padding: 0 10px; }
.log-ok { background: var(--accent); color: #fff; }
/* Filtres avec icônes d'activité */
.filter button { display: inline-flex; align-items: center; gap: 4px; }
.filter button .ico { width: 14px; height: 14px; }
