/*
 * Le design system d'écl[AI]re — la coquille Studio (ECL-23).
 *
 * Trois couleurs de marque, et une seule regle a leur sujet :
 *   --navy    #0F1B3D  la structure (bandeau, texte fort, panneau de marque)
 *   --primary #3A47FF  l'action (un bouton primaire, un lien, un focus, l'item actif)
 *   --brand-yellow #FFD23F  RESERVE a la marque : le [AI] du logo. Nulle part ailleurs.
 *
 * Les couleurs semantiques (succes, alerte, danger) ne disent que des ETATS :
 * un resultat de quiz, une preuve refusee, un quota atteint. Jamais une
 * decoration.
 *
 * Les composants promis aux autres tickets (docs/wiki/ui.md) : .card, .btn /
 * .btn-secondary / .btn-block, .pill, .key, .badge-*, .rail, .hero, .stat,
 * .progress-dots. Un ticket qui a besoin d'autre chose le dessine AVEC LES
 * JETONS, sans ajouter une couleur.
 *
 * Inter (texte) et Bricolage Grotesque (titres) sont servies depuis /fonts :
 * la CSP n'autorise aucune source externe.
 */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2');
}

:root {
  --navy: #0F1B3D;
  --primary: #3A47FF;
  --brand-yellow: #FFD23F;

  --primary-hover: #2b36d6;
  --primary-soft: #eceefe;

  --success: #147d55;
  --warning: #9a6400;
  --danger: #b3261e;
  --success-soft: #e6f4ee;
  --warning-soft: #fdf2df;
  --danger-soft: #fbeae9;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --border: #dce0ec;
  /* Le trait le plus discret : bord de la barre laterale, separateurs. */
  --border-soft: #e6e9f2;
  --text: var(--navy);
  --text-muted: #5a6484;
  --text-invert: #ffffff;
  /* Sur fond navy : le texte secondaire et les traits du bandeau. */
  --on-navy-muted: #b9c2de;
  --on-navy-line: #2a3557;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --sidebar-w: 256px;
  --rail-w: 320px;
  --shadow: 0 1px 2px rgb(15 27 61 / 8%), 0 8px 24px rgb(15 27 61 / 6%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Les titres : Bricolage Grotesque, Inter en repli si la police manque. */
  --font-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;

  --sidebar-bg: var(--surface);
  --sidebar-border: var(--border-soft);
}

/*
 * Le theme sombre (retouche par ECL-31, retour de Steven : « trop sombre »).
 *
 * Il ne redefinit que des JETONS — un composant ecrit avec eux suit le theme
 * sans une ligne de plus. Trois corrections, chacune mesuree par
 * `test/theme-contrast.test.js`, qui lit CE bloc et calcule les rapports :
 *
 *  - les SURFACES montent d'un cran au-dessus du fond (une carte se voit
 *    comme une carte, pas comme un trou un peu plus clair) ;
 *  - les BORDURES existent : `--border` tient 3:1 sur `--surface`, le seuil
 *    des elements d'interface. Un bord a 1,4:1 n'est pas un bord discret,
 *    c'est un bord absent ;
 *  - le TEXTE, principal et secondaire, tient 4,5:1 sur les trois fonds.
 *
 * `--success` et `--warning` s'eclaircissent aussi : en sombre, un vert a
 * 2,7:1 sur son fond doux ne dit plus « valide ». Ils ne servent que de
 * couleur de texte ou de bord (jamais de fond de bouton), donc les eclaircir
 * ne casse rien.
 */
[data-theme='dark'] {
  --bg: #0a1024;
  --surface: #18213f;
  --surface-2: #212c50;
  --border: #6875a4;
  --border-soft: #404d78;
  --text: #eef1fc;
  --text-muted: #a9b4d6;
  --primary-soft: #232d63;
  --success: #4ade9f;
  --warning: #f0be5a;
  --success-soft: #12352b;
  --warning-soft: #382b12;
  --danger-soft: #3f2020;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  /* La barre laterale reste distincte du fond, en sombre aussi. */
  --sidebar-bg: #101830;
  --sidebar-border: #2b3760;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 600; font-family: var(--font-display); letter-spacing: -0.015em; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 var(--space-3); }
a { color: var(--primary); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: var(--space-2); }

/* ---------- Coquille ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: var(--text);
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-3) var(--space-3);
  gap: var(--space-5);
}

/* Deconnecte : la coquille s'efface, l'ecran de connexion prend la page. */
.shell[data-signed-in='false'] .sidebar,
.shell[data-signed-in='false'] .topbar { display: none; }
.shell[data-signed-in='false'] .main { padding: 0; }

/* ECL-77 — IMMERSION : une page peut demander la FENETRE.
 *
 * « Quand on arrive sur le jeu il faudrait que ca prenne tout l'ecran »
 * (Steven, prod du 19/09). La coquille ne disparait pas, elle se REPLIE : la
 * page qui la veut pose `body[data-immersive]` en montant (la Quest :
 * public/js/pages/quest.js), la coquille l'enleve a chaque changement d'ecran
 * (public/js/05-app.js). Une REGLE, pas un `style=` : la CSP n'autorise aucun
 * inline, et rien ici ne force quoi que ce soit (pas de `!important`).
 *
 * Ce qui part : la barre laterale et la barre du haut. Ce qui reste : ce qui
 * vit HORS de la coquille — les toasts, les modales, la bulle de l'assistant
 * (ECL-55) — et la sortie, que la page doit porter elle-meme. */
body[data-immersive] .sidebar,
body[data-immersive] .topbar { display: none; }
body[data-immersive] .main { padding: 0; }
/* La scene mesure sa hauteur en `dvh` (la fenetre VISIBLE) ; la coquille en
 * `vh` (la grande fenetre, barre d'adresse deployee). Sur un telephone les
 * deux different de 60 a 100 px : `.main` depassait la scene, laissant une
 * bande du fond de l'app sous le theme et un defilement qui ne menait nulle
 * part (relecture ECL-77). Repliee, la coquille se mesure comme la scene. */
body[data-immersive] .shell { min-height: 100dvh; }

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-2);
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.brand-name { color: var(--text); }
/* La seule occurrence du jaune de la marque de tout le depot : le [AI] du logo,
   pose sur sa pastille navy pour rester lisible sur fond clair. */
.brand-ai {
  color: var(--brand-yellow);
  background: var(--navy);
  border-radius: var(--radius-sm);
  padding: 0 3px;
}

.nav { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; overflow-y: auto; }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
/* Administration : toujours en bas, juste au-dessus du pied utilisateur. */
.nav-group-admin { margin-top: auto; }
.nav-group-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 var(--space-2);
  margin-bottom: var(--space-1);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.925rem;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current='page'] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 18px; opacity: 0.9; }
