/* ===== PRYX — Brief Macro — local dashboard =====
   Thème sombre "terminal de trading" (23/09), épuré depuis le 24/09 sur
   retour direct de Hugo (référence : Uber -- interface sobre, quasi
   monochrome, où la couleur n'apparaît que là où elle a un sens fonctionnel,
   jamais comme décoration). Palette : fond quasi-noir, texte blanc/gris,
   vert = STRICTEMENT long/gain, rouge = STRICTEMENT short/perte, ambre en
   petite touche (alertes "mispriced" uniquement). Le bleu (`--teal*`) est
   volontairement RARE : réservé aux liens, à l'onglet actif de la nav, au
   focus des champs de formulaire et à la case à cocher -- jamais en
   décoration d'icône, de titre ou de badge. Pas de dégradé multicolore sur
   les boutons/cartes (essayé le 24/09, retiré le jour même -- Hugo l'a jugé
   too much / pas épuré). Les noms de variables teal(-bright/-soft/-dim/-2),
   coral(-bright/-dim) et peach(-1/-2) datent du thème clair et sont
   conservés pour ne pas casser les usages restants dans ce fichier, seules
   leurs VALEURS ont changé.

   25/09 -- pilote "Liquid Glass" (langage visuel iOS 26) : demande de Hugo
   de se rapprocher du design Apple actuel. Conformément à la leçon du
   24/09 (valider par petites touches avant d'appliquer partout), CETTE
   PASSE reste volontairement limitée à deux éléments à faible risque de
   "trop chargé" et faciles à annuler : (1) `--sans` priorise maintenant la
   police système (-apple-system → vraie San Francisco sur Mac/Safari) au
   lieu d'Inter en premier ; (2) la nav basse devient un vrai matériau
   "verre" flottant (`--glass-*`, voir juste avant `.bottom-nav`) -- seul
   endroit de l'app où Apple lui-même recommande le verre (chrome flottant
   au-dessus du contenu qui défile), PAS sur les cartes/boutons opaques.
   Rien d'autre n'a changé : palette, dégradés bannis, pas de ripple. Si
   Hugo valide, prochaine étape envisagée : large title qui se réduit au
   scroll sur l'en-tête (nécessite du JS, pas fait ici). */

