:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #f5f8fb;
  --ink-muted: #9fb1c1;
  --glass:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 15%, transparent 84%, rgba(255, 255, 255, 0.04)),
    linear-gradient(to right, rgba(0, 10, 42, 0.12), transparent 17%, transparent 83%, rgba(0, 10, 42, 0.12)),
    linear-gradient(135deg, rgba(9, 67, 148, 0.28), rgba(2, 18, 61, 0.14));
  --glass-strong:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent 15%, transparent 84%, rgba(255, 255, 255, 0.06)),
    linear-gradient(to right, rgba(0, 10, 42, 0.16), transparent 17%, transparent 83%, rgba(0, 10, 42, 0.16)),
    linear-gradient(135deg, rgba(8, 55, 131, 0.38), rgba(2, 18, 61, 0.22));
  --line: rgba(255, 255, 255, 0.2);
  --accent: #65d9ff;
  --green: #65e4a3;
  --amber: #ffca69;
  --red: #ff786f;
  /* Couleur des barres fixes (en-tête et frise sur mobile). Elle doit rester
     identique au fond de html, à theme-color et au background_color du
     manifeste : sur iOS 26+, la bande qu'iOS laisse sous la webapp prend
     l'une de ces couleurs et doit se confondre avec la frise. */
  --chrome: #08131f;
  /* Marge basse utile : sur iOS 26+ en webapp, la vue s'arrête au-dessus de
     l'indicateur d'accueil (écart mesuré dans --viewport-gap par app.js),
     alors que safe-area-inset-bottom le compte encore. */
  --safe-bottom: max(0px, calc(env(safe-area-inset-bottom) - var(--viewport-gap, 0px)));
}

:root[data-basemap-theme="light"],
:root[data-basemap-theme="terrain"] {
  color-scheme: light;
  --ink: #10283c;
  --ink-muted: #49657a;
  --glass:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.22), transparent 15%, transparent 84%, rgba(255, 255, 255, 0.1)),
    linear-gradient(to right, rgba(18, 57, 90, 0.06), transparent 17%, transparent 83%, rgba(18, 57, 90, 0.06)),
    linear-gradient(135deg, rgba(236, 247, 255, 0.4), rgba(193, 224, 247, 0.2));
  --glass-strong:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.26), transparent 15%, transparent 84%, rgba(255, 255, 255, 0.13)),
    linear-gradient(to right, rgba(18, 57, 90, 0.08), transparent 17%, transparent 83%, rgba(18, 57, 90, 0.08)),
    linear-gradient(135deg, rgba(238, 248, 255, 0.54), rgba(188, 220, 245, 0.3));
  --line: rgba(15, 49, 75, 0.2);
  --accent: #0877b9;
}

:root[data-basemap-theme="light"] .product-select option,
:root[data-basemap-theme="terrain"] .product-select option {
  background: #f4f9ff;
  color: #10283c;
}
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #08131f;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

/* Comme dans une app native : pas de sélection de texte ni de menu
   contextuel en appui long sur les barres et les boutons. */
.topbar,
.timeline-wrap,
button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* La taille vient uniquement de `inset: 0` : sur iOS en webapp plein écran,
   les unités de viewport (100vh/100dvh) et window.innerHeight sont parfois
   figées sur une valeur trop petite au lancement, sans qu'aucun événement
   `resize` ne suive — d'où une bande noire en bas. Un bloc `fixed` calé sur
   les quatre côtés est, lui, recalculé par le moteur de rendu dès que la
   fenêtre prend sa taille définitive. */
html {
  height: 100%;
}

body {
  position: fixed;
  inset: 0;
}

/* Bandeau opaque sous la barre d'état, pour les webapps installées avec
   l'ancienne barre d'état `black-translucent` (la page passe alors dessous).
   Avec la barre d'état opaque actuelle, safe-area-inset-top vaut 0 en
   webapp et ce bandeau disparaît. */
.app-shell::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: env(safe-area-inset-top);
  background: #08131f;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: absolute;
  inset: 0;
}

#map {
  position: fixed;
  inset: 0;
  overscroll-behavior: none;
  background: #d7e4e8;
}

.topbar,
.timeline-wrap,
.legend,
.notice,
.source-credit {
  position: absolute;
  z-index: 4;
}

.topbar {
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  width: max-content;
  max-width: calc(100% - max(36px, env(safe-area-inset-left) + env(safe-area-inset-right)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), transparent 18%, transparent 82%, rgba(0, 10, 42, 0.08)),
    linear-gradient(to right, rgba(0, 10, 42, 0.06), transparent 20%, transparent 80%, rgba(0, 10, 42, 0.06)),
    linear-gradient(135deg, rgba(19, 117, 173, 0.78), rgba(9, 45, 80, 0.78));
  color: #f5f8fb;
  box-shadow: 0 16px 42px rgba(2, 9, 16, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 10, 42, 0.1);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  pointer-events: none;
}

.brand-block,
.topbar-actions,
.legend,
.timeline-panel,
.notice {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(2, 9, 16, 0.24);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.legend,
.timeline-panel,
.settings-popup,
.favorites-panel,
.place-panel,
.radar-value-popup .maplibregl-popup-content {
  box-shadow: 0 18px 48px rgba(2, 9, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  padding: 4px 9px 4px 5px;
  pointer-events: auto;
}

.brand-block,
.topbar-actions {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.brand-copy {
  min-width: 0;
}

.product-select {
  display: block;
  width: 100%;
  height: 28px;
  padding: 4px 25px 4px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.product-select option {
  background: #102231;
  color: var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

h1,
.brand-block p {
  margin: 0;
}

.topbar .brand-block p,
.topbar .search-button,
.topbar .icon-button,
.topbar .live-status {
  color: #d7edf9;
}

h1 {
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 650;
}

.brand-block p {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 15px;
  pointer-events: auto;
}

.topbar .icon-button,
.topbar .search-button {
  height: 40px;
}

.topbar .icon-button {
  width: 40px;
  border-radius: 12px;
}

.topbar .icon-button svg,
.topbar .search-button svg {
  width: 19px;
  height: 19px;
}

.search-button {
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

.search-button:hover { background: rgba(255, 255, 255, 0.13); }
.search-button-label { display: none; }
.search-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.live-status {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 10px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.live-status[data-state="live"] { color: var(--green); }
.live-status[data-state="delayed"] { color: var(--amber); }
.live-status[data-state="error"] { color: var(--red); }

.icon-button,
.play-button,
.settings-button,
.latest-frame-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.play-button:hover,
.settings-button:hover,
.latest-frame-button:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
}

.icon-button:active,
.play-button:active,
.settings-button:active,
.latest-frame-button:active {
  transform: scale(0.96);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.42;
  cursor: default;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
}

.icon-button svg,
.play-button svg,
.settings-button svg,
.latest-frame-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.play-button .play-icon {
  fill: currentColor;
  stroke: none;
}

.pause-icon,
.is-playing .play-icon {
  display: none;
}

.is-playing .pause-icon {
  display: block;
}

.legend {
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(26px + var(--safe-bottom));
  width: 142px;
  padding: 12px;
  border-radius: 15px;
}

.legend-title {
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.legend-scale {
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    #68cdff 0%,
    #2991ff 15%,
    #19c2ae 32%,
    #49bf56 48%,
    #f4d53d 64%,
    #fa8e2b 77%,
    #e53935 90%,
    #8f2da8 100%
  );
}

.legend-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 7px;
  color: var(--ink-muted);
  font-size: 9px;
}

.legend-toggle {
  display: none;
}

.timeline-wrap {
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  width: min(740px, calc(100% - 36px));
  transform: translateX(-50%);
}

.timeline-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 16px;
  padding: 0 4px;
}

.frame-kind-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Violet de la prévision sur la frise, pour ne pas évoquer l'historique. */
  color: #b487ff;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.frame-kind-badge[hidden] {
  display: none;
}

#frame-time {
  color: #fff;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: center;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.timeline-panel {
  --now-position: 100%;
  --forecast-track: rgba(180, 135, 255, 0.72);
  position: relative;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
}

.play-button,
.latest-frame-button,
.settings-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.settings-button {
  border-color: var(--line);
  background: var(--glass);
  box-shadow: 0 12px 28px rgba(2, 9, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.settings-button:hover:not(:disabled) {
  background: var(--glass-strong);
}

.settings-button:disabled {
  opacity: 0.7;
}

.timeline-main {
  min-width: 0;
}

.timeline-copy {
  display: none;
}

.settings-wrap {
  position: fixed;
  z-index: 7;
  left: max(18px, env(safe-area-inset-left));
  right: auto;
  bottom: calc(26px + var(--safe-bottom) + 112px);
  top: auto;
}

.settings-popup {
  position: absolute;
  z-index: 8;
  left: 0;
  right: auto;
  bottom: calc(100% + 12px);
  width: 200px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-strong);
  box-shadow: 0 20px 48px rgba(2, 9, 16, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.settings-popup[hidden] {
  display: none;
}

.settings-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.settings-popup-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
}

.settings-popup-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.settings-group + .settings-group {
  margin-top: 12px;
}

.settings-install-button {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(101, 217, 255, 0.45);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: rgba(101, 217, 255, 0.1);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.settings-install-button img {
  border-radius: 5px;
}

.settings-group-label {
  display: block;
  margin-bottom: 6px;
  padding-right: 20px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.range-selector {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.range-selector button {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.range-selector button:last-child {
  border-right: 0;
}

.range-selector button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.range-selector button.is-selected,
.range-selector button[aria-pressed="true"] {
  /* Teinte volontairement pâle : le texte sombre reste très lisible, y
     compris avec les fonds de carte clairs. */
  background: #c8efff;
  color: #10283c;
}

#relative-time {
  display: none;
}

.timeline-range {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 22px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
}

.timeline-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(to right, var(--accent) 0 var(--now-position), transparent var(--now-position)),
    linear-gradient(to right, transparent 0 var(--now-position), var(--forecast-track) var(--now-position) 100%);
}

.timeline-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  appearance: none;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #f5f8fb;
  box-shadow: 0 1px 4px rgba(2, 9, 16, 0.4);
}

.timeline-range::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background:
    linear-gradient(to right, var(--accent) 0 var(--now-position), transparent var(--now-position)),
    linear-gradient(to right, transparent 0 var(--now-position), var(--forecast-track) var(--now-position) 100%);
}

.timeline-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #f5f8fb;
  box-shadow: 0 1px 4px rgba(2, 9, 16, 0.4);
}

.timeline-track-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timeline-time-label {
  flex: none;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.82);
  white-space: nowrap;
}

:root[data-basemap-theme="light"] .timeline-time-label {
  color: #10283c;
  text-shadow: none;
}

.timeline-track-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
}

.timeline-now-marker {
  position: absolute;
  z-index: 2;
  top: -3px;
  bottom: -3px;
  left: var(--now-position);
  width: 1px;
  border-left: 1px solid var(--forecast-track);
  transform: translateX(-50%);
  pointer-events: none;
}

:root[data-basemap-theme="light"] .timeline-panel {
  --forecast-track: rgba(69, 54, 133, 0.9);
}

.timeline-now-marker[hidden],
.timeline-key[hidden] {
  display: none;
}

.timeline-key {
  display: none;
}

.frame-loader {
  position: fixed;
  z-index: 14;
  left: 50%;
  bottom: calc(145px + var(--safe-bottom));
  min-height: 34px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(180, 135, 255, 0.28);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--glass-strong);
  box-shadow: 0 10px 28px rgba(2, 9, 16, 0.32);
  font-size: 11px;
  font-weight: 600;
  transform: translateX(-50%);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  pointer-events: none;
}