.nav-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-foot { display: flex; flex-direction: column; gap: var(--space-2); }

/* ECL-72 : le choix d'organisation, dans le pied. Il n'existe dans la page
   qu'a partir de DEUX appartenances (05-app.js pose `hidden`). */
.sidebar-orgs { padding: 0 var(--space-2); }
.sidebar-orgs .select { width: 100%; font-size: 0.85rem; }

/* Le pied utilisateur : initiale, prenom, role · organisation. */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-top: 1px solid var(--border-soft);
  padding-top: var(--space-3);
}
.sidebar-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--text-invert);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}
.sidebar-identity { min-width: 0; flex: 1; }
.sidebar-name { font-weight: 600; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-role { color: var(--text-muted); font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
}
.topbar-title { margin: 0; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); font-family: var(--font); }
.topbar-tools { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.topbar-tools .select { width: auto; min-height: 32px; padding: 2px var(--space-2); font-size: 0.85rem; }

.main { padding: 0 var(--space-5) var(--space-6); flex: 1; }

/* ---------- Composants ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-4);
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card-title { margin: 0; font-size: 1rem; }

/* Le bandeau navy : « ton prochain geste », un debrief, une invitation forte. */
.hero {
  background: var(--navy);
  color: var(--text-invert);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.hero-main { flex: 1 1 320px; min-width: 0; }
.hero-eyebrow { color: var(--on-navy-muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-2); }
.hero-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 0 0 var(--space-2); color: var(--text-invert); }
.hero-lead { color: var(--on-navy-muted); margin-bottom: var(--space-4); }
.hero-side { flex: 0 0 200px; border-left: 1px solid var(--on-navy-line); padding-left: var(--space-5); }
.hero .btn-secondary { background: var(--text-invert); color: var(--navy); border-color: transparent; }
.hero .btn-secondary:hover { background: var(--on-navy-muted); }

/* Les etapes d'un module : lecon, quiz, geste, preuve. */
.steps { display: flex; flex-direction: column; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.step { display: flex; align-items: center; gap: var(--space-3); font-size: 0.9rem; color: var(--on-navy-muted); }
.step-dot {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  border: 1px solid var(--on-navy-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}
.step-done { color: var(--text-invert); }
.step-done .step-dot { background: var(--primary); border-color: var(--primary); color: var(--text-invert); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--text-invert);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  min-height: 36px;
  text-decoration: none;
}
.btn:hover { background: var(--primary-hover); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: none; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-block { width: 100%; }
.btn-icon { padding: var(--space-2); background: none; color: var(--text); border-color: var(--border); }
.btn-danger { background: var(--danger); }
.btn-sm { min-height: 30px; padding: var(--space-1) var(--space-3); font-size: 0.85rem; }

.select, .input, .textarea {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  min-height: 36px;
}
.textarea { min-height: 96px; resize: vertical; }

/* La pastille : un compte, une semaine, un libelle court. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.pill-done { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.pill-current { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

/* La puce d'un module : M1, A2, C3. */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* La meme puce sur fond navy. */
.key-invert { background: var(--on-navy-line); color: var(--text-invert); }

/* Un chiffre et son unite : minutes gagnees, modules valides, etoiles. */
.stat { display: flex; align-items: baseline; gap: var(--space-2); }
.stat-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat-unit { color: var(--text-muted); font-size: 0.9rem; }
.stat-note { color: var(--text-muted); font-size: 0.85rem; }

/* La progression en points : un point par ecran, un par module. */
.progress-dots { display: flex; align-items: center; gap: 6px; }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.progress-dot-done { background: var(--primary); }
.progress-dot-current { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* La colonne de droite : 320 px, sous la carte principale en petit ecran. */
.layout-rail { display: grid; grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: var(--space-4); align-items: start; }
.rail { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

/* Une liste de lignes cliquables (« Pratiquer », un choix de module). */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.row-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-2);
  border: 0;
  border-top: 1px solid var(--border-soft);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.rows li:first-child .row-link { border-top: 0; }
.row-link:hover { background: var(--surface-2); }
.row-text { flex: 1; min-width: 0; }
.row-title { font-weight: 500; }
.row-note { color: var(--text-muted); font-size: 0.85rem; }
.row-chevron { width: 16px; height: 16px; flex: 0 0 16px; color: var(--text-muted); }

/* Les etats, et rien d'autre. */
.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--surface-2);
  color: var(--text-muted);
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.empty { color: var(--text-muted); padding: var(--space-5); text-align: center; }
/* Une panne ne ressemble JAMAIS a un resultat vide. */
.error-state {
  border: 1px solid var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: var(--radius);
  padding: var(--space-4);
}
/* Un chiffre indisponible n'est pas un zero : il le DIT. */
.unavailable { color: var(--warning); font-size: 0.9rem; font-weight: 500; }

/* ---------- L'accueil ---------- */

.home-head { padding: var(--space-4) 0 var(--space-5); display: flex; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; }
.home-day { color: var(--text-muted); font-size: 0.85rem; margin-bottom: var(--space-1); }
.home-hello { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.home-search { flex: 1 1 260px; max-width: 360px; margin-left: auto; }
.home-results { margin-top: var(--space-2); }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.home-grid .card { margin-bottom: 0; }

/* Le temps gagne de la semaine : une barre par jour, la cible en pointille. */
.bars { display: flex; align-items: flex-end; gap: var(--space-2); height: 72px; margin-top: var(--space-4); }
.bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--space-1); height: 100%; }
.bar-fill { width: 100%; border-radius: var(--radius-sm); background: var(--primary-soft); min-height: 4px; }
.bar-fill-on { background: var(--primary); }
.bar-label { font-size: 0.7rem; color: var(--text-muted); }

/* Le parcours : une ligne par parcours, une puce par bloc. */
.track-line { padding: var(--space-3) 0; border-top: 1px solid var(--border-soft); }
.track-line:first-child { border-top: 0; padding-top: 0; }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.track-name { font-weight: 600; }
.track-count { color: var(--text-muted); font-size: 0.85rem; }
.track-blocs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
/* La certification : en pointille tant qu'elle n'est pas obtenue. */
.dashed {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-4);
}

/* ---------- Toasts (les dialogs natifs sont bannis) ---------- */

.toast-stack {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: 60;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow);
  color: var(--text);
}
.toast-success { border-left-color: var(--success); }
.toast-warning { border-left-color: var(--warning); }
.toast-error { border-left-color: var(--danger); }

/* ---------- Modale ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(15 27 61 / 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  z-index: 70;
}
/* `hidden` doit gagner sur `display: flex`, sinon le voile invisible reste
   devant la page et avale tous les clics (bug attrape par le smoke). */
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--space-5);
  width: min(480px, 100%);
  box-shadow: var(--shadow);
}
.modal-title { margin-bottom: var(--space-3); }
.modal-actions { display: flex; gap: var(--space-2); justify-content: flex-end; margin-top: var(--space-4); }

/* ---------- Petits ecrans ---------- */

@media (max-width: 1080px) {
  .layout-rail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    box-shadow: var(--shadow);
  }
  .shell.sidebar-open .sidebar { transform: translateX(0); }
  .main { padding: 0 var(--space-4) var(--space-5); }
  .topbar { padding: var(--space-3) var(--space-4); }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .home-head { padding-top: var(--space-2); }
  .home-hello { font-size: 28px; }
  .home-search { margin-left: 0; max-width: none; }
  .hero-side { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--on-navy-line); padding-left: 0; padding-top: var(--space-4); }
}
@media (min-width: 861px) {
  .btn-icon[data-act='toggle-sidebar'] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}