:root {
  /* Noir pur système Apple (25/09, validé par Hugo sur aperçu image) --
     vrai systemBackground/secondarySystemBackground/label iOS en mode
     sombre, plus de teinte bleutée dans le fond/texte/bordures (l'ancien
     #090d13 était légèrement bleu). Cf. CLAUDE.md pour l'historique. */
  --bg: #000000;
  --bg-card: #1c1c1e;
  --bg-card-soft: #141414;
  --bg-sunken: #000000;
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);

  --text: #ffffff;
  --text-dim: rgba(235, 235, 245, 0.6);
  --text-faint: rgba(235, 235, 245, 0.3);

  /* Vert (25/09, v2) -- couleur de marque principale (onglet actif, liens,
     case à cocher, focus). Hugo a essayé le violet Apple puis demandé de
     repasser au MÊME vert que "Long"/journal/alertes techniques (voir
     `--green` plus bas) plutôt qu'une couleur à part -- noms de variables
     `--teal*` conservés (même pattern que le passage au thème sombre du
     23/09), seules les VALEURS pointent maintenant vers le vert. */
  --teal: #34c281;
  --teal-bright: #5cd9a0;
  --teal-soft: rgba(52, 194, 129, 0.1);
  --teal-dim: rgba(52, 194, 129, 0.16);
  --teal-2: #5cd9a0;

  /* Bleu vif -- dégradé d'en-tête + CTA "Générer le brief" + bouton "+" */
  --peach-1: #1c1c1e;
  --peach-2: #000000;
  --coral: #2f8dff;
  --coral-bright: #5fabff;
  --coral-dim: rgba(47, 141, 255, 0.16);

  --amber: #eab141;
  --amber-dim: rgba(234, 177, 65, 0.2);
  --green: #34c281;
  --green-dim: rgba(52, 194, 129, 0.2);
  --red: #f0525f;
  --red-dim: rgba(240, 82, 95, 0.2);
  --gray: #5c6678;

  /* Couleur "de pays" (25/09) -- identité visuelle des 4 sessions FX
     (pilules d'en-tête, timeline, cartes Sessions), réutilise exactement
     les 4 teintes foncées validées par Hugo pour les bulles (voir
     historique plus haut) -- pas de nouvelles couleurs inventées. */
  --session-sydney: #1f4f52;
  --session-sydney-text: #d7ecec;
  --session-tokyo: #3f3d68;
  --session-tokyo-text: #e2e0f5;
  --session-london: #1e3a5f;
  --session-london-text: #dbe6f2;
  --session-newyork: #3a4658;
  --session-newyork-text: #dbe2ea;

  /* Surface "sélectionné/actif" neutre -- remplace l'ancien dégradé
     multicolore (retiré le 24/09) : blanc cassé + texte foncé, comme un
     chip sélectionné dans Uber. Utilisée pour la pilule de session active,
     le segment ouvert de la timeline, le CTA principal. */
  --surface-active: #f3f5f9;
  --on-surface-active: #0a0e15;

  /* Formes "bulles allongées arrondies" -- pas de rectangles/carrés à angles
     francs, tout tend vers la pilule/capsule. */
  --radius: 22px;
  --radius-sm: 16px;
  --radius-lg: 30px;
  --radius-full: 999px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 24px 50px rgba(0, 0, 0, 0.55);
  --shadow-fab: 0 10px 24px rgba(0, 0, 0, 0.5);

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --digital: "Orbitron", var(--mono);
  /* Police système en priorité (résout en vraie San Francisco sur le Mac de
     Hugo/Safari) -- Inter reste le repli sur les autres OS/navigateurs.
     Partie du passage "Liquid Glass" du 25/09, voir plus bas. */
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", ui-sans-serif, sans-serif;

  /* ---- Liquid Glass (25/09) -- matériau "verre" réservé au chrome flottant
     au-dessus du contenu (nav basse). Ne PAS l'appliquer aux cartes/boutons
     opaques (CTA, cartes) -- Apple lui-même réserve le verre à la couche de
     navigation, pas au contenu. Voir historique dans le commentaire d'en-tête. */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(28px) saturate(180%);

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  /* enlève le flash gris/bleu par défaut d'iOS/Android au tap -- sans ça,
     chaque carte/bouton "clignote" avant sa propre animation, ce qui casse
     la fluidité même quand les transitions CSS sont correctes */
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  overflow-x: hidden; /* filet de sécurité : jamais de défilement horizontal */
  -webkit-overflow-scrolling: touch; /* défilement à inertie sur iOS */
}

button, a, .nav-btn, .nav-fab, .session-pill, .driver-card, .pair-card,
.watcher-card, .journal-card, input, select, textarea, label {
  touch-action: manipulation; /* supprime le délai de 300ms au tap et le double-tap-zoom */
}

/* conteneurs du fondu au tap (voir app.js) -- doivent être positionnés et
   clipper leur contenu pour que la bulle de ripple reste dans les limites
   de la forme (utile en particulier sur les formes rondes/pilule). Tous les
   `<button>` le sont par défaut ci-dessous ; les autres conteneurs
   interactifs (cartes, pilules) sont listés explicitement. */
::selection { background: var(--teal-dim); color: var(--teal); }

a { color: var(--teal-2); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ---------- en-tête : dégradé pêche/corail + salutation + pilules horaires ---------- */

.app-header {
  padding: calc(14px + var(--safe-top)) 20px 16px;
  background: linear-gradient(165deg, var(--peach-1) 0%, var(--peach-2) 100%);
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}
.app-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 320px 200px at 90% -20%, rgba(255, 255, 255, 0.06), transparent 60%);
  pointer-events: none;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.85;
}
/* .brand-mini-mark est directement l'élément <img> (plus de wrapper <span>
   autour d'un <svg> depuis le passage au logo fourni par Hugo). */
.brand-mini-mark {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}