.frame-loader[hidden] {
  display: none;
}

/* Encart d'installation de la webapp, posé sur la carte au-dessus de la frise. */
.install-card {
  position: fixed;
  z-index: 15;
  left: 50%;
  bottom: calc(96px + var(--safe-bottom));
  width: min(480px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: #f5f8fb;
  background: var(--chrome);
  box-shadow: 0 14px 40px rgba(2, 9, 16, 0.45);
  transform: translateX(-50%);
  animation: install-card-in 240ms ease-out;
}

.install-card[hidden] {
  display: none;
}

@keyframes install-card-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .install-card { animation: none; }
}

.install-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.install-card-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.4;
  color: #9fb1c1;
}

.install-card-copy strong {
  color: #f5f8fb;
  font-size: 14px;
  font-weight: 680;
}

.install-card-actions {
  display: flex;
  gap: 8px;
}

.install-card-actions button {
  min-height: 34px;
  padding: 6px 15px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.install-card-later {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #9fb1c1;
  background: transparent;
}

.install-card-install {
  border: 1px solid #65d9ff;
  color: #08131f;
  background: #65d9ff;
}

.install-card-actions button:focus-visible {
  outline: 2px solid #65d9ff;
  outline-offset: 2px;
}

.frame-loader-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(180, 135, 255, 0.22);
  border-top-color: #b487ff;
  border-radius: 50%;
  animation: spin 0.72s linear infinite;
}

.frame-loader[data-state="error"] {
  border-color: rgba(255, 180, 84, 0.4);
  color: var(--amber);
}

.frame-loader[data-state="error"] .frame-loader-spinner {
  display: none;
}

.notice {
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 40px));
  padding: 15px 17px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.notice.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.notice.is-error .notice-spinner {
  border: 0;
  background: var(--red);
  animation: none;
}

.notice-spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.notice strong,
.notice span {
  display: block;
}

.notice strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.notice span {
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.35;
}

