/* Prospecto : style « Lumière » (cartes pastel) et radar « Verre nuit ». Mobile d'abord. */
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Jakarta"; src: url("/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f3f1fa;
  --surface: #ffffff;
  --ink: #17142b;
  --muted: #625e7c;
  --line: #e6e2f3;
  --accent: #5b4bd6;
  --accent-soft: #ebe7ff;
  --lilac: #ddd4ff;
  --dark: #17142b;
  --crit: #a32a22;
  --crit-soft: #fbe8e6;
  --warn: #7d5000;
  --warn-soft: #fbf0d8;
  --ok: #1f6b3e;
  --ok-soft: #e1f2e7;
  --shadow: 0 8px 24px rgb(40 30 90 / .07);
  --radius: 22px;
  --font: "Jakarta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Radar */
  --night: #0a0f1c;
  --glass: rgb(20 28 46 / .72);
  --glass-line: rgb(255 255 255 / .14);
  --mint: #7ff0d6;
  --hot: #ff8a7e;
  --warm: #f0c060;
  --nav-h: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 17px; font-weight: 800; }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

main { max-width: 640px; margin: 0 auto; }
.view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(18px, env(safe-area-inset-right, 0px)) calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
}
.sub, .hint { color: var(--muted); font-size: 13px; }

/* Boutons et champs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px;
  border: 0; border-radius: 14px;
  background: var(--accent); color: #fff;
  font: 700 15px var(--font); text-decoration: none; cursor: pointer;
}
.btn.dark { background: var(--dark); color: #fff; }
.btn.soft { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn.danger { background: var(--crit); color: #fff; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-busy="true"] { opacity: .55; cursor: default; }
.link { border: 0; background: none; color: var(--accent); font: 600 14px var(--font); min-height: 44px; cursor: pointer; }
.pill-btn { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--dark); color: #fff; font: 700 13px var(--font); cursor: pointer; }

input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--ink); font: 15px var(--font);
}
textarea { resize: vertical; }
label { font-size: 13px; font-weight: 600; color: var(--muted); }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form { gap: 6px; }
.form .btn { margin-top: 8px; }
.row-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.row-buttons .btn { flex: 1 1 auto; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink); }
.check input { width: 20px; min-height: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid3 > div { display: flex; flex-direction: column; gap: 6px; }

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.info { background: var(--accent-soft); color: var(--accent); }

/* Connexion */
.login { min-height: 100vh; justify-content: center; text-align: center; }
.login .card { text-align: left; }
.login-logo { align-self: center; border-radius: 18px; box-shadow: var(--shadow); }