.header-live-clock {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--digital);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.clock-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.45);
  animation: pulse-dot 2s ease-in-out infinite;
  flex: none;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.greeting {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 16px;
}
.greeting-hello {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.greeting-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 600;
}
.greeting-status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint);
}
.greeting-status-dot.open { background: var(--green); box-shadow: 0 0 5px var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.greeting-status-dot.closed { background: rgba(255, 255, 255, 0.22); }
.greeting-regime {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- pilules horaires de session -- présentes sur TOUTES les pages ---------- */

.session-pills {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 5px;
  margin-top: 15px;
  overflow-x: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
  transition: mask-image 0.2s var(--ease-out);
}
.session-pills::-webkit-scrollbar { display: none; }
/* léger fondu sur le bord droit -- signale qu'on peut faire glisser s'il y a
   plus de pilules que de place (ex. écrans très étroits) */
.session-pills.has-overflow {
  -webkit-mask-image: linear-gradient(to right, black calc(100% - 26px), transparent);
  mask-image: linear-gradient(to right, black calc(100% - 26px), transparent);
}

/* Ancienne idée "une couleur par pays" (25/09, essayée puis abandonnée le
   jour même -- Hugo a trouvé les 4 teintes pas assez distinctes/trop
   bleues, puis a préféré un seul vert partout, voir CLAUDE.md). Les
   tokens `--session-*` restent définis dans :root si jamais l'idée
   revient un jour, mais plus aucune règle ne les applique ici -- pilules
   et timeline utilisent `--green` directement (cf. règles juste après). */

.session-pill {
  position: relative;
  flex: none;
  width: 76px; /* largeur fixe et délibérée : 4 pilules tiennent sur un écran
    de téléphone étroit sans que le texte (même invisible, replié) du
    compte à rebours ne pousse la largeur intrinsèque du flex item */
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
  padding: 5px 8px 4px 8px;
  cursor: pointer;
  transition: background 0.18s var(--ease-out), transform 0.15s var(--ease-spring), max-height 0.25s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.session-pill:active { transform: scale(0.96); }
.session-pill[data-active="true"] {
  background: var(--green);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.session-pill-top {
  display: flex;
  align-items: center;
  gap: 4px;
}
.session-pill-flag { font-size: 12px; line-height: 1; flex: none; }
.session-pill-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; overflow: hidden; }
.session-pill-city {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.session-pill[data-active="true"] .session-pill-city { color: var(--on-surface-active); }
.session-pill-time {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.session-pill[data-active="true"] .session-pill-time { color: var(--on-surface-active); opacity: 0.8; }
.session-pill-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-faint);
}
.session-pill[data-active="true"] .session-pill-dot {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.session-pill-countdown {
  display: block;
  width: 100%;
  font-size: 9px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.55);
  max-height: 0;
  overflow: hidden;
  white-space: normal; /* replie sur 2 lignes dans la largeur fixe de la
    pilule plutôt que de forcer un débordement horizontal */
  transition: max-height 0.22s var(--ease-out), margin-top 0.22s var(--ease-out);
}
.session-pill.expanded .session-pill-countdown {
  max-height: 26px;
  margin-top: 4px;
}
.session-pill[data-active="true"] .session-pill-countdown { color: var(--on-surface-active); opacity: 0.85; }

/* ---------- contenu principal ---------- */

.app-content {
  flex: 1;
  padding: 20px 18px calc(96px + var(--safe-bottom));
}

.view { animation: view-in 0.25s var(--ease-out) both; }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 28px 0 13px;
}
.section-title .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.headline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 17px 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.example-banner {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.weekend-banner {
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.state-msg {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 50px 0;
}

/* ---------- entrée animée des cartes ---------- */

@keyframes card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.driver-card, .pair-card, .journal-card, .watcher-card {
  animation: card-in 0.4s var(--ease-out) both;
  /* le décalage en cascade (animation-delay) est déjà posé en JS, carte par
     carte, au rendu (renderDrivers/renderPairs/watcher/journal) -- rien à
     dupliquer ici en CSS. */
}

/* ---------- sessions live (timeline + cartes par session) ---------- */

.sessions-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sessions-head { display: flex; flex-direction: column; gap: 6px; }
.sessions-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sessions-title em {
  font-style: italic;
  color: var(--text-dim);
}
.sessions-sub { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--text-faint); }
.sessions-sub strong { color: var(--text-dim); font-weight: 700; }

.sessions-timeline {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 14px 14px 10px;
}
.sessions-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.sessions-timeline-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.sessions-timeline-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.sessions-active-badge {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-transform: uppercase;
}
.sessions-active-badge[data-closed="true"] { background: var(--bg-sunken); color: var(--text-faint); }

.sessions-bars {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sessions-bar-row {
  position: relative;
  height: 22px;
  background: var(--bg-sunken);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.sessions-bar-row-label {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  z-index: 2;
  text-transform: uppercase;
  pointer-events: none;
}
/* segment(s) réel(s) de la fenêtre UTC de la session -- une session qui
   traverse minuit (Sydney) est dessinée en DEUX segments distincts plutôt
   que d'étirer une seule barre sur le reste de la journée : c'est le bug
   signalé par Hugo sur une autre app (barre "ouverte" en continu alors que
   la session est en fait fermée) qu'on évite ici par construction. */
.sessions-bar-seg {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.055);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-spring);
}
.sessions-bar-seg.is-open {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-dim);
  transform: scaleY(1.05);
}
.sessions-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--text);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
  border-radius: 1px;
  pointer-events: none;
  z-index: 3;
  transition: left 1s linear;
}