.source-credit {
  left: max(18px, env(safe-area-inset-left));
  bottom: calc(14px + var(--safe-bottom));
  color: rgba(15, 28, 38, 0.72);
  font-size: 9px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

:root[data-basemap-theme="dark"] .source-credit {
  color: rgba(237, 244, 249, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72);
}

.panel-scrim {
  position: absolute;
  z-index: 6;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 8, 14, 0.4);
  opacity: 0;
  visibility: hidden;
  cursor: default;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.panel-scrim.is-visible {
  opacity: 1;
  visibility: visible;
}

.favorites-panel {
  position: absolute;
  z-index: 7;
  top: 78px;
  right: 18px;
  bottom: 18px;
  width: min(390px, calc(100% - 36px));
  padding: 20px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: 0 24px 70px rgba(2, 8, 15, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  touch-action: pan-y;
}

/* Recherche et fiche d'un lieu : une carte flottante, la même sur
   téléphone, tablette et ordinateur. Sur téléphone, elle prend la largeur
   sous l'en-tête ; au-delà, elle se pose en haut à gauche de la carte. */
.place-panel {
  position: fixed;
  /* Au-dessus des contrôles flottants, notamment Réglages. */
  z-index: 10;
  top: calc(env(safe-area-inset-top) + 64px);
  right: max(10px, env(safe-area-inset-right));
  left: max(10px, env(safe-area-inset-left));
  max-height: calc(100% - env(safe-area-inset-top) - 64px - var(--safe-bottom) - 100px);
  padding: 7px;
  overflow: auto;
  border-radius: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
  touch-action: pan-y;
}

.place-panel.is-open { opacity: 1; visibility: visible; }
.place-search-form { position: relative; }
.place-search-close,
.place-mobile-summary { display: none; }

/* La recherche reste au-dessus de la carte : les résultats se déploient
   sous le champ. */
.place-panel.is-open:not(.is-mobile-selected) { overflow: visible; }

/* 16 px : en dessous, Safari zoome sur le champ au focus. */
.place-search-form input { font-size: 16px; }
.place-panel.is-open:not(.is-mobile-selected) .place-search-close {
  position: absolute;
  z-index: 1;
  top: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
}

.place-panel.is-open:not(.is-mobile-selected) .place-search-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.place-panel.is-open:not(.is-mobile-selected) .address-field input { padding-right: 42px; }
.place-panel.is-open:not(.is-mobile-selected) .address-results {
  max-height: min(48vh, 360px);
  margin-top: 7px;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(2, 8, 15, .3);
}

.place-panel.is-mobile-selected { transform: none; }

.place-panel.is-mobile-selected > .place-search-form { display: none; }
/* Fiche du lieu : la commune, un verdict en clair, puis la courbe de
   l'intensité prévue. Tout le bloc déplie le détail. */
.place-panel.is-mobile-selected .place-mobile-summary { position: relative; display: block; }
.place-mobile-summary-main { width: 100%; padding: 6px 7px 4px; border: 0; display: grid; gap: 1px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; font: inherit; }
.place-mobile-summary-head { min-width: 0; padding-right: 36px; display: flex; align-items: center; gap: 4px; color: var(--ink-muted); }
.place-mobile-summary-head strong { min-width: 0; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.place-mobile-chevron { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms ease; }
.place-mobile-rain-verdict { padding-right: 36px; color: var(--accent); font-size: 20px; font-weight: 750; letter-spacing: -.025em; line-height: 1.2; }
.place-mobile-rain-summary { overflow: hidden; color: var(--ink-muted); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.place-mobile-summary[data-rain-level="nulle"] .place-mobile-rain-verdict { color: #81d9b0; }
.place-mobile-summary[data-rain-level="faible"] .place-mobile-rain-verdict { color: #65d4f5; }
.place-mobile-summary[data-rain-level="modérée"] .place-mobile-rain-verdict { color: #c69bff; }
.place-mobile-summary[data-rain-level="forte"] .place-mobile-rain-verdict { color: #ff9aad; }
.place-mobile-rain-chart { display: block; height: 128px; margin-top: 8px; }
.place-mobile-rain-chart[hidden] { display: none; }
/* pan-y : un glissé horizontal lit la courbe, un glissé vertical fait défiler. */
.place-mobile-rain-chart { touch-action: pan-y; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.place-mobile-rain-chart .rain-cursor { display: none; pointer-events: none; }
.place-mobile-rain-chart.is-scrubbing .rain-cursor { display: inline; }
.place-mobile-rain-chart .rain-cursor-line { stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; }
.place-mobile-rain-chart .rain-cursor-dot { fill: #fff; stroke: #08131f; stroke-width: 2; }
.place-mobile-rain-chart .rain-cursor-bubble { fill: #f5f8fb; }
.place-mobile-rain-chart .rain-cursor-text { fill: #08131f; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.place-mobile-rain-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.place-mobile-rain-chart .rain-band-line { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.place-mobile-rain-chart .rain-band-label { fill: rgba(169, 188, 203, 0.75); font-size: 10px; font-weight: 600; }
.place-mobile-rain-chart .rain-axis { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.place-mobile-rain-chart .rain-axis-tick { stroke: rgba(255, 255, 255, 0.28); stroke-width: 1; }
.place-mobile-rain-chart .rain-axis-label { fill: var(--ink-muted); font-size: 10px; font-variant-numeric: tabular-nums; text-anchor: middle; }
.place-mobile-rain-chart .rain-line { fill: none; stroke: url(#place-rain-gradient); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.place-mobile-rain-chart .rain-observed-zone { fill: rgba(255, 255, 255, 0.045); }
.place-mobile-rain-chart .rain-split-line { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 2 3; }
.place-mobile-rain-chart .rain-split-label { fill: rgba(169, 188, 203, 0.75); font-size: 10px; font-weight: 600; }
.place-mobile-rain-chart .rain-area { fill: url(#place-rain-gradient); opacity: .2; }
.place-mobile-loading-spinner { display: none; width: 17px; height: 17px; margin: 8px 0 6px; border: 2px solid rgba(101,217,255,.24); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.place-mobile-summary[data-loading="true"] .place-mobile-rain-chart { display: none; }
.place-mobile-summary[data-loading="true"] .place-mobile-loading-spinner { display: block; }
.place-mobile-close { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; display: grid; place-items: center; color: var(--ink-muted); background: rgba(255,255,255,.06); cursor: pointer; }
.place-mobile-close svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.place-panel.is-mobile-selected .place-forecast { display: none; margin: 12px 7px 4px; }
.place-panel.is-mobile-selected.is-expanded .place-mobile-chevron { transform: rotate(180deg); }
.place-panel.is-mobile-selected.is-expanded .place-forecast { display: block; }
.place-notifications-button { width: 100%; margin-top: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 3px; color: var(--ink); background: rgba(255, 255, 255, .04); text-align: left; cursor: pointer; transition: border-color 140ms ease, background 140ms ease; }
.place-notifications-button:hover, .place-notifications-button:focus-visible { border-color: rgba(101, 217, 255, .62); background: rgba(101, 217, 255, .1); }
.place-notifications-button-title { font-size: 12px; font-weight: 700; }
.place-notifications-button-summary { display: grid; gap: 2px; color: var(--ink-muted); font-size: 10px; line-height: 1.35; }
.place-notification-summary-line { display: flex; align-items: center; gap: 5px; }
/* Lieu non surveillé : le bouton devient une invitation, sans cases. */
.place-notifications-cta { display: none; align-items: center; gap: 11px; }
.place-notifications-button[data-state="off"] { border-color: rgba(101, 217, 255, .45); background: rgba(101, 217, 255, .1); }
.place-notifications-button[data-state="off"] .place-notifications-cta { display: flex; }
.place-notifications-button[data-state="off"] .place-notifications-button-title,
.place-notifications-button[data-state="off"] .place-notifications-button-summary { display: none; }
.place-notifications-cta > svg { width: 30px; height: 30px; flex: 0 0 auto; padding: 6px; border-radius: 9px; color: #04121d; background: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.place-notifications-cta strong, .place-notifications-cta small { display: block; }
.place-notifications-cta strong { color: var(--accent); font-size: 12px; }
.place-notifications-cta small { margin-top: 2px; color: var(--ink-muted); font-size: 10px; line-height: 1.35; }
.place-notification-summary-line:not(.is-active) { opacity: .55; }
.place-notification-tick { width: 13px; height: 13px; flex: 0 0 auto; padding: 2px; border-radius: 50%; color: #fff; background: var(--accent); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; visibility: hidden; }
.place-notification-summary-line.is-active .place-notification-tick { visibility: visible; }
.place-notification-controls { display: grid; gap: 9px; margin: 17px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .04); }
.place-notification-title { color: var(--ink-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.place-notification-option { position: relative; display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 10px; line-height: 1.35; cursor: pointer; }
.place-notification-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.notification-toggle { width: 34px; height: 20px; flex: 0 0 auto; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .1); transition: background 140ms ease, border-color 140ms ease; }
.notification-toggle span { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-muted); transition: transform 140ms ease, background 140ms ease; }
.place-notification-option input:checked + .notification-toggle { border-color: var(--accent); background: var(--accent); }
.place-notification-option input:checked + .notification-toggle span { background: #fff; transform: translateX(14px); }
.place-notification-option input:focus-visible + .notification-toggle { outline: 2px solid var(--accent); outline-offset: 2px; }
.place-notification-option input:disabled + .notification-toggle, .place-notification-option input:disabled ~ .place-notification-option-copy { opacity: .5; }
.place-notification-option-copy { min-width: 0; }
.place-notification-controls strong, .place-notification-controls small { display: block; }
.place-notification-controls small { margin-top: 1px; color: var(--ink-muted); font-size: 9px; }
.place-notifications-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, var(--safe-bottom)) max(18px, env(safe-area-inset-left)); }
.place-notifications-modal[hidden] { display: none; }
.place-notifications-modal-scrim { position: absolute; inset: 0; background: rgba(2, 8, 14, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.place-notifications-dialog { position: relative; z-index: 1; width: min(370px, 100%); max-height: min(620px, 100%); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--glass-strong); box-shadow: 0 24px 70px rgba(2, 8, 15, .5), inset 0 1px 0 rgba(255, 255, 255, .14); }
.place-notifications-dialog .place-notification-controls { margin-top: 20px; }
.place-notification-actions { display: grid; gap: 7px; margin-top: 14px; }
.place-notification-actions .primary-button { margin-top: 2px; }
.place-favorite-feedback { min-height: 14px; margin: 10px 0 0; color: var(--green); font-size: 10px; line-height: 1.35; }
.place-favorite-feedback.is-error { color: var(--amber); }
.place-forecast-status { min-height: 21px; margin: 13px 0 0; display: flex; align-items: center; gap: 8px; color: var(--ink-muted); font-size: 10px; }
.place-forecast-status[data-state="ready"] .rain-status-spinner, .place-forecast-status[data-state="error"] .rain-status-spinner { display: none; }
.place-forecast-status[data-state="error"] { color: var(--amber); }
.rain-status-spinner { width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid rgba(101,217,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
.searched-location-marker { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; background: #7554c7; box-shadow: 0 0 0 7px rgba(117, 84, 199, .24), 0 2px 8px rgba(0,0,0,.28); }

.favorites-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-header h2,
.ios-install-card h3 {
  margin: 0;
}

.panel-header h2 {
  font-size: 21px;
  font-weight: 680;
}

.panel-intro {
  margin: 12px 0 16px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.5;
}

.panel-step:not(#step-list) .panel-header {
  gap: 8px;
}

.add-flow-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 660;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.add-address-button {
  display: flex;
  width: 100%;
  min-height: 42px;
  margin: 16px 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(101, 217, 255, 0.5);
  border-radius: 12px;
  background: rgba(101, 217, 255, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
}

.add-address-button:hover { background: rgba(101, 217, 255, 0.22); }

.add-address-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.notification-status {
  display: flex;
  width: 100%;
  min-height: 34px;
  margin: 4px 0 14px;
  padding: 0 4px;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 620;
  text-align: left;
  cursor: default;
}

.notification-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 13%, transparent);
}

.notification-status.is-granted { color: var(--green); }
.notification-status.is-unavailable { color: var(--ink-muted); }

.notification-status.is-actionable,
.notification-status.is-default,
.notification-status.is-denied {
  color: var(--amber);
  cursor: pointer;
}

.notification-status.is-actionable:hover,
.notification-status.is-default:hover,
.notification-status.is-denied:hover {
  color: #ffd68c;
  text-decoration: underline;
}

.notification-status:disabled { cursor: default; }

.notification-history { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.notification-history h3 { margin: 0 0 10px; color: var(--ink-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.notification-history-list { display: grid; gap: 8px; }
.notification-history-item { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .035); }
.notification-history-item strong { font-size: 11px; line-height: 1.3; }
.notification-history-item span { color: var(--ink-muted); font-size: 10px; line-height: 1.4; }
.notification-history-item time { color: #73899a; font-size: 9px; }
.notification-history-empty { margin: 0; color: var(--ink-muted); font-size: 10px; line-height: 1.45; }

.confirm-address {
  display: flex;
  margin: 6px 0 4px;
  padding: 14px;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.confirm-address .favorite-pin { font-size: 16px; }

.alert-preferences,
.favorite-alert-preferences {
  display: grid;
  gap: 8px;
  margin: 13px 0 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.03);
}

.alert-preferences legend,
.favorite-alert-preferences legend {
  padding: 0 4px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alert-preferences label,
.favorite-alert-preferences label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.35;
  cursor: pointer;
}

/* Même interrupteur que dans la fenêtre de notifications d'une commune
   (.notification-toggle), dessiné sur la case elle-même. */
.alert-preferences input,
.favorite-alert-preferences input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.alert-preferences input::after,
.favorite-alert-preferences input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform 140ms ease, background 140ms ease;
}

.alert-preferences input:checked,
.favorite-alert-preferences input:checked { border-color: var(--accent); background: var(--accent); }

.alert-preferences input:checked::after,
.favorite-alert-preferences input:checked::after { background: #fff; transform: translateX(14px); }

.alert-preferences input:disabled,
.favorite-alert-preferences input:disabled { opacity: 0.4; cursor: default; }

.notification-status[hidden] { display: none; }

.alert-preferences strong,
.alert-preferences small {
  display: block;
}

.alert-preferences small {
  margin-top: 1px;
  color: var(--ink-muted);
  font-size: 9px;
}

#step-unsupported .eyebrow { color: var(--amber); }

#unsupported-message {
  margin: 10px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.address-form {
  position: relative;
  margin-top: 22px;
}

.address-form > label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 650;
}

.address-field {
  position: relative;
}

.address-field svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.address-field input {
  width: 100%;
  height: 43px;
  padding: 0 13px 0 39px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 13px;
  transition: border-color 160ms ease, background 160ms ease;
}

.address-field input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.address-field:has(.address-clear:not([hidden])) input { padding-right: 42px; }

.address-clear {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.address-clear[hidden] { display: none; }

.address-field .address-clear svg {
  position: static;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.4;
  transform: none;
}

.address-field input::placeholder {
  color: #72899b;
}

.address-field input:focus {
  border-color: rgba(101, 217, 255, 0.68);
  background: rgba(255, 255, 255, 0.09);
}

.address-results {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--glass-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px) saturate(145%);
  -webkit-backdrop-filter: blur(8px) saturate(145%);
}

.address-result {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.address-result:last-child { border-bottom: 0; }
.address-result:hover,
.address-result:focus-visible { background: rgba(255, 255, 255, 0.07); }
.address-result:disabled { cursor: wait; opacity: 0.65; }

.address-result-location {
  color: var(--accent);
}

.address-result-location svg { stroke: currentColor; }

.address-results-heading {
  margin: 0;
  padding: 9px 12px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-result strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.address-result svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.address-result:hover svg { stroke: var(--accent); }

.address-results-empty {
  margin: 0;
  padding: 13px;
  color: var(--ink-muted);
  font-size: 11px;
}

.favorite-feedback {
  min-height: 17px;
  margin: 8px 0 2px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.35;
}

.favorite-feedback.is-error { color: var(--red); }

.favorites-list {
  display: grid;
  gap: 7px;
}

.favorites-empty {
  display: grid;
  min-height: 92px;
  place-content: center;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  color: var(--ink-muted);
  text-align: center;
}

.favorites-empty strong {
  color: var(--ink);
  font-size: 12px;
}

.favorites-empty span {
  max-width: 240px;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.4;
}

.favorite-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.favorite-row {
  display: flex;
  align-items: stretch;
}

.favorite-focus {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.favorite-focus:hover { background: rgba(255, 255, 255, 0.05); }

.favorite-location-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.favorite-pin {
  color: var(--accent);
  font-size: 14px;
  text-shadow: 0 0 12px rgba(101, 217, 255, 0.7);
}

.favorite-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.favorite-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 590;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.favorite-copy span {
  color: var(--ink-muted);
  font-size: 9px;
}

.favorite-remove {
  width: 38px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-size: 21px;
  cursor: pointer;
}

.favorite-remove:hover { color: var(--red); }

.favorite-remove svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorite-remove { display: grid; place-items: center; }

.favorite-alert-preferences {
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.06);
}

.favorite-alert-preferences legend { grid-column: 1 / -1; }

.notification-card,
.ios-install-card {
  margin-top: 15px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.notification-card[data-state="on"] {
  border-color: rgba(101, 228, 163, 0.3);
  background: rgba(101, 228, 163, 0.07);
}

.notification-card-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.notification-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: rgba(101, 217, 255, 0.12);
  color: var(--accent);
}

.notification-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Le tracé de la cloche laisse un peu plus de vide sous le battant qu'au-
     dessus du dôme dans son viewBox : un léger décalage vers le bas la
     recentre optiquement dans son emplacement carré. */
  transform: translateY(0.5px);
}

.notification-card strong,
.notification-card span {
  display: block;
}

.notification-card strong {
  margin-bottom: 3px;
  font-size: 12px;
}

.notification-card-copy > div > span {
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.4;
}

.primary-button {
  width: 100%;
  min-height: 36px;
  margin-top: 12px;
  padding: 7px 12px;
  border: 1px solid rgba(101, 217, 255, 0.5);
  border-radius: 10px;
  background: rgba(101, 217, 255, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
}

.primary-button:hover { background: rgba(101, 217, 255, 0.22); }

.notification-card[data-state="on"] .primary-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-muted);
}

.ios-install-card {
  border-color: rgba(255, 202, 105, 0.3);
  background: rgba(255, 202, 105, 0.07);
}

.ios-install-card .eyebrow { color: var(--amber); }

.ios-install-card h3 {
  font-size: 14px;
}

.ios-install-card ol {
  margin: 10px 0 0;
  padding-left: 19px;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.5;
}

.ios-install-card li + li { margin-top: 5px; }
.ios-install-card strong { color: var(--ink); }
.share-symbol { color: var(--accent); font-size: 15px; }

.favorite-location-marker {
  width: 17px;
  height: 17px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: rgba(12, 91, 132, 0.9);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.favorite-location-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.maplibregl-ctrl-bottom-right {
  display: none;
}

.maplibregl-ctrl-top-right {
  top: auto;
  right: auto;
  bottom: calc(26px + var(--safe-bottom) + 112px + 40px + 12px);
  left: max(18px, env(safe-area-inset-left));
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: var(--glass) !important;
  box-shadow: 0 12px 28px rgba(2, 9, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.maplibregl-ctrl-group button {
  width: 40px;
  height: 40px;
  background-color: transparent !important;
}

.maplibregl-ctrl-group button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.maplibregl-ctrl-group button + button {
  border-top-color: var(--line) !important;
}

.radar-value-popup .maplibregl-popup-content {
  min-width: 170px;
  padding: 13px 34px 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: 0 14px 38px rgba(2, 9, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
}

.radar-value-popup.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.radar-value-popup.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.radar-value-popup.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(8, 19, 31, 0.96);
}

.radar-value-popup.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.radar-value-popup.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.radar-value-popup.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(8, 19, 31, 0.96);
}

.radar-value-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(8, 19, 31, 0.96);
}

.radar-value-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(8, 19, 31, 0.96);
}

.radar-value-popup .maplibregl-popup-close-button {
  top: 5px;
  right: 6px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  color: var(--ink-muted);
  font-size: 19px;
  line-height: 23px;
}

.radar-value-popup .maplibregl-popup-close-button:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.radar-value-content {
  display: grid;
  gap: 4px;
}

.radar-value-title {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.radar-value-reading {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.radar-value-content[data-status="loading"] .radar-value-reading,
.radar-value-content[data-status="unavailable"] .radar-value-reading {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.radar-value-content[data-status="error"] .radar-value-reading {
  color: var(--amber);
  font-size: 13px;
  font-weight: 550;
}

.user-location-dot {
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: #177ddc;
  box-shadow: 0 0 0 7px rgba(23, 125, 220, 0.24), 0 2px 8px rgba(0, 0, 0, 0.28);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 640px) {
  /* Sur téléphone, l'en-tête et la frise sont des barres pleine largeur et
     opaques, comme dans une app native. L'en-tête couvre aussi la barre
     d'état, ce qui remplace l'aplat de .app-shell.

     Elles sont en `position: fixed` avec une couleur de fond unie, sans
     dégradé ni backdrop-filter. Le flou qu'iOS 26+ pose sous la barre
     d'état n'est évité que par la barre d'état opaque (pas de
     `apple-mobile-web-app-status-bar-style`) : la page démarre alors sous
     elle. Les barres sont séparées de la carte par un
     simple filet, sans ombre portée. */
  .app-shell::before {
    display: none;
  }

  .topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    gap: 4px;
    flex-wrap: nowrap;
    padding: calc(env(safe-area-inset-top) + 6px) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
    border: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: var(--chrome);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
  }

  .brand-block {
    min-width: 0;
    flex: 1 1 auto;
    padding: 0 3px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar-actions { flex: none; margin-left: 0; gap: 8px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Boutons de barre ronds, sans bordure, sur un fond
     léger, avec un retour par opacité à l'appui. */
  .topbar .icon-button,
  .topbar .search-button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e9f4fb;
    transition: opacity 120ms ease, background 120ms ease;
  }
  .topbar .icon-button:active,
  .topbar .search-button:active { transform: none; opacity: 0.55; }
  .topbar .search-button { padding: 0; justify-content: center; gap: 0; font-size: 0; }
  .topbar .icon-button svg,
  .topbar .search-button svg { width: 19px; height: 19px; }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy h1 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

  .brand-block p {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-status {
    display: none;
  }

  .legend {
    display: none;
    position: fixed;
    z-index: 6;
    left: auto;
    bottom: auto;
    top: 66%;
    right: 66px;
    width: 140px;
    padding: 10px;
    transform: translateY(-50%);
  }

  .legend.is-open {
    display: block;
  }

  .legend-toggle {
    display: grid;
    position: fixed;
    z-index: 6;
    right: max(12px, env(safe-area-inset-right));
    top: 66%;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--glass);
    box-shadow: 0 12px 28px rgba(2, 9, 16, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    color: var(--ink);
    cursor: pointer;
    transform: translateY(-50%);
  }

  .legend-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .settings-wrap {
    left: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: auto;
    top: calc(66% + 30px);
  }

  .settings-wrap .settings-button {
    width: 44px;
    height: 44px;
  }

  /* La frise reste toujours en thème sombre, quel que soit le fond de
     carte, puisqu'elle est posée sur la barre opaque. */
  .timeline-wrap {
    --ink: #f5f8fb;
    --ink-muted: #9fb1c1;
    --line: rgba(255, 255, 255, 0.16);
    --accent: #65d9ff;
    color-scheme: dark;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 8px max(10px, env(safe-area-inset-right)) calc(var(--safe-bottom) + 8px) max(10px, env(safe-area-inset-left));
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
    background: var(--chrome);
    box-shadow: none;
    color: var(--ink);
    transform: none;
  }

  /* Sur smartphone, l'heure flotte sur la carte, juste au-dessus de la frise. */
  .timeline-header {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0 16px 8px;
    pointer-events: none;
  }

  /* Sur la carte, un texte violet se perd : pastille violette pleine,
     texte blanc, lisible sur tous les fonds. */
  .frame-kind-badge {
    padding: 3px 9px 2px;
    border-radius: 999px;
    color: #fff;
    background: #8a5cf0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-shadow: none;
  }

  .timeline-panel,
  :root[data-basemap-theme] .timeline-panel {
    --forecast-track: rgba(180, 135, 255, 0.72);
    padding: 0;
    grid-template-columns: 39px 1fr 39px;
    gap: 9px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .timeline-time-label,
  :root[data-basemap-theme] .timeline-time-label {
    color: var(--ink-muted);
    text-shadow: none;
  }

  /* Au-dessus de l'heure, qui flotte elle-même sur la carte. */
  .install-card {
    bottom: calc(132px + var(--safe-bottom));
    grid-template-columns: auto 1fr;
  }

  .install-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .frame-loader {
    bottom: calc(96px + var(--safe-bottom));
    max-width: calc(100% - 30px);
  }

  .play-button,
  .latest-frame-button,
  .settings-button {
    width: 39px;
    height: 39px;
  }

  .settings-popup {
    left: auto;
    right: 0;
    width: 180px;
  }

  .range-selector button {
    min-width: 29px;
    padding: 0 6px;
  }

  #frame-time {
    font-size: 22px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.75);
  }

  .timeline-time-label {
    font-size: 10px;
  }

  .timeline-range {
    height: 30px;
  }

  .timeline-track-wrap {
    height: 30px;
  }

  .timeline-range::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -10px;
  }

  .timeline-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

  .source-credit {
    display: none;
  }

  .maplibregl-ctrl-top-right {
    display: none;
  }

  .favorites-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(390px, 100%);
    padding: max(18px, env(safe-area-inset-top)) 17px max(18px, var(--safe-bottom));
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateX(100%);
  }

  .address-field input {
    /* iOS agrandit automatiquement la page au focus sous 16 px. */
    font-size: 16px;
  }

  .favorites-panel button,
  .favorites-panel input {
    touch-action: manipulation;
  }

  .favorites-panel.is-open { transform: translateX(0); }
}

/* Verre sombre : le fond de carte reste perceptible, sans voile laiteux. */
.legend,
.legend-toggle,
.timeline-panel,
.notice,
.frame-loader,
.settings-button,
.settings-popup,
.favorites-panel,
.place-panel,
.radar-value-popup .maplibregl-popup-content {
  backdrop-filter: blur(3px) saturate(155%);
  -webkit-backdrop-filter: blur(3px) saturate(155%);
}

/* Double contour du matériau : reflet interne haut/bas et profondeur bleu nuit
   à l'extérieur, principalement sur les flancs. */
.legend,
.legend-toggle,
.timeline-panel,
.notice,
.frame-loader,
.settings-button,
.settings-popup,
.favorites-panel,
.place-panel,
.radar-value-popup .maplibregl-popup-content {
  border-width: 0.5px;
  border-top-color: rgba(255, 255, 255, 0.54);
  border-bottom-color: rgba(255, 255, 255, 0.36);
  border-right-color: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 0.5px rgba(2, 28, 94, 0.06),
    0.5px 0 0 rgba(2, 28, 94, 0.48),
    -0.5px 0 0 rgba(2, 28, 94, 0.48),
    0 16px 42px rgba(2, 9, 16, 0.28);
}

/* « Mes adresses » est une page bleu nuit, avec des cartes sobres aux
   couleurs de l'app (pas d'éléments propres à iOS ou Android) : plein écran
   sur téléphone, volet latéral sur ordinateur. Les couleurs sont fixées ici
   pour ne pas suivre le thème clair du fond de carte. */
.favorites-panel,
:root[data-basemap-theme] .favorites-panel {
  --ink: #f5f8fb;
  --ink-muted: #9fb1c1;
  --line: rgba(255, 255, 255, 0.1);
  --group: rgba(255, 255, 255, 0.06);
  --group-active: rgba(255, 255, 255, 0.1);
  --accent: #65d9ff;
  color-scheme: dark;
  z-index: 30;
  inset: 0;
  width: 100%;
  padding: calc(env(safe-area-inset-top) + 10px) max(16px, env(safe-area-inset-right)) calc(var(--safe-bottom) + 28px) max(16px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background: var(--chrome);
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  opacity: 1;
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(0.32, 0.72, 0, 1), visibility 380ms;
}

.favorites-panel.is-open,
:root[data-basemap-theme] .favorites-panel.is-open { transform: translateY(0); }

.favorites-panel .panel-header { min-height: 44px; }

.favorites-panel #step-list .panel-header { margin-bottom: 14px; }

.favorites-panel .panel-header h2 {
  font-size: 22px;
  font-weight: 680;
}

.favorites-panel .panel-header .add-flow-title { font-size: 17px; font-weight: 600; letter-spacing: 0; }

.favorites-panel .panel-header .icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--group);
  color: var(--ink);
}

.favorites-panel .panel-header .icon-button svg { width: 15px; height: 15px; stroke-width: 2.4; }

.favorites-panel .notification-status {
  min-height: 48px;
  margin: 0 0 16px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--group);
  font-size: 15px;
  font-weight: 500;
}

.favorites-panel .notification-status.is-default,
.favorites-panel .notification-status.is-actionable,
.favorites-panel .notification-status.is-denied { color: var(--amber); text-decoration: none; }

.favorites-panel .favorites-list { gap: 16px; }

.favorites-panel .favorites-empty {
  min-height: 0;
  padding: 28px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .favorites-empty strong { font-size: 17px; font-weight: 600; }
.favorites-panel .favorites-empty span { margin: 4px auto 0; font-size: 15px; }

.favorites-panel .favorite-item {
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .favorite-focus { min-height: 50px; padding: 12px 16px; }
.favorites-panel .favorite-focus:hover { background: transparent; }
.favorites-panel .favorite-focus:active { background: var(--group-active); }

.favorites-panel .favorite-copy strong {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.favorites-panel .favorite-remove {
  display: grid;
  width: 50px;
  place-items: center;
  border: 0;
  color: var(--ink-muted);
}

.favorites-panel .favorite-remove:active { color: var(--red); }

.favorites-panel .favorite-alert-preferences,
.favorites-panel .alert-preferences {
  display: block;
  margin: 0;
  padding: 0 0 0 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.favorites-panel .favorite-alert-preferences label,
.favorites-panel .alert-preferences label {
  min-height: 48px;
  padding: 8px 16px 8px 0;
  border-top: 0.5px solid var(--line);
  font-size: 15px;
}

.favorites-panel .alert-preferences {
  margin-top: 16px;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .alert-preferences label:first-of-type { border-top: 0; }
.favorites-panel .alert-preferences legend { display: none; }
.favorites-panel .alert-preferences strong { font-size: 17px; font-weight: 500; }
.favorites-panel .alert-preferences small { margin-top: 2px; font-size: 13px; }

.favorites-panel .add-address-button {
  min-height: 50px;
  margin: 16px 0 0;
  padding: 0 16px;
  justify-content: flex-start;
  border: 0;
  border-radius: 12px;
  background: var(--group);
  font-size: 17px;
  font-weight: 500;
}

.favorites-panel .add-address-button:active { background: var(--group-active); }
.favorites-panel .add-address-button svg { width: 20px; height: 20px; }

.favorites-panel .favorite-feedback:empty { display: none; }

.favorites-panel .notification-history { margin-top: 28px; padding-top: 0; border: 0; }

.favorites-panel .notification-history h3 {
  margin: 0 0 8px 16px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.favorites-panel .notification-history-list {
  gap: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .notification-history-item {
  gap: 2px;
  padding: 11px 16px;
  border: 0;
  border-top: 0.5px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.favorites-panel .notification-history-item:first-child { border-top: 0; }
.favorites-panel .notification-history-item strong { font-size: 15px; font-weight: 600; }
.favorites-panel .notification-history-item span { font-size: 14px; }
.favorites-panel .notification-history-item time { color: var(--ink-muted); font-size: 12px; }

.favorites-panel .confirm-address {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .confirm-address .favorite-pin { display: none; }

.favorites-panel .notification-card,
.favorites-panel .ios-install-card {
  margin-top: 16px;
  padding: 18px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

/* Demande d'autorisation centrée. */
.favorites-panel .notification-card { padding: 28px 20px 20px; text-align: center; }
.favorites-panel .notification-card-copy { flex-direction: column; align-items: center; gap: 14px; }
.favorites-panel .notification-icon { width: 56px; height: 56px; border-radius: 16px; }
.favorites-panel .notification-icon svg { width: 28px; height: 28px; }
.favorites-panel .notification-card strong { margin-bottom: 6px; font-size: 20px; }
.favorites-panel .notification-card-copy > div > span { font-size: 15px; line-height: 1.4; }
.favorites-panel .ios-install-card ol { font-size: 15px; line-height: 1.5; }

.favorites-panel .primary-button {
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #04121d;
  font-size: 17px;
  font-weight: 600;
}

.favorites-panel .primary-button:active { opacity: 0.7; }

.favorites-panel .address-form { margin-top: 16px; }

.favorites-panel .address-field input {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

.favorites-panel .address-field input:focus { background: var(--group-active); }

/* Les suggestions forment une liste dans la page, sous le champ, au lieu
   d'un menu vitré flottant. */
.favorites-panel .address-results {
  position: static;
  margin-top: 16px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.favorites-panel .address-result {
  min-height: 50px;
  padding: 12px 16px;
  border-bottom: 0.5px solid var(--line);
}

.favorites-panel .address-result:last-child { border-bottom: 0; }
.favorites-panel .address-result:hover { background: transparent; }
.favorites-panel .address-result:active { background: var(--group-active); }
.favorites-panel .address-result strong { font-size: 16px; font-weight: 500; }
.favorites-panel .address-result svg { width: 18px; height: 18px; }
.favorites-panel .address-result-location strong { color: var(--accent); }
.favorites-panel .address-results-empty { padding: 16px; font-size: 15px; }
.favorites-panel #search-feedback { padding: 0 4px; color: var(--amber); font-size: 14px; }
.favorites-panel .confirm-address .favorite-copy span { color: var(--ink-muted); font-size: 13px; }

/* Tout ce qui flotte sur la carte (bandeau de commune, légende, réglages,
   messages, boutons ronds) est un aplat sombre et translucide : pas de
   verre, de reflet ni d'ombre, et la carte reste visible à travers. Les
   couleurs ne suivent pas le thème du fond de carte. */
.place-panel,
.place-panel.is-open,
.place-panel.is-mobile-selected.is-expanded,
.legend,
.legend-toggle,
.settings-button,
.settings-popup,
.notice,
.frame-loader,
.radar-value-popup .maplibregl-popup-content {
  --ink: #f5f8fb;
  --ink-muted: #a9bccb;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #65d9ff;
  color-scheme: dark;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 19, 31, 0.72);
  box-shadow: none;
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Les panneaux de lecture longue (prévisions dépliées, recherche) sont un
   peu plus opaques pour rester lisibles sur une carte chargée. */
.place-panel.is-open:not(.is-mobile-selected),
.place-panel.is-mobile-selected.is-expanded,
.settings-popup {
  background: rgba(8, 19, 31, 0.88);
}

/* Exception : le résumé de prévision mobile reprend le bleu nuit des barres,
   plus transparent, avec un flou qui garde le texte lisible sur la carte. */
.place-panel.is-mobile-selected,
.place-panel.is-mobile-selected.is-expanded {
  --ink-muted: #c3d2df;
  border-color: rgba(120, 170, 230, 0.16);
  background: rgba(3, 14, 36, 0.74);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.place-panel.is-mobile-selected.is-expanded {
  background: rgba(3, 14, 36, 0.84);
}

.radar-value-popup .maplibregl-popup-tip { border-top-color: rgba(8, 19, 31, 0.72); }

.place-panel .address-results {
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 19, 31, 0.88);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.legend-toggle:hover,
.settings-button:hover:not(:disabled) { background: rgba(8, 19, 31, 0.72); }

.legend-toggle:active,
.settings-button:active { background: rgba(8, 19, 31, 0.9); transform: none; }

/* La légende est centrée verticalement par translateY(-50%) : sans lui à
   l'appui, le bouton descendait de 22 px sous le doigt et le relâchement,
   hors du bouton, n'était plus un clic. */
.legend-toggle:active { transform: translateY(-50%); }

/* Sur tablette et ordinateur, même design que sur téléphone : en-tête et
   frise en barres pleine largeur bleu nuit, légende et réglages en boutons
   ronds à droite, zoom au-dessus d'eux, fiche du lieu en carte flottante à
   gauche, « Mes adresses » en volet latéral. */
@media (min-width: 641px) {
  .app-shell::before { display: none; }

  .topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: auto;
    max-width: none;
    gap: 12px;
    padding: calc(env(safe-area-inset-top) + 8px) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
    border: 0;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: var(--chrome);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
  }

  .brand-block { min-width: 0; padding: 0 3px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy h1 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }

  .topbar-actions { gap: 8px; padding: 0; }

  .topbar .icon-button,
  .topbar .search-button {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    gap: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e9f4fb;
    font-size: 0;
    transition: opacity 120ms ease, background 120ms ease;
  }

  .topbar .icon-button:hover,
  .topbar .search-button:hover { background: rgba(255, 255, 255, 0.14); }
  .topbar .icon-button svg,
  .topbar .search-button svg { width: 19px; height: 19px; }

  /* La frise reste toujours en thème sombre, posée sur la barre opaque ;
     son contenu garde une largeur de lecture confortable. */
  .timeline-wrap {
    --ink: #f5f8fb;
    --ink-muted: #9fb1c1;
    --line: rgba(255, 255, 255, 0.16);
    --accent: #65d9ff;
    color-scheme: dark;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding: 8px max(16px, env(safe-area-inset-right)) calc(var(--safe-bottom) + 10px) max(16px, env(safe-area-inset-left));
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
    background: var(--chrome);
    color: var(--ink);
    transform: none;
  }

  .timeline-header,
  .timeline-panel { max-width: 760px; margin-right: auto; margin-left: auto; }

  .timeline-header { flex-direction: row; gap: 8px; margin-bottom: 2px; }
  .frame-kind-badge { font-size: 10px; text-shadow: none; }
  #frame-time { font-size: 15px; font-weight: 650; text-shadow: none; }

  .timeline-panel,
  :root[data-basemap-theme] .timeline-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .timeline-time-label,
  :root[data-basemap-theme] .timeline-time-label { color: var(--ink-muted); text-shadow: none; }

  /* Hauteur de la frise (~78 px) : repère pour tout ce qui doit rester
     au-dessus d'elle. */
  .source-credit { bottom: calc(var(--safe-bottom) + 86px); }
  .frame-loader { bottom: calc(var(--safe-bottom) + 96px); }

  .legend {
    display: none;
    position: fixed;
    z-index: 6;
    top: 62%;
    right: 72px;
    bottom: auto;
    left: auto;
    width: 150px;
    padding: 10px;
    transform: translateY(-50%);
  }

  .legend.is-open { display: block; }

  .legend-toggle {
    display: grid;
    position: fixed;
    z-index: 6;
    top: 62%;
    right: max(16px, env(safe-area-inset-right));
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    transform: translateY(-50%);
  }

  .legend-toggle svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .settings-wrap {
    top: calc(62% + 30px);
    right: max(16px, env(safe-area-inset-right));
    bottom: auto;
    left: auto;
  }

  .settings-wrap .settings-button { width: 44px; height: 44px; }

  /* Les réglages s'ouvrent à gauche de leur bouton, sans couvrir le zoom
     ni la légende. */
  .settings-popup {
    right: calc(100% + 12px);
    bottom: 0;
    left: auto;
    width: 248px;
    padding: 16px;
    border-radius: 18px;
  }

  .settings-group + .settings-group { margin-top: 14px; }
  .settings-group-label { margin-bottom: 7px; font-size: 11px; }
  .product-select { height: 36px; padding: 6px 28px 6px 10px; border-radius: 10px; font-size: 14px; }
  .range-selector button { height: 32px; font-size: 13px; }
  .settings-install-button { min-height: 40px; font-size: 14px; }

  .maplibregl-ctrl-top-right {
    top: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(38% + 34px);
    left: auto;
  }

  .maplibregl-ctrl-top-right .maplibregl-ctrl { margin: 0; }

  .maplibregl-ctrl-group,
  :root[data-basemap-theme] .maplibregl-ctrl-group {
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 22px !important;
    background: rgba(8, 19, 31, 0.72) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .maplibregl-ctrl-group button { width: 44px; height: 40px; }
  .maplibregl-ctrl-group button + button { border-top-color: rgba(255, 255, 255, 0.12) !important; }
  .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1) brightness(1.6); }

  .favorites-panel,
  :root[data-basemap-theme] .favorites-panel {
    left: auto;
    width: min(420px, 100%);
    padding: 18px 20px 28px;
    border-left: 0.5px solid rgba(255, 255, 255, 0.12);
    transform: translateX(100%);
  }

  .favorites-panel.is-open,
  :root[data-basemap-theme] .favorites-panel.is-open { transform: translateX(0); }

  /* La recherche est un vrai champ dans l'en-tête, juste après le nom. */
  .topbar-actions { flex: 1 1 auto; min-width: 0; }

  .topbar .search-button {
    width: clamp(220px, 34vw, 380px);
    min-width: 0;
    margin-right: auto;
    padding: 0 16px 0 13px;
    justify-content: flex-start;
    gap: 9px;
    border-radius: 999px;
    color: #9fb1c1;
    font-size: 15px;
    font-weight: 500;
  }

  /* Recherche ouverte : son propre champ recouvre exactement celui-ci. */
  body:has(.place-panel.is-open:not(.is-mobile-selected)) .topbar .search-button { visibility: hidden; }
  .search-button-label { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* La fiche du lieu flotte en haut à gauche ; les contrôles de carte
     restent à droite, sans jamais se déplacer. */
  .place-panel {
    top: calc(env(safe-area-inset-top) + 72px);
    right: auto;
    left: max(16px, env(safe-area-inset-left));
    width: clamp(340px, 40vw, 400px);
    max-height: calc(100% - env(safe-area-inset-top) - 72px - var(--safe-bottom) - 100px);
    padding: 8px;
    border-radius: 18px;
  }

  /* La recherche ouverte prend la place du champ de l'en-tête (position
     relevée par anchorPlaceSearch()) ; seuls les résultats débordent. */
  .place-panel.is-open:not(.is-mobile-selected) {
    top: var(--search-anchor-top, 8px);
    left: var(--search-anchor-left, 16px);
    width: var(--search-anchor-width, 380px);
    padding: 0;
    border: 0;
    background: transparent;
    transform: none;
  }

  .place-panel.is-open:not(.is-mobile-selected) .address-field input {
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #2b343e;
    font-size: 15px;
  }

  .place-panel.is-open:not(.is-mobile-selected) .address-field input:focus { background: #2b343e; box-shadow: inset 0 0 0 1px rgba(101, 217, 255, 0.6); }
  .place-panel.is-open:not(.is-mobile-selected) .place-search-close { top: 3px; right: 3px; border-radius: 50%; }

  .place-panel.is-open:not(.is-mobile-selected) .address-results {
    right: auto;
    width: max(100%, 360px);
    margin-top: 10px;
    border-radius: 14px;
  }

  .place-panel.is-mobile-selected,
  .place-panel.is-mobile-selected.is-expanded { background: rgba(3, 14, 36, 0.84); }

  /* Assez de place : la fiche reste dépliée, sans chevron. */
  .place-panel.is-mobile-selected .place-forecast { display: block; }
  .place-mobile-chevron { display: none; }
  .place-mobile-summary-main { padding: 8px 9px 4px; cursor: default; }
  .place-mobile-summary-head strong { font-size: 13px; }
  .place-mobile-rain-verdict { font-size: 22px; }
  .place-mobile-rain-summary { font-size: 13px; }
  .place-panel.is-mobile-selected .place-forecast { margin: 10px 9px 6px; }
}

/* Tablette : le curseur et les boutons de la frise gardent la taille
   tactile du téléphone. */
@media (min-width: 641px) and (pointer: coarse) {
  .timeline-range,
  .timeline-track-wrap { height: 30px; }

  .timeline-range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -10px; }
  .timeline-range::-moz-range-thumb { width: 24px; height: 24px; }

  .play-button,
  .latest-frame-button { width: 44px; height: 44px; }
}

/* Écran tactile large mais peu haut (iPhone Duo déplié, tablette couchée
   de petite taille) : les barres restent opaques et pleine largeur pour la
   bande iOS, mais s'amincissent. La frise tient sur une ligne, l'heure à
   gauche, comme sur ordinateur. */
@media (min-width: 641px) and (max-height: 700px) and (pointer: coarse) {
  .topbar { padding-top: calc(env(safe-area-inset-top) + 4px); padding-bottom: 4px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-copy h1 { font-size: 16px; }

  .topbar-actions { padding: 0; }
  .topbar .icon-button,
  .topbar .search-button { height: 36px; }

  .topbar .icon-button { width: 36px; }
  .topbar .icon-button svg,
  .topbar .search-button svg { width: 17px; height: 17px; }
  .place-panel.is-open:not(.is-mobile-selected) .address-field input { height: 36px; }
  .place-panel.is-open:not(.is-mobile-selected) .place-search-close { top: 1px; right: 1px; }

  .timeline-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 4px;
    padding-bottom: calc(var(--safe-bottom) + 4px);
  }

  .timeline-header {
    flex: none;
    min-width: 80px;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .timeline-panel { flex: 0 1 760px; min-width: 0; margin: 0; }

  .play-button,
  .latest-frame-button { width: 40px; height: 40px; }

  /* En-tête de ~45 px, frise de ~49 px. */
  .place-panel {
    top: calc(env(safe-area-inset-top) + 57px);
    max-height: calc(100% - env(safe-area-inset-top) - 57px - var(--safe-bottom) - 65px);
  }

  .source-credit { bottom: calc(var(--safe-bottom) + 54px); }
  .frame-loader,
  .install-card { bottom: calc(var(--safe-bottom) + 64px); }
  .legend-toggle,
  .legend { top: 56%; }
  .settings-wrap { top: calc(56% + 30px); }
  .maplibregl-ctrl-top-right { bottom: calc(44% + 34px); }
}

/* iPhone Duo déplié (data-unfolded, posé par syncStandaloneViewportGap()).
   L'heure et le Wi-Fi tiennent dans une capsule au coin haut droit, mais
   iOS en déduit une marge sur tout un côté : 61 px en haut en portrait,
   84 px à droite en paysage. En webapp portrait, l'en-tête remonte dans
   cette bande en laissant la capsule libre ; en paysage, seuls les
   éléments à hauteur de la capsule (l'en-tête) gardent la marge droite. */
@media (display-mode: standalone) and (orientation: portrait) and (min-width: 641px) {
  :root[data-unfolded] .topbar { padding-top: 8px; padding-right: 136px; }

  :root[data-unfolded] .place-panel {
    top: 72px;
    max-height: calc(100% - 72px - var(--safe-bottom) - 100px);
  }
}

:root[data-unfolded] .legend-toggle,
:root[data-unfolded] .settings-wrap,
:root[data-unfolded] .maplibregl-ctrl-top-right { right: 16px; }

:root[data-unfolded] .timeline-wrap { padding-right: 16px; }

/* Ordinateur : sans la bande iOS à masquer, les barres pleine largeur ne
   servent plus. En-tête et frise deviennent des éléments flottants
   compacts, du même bleu nuit, et la carte occupe tout l'écran. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .topbar {
    top: 16px;
    right: auto;
    left: 16px;
    width: max-content;
    max-width: calc(100% - 32px);
    gap: 10px;
    padding: 8px 8px 8px 10px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(8, 19, 31, 0.92);
    box-shadow: 0 8px 24px rgba(2, 9, 16, 0.22);
  }

  .brand-block { flex: none; gap: 8px; padding: 0 2px; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar-actions { flex: none; padding: 0; }
  .topbar .search-button { width: 300px; margin-right: 6px; }

  /* La fiche du lieu s'aligne sous l'en-tête flottant, bien détachée. */
  .place-panel {
    top: 88px;
    left: 16px;
    width: 380px;
    max-height: calc(100% - 88px - 104px);
  }

  .timeline-wrap {
    right: auto;
    bottom: 16px;
    left: 50%;
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 10px 8px 18px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(8, 19, 31, 0.92);
    box-shadow: 0 8px 24px rgba(2, 9, 16, 0.22);
    transform: translateX(-50%);
  }

  /* L'heure passe à gauche de la frise : une seule ligne. */
  .timeline-header {
    flex: none;
    min-width: 86px;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .timeline-panel { flex: 1 1 auto; min-width: 0; margin: 0; max-width: none; }

  .source-credit { bottom: 3px; }
  .frame-loader { bottom: 96px; }
  .install-card { bottom: 96px; }
}

/* Fenêtre « Notifications » d'un lieu suivi : même page bleu nuit que
   « Mes adresses », quel que soit le fond de carte. */
.place-notifications-dialog {
  --ink: #f5f8fb;
  --ink-muted: #9fb1c1;
  --line: rgba(255, 255, 255, 0.1);
  --group: rgba(255, 255, 255, 0.06);
  --accent: #65d9ff;
  color-scheme: dark;
  width: min(400px, 100%);
  padding: 18px 20px 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: var(--chrome);
  box-shadow: 0 24px 70px rgba(2, 8, 15, 0.5);
  color: var(--ink);
}

.place-notifications-dialog .eyebrow,
.place-notifications-dialog .place-notification-title { display: none; }
.place-notifications-dialog .panel-header h2 { font-size: 22px; font-weight: 680; }

.place-notifications-dialog .panel-header .icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: var(--group);
  color: var(--ink);
}

.place-notifications-dialog .panel-header .icon-button svg { width: 15px; height: 15px; stroke-width: 2.4; }

.place-notifications-dialog .place-notification-controls {
  gap: 0;
  margin-top: 16px;
  padding: 0 0 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--group);
}

/* Libellé à gauche, interrupteur à droite, comme dans « Mes adresses ». */
.place-notifications-dialog .place-notification-option {
  min-height: 56px;
  padding: 8px 16px 8px 0;
  flex-direction: row-reverse;
  justify-content: space-between;
  border-top: 0.5px solid var(--line);
}

.place-notifications-dialog .place-notification-title + .place-notification-option { border-top: 0; }
.place-notifications-dialog .place-notification-controls strong { font-size: 17px; font-weight: 500; }
.place-notifications-dialog .place-notification-controls small { margin-top: 2px; font-size: 13px; }

.place-notifications-dialog .primary-button {
  min-height: 50px;
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #04121d;
  font-size: 17px;
  font-weight: 600;
}

.place-notifications-dialog .primary-button:active { opacity: 0.7; }
.place-notifications-dialog .place-favorite-feedback { font-size: 13px; }
.place-notifications-dialog .place-favorite-feedback:empty { display: none; }

/* Guide « Être alerté » : choix du lieu et explications. */
.guide-intro,
.guide-note { margin: 16px 4px 0; color: var(--ink-muted); font-size: 15px; line-height: 1.45; }
.guide-note { font-size: 14px; }
.ios-install-intro { margin: 0 0 12px; color: var(--ink); font-size: 15px; line-height: 1.45; }
.favorites-panel .alert-choices { position: static; }
.favorites-panel .alert-choice { min-height: 62px; }
.alert-choice-copy { flex: 1; min-width: 0; }
.alert-choice-copy strong,
.alert-choice-copy small { display: block; }
.favorites-panel .alert-choice-copy strong { color: var(--ink); font-size: 17px; }
.alert-choice-copy small { margin-top: 2px; color: var(--ink-muted); font-size: 13px; line-height: 1.35; }
.favorites-panel .alert-choice svg { stroke: var(--accent); }