/* Accueil */
.offer { background: var(--dark); color: #fff; box-shadow: none; }
.offer .sub { color: #c9c5e0; }
.offer .btn.dark { background: #fff; color: var(--ink); }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-head > div { display: flex; flex-direction: column; gap: 2px; }
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: 26px;
  background:
    radial-gradient(120px 120px at 88% 18%, rgb(255 255 255 / .75), transparent 70%),
    radial-gradient(180px 160px at 100% 100%, #c9bcff, transparent 70%),
    linear-gradient(135deg, #ebe6ff, var(--lilac));
}
.hero::before {
  content: ""; position: absolute; right: -26px; top: -18px; width: 140px; height: 140px; border-radius: 50%;
  background: conic-gradient(from 200deg, #b7a8ff, #f1c9ff, #a6c8ff, #b7a8ff); opacity: .5; filter: blur(2px);
}
.hero > * { position: relative; }
.hero h2 { font-size: 22px; }
.hero p { color: #3d385a; font-size: 14px; }
.hero .btn.soft { background: rgb(255 255 255 / .75); box-shadow: none; }
.hero-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: #3f3399; background: rgb(255 255 255 / .7); padding: 6px 10px; border-radius: 999px; }

.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 16px; background: var(--surface); }
.day b { font-size: 15px; }
.day span { font-size: 11px; font-weight: 600; color: var(--muted); }
.day i { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent); min-height: 14px; }
.day.today { background: var(--dark); color: #fff; }
.day.today span { color: #c9c5e0; }
.day.today i { color: #c9bcff; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px; border: 0; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font: inherit; text-align: left; cursor: pointer;
}
div.kpi { cursor: default; }
.kpi.dark { background: var(--dark); color: #fff; box-shadow: none; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi.dark .kpi-label { color: #c9c5e0; }
.kpi-value { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-value small { font-size: 14px; font-weight: 600; color: var(--muted); }
.kpi-sub { font-size: 12px; font-weight: 600; color: #c9bcff; }
.kpi-sub.ok { color: var(--ok); }
.kpi-sub.warn { color: var(--warn); }
.bar { width: 100%; height: 8px; border-radius: 99px; background: #ece9f7; margin-top: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: 99px; background: var(--accent); }

.section-head { display: flex; align-items: center; justify-content: space-between; }
.hot { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hot-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  font: inherit; text-align: left; cursor: pointer;
}
.ring {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1%), #ece9f7 0);
}
.ring b { width: 35px; height: 35px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.grow strong { font-size: 15px; overflow-wrap: anywhere; }
.grow span { font-size: 12px; color: var(--muted); }
.empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; list-style: none; }

/* Radar */
.radar { position: fixed; inset: 0; background: var(--night); color: #eef2f7; }
#map { position: absolute; inset: 0; background: var(--night); }
.radar .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.95) contrast(.95) saturate(.6); }
.radar .leaflet-control-attribution { background: rgb(10 15 28 / .6); color: #b4bfcf; }
.radar .leaflet-control-attribution a { color: var(--mint); }
.leaflet-container { font: 12px var(--font); }
.glass-bar {
  position: absolute; z-index: 600;
  top: calc(14px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; max-width: 616px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px;
  border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.zone-bar { padding: 6px; gap: 6px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: calc(100vw - 24px); }
.zone-bar .chip { min-height: 40px; padding: 0 14px; font-size: 13px; border-color: transparent; }
.go { min-height: 40px; padding: 0 14px; border: 0; border-radius: 14px; background: var(--mint); color: #062520; font: 800 14px var(--font); cursor: pointer; }
.go[aria-busy="true"] { opacity: .6; }
.go:disabled { opacity: .55; cursor: default; }
.zone-search { position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 0; min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 20px rgb(0 0 0 / .35); }
.geo {
  position: absolute; z-index: 600; top: calc(132px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0;
  max-width: calc(100vw - 24px); padding: 6px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-size: 12px; line-height: 1.35; color: #c4cddb; text-align: center; width: max-content;
}
.fab {
  position: absolute; z-index: 600; right: 14px; top: calc(74px + env(safe-area-inset-top, 0px));
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--glass-line); border-radius: 16px; background: var(--glass); color: var(--mint);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); cursor: pointer;
}
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .85); background: var(--mint); box-shadow: 0 0 14px var(--mint); }
.pin.hot { background: var(--hot); box-shadow: 0 0 14px var(--hot); }
.pin.warm { background: var(--warm); box-shadow: 0 0 14px var(--warm); }
.pin.done { background: #7d8799; box-shadow: none; }
.pin.selected { scale: 1.6; border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / .3); }
.me { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 6px rgb(127 240 214 / .22), 0 0 24px var(--mint); }

.panel {
  position: absolute; z-index: 700; left: 10px; right: 10px; max-width: 620px; margin: 0 auto;
  bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.handle {
  display: grid; grid-template-columns: 1fr; justify-items: start; gap: 2px;
  padding: 8px 18px 10px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.grip { justify-self: center; width: 40px; height: 5px; border-radius: 9px; background: rgb(255 255 255 / .25); margin-bottom: 6px; }
.panel-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.panel-sub { font-size: 13px; color: #b4bfcf; }
.panel-body { display: flex; flex-direction: column; gap: 10px; padding: 0 14px 14px; max-height: 42vh; overflow-y: auto; overscroll-behavior: contain; }
.radar .chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.radar .chip {
  flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .18); background: transparent; color: #eef2f7;
  font: 600 12px var(--font); cursor: pointer; font-variant-numeric: tabular-nums;
}
.radar .chip[aria-pressed="true"] { background: #eef2f7; color: var(--night); border-color: #eef2f7; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border-radius: 20px; border: 1px solid rgb(255 255 255 / .08);
  background: rgb(255 255 255 / .06); color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.badge { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: var(--night); background: var(--mint); font-variant-numeric: tabular-nums; }
.badge.hot { background: var(--hot); }
.badge.warm { background: var(--warm); }
.badge.done { background: #7d8799; }
.radar .grow span { color: #b4bfcf; }
.radar .empty { color: #b4bfcf; }
.chev { flex: none; color: #b4bfcf; }
.panel.collapsed .panel-body { display: none; }
.panel:not(.collapsed) .cards { display: none; }
.panel-body { max-height: 56vh; }
/* Fiches à faire glisser : une à la fois, la suivante dépasse pour montrer qu'il y en a d'autres. */
.cards { list-style: none; margin: 0; padding: 0 14px 14px; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 14px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cards::-webkit-scrollbar, .zone-bar::-webkit-scrollbar { display: none; }
.cards li { flex: 0 0 calc(100% - 40px); scroll-snap-align: start; min-width: 0; }
.cards li:only-child { flex-basis: 100%; }
.cards .row strong, .cards .row .grow span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cards .grow { min-width: 0; }
.cards:empty { display: none; }

/* Fiche prospect */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgb(23 20 43 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel {
  width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(260px 200px at 100% 0%, #e2dbff, transparent 70%), var(--bg);
  border-radius: 28px 28px 0 0;
  padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px;
  animation: rise .2s ease-out;
}
@keyframes rise { from { translate: 0 24px; opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .sheet-panel { animation: none; } }
.sheet-head { display: flex; gap: 16px; align-items: center; }
.sheet-head .ring { width: 76px; height: 76px; }
.sheet-head .ring b { width: 60px; height: 60px; font-size: 22px; flex-direction: column; line-height: 1; }
.sheet-head .ring small { font-size: 9px; font-weight: 700; color: var(--muted); }
.sheet-head h1 { font-size: 22px; }
.close { flex: none; width: 44px; height: 44px; margin-left: auto; align-self: flex-start; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.finding { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; padding-top: 0; }
.finding .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.finding .ev { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.mail-text { white-space: pre-wrap; font: 14px/1.55 var(--font); background: var(--bg); border-radius: 14px; padding: 14px; margin: 0; }
.note { padding: 12px 14px; background: var(--dark); color: #fff; border-radius: 16px; font-size: 14px; }
.score { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }

.photo { width: 100%; max-height: 280px; object-fit: cover; border-radius: var(--radius); }
.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.features li { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }

/* Barre d'onglets flottante */
.tabs {
  position: fixed; z-index: 900; left: 12px; right: 12px; max-width: 616px; margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  padding: 8px; border-radius: 24px; background: rgb(23 20 43 / .94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgb(23 20 43 / .25);
}
.tab {
  min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; border-radius: 18px; background: transparent; color: #c9c5e0;
  font: 600 11px var(--font); cursor: pointer;
}
.tab[aria-current="page"] { background: #fff; color: var(--ink); }

.toast {
  position: fixed; z-index: 1100; left: 50%; translate: -50% 0;
  bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom, 0px));
  max-width: min(92vw, 520px); padding: 12px 18px; border-radius: 16px;
  background: var(--dark); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .25);
}

/* Réglages : interrupteur, curseur, compteur, puces */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn.small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.setting-card { gap: 18px; }
.setting-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.field-label small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.field-label output { color: var(--accent); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; flex: none; width: 56px; height: 34px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px; background: #d9d4ea; transition: background .2s; }
.switch .track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .2); transition: translate .2s; }
.switch input:checked + .track { background: var(--ok); }
.switch input:checked + .track::after { translate: 22px 0; }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch .track, .switch .track::after { transition: none; } }
input[type="range"] { padding: 0; min-height: 36px; border: 0; background: none; accent-color: var(--accent); }
.stepper { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; background: var(--bg); border-radius: 14px; padding: 4px; }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 22px var(--font); cursor: pointer; }
.stepper output { min-width: 44px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.suggestions .chip { background: var(--bg); border-style: dashed; color: var(--muted); }
.add-row { display: flex; gap: 8px; }
.add-row input { flex: 1; min-width: 0; }

/* Scanner */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; counter-reset: step; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 14px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.steps li::before { content: counter(step); display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 800; }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--dark); color: #fff; }
.scan-cta {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: pointer;
  padding: 28px 20px; border-radius: 26px; color: #fff;
  background: radial-gradient(160px 140px at 90% 10%, rgb(255 255 255 / .18), transparent 70%), var(--dark);
}
.scan-cta strong { font-size: 18px; }
.scan-cta span { font-size: 13px; color: #c9c5e0; }
.manual summary { cursor: pointer; font-weight: 700; min-height: 32px; display: flex; align-items: center; }
.manual[open] summary { margin-bottom: 8px; }

/* Relances */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.check-row:first-child { border-top: 0; }
.check-row input { width: 22px; min-height: 22px; flex: none; accent-color: var(--accent); }
.check-row label { display: flex; flex-direction: column; color: var(--ink); font-weight: 400; min-width: 0; }
.check-row label span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }

.offline { position: fixed; z-index: 950; top: 0; left: 0; right: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; background: var(--warn-soft); color: var(--warn); font-size: 13px; font-weight: 600; text-align: center; }
.mail-frame { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
/* Mention de la carte toujours lisible : en haut à gauche, jamais sous le panneau ni la barre d'onglets. */
.radar .leaflet-bottom.leaflet-right { top: calc(80px + env(safe-area-inset-top, 0px)); bottom: auto; right: auto; left: 12px; }
.radar .leaflet-control-attribution { border-radius: 8px; padding: 2px 8px; }
.actions .btn { white-space: nowrap; padding-inline: 10px; }
.check-row label { flex: 1; }

/* À envoyer : un message à la fois */
.outbox-top { display: flex; align-items: flex-start; gap: 12px; }
.outbox-top h2 { margin: 0 0 2px; }
.outbox-actions { position: sticky; bottom: 0; padding: 10px 0 2px; background: inherit; }
.outbox-actions .btn.dark { flex: 2 1 auto; }

.reply { margin: 10px 0 14px; padding: 10px 14px; border-left: 3px solid currentColor; white-space: pre-wrap; overflow-wrap: anywhere; opacity: .9; }