.sessions-ruler { position: relative; height: 22px; margin-top: 4px; }
.sessions-ruler-tick {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transform: translateX(-50%);
}
.sessions-ruler-local {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.sessions-ruler-utc {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 420px) {
  .sessions-grid { grid-template-columns: 1fr; }
}

.session-mini-card {
  background: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.session-mini-card[data-active="true"] {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.045);
}
.session-mini-card-head { display: flex; align-items: center; gap: 7px; }
.session-mini-flag { font-size: 15px; line-height: 1; }
.session-mini-name { font-weight: 800; font-size: 12px; color: var(--text); flex: 1; }
.session-mini-status { width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint); flex: none; }
.session-mini-card[data-active="true"] .session-mini-status {
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
.session-mini-hours { font-family: var(--mono); font-size: 10px; color: var(--text-faint); }
.session-mini-volume {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.session-mini-pairs-label, .session-mini-char-label {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2px;
}
.session-mini-pairs, .session-mini-char { font-size: 10.5px; color: var(--text-dim); line-height: 1.45; }

/* ---------- driver cards ---------- */

.drivers-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.driver-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px 17px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}
.driver-card:active { transform: scale(0.99); }

.driver-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.driver-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.driver-icon svg { width: 16px; height: 16px; }

.driver-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--text);
}

.conviction {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: none;
}
.conviction-dots { display: flex; gap: 2px; }
.conviction-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border);
}
.conviction-dots span.filled { background: var(--text); }
.conviction-label { font-size: 9.5px; color: var(--text-faint); font-family: var(--mono); }

.driver-body {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.mispriced-box {
  background: var(--amber-dim);
  border: 1px solid rgba(234, 177, 65, 0.25);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mispriced-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}
.mispriced-title { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.mispriced-body { font-size: 12.5px; color: var(--text-dim); line-height: 1.55; }
.mispriced-conclusion {
  font-size: 12px;
  color: var(--amber);
  font-weight: 600;
  border-top: 1px dashed rgba(234, 177, 65, 0.35);
  padding-top: 6px;
  margin-top: 2px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
  color: var(--text-dim);
  line-height: 1.4;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.tag[data-state="priced"] .dot { background: var(--green); }
.tag[data-state="unpriced"] .dot { background: var(--amber); }
.tag[data-state="unpriced"] { color: var(--text); }

/* ---------- cascade ---------- */

.cascade-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cascade-summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.cascade-summary::-webkit-details-marker { display: none; }
.cascade-summary .chevron {
  margin-left: auto;
  color: var(--text-faint);
  transition: transform 0.15s var(--ease-out);
  font-size: 11px;
}
details[open] .cascade-summary .chevron { transform: rotate(90deg); }

.cascade-list { border-top: 1px solid var(--border-soft); }
.cascade-row {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--border-soft);
  align-items: flex-start;
}
.cascade-row:first-child { border-top: none; }
.cascade-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  width: 16px;
  flex: none;
  padding-top: 2px;
}
.cascade-icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.cascade-icon svg { width: 14px; height: 14px; }
.cascade-content { flex: 1; min-width: 0; }
.cascade-top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.cascade-pilier { font-size: 12.5px; font-weight: 700; color: var(--text); }
.impact-badge {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
}
.impact-badge[data-impact="HIGH"] { background: var(--red-dim); color: var(--red); }
.impact-badge[data-impact="MEDIUM"] { background: var(--amber-dim); color: var(--amber); }
.impact-badge[data-impact="LOW"] { background: var(--bg-sunken); color: var(--text-faint); }
.cascade-text { font-size: 12px; color: var(--text-dim); line-height: 1.55; }

/* ---------- alertes techniques (watcher) ---------- */

.watcher-list { display: flex; flex-direction: column; gap: 12px; }

.watcher-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 15px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.watcher-card-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.watcher-pair-label { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--text); }
.watcher-reason { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.watcher-time { font-size: 10.5px; color: var(--text-faint); font-family: var(--mono); }
.watcher-card-actions { display: flex; gap: 8px; align-items: center; margin-top: 2px; }

/* ---------- footer ---------- */

footer.page-footer {
  text-align: center;
  margin-top: 40px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ---------- boutons ---------- */

button.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.15s var(--ease-out), transform 0.12s var(--ease-spring), box-shadow 0.2s var(--ease-out), background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
}
.btn-icon { width: 14px; height: 14px; }
button.btn:hover { color: var(--text); border-color: var(--text-faint); }
button.btn:active { transform: scale(0.94); }
button.btn:disabled { opacity: 0.55; cursor: progress; filter: none; box-shadow: none; transform: none; }

button.btn.ghost { background: transparent; border-color: transparent; }
button.btn.small { padding: 6px 12px; font-size: 11.5px; }

button.btn.teal {
  background: var(--surface-active);
  border-color: transparent;
  color: var(--on-surface-active);
}
button.btn.teal:hover { filter: brightness(0.96); }
button.btn.teal.active { background: var(--surface-active); filter: brightness(0.9); }

/* ---- CTA principal : "Générer le brief" -- LE bouton de l'app ---- */

button.btn.cta {
  border: none;
  border-radius: var(--radius-full);
  background: var(--surface-active);
  color: var(--on-surface-active);
  font-size: 13.5px;
  font-weight: 800;
  padding: 13px 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  animation: cta-breathe 2.6s ease-in-out infinite;
}
button.btn.cta.wide { width: 100%; justify-content: center; margin-top: 4px; }
button.btn.cta .btn-icon { width: 15px; height: 15px; }
button.btn.cta:hover { animation-play-state: paused; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; }
button.btn.cta:active { transform: scale(0.97); }
button.btn.cta:disabled { animation: none; }
button.btn.cta.is-loading .btn-icon { animation: btn-spin 0.9s linear infinite; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

.btn-shine {
  position: absolute;
  top: 0; left: 0; height: 100%; width: 45%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-220%) skewX(-15deg);
  animation: cta-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(255, 255, 255, 0); }
  50% { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(255, 255, 255, 0.08); }
}
@keyframes cta-shine {
  0% { transform: translateX(-220%) skewX(-15deg); }
  35%, 100% { transform: translateX(320%) skewX(-15deg); }
}

.generated-at {
  display: block;
  text-align: center;
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: var(--mono);
  margin-top: 8px;
}

/* ---------- sélecteur de paires (page Générer) ---------- */

.generate-head { display: flex; flex-direction: column; gap: 10px; }

.selector-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.link-btn {
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-2);
  cursor: pointer;
  transition: color 0.15s var(--ease-out), transform 0.12s var(--ease-spring);
}
.link-btn:hover { color: var(--teal); }
.link-btn:active { transform: scale(0.92); }

.selector-count-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 10px;
  border-radius: 999px;
}

.selector-groups {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-top: 12px;
  box-shadow: var(--shadow-card);
}

.selector-group + .selector-group { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }

.selector-group-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.selector-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 6px;
  margin: 0 -6px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.12s var(--ease-out);
}
.selector-row:hover { color: var(--text); background: var(--bg-card-soft); }
.selector-row input { accent-color: var(--teal); width: 15px; height: 15px; cursor: pointer; }

.selector-error {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ---------- pair cards (résultat) ---------- */

.pairs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pair-card {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.pair-card[data-dir="long"] { border-top: 3px solid var(--green); }
.pair-card[data-dir="short"] { border-top: 3px solid var(--red); }
.pair-card[data-dir="wait"] { border-top: 3px solid var(--border); }

.pair-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  flex-wrap: wrap;
  row-gap: 6px;
}

.pair-flags { display: flex; align-items: center; flex: none; }
.flag-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-card-soft);
  border: 1.5px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
}
.flag-circle + .flag-circle { margin-left: -7px; }

.pair-label {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--text);
}

.direction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}
.direction-badge::before { content: ""; width: 6px; height: 6px; border-radius: 1px; }
.direction-badge[data-dir="long"] { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52, 194, 129, 0.35); }
.direction-badge[data-dir="long"]::before { border-bottom: 6px solid var(--green); background: none; }
.direction-badge[data-dir="short"] { background: var(--red-dim); color: var(--red); border: 1px solid rgba(240, 82, 95, 0.35); }
.direction-badge[data-dir="short"]::before { border-top: 6px solid var(--red); background: none; }
.direction-badge[data-dir="wait"] { background: var(--amber-dim); color: var(--amber); border: 1px solid rgba(234, 177, 65, 0.3); }
.direction-badge[data-dir="wait"]::before { border-radius: 50%; background: var(--amber); width: 5px; height: 5px; }

.pair-rr { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); margin-left: auto; }

.actionable-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.actionable-dot[data-on="true"] { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse-dot 2s ease-in-out infinite; }
.actionable-dot[data-on="false"] { background: var(--text-faint); }

.pair-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }

.pair-edge { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.pair-catalyst {
  font-size: 11.5px;
  color: var(--text-faint);
  font-style: italic;
  border-left: 2px solid var(--border);
  padding-left: 9px;
}

.timeframes { display: flex; gap: 5px; flex-wrap: wrap; }
.tf-chip {
  font-size: 10px;
  font-family: var(--mono);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  color: var(--text-faint);
}

table.plan-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin: -3px 0;
}
table.plan-table tr { background: var(--bg-card-soft); }
table.plan-table td { padding: 8px 4px; vertical-align: top; }
table.plan-table tr td:first-child { padding-left: 10px; border-radius: 10px 0 0 10px; }
table.plan-table tr td:last-child { padding-right: 10px; border-radius: 0 10px 10px 0; }
.plan-row-label {
  width: 78px;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-right: 10px;
  white-space: nowrap;
}
.plan-row-label.aggressive { color: var(--text-dim); }
.plan-row-label.limit { color: var(--text); }
.plan-row-label.stop { color: var(--red); }
.plan-row-label.tp { color: var(--green); }
.plan-price {
  font-family: var(--digital);
  font-weight: 500;
  font-size: 13px;
  width: 78px;
  white-space: nowrap;
  padding-right: 10px;
  color: var(--text);
}
.plan-rationale { color: var(--text-dim); line-height: 1.5; font-size: 11.5px; }
.plan-nofill {
  font-size: 11.5px;
  color: var(--text-faint);
  background: var(--bg-card-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  border: 1px dashed var(--border);
}

.no-plan {
  font-size: 12px;
  color: var(--text-faint);
  background: var(--bg-card-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.pair-actions { display: flex; gap: 8px; align-items: center; }

.copy-feedback {
  font-size: 11px;
  color: var(--green);
  opacity: 0;
  transform: translateY(2px) scale(0.9);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
}
.copy-feedback.show { opacity: 1; transform: none; }

details.pine-details summary { cursor: pointer; font-size: 11px; color: var(--text-faint); list-style: none; }
details.pine-details summary::-webkit-details-marker { display: none; }
details.pine-details summary:hover { color: var(--text-dim); }
pre.pine-code {
  margin-top: 8px;
  background: #060a11;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  color: #9fe6c4;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- journal de trading ---------- */

.journal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.journal-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  animation: card-in 0.25s var(--ease-out) both;
}

.journal-form-row { display: flex; gap: 10px; }
.journal-form-row.three .journal-field { flex: 1; min-width: 0; }
.journal-form-row .journal-field { flex: 1; min-width: 0; }

.journal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.journal-field input,
.journal-field select,
.journal-field textarea {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  background: var(--bg-card-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  outline: none;
  transition: border-color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.journal-field input:focus,
.journal-field select:focus,
.journal-field textarea:focus {
  border-color: var(--teal-2);
  background: var(--bg-card);
}
.journal-field textarea { resize: vertical; min-height: 60px; }

.dir-toggle { display: flex; gap: 8px; }
.dir-toggle button {
  flex: 1;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card-soft);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.12s var(--ease-spring);
  text-transform: none;
  letter-spacing: normal;
}
.dir-toggle button:active { transform: scale(0.96); }
.dir-toggle button[data-dir="long"].active { background: var(--green-dim); color: var(--green); border-color: transparent; }
.dir-toggle button[data-dir="short"].active { background: var(--red-dim); color: var(--red); border-color: transparent; }

.journal-form-actions { display: flex; gap: 10px; margin-top: 2px; }

.journal-list { display: flex; flex-direction: column; gap: 12px; }

.journal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 15px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.journal-card[data-outcome="win"] { border-left: 3px solid var(--green); }
.journal-card[data-outcome="loss"] { border-left: 3px solid var(--red); }
.journal-card[data-outcome="breakeven"] { border-left: 3px solid var(--amber); }
.journal-card[data-outcome="open"] { border-left: 3px solid var(--text-faint); }

.journal-card-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.journal-pair-label { font-family: var(--mono); font-weight: 800; font-size: 14px; color: var(--text); }

.outcome-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  margin-left: auto;
}
.outcome-badge[data-outcome="win"] { background: var(--green-dim); color: var(--green); }
.outcome-badge[data-outcome="loss"] { background: var(--red-dim); color: var(--red); }
.outcome-badge[data-outcome="breakeven"] { background: var(--amber-dim); color: var(--amber); }
.outcome-badge[data-outcome="open"] { background: var(--amber-dim); color: var(--amber); }

.journal-card-meta {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-faint);
  font-family: var(--mono);
}
.journal-r { color: var(--text-dim); font-weight: 700; }

.journal-prices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--mono);
}

.journal-notes {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  background: var(--bg-card-soft);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.journal-card-actions { display: flex; justify-content: flex-end; }
.journal-del-btn {
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.journal-del-btn:hover { color: var(--red); background: var(--red-dim); }
.journal-del-btn.confirm { color: var(--red); background: var(--red-dim); }

.journal-empty {
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
  padding: 34px 20px;
  background: var(--bg-card-soft);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ---------- navigation basse (3 destinations) ----------
   Passage "Liquid Glass" (25/09) : la barre flotte maintenant au-dessus du
   contenu (détachée des bords, capsule) avec un vrai matériau verre --
   c'est l'élément le plus fidèle au tab bar flottant d'iOS 26. Pilote de
   cette direction : voir la note dans l'en-tête du fichier avant de
   l'étendre ailleurs. */

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + var(--safe-bottom));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 0 var(--glass-highlight) inset, 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 11px;
  transition: color 0.15s var(--ease-out), transform 0.12s var(--ease-spring), background 0.2s var(--ease-out);
}
.nav-btn:active { transform: scale(0.92); }
.nav-icon { width: 22px; height: 22px; }
.nav-btn.active { color: var(--teal); }

.nav-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: -22px 2px 0;
  border: 3px solid var(--bg);
  background: var(--surface-active);
  color: var(--on-surface-active);
  box-shadow: var(--shadow-fab);
  cursor: pointer;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.2s var(--ease-out);
  flex: none;
}
.nav-fab svg { width: 22px; height: 22px; }
.nav-fab:active { transform: scale(0.9) rotate(90deg); }
.nav-fab.active svg { transform: rotate(45deg); }

@media (max-width: 400px) {
  .app-header { padding-left: 16px; padding-right: 16px; }
  .app-content { padding-left: 14px; padding-right: 14px; }
  .journal-form-row.three { flex-wrap: wrap; }
  .journal-form-row.three .journal-field { min-width: 44%; }
  .nav-btn { padding-left: 7px; padding-right: 7px; }
  .bottom-nav { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .clock-dot, .greeting-status-dot, .session-pill-dot, .actionable-dot,
  button.btn.cta, .btn-shine, .driver-card, .pair-card, .journal-card,
  .watcher-card, .view, .btn-icon {
    animation: none;
  }
}
