:root {
  color-scheme: light;
  --ink: #0f2e3d;
  --ink-fill: #0f2e3d;
  --ink-2: #0a242f;
  --ink-line: #234e5d;
  --ink-text: #b9d0d4;
  --ink-muted: #86a8ac;
  --paper: #f6f5f1;
  --surface: #ffffff;
  --line: #dde2dd;
  --muted: #5e6b6a;
  --text: #16201f;
  --teal: #2f7878;
  --signal: #e8593f;
  --gold: #b07d2a;
  --red: #d8434f;
  --shadow: 0 18px 40px -28px rgba(15, 46, 61, .48);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--text);
  font-size: 15px;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.settings-page {
  display: grid;
  gap: 18px;
  max-width: 980px;
}
.settings-messages {
  display: grid;
  gap: 8px;
}
.settings-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: opacity .4s ease, transform .4s ease;
}
.settings-message.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}
.settings-message.success {
  border-color: #b8ddd2;
  background: #edf8f4;
  color: #17604f;
}
.settings-message.error {
  border-color: #f0b8bd;
  background: #fff0f1;
  color: #a8323d;
}
.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ebece7;
}
.settings-tabs button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.settings-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(15,46,61,.08);
}
.settings-panel {
  display: grid;
  gap: 16px;
}
.settings-head {
  max-width: 680px;
  margin-bottom: 18px;
}
.settings-head h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}
.settings-head p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.settings-form {
  display: grid;
  gap: 16px;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.settings-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.settings-form input,
.settings-form select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.settings-form input:disabled {
  color: var(--muted);
  background: #f0f1ed;
}
.toggle-line {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}
.toggle-line input {
  width: 18px;
  min-height: 18px;
}
.segmented-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.segmented-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  font-size: 13px;
  font-weight: 700;
}
.billing-status,
.privacy-grid,
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.billing-status > div,
.privacy-grid > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}
.billing-status span,
.offer-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.billing-status b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
}
.offer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.offer-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}
.offer-card h3,
.privacy-grid h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
}
.offer-card p,
.privacy-grid p,
.settings-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.offer-card button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.portal-form { margin-top: 16px; }
.danger-zone {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.danger-action {
  justify-self: start;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 720px) {
  .settings-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .settings-tabs button { white-space: nowrap; }
  .field-grid,
  .billing-status,
  .privacy-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}

/* Protection copie, comptes non staff. Plan : docs/ecos/PLAN_PROTECTION_COPIE_APP.md */
.app-shell.copy-protected {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.app-shell.copy-protected :is(input, textarea, select, [contenteditable]:not([contenteditable="false"]), [data-allow-selection]),
.app-shell.copy-protected :is([contenteditable]:not([contenteditable="false"]), [data-allow-selection]) * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.app-shell.copy-protected :is(img, video) {
  -webkit-user-drag: none;
}

.mobile-backdrop { display: none; }

.side {
  position: sticky;
  top: 0;
  z-index: 360;
  display: flex;
  flex-direction: column;
  width: 212px;
  min-width: 212px;
  max-width: 212px;
  height: 100vh;
  padding: 16px 12px;
  background: var(--ink-fill);
  color: var(--ink-text);
}
.logo {
  display: block;
  overflow: hidden;
  padding: 2px 8px 16px;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo span { color: var(--signal); }
.nav a,
.sidebar-bottom .join-nav-action {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 1px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover,
.sidebar-bottom .join-nav-action:hover { background: #18465a; color: #fff; }
.nav a.on,
.sidebar-bottom .join-nav-action.on { background: #fff; color: var(--ink); font-weight: 600; }
.nav a.muted { color: var(--ink-muted); }
.nav .ic,
.sidebar-bottom .ic { width: 17px; height: 17px; flex: none; opacity: .88; }
.sidebar-bottom {
  margin-top: 8px;
}
.side .foot {
  margin-top: auto;
  padding: 11px;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  background: var(--ink-2);
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.4;
}
.side .foot b { color: #fff; }

.userbox {
  position: relative;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ink-line);
}
.userbtn {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-text);
  cursor: pointer;
  text-align: left;
}
.userbtn:hover { background: #18465a; }
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.uinfo {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.2;
}
.uinfo b {
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uinfo small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uchev { color: var(--ink-muted); flex: none; transition: transform .18s; }
.userbox.open .uchev { transform: rotate(180deg); }
.usermenu {
  position: absolute;
  left: calc(100% + 10px);
  bottom: 0;
  z-index: 370;
  display: none;
  min-width: 224px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 48px -18px rgba(10,36,47,.55);
}
.userbox.open .usermenu { display: block; }
.usermenu a,
.usermenu button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1c2a29;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  text-align: left;
}
.usermenu a:hover,
.usermenu button:hover { background: #f1f4f1; }
.usermenu a svg,
.usermenu button svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.usermenu .sep { height: 1px; margin: 5px 6px; background: var(--line); }
.usermenu .danger { color: var(--red); }
.usermenu a.on { background: #eef5f3; color: var(--ink); font-weight: 700; }
.usermenu-kicker {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px 6px;
}
.usermenu-kicker > span:first-child,
.usermenu-status em {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.usermenu-kicker > span:first-child { color: var(--muted); }
.usermenu-status {
  display: inline-flex;
  gap: 8px;
}
.usermenu-status em { color: var(--muted); }
.usermenu-status em.premium { color: var(--gold); }
.usermenu-status em.staff { color: var(--teal); }
.usermenu-theme {
  display: flex;
  gap: 3px;
  margin: 2px 6px 4px;
  padding: 3px;
  border-radius: 9px;
  background: #ebece7;
}
.usermenu-theme button {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  min-width: 0;
  padding: 7px 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.usermenu-theme button svg { width: 15px; height: 15px; }
.usermenu-theme button:hover { color: var(--ink); }
.usermenu-theme button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(15,46,61,.10);
}

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 34px 12px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.topbar h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}
.eyebrow {
  margin-bottom: 4px;
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.topbar-spacer { flex: 1; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.iconbtn {
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.iconbtn:hover { border-color: var(--teal); color: var(--ink); }
.iconbtn svg { width: 19px; height: 19px; }
.menu-btn { display: none; }

.page { padding: 12px 34px 70px; }
.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .6fr) minmax(220px, .6fr);
  gap: 14px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.intro-panel { padding: 26px; }
.compact-panel { padding: 20px; }
.placeholder-panel { max-width: 760px; padding: 30px; }
.accent {
  width: 46px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: var(--teal);
}
.kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.panel h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}
.panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.primary-action:hover { filter: brightness(1.06); }
/* Paramètres : bouton de formulaire inactif tant que les champs requis sont vides */
.settings-actions .primary-action:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.panel-label {
  margin: 0 0 12px !important;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.empty-metric {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 30px;
  font-weight: 700;
}
.muted-text { margin-top: 8px !important; font-size: 13px; }

.home-v2 { display: grid; gap: 18px; }
.page.home-page { padding: 12px 34px 70px; }
.home-v2 h2, .home-v2 h3 { margin: 0; color: var(--ink); font-family: "Hanken Grotesk", sans-serif; font-weight: 800; }
.home-v2 a { color: var(--teal); text-decoration: none; font-weight: 700; }
.home-v2 a:hover { color: var(--ink); }
.home-v2-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; padding: 32px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.home-v2-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-v2-kicker { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.home-v2-intro h2 { margin: 0 0 20px; font-size: 32px; line-height: 1.15; }
.home-v2-intro .home-v2-kicker { margin-bottom: 8px; }
.home-v2-intro .home-v2-first { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.home-v2-intro > p:last-child:not(.home-v2-kicker) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.home-v2-intro > p.home-v2-recommendation:last-child { color: var(--muted); font-size: 13.5px; font-style: italic; font-weight: 400; line-height: 1.5; }
.home-v2-featured { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.home-v2-station-band { display: flex; align-items: center; gap: 11px; padding: 13px 20px; background: color-mix(in srgb, var(--station-color) 12%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--station-color) 24%, var(--line)); }
.home-v2-station-icon, .home-v2-list-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--station-color); color: #fff; }
.home-v2-station-icon svg, .home-v2-list-icon svg { width: 21px; height: 21px; }
.home-v2-band-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.home-v2-band-copy b { color: var(--station-color); font-family: "Hanken Grotesk", sans-serif; font-size: 13.5px; font-weight: 800; }
.home-v2-band-copy small { color: #4d5c59; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; }
.home-v2-badge { flex: none; padding: 5px 11px; border: 1px solid #cfe2e2; border-radius: 999px; background: #eaf3f3; color: var(--teal); font-size: 12px; font-weight: 700; }
.home-v2-station-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 20px; }
.home-v2-station-body h3 { color: #152221; font-size: 25px; line-height: 1.22; }
.home-v2-description { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; margin: 0; color: #66736f; font-size: 15px; line-height: 1.6; }
.home-v2-competence { margin: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.home-v2-tag-new { flex: none; display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid color-mix(in srgb, var(--teal) 18%, #fff); border-radius: 8px; background: #e8f1f0; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.home-v2-tag-annale { flex: none; display: inline-flex; align-items: center; min-height: 24px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--gold) 60%, #fff); border-radius: 999px; background: #fff; color: color-mix(in srgb, var(--gold) 82%, #000); font-size: 10px; font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; }
.home-v2-actions { display: flex; align-items: center; gap: 20px; padding: 16px 24px 22px; border-top: 1px solid #edf1ee; }
.home-v2-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--teal); color: #fff; cursor: pointer; font-size: 15px; font-weight: 700; white-space: nowrap; }
.home-v2-primary:hover { background: var(--ink-fill); }
.home-v2-primary svg { width: 16px; height: 16px; }
.home-v2-actions > a { font-size: 14px; }
.home-v2-side { min-width: 0; border-radius: 12px; background: #f3f6f4; }
.home-v2-modes { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 28px 32px; }
.home-v2-modes h3, .home-v2-history h3 { font-size: 18px; }
.home-v2-mode { display: flex; align-items: center; gap: 14px; }
.home-v2-mode-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border: 1px solid #dde6e2; border-radius: 10px; background: #fff; color: var(--teal); }
.home-v2-mode-icon svg { width: 20px; height: 20px; }
.home-v2-mode b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.home-v2-mode p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
/* Panneau des modes : fond blanc, pastilles au style de l'icone du lanceur (glyphe teal sur tuile douce), pas d'orange.
   Le panneau etant blanc, la tuile prend le gris doux de la version mobile pour rester visible. */
.home-v2-side.home-v2-modes { border: 1px solid var(--line); background: #fff; }
.home-v2-modes .home-v2-mode-icon { border: 0; background: #f3f6f4; color: var(--teal); }
.home-v2-progress { display: flex; flex-direction: column; justify-content: flex-start; gap: 0; padding: 24px 26px 18px; border: 1px solid var(--line); background: #fff; }
.home-v2-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.home-v2-progress-heading h3 { font-size: 19px; }
.home-v2-stat { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 18px; padding: 16px 0; border-top: 1px solid #e4e9e5; }
.home-v2-progress-heading + .home-v2-stat { margin-top: 6px; border-top: 0; }
.home-v2-stat-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-v2-stat-copy > b { color: var(--text); font-size: 14px; font-weight: 700; }
.home-v2-stat-copy > small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.home-v2-track { height: 6px; margin-top: 4px; overflow: hidden; border-radius: 99px; background: #dde6e2; }
.home-v2-track span { display: block; height: 100%; border-radius: inherit; background: var(--teal); }
.home-v2-stat-value, .home-v2-average-score { display: flex; justify-content: flex-end; align-items: baseline; margin: 0; color: var(--ink); font-family: "IBM Plex Mono", monospace; line-height: 1; white-space: nowrap; }
.home-v2-stat-value b, .home-v2-average-score b { font-size: 32px; letter-spacing: -.04em; }
.home-v2-stat-value small, .home-v2-average-score small { margin-left: 3px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.home-v2-stat--peer .home-v2-stat-value { color: #4d5c59; }
.home-v2-stat--peer .home-v2-stat-value b { font-size: 26px; }
.home-v2-average-method { display: block; width: max-content; max-width: 100%; margin: 0 0 0 -4px; }
.home-v2-average-method select { min-height: 28px; max-width: 100%; padding: 3px 28px 3px 4px; border: 0; border-radius: 6px; background-color: transparent; color: var(--teal); cursor: pointer; font-size: 12px; font-weight: 700; }
.home-v2-average-method select:hover { background-color: #eaf3f3; }
.home-v2-average-method select:focus-visible { outline: 2px solid rgba(46,139,139,.22); outline-offset: 1px; }
.home-v2-average-panel[hidden] { display: none; }
.home-v2-history { display: grid; gap: 0; margin-top: 6px; padding-top: 16px; border-top: 1px solid #dde6e2; }
.home-v2-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.home-v2-history-heading a { font-size: 13px; white-space: nowrap; }
.home-v2-passage { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 58px; padding: 10px 0; border-top: 1px solid #e4e9e5; color: var(--text) !important; }
.home-v2-history > .home-v2-passage:first-of-type { border-top: 0; }
.home-v2-passage-dot { width: 10px; height: 10px; flex: none; border-radius: 3px; }
.home-v2-passage-copy { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.home-v2-passage-title { display: flex; align-items: flex-end; min-width: 0; font-size: 14.5px; }
.home-v2-passage-title-text { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.home-v2-passage-title-suffix { flex: none; margin-left: .25em; }
.home-v2-passage-copy small { color: var(--muted); font-size: 12.5px; }
.home-v2-note { flex: none; padding: 3px 9px; border-radius: 8px; background: #fbf0d9; color: #ad7414; font-family: "IBM Plex Mono", monospace; font-size: 14px; font-weight: 600; }
.home-v2-note--good { background: #e7f4e9; color: #328143; }
.home-v2-note--low { background: #fcebe9; color: #cc382f; }
.home-v2-note small { font-size: 10px; }
.home-v2-passage > .home-v2-note,
.home-v2-passage > .home-v2-note--good,
.home-v2-passage > .home-v2-note--low { padding: 0; border-radius: 0; background: transparent; color: var(--ink); }
.home-v2-unfinished { flex: none; padding: 3px 8px; border-radius: 8px; background: #eef1ee; color: var(--muted); font-size: 12px; font-weight: 700; }
.home-v2-second-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-v2-info-card { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.home-v2-info-card h3 { margin-bottom: 4px; font-size: 18px; }
.home-v2-info-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.home-v2-join > div:nth-child(2) { flex: 1; }
.home-v2-join p { color: var(--muted); }
.home-v2-join-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #eaf3f3; color: var(--teal); }
.home-v2-join-icon svg { width: 24px; height: 24px; }
.home-v2-join button { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid #c9d2cd; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 700; }
.home-v2-join button:hover { border-color: var(--teal); }
.home-v2-catalog { display: grid; gap: 14px; margin-top: 6px; }
.home-v2-catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-v2-catalog-heading h2 { font-size: 20px; }
.home-v2-catalog-heading a, .home-v2-catalog-mobile-link { font-size: 14px; }
/* Fiches gestes : encart comme le panneau du haut, trois cartes dans la grille des stations ; sur mobile, une ligne par fiche comme les stations.
   Fonds en variables (--surface, --paper) pour suivre le thème sombre sans règle dédiée. */
.home-v2-sheets { padding: 24px 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.home-v2-sheet-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-v2-sheet-card { display: flex; flex-direction: column; overflow: hidden; min-height: 178px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text) !important; text-decoration: none; }
.home-v2-sheet-card:hover { border-color: var(--teal); }
.home-v2-sheet-thumb { display: block; width: 100%; height: 160px; object-fit: cover; object-position: 50% 30%; border-bottom: 1px solid var(--line); background: #cdd0c5; }
.home-v2-sheet-card.is-locked .home-v2-sheet-thumb { filter: saturate(.85) contrast(.96); }
.home-v2-sheet-body { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; padding: 15px 17px 16px; }
.home-v2-sheet-body > b { font-family: "Hanken Grotesk", sans-serif; font-size: 17px; line-height: 1.2; color: var(--ink); }
.home-v2-sheet-body small { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-size: 14px; font-weight: 700; color: var(--teal); }
.home-v2-sheet-lock { color: #8a6a1f; }
.home-v2-sheet-lock svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .home-v2-sheet-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .home-v2-sheets { padding: 18px; }
  .home-v2-sheet-list { gap: 8px; }
  .home-v2-sheet-card { flex-direction: row; align-items: center; gap: 12px; min-height: 0; padding: 10px 14px 10px 10px; }
  .home-v2-sheet-thumb { flex: none; width: 52px; height: 52px; border: 0; border-radius: 9px; }
  .home-v2-sheet-body { gap: 2px; padding: 0; }
  .home-v2-sheet-body > b { font-family: Inter, sans-serif; font-size: 14.5px; }
  .home-v2-sheet-body small { margin-top: 0; font-size: 12px; }
  .home-v2-sheet-open { display: none; }
  .home-v2-sheet-card::after { content: '›'; margin-left: auto; color: var(--teal); font-size: 23px; line-height: 1; }
}
.home-v2-station-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-v2-list-card { display: flex; position: relative; flex-direction: column; overflow: hidden; min-height: 178px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text) !important; }
.home-v2-list-card:hover { border-color: var(--teal); }
.home-v2-list-band { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-bottom: 1px solid color-mix(in srgb, var(--station-color) 24%, var(--line)); background: color-mix(in srgb, var(--station-color) 12%, #fff); }
.home-v2-list-icon { width: 38px; height: 38px; }
.home-v2-list-icon svg { width: 21px; height: 21px; }
.home-v2-list-band-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home-v2-list-band-copy b { color: var(--station-color); font-family: "Hanken Grotesk", sans-serif; font-size: 13.5px; font-weight: 800; }
.home-v2-list-band-copy small { color: #4d5c59; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; }
.home-v2-list-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px 17px 16px; }
.home-v2-list-body > b { color: #152221; font-family: "Hanken Grotesk", sans-serif; font-size: 17.5px; font-weight: 800; }
.home-v2-list-competence { margin-top: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.home-v2-list-mobile-meta { display: none; }
.home-v2-list-action { color: var(--teal); font-size: 14px; font-weight: 700; }
.home-v2-list-card > .home-v2-note { position: absolute; right: 16px; bottom: 16px; }
.home-v2-catalog-mobile-link { display: none; }
.home-v2-join--banner { gap: 16px; padding: 16px 22px; }
.home-v2-join--banner p { color: var(--muted); }
.home-v2-join--banner p b { color: var(--text); }
.home-v2-join--banner .home-v2-join-icon { width: 36px; height: 36px; }
@media (max-width: 1180px) {
  .home-v2-hero { gap: 22px; padding: 24px; }
  .home-v2-second-row { grid-template-columns: 1fr; }
  .home-v2-info-card { justify-content: space-between; }
}
@media (max-width: 900px) {
  .home-v2-hero { grid-template-columns: 1fr; }
  .home-v2-station-list { grid-template-columns: 1fr; }
  .home-v2-list-card { min-height: 0; }
}
@media (max-width: 760px) {
  .page.home-page { padding: 10px 16px 42px; }
  .home-v2 { gap: 14px; }
  .home-v2-hero { display: contents; }
  .home-v2-main { gap: 14px; padding: 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  .home-v2-kicker { margin-bottom: 8px; }
  .home-v2-intro h2 { margin-bottom: 16px; font-size: 25px; line-height: 1.18; }
  .home-v2-intro .home-v2-first { font-size: 19px; }
  .home-v2-intro > p:last-child:not(.home-v2-kicker) { font-size: 14.5px; line-height: 1.55; }
  .home-v2-intro > p.home-v2-recommendation:last-child { font-size: 13px; line-height: 1.5; }
  .home-v2-featured { overflow: visible; margin-top: 0; border: 0; border-radius: 0; }
  .home-v2-featured-station { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
  .home-v2-station-band { gap: 10px; padding: 11px 14px; }
  .home-v2-station-icon { width: 36px; height: 36px; }
  .home-v2-station-body { gap: 10px; padding: 16px 16px 14px; }
  .home-v2-station-body h3 { font-size: 21px; }
  .home-v2-description { -webkit-line-clamp: 3; font-size: 14px; line-height: 1.55; }
  .home-v2-actions { flex-direction: column; gap: 6px; padding: 14px 0 0; border-top: 0; }
  .home-v2-primary { width: 100%; min-height: 50px; border-radius: 12px; font-size: 16px; }
  .home-v2-actions > a { padding: 6px 0; }
  .home-v2-side { border: 1px solid var(--line); background: #fff; }
  .home-v2-modes { gap: 16px; padding: 18px; }
  .home-v2-modes h3 { font-size: 17px; }
  .home-v2-mode { gap: 12px; }
  .home-v2-mode-icon { width: 36px; height: 36px; border: 0; background: #f3f6f4; }
  .home-v2-mode b { font-size: 14.5px; }
  .home-v2-mode p { font-size: 13.5px; }
  .home-v2-progress { display: contents; }
  .home-v2-progress > div:first-child { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .home-v2-progress-heading h3 { font-size: 18px; }
  .home-v2-stat { grid-template-columns: 108px minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; }
  .home-v2-stat > .home-v2-stat-value, .home-v2-stat > .home-v2-average-panel { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .home-v2-stat-copy { display: contents; }
  .home-v2-stat-copy > b { grid-column: 2; grid-row: 1; align-self: end; }
  .home-v2-stat-copy > .home-v2-track, .home-v2-stat-copy > small { grid-column: 2; grid-row: 2; align-self: start; }
  .home-v2-stat-copy > .home-v2-average-method { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; }
  .home-v2-stat-value b, .home-v2-average-score b { font-size: 28px; }
  .home-v2-stat--peer .home-v2-stat-value b { font-size: 23px; }
  .home-v2-average-method select { max-width: 100%; }
  .home-v2-history { margin-top: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .home-v2-history h3 { font-size: 18px; }
  .home-v2-passage { min-height: 60px; padding: 11px 0; border-color: var(--line); }
  .home-v2-passage-title-text { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; -webkit-line-clamp: 2; white-space: normal; }
  .home-v2-second-row { gap: 12px; }
  .home-v2-info-card { align-items: flex-start; flex-direction: column; gap: 12px; padding: 18px; }
  .home-v2-join { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; }
  .home-v2-join-icon { width: 40px; height: 40px; }
  .home-v2-join-icon svg { width: 20px; height: 20px; }
  .home-v2-join > button { grid-column: 1 / -1; width: 100%; min-height: 46px; }
  .home-v2-info-card h3 { font-size: 17px; }
  .home-v2-info-card p { font-size: 14.5px; }
  .home-v2-catalog { gap: 10px; margin-top: 4px; }
  .home-v2-catalog-heading h2 { font-size: 18px; }
  .home-v2-catalog-heading > a { display: none; }
  .home-v2-station-list { gap: 8px; }
  .home-v2-list-card { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .home-v2-list-band { padding: 0; border: 0; background: none; }
  .home-v2-list-icon { width: 36px; height: 36px; }
  .home-v2-list-band-copy, .home-v2-list-action, .home-v2-list-competence { display: none; }
  .home-v2-list-body { flex: 1; gap: 2px; min-width: 0; padding: 0; }
  .home-v2-list-body > b { font-family: Inter, sans-serif; font-size: 14.5px; }
  .home-v2-list-mobile-meta { display: block; color: var(--muted); font-size: 12px; }
  .home-v2-list-card > .home-v2-note { position: static; }
  .home-v2-list-card::after { content: '›'; color: var(--teal); font-size: 23px; line-height: 1; }
  .home-v2-catalog-mobile-link { display: block; padding: 6px 2px; }
  .home-v2-join--banner { display: flex; gap: 12px; padding: 16px 18px; }
  .home-v2-join--banner .home-v2-join-icon { display: none; }
}
.text-action,
.reset-link {
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.text-action:hover,
.reset-link:hover {
  color: var(--ink);
}
.page.catalogue-shell {
  padding: 26px 34px 70px;
}
.catalogue-page {
  display: grid;
  gap: 22px;
}
.cat-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cat-top .menu-btn {
  display: none;
}
.cat-top h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
}
.cat-top .count {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.count-pill {
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.catalogue-toolbar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.tb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.tb-spacer {
  flex: 1;
}
.view-tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.view-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.view-tabs a:hover {
  color: var(--ink);
}
.view-tabs a.on {
  background: var(--ink-fill);
  color: #fff;
}
.view-tabs svg,
.layout-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}
.layout-toggle {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.layout-toggle button {
  display: grid;
  width: 34px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.layout-toggle button:hover {
  color: var(--ink);
}
.layout-toggle button.on {
  background: var(--ink-fill);
  color: #fff;
}
.search {
  position: relative;
  display: block;
  width: 100%;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}
.search input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.search input:focus,
.f-select:focus {
  outline: none;
  border-color: var(--teal);
}
.filters-row {
  flex-wrap: wrap;
  align-items: flex-start;
}
.filter-grid {
  display: grid;
  flex: 1 1 560px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}
.filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
}
.filter-toggle svg {
  width: 17px;
  height: 17px;
}
.filter-toggle .fi {
  color: var(--teal);
}
.filter-toggle .cv {
  color: var(--muted);
  transition: transform .16s;
}
.filter-toggle span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
}
.filter-toggle span[hidden] {
  display: none;
}
.filters-row.filters-open .filter-toggle .cv {
  transform: rotate(180deg);
}
.f-select {
  min-height: 40px;
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  appearance: none;
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235e6b6a' stroke-width='2.2'><path d='M4 6l4 4 4-4'/></svg>") no-repeat right 10px center;
  color: #1c2a29;
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
}
.multi-filter {
  min-width: 0;
}
.filter-grid > .f-select,
.multi-filter > .f-select {
  width: 100%;
  height: 40px;
  align-self: start;
}
.filter-chips,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.chip {
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #3a4746;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.chip:hover {
  border-color: var(--teal);
}
.chip.on {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}
.f-select.is-active {
  border-color: var(--gold);
  background-color: rgba(176, 125, 42, .09);
  color: #7c561c;
  font-weight: 700;
}
.filter-value-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.filter-value-pills[hidden] {
  display: none;
}
.filter-value-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 4px 3px 9px;
  border: 1px solid rgba(176, 125, 42, .26);
  border-radius: 999px;
  background: rgba(176, 125, 42, .08);
  color: #6f4d18;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}
.filter-value-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-value-pill button {
  display: grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #7c561c;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}
.filter-value-pill button:hover {
  background: rgba(176, 125, 42, .16);
}
.sort-select {
  width: auto;
  min-width: 178px;
}
.filters-row > .reset-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  line-height: 1;
  white-space: nowrap;
}
/* Pastille flottante sous la barre d'outils : hors flux, donc aucun espace
   reserve ni decalage des cartes, sur bureau comme sur mobile. */
.catalogue-status {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(16, 32, 40, .1);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s;
}
.catalogue-page.is-loading .catalogue-status {
  opacity: 1;
}
.catalogue-page.is-loading [data-catalogue-results] {
  opacity: .72;
}
.deck {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.deck.list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.deck.list .station-card {
  flex-direction: row;
  align-items: stretch;
}
.deck.list .station-band {
  width: 160px;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  padding: 14px 16px;
  border-right: 1px solid color-mix(in srgb, var(--station-color) 22%, var(--line));
  border-bottom: 0;
}
.deck.list .band-text {
  flex: none;
  width: 100%;
}
.deck.list .station-fav {
  align-self: flex-end;
  width: 24px;
  height: 24px;
}
.deck.list .station-fav svg {
  width: 24px;
  height: 24px;
}
.deck.list .station-body {
  min-width: 0;
  padding: 14px 18px;
}
.deck.list .station-card h3,
.deck.list .station-card p {
  min-height: 0;
}
.deck.list .station-card p {
  -webkit-line-clamp: 2;
}
.deck.list .station-foot {
  margin-top: 12px;
  padding-top: 10px;
}
.deck-compact {
  margin-top: 16px;
}
.station-card {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.deck:not(.list) .station-card {
  min-height: 344px;
}
.station-card:hover {
  border-color: color-mix(in srgb, var(--station-color) 45%, var(--line));
  box-shadow: 0 14px 34px -26px rgba(15, 46, 61, .62);
  transform: translateY(-1px);
}
.station-card.is-locked {
  background: color-mix(in srgb, var(--surface) 94%, #eef1ee);
}
.station-band {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 15px;
  border-bottom: 1px solid color-mix(in srgb, var(--station-color) 22%, var(--line));
  background: color-mix(in srgb, var(--station-color) 13%, #fff);
}
.station-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--station-color);
  color: #fff;
}
.station-icon svg {
  width: 21px;
  height: 21px;
}
.band-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}
.band-text b {
  overflow: hidden;
  color: var(--station-color);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.band-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #4d5c59;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}
.band-main {
  white-space: nowrap;
}
.band-sep {
  color: color-mix(in srgb, var(--station-color) 35%, #b9c2bc);
}
.station-fav {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: color-mix(in srgb, var(--station-color) 35%, #b8c2bc);
  cursor: pointer;
}
.station-fav:hover,
.station-fav.on {
  color: var(--gold);
}
.station-fav svg {
  width: 22px;
  height: 22px;
}
.station-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px 17px;
}
.station-card h3 {
  display: -webkit-box;
  min-height: 2.5em;
  margin: 0 0 8px;
  overflow: hidden;
  color: #152221;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 17.5px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.station-card p {
  display: -webkit-box;
  min-height: 4.4em;
  margin: 0;
  overflow: hidden;
  color: #66736f;
  font-size: 12.8px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.station-meta {
  display: -webkit-box !important;
  min-height: 2.8em !important;
  overflow: hidden;
  margin-top: 10px !important;
  color: var(--muted) !important;
  font-size: 11.8px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.station-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.note {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: #ecefe9;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.note small {
  color: inherit;
  font-size: 10.5px;
  font-weight: 600;
  opacity: .6;
}
.note.muted {
  color: var(--muted);
  font-size: 12px;
}
/* couleur de la note selon le score : vert > 16, jaune 12-16, rouge < 12 */
.note--good { background: #e4f5ea; color: #1c8a4b; }
.note--mid  { background: #fbf0d9; color: #ad7414; }
.note--low  { background: #fcebe9; color: #cc382f; }
.station-new {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, #fff);
  border-radius: 8px;
  background: #e8f1f0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.station-go {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  text-decoration: none;
}
.station-go svg {
  width: 21px;
  height: 21px;
}
.station-go:hover {
  background: #e8f1f0;
  color: var(--ink);
}
.station-go.locked {
  border: 1px solid var(--line);
  background: #eef1ee;
  color: var(--muted);
  cursor: not-allowed;
}

.group-list {
  display: grid;
  gap: 14px;
}
.station-group {
  display: grid;
  gap: 8px;
}
.group-head {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.group-head h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.group-code {
  flex: none;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.group-mark {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--station-color) 14%, #fff);
  color: var(--station-color);
}
.group-mark svg {
  width: 17px;
  height: 17px;
}
.group-head .line {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.group-count {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}
.group-chev {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--muted);
  transition: transform .16s;
}
.station-group.collapsed .group-chev {
  transform: rotate(-90deg);
}
.station-group.collapsed .group-deck {
  display: none;
}
.catalogue-empty[hidden] {
  display: none;
}
.catalogue-empty {
  display: grid;
  justify-items: center;
  padding: 58px 20px;
  color: var(--muted);
  text-align: center;
}
.catalogue-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  color: #b8c2bc;
}
.catalogue-empty h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
}
.catalogue-empty p {
  margin: 0 0 12px;
}
.catalogue-empty a {
  color: var(--teal);
  font-weight: 800;
}
.catalogue-load-more {
  display: flex;
  justify-content: center;
  padding: 6px 0 28px;
}
.catalogue-load-more button {
  border: 1px solid #cad8d1;
  border-radius: 999px;
  background: #fff;
  color: var(--teal-strong);
  font-weight: 850;
  padding: 11px 18px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 46, 61, 0.08);
}
.catalogue-load-more button:hover {
  border-color: var(--teal);
}
.catalogue-load-more button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.launch-modal[hidden] {
  display: none;
}
.launch-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}
@media (min-width: 720.02px) {
  .launch-modal {
    left: 84px;
  }
}
.launch-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 36, 47, .44);
  backdrop-filter: blur(4px);
}
.launch-panel {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  max-height: min(760px, calc(100dvh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 80px -30px rgba(10,36,47,.68);
  /* Couche compositing dediee : sans elle, le fond du panneau peut manquer 1 frame
     a l'ouverture (contenu de la page qui "flashe" a travers) quand le backdrop-filter
     du .launch-backdrop est composite pour la premiere fois (bug Chromium). */
  will-change: transform;
}
.launch-panel:focus {
  outline: none;
}
.launch-modal.is-group-flow .launch-panel {
  width: min(680px, 100%);
  height: min(632px, calc(100dvh - 48px));
}
.launch-modal.is-group-flow .launch-sub {
  display: none;
}
.launch-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  column-gap: 16px;
  row-gap: 0;
}
.launch-head > div {
  min-width: 0;
}
.launch-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}
.launch-head [data-launch-meta] {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.launch-meta-flags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 6px 0 16px;
}
.launch-head .launch-meta-flags [data-launch-meta] {
  margin: 0;
}
.launch-sub {
  margin: 14px 0 16px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, #fff);
  border-radius: 999px;
  background: #e8f1f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}
/* Ligne des pastilles du lanceur : competence, puis « Annale » si la station en est une. */
.launch-flags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 16px;
}
.launch-flags .launch-sub {
  margin: 0;
}
.launch-meta-flags .launch-flags {
  flex: 0 0 auto;
  gap: 7px;
  margin: 0 0 0 auto;
}
.launch-meta-flags .launch-sub,
.launch-meta-flags .station-annale {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  white-space: nowrap;
}
.launch-modal.is-group-flow .launch-meta-flags,
.launch-modal.is-mic-flow .launch-meta-flags,
.launch-modal.is-ia-flow .launch-meta-flags {
  margin-bottom: 0;
}
.launch-modal.is-group-flow .launch-flags,
.launch-modal.is-mic-flow .launch-flags,
.launch-modal.is-ia-flow .launch-flags {
  display: none;
}
.launch-modes {
  display: grid;
  gap: 10px;
}
.launch-modes[hidden] {
  display: none !important;
}
/* « Avec ton IA » reste une option secondaire, toujours visible sous les modes principaux. */
.launch-more {
  min-width: 0;
}
.launch-more[hidden] {
  display: none !important;
}
.launch-more-summary {
  width: fit-content;
  margin: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}
.launch-more .launch-choice {
  margin-top: 10px;
}
.launch-group-form {
  margin: 0;
}
.launch-choice {
  --launch-action-width: 40px;
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) var(--launch-action-width);
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9faf7;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  touch-action: manipulation;
  user-select: none;
  transition: border-color .13s ease, background-color .13s ease, box-shadow .13s ease, transform .13s ease;
  -webkit-tap-highlight-color: transparent;
}
.launch-choice * {
  -webkit-tap-highlight-color: transparent;
}
.launch-choice:focus {
  outline: none;
}
.launch-choice[hidden] {
  display: none !important;
}
.launch-choice.is-launching {
  pointer-events: none;
  opacity: .78;
  cursor: progress;
}
.launch-choice.is-launching .launch-action {
  position: relative;
}
.launch-choice.is-launching .launch-arrow,
.launch-choice.is-launching .launch-disabled-note {
  opacity: 0;
}
.launch-choice.is-launching .launch-action::after {
  content: "";
  position: absolute;
  right: 10px;
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--teal) 25%, transparent);
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: launch-spin .8s linear infinite;
}
.launch-choice::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 99px;
  background: var(--teal);
  transform: scaleY(0);
  transition: transform .2s ease;
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):hover,
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible {
  border-color: var(--teal);
  background: #f3f8f6;
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):hover::before,
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible::before {
  transform: scaleY(1);
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):hover b,
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible b {
  color: var(--teal);
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 44%, transparent);
  outline-offset: 2px;
}
.launch-choice.on {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  background: #edf6f3;
}
.launch-choice:disabled,
.launch-choice[aria-disabled="true"] {
  --launch-action-width: 112px;
  cursor: not-allowed;
  opacity: .58;
}
.launch-choice[aria-disabled="true"]:hover,
.launch-choice[aria-disabled="true"]:focus-visible {
  opacity: .76;
}
@media (hover: none) {
  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover {
    border-color: var(--line);
    background: #f9faf7;
  }

  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover::before {
    transform: scaleY(0);
  }

  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover b {
    color: var(--ink);
  }

  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow {
    transform: none;
  }

  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow path {
    stroke-width: 2.2;
  }
}
.launch-choice-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--teal);
}
.launch-choice-icon svg,
.launch-arrow {
  width: 21px;
  height: 21px;
}
.launch-choice b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 800;
  transition: color .18s ease;
}
.launch-choice-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin-bottom: 3px;
}
.launch-choice-heading b {
  display: inline;
  min-width: 0;
  margin-bottom: 0;
}
.launch-beta-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--teal) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 9%, var(--surface));
  color: var(--teal);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.35;
  text-transform: uppercase;
}
.launch-choice small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.launch-choice .launch-quota-note {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-weight: 750;
}
.launch-action {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-items: end;
}
.launch-action--wide {
  width: 100%;
}
.launch-arrow,
.launch-disabled-note {
  grid-area: 1 / 1;
}
.launch-disabled-note {
  justify-self: end;
  width: min(106px, 100%);
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .14s ease, transform .14s ease;
  pointer-events: none;
}
.launch-arrow {
  color: var(--teal);
  transition: transform .22s cubic-bezier(.34, 1.45, .4, 1);
}
.launch-arrow path {
  transition: stroke-width .22s ease;
}
.launch-choice[aria-disabled="true"] .launch-arrow {
  display: none;
}
.launch-choice.requires-upgrade {
  --launch-action-width: 78px;
}
.launch-choice.requires-upgrade .launch-arrow {
  display: none;
}
.launch-choice.requires-upgrade .launch-disabled-note {
  display: block;
  width: auto;
  border-color: color-mix(in srgb, var(--gold) 42%, var(--line));
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  color: var(--gold);
  opacity: 1;
  transform: none;
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow,
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible .launch-arrow {
  transform: translateX(4px) scale(1.8);
}
.launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow path,
.launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible .launch-arrow path {
  stroke-width: 3;
}
.launch-choice[aria-disabled="true"]:hover .launch-disabled-note,
.launch-choice[aria-disabled="true"]:focus-visible .launch-disabled-note {
  opacity: 1;
  transform: translateY(0);
}
.launch-group-panel {
  display: grid;
  gap: 18px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.launch-group-panel[hidden] {
  display: none;
}

/* Panneau de verification du micro (station audio) : meme gabarit que le panneau groupe. */
.launch-modal.is-mic-flow .launch-sub {
  display: none;
}
.launch-mic-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.launch-mic-panel[hidden] {
  display: none;
}
.launch-mic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.launch-mic-head h3 {
  margin: 0;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.launch-mic-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f8f4;
  text-align: center;
}
.launch-mic-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f1f0;
  color: var(--teal);
}
.launch-mic-icon svg {
  width: 24px;
  height: 24px;
}
.launch-mic-meter {
  width: 100%;
  max-width: 320px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e3e9e4;
}
.launch-mic-meter[hidden] {
  display: none;
}
.launch-mic-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), #34c98a);
  transition: width .06s linear;
}
.launch-mic-message {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.launch-mic-panel[data-mic-state="error"] .launch-mic-icon,
.launch-mic-panel[data-mic-state="blocked"] .launch-mic-icon {
  background: #fdecec;
  color: #c0392b;
}
.launch-mic-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.launch-mic-actions .primary-action[hidden],
.launch-mic-actions .secondary-action[hidden] {
  display: none;
}
.launch-group-head,
.join-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.launch-group-head {
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.launch-group-head h3,
.join-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
}
.launch-group-head h3 {
  font-size: 27px;
}
.join-card-head {
  justify-content: flex-start;
}
.join-card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.launch-step-badge {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 9px;
  background: var(--teal);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 800;
}
.launch-group-loading {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 220px;
  margin: 0;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.launch-group-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: launch-spin .8s linear infinite;
}
.launch-group-panel.is-loading .launch-group-loading {
  display: flex;
}
.launch-group-panel.is-loading .launch-group-ready,
.launch-group-panel.is-loading .launch-group-actions {
  display: none;
}
.launch-group-ready {
  display: grid;
  gap: 16px;
}
.launch-share-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px -34px rgba(10, 36, 47, .5);
}
.launch-share-content {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.launch-qr-col {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}
.launch-copylink {
  width: 100%;
}
.launch-link-source {
  display: none;
}
.launch-qr-frame {
  display: grid;
  width: 148px;
  height: 148px;
  padding: 10px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 10px;
  background: #fff;
}
.launch-qr-frame[hidden] {
  display: none;
}
.join-qr-svg {
  display: block;
  width: 128px;
  height: auto;
  max-width: 100%;
}
@keyframes launch-spin {
  to { transform: rotate(360deg); }
}
.launch-share-fields {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.launch-code-block {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 4px 0 2px;
  text-align: center;
}
.launch-code-block small {
  display: block;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.launch-link-block {
  width: min(560px, 100%);
  margin: 0 auto;
}
.launch-group-code-row,
.copy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.launch-group-code-row {
  justify-content: center;
}
.launch-share-fields .launch-code-block {
  justify-items: start;
  padding: 0;
  text-align: left;
}
.launch-share-fields .launch-group-code-row {
  justify-content: flex-start;
}
.launch-group-code {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
}
.launch-join-hint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
  margin-top: 4px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--teal) 8%, #fff);
  color: var(--muted);
  text-align: left;
}
.launch-join-hint-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 18%, transparent);
}
.launch-join-hint-icon::after {
  content: "+";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.launch-join-hint svg {
  width: 20px;
  height: 20px;
}
.launch-join-hint b {
  display: block;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}
.launch-join-hint small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.launch-join-hint strong {
  color: var(--teal);
  font-weight: 800;
}
.icon-copy {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--teal);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.icon-copy:hover {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, #fff);
}
.icon-copy svg {
  width: 18px;
  height: 18px;
}
.icon-copy.is-copied {
  color: #1a8a4f;
  border-color: #1a8a4f;
  background: color-mix(in srgb, #1a8a4f 12%, #fff);
}
.compact-action {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
.launch-group-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.launch-participants-card,
.launch-group-box {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--teal) 22%, var(--line));
  border-radius: 12px;
  background: #f9faf7;
}
.launch-group-panel.is-ready .launch-participants-card {
  border-style: solid;
  border-color: color-mix(in srgb, var(--teal) 42%, var(--line));
  background: #eef6f3;
  box-shadow: 0 18px 50px -34px rgba(21, 99, 90, .5);
}
.launch-participants-head {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.launch-ready-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent);
}
.launch-group-panel.is-ready .launch-ready-dot {
  background: var(--teal);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--teal) 15%, transparent);
}
.launch-participants-head b {
  display: block;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}
.launch-participants-head small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.launch-group-box b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.mini-list {
  display: grid;
  gap: 8px;
}
.mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.mini-row:first-child {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mini-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-row.muted {
  justify-content: center;
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 72%, #fff);
  color: var(--muted);
}
.mini-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.mini-row-main {
  display: block;
  min-width: 0;
}
.mini-row-main b,
.mini-row-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-row-main b {
  color: var(--ink);
  font-size: 14px;
}
.mini-row-main small {
  color: var(--muted);
  font-size: 12px;
}
.participant-mini-row--evaluator {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  background: #fff8e9;
  box-shadow: 0 16px 34px -28px rgba(176, 125, 42, .72);
}
.participant-mini-row--evaluator .mini-avatar {
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(176, 125, 42, .34);
  animation: evaluatorPulse 1.55s ease-out infinite;
}
.participant-mini-row--evaluator .mini-row-main small {
  color: #815816;
  font-weight: 800;
}
@keyframes evaluatorPulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 125, 42, .36); }
  72% { box-shadow: 0 0 0 10px rgba(176, 125, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(176, 125, 42, 0); }
}
.mini-actions {
  display: flex;
  flex: none;
  gap: 5px;
}
.mini-actions button {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 11px;
}
.launch-group-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.launch-group-actions .primary-action {
  min-width: 190px;
}
.launch-group-actions .primary-action:disabled {
  cursor: not-allowed;
  opacity: .48;
}
.launch-group-panel.is-ready .launch-group-actions .primary-action:not(:disabled) {
  box-shadow: 0 14px 32px -20px rgba(21, 99, 90, .78);
}

.page.join-shell {
  padding: 26px 34px 70px;
}
.join-page {
  display: grid;
  gap: 18px;
}
.join-page {
  max-width: 980px;
}
.join-hero {
  max-width: 820px;
}
.join-station-meta {
  margin-top: 4px !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}
.lounge-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lounge-head > div {
  min-width: 0;
}
.lounge-head h1 {
  margin: 2px 0 3px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.08;
}
.lounge-head p {
  margin: 0;
  color: var(--muted);
}
.lounge-state {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.lounge-head .lounge-state {
  margin-left: auto;
}
.lounge-state-waiting {
  border-color: color-mix(in srgb, var(--gold) 36%, var(--line));
  background: #fff6da;
  color: #7a5418;
}
.lounge-state-active {
  border-color: color-mix(in srgb, var(--teal) 32%, var(--line));
  background: #e8f1f0;
  color: var(--teal);
}
.lounge-state-closed,
.lounge-state-expired {
  border-color: color-mix(in srgb, var(--red) 28%, var(--line));
  background: #fff1f1;
  color: var(--red);
}
.join-card-page {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.join-code {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .08em;
}
.join-link {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.join-link input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faf7;
  color: var(--text);
  font: inherit;
  font-weight: 500;
}
.code-entry input {
  font-family: "IBM Plex Mono", monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
}
.join-layout {
  display: grid;
  grid-template-columns: minmax(320px, 560px);
  gap: 16px;
  align-items: start;
}
.join-card-page {
  max-width: 560px;
}
.join-guide {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9faf7;
}
.join-guide-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.join-guide-row > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface);
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 800;
}
.join-guide-row p {
  margin: 0;
}
.join-guide-row b {
  display: block;
  color: var(--ink);
  font-size: 13px;
}
.join-guide-row small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.join-history {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.join-history-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}
.join-history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.join-history-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.join-history-table th,
.join-history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}
.join-history-table th {
  background: #f7f8f4;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.join-history-table tr:last-child td {
  border-bottom: 0;
}
.join-history-table a {
  display: grid;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}
.join-history-table a:hover b {
  color: var(--teal);
}
.join-history-table b,
.join-history-table small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.join-history-table small {
  color: var(--muted);
  font-size: 11px;
}
.join-history-score {
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 850;
}
.join-history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}
@media (max-width: 560px) {
  .join-history {
    padding: 14px;
  }
  .join-history-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .join-history-table {
    display: block;
    min-width: 0;
  }
  .join-history-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .join-history-table tbody {
    display: grid;
    gap: 10px;
  }
  .join-history-table tr {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }
  .join-history-table td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    border-bottom: 0;
  }
  .join-history-table td:first-child {
    display: block;
  }
  .join-history-table td:nth-child(2)::before {
    content: "Etudiant";
  }
  .join-history-table td:nth-child(3)::before {
    content: "Date";
  }
  .join-history-table td:nth-child(4)::before {
    content: "Note";
  }
  .join-history-table td:nth-child(n+2)::before {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .join-history-table b,
  .join-history-table small {
    white-space: normal;
  }
  .join-history-score {
    white-space: nowrap;
  }
}
.role-choice {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.role-choice legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.role-choice label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 56px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9faf7;
  cursor: pointer;
  font-weight: 700;
}
.role-choice label:has(input:checked) {
  border-color: color-mix(in srgb, var(--teal) 35%, var(--line));
  background: #eef6f3;
}
.role-choice input {
  margin-top: 3px;
  accent-color: var(--teal);
}
.role-choice b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.role-choice small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.join-modal[hidden],
.join-modal [hidden] {
  display: none !important;
}

.join-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.join-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 34, .48);
  backdrop-filter: blur(4px);
}

.join-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(392px, 100%);
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 80px -28px rgba(0, 0, 0, .5);
}

.join-modal-dialog h2 {
  margin: -6px 0 -8px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
}

.join-modal-dialog > p:not(.kicker):not(.join-station-meta) {
  margin: 0 26px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.join-modal-dialog form {
  display: grid;
  gap: 14px;
}

.join-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.join-modal-close:hover {
  background: #f1f4f1;
  color: var(--ink);
}

.join-modal-close svg {
  width: 18px;
  height: 18px;
}

.join-modal .code-entry input {
  min-height: 52px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .12em;
}

.join-modal .role-choice label {
  background: #fff;
}

.join-modal .role-choice label:has(input:checked) {
  border-color: var(--teal);
  background: #f4f8f7;
}

.join-modal .assessment-error {
  margin: -2px 0 0;
}

.join-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.join-modal-actions .primary-action,
.join-modal-actions .secondary-action {
  min-height: 40px;
  justify-content: center;
}

.page.station-shell {
  padding: 22px 34px 70px;
}
.station-play {
  display: grid;
  gap: 18px;
}
.station-play.station-loading {
  position: relative;
  min-height: min(720px, calc(100dvh - 44px));
  place-items: center;
}
.station-play.station-loading-transition {
  min-height: min(360px, calc(100dvh - 44px));
  place-items: start center;
  padding-top: clamp(18px, 7vh, 54px);
}
.station-play.station-loading > :not(.station-loading-panel) {
  display: none !important;
}
/* Overlay de lancement client : clone EXACT du shell serveur (station_room.html) pose sur .main.
   Il reutilise .page.station-shell + .station-play.station-loading -> mise en page identique par
   construction (aucune geometrie a la main). On ne fait que le poser en couche opaque sur .main. */
.launch-loading {
  position: absolute;
  inset: 0;
  z-index: 500;
  background: var(--paper); /* opaque : masque la page courante sous l'overlay */
}
.launch-loading[hidden] { display: none; }
body.launch-loading-open { overflow: hidden; }
body.launch-loading-open .main { position: relative; } /* conteneur de l'overlay, le temps du chargement */
.launch-loading-error {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 4px;
}
.launch-loading-error[hidden] {
  display: none !important;
}
.launch-loading.is-error .station-loading-wave { display: none; }
.launch-loading-actions {
  display: flex;
  gap: 10px;
}
.launch-loading-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.launch-loading-btn-primary {
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  background: var(--teal);
  color: #fff;
}
.station-loading-panel {
  display: grid;
  width: min(520px, calc(100vw - 44px));
  justify-items: center;
  gap: 20px;
  margin: auto;
  padding: 42px 32px;
  border: 1px solid color-mix(in srgb, var(--teal) 16%, var(--line));
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, #fff 92%, var(--paper)) 0%, var(--surface) 100%);
  box-shadow: 0 28px 80px -48px rgba(14, 49, 57, .45);
  text-align: center;
}
.station-loading-panel-transition {
  grid-template-columns: auto minmax(0, 1fr);
  width: min(640px, calc(100vw - 44px));
  justify-items: start;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 16px 18px;
  border-radius: 12px;
  opacity: 0;
  text-align: left;
  animation: station-transition-loading-in .14s ease-out .18s forwards;
}
.station-loading-wave {
  display: flex;
  height: 76px;
  align-items: end;
  justify-content: center;
  gap: 8px;
}
.station-loading-panel-transition .station-loading-wave {
  height: 34px;
  gap: 4px;
}
.station-loading-wave span {
  display: block;
  width: 10px;
  height: 58px;
  border-radius: 999px;
  background: var(--teal);
  opacity: .55;
  transform-origin: bottom;
  animation: station-loading-wave 1.35s ease-in-out infinite;
}
.station-loading-panel-transition .station-loading-wave span {
  width: 5px;
  height: 28px;
}
.station-loading-wave span:nth-child(2),
.station-loading-wave span:nth-child(4) {
  background: color-mix(in srgb, var(--signal) 76%, var(--teal));
}
.station-loading-wave span:nth-child(2) { animation-delay: .12s; }
.station-loading-wave span:nth-child(3) { animation-delay: .24s; }
.station-loading-wave span:nth-child(4) { animation-delay: .36s; }
.station-loading-wave span:nth-child(5) { animation-delay: .48s; }
.station-loading-copy {
  display: grid;
  gap: 8px;
}
.station-loading-panel-transition .station-loading-copy {
  gap: 4px;
}
.station-loading-copy .kicker {
  margin: 0;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.station-loading-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.02;
}
.station-loading-panel-transition .station-loading-copy h1 {
  font-size: 18px;
  line-height: 1.15;
}
.station-loading-copy p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}
.station-loading-panel-transition .station-loading-copy p:not(.kicker) {
  font-size: 13px;
}
@keyframes station-transition-loading-in {
  to { opacity: 1; }
}
@keyframes station-loading-wave {
  0%, 100% {
    opacity: .48;
    transform: scaleY(.38);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .station-loading-panel-transition {
    animation-duration: .01ms;
  }
  .station-loading-wave span {
    animation: none;
    transform: scaleY(.74);
  }
}
.station-play-head {
  position: sticky;
  top: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 0 13px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}
.audio-head-elapsed {
  margin-left: auto;
  flex: none;
}
.station-back,
.favbtn,
.timer-step,
.timer-pause {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
/* Bouton d'ajustement inutilisable (+ pres du plafond, - sous 1 min) : simplement grise. */
.timer-step:disabled,
.timer-pause:disabled,
.timer-stop:disabled {
  opacity: .35;
}
.station-back {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.station-back svg,
.favbtn svg { width: 21px; height: 21px; }
.station-play-title {
  min-width: 0;
}
.station-play-title h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}
.station-play-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 600;
}
.favbtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.favbtn:hover,
.favbtn.on {
  border-color: color-mix(in srgb, var(--gold) 38%, var(--line));
  color: var(--gold);
}
.station-head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.station-timerbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}
.timer-label {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.station-timer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.timer-step,
.timer-pause {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--teal);
}
.timer-step {
  font-size: 17px;
  line-height: 1;
}
.timer-pause svg {
  width: 13px;
  height: 13px;
}
.timer-pause.paused svg {
  width: 14px;
  height: 14px;
}
.timer-num {
  min-width: 72px;
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
}
.station-play.time-low .timer-num,
.station-play.time-low .rail-time {
  color: var(--signal);
}
.end-station {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
}
.end-station:hover { filter: brightness(1.06); }
.end-station svg { width: 14px; height: 14px; }
.station-tabs {
  position: sticky;
  top: 72px;
  z-index: 21;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.station-tabs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 1;
  gap: 8px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 800;
}
.station-tabs span.on {
  background: #e8f1f0;
  color: var(--teal);
}
.station-tabs span.disabled {
  opacity: .52;
}
.station-tabs svg {
  width: 17px;
  height: 17px;
}
.station-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 18px;
  align-items: start;
}
.station-panel,
.rail-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.station-panel {
  min-width: 0;
  padding: 24px;
}
.station-panel .kicker {
  margin-bottom: 14px;
}
.brief-text {
  color: #243331;
  font-size: 15px;
  line-height: 1.62;
}
.brief-text p {
  margin: 0 0 14px;
}
.brief-text ul,
.brief-text ol {
  margin: 0 0 16px;
  padding-left: 20px;
}
.brief-text li {
  margin: 6px 0;
}
.brief-text h1,
.brief-text h2,
.brief-text h3,
.brief-text h4,
.brief-text h5,
.brief-text h6 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}
.brief-text h1 { font-size: 25px; }
.brief-text h2 { font-size: 22px; }
.brief-text h3 { font-size: 18px; }
.brief-text h4,
.brief-text h5,
.brief-text h6 { font-size: 16px; }
.brief-text blockquote {
  margin: 14px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--teal);
  background: #f3f8f7;
  color: #304240;
}
.brief-text pre {
  overflow-x: auto;
  margin: 14px 0;
  padding: 12px;
  border-radius: 8px;
  background: #112f3d;
  color: #e8f1f0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}
.brief-text code {
  padding: 1px 4px;
  border-radius: 5px;
  background: #eef3f1;
  color: #18323a;
  font-family: "IBM Plex Mono", monospace;
  font-size: .92em;
}
.brief-text pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}
.brief-text table {
  width: 100%;
  margin: 16px 0;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.brief-text th,
.brief-text td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.brief-text th {
  background: #f4f7f5;
  color: var(--ink);
  font-weight: 800;
}
.brief-text a {
  color: var(--teal);
  font-weight: 700;
}
.brief-text .ecos-rich-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f4;
}
.brief-text .ecos-math--display {
  display: block;
  overflow-x: auto;
  margin: 14px 0;
  padding: 8px 0;
}
.brief-text .katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 14px 0;
}
.candidate-docs {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8f4;
}
.docs-head {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: default;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.docs-head svg {
  width: 18px;
  height: 18px;
  transition: transform .16s;
}
.candidate-docs.collapsed .docs-head svg {
  transform: rotate(-90deg);
}
.candidate-docs.collapsed .docs-list {
  display: none;
}
.docs-list {
  display: grid;
  gap: 14px;
  padding: 12px;
}
.doc-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 72px;
  min-height: 72px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.doc-link:hover {
  border-color: var(--teal);
}
.doc-link.on {
  border-color: var(--teal);
  background: var(--teal-soft, #e8f1f0);
}
.doc-thumb {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: #e8f1f0;
  color: var(--teal);
}
.doc-thumb svg {
  width: 19px;
  height: 19px;
}
.doc-link span:last-child {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.18;
}
.doc-link strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font: inherit;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.doc-link small {
  display: block;
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.docs-empty {
  margin: 0;
  padding: 10px 4px;
  color: var(--muted);
  font-size: 13px;
}
.station-rail {
  position: sticky;
  top: 138px;
  display: grid;
  gap: 12px;
}
.rail-card {
  padding: 18px;
}
.rail-time {
  margin: 4px 0 14px;
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
}
.enter-room {
  width: 100%;
  border: 0;
  cursor: pointer;
}
.station-play.in-room .enter-room {
  background: var(--ink-fill);
}
.muted-rail h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 20px;
}
.muted-rail p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}
.station-facts {
  display: grid;
  gap: 9px;
  margin: 0;
}
.station-facts div {
  display: grid;
  gap: 2px;
}
.station-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.station-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.station-bar {
  position: sticky;
  top: 0;
  z-index: 24;
  min-width: 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
}
.station-bar .accent {
  margin-bottom: 0;
}
.station-bar .station-play-head {
  position: static;
  padding: 13px 0 15px;
}
.station-play-title {
  flex: 1;
}
.station-play-title .kicker {
  margin-bottom: 4px;
}
.station-layout {
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 18px;
}
.station-content {
  display: grid;
  min-width: 0;
  gap: 12px;
}
.station-tabs {
  position: sticky;
  top: 78px;
  z-index: 20;
}
.station-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 1;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
}
.station-tabs button.on {
  background: #e8f1f0;
  color: var(--teal);
}
.station-tabs button:hover {
  color: var(--ink);
}
.station-tabs button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2;
}
.station-panel {
  position: relative;
  overflow: hidden;
}
.station-panel > .accent {
  margin-bottom: 14px;
}
.exam-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
  gap: 16px;
  align-items: start;
}
.exam-grid .candidate-docs {
  margin-top: 0;
}
.consigne {
  min-width: 0;
}
.consigne .brief-text {
  max-width: 64ch;
}
.doc-link {
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.script-card,
.grid-section {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7f8f4;
}
.script-card:first-of-type,
.grid-section:first-of-type {
  margin-top: 0;
}
.script-card h2,
.grid-section h2 {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.script-card > p,
.script-card > .brief-text {
  padding: 15px;
}
.script-items {
  display: grid;
  gap: 8px;
  padding: 12px;
}
.script-qa,
.grid-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.script-qa {
  padding: 12px 13px;
  color: #243331;
  font-size: 13.5px;
  line-height: 1.5;
}
.script-qa p {
  margin: 0 0 7px;
}
.script-qa p:last-child {
  margin-bottom: 0;
}
.actor-script-layout {
  display: grid;
  gap: 14px;
  overflow-anchor: none;
}
.actor-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.actor-section-card,
.actor-accordion {
  overflow: hidden;
  overflow-anchor: none;
  border: 1px solid var(--actor-accordion-border, var(--line));
  border-radius: 12px;
  background: var(--actor-accordion-bg, var(--surface));
}
.actor-section-card {
  padding: 16px;
}
.actor-section-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.actor-section-card .brief-text > :last-child,
.actor-accordion .brief-text > :last-child {
  margin-bottom: 0;
}
.actor-group-title {
  margin: 6px 0 -2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.actor-accordion summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--actor-accordion-title, var(--ink));
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.actor-accordion summary::-webkit-details-marker {
  display: none;
}
.actor-accordion summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.actor-accordion[open] summary::after {
  transform: rotate(225deg);
}
.actor-accordion > .brief-text {
  padding: 0 16px 16px;
}
.actor-accordion .script-items {
  padding: 0 16px 16px;
}
.actor-accordion-prompts {
  --actor-accordion-bg: #eff8f0;
  --actor-accordion-border: #b8dcb9;
  --actor-accordion-title: #35723d;
}
.actor-accordion-relances {
  --actor-accordion-bg: #eff8f0;
  --actor-accordion-border: #b8dcb9;
  --actor-accordion-title: #35723d;
}
.actor-accordion-neutral {
  --actor-accordion-bg: #f7f6f4;
  --actor-accordion-border: #d6d3cd;
  --actor-accordion-title: #64615d;
}
.actor-accordion-diagnosis {
  --actor-accordion-bg: #fef3eb;
  --actor-accordion-border: #e8bea9;
  --actor-accordion-title: #8c5b45;
}
.grid-section {
  display: grid;
  gap: 0;
}
.grid-item {
  margin: 10px 12px;
  padding: 12px 13px;
}
.grid-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.grid-item-main p {
  margin: 0;
  color: #243331;
  font-size: 13.5px;
  line-height: 1.45;
}
.grid-item-main small {
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}
.grid-type {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e8f1f0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.grid-item ul {
  margin: 9px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.autoeval {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 10px;
  background: #e8f1f0;
  color: #1f5555;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.45;
}
.autoeval svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.station-rail {
  top: 92px;
}
.station-rail-card {
  display: grid;
  gap: 13px;
  padding: 14px;
}
.rail-timer {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) 31px 31px;
  gap: 7px;
  align-items: center;
}
.rail-timer .timer-step,
.rail-timer .timer-pause {
  width: 31px;
  height: 31px;
}
.rail-timer .timer-num {
  min-width: 0;
  font-size: 32px;
}
.station-rail-card .end-station {
  justify-content: center;
  width: 100%;
}

.document-modal[hidden] {
  display: none;
}
.document-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  padding: 18px;
  place-items: center;
}
.document-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 61, .55);
}
.document-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, 100%);
  height: min(860px, calc(100vh - 36px));
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 28px 80px -28px rgba(0,0,0,.48);
}
.document-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.document-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}
.document-tools .station-timer-strip {
  display: grid;
  width: min(340px, 42vw);
  min-height: 42px;
  box-sizing: border-box;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.document-tools .station-timer-strip::after,
.document-tools .station-status {
  display: none;
}
.document-tools .station-timer-strip .rail-timer {
  min-height: 32px;
  gap: 7px;
}
.document-tools .rail-timer .timer-step {
  width: 24px;
  height: 24px;
}
.document-tools .rail-timer .timer-pause,
.document-tools .timer-stop {
  width: 30px;
  height: 30px;
}
.document-tools .rail-timer .timer-num {
  min-width: 72px;
  font-size: 28px;
  letter-spacing: 0;
}
.document-panel h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
}
.document-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
  overflow: hidden;
  background: #eef1ee;
}
.document-viewer-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #eef1ee;
  touch-action: pan-y;
}
.document-viewer-viewport.is-zoomed {
  cursor: grab;
  touch-action: none;
}
.document-viewer-viewport.is-text-zoom {
  cursor: default;
  touch-action: pan-y;
}
.document-viewer-viewport.is-panning {
  cursor: grabbing;
}
.document-viewer-content {
  --document-viewer-zoom: 1;
  --document-viewer-pan-x: 0px;
  --document-viewer-pan-y: 0px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  transform: translate3d(var(--document-viewer-pan-x), var(--document-viewer-pan-y), 0) scale(var(--document-viewer-zoom));
  transform-origin: center center;
  transition: transform .12s ease;
  will-change: transform;
}
.document-viewer-viewport.is-panning .document-viewer-content {
  transition: none;
}
.document-viewer-viewport.is-text-zoom .document-viewer-content {
  transform: none;
  transition: none;
  will-change: auto;
}
.document-modal-caption {
  margin: 0;
  padding: 10px 16px 12px;
  border-top: 1px solid rgba(15, 46, 61, .12);
  background: #f8faf8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}
.document-modal-caption[hidden] {
  display: none;
}
.document-media {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #eef1ee;
}
.document-media-image,
.document-media-video {
  display: block;
  object-fit: contain;
}
.document-media-image {
  background: #050505;
}
.document-media-video {
  background: #101715;
}
.document-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #eef1ee;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.document-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(18, 84, 92, .16);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: document-loading-spin .8s linear infinite;
}
.document-loading-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.document-loading-retry[hidden] {
  display: none;
}
.document-loading.is-slow .document-loading-spinner {
  display: none;
}
@keyframes document-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.document-viewer-viewport.is-zoomed:not(.is-text-zoom) .document-media-image,
.document-viewer-viewport.is-zoomed:not(.is-text-zoom) .document-media-frame {
  pointer-events: none;
}
.document-nav,
.document-zoom {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.document-nav-next svg {
  transform: rotate(180deg);
}
.station-play:not(.ai-chatbot-station) .document-tools [data-document-fullscreen] {
  display: none !important;
}
.document-zoom-reset {
  display: inline-flex;
  width: 52px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}
.document-tools button:disabled {
  cursor: default;
  opacity: .38;
}

/* Nav publique partagée par les pages légales (templates/core/legal.html).
   La landing a sa propre feuille : static/ecos/css/landing.css. */
.landing-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 34px;
}
.landing-logo {
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.landing-logo span { color: var(--signal); }
.landing-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.landing-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.landing-link:hover { color: var(--teal); }
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: #1c2a29;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.secondary-action:hover {
  border-color: var(--teal);
  color: var(--ink);
}

@media (max-width: 980px) {
  .welcome-grid,
  .filter-grid { grid-template-columns: 1fr; }
  .cat-top { align-items: flex-start; flex-direction: column; }
  .filters-row {
    align-items: stretch;
    flex-direction: column;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
  }
  .filter-toggle {
    display: flex;
  }
  .filters-row:not(.filters-open) .filter-grid,
  .filters-row:not(.filters-open) .filter-chips,
  .filters-row:not(.filters-open) .sort-select,
  .filters-row:not(.filters-open) .reset-link {
    display: none;
  }
  .filters-row .filter-grid,
  .filters-row .filter-chips {
    width: 100%;
  }
  .filters-row .filter-grid {
    flex: 0 0 auto;
    align-content: start;
  }
  .filters-row .filter-chips {
    justify-content: stretch;
  }
  .filters-row .filter-chips .chip {
    flex: 1;
    justify-content: center;
  }
  .sort-select { width: 100%; }
  .station-layout { grid-template-columns: 1fr; }
  .station-rail {
    position: static;
    grid-template-columns: 1fr;
  }
  .station-rail-card {
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    align-items: start;
  }
  .exam-grid {
    grid-template-columns: 1fr;
  }
  .station-rail-card .rail-timer,
  .station-rail-card form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .side {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  .side.open { transform: translateX(0); }
  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    background: rgba(0,0,0,.42);
  }
  .mobile-backdrop.show { display: block; }
  .menu-btn { display: grid; }
  .cat-top .menu-btn { display: grid; }
  .topbar { padding: 18px 18px 10px; }
  .topbar h1 { font-size: 25px; }
  .page { padding: 12px 18px 42px; }
  .page.catalogue-shell { padding: 22px 16px 80px; }
  .page.station-shell { padding: 14px 16px 60px; }
  .deck { grid-template-columns: 1fr; }
  .deck:not(.list) .station-card {
    min-height: 326px;
  }
  .deck.list .station-card {
    display: flex;
    flex-direction: column;
  }
  .deck.list .station-band {
    width: auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--station-color) 22%, var(--line));
  }
  .deck.list .band-text { flex: 1; }
  .deck.list .station-fav {
    width: 34px;
    height: 34px;
  }
  .view-tabs { width: 100%; }
  .view-tabs a { flex: 1; text-align: center; }
  .tb-row { align-items: stretch; flex-direction: column; }
  .tb-spacer,
  .layout-toggle { display: none; }
  .toolbar-row { align-items: stretch; flex-direction: column; }
  .toolbar-row > * { width: 100%; justify-content: center; }
  .cat-top h1 { font-size: 28px; }
  .station-band { padding: 11px 13px; }
  .station-bar .station-play-head,
  .station-play-head {
    position: static;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 8px;
    padding-top: 6px;
  }
  .station-play-title {
    min-width: 0;
    flex: 1 1 auto;
  }
  .station-play-title h1 {
    overflow: hidden;
    font-size: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .station-head-actions {
    flex: none;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    margin-left: 0;
  }
  .station-timerbox {
    align-items: flex-start;
  }
  .timer-num {
    min-width: 62px;
    font-size: 25px;
  }
  .station-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
    overflow: visible;
  }
  .station-tabs button,
  .station-tabs span {
    min-width: 0;
  }
  .station-panel {
    padding: 18px;
  }
  .station-rail {
    grid-template-columns: 1fr;
  }
  .station-rail-card {
    grid-template-columns: 1fr;
  }
  .rail-timer .timer-num {
    font-size: 28px;
  }
  .document-modal {
    padding: 0;
  }
  .document-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .launch-modal {
    align-items: center;
    justify-items: center;
    padding: 10px 12px;
  }
  .launch-panel {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 20px);
    overflow: hidden;
    padding: 14px;
    border-radius: 12px;
  }
  .launch-modal.is-group-flow .launch-panel {
    height: min(632px, calc(100dvh - 20px));
  }
  .launch-head {
    column-gap: 10px;
    row-gap: 0;
  }
  .launch-head h2 {
    font-size: 20px;
    line-height: 1.05;
  }
  .launch-head [data-launch-meta] {
    margin-top: 4px;
    font-size: 11px;
  }
  .launch-meta-flags {
    gap: 5px 7px;
    margin: 4px 0 12px;
  }
  .launch-meta-flags .launch-flags {
    margin-left: 0;
  }
  .launch-sub {
    max-width: 100%;
    margin: 10px 0 12px;
    padding: 6px 9px;
    font-size: 11px;
    line-height: 1.15;
  }
  .launch-flags {
    margin: 10px 0 12px;
  }
  .launch-modes {
    gap: 8px;
  }
  .launch-more-summary {
    font-size: 12px;
  }
  .launch-more .launch-choice {
    margin-top: 8px;
  }
  .launch-choice,
  .launch-choice:disabled,
  .launch-choice[aria-disabled="true"] {
    --launch-action-width: 38px;
  }
  .launch-choice {
    grid-template-columns: 38px minmax(0, 1fr) var(--launch-action-width);
    gap: 9px;
    min-height: 60px;
    padding: 9px;
    border-radius: 10px;
  }
  .launch-choice-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .launch-choice > span {
    min-width: 0;
  }
  .launch-choice-icon svg,
  .launch-arrow {
    width: 19px;
    height: 19px;
  }
  .launch-choice b {
    margin-bottom: 2px;
    font-size: 15px;
    overflow-wrap: anywhere;
  }
  .launch-choice-heading {
    gap: 6px;
    margin-bottom: 2px;
  }
  .launch-choice-heading b {
    margin-bottom: 0;
  }
  .launch-beta-badge {
    padding: 1px 6px;
    font-size: 8px;
  }
  .launch-choice small {
    font-size: 12px;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }
  .launch-action {
    min-height: 26px;
  }
  .launch-disabled-note {
    display: none;
    width: 100%;
    padding: 5px 6px;
    font-size: 9px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
  .launch-choice.requires-upgrade {
    --launch-action-width: 70px;
  }
  .launch-choice.requires-upgrade .launch-disabled-note {
    display: block;
  }
  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow,
  .launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible .launch-arrow {
    transform: none;
  }
  .launch-choice:not(:disabled):not([aria-disabled="true"]):hover .launch-arrow path,
  .launch-choice:not(:disabled):not([aria-disabled="true"]):focus-visible .launch-arrow path {
    stroke-width: 2.2;
  }
  .landing-nav { padding-bottom: 26px; }
  .landing-actions { gap: 8px; }
  .landing-link { display: none; }
  .usermenu {
    left: 0;
    right: auto;
    bottom: calc(100% + 8px);
  }
}

/* Station room: mock-up faithful refinements */
.page.station-shell {
  padding: 0 38px 70px;
}
.station-play {
  --ecos-grid-panel-max-width: 840px;
  max-width: 840px;
  margin: 0 auto;
  gap: 0;
}
.station-bar {
  z-index: 30;
  background: var(--paper);
  backdrop-filter: none;
  padding-top: 16px;
}
.station-bar .accent {
  width: 46px;
  height: 3px;
  margin-bottom: 12px;
}
.station-bar .station-play-head {
  gap: 12px;
  padding: 0 0 13px;
}
.station-back {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
}
.station-back:hover {
  color: #fff;
  filter: brightness(1.06);
}
.station-play-title h1 {
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
}
.station-play-title p {
  margin-top: 3px;
  color: #3d4b49;
  font-size: 12px;
}
.favbtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #c4cdc8;
}
.station-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
  align-items: start;
}
.station-content {
  gap: 0;
}
.station-tabs {
  top: 0;
  margin-bottom: 22px;
}
.station-tabs button {
  min-height: auto;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 600;
}
.station-panel {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.station-panel > .accent {
  display: none;
}
.exam-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.consigne,
.candidate-docs {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.consigne {
  padding: 20px 22px;
}
.course-sheet-card .brief-text > :first-child {
  margin-top: 0;
}
.course-sheet-card .brief-text {
  max-width: none;
}
/* Cours : respiration entre les rubriques, les puces et les sous-puces (Mehdi, 2026-10-17 : « peut-être espacer un peu »). */
.course-sheet-card .brief-text h3 {
  margin: 36px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.course-sheet-card .brief-text > h3:first-child,
.course-sheet-card .brief-text > h1 + h3 {
  margin-top: 22px;
  padding-top: 0;
  border-top: 0;
}
.course-sheet-card .brief-text p {
  margin: 0 0 16px;
}
.course-sheet-card .brief-text ul,
.course-sheet-card .brief-text ol {
  margin: 0 0 22px;
}
.course-sheet-card .brief-text li {
  margin: 11px 0;
}
.course-sheet-card .brief-text li > ul,
.course-sheet-card .brief-text li > ol {
  margin: 8px 0 4px;
}
.course-sheet-card .brief-text li > ul > li,
.course-sheet-card .brief-text li > ol > li {
  margin: 5px 0;
}
/* Carte vers une fiche geste : remplace, dans le cours, un lien seul dans son paragraphe. */
.sheet-card {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.sheet-card img {
  display: block;
  width: 150px;
  min-height: 132px;
  flex: none;
  align-self: stretch;
  object-fit: cover;
  background: #cdd0c5;
}
.sheet-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 18px;
}
.sheet-card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sheet-card-kicker svg {
  width: 14px;
  height: 14px;
}
.sheet-card-title {
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}
.sheet-card-text {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
}
.sheet-card-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
  color: var(--teal);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  white-space: nowrap;
}
.sheet-card-go svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 560px) {
  .sheet-card {
    flex-direction: column;
  }
  .sheet-card img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
  .sheet-card-go {
    padding: 0 18px 14px;
  }
}
.course-correction-assets {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.course-correction-assets h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 18px;
}
.course-correction-figure {
  margin: 0;
}
.course-correction-figure img {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.course-correction-caption,
.course-correction-attribution {
  max-width: 980px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.course-correction-caption {
  margin-top: 12px;
}
.course-correction-attribution {
  margin-top: 8px;
}
.course-correction-caption > :first-child,
.course-correction-attribution > :first-child {
  margin-top: 0;
}
.course-correction-caption > :last-child,
.course-correction-attribution > :last-child {
  margin-bottom: 0;
}
.course-sheet-empty {
  margin: 0;
  color: var(--muted);
}
.consigne .kicker {
  color: var(--muted);
  letter-spacing: .08em;
}
.candidate-docs {
  overflow: hidden;
}
.docs-head {
  padding: 16px 20px;
}
.docs-list {
  padding: 0 16px 16px;
}
.doc-link {
  padding: 11px;
  background: var(--paper);
}
.doc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.station-rail {
  top: 86px;
  align-self: start;
  height: calc(100vh - 116px);
}
.station-rail-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.rail-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.rail-timer .timer-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: var(--teal);
  font-size: 16px;
}
.rail-timer .timer-pause {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--teal);
}
.rail-timer .timer-pause svg {
  width: 16px;
  height: 16px;
}
.rail-timer .timer-num {
  min-width: 78px;
  color: var(--ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -1.5px;
}
/* Meme gabarit que le play/pause (rond en contour) : le stop ne domine plus.
   Rouge sobre = action destructrice (terminer la station) signalee sans crier. */
.timer-stop {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #c23b3b;
}
.timer-stop svg {
  width: 16px;
  height: 16px;
}
.station-rail-card .end-station {
  min-height: 43px;
  gap: 9px;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
}

.autoeval {
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: #eef1ee;
  color: var(--ink);
  font-size: 13px;
}
.grid-section {
  overflow: hidden;
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.grid-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 17px;
  background: #eef1ee;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.grid-section-head .line {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.grid-item {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
}
.grid-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.grid-section > .grid-item:first-of-type {
  border-top: 0;
}
.grid-row {
  display: grid;
  /* 4e colonne (18px) toujours reservee pour le chevron des items composites :
     les lignes simples et composites alignent ainsi points + pastille a l'identique. */
  grid-template-columns: minmax(0, 1fr) 42px 24px 18px;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  padding: 13px 17px;
}
.grid-composite > summary.grid-row {
  grid-template-columns: minmax(0, 1fr) 42px 24px 18px;
  cursor: pointer;
  list-style: none;
}
.grid-composite > summary.grid-row::-webkit-details-marker {
  display: none;
}
.grid-composite > summary.grid-row:hover {
  background: color-mix(in srgb, var(--teal) 5%, var(--surface));
}
.grid-composite > summary.grid-row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent);
  outline-offset: -2px;
}
.grid-disclosure {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--teal);
  transition: transform .16s ease;
}
.grid-disclosure svg {
  width: 16px;
  height: 16px;
}
.grid-composite[open] > summary .grid-disclosure {
  transform: rotate(90deg);
}
.grid-text {
  margin: 0;
  color: #1c2a29;
  font-size: 14.5px;
  line-height: 1.4;
}
.pts {
  justify-self: end;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
}
.grid-check,
.grid-subcheck {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1.7px solid #b9c2bc;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
}
.grid-check svg,
.grid-subcheck svg {
  display: none;
  width: 13px;
  height: 13px;
}
.grid-subitems {
  border-top: 1px solid var(--line);
  background: #f7f9f6;
}
.grid-subrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: center;
  padding: 11px 17px 11px 32px;
  border-top: 1px solid #e8ece6;
  color: #33403c;
  font-size: 14px;
  line-height: 1.4;
}
.grid-subrow:first-child {
  border-top: 0;
}
.grid-subcontent {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.grid-subcontent > .ia-chip {
  justify-self: start;
}
.grid-subitem-ai {
  display: grid;
  gap: 4px;
  color: #41504c;
  font-size: 12.5px;
  font-weight: 500;
}
.grid-subitem-ai blockquote {
  margin: 0;
  padding: 2px 0 2px 9px;
  border-left: 2px solid var(--line);
  color: #2f3a36;
  font-style: italic;
}
.grid-subitem-ai blockquote cite {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
}
.grid-subitem-ai .ia-reason {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.grid-subitem-ai .miss {
  margin: 0;
  color: #92400e;
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 1280px) {
  .exam-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  .page.station-shell {
    padding-bottom: 0;
  }
  .actor-start-grid {
    grid-template-columns: 1fr;
  }
  .station-play {
    max-width: none;
  }
  .station-layout {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .station-rail {
    position: static;
    order: -1;
    width: 100%;
    height: auto;
  }
  .station-rail-card {
    width: 100%;
    height: auto;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .station-rail-card .end-station {
    display: none;
  }
  .timer-stop {
    display: grid;
  }
  .station-content {
    min-height: 0;
  }
  .station-tabs {
    position: sticky;
    top: 0;
    margin-bottom: 14px;
  }
  .rail-timer .timer-num {
    min-width: 68px;
    font-size: 27px;
  }

}

@media (max-width: 720px) {
  .page.station-shell {
    padding: 14px 18px 0;
  }
  .station-bar {
    padding-top: 0;
  }
  .station-tabs button {
    padding: 9px;
    font-size: 14px;
  }
}

/* Catalogue card corrections */
.deck:not(.list) .station-card {
  min-height: 0;
}
.station-card {
  height: auto;
  cursor: default;
}
.station-band {
  min-height: 67px;
}
.station-card:hover {
  box-shadow: 0 6px 22px -16px rgba(15, 46, 61, .5);
  transform: none;
}
.station-body {
  padding: 15px 18px 15px;
}
.station-card h3 {
  min-height: 2.5em;
  margin-bottom: 8px;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.25;
}
.station-card p {
  min-height: 3em;
  font-size: 12.5px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}
.station-meta {
  min-height: 1.45em !important;
  margin-top: 17px !important;
  margin-bottom: 8px !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  -webkit-line-clamp: 1;
}
.station-foot {
  margin-top: auto;
  padding-top: 14px;
}
.deck:not(.list) .station-foot {
  min-height: 47px;
}
.station-go {
  display: inline-flex;
  width: auto;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 26%, #fff);
  border-radius: 8px;
  background: #e8f1f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}
.station-go:hover {
  background: var(--teal);
  color: #fff;
}
.station-go.locked {
  width: 34px;
  padding: 0;
}

@media (max-width: 1120px) {
  body:has(.main > .page.station-shell) .app-shell {
    display: block;
  }
  body:has(.main > .page.station-shell) .side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 260;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
    transform: translateX(-100%);
    transition: transform .18s ease;
  }
  body:has(.main > .page.station-shell) .side.open {
    transform: translateX(0);
  }
  body:has(.main > .page.station-shell) .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: none;
    background: rgba(0,0,0,.42);
  }
  body:has(.main > .page.station-shell) .mobile-backdrop.show {
    display: block;
  }
  /* Sidebar ouverte : le backdrop-filter de la barre station la fait flotter au-dessus
     du voile (quirk Chromium) → la neutraliser pour qu'elle soit grisée comme le reste. */
  body:has(.main > .page.station-shell) .side.open ~ .main .station-bar {
    backdrop-filter: none;
  }
  body:has(.main > .page.station-shell) .menu-btn {
    display: grid;
  }
  .page.station-shell {
    display: flex;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .station-play {
    display: flex;
    width: 100%;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    margin: 0;
  }
  .station-bar {
    position: static;
    flex: none;
  }
  .station-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .rail-timer {
    position: relative;
    display: grid;
    min-height: 38px;
    width: 100%;
    grid-template-columns: 26px 68px 26px;
    align-items: center;
    justify-content: center;
    column-gap: 9px;
    margin-inline: auto;
  }
  .rail-timer .timer-pause,
  .timer-stop {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .rail-timer .timer-pause {
    right: 40px;
  }
  .timer-stop {
    right: 0;
  }

  .station-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

}

/* Station room refinements */
.station-title-line {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
}
.station-title-line .kicker {
  flex: none;
  margin: 0;
  line-height: 1;
}
.station-play-meta {
  display: block;
  min-width: 0;
  max-width: min(720px, 100%);
  overflow: hidden;
  color: #3d4b49;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-play-title h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-tabs {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--station-tab-count, 4), minmax(0, 1fr));
}
.station-tabs button {
  min-width: 0;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.station-tabs button span {
  display: inline;
  min-width: 0;
  min-height: 0;
  flex: 0 1 auto;
  gap: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
}
.station-content {
  display: flex;
  flex-direction: column;
  scrollbar-gutter: auto;
}
.soft-skills {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}
.soft-head {
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
  background: #eef1ee;
}
.soft-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.soft-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}
.soft-list {
  display: grid;
}
.soft-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: 12px;
  align-items: center;
  padding: 13px 17px;
  border-top: 1px solid var(--line);
}
.soft-item:first-child {
  border-top: 0;
}
.soft-item h3 {
  margin: 0;
  color: #1c2a29;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
}
.soft-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.soft-level {
  min-width: 0;
  min-height: 32px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f4;
  color: #3f4d4b;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
}
.soft-level:hover {
  border-color: var(--teal);
  color: var(--ink);
}

@media (max-width: 1120px) {
  body:has(.main > .page.station-shell) .main {
    width: 100%;
  }
  .rail-timer {
    width: fit-content;
    max-width: 100%;
    grid-template-columns: 26px 68px 26px 30px 34px;
    column-gap: 7px;
  }
  .rail-timer .timer-pause,
  .timer-stop {
    position: static;
    transform: none;
  }

}

@media (max-width: 720px) {
  .station-tabs {
    grid-template-columns: repeat(var(--station-tab-count, 4), minmax(0, 1fr));
  }
  .station-tabs button {
    gap: 4px;
    padding: 8px 4px;
    font-size: clamp(10.5px, 2.75vw, 13px);
  }
  .station-tabs button svg {
    width: 14px;
    height: 14px;
  }
  .soft-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .soft-scale {
    grid-template-columns: 1fr;
  }
}

/* Current ECOS UX refinements */
.station-card {
  position: relative;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.station-card * {
  -webkit-tap-highlight-color: transparent;
}
.station-card.is-locked {
  cursor: default;
}
.station-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 42%, transparent);
  outline-offset: 3px;
}
.station-card .station-fav,
.station-card .station-go {
  position: relative;
  z-index: 3;
}
.station-new {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--teal) 16%, #fff);
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 8%, #fff);
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none;
}
/* Pastille « Annale » : meme gabarit que « Nouveau », en blanc et or. */
.station-annale {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--gold) 60%, #fff);
  border-radius: 999px;
  background: #fff;
  color: color-mix(in srgb, var(--gold) 82%, #000);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.station-annale[hidden] {
  display: none;
}
.soft-item {
  display: block;
}
.soft-scale {
  margin-top: 9px;
}
.document-modal {
  inset: 18px 406px 18px 18px;
  z-index: 70;
  display: block;
  padding: 0;
  pointer-events: none;
}
.document-backdrop {
  display: none;
}
.document-panel {
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

body.document-open .station-rail {
  position: fixed;
  z-index: 85;
  top: 18px;
  right: 38px;
  width: 350px;
  height: calc(100dvh - 36px);
}
body.document-open .station-rail-card {
  height: 100%;
}

@media (max-width: 1120px) {
  .document-modal {
    inset: 12px 12px 88px;
  }
  body.document-open .station-rail {
    position: static;
    width: auto;
    height: auto;
  }

}

@media (max-width: 980px) {
  .page.catalogue-shell .cat-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .page.catalogue-shell .cat-top h1 {
    font-size: 26px;
    line-height: 1;
  }
  .page.catalogue-shell .cat-top .count {
    margin-left: 2px;
  }
  .page.catalogue-shell .cat-top .count-pill {
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .document-modal {
    inset: 8px 8px 72px;
  }
  .soft-scale {
    grid-template-columns: 1fr;
  }
  .page.catalogue-shell .cat-top {
    flex-wrap: wrap;
  }
  .page.catalogue-shell .cat-top .menu-btn {
    flex: none;
  }
  .page.catalogue-shell .cat-top h1 {
    flex: 0 0 auto;
  }
  .page.catalogue-shell .cat-top .count {
    flex: 1 1 auto;
    min-width: 0;
  }
  .page.catalogue-shell .cat-top .count-pill {
    flex: 0 0 100%;
    width: fit-content;
    margin-left: 50px;
  }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .page.station-shell {
    display: block;
    height: auto;
    overflow: visible;
    padding: 0 38px 70px;
  }
  .station-play {
    display: grid;
    max-width: var(--ecos-grid-panel-max-width, 1080px);
    min-height: 0;
    margin: 0 auto;
    gap: 0;
  }
  .station-bar {
    position: sticky;
    top: 0;
    flex: initial;
  }
  .station-layout {
    display: grid;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
    overflow: visible;
  }
  .station-content {
    flex: initial;
    min-height: 0;
    overflow: visible;
    padding-bottom: 0;
  }
  .station-rail {
    position: sticky;
    top: 86px;
    order: initial;
    width: auto;
    height: calc(100vh - 116px);
    align-self: start;
  }
  .station-rail-card {
    display: flex;
    width: auto;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-bottom: 0;
  }

  .station-rail-card .end-station {
    display: inline-flex;
  }
  .timer-stop {
    display: none;
  }
  .rail-timer {
    display: flex;
    width: auto;
    max-width: none;
    min-height: 0;
    grid-template-columns: none;
    gap: 9px;
  }
  .rail-timer .timer-pause,
  .timer-stop {
    position: static;
    transform: none;
  }
  .document-modal {
    inset: 18px 406px 18px 18px;
  }
  body.document-open .station-rail {
    position: fixed;
    z-index: 85;
    top: 18px;
    right: 38px;
    width: 350px;
    height: calc(100dvh - 36px);
  }
}

/* Floating station chat */

/* Rail-less station layout */
.page.station-shell {
  display: block;
  height: auto;
  min-height: 100dvh;
  max-width: 100%;
  overflow: visible;
  overflow-x: clip;
  padding: 0 38px 92px;
}
.station-play {
  display: grid;
  width: 100%;
  max-width: min(var(--ecos-grid-panel-max-width, 1080px), 100%);
  min-height: 0;
  margin: 0 auto;
  overflow-x: clip;
}
.station-bar {
  position: sticky;
  top: 0;
  z-index: 34;
  padding-bottom: 10px;
  background: var(--paper);
}
.station-timer-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 4px 0 10px;
}
.station-timer-strip::after {
  content: "";
}
.station-status {
  justify-self: end;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.station-status-running {
  border-color: rgba(47, 120, 120, .28);
  background: #e7f2f0;
  color: var(--teal);
}
.station-status-waiting {
  border-color: rgba(176, 125, 42, .34);
  background: #fff6da;
  color: #7a5418;
}
.station-status-assessment {
  border-color: rgba(176, 125, 42, .34);
  background: #fbf3e6;
  color: var(--gold);
}
.station-status-paused {
  border-color: rgba(109, 84, 160, .30);
  background: #f0edf8;
  color: #5b4790;
}
.station-status-time {
  border-color: rgba(232, 89, 63, .34);
  background: #fbeef0;
  color: var(--signal);
}
.station-status-done {
  border-color: rgba(47, 120, 120, .26);
  background: #eef1ee;
  color: var(--teal);
}
.station-finish-form {
  display: none;
}
.station-timer-strip .station-countdown {
  grid-column: 2;
  justify-self: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.station-timer-strip [data-chatbot-status] {
  grid-column: 3;
}
.station-timer-strip .station-countdown.time-low {
  border-color: rgba(232, 89, 63, .34);
  background: #fbeef0;
  color: var(--signal);
  animation: timerBeat .82s ease-in-out infinite;
}
.station-timer-strip .station-countdown.time-ended {
  border-color: rgba(232, 89, 63, .34);
  background: #fbeef0;
  color: var(--signal);
  animation: none;
}
.station-timer-strip .rail-timer {
  grid-column: 2;
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  grid-template-columns: none;
  margin-inline: auto;
}
.station-timer-strip .timer-stop {
  display: grid;
  position: static;
  transform: none;
}
.station-result-topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0 0 10px;
  padding: 10px 12px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 96%, white);
  box-shadow: 0 14px 32px -30px rgba(15, 46, 61, .45);
}
.station-result-topbar--noscore {
  grid-template-columns: minmax(0, 1fr) auto;
}
.station-result-topbar-score {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 3px;
  min-width: 118px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.station-result-score-line,
.audio-result-score-line {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.station-result-topbar-score .result-topbar-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
}
.station-result-topbar-score .station-result-topbar-score-number {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: .85;
  font-variant-numeric: tabular-nums;
}
.station-result-topbar-score small {
  margin-left: 1px;
  color: var(--muted);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 800;
}
.station-result-topbar-score.is-live {
  min-width: 190px;
  justify-content: center;
  justify-items: center;
}
.station-result-topbar-score.lvl-good .station-result-topbar-score-number {
  color: #1c8a4b;
}
.station-result-topbar-score.lvl-mid .station-result-topbar-score-number {
  color: #ad7414;
}
.station-result-topbar-score.lvl-low .station-result-topbar-score-number {
  color: #cc382f;
}
.station-result-topbar-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}
.station-result-topbar-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.result-topbar-part {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.result-topbar-time-icon {
  display: inline-flex;
  color: var(--teal);
}
.result-topbar-time-icon svg {
  width: 15px;
  height: 15px;
}
.result-topbar-time-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1;
  text-transform: uppercase;
}
.result-topbar-time-value {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.grid-hint {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
}
.grid-hint:empty {
  display: none;
}
.station-result-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.result-topbar-status {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.station-result-topbar .result-topbar-action {
  width: auto;
  min-width: 110px;
  min-height: 38px;
  padding-inline: 13px;
  white-space: nowrap;
}
.station-assessment-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
}
.station-assessment-topbar.station-result-topbar--noscore {
  grid-template-columns: minmax(0, 1fr) auto;
}
.station-assessment-topbar .station-result-topbar-score {
  min-width: 190px;
}
.station-assessment-topbar .station-result-topbar-score .result-topbar-label {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  color: var(--muted);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.station-assessment-topbar .station-result-topbar-parts {
  flex-wrap: nowrap;
}
.station-assessment-topbar .result-topbar-action {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 34px;
  padding-inline: 13px;
  justify-content: center;
  font-size: 14px;
  font-weight: 850;
}
.station-assessment-topbar .station-result-topbar-actions {
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  margin-left: auto;
  justify-self: end;
  justify-content: flex-end;
  white-space: nowrap;
}
.station-assessment-topbar .station-result-topbar-actions .secondary-action {
  min-width: 0;
  min-height: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.station-assessment-topbar .station-result-topbar-actions .secondary-action:hover {
  background: transparent;
  color: var(--teal);
}

.station-assessment-topbar--grid {
  gap: 10px 14px;
  margin-bottom: 8px;
  padding: 7px 10px;
}

.station-assessment-topbar--grid .station-result-topbar-main {
  min-width: 0;
}

.station-assessment-topbar--grid .station-result-topbar-actions {
  min-width: 0;
  gap: 8px;
}

.station-assessment-topbar--grid .result-topbar-action {
  min-width: 132px;
}

.station-assessment-topbar .result-topbar-error {
  position: absolute;
  right: 10px;
  bottom: -18px;
  width: min(420px, calc(100% - 20px));
  min-height: 0;
  margin: 0;
  color: var(--signal);
  font-size: 12px;
  line-height: 1.25;
}
.participant-start-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 18px;
}
.participant-start-modal[hidden] {
  display: none;
}
.participant-start-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 30, .56);
}
.participant-start-dialog {
  position: relative;
  display: grid;
  width: min(440px, 100%);
  gap: 14px;
  justify-items: start;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 28px 80px -42px rgba(15, 23, 30, .7);
}
.participant-start-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--teal);
  color: #fff;
}
.participant-start-icon svg {
  width: 21px;
  height: 21px;
}
.participant-start-dialog h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 22px;
  line-height: 1.15;
}
.participant-start-dialog p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.participant-start-dialog .primary-action {
  width: 100%;
  justify-content: center;
}
.station-layout {
  display: block !important;
  min-height: 0 !important;
  max-width: 100%;
  overflow: visible !important;
  overflow-x: clip !important;
}
.station-content {
  display: grid;
  width: 100%;
  max-width: none;
  min-height: 0 !important;
  overflow: visible !important;
  overflow-x: clip !important;
  padding-bottom: 86px;
}
.station-rail {
  display: none !important;
}
.station-bar .station-tabs {
  position: static;
  top: auto;
  z-index: auto;
  margin: 0;
}
@media (min-width: 900px) {
  .station-panel[data-station-panel="candidate"] .exam-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    align-items: start;
  }
}
.document-modal {
  inset: 18px !important;
  z-index: 90;
  display: grid;
  padding: 0;
  place-items: center;
  pointer-events: none;
}
.document-panel {
  width: min(1180px, 100%);
  height: min(860px, calc(100dvh - 36px));
  pointer-events: auto;
}
body.doc-fullscreen .document-panel {
  width: 100%;
  height: 100%;
}
.doc-link,
[data-document-open] {
  scroll-margin-bottom: 190px;
}
body.document-open .station-rail,
body.document-open .station-rail-card {
  display: none !important;
}

body.document-open .document-modal {
  inset: 18px !important;
}

body.document-open .document-panel {
  height: 100%;
}

@media (min-width: 1121px) {
  body:has(.main > .page.station-shell).document-open .document-modal {
    inset: 18px 18px 18px 102px !important;
  }
}

@media (max-width: 720px) {
  .page.station-shell {
    padding: 14px 18px 96px;
  }
  .station-bar {
    padding-bottom: 8px;
  }
  .station-timer-strip {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }
  .station-timer-strip::after {
    display: none;
  }
  .station-status,
  .station-timer-strip .rail-timer {
    grid-column: 1;
    justify-self: center;
  }
  .station-result-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 9px;
    padding: 10px;
  }
  .station-result-topbar-score {
    justify-content: flex-start;
    min-width: 0;
    padding: 0 0 9px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .station-result-topbar-score .station-result-topbar-score-number {
    font-size: 34px;
  }
  .station-result-topbar-actions {
    min-width: 0;
    justify-content: flex-start;
  }
  .station-result-topbar .result-topbar-action {
    flex: 1 1 150px;
    width: auto;
    justify-content: center;
  }
  .station-result-topbar:not(.station-assessment-topbar) {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score {
    display: grid;
    flex: 1 1 auto;
    align-content: center;
    justify-items: start;
    gap: 2px;
    min-width: 0;
    padding: 0 8px 0 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    overflow: hidden;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score .result-topbar-label {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-score-line,
  .station-result-topbar:not(.station-assessment-topbar) .audio-result-score-line {
    flex: 0 0 auto;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score .station-result-topbar-score-number {
    font-size: 28px;
    line-height: .9;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score small {
    font-size: 11px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-main,
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-parts {
    flex: 0 1 auto;
    min-width: 0;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-parts,
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-actions {
    flex-wrap: nowrap;
  }
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-part {
    gap: 5px;
    min-width: 0;
    min-height: 30px;
    padding-inline: 8px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-time-label,
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-time-value {
    font-size: 11px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-actions {
    flex: 0 0 auto;
    gap: 6px;
    margin-left: auto;
  }
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-action {
    flex: 0 0 auto;
    min-width: 76px;
    min-height: 30px;
    padding-inline: 8px;
    font-size: 12px;
  }
  .station-assessment-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px 10px;
    padding: 7px 8px;
  }
  .station-assessment-topbar.station-result-topbar--noscore {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .station-assessment-topbar .station-result-topbar-score {
    min-width: 190px;
    padding-right: 12px;
  }
  .station-assessment-topbar .station-result-topbar-main {
    min-width: 0;
  }
  .station-assessment-topbar .station-result-topbar-parts {
    flex-wrap: nowrap;
  }
  .station-assessment-topbar .result-topbar-part {
    gap: 5px;
    font-size: 12px;
  }
  .station-assessment-topbar .station-result-topbar-actions {
    grid-column: auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
  }
  .station-assessment-topbar .grid-hint {
    font-size: 12px;
  }
  .station-assessment-topbar .result-topbar-action {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 32px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .station-assessment-topbar .station-result-topbar-actions .secondary-action {
    min-width: 0;
    padding-inline: 0;
  }
  .station-assessment-topbar--grid {
    align-items: center;
  }
  .station-assessment-topbar--grid .station-result-topbar-actions {
    justify-self: end;
  }
  .participant-start-modal {
    padding: 12px;
  }
  .participant-start-dialog {
    padding: 18px;
    border-radius: 12px;
  }
  .document-modal {
    inset: 8px !important;
  }
  .document-panel {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }
  .document-panel header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }
  .document-panel h2 {
    flex: 1 1 100%;
    font-size: 16px;
    line-height: 1.18;
  }
  .document-tools {
    width: 100%;
    justify-content: space-between;
  }
  .document-tools .station-timer-strip {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .station-assessment-topbar {
    gap: 6px;
    padding-inline: 6px;
  }
  .station-assessment-topbar:not(.station-result-topbar--noscore) {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .station-assessment-topbar .station-result-topbar-score {
    gap: 4px;
    min-width: 190px;
  }
  .station-assessment-topbar:not(.station-result-topbar--noscore) .station-result-topbar-score {
    grid-column: 1 / -1;
    justify-content: center;
    padding: 0 0 7px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .station-result-topbar-score .station-result-topbar-score-number {
    font-size: 34px;
  }
  .station-assessment-topbar .station-result-topbar-score small {
    font-size: 12px;
  }
  .station-assessment-topbar .station-result-topbar-score .result-topbar-label,
  .station-assessment-topbar .result-topbar-time-label,
  .station-assessment-topbar .result-topbar-time-value {
    font-size: 12px;
  }
  .station-assessment-topbar .result-topbar-part {
    gap: 6px;
    padding-inline: 9px;
  }
  .station-assessment-topbar .station-result-topbar-main {
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .station-assessment-topbar .result-topbar-action {
    min-width: 96px;
    min-height: 30px;
    padding-inline: 7px;
    font-size: 12px;
  }
  .station-assessment-topbar .grid-hint {
    flex-basis: 100%;
    font-size: 11.5px;
  }
  .station-assessment-topbar .station-result-topbar-actions .secondary-action {
    font-size: 12px;
  }
  .station-assessment-topbar--grid {
    gap: 6px;
  }
  .station-assessment-topbar--grid .result-topbar-action {
    min-width: 98px;
  }
}

@media (max-width: 520px) {
  .station-result-topbar:not(.station-assessment-topbar) {
    gap: 5px;
    padding: 7px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score {
    padding-right: 7px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score .result-topbar-label,
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-time-label {
    display: none;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score .result-topbar-label {
    display: block;
  }
  .station-result-topbar:not(.station-assessment-topbar) .station-result-topbar-score .station-result-topbar-score-number {
    font-size: 26px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-part {
    padding-inline: 7px;
  }
  .station-result-topbar:not(.station-assessment-topbar) .result-topbar-action {
    min-width: 72px;
    padding-inline: 7px;
  }
}

@media (max-width: 1120px) {
  body:has(.main > .page.station-shell):not(.modal-open) {
    overflow: hidden;
  }

  .page.station-shell {
    display: flex;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    overflow-x: clip;
    padding-bottom: 0;
  }

  .station-play {
    display: flex;
    height: 100%;
    min-height: 0;
    flex: 1;
    flex-direction: column;
  }

  .station-bar {
    position: relative;
    z-index: 34;
    flex: none;
  }

  .station-layout {
    flex: 1;
    min-height: 0 !important;
    overflow: hidden !important;
    overflow-x: clip !important;
  }

  .station-content {
    height: 100%;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: clip !important;
    padding-bottom: 86px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .station-content::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .grid-validation-bar {
    right: 16px;
    left: 16px;
    width: auto;
    transform: none;
  }

  .station-bar .station-tabs {
    position: static;
    top: auto;
    z-index: auto;
    background: var(--paper);
  }
}

/* Integrated assessment and result */
.assessment-form {
  display: grid;
  gap: 16px;
}
.result-hero,
.result-remarks {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.result-remarks h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
}

details.result-remarks > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}

details.result-remarks > summary::-webkit-details-marker {
  display: none;
}

details.result-remarks > summary::marker {
  content: "";
}

details.result-remarks > summary::after {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .16s ease;
}

details.result-remarks[open] > summary::after {
  transform: rotate(225deg);
}
.global-rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.global-rating label {
  display: grid;
  min-width: 0;
  min-height: 58px;
  align-content: center;
  gap: 3px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
  cursor: pointer;
  text-align: center;
}
.global-rating label:has(input:checked) {
  border-color: var(--teal);
  background: #e8f1f0;
  color: var(--teal);
}
.global-rating span {
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
}
.global-rating {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 16px 17px;
}
.remarks-field {
  display: grid;
  gap: 8px;
  padding: 0 17px 17px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.remarks-field small {
  color: var(--muted);
  font-weight: 500;
}
.remarks-field textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px;
  color: var(--text);
  font: inherit;
  font-weight: 400;
}
.summary-status {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.assessment-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}
.assessment-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.assessment-error {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--red);
  font-size: 12px;
}
.result-hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
}
.result-score {
  grid-row: span 2;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-right: 20px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.result-score span,
.result-score p {
  color: var(--muted);
  font-size: 12px;
}
.result-score strong {
  margin: 6px 0;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 52px;
  line-height: 1;
}
.result-score strong small {
  color: var(--muted);
  font-size: 18px;
}
.result-score p {
  margin: 0;
}

.result-score .result-source-note {
  max-width: 18rem;
  color: var(--muted, #64748b);
  font-size: .82rem;
  line-height: 1.35;
}
.result-comparison {
  display: grid;
  gap: 10px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
}
.comparison-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe7;
}
.comparison-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}
.comparison-row.muted i {
  background: #aeb9b4;
}
.comparison-row b {
  font-family: "IBM Plex Mono", monospace;
  text-align: right;
}
.result-parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.result-parts div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
}
.result-parts span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.result-parts b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
}
.result-remarks {
  margin-top: 16px;
  padding: 20px;
}
.result-remarks p {
  margin: 8px 0 0;
  line-height: 1.55;
}
.result-ai-transcript pre,
.result-ai-transcript p {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: #33403c;
  font: inherit;
  line-height: 1.55;
}
.result-ai-chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(420px, 52vh);
  margin-top: 12px;
  padding-right: 6px;
  overflow-y: auto;
}

/* Dans l'auto-correction, transcript et grille forment une seule lecture.
   Eviter un second scroll dans le chat : la page garde un seul axe de
   defilement jusqu'au bouton de validation situe sous la grille. */
.grid-assisted-chat .result-ai-chat-list {
  max-height: none;
  padding-right: 0;
  overflow: visible;
}
.result-ai-chat-turn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(78%, 720px);
}
.result-ai-chat-turn.is-student {
  align-self: flex-end;
  align-items: flex-end;
}
.result-ai-chat-turn.is-assistant {
  align-self: flex-start;
}
.result-ai-chat-label {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.result-ai-chat-turn p {
  margin: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: #24332f;
  line-height: 1.5;
  white-space: pre-wrap;
}
.result-ai-chat-turn.is-student p {
  border-color: color-mix(in srgb, var(--teal) 32%, var(--line));
  background: #eaf7f4;
}
.result-ai-chat-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 10px;
  background: #f7faf8;
}
.result-ai-chat-guide {
  margin: 0;
  color: #52635f;
  font-size: .82rem;
  line-height: 1.45;
}
.result-ai-chat-guide strong {
  color: #263b36;
}
.result-ai-chat-toggle {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
}
.result-ai-chat.ai-markers-hidden .result-ai-chat-guide,
.result-ai-chat.ai-markers-hidden .result-ai-chat-analysis {
  display: none;
}
.result-ai-chat.ai-markers-hidden .result-ai-chat-toggle {
  margin-left: auto;
  background: #fff;
  color: var(--teal-dark, #236d6a);
}
.result-ai-chat-analysis {
  display: grid;
  gap: 7px;
  width: min(100%, 620px);
  margin-top: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf8;
  text-align: left;
}
.result-ai-chat-analysis-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}
.result-ai-chat-criterion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 8px 0 8px 10px;
  border-left: 3px solid transparent;
}
.result-ai-chat-criterion + .result-ai-chat-criterion {
  border-top: 1px solid var(--line);
}
.result-ai-chat-criterion.is-clear {
  border-left-color: #15966d;
}
.result-ai-chat-criterion.is-caution {
  border-left-color: #e38a23;
}
.result-ai-chat-criterion strong {
  display: block;
  color: #263b36;
  font-size: .84rem;
  line-height: 1.35;
}
.result-ai-chat-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  font-size: .7rem;
  font-weight: 800;
}
.result-ai-chat-signal::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.result-ai-chat-criterion.is-clear .result-ai-chat-signal {
  color: #147a5c;
}
.result-ai-chat-criterion.is-caution .result-ai-chat-signal {
  color: #a65c12;
}
.result-ai-chat-jump {
  align-self: center;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--teal-dark, #236d6a);
  cursor: pointer;
  font: inherit;
  font-size: .72rem;
  font-weight: 750;
  white-space: nowrap;
}
.result-ai-chat-comment {
  grid-column: 1 / -1;
  padding: 7px 9px;
  border-radius: 7px;
  background: #fff7e8;
  color: #6f4a1e;
  font-size: .78rem;
  line-height: 1.4;
}
.result-ai-chat mark.hl-clear {
  background: #dcf7eb;
  border-bottom: 2px solid #15966d;
}
.result-ai-chat mark.hl-caution {
  background: #fff0da;
  border-bottom: 2px solid #e38a23;
}
.result-ai-chat.ai-markers-hidden mark.hl-clear,
.result-ai-chat.ai-markers-hidden mark.hl-caution {
  background: transparent;
  border-bottom-color: transparent;
}
.grid-item.is-ai-target,
.grid-subrow.is-ai-target {
  animation: gridAiTarget 1.4s ease-out;
}
@keyframes gridAiTarget {
  0%, 35% { background: color-mix(in srgb, var(--teal) 14%, transparent); }
  100% { background: transparent; }
}
.result-chat-empty {
  border: 1px solid #fde68a;
  border-radius: 8px;
  background: #fffbeb;
}
.result-panel details.result-ai-item > summary {
  cursor: pointer;
  list-style: none;
}
.result-panel details.result-ai-item > summary::-webkit-details-marker { display: none; }
.result-panel details.result-ai-item > summary::marker { content: ""; }
.result-panel details.result-ai-item[open] > summary .grid-disclosure { transform: rotate(90deg); }
.result-panel .result-ai-item .grid-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.result-panel .result-ai-item .grid-label-text {
  display: block;
  min-width: 0;
}
.result-panel .ia-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.result-panel .ia-chip .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.result-panel .ia-chip.status-validated {
  background: color-mix(in srgb, var(--grid-ok) 12%, #fff);
  color: var(--grid-ok);
}
.result-panel .ia-chip.status-validated .d { background: var(--grid-ok); }
.result-panel .ia-chip.status-partial,
.result-panel .ia-chip.status-uncertain {
  background: color-mix(in srgb, var(--grid-partial) 16%, #fff);
  color: var(--grid-partial);
}
.result-panel .ia-chip.status-partial .d,
.result-panel .ia-chip.status-uncertain .d { background: var(--grid-partial); }
.result-panel .ia-chip.status-mentioned_false,
.result-panel .ia-chip.status-contradictory {
  background: color-mix(in srgb, var(--grid-missing) 12%, #fff);
  color: var(--grid-missing);
}
.result-panel .ia-chip.status-mentioned_false .d,
.result-panel .ia-chip.status-contradictory .d { background: var(--grid-missing); }
.result-panel .ia-chip.status-absent {
  background: #f1efea;
  color: var(--muted);
}
.result-panel .ia-chip.status-absent .d { background: #aeb9b4; }
.result-panel .ia-body {
  padding: 9px 17px 12px;
  border-top: 1px dashed var(--line);
  background: #f9faf7;
  color: #33403c;
  font-size: 13.5px;
}
.result-panel .ia-body blockquote {
  margin: 4px 0;
  padding: 3px 0 3px 11px;
  border-left: 2px solid var(--line);
  color: #2b332f;
  font-style: italic;
}
.result-panel .ia-body blockquote cite {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
}
.result-panel .ia-body .ia-reason {
  margin: 7px 0 0;
  color: #33403c;
  font-size: 12.5px;
  font-weight: 750;
}
.result-panel .ia-body .miss {
  margin: 5px 0 0;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 750;
}
.sessions-page {
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
}
.sessions-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ebece7;
}
.sessions-tabs button {
  min-height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.sessions-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 6px rgba(15,46,61,.10);
}
.sessions-panel[hidden] {
  display: none;
}
.sessions-toolbar {
  margin-bottom: 4px;
}
.sessions-filters-row {
  align-items: center;
  flex-wrap: wrap;
}
.sessions-filter-grid {
  flex: 1 1 460px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sessions-filters-row .f-select {
  min-width: 148px;
}
.sessions-reset {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.sessions-count {
  margin-left: auto;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}
.sessions-summary {
  display: flex;
  margin-bottom: 8px;
}
.sessions-list {
  display: grid;
  gap: 8px;
}
.session-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 112px 112px 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.session-row:hover {
  border-color: var(--teal);
}
.session-row.is-static:hover {
  border-color: var(--line);
}
.sessions-more {
  display: flex;
  width: max-content;
  margin: 14px auto 0;
}
.sessions-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.sessions-pagination:empty {
  display: none;
}
.sessions-pagination button,
.sessions-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
}
.sessions-pagination button {
  cursor: pointer;
}
.sessions-pagination button:hover:not(:disabled) {
  border-color: var(--teal);
  color: var(--ink);
}
.sessions-pagination button.on {
  border-color: var(--ink-fill);
  background: var(--ink-fill);
  color: #fff;
}
.sessions-pagination button:disabled {
  cursor: not-allowed;
  opacity: .48;
}
.session-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--station-color) 14%, #fff);
  color: var(--station-color);
}
.session-mark svg,
.session-arrow {
  width: 18px;
  height: 18px;
}
.session-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}
.session-main b {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.session-main small {
  color: var(--muted);
  font-size: 11.5px;
}
.session-mode {
  width: 112px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef1ee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.session-score {
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.session-score.note--good,
.session-score.note--mid,
.session-score.note--low {
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
}
.session-score.note--good { color: #1c8a4b; }
.session-score.note--mid { color: #ad7414; }
.session-score.note--low { color: #cc382f; }
.session-score small {
  color: var(--muted);
  font-size: 10px;
}
.session-arrow {
  color: var(--muted);
}

@media (max-width: 980px) {
  .sessions-filters-row {
    align-items: stretch;
  }
  .sessions-filters-row .filter-toggle {
    width: 100%;
  }
  .sessions-filter-grid {
    grid-template-columns: 1fr;
  }
  .sessions-filters-row .sessions-count {
    margin-left: 0;
    align-self: flex-end;
  }
}

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

.empty-card {
  display: grid;
  justify-items: center;
  text-align: center;
  max-width: 560px;
  margin: 8px auto 0;
  padding: 44px 28px 42px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -30px rgba(15, 46, 61, .38);
}

.empty-card-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #edf0ee;
  color: #7c8a86;
}

.empty-card-badge.is-ok {
  background: #e7f4ee;
  color: #2f7d5b;
}

.empty-card-badge svg {
  width: 28px;
  height: 28px;
}

.empty-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 800;
}

.empty-card p {
  max-width: 460px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

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

.empty-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.empty-card-btn:hover {
  background: #266767;
}

.empty-card-btn svg {
  width: 16px;
  height: 16px;
}

.carnet-note,
.carnet-capture {
  display: grid;
  gap: 9px;
}

.result-remarks.carnet-capture {
  border: 0;
  border-left: 3px solid #e6c467;
  border-radius: 0;
  background: #fff8df;
  box-shadow: none;
}

.result-remarks.carnet-capture h2 {
  color: #795b11;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.carnet-note-label {
  margin: 0;
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

/* note = accordeon lecture / edition */
.carnet-note-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.carnet-note-summary::-webkit-details-marker {
  display: none;
}

.carnet-note-summary-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.carnet-note-summary-label::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .14s ease;
}

.carnet-note[open] > .carnet-note-summary .carnet-note-summary-label::after {
  transform: rotate(225deg);
}

.carnet-note-summary .carnet-note-btn {
  margin-left: auto;
}

.carnet-note-body {
  display: grid;
  gap: 8px;
}

.carnet-note-btn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.carnet-note-btn:hover {
  border-color: #c4ccc6;
  background: #fbfcfb;
}

.carnet-note.is-edit .carnet-note-btn {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.carnet-note.is-edit:not(.is-dirty) .carnet-note-btn {
  display: none;
}

.carnet-note-btn.is-saved {
  border-color: color-mix(in srgb, #1c8a4b 24%, var(--line));
  background: #eef8f2;
  color: #1c8a4b;
}

.carnet-note-btn.is-error {
  border-color: color-mix(in srgb, #cc382f 28%, var(--line));
  background: #fff4f2;
  color: #cc382f;
}

/* lecture : toolbar masquee, editeur grise non modifiable */
.carnet-note:not(.is-edit) .carnet-rich-toolbar {
  display: none;
}

.carnet-note:not(.is-edit) .carnet-rich {
  background: #fbfcfb;
}

.carnet-note:not(.is-edit) .carnet-rich-editor {
  min-height: 0;
  color: #54615f;
}

/* edition : cadre blanc, lisere teal */
.carnet-note.is-edit .carnet-rich {
  border-color: var(--teal);
}

.carnet-rich {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.carnet-rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  background: #f7faf8;
}

.carnet-rich-tool,
.carnet-rich-select {
  height: 30px;
  border: 1px solid #d6e0dd;
  border-radius: 7px;
  background: #fff;
  color: #263330;
  font-size: 12px;
  font-weight: 800;
}

.carnet-rich-tool {
  min-width: 30px;
  padding: 0 8px;
}

.carnet-rich-tool:hover,
.carnet-rich-select:hover {
  border-color: color-mix(in srgb, var(--teal) 42%, #d6e0dd);
}

.carnet-rich-select {
  max-width: 118px;
  padding: 0 7px;
}

.carnet-note textarea,
.carnet-capture textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
}

.carnet-rich-editor {
  width: 100%;
  min-height: 112px;
  padding: 10px 11px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}

.carnet-capture .carnet-rich-editor {
  min-height: 86px;
}

.carnet-rich-editor:focus {
  outline: 2px solid color-mix(in srgb, var(--teal) 32%, transparent);
  outline-offset: -2px;
}

.carnet-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #7f8c88;
}

.carnet-rich-content p,
.carnet-rich-content ul,
.carnet-rich-content ol {
  margin: 0 0 8px;
}

.carnet-rich-content p:last-child,
.carnet-rich-content ul:last-child,
.carnet-rich-content ol:last-child {
  margin-bottom: 0;
}

.carnet-rich-content ul,
.carnet-rich-content ol {
  padding-left: 20px;
}

.carnet-rich-content .note-color-red {
  color: #b42318;
}

.carnet-rich-content .note-color-green {
  color: #16764f;
}

.carnet-rich-content .note-color-blue {
  color: #175cd3;
}

.carnet-rich-content .note-color-purple {
  color: #6941c6;
}

.carnet-rich-content .note-color-muted {
  color: #667085;
}

.carnet-rich-content .note-highlight-yellow {
  background: #fff3b0;
}

.carnet-rich-content .note-highlight-green {
  background: #d8f7df;
}

.carnet-rich-content .note-highlight-pink {
  background: #fde2e8;
}

.carnet-rich-content .note-highlight-blue {
  background: #dbeafe;
}

.carnet-rich-content .note-size-small {
  font-size: .9em;
}

.carnet-rich-content .note-size-large {
  font-size: 1.18em;
}

.carnet-note textarea:focus,
.carnet-capture textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--teal) 32%, transparent);
  outline-offset: 2px;
}

.carnet-note-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.carnet-note-actions .primary-action[hidden] {
  display: none;
}

.carnet-note-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.carnet-note-save {
  min-width: 142px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1;
}

.carnet-note-save.is-saved {
  border-color: color-mix(in srgb, #1c8a4b 24%, var(--line));
  background: #eef8f2;
  color: #1c8a4b;
}

.carnet-note-save.is-error {
  border-color: color-mix(in srgb, #cc382f 28%, var(--line));
  background: #fff4f2;
  color: #cc382f;
}

.carnet-save-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 7px;
  background: #f8fbfa;
  color: var(--teal);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
}

.carnet-save-action:hover {
  border-color: color-mix(in srgb, var(--teal) 58%, var(--line));
  background: #eef7f5;
}

.carnet-save-action:disabled {
  cursor: default;
  opacity: .62;
}

@keyframes timerBeat {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
}

.station-play.time-low .timer-num,
.station-play.time-low .rail-timer .timer-num {
  color: var(--signal);
  letter-spacing: 0;
  animation: timerBeat .82s ease-in-out infinite;
  transform-origin: center;
}

.station-play.time-ended .timer-num,
.station-play.time-ended .rail-timer .timer-num {
  animation: none;
}

.station-play.station-frozen.time-low .timer-num,
.station-play.station-frozen.time-low .rail-timer .timer-num {
  animation: none;
}

.station-play.station-frozen .station-timer-strip {
  padding-bottom: 8px;
}

.station-play.station-frozen .rail-timer {
  min-height: 34px;
}

.station-play.station-frozen .timer-frozen-label {
  min-width: 72px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
}

.station-play.station-frozen .timer-frozen-label--elapsed {
  display: inline-grid;
  min-width: 88px;
  justify-items: center;
  justify-content: center;
  gap: 3px;
  padding-top: 1px;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.station-play.station-frozen .timer-frozen-caption {
  color: var(--muted);
}

.station-play.station-frozen .timer-frozen-value {
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: .95;
}

.finish-modal[hidden] {
  display: none;
}

.finish-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 24px;
}

.finish-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 61, .52);
  backdrop-filter: blur(4px);
}

.finish-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 28px 80px -28px rgba(0,0,0,.5);
}

.finish-panel h2 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.1;
}

.finish-panel p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ai-consent-modal .finish-panel,
.audio-consent-modal .finish-panel {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 22px;
}

.ai-consent-modal .finish-panel h2,
.audio-consent-modal .finish-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.ai-consent-modal .finish-panel > p:not(.ai-chatbot-error):not(.ai-audio-error),
.audio-consent-modal .finish-panel > p:not(.ai-chatbot-error):not(.ai-audio-error) {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.ai-consent-modal .audio-consent-check,
.audio-consent-modal .audio-consent-check {
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

.ai-consent-modal .audio-consent-check input,
.audio-consent-modal .audio-consent-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.ai-consent-modal .finish-actions,
.audio-consent-modal .finish-actions {
  margin-top: 2px;
}

.ai-consent-modal .finish-actions .primary-action,
.ai-consent-modal .finish-actions .secondary-action,
.audio-consent-modal .finish-actions .primary-action,
.audio-consent-modal .finish-actions .secondary-action {
  min-height: 40px;
  justify-content: center;
}

.finish-modal.has-audio-warning .finish-panel {
  border-color: #f0b84a;
  box-shadow: 0 28px 80px -28px rgba(116, 75, 0, .45);
}

.finish-modal.has-audio-warning [data-finish-message] {
  padding: 12px;
  border: 1px solid #f3c976;
  border-radius: 10px;
  background: #fff8e8;
  color: #744b00;
  font-weight: 700;
}

.finish-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.finish-actions .primary-action,
.finish-actions .secondary-action {
  min-height: 39px;
  border: 0;
  cursor: pointer;
}

.finish-actions [data-finish-confirm].is-launching {
  gap: 9px;
  cursor: progress;
  opacity: .72;
  pointer-events: none;
}

.finish-actions [data-finish-confirm].is-launching::after {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 999px;
  animation: launch-spin .8s linear infinite;
}

.finish-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.finish-actions .secondary-action {
  background: #eef3f2;
  color: var(--ink);
}
.finish-actions .secondary-action:hover {
  background: #e4edec;
  color: var(--ink);
}

.finish-actions .secondary-action[hidden] {
  display: none;
}

.finish-actions.is-chatbot-choice {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
}

.finish-actions.is-chatbot-choice.has-continue {
  grid-template-columns: 1fr;
}

.finish-actions.is-chatbot-choice .finish-choice-action {
  width: 100%;
  min-height: 74px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: flex-start;
  align-content: center;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  filter: none;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: break-word;
}

.finish-choice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f2f5f4;
  color: var(--teal);
}

.finish-choice-icon svg {
  width: 18px;
  height: 18px;
}

.finish-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.finish-actions.is-chatbot-choice [data-finish-confirm] {
  order: 1;
}

.finish-actions.is-chatbot-choice [data-chatbot-manual-choice],
.finish-actions.is-chatbot-choice [data-audio-manual-choice] {
  order: 2;
}

.finish-actions.is-chatbot-choice [data-finish-cancel] {
  order: 3;
  justify-self: end;
  width: auto;
  min-height: 39px;
  margin-top: 4px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.finish-actions.is-chatbot-choice [data-finish-cancel]:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--line));
  background: var(--surface);
  color: var(--teal);
}

.finish-actions.is-chatbot-choice .finish-choice-action:hover {
  border-color: color-mix(in srgb, var(--teal) 52%, var(--line));
  background: #f8fbfa;
  color: var(--ink);
  filter: none;
}

.finish-actions.is-chatbot-choice .finish-choice-action[aria-disabled="true"] {
  border-color: var(--line);
  background: #f3f5f4;
  color: var(--muted);
  cursor: not-allowed;
  opacity: .72;
}

.finish-choice-action strong {
  display: block;
  width: 100%;
  font-size: 14px;
  letter-spacing: 0;
  text-align: left;
}

.finish-choice-action small {
  display: block;
  width: 100%;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  opacity: .82;
  text-align: left;
}

.finish-choice-action .finish-choice-quota {
  color: var(--teal);
  font-weight: 800;
  opacity: 1;
}

.group-validation-waiting-panel {
  min-height: 360px;
}

.validation-waiting-box {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, var(--line));
  border-radius: 12px;
  background: #fffaf0;
}

.validation-waiting-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--gold) 20%, #fff);
  color: var(--gold);
}

.validation-waiting-icon svg {
  width: 28px;
  height: 28px;
}

.validation-waiting-box h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

.validation-waiting-box p {
  max-width: 620px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.station-panel[data-station-panel="grid"] {
  width: 100%;
  max-width: var(--ecos-grid-panel-max-width);
  margin-inline: auto;
  padding: 0;
}

.station-panel.assessment-panel {
  overflow: visible;
  padding-bottom: 136px;
}

.station-panel.result-panel {
  overflow: visible;
}

.inline-result {
  display: grid;
  gap: 8px;
}

.inline-result-summary {
  margin-bottom: 0;
}

.station-panel[data-station-panel="grid"] {
  --grid-ok: var(--teal);
  --grid-ok-bg: #e7f2f0;
  --grid-ok-line: rgba(47, 120, 120, .34);
  --grid-partial: #b07d2a;
  --grid-partial-bg: #fbf3e6;
  --grid-partial-line: rgba(176, 125, 42, .34);
  --grid-missing: #d8434f;
  --grid-missing-bg: #fbeef0;
  --grid-neutral-bg: #f8faf7;
}

.grid-assessment-form {
  gap: 12px;
}

.station-panel[data-station-panel="grid"] .grid-section {
  margin: 0 0 16px;
  border-color: #b8c3be;
  border-radius: 10px;
  box-shadow: none;
}

/* Section repliable : la tete (summary) plie toute la section, chevron a droite. */
.station-panel[data-station-panel="grid"] details.grid-section > summary.grid-section-head {
  cursor: pointer;
  list-style: none;
}
.station-panel[data-station-panel="grid"] details.grid-section > summary.grid-section-head::-webkit-details-marker { display: none; }
.station-panel[data-station-panel="grid"] details.grid-section > summary.grid-section-head::marker { content: ""; }
.station-panel[data-station-panel="grid"] details.grid-section[open] > summary .grid-disclosure { transform: rotate(180deg); }

.station-panel[data-station-panel="grid"] .grid-section-head {
  padding: 8px 14px;
  border-bottom: 1px solid #98a49f;
  background: #f1f3f1;
  font-size: 16px;
  font-weight: 750;
}

.station-panel[data-station-panel="grid"] .grid-section-head .line {
  background: #98a49f;
  opacity: .86;
}

.station-panel[data-station-panel="grid"] .grid-section:has(.is-positive) > .grid-section-head .line {
  background: var(--grid-ok);
  opacity: .55;
}

.station-panel[data-station-panel="grid"] .grid-section:has(.is-partial):not(:has(.is-positive)) > .grid-section-head .line {
  background: var(--grid-partial);
  opacity: .55;
}

.station-panel[data-station-panel="grid"] .grid-item::before {
  top: 0;
  bottom: 0;
  width: 8px;
  height: auto;
  background: var(--grid-missing);
  clip-path: none;
}

.station-panel[data-station-panel="grid"] .grid-item.is-positive::before {
  background: var(--grid-ok);
}

.station-panel[data-station-panel="grid"] .grid-item.is-partial::before {
  background: var(--grid-partial);
}

.station-panel[data-station-panel="grid"] .grid-item.is-missing::before {
  background: var(--grid-missing);
}

.station-panel[data-station-panel="grid"] .grid-item {
  border-top-color: #b8c3be;
}

.station-panel[data-station-panel="grid"] .grid-subitems {
  border-top-color: #b8c3be;
}

.station-panel[data-station-panel="grid"] .grid-row {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
  min-height: 36px;
  column-gap: 11px;
  padding: 6px 14px 6px 17px;
  transition: background .14s, color .14s;
}
.station-panel[data-station-panel="grid"] .grid-composite > summary.grid-row {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
}

.station-panel[data-station-panel="grid"] .grid-composite[open] > summary .grid-disclosure {
  transform: rotate(180deg);
}

.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-row,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-composite > summary.grid-row {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
}

.station-panel[data-station-panel="grid"] .grid-row.grid-choice:has(input:checked) {
  background: var(--surface);
}

.station-panel[data-station-panel="grid"] .grid-item.is-positive > .grid-row {
  background: var(--surface);
}

.station-panel[data-station-panel="grid"] .grid-item.is-partial > .grid-row {
  background: var(--grid-partial-bg);
}

.station-panel[data-station-panel="grid"] .grid-text {
  color: #1b2927;
  font-size: 14.4px;
  font-weight: 500;
  line-height: 1.42;
}

.grid-threshold {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.station-panel[data-station-panel="grid"] .pts {
  justify-self: stretch;
  min-width: 54px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
}

.station-panel[data-station-panel="grid"] .grid-row > .pts,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subspacer {
  min-width: 48px;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.station-panel[data-station-panel="grid"] .composite-progress {
  display: inline-grid;
  min-width: 48px;
  min-height: 27px;
  place-items: center;
  justify-self: stretch;
  border: 1px solid rgba(104, 122, 118, .34);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.station-panel[data-station-panel="grid"] .grid-item.is-positive > .grid-row .composite-progress {
  border-color: rgba(46, 128, 125, .44);
  color: var(--teal);
}

.station-panel[data-station-panel="grid"] .grid-item.is-partial > .grid-row .composite-progress {
  border-color: rgba(185, 130, 45, .42);
  color: var(--grid-partial);
}

.station-panel[data-station-panel="grid"] .grid-item.is-positive > .grid-row .pts {
  border-color: var(--grid-ok-line);
  background: #fff;
  color: var(--grid-ok);
}

.station-panel[data-station-panel="grid"] .grid-item.is-partial > .grid-row .pts {
  border-color: var(--grid-partial-line);
  color: var(--grid-partial);
}

.station-panel[data-station-panel="grid"] .grid-check,
.station-panel[data-station-panel="grid"] .grid-subcheck {
  width: 23px;
  height: 23px;
  border-color: #b6c2bd;
  border-width: 1.5px;
}

.station-panel[data-station-panel="grid"] .grid-check svg,
.station-panel[data-station-panel="grid"] .grid-subcheck svg {
  width: 13px;
  height: 13px;
}

.station-panel[data-station-panel="grid"] .grid-subrow {
  position: relative;
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
  min-height: 30px;
  padding: 6px 14px 6px 30px;
  border-top-color: #b8c3be;
  color: #33423f;
  font-size: 13.6px;
  line-height: 1.35;
  transition: background .14s, color .14s;
}

.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subrow {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
}

.station-panel[data-station-panel="grid"] .grid-row > .grid-check,
.station-panel[data-station-panel="grid"] .grid-subrow > .grid-subcheck,
.station-panel[data-station-panel="grid"] .grid-subchoice > .grid-subcheck {
  grid-column: 3;
}

.station-panel[data-station-panel="grid"] .grid-row > .grid-disclosure,
.station-panel[data-station-panel="grid"] .grid-subrow > .grid-disclosure,
.station-panel[data-station-panel="grid"] .grid-subchoice > .grid-disclosure {
  grid-column: 4;
}

.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-row > .grid-check,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subrow > .grid-subcheck,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subchoice > .grid-subcheck {
  grid-column: 3;
}

.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-row > .grid-disclosure,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subrow > .grid-disclosure,
.station-panel[data-station-panel="grid"] .grid-assessment-form .grid-subchoice > .grid-disclosure {
  grid-column: 4;
}

.station-panel[data-station-panel="grid"] .grid-composite[open] .grid-subrow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  width: 1px;
  background: rgba(104, 122, 118, .35);
  pointer-events: none;
}

.station-panel[data-station-panel="grid"] .grid-composite[open] .grid-subrow:last-child::before {
  bottom: 50%;
}

.station-panel[data-station-panel="grid"] .grid-subcontent {
  position: relative;
  padding-left: 17px;
}

.station-panel[data-station-panel="grid"] .grid-subcontent::before {
  content: "";
  position: absolute;
  top: .54em;
  left: -9px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(46, 128, 125, .62);
  border-radius: 50%;
  background: #fbfcfb;
}

.grid-choice {
  cursor: pointer;
}

.grid-choice input,
.soft-level-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.grid-choice:has(input:checked) .grid-check,
.grid-choice:has(input:checked) .grid-subcheck {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-check,
.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-subcheck {
  border-color: rgba(46, 128, 125, .90);
  background: var(--surface);
  color: var(--teal);
}

.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-check {
  border-width: 2px;
}

.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-subcheck {
  border-color: rgba(46, 128, 125, .74);
  border-width: 2px;
}

.station-panel[data-station-panel="grid"] .grid-item.is-positive > .grid-row .grid-check {
  border-color: rgba(46, 128, 125, .90);
  border-width: 2px;
  background: var(--surface);
  color: var(--teal);
}
.station-panel[data-station-panel="grid"] .result-grid-item .grid-check {
  border-color: rgba(216, 67, 79, .72);
  border-width: 2px;
  background: var(--surface);
  color: var(--grid-missing); /* defaut : croix rouge (point manque) */
}
.station-panel[data-station-panel="grid"] .result-grid-item .grid-check svg {
  display: block;
  width: 16px;
  height: 16px;
}
.station-panel[data-station-panel="grid"] .result-grid-item.is-positive .grid-check {
  border-color: rgba(46, 128, 125, .90);
  border-width: 2px;
  background: var(--surface);
  color: var(--grid-ok);
}
.station-panel[data-station-panel="grid"] .result-grid-item.status-partial .grid-check,
.station-panel[data-station-panel="grid"] .result-grid-item.status-uncertain .grid-check {
  border-color: var(--grid-partial-line);
  border-width: 2px;
  background: var(--surface);
  color: var(--grid-partial);
}
.station-panel[data-station-panel="grid"] .result-grid-item .grid-subrow.selected .grid-subcheck {
  border-color: rgba(46, 128, 125, .74);
  border-width: 2px;
  background: var(--surface);
  color: var(--grid-ok);
}

.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-check svg path,
.station-panel[data-station-panel="grid"] .grid-item.is-positive > .grid-row .grid-check svg path,
.station-panel[data-station-panel="grid"] .result-grid-item.is-positive .grid-check svg path {
  stroke-width: 3.25;
}

.station-panel[data-station-panel="grid"] .grid-choice:has(input:checked) .grid-subcheck svg path,
.station-panel[data-station-panel="grid"] .result-grid-item .grid-subrow.selected .grid-subcheck svg path {
  stroke-width: 3.05;
}
/* Espacement des categories : 16px (solo + correction alignes via .grid-section / le gap). */
.station-panel[data-station-panel="grid"] .result-grid-section { margin: 0; }
.station-panel[data-station-panel="grid"] .inline-result { gap: 16px; }
.station-panel[data-station-panel="grid"] .result-grid-item .grid-row,
.station-panel[data-station-panel="grid"] .result-grid-item.grid-composite > summary.grid-row { grid-template-columns: minmax(0, 1fr) 48px 26px 18px; }
.station-panel[data-station-panel="grid"] .result-grid-item > summary .grid-disclosure { color: var(--teal); }
.station-panel[data-station-panel="grid"] .result-grid-item[open] > summary .grid-disclosure { transform: rotate(180deg); }
.station-panel[data-station-panel="grid"] .result-grid-section > summary .grid-disclosure { color: var(--teal); }
.station-panel[data-station-panel="grid"] details.result-grid-section[open] > summary .grid-disclosure { transform: rotate(180deg); }
/* Titre "Transcript" : meme typographie que les en-tetes de grille. */
.station-panel[data-station-panel="grid"] details.result-remarks > summary { font-size: 16px; font-weight: 750; }
/* Note compacte : note prominente a gauche + les 2 barres Vous/Moyenne ; pas de detail savoir-faire/etre. */
.station-panel[data-station-panel="grid"] .result-hero {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
}
.station-panel[data-station-panel="grid"] .result-hero .result-score { grid-row: auto; padding-right: 18px; }
.station-panel[data-station-panel="grid"] .result-hero .result-score strong { margin: 2px 0; font-size: 42px; }
.station-panel[data-station-panel="grid"] .result-hero .result-score strong small { font-size: 16px; }
.station-panel[data-station-panel="grid"] .result-hero .result-score p { display: none; }
.station-panel[data-station-panel="grid"] .result-hero .result-parts { display: none; }
.station-panel[data-station-panel="grid"] .result-hero .result-comparison { gap: 8px; }

/* ===== AUDIO (option B) : look editable garde, on aligne uniquement le decor + on corrige 2 fuites. ===== */
/* 1) Sections non collees : l'audio n'est pas dans .inline-result (pas de gap) -> on remet la marge. */
.station-panel[data-station-panel="grid"] .audio-ai-grid-section { margin: 0 0 16px; }
.station-panel[data-station-panel="grid"] .audio-result-topbar {
  margin-bottom: 0;
}
.station-panel[data-station-panel="grid"] .audio-result-topbar-score {
  min-width: 98px;
}
.station-panel[data-station-panel="grid"] .audio-result-topbar-score .result-topbar-label {
  font-size: 12px;
}
.station-panel[data-station-panel="grid"] .audio-result-topbar-score .station-result-topbar-score-number {
  font-size: 42px;
  line-height: .9;
}
.station-panel[data-station-panel="grid"] .audio-result-actions {
  align-self: center;
  flex-wrap: nowrap;
}

.grid-choice:has(input:checked) .grid-check svg,
.grid-choice:has(input:checked) .grid-subcheck svg,
.result-grid-item .grid-subrow.selected .grid-subcheck svg,
.grid-item.is-positive > .grid-row .grid-check svg {
  display: block;
}

.result-grid-item .grid-subrow.selected {
  color: #33423f;
  font-weight: 550;
}

.station-panel[data-station-panel="grid"] .grid-subrow.grid-choice:has(input:checked) {
  background: transparent;
  color: var(--grid-ok);
  font-weight: 550;
}

.grid-assisted-chat {
  margin: 0 0 1rem;
}

.grid-assisted-evidence-list {
  margin: 8px 14px 10px 17px;
  border: 1px solid #d9e3de;
  border-radius: 8px;
  background: #fbfcfa;
  color: #33423f;
  font-size: 12.5px;
  line-height: 1.42;
}

.grid-assisted-evidence-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  color: #376f6d;
  cursor: pointer;
  list-style: none;
  font-size: 0.79rem;
  font-weight: 750;
}

.grid-assisted-evidence-toggle::-webkit-details-marker {
  display: none;
}

.grid-assisted-evidence-toggle::after {
  content: "›";
  font-size: 1rem;
  line-height: 1;
  transition: transform .16s ease;
}

.grid-assisted-evidence-list[open] > .grid-assisted-evidence-toggle::after {
  transform: rotate(90deg);
}

.grid-assisted-evidence-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent);
  outline-offset: -2px;
}

.grid-assisted-evidence-content {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid #e4ebe7;
}

.grid-assisted-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.grid-assisted-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f4f3;
  color: #1f6f6d;
  font-size: 0.72rem;
  font-weight: 800;
}

.grid-assisted-status.status-absent,
.grid-assisted-status.status-mentioned_false,
.grid-assisted-status.status-contradictory {
  background: #fff0eb;
  color: #a8482d;
}

.grid-assisted-status.status-partial,
.grid-assisted-status.status-uncertain {
  background: #fff7df;
  color: #82651d;
}

.grid-assisted-reason {
  margin: 0;
  color: #4d5b60;
  font-size: 0.84rem;
  line-height: 1.4;
}

.grid-subcontent .grid-assisted-evidence-list {
  margin: 7px 0 0 0;
  width: 100%;
}

.grid-subchoice {
  display: contents;
}

.grid-subrow > .grid-assisted-evidence-list {
  grid-column: 1 / -1;
  width: 100%;
  margin: 2px 0 4px;
}

.grid-assisted-evidence-line {
  margin: 0;
}

.grid-assisted-quote {
  display: block;
}

.grid-assisted-quote mark {
  border-radius: 3px;
  padding: 0 2px;
  background: #fff1a8;
  color: inherit;
}

.grid-assisted-audio {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.grid-assisted-audio strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.grid-assisted-audio p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.grid-assisted-audio audio {
  width: 100%;
}

.grid-assisted-audio-transcript {
  padding: 0.65rem 0.75rem;
  border: 1px solid #d9e3de;
  border-radius: 8px;
  background: #fff;
}

.grid-assisted-audio-transcript p {
  color: #33423f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.grid-assisted-audio-transcript mark.hl-ok {
  border-radius: 4px;
  padding: 0 2px;
  background: #fff1a8;
  color: inherit;
}

.ai-inline-actions {
  margin-top: 14px;
}

.grid-choice:has(input:focus-visible) .grid-check,
.grid-choice:has(input:focus-visible) .grid-subcheck,
.soft-level-choice:has(input:focus-visible) .soft-level {
  outline: 2px solid color-mix(in srgb, var(--teal) 45%, transparent);
  outline-offset: 2px;
}

.station-panel[data-station-panel="grid"] .soft-skills {
  padding: 0;
}

.station-panel[data-station-panel="grid"] .soft-list {
  display: grid;
  gap: 0;
}

.station-panel[data-station-panel="grid"] .soft-item {
  position: relative;
  padding: 12px 14px 13px 17px;
  border-top: 1px solid #b8c3be;
  background: var(--surface);
}

.station-panel[data-station-panel="grid"] .soft-item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: var(--grid-missing);
}

.station-panel[data-station-panel="grid"] .soft-item.is-positive::before {
  background: var(--grid-ok);
}

.station-panel[data-station-panel="grid"] .soft-item.is-missing::before {
  background: var(--grid-missing);
}

.station-panel[data-station-panel="grid"] .soft-item:first-child {
  border-top: 0;
}

.station-panel[data-station-panel="grid"] .soft-item h3 {
  margin: 0;
  color: #1b2927;
  font-size: 14.2px;
  font-weight: 720;
  line-height: 1.35;
}

.station-panel[data-station-panel="grid"] .soft-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.soft-level-choice {
  display: block;
  min-width: 0;
}

.station-panel[data-station-panel="grid"] .soft-level {
  display: grid;
  width: 100%;
  min-height: 40px;
  place-items: center;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbf8;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.soft-level-choice:has(input:checked) .soft-level,
.global-rating label:has(input:checked) {
  border-color: var(--teal);
  background: var(--grid-ok-bg);
  color: var(--teal);
}

.soft-level-choice:has(input[value="0"]:checked) .soft-level,
.global-rating label:has(input[value="0"]:checked),
.result-soft-item .soft-level.selected[data-soft-level="0"] {
  border-color: rgba(216, 67, 79, .42);
  background: var(--grid-missing-bg);
  color: var(--grid-missing);
}

.soft-level-choice:has(input[value="0.25"]:checked) .soft-level,
.global-rating label:has(input[value="0.25"]:checked),
.result-soft-item .soft-level.selected[data-soft-level="0.25"] {
  border-color: var(--grid-partial-line);
  background: var(--grid-partial-bg);
  color: var(--grid-partial);
}

.soft-level-choice:has(input[value="0.5"]:checked) .soft-level,
.global-rating label:has(input[value="0.5"]:checked),
.result-soft-item .soft-level.selected[data-soft-level="0.5"] {
  border-color: var(--grid-ok-line);
  background: #f0f6f3;
  color: #2b6965;
}

.soft-level-choice:has(input[value="0.75"]:checked) .soft-level,
.soft-level-choice:has(input[value="1"]:checked) .soft-level,
.global-rating label:has(input[value="0.75"]:checked),
.global-rating label:has(input[value="1"]:checked),
.result-soft-item .soft-level.selected[data-soft-level="0.75"],
.result-soft-item .soft-level.selected[data-soft-level="1"] {
  border-color: var(--grid-ok-line);
  background: var(--grid-ok-bg);
  color: var(--grid-ok);
}

.result-soft-item {
  position: relative;
}

.result-soft-item .soft-level {
  cursor: default;
}

.result-soft-item .soft-level.selected {
  font-weight: 900;
  box-shadow: inset 0 0 0 1px currentColor;
}

.result-soft-score {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 800;
}

.soft-ai-body {
  margin-top: 10px;
  padding: 8px 11px;
}

.soft-args {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.soft-args + .soft-args {
  margin-top: 6px;
}

.soft-args li {
  margin: 0;
  color: #33403c;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}

.soft-args-minus li {
  color: #92400e;
}

.soft-ai-default {
  margin: 9px 0 0;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 750;
}

.soft-item.is-missing h3 {
  color: color-mix(in srgb, var(--signal) 76%, var(--ink));
}

.compact-final .compact-global {
  gap: 5px;
  padding: 10px;
}

.compact-final .compact-global label {
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 7px;
}

.compact-final .compact-global span {
  font-size: 11.6px;
}

.assessment-inline-final {
  margin-top: 16px;
}

.assessment-inline-final .grid-section-head {
  margin-bottom: 8px;
}

.assessment-inline-final .compact-global {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
}

.grid-remarks {
  padding: 0 10px 10px;
}

.grid-remarks textarea {
  min-height: 72px;
}

.grid-validation-bar {
  position: fixed;
  left: calc(84px + ((100vw - 84px) / 2));
  bottom: 14px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  width: min(var(--ecos-grid-panel-max-width, 1080px), 920px, calc(100vw - 260px));
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px -28px rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.grid-validation-bar .summary-status {
  min-height: 0;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.grid-validation-bar .assessment-submit {
  width: auto;
  min-width: 150px;
  border: 0;
}

.grid-validation-bar .assessment-error {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
}

body.document-open .station-play:not(.ai-chatbot-station) .candidate-docs {
  display: none !important;
}

body.document-open .document-modal {
  z-index: 220;
}

.station-panel.result-panel,
.station-panel.assessment-panel {
  padding-bottom: 96px;
}

.station-play.has-result-topbar .station-content {
  padding-bottom: 24px;
}

.station-play.has-result-topbar .station-panel.result-panel {
  padding-bottom: 12px;
}

.station-play.has-assessment-topbar .station-content {
  padding-bottom: 24px !important;
}

.station-play.has-assessment-topbar .station-panel.assessment-panel {
  padding-bottom: 12px;
}

.result-validation-bar {
  border-color: color-mix(in srgb, var(--teal) 32%, var(--line));
}

@media (max-width: 820px) {
  .page.join-shell {
    padding: 18px 16px 70px;
  }
  .lounge-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .lounge-head .lounge-state {
    margin-left: 52px;
  }
  .lounge-head h1 {
    font-size: 24px;
  }
  .join-code {
    font-size: 34px;
  }
  .join-layout {
    grid-template-columns: 1fr;
  }
  .join-card-page {
    max-width: none;
  }
  .launch-group-lists {
    grid-template-columns: 1fr;
  }
  .launch-group-code {
    font-size: 30px;
  }
  .copy-line {
    align-items: stretch;
    flex-direction: column;
  }
  .copy-line .compact-action {
    width: 100%;
    justify-content: center;
  }
  .launch-group-actions .primary-action,
  .launch-group-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }
  .assessment-submit {
    width: auto;
    float: right;
  }
  .global-rating {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-hero {
    grid-template-columns: 1fr;
  }
  .result-score {
    grid-row: auto;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .result-parts {
    grid-template-columns: 1fr;
  }
  .session-row {
    grid-template-columns: 38px minmax(0, 1fr) 112px;
  }
  .session-mode,
  .session-arrow {
    display: none;
  }
}

@media (max-width: 820px) {
  .station-panel[data-station-panel="grid"] {
    padding: 9px;
  }

  .station-panel.assessment-panel {
    padding-bottom: 156px;
  }

  .station-panel[data-station-panel="grid"] .soft-scale,
  .compact-final .compact-global {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-validation-bar {
    right: 10px;
    left: 10px;
    bottom: 8px;
    grid-template-columns: 1fr;
    width: auto;
    transform: none;
  }

  .grid-validation-bar .summary-status {
    display: block;
  }

  .grid-validation-bar .assessment-submit {
    width: 100%;
    min-width: 0;
  }

  .validation-waiting-box {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .finish-actions {
    flex-direction: column-reverse;
  }

  .finish-actions.is-chatbot-choice,
  .finish-actions.is-chatbot-choice.has-continue {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finish-actions .primary-action,
  .finish-actions .secondary-action {
    width: 100%;
    justify-content: center;
  }

  .finish-actions.is-chatbot-choice [data-finish-cancel] {
    justify-self: stretch;
    width: 100%;
  }
}


/* ===== Barre du bas sur tablette/mobile (≤899) =====
   ≥900 : .candidate-docs reste l'encart à droite de l'énoncé (colonne qui remplit l'espace), chat = bulle.
   ≤899 :
   - barre docs PLEINE LARGEUR en bas, liste HORIZONTALE (aucun scroll vertical) ;
   - chat = bulle flottante stylée, posée au-dessus de la barre. */
@media (max-width: 899px) {
  .station-play {
    --ecos-docbar-h: 64px;
  }
  /* la barre sort .candidate-docs du flux : l'énoncé repasse en 1 colonne. */
  .station-panel[data-station-panel="candidate"] .exam-grid {
    grid-template-columns: 1fr;
  }

  /* ---- barre docs : pleine largeur, rangée horizontale, sans scroll vertical ---- */
  .candidate-docs {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto !important;
    z-index: 96;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    box-sizing: border-box;
    min-height: var(--ecos-docbar-h);
    margin: 0 !important;
    padding: 6px 18px max(8px, env(safe-area-inset-bottom));
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
    background: var(--surface);
    box-shadow: 0 -16px 38px -26px rgba(15, 46, 61, .5);
  }
  .docs-head {
    display: flex; /* titre "Documents remis au candidat" garde a gauche de la barre */
    flex: none;
    max-width: 100%;
    width: auto;
    padding: 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .docs-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .docs-list::-webkit-scrollbar {
    display: none;
  }
  .doc-link {
    flex: 0 1 auto;
    height: auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 34px;
    gap: 8px;
    padding: 5px 12px 5px 7px;
    overflow: hidden;
    border-radius: 999px;
  }
  .doc-link span:last-child {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .doc-link strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-line-clamp: unset;
  }
  .doc-link small {
    display: none; /* chip = juste le titre */
  }
  /* Consigne d'ouverture presente : la pastille passe sur deux lignes, titre puis consigne. */
  .doc-link small[data-doc-consigne] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.2;
  }
  .doc-link:has(small[data-doc-consigne]) span:last-child {
    flex-direction: column;
    align-items: stretch; /* chaque ligne prend la largeur de la pastille : l'ellipse fonctionne */
    gap: 2px;
  }
  .station-play:not(.ai-chatbot-station):has(.doc-link small[data-doc-consigne]) {
    --ecos-docbar-h: 76px; /* la salle IA garde ses propres valeurs (chatbot-room.css) */
  }
  .doc-thumb {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
  }
  .docs-empty {
    padding: 0;
    white-space: nowrap;
  }

  /* l'énoncé dégage la hauteur de la barre */
  .station-content {
    padding-bottom: calc(var(--ecos-docbar-h) + 22px) !important;
  }

  body.document-open .candidate-docs:not(.hidden) {
    z-index: 240;
    display: flex !important;
  }

  body.document-open .station-play:not(.ai-chatbot-station) .candidate-docs:not(.hidden) {
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 240;
    display: flex !important;
  }

  body.document-open .document-modal {
    inset: 8px 8px calc(var(--ecos-docbar-h, 64px) + 8px) !important;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-modal {
    inset: max(4px, env(safe-area-inset-top)) max(4px, env(safe-area-inset-right)) calc(var(--ecos-docbar-h, 64px) + 8px) max(4px, env(safe-area-inset-left)) !important;
    width: auto;
    max-width: 100svw;
    overflow: hidden;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    border-radius: 10px;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-panel header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "title title close"
      "timer nav zoom";
    align-items: center;
    gap: 6px 8px;
    padding: 8px;
    overflow: hidden;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-panel h2 {
    grid-area: title;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools {
    display: contents;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools .station-timer-strip {
    grid-area: timer;
    width: min(190px, 44vw);
    min-width: 0;
    max-width: 190px;
    height: 32px;
    min-height: 32px;
    padding: 2px 6px;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools .station-timer-strip .rail-timer {
    width: 100%;
    min-height: 26px;
    grid-template-columns: 24px minmax(50px, 1fr) 24px 28px;
    gap: 5px;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-nav {
    grid-area: nav;
    justify-self: center;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools .iconbtn {
    width: 32px;
    height: 32px;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-zoom {
    grid-area: zoom;
    justify-self: end;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-zoom-reset {
    width: 46px;
    height: 32px;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools [data-document-close] {
    grid-area: close;
    justify-self: end;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-body,
  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-viewer-viewport,
  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-viewer-content,
  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* ---- chat : carte compacte (dernier message + saisie + point vert), au-dessus de la barre ----
     Ancré en bas à droite, largeur bornée -> reste dans la fenêtre, n'empiète pas sur la sidebar. */

  /* point vert "en ligne" */

  /* chat ouvert : panneau borné à droite (pas pleine largeur) au-dessus de la barre */

}

@media (max-width: 640px) {
  /* Carte de partage compacte : QR + bouton « Copier le lien » à gauche, code centré à droite */
  .launch-share-card {
    padding: 12px;
    gap: 12px;
  }
  .launch-share-content {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
  }
  .launch-qr-col {
    gap: 8px;
  }
  .launch-qr-frame {
    width: 120px;
    height: 120px;
    padding: 6px;
  }
  .join-qr-svg {
    width: 100px;
  }
  .launch-group-code {
    font-size: 30px;
  }
  .launch-join-hint {
    gap: 10px;
    padding: 10px;
  }
  .launch-join-hint-icon {
    width: 36px;
    height: 36px;
  }
  .launch-join-hint svg {
    width: 18px;
    height: 18px;
  }
}

/* ===== Étoile favoris : plus grande, or vif, effet "pop" ===== */
:root {
  --gold-star: #f6b21b;
}
.station-fav svg {
  width: 25px;
  height: 25px;
  transition: transform .18s ease;
}
.station-fav:hover,
.station-fav.on {
  color: var(--gold-star);
}
.favbtn svg {
  width: 24px;
  height: 24px;
  transition: transform .18s ease;
}
.favbtn:hover,
.favbtn.on {
  border-color: color-mix(in srgb, var(--gold-star) 46%, var(--line));
  color: var(--gold-star);
}
.station-fav.on svg,
.favbtn.on svg {
  filter: drop-shadow(0 1px 4px rgba(246, 178, 27, .5));
  animation: fav-pop .32s ease;
}
.station-fav:active svg,
.favbtn:active svg {
  transform: scale(.86);
}
@keyframes fav-pop {
  0%   { transform: scale(.7); }
  55%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ===== Lisibilité écran : Inter (référence légibilité écran) + rendu optimisé ===== */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.consigne .brief-text {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.7;
  letter-spacing: .002em;
}

/* ===== Premium / Settings parity with Light, ECOS theme ===== */
.settings-shell,
.premium-page {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.settings-hero,
.premium-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.settings-hero h2,
.premium-header h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.settings-hero p:not(.kicker),
.premium-header p:not(.kicker) {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eceee9;
}

.settings-tabs button,
.subscription-subtabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 760;
}

.settings-tabs button {
  min-height: 38px;
  flex: 1;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
}

.settings-tabs svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 2;
}

.settings-tabs button.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 9px rgba(15,46,61,.08);
}

.settings-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent);
}

.settings-card,
.pricing-card,
.premium-status-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-card {
  padding: 24px;
}

.settings-tabs,
.settings-panel,
.settings-card,
.settings-safe-note,
.settings-danger-card {
  min-width: 0;
  max-width: 100%;
}

.settings-section-head {
  margin-bottom: 20px;
}

.settings-section-head.outside {
  margin-bottom: 14px;
}

.finish-panel .finish-quota-notice {
  margin-top: 10px;
  color: #4f625f;
  font-size: 12px;
  font-weight: 650;
}

.subscription-card-title {
  margin-bottom: 10px;
}

.settings-section-head h3,
.pricing-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: 0;
}

.settings-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-quota-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.settings-quota-head > p {
  flex: none;
  font-size: 13px;
  font-weight: 700;
}

.settings-quota-list {
  border-top: 1px solid var(--line);
}

.settings-quota-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.85fr);
  align-items: center;
  gap: 8px 24px;
  min-height: 88px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.settings-quota-copy {
  display: grid;
  gap: 4px;
}

.settings-quota-copy b {
  color: var(--ink);
  font-size: 14px;
}

.settings-quota-copy span,
.settings-quota-row small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.settings-quota-row small {
  grid-column: 1 / -1;
}

.settings-quota-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebe7;
}

.settings-quota-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

@media (max-width: 640px) {
  .settings-quota-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .settings-quota-row {
    grid-template-columns: 1fr;
  }
}

.settings-info-grid,
.field-grid,
.privacy-grid {
  display: grid;
  gap: 14px;
}

.settings-info-grid,
.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-info-grid {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf7;
}

.settings-info-grid span,
.settings-form label > span,
.pricing-kicker,
.settings-minor-title {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.settings-info-grid b {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-section-head .eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  line-height: 1.2;
}

.settings-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf7;
}

.settings-identity .avatar {
  width: 42px;
  height: 42px;
  font-size: 17px;
}

.settings-identity-info {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.settings-identity-info b {
  overflow: hidden;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-identity-info small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-identity-flag {
  flex: none;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.settings-identity-flag.premium { color: var(--gold); }

.settings-form {
  display: grid;
  gap: 18px;
}

.settings-form label {
  display: grid;
  gap: 7px;
}

.settings-form input,
.settings-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.settings-form input:focus,
.settings-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

.settings-actions,
.settings-button-row,
.reset-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.settings-switch {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px !important;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf7;
}

.settings-switch-list {
  display: grid;
  gap: 12px;
}

.settings-switch > svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--teal);
  stroke-width: 2;
}

.settings-switch.is-saving {
  opacity: .6;
  pointer-events: none;
}

.settings-switch > span {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.settings-switch b {
  color: var(--ink);
  font-size: 14px;
}

.settings-switch small {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.settings-switch input {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 44px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  transform: translateY(-50%);
}

.settings-switch i {
  position: relative;
  width: 44px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  background: #cbd5d3;
  transition: background .16s;
}

.settings-switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: transform .16s;
}

.settings-switch input:checked + i {
  background: var(--teal);
}

.settings-switch input:checked + i::after {
  transform: translateX(20px);
}

.settings-safe-note,
.settings-danger-note,
.settings-danger-card,
.premium-hero-card {
  padding: 16px;
  border-radius: 12px;
}

.settings-safe-note {
  border: 1px solid color-mix(in srgb, var(--teal) 28%, var(--line));
  background: #eef7f5;
}

.settings-consent-card {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 30%, var(--line));
  border-radius: 14px;
  background: linear-gradient(145deg, #f4faf8 0%, #eef7f5 100%);
}

.settings-consent-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.settings-consent-head .eyebrow {
  margin: 0 0 4px;
}

.settings-consent-head h4 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
}

.settings-consent-status {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.settings-consent-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa6a2;
}

.settings-consent-status.is-accepted {
  border-color: color-mix(in srgb, var(--teal) 38%, var(--line));
  color: var(--teal-dark, #236d6a);
}

.settings-consent-status.is-accepted i {
  background: var(--teal);
}

.settings-consent-intro {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.settings-consent-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.settings-consent-facts > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 18%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.settings-consent-facts b {
  color: var(--ink);
  font-size: 13px;
}

.settings-consent-facts span,
.settings-consent-meta,
.settings-consent-help {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-consent-meta {
  margin: 14px 0 0;
  font-weight: 700;
}

.settings-consent-help {
  margin: 6px 0 0;
}

.settings-consent-help a {
  color: var(--teal-dark, #236d6a);
  font-weight: 700;
  text-underline-offset: 2px;
}

.settings-consent-card .settings-button-row {
  margin-top: 16px;
}

.settings-safe-note b,
.settings-danger-note b {
  color: var(--ink);
}

.settings-safe-note p,
.settings-danger-note p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-muted {
  color: var(--muted);
  font-size: 13px;
}

.settings-danger-note {
  border: 1px solid #efc2c7;
  background: #fff0f1;
}

.subscription-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.subscription-subtabs button {
  min-height: 42px;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  font-size: 13.5px;
}

.subscription-subtabs button.on {
  border-color: var(--teal);
  color: var(--teal);
}

.account-plan-card {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.account-plan-card--premium {
  border-color: color-mix(in srgb, var(--teal) 34%, var(--line));
  background: linear-gradient(135deg, #edf7f4 0%, #fbfdfc 72%);
}

.account-plan-card__copy {
  min-width: 0;
}

.account-plan-card__kicker {
  margin: 0 0 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-plan-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.3;
}

#sub-badge-sub,
.account-plan-card__benefits {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.account-plan-card__benefits {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 700;
}

.account-plan-card__action,
.account-plan-card__aside {
  flex: none;
  max-width: 290px;
  color: var(--teal);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.35;
  text-align: right;
}

.account-plan-card__action {
  text-decoration: none;
}

.account-plan-card__action:hover {
  color: var(--ink);
}

.account-plan-card__aside {
  display: grid;
  gap: 5px;
}

.account-plan-card__aside span {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.subscription-account-management {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .account-plan-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 19px;
  }

  .account-plan-card__action,
  .account-plan-card__aside {
    max-width: none;
    text-align: left;
  }
}

/* Compte Découverte — repères légers partagés entre Paramètres et Accueil. */
.discovery-account-card {
  display: grid;
  align-content: start;
  container: discovery-account / inline-size;
  gap: 22px;
  min-width: 0;
  padding: 23px 24px;
  border: 1px solid #d8e5df;
  border-radius: 15px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  box-shadow: 0 7px 18px rgba(18, 55, 70, .045);
}

.discovery-account-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 18px;
  min-width: 0;
}

.discovery-account-card .discovery-account-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.discovery-account-card__action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.discovery-account-card__action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.discovery-account-card__action svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.discovery-account-card__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 660px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.discovery-account-card__benefit {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.discovery-account-card__benefit strong {
  font-weight: 600;
}

.discovery-account-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e6f3ee;
  color: var(--teal);
}

.discovery-account-card__icon svg {
  width: 17px;
  height: 17px;
}

.discovery-account-card--compact {
  gap: 17px;
  padding: 18px 20px;
}

.discovery-account-card--compact .discovery-account-card__title {
  font-size: 16px;
}

.discovery-account-card--compact .discovery-account-card__benefits {
  gap: 10px;
}

.discovery-account-card--compact .discovery-account-card__benefit {
  gap: 7px;
  font-size: 12.5px;
}

.discovery-account-card--compact .discovery-account-card__icon {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

@container discovery-account (max-width: 440px) {
  .discovery-account-card__benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .discovery-account-card--compact .discovery-account-card__benefit {
    font-size: 13px;
  }
}

@container discovery-account (max-width: 350px) {
  .discovery-account-card__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 620px) {
  .discovery-account-card {
    padding: 19px 18px;
  }
}

@media (pointer: coarse) {
  .discovery-account-card__action {
    min-height: 44px;
  }
}

.premium-hero-card,
.premium-status-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, var(--line));
  background: linear-gradient(135deg, #fff7e8, #fffdf8);
}

.premium-hero-card h3,
.premium-status-card b {
  margin: 0;
  color: #6d4812;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
  letter-spacing: 0;
}

.premium-hero-card p,
.premium-status-card p {
  margin: 2px 0 0;
  color: #8a6426;
}

.premium-star,
.premium-empty-icon {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #d4952b, #f4c15d);
  color: #fff;
  box-shadow: 0 12px 26px -18px rgba(176,125,42,.8);
}

.premium-star {
  width: 52px;
  height: 52px;
}

.premium-star svg,
.premium-empty-icon svg {
  width: 27px;
  height: 27px;
}

.premium-status-card {
  padding: 16px;
}

.portal-form {
  margin-top: 14px;
}

.pricing-switcher {
  width: min(100%, 472px);
  margin: 0 auto;
}

.pricing-switcher--upgrade {
  display: grid;
  width: min(100%, 1020px);
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
  align-items: stretch;
  gap: 22px;
}

.pricing-switcher--upgrade .pricing-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pricing-switcher--upgrade .pricing-actions {
  margin-top: auto;
}

.pricing-card {
  padding: 28px 28px 24px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15,46,61,.07);
}

.pricing-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
}

.pricing-toggle button {
  min-width: 0;
  min-height: 42px;
  padding: 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.pricing-toggle button[aria-selected="true"] {
  background: var(--ink-fill);
  color: #fff;
  box-shadow: none;
}

.pricing-toggle button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.pricing-offers {
  min-height: 112px;
  padding: 24px 0 0;
}

.pricing-offer {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.pricing-offer[hidden] {
  display: none;
}

.pricing-price {
  display: flex;
  min-height: 49px;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}

.pricing-offer-name {
  margin: 0;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-price strong {
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.pricing-price span,
.pricing-muted {
  color: var(--muted);
}

.pricing-terms,
.pricing-credit-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pricing-credit-note {
  max-width: 470px;
  font-size: 12.5px;
}

.pricing-button,
.pricing-current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.pricing-button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.pricing-button--premium {
  border: 1px solid #fcd34d;
  background: #fef3c7;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
  color: #92400e;
}

.pricing-button--premium:hover {
  background: #fde68a;
}

.pricing-button--premium:focus-visible {
  outline: 3px solid rgba(245, 158, 11, .3);
  outline-offset: 2px;
}

.pricing-current {
  background: #e5f1ee;
  color: var(--teal);
  cursor: default;
}

.pricing-features {
  margin: 20px 0 22px;
  padding: 0;
  border-top: 1px solid #eef1ed;
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px;
  min-height: 41px;
  padding: 9px 2px;
  border-bottom: 1px solid #eef1ed;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.4;
}

.pricing-features strong {
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.pricing-features sup,
.pricing-fair-use sup {
  font-size: .72em;
  line-height: 0;
}

.pricing-fair-use {
  max-width: 472px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pricing-section {
  display: grid;
  gap: 16px;
}

.pricing-actions,
.pricing-action {
  width: 100%;
}

.pricing-action {
  display: grid;
  gap: 10px;
}

.pricing-action[hidden] {
  display: none;
}

.pricing-action .pricing-muted {
  display: block;
  margin-top: 6px;
  text-align: center;
}

.pricing-check {
  color: var(--teal);
  font-weight: 800;
}

.pricing-beta {
  min-width: 0;
  padding: 28px 26px 24px;
  border: 1px solid #cfe4df;
  border-radius: 14px;
  background: #eef8f5;
  color: var(--ink);
}

.pricing-beta__badge {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 7px 13px;
  border-radius: 999px;
  background: #d4eee8;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pricing-beta h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
}

.pricing-beta h2 span {
  display: block;
  margin-top: 3px;
}

.pricing-beta__included {
  margin: 18px 0 16px;
  color: var(--teal);
  font-size: 16px;
  font-weight: 800;
}

.pricing-beta > ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 22px;
  list-style: none;
}

.pricing-beta > ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.35;
}

.pricing-beta > ul li::before {
  position: absolute;
  top: .48em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
}

.pricing-beta__notice {
  padding-top: 18px;
  border-top: 1px solid #bddbd4;
}

.pricing-beta__notice h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.pricing-beta__notice p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pricing-beta__notice .pricing-beta__manual {
  margin-bottom: 0;
  color: var(--teal);
  font-weight: 750;
}

.check-dot {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal);
}

.check-dot::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 5px 0 0 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
}

@media (max-width: 520px) {
  .pricing-card {
    padding: 18px;
  }

  .pricing-toggle button {
    padding-inline: 8px;
    font-size: 12.5px;
  }

  .pricing-offers {
    min-height: 108px;
    padding-top: 22px;
  }

  .pricing-price strong {
    font-size: 38px;
  }

  .pricing-features li {
    gap: 8px;
    font-size: 13.5px;
  }

  .pricing-features strong {
    font-size: 12.5px;
  }
}

@media (max-width: 860px) {
  .pricing-switcher--upgrade {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pricing-beta {
    padding: 22px 20px;
  }
}

@media (max-width: 380px) {
  .pricing-features strong {
    max-width: 128px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .page.premium-page-shell {
    padding-bottom: 16px;
  }

  .premium-page {
    gap: 10px;
  }

  .premium-page .premium-header h2 {
    margin-bottom: 5px;
  }

  .premium-page .pricing-card {
    padding: 18px 24px 16px;
  }

  .premium-page .pricing-offers {
    min-height: 92px;
    padding-top: 16px;
  }

  .premium-page .pricing-price {
    min-height: 44px;
  }

  .premium-page .pricing-price strong {
    font-size: 40px;
  }

  .premium-page .pricing-features {
    margin: 12px 0 14px;
  }

  .premium-page .pricing-features li {
    min-height: 34px;
    padding-block: 6px;
  }

  .premium-page .pricing-button,
  .premium-page .pricing-current {
    min-height: 46px;
  }

  .premium-page .pricing-fair-use {
    margin-top: 12px;
    font-size: 10.5px;
  }
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.premium-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 38px 24px;
  text-align: center;
}

.premium-empty-icon {
  width: 64px;
  height: 64px;
}

.premium-empty h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 22px;
}

.premium-empty p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.privacy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.privacy-grid > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf7;
}

.privacy-grid h4,
.settings-danger-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 17px;
}

.privacy-grid ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.settings-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  border: 1px solid #efc2c7;
  background: #fff0f1;
}

.settings-danger-card p {
  margin: 0;
  color: #9f3540;
}

.danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.danger-action:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.danger-action.ready {
  opacity: 1;
}

.danger-outline {
  border-color: #efc2c7;
  color: #b22f3c;
}

.success-outline {
  border-color: #b8ddd2;
  color: #17604f;
}

.invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.invoice-line a,
.invoices-more summary {
  color: var(--teal);
  font-weight: 780;
  text-decoration: none;
}

.invoices-more {
  margin-top: 10px;
}

.checkout-modal,
.reset-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
}

.checkout-modal__backdrop,
.reset-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 31, .62);
  backdrop-filter: blur(3px);
}

.checkout-modal__panel,
.reset-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 680px);
  margin: 7vh auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 24px 70px -24px rgba(0,0,0,.55);
}

.checkout-modal__panel {
  max-height: 88vh;
  overflow: auto;
}

.checkout-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.checkout-modal__container {
  padding: 8px;
}

.reset-modal__panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 520px;
  padding: 30px;
  text-align: center;
}

.reset-modal__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #ffe0e3;
  color: var(--red);
}

.reset-modal__icon svg {
  width: 30px;
  height: 30px;
}

.reset-modal h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 22px;
}

.reset-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.reset-countdown {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.reset-countdown b {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 24px;
}

.premium-nav {
  color: #ffe7ad !important;
}

.premium-nav.on {
  background: #fff7e8 !important;
  color: #6d4812 !important;
}

.sidebar-premium-card {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--ink-line));
  border-radius: 12px;
  background: #123845;
  color: var(--ink-text);
  text-decoration: none;
}

.sidebar-premium-card b {
  color: #fff;
  font-size: 13px;
}

.sidebar-premium-card span {
  color: var(--ink-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.sidebar-premium-card.free b {
  color: #ffe0a6;
}

.sidebar-premium-card:hover {
  border-color: var(--gold);
}

.user-menu-premium {
  color: #e4b45e !important;
  font-weight: 760 !important;
}
.usermenu .user-menu-premium:hover { color: #f0cd8b !important; }

@media (max-width: 760px) {
  .settings-shell,
  .premium-page {
    width: 100%;
  }

  .settings-tabs {
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .settings-tabs button {
    flex: 1 1 132px;
  }

  .settings-card {
    padding: 18px;
  }

  .settings-info-grid,
  .field-grid,
  .privacy-grid,
  .settings-consent-facts {
    grid-template-columns: 1fr;
  }

  .settings-consent-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .settings-danger-card,
  .premium-hero-card,
  .premium-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .settings-actions,
  .settings-button-row,
  .reset-actions,
  .settings-danger-card .danger-action {
    width: 100%;
  }

  #settings-privacy .settings-danger-card .danger-action,
  #settings-privacy .settings-safe-note .settings-button-row .secondary-action {
    min-width: 0;
  }

  .settings-actions > *,
  .settings-button-row > *,
  .reset-actions > * {
    flex: 1;
    justify-content: center;
  }
}
/* ===== Énoncé ≥900 : docs collés à droite et REMPLISSENT l'espace (pas de gros vide à droite) ===== */
@media (min-width: 900px) {
  .station-panel[data-station-panel="candidate"] .exam-grid {
    grid-template-columns: 1fr;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs.candidate-docs-rail-hidden {
    display: none;
  }

  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    gap: 14px 16px;
    align-items: start;
  }

  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) > .station-panel:not(.hidden) {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) > .candidate-docs:not(.hidden) {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    margin-top: 0;
  }
}

@media (min-width: 900px) and (max-width: 1120px) {
  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 250px);
  }

  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) > .candidate-docs:not(.hidden),
  .station-play:not(.ai-chatbot-station) .station-content:has(> .candidate-docs:not(.hidden):not(.candidate-docs-rail-hidden)) > .station-panel:not(.hidden) {
    min-width: 0;
  }
}

.ai-chatbot-station .station-panel[data-station-panel="candidate"] .exam-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.ai-chatbot-station .consigne .brief-text {
  max-width: none;
}

@media (min-width: 900px) {
  .ai-chatbot-station .station-content:has(.station-panel[data-station-panel="candidate"]:not(.hidden)) {
    display: block;
  }

  .ai-chatbot-station .station-content:has(.station-panel[data-station-panel="candidate"]:not(.hidden)) > .station-panel[data-station-panel="candidate"],
  .ai-chatbot-station .station-content:has(.station-panel[data-station-panel="candidate"]:not(.hidden)) > .candidate-docs:not(.hidden) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ===== Desktop (≥900) : chat flottant aligné en largeur/bord droit sur l'encart docs ===== */
@media (min-width: 900px) {

  /* ouvert : grandit vers le haut (bas ancré) dans l'espace libre SOUS l'encart docs,
     plafonné à --ecos-chat-maxh pour ne pas empiéter sur l'encart. */

}

/* ouvert : 5-6 lignes visibles quand on écrit */


/* ===== Carte station : lien « S'entraîner → » (la carte entière est cliquable) ===== */
.station-go-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-family: "Hanken Grotesk", sans-serif;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: -.005em;
}
.station-go-hint svg {
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}
.station-card:hover .station-go-hint svg,
.station-card:focus-visible .station-go-hint svg {
  transform: translateX(4px);
}
.station-go-hint.locked {
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}
.station-go-hint.locked svg {
  width: 14px;
  height: 14px;
}

/* Premium page refinements: keep the Light structure, but in the ECOS palette. */
.premium-header {
  display: block;
  max-width: 760px;
  margin: 0 auto 6px;
  text-align: center;
}

.premium-header h2 {
  margin-bottom: 8px;
  font-size: 31px;
}

.premium-header p:not(.kicker) {
  max-width: 650px;
  margin: 0 auto;
}

.premium-hero-card,
.premium-status-card {
  border-color: color-mix(in srgb, var(--teal) 30%, var(--line));
  background: linear-gradient(135deg, #eef7f5, #fbfdfb);
}

.premium-hero-card h3,
.premium-status-card b {
  color: var(--ink);
}

.premium-hero-card p,
.premium-status-card p {
  color: var(--muted);
}

.premium-star,
.premium-empty-icon {
  background: linear-gradient(135deg, var(--teal), color-mix(in srgb, var(--teal) 70%, #9bcac3));
  box-shadow: 0 12px 26px -18px rgba(47,120,120,.8);
}

.premium-nav {
  color: #ffe7ad !important;
}

.premium-nav.on {
  background: #fff7e8 !important;
  color: #6d4812 !important;
}

.sidebar-premium-card {
  border-color: color-mix(in srgb, var(--gold) 35%, var(--ink-line));
  background: #123845;
}

.sidebar-premium-card.free b {
  color: #ffe0a6;
}

.sidebar-premium-card:hover {
  border-color: var(--gold);
}

.user-menu-premium {
  color: #8a5b13 !important;
}

.dev-premium-reset {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #efb7bd;
}

.dev-premium-reset p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.sub-panel[data-subpanel="abonnement"] .settings-button-row {
  margin-top: 12px;
}

/* Abonnement — allegement visuel (moins de blocs pleins concurrents) */
.sub-panel[data-subpanel="abonnement"] .premium-hero-card {
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
  background: #f2f8f6;
}

.sub-panel[data-subpanel="abonnement"] .premium-star {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}

.sub-panel[data-subpanel="abonnement"] .premium-star svg {
  width: 24px;
  height: 24px;
}

/* Note staff : secondaire, filet neutre plutot qu'un 2e bloc teal */
#staff-premium-msg {
  border-color: var(--line);
  background: var(--surface);
}

.dev-premium-reset {
  border-top-color: var(--line);
}

/* Confidentialite — moins de couleur : bloc vocal neutre, rouge garde pour la suppression */
#settings-privacy .settings-safe-note {
  border-color: var(--line);
  background: var(--surface);
}

/* Bloc consentement IA : tailles de police homogenes + air avant les boutons */
#settings-privacy .settings-safe-note p {
  font-size: 13.5px;
}

#settings-privacy #privacy-ai-audio-status {
  color: var(--ink);
}

#settings-privacy .settings-safe-note .settings-button-row {
  margin-top: 14px;
}

/* Bouton consentement (Autoriser / Retirer) : meme largeur que les boutons danger */
#settings-privacy .settings-safe-note .settings-button-row .secondary-action {
  flex: none;
  min-width: 21rem;
  white-space: nowrap;
}

#settings-privacy .settings-danger-card {
  margin-top: 16px;
}

/* Cartes danger : boutons homogenes (meme largeur, alignes, jamais sur 2 lignes).
   min-width > au libelle le plus long -> les deux se clampent a la meme largeur. */
#settings-privacy .settings-danger-card .danger-action {
  flex: none;
  min-width: 21rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .settings-tabs,
  .settings-panel,
  .settings-card {
    width: 100%;
  }

  .settings-tabs {
    overflow-x: visible;
  }

  .settings-tabs button {
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
    padding-inline: 9px;
    line-height: 1.2;
    white-space: normal;
  }

  .settings-tabs button:last-child {
    flex-basis: 100%;
  }

  #settings-privacy .settings-safe-note .settings-button-row .secondary-action,
  #settings-privacy .settings-danger-card .danger-action {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }
}

.settings-inline-message {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.settings-inline-message.success {
  border-color: #b8ddd2;
  background: #edf8f4;
  color: #17604f;
}

.settings-inline-message.error {
  border-color: #f0b8bd;
  background: #fff0f1;
  color: #a8323d;
}

.settings-theme-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ebece7;
}

.settings-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.settings-theme-btn svg {
  width: 17px;
  height: 17px;
}

.settings-theme-btn.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 8px rgba(15,46,61,.08);
}

.pricing-credit-note {
  margin-top: 10px !important;
  padding: 10px 11px;
  border: 1px solid #c7dedb;
  border-radius: 8px;
  background: #eef7f5;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 650;
}

@media (max-width: 760px) {
  .sub-panel[data-subpanel="abonnement"] .settings-button-row {
    flex-direction: column;
  }

  .sub-panel[data-subpanel="abonnement"] .settings-button-row > * {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .premium-header {
    text-align: center;
  }

  .premium-header p:not(.kicker) {
    margin: 0 auto;
  }

  .pricing-card {
    min-height: 0;
  }
}

/* Bandeau d'etat audio (sous les onglets) : une ligne sans cadre, pas un lecteur.
   Point d'etat + libelle en petites capitales + jauge reelle ; le seul rouge est le point REC.
   Maquette validee le 2026-10-08 : docs/mockups/audio_strip_mockup.html. */
.station-audio-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.1rem;
  max-width: 100%;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 0.3rem;
}

.station-audio-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  overflow: hidden;
}
.station-audio-strip b {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.station-audio-strip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.station-audio-strip small:empty { display: none; }
.station-audio-strip[data-audio-room-state="recording"] b { color: var(--teal); }
.station-audio-strip[data-audio-room-state="paused"] b { color: #b45309; }
.station-audio-strip[data-audio-room-state="error"] b { color: #b91c1c; }

/* Point d'etat : gris au repos, rouge qui pulse en enregistrement (convention REC), ambre en pause. */
.station-audio-dot {
  flex: 0 0 auto;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #9aa8a6;
}

.station-audio-strip[data-audio-room-state="recording"] .station-audio-dot {
  background: var(--red);
  animation: audioRecDot 1.6s ease-in-out infinite;
}

.station-audio-strip[data-audio-room-state="paused"] .station-audio-dot {
  background: #b45309;
}

.station-audio-strip[data-audio-room-state="uploaded"] .station-audio-dot,
.station-audio-strip[data-audio-room-state="uploading"] .station-audio-dot {
  background: #1d4ed8;
}

.station-audio-strip[data-audio-room-state="error"] .station-audio-dot {
  background: #b91c1c;
}

/* Waveform reel (jauge « ca capte »), inline a droite du libelle.
   flex-grow 0 + overflow hidden : il ne pousse jamais la largeur du bandeau. */
.station-audio-meter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 12rem;
  gap: 0.16rem;
  min-width: 0;
  max-width: 22rem;
  height: 2.4rem;
  padding: 0 0.3rem;
  overflow: hidden;
  border-radius: 8px;
}
.station-audio-meter span {
  display: block;
  width: 0.2rem;
  height: calc(1.85rem * var(--audio-level, 0.12));
  min-height: 0.22rem;
  border-radius: 999px;
  background: #cbd5e1;
  opacity: var(--audio-alpha, 0.4);
  transition: height 76ms linear, opacity 120ms linear, background-color 140ms ease;
}
.station-audio-strip[data-audio-room-state="recording"] .station-audio-meter span {
  background: var(--teal);
}
.station-audio-strip[data-audio-room-state="paused"] .station-audio-meter span {
  background: #f59e0b;
  opacity: 0.4;
}
.station-audio-strip[data-audio-room-state="uploaded"] .station-audio-meter span,
.station-audio-strip[data-audio-room-state="uploading"] .station-audio-meter span {
  background: #60a5fa;
}

.station-audio-provider {
  width: clamp(11rem, 44vw, 17rem);
  max-width: 100%;
  min-width: 0;
  font-size: 0.8rem;
}

.station-audio-tools {
  position: relative;
  flex: 0 0 auto;
}
.station-audio-gear {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.station-audio-gear svg { width: 0.95rem; height: 0.95rem; }
.station-audio-gearpop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.station-audio-gearpop[hidden] { display: none; }

/* Bouton d'action : Reprendre (pause) / Reessayer (erreur). Pointe le chrono. */
.station-audio-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--teal);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.station-audio-toggle[hidden] { display: none; }
.station-audio-toggle svg { width: 0.78rem; height: 0.78rem; }
.station-audio-strip[data-audio-room-state="error"] .station-audio-toggle {
  border-color: #b91c1c;
  color: #b91c1c;
}

@keyframes audioPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.82; }
}

@keyframes audioRecDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(216, 67, 79, 0.38); }
  50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(216, 67, 79, 0); }
}

@media (max-width: 980px) {
  .station-audio-provider {
    width: auto;
  }
}

.audio-consent-check {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 1rem 0;
  color: var(--text);
}

.audio-consent-check input {
  margin-top: 0.2rem;
}

.audio-processing-panel h2 {
  margin: 0.25rem 0 0.5rem;
}

.audio-processing-state {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audio-processing-copy {
  min-width: 0;
}

.audio-processing-copy p {
  margin: 0;
}

.audio-processing-spinner {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.audio-processing-spinner::before,
.audio-processing-spinner::after,
.audio-processing-spinner span {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.audio-processing-spinner::before {
  inset: 7px;
  border: 3px solid rgba(59, 130, 246, 0.16);
  border-top-color: #2563eb;
  animation: audioSpin 900ms linear infinite;
}

.audio-processing-spinner::after {
  inset: 20px;
  background: #2563eb;
  opacity: 0.16;
  animation: audioPulse 1.2s ease-in-out infinite;
}

.audio-processing-spinner span {
  inset: 17px;
  border: 2px solid rgba(20, 184, 166, 0.42);
}

.audio-processing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.audio-processing-steps span {
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.audio-processing-steps span.active {
  border-color: rgba(34, 197, 94, 0.32);
  background: rgba(220, 252, 231, 0.86);
  color: #14532d;
}

.audio-processing-steps span.current {
  border-color: rgba(37, 99, 235, 0.34);
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.audio-processing-replay {
  margin-top: 1rem;
}

.audio-review-panel {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.audio-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.audio-review-head h3 {
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 1rem;
}

.audio-review-head p,
.audio-review-note,
.audio-review-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.audio-review-timer {
  flex: 0 0 auto;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #fef3c7;
  color: #78350f;
  font-size: 0.82rem;
  font-weight: 800;
  /* Largeur fixe : le compte a rebours ne fait plus bouger le header a chaque seconde. */
  min-width: 4.4rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.audio-review-body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.audio-review-replay {
  margin-top: 0.9rem;
}

.audio-review-textarea,
.audio-review-flag,
.audio-review-readonly {
  width: 100%;
  min-height: 190px;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.audio-review-readonly {
  max-height: 300px;
  overflow: auto;
  white-space: pre-wrap;
}

.audio-review-flag {
  min-height: 96px;
}

.audio-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* ===== Resultat vocal IA : grille au style solo + lecture IA en accordeon =====
   Scopé sous .audio-result-panel pour ne jamais toucher la page solo V1. */
.audio-result-panel .ia-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.station-audio-results .audio-result-panel {
  padding-bottom: 18px;
}

/* L'ancien shell de traitement audio ne contient pas .station-content. Aux
   largeurs ou la salle verrouille le body, il doit donc porter lui-meme le
   scroll de secours (utile notamment pour les anciens runs). */
@media (max-width: 1120px) {
  .station-audio-results .station-layout {
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

.audio-result-replay {
  margin: 12px 0 14px;
}

.audio-stable-player {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  max-width: 100%;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.audio-stable-player audio {
  display: none;
}

.audio-stable-play {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  cursor: pointer;
  transition: background .14s ease;
}

.audio-stable-play:hover:not(:disabled) {
  background: #256363;
}

.audio-stable-play:disabled {
  cursor: wait;
  opacity: 0.55;
}

.audio-stable-play svg {
  width: 14px;
  height: 14px;
}

.audio-stable-time {
  flex: none;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* barre : range natif restyle (drag + clavier + a11y conserves) */
.audio-stable-range {
  flex: none;
  width: 108px;
  height: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.audio-stable-range:disabled {
  cursor: default;
  opacity: .6;
}

.audio-stable-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--teal) var(--audio-fill, 0%), var(--line) var(--audio-fill, 0%));
}

.audio-stable-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -4px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.audio-stable-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.audio-stable-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--teal);
}

.audio-stable-range::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--teal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.audio-stable-range:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--teal) 40%, transparent);
  outline-offset: 3px;
}

.audio-stable-info {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--muted);
  opacity: .6;
  cursor: help;
}

.audio-stable-info svg {
  width: 15px;
  height: 15px;
}

.audio-stable-info:hover {
  opacity: .9;
}

.audio-stable-player[data-audio-error="true"] {
  border-color: rgba(185, 28, 28, 0.22);
  background: #fff7f7;
}

@media (max-width: 520px) {
  .audio-stable-range {
    width: 84px;
  }
}

.audio-reeval-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
  margin: 12px 0 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fbfcfa;
}
.audio-reeval-copy h2 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.audio-reeval-copy p,
.audio-reeval-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.audio-reeval-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.audio-reeval-select {
  min-width: 190px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.audio-reeval-action {
  min-height: 36px;
  padding-inline: 12px;
  white-space: nowrap;
}
.audio-reeval-status {
  grid-column: 1 / -1;
}

/* Cout reel de la session (ventile par etape) */
.audio-cost-block {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbf8;
}
.audio-cost-block h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.audio-cost-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 5px 16px;
  margin: 0;
}
.audio-cost-grid dt {
  color: #33403c;
  font-size: 13px;
}
.audio-cost-grid dd {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-align: right;
  color: var(--ink);
}
.audio-cost-grid .audio-cost-total {
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}
.audio-cost-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.audio-result-panel .ia-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.audio-result-panel .ia-chip .d {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.audio-result-panel .ia-chip.status-validated {
  background: color-mix(in srgb, var(--grid-ok) 12%, #fff);
  color: var(--grid-ok);
}
.audio-result-panel .ia-chip.status-validated .d { background: var(--grid-ok); }

.audio-result-panel .ia-chip.status-partial,
.audio-result-panel .ia-chip.status-uncertain {
  background: color-mix(in srgb, var(--grid-partial) 16%, #fff);
  color: var(--grid-partial);
}
.audio-result-panel .ia-chip.status-partial .d,
.audio-result-panel .ia-chip.status-uncertain .d { background: var(--grid-partial); }

.audio-result-panel .ia-chip.status-mentioned_false,
.audio-result-panel .ia-chip.status-contradictory {
  background: color-mix(in srgb, var(--grid-missing) 12%, #fff);
  color: var(--grid-missing);
}
.audio-result-panel .ia-chip.status-mentioned_false .d,
.audio-result-panel .ia-chip.status-contradictory .d { background: var(--grid-missing); }

.audio-result-panel .ia-chip.status-absent {
  background: #f1efea;
  color: var(--muted);
}
.audio-result-panel .ia-chip.status-absent .d { background: #aeb9b4; }

/* Pastille de statut IA : plus de fond teinte (le point coloré + le filet vertical
   gauche portent deja la couleur). On garde le point et le libelle. */
.result-panel .ia-chip[class*="status-"],
.audio-result-panel .ia-chip[class*="status-"] {
  background: transparent;
}
.result-panel .ia-chip,
.audio-result-panel .ia-chip {
  padding: 0;
  gap: 6px;
}

/* Clic sur la ligne = deplie l'extrait, sans aucun chevron. */
.audio-result-panel details.ia-item > summary {
  cursor: pointer;
  list-style: none;
}
.audio-result-panel details.ia-item > summary::-webkit-details-marker { display: none; }
.audio-result-panel details.ia-item > summary::marker { content: ""; }

.audio-result-panel .audio-check-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.audio-result-panel .ia-body {
  padding: 9px 17px 12px;
  border-top: 1px dashed var(--line);
  background: #f9faf7;
  font-size: 13.5px;
  color: #33403c;
}

.audio-result-panel .ia-body blockquote {
  margin: 4px 0;
  padding: 3px 0 3px 11px;
  border-left: 2px solid var(--line);
  color: #2b332f;
  font-style: italic;
}

.audio-result-panel .ia-body blockquote cite {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
}

.audio-result-panel .ia-body .ia-reason {
  margin: 7px 0 0;
  color: #33403c;
  font-size: 12.5px;
  font-weight: 750;
}

.audio-result-panel .ia-body .miss {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Fond rouge leger pour les items non credites (mentionne faux + absent). */
.audio-result-panel .grid-item.is-missing > .grid-row {
  background: var(--grid-missing-bg);
}
.audio-result-panel .ia-item.is-missing .ia-body {
  background: #fdf3f4;
  border-top-color: color-mix(in srgb, var(--grid-missing) 25%, #fff);
}

.audio-ai-item > .grid-row {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
}

.audio-ai-item > summary.grid-row {
  grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
}

.audio-ai-item > .grid-row .grid-check {
  justify-self: center;
}

.audio-ai-soft-item .result-soft-score {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.audio-ai-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.audio-ai-item.status-mentioned_false > .grid-row,
.audio-ai-item.status-contradictory > .grid-row {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(254, 242, 242, 0.9);
}

.audio-ai-item.status-mentioned_false .audio-ai-status,
.audio-ai-item.status-contradictory .audio-ai-status {
  border-color: rgba(220, 38, 38, 0.2);
  background: #fef2f2;
  color: #b91c1c;
}

.audio-ai-status.status-validated {
  border-color: rgba(20, 184, 166, 0.22);
  background: #ecfdf5;
  color: #047857;
}

.audio-ai-status.status-partial,
.audio-ai-status.status-uncertain {
  border-color: rgba(217, 119, 6, 0.2);
  background: #fffbeb;
  color: #b45309;
}

.audio-ai-status.status-absent {
  color: #64748b;
}

.audio-grid-criteria {
  padding: 0.2rem 0 0.2rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.audio-grid-criteria > small {
  display: block;
  padding: 0.7rem 1rem 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.audio-ai-decision {
  display: grid;
  gap: 0.65rem;
  margin: 0.65rem 0.85rem 0.85rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(248, 250, 252, 0.9));
}

.audio-ai-decision-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.audio-ai-decision-head > span:first-child {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 850;
}

.audio-ai-decision-head small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.audio-ai-evidence-list {
  display: grid;
  gap: 0.45rem;
}

.audio-ai-evidence-list blockquote {
  margin: 0;
  padding: 0.15rem 0 0.15rem 0.75rem;
  border-left: 3px solid rgba(37, 99, 235, 0.28);
  color: #334155;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.45;
}

.audio-ai-evidence-list cite {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

.audio-ai-decision-empty,
.audio-ai-warning {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.audio-ai-warning {
  color: #92400e;
  font-weight: 750;
}

.audio-ai-context {
  margin-top: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.audio-ai-context summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
  list-style: none;
}

.audio-ai-context summary::-webkit-details-marker {
  display: none;
}

.audio-ai-context summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: #334155;
  font-size: 1rem;
  font-weight: 850;
}

.audio-ai-context[open] summary::after {
  content: "-";
}

.audio-ai-context summary span {
  color: #0f172a;
  font-weight: 850;
}

.audio-ai-context summary small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.audio-ai-context-body {
  display: grid;
  gap: 0.8rem;
  padding: 0 1rem 1rem;
}

.audio-technical-details .audio-cost-block {
  margin: 0;
}

.audio-ai-context-panel {
  display: grid;
  gap: 0.65rem;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #f8fafc;
}

.audio-ai-context-panel h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 850;
}

.audio-ai-context-panel pre {
  max-height: 340px;
  margin: 0;
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font-size: 0.82rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
}

.audio-ai-context-kv {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  margin: 0;
}

.audio-ai-context-kv dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.audio-ai-context-kv dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.audio-ai-term-list,
.audio-ai-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audio-ai-term-list span,
.audio-ai-example-list span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 760;
  overflow-wrap: anywhere;
  white-space: normal;
}

.audio-ai-context-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.audio-ai-rubric-list {
  display: grid;
  gap: 0.7rem;
}

.audio-ai-rubric-list article {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
}

.audio-ai-rubric-list header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.audio-ai-rubric-list code {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.audio-ai-rubric-list strong {
  color: #0f172a;
  font-size: 0.92rem;
}

.audio-ai-rubric-list p {
  margin: 0;
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}

.audio-ai-example-list:empty {
  display: none;
}

.audio-ai-example-list small {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.audio-ai-example-list span {
  border-color: rgba(20, 184, 166, 0.18);
  background: #ecfdf5;
  color: #047857;
}

.audio-ai-example-list.is-false span {
  border-color: rgba(220, 38, 38, 0.18);
  background: #fef2f2;
  color: #b91c1c;
}

.audio-transcript-block .audio-stable-player {
  margin: 10px 0 4px;
}

.audio-transcript-block p {
  white-space: pre-wrap;
}

.audio-transcript-block mark {
  background: transparent;
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}

.audio-transcript-block mark.hl-ok {
  background: #ecfdf5;
  border-bottom: 2px solid #14b8a6;
}

.audio-transcript-block mark.hl-partial {
  background: #fffbeb;
  border-bottom: 2px solid #f59e0b;
}

.audio-transcript-block mark.hl-false {
  background: #fef2f2;
  border-bottom: 2px solid #dc2626;
}

.audio-transcript-block mark.hl-uncertain {
  background: #eff6ff;
  border-bottom: 2px solid #3b82f6;
}

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

@media (max-width: 720px) {
  .result-ai-chat-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .result-ai-chat-toggle {
    width: 100%;
  }
  .result-ai-chat-criterion {
    grid-template-columns: 1fr;
  }
  .result-ai-chat-jump {
    justify-self: start;
  }
  /* Une seule ligne aussi sur mobile : point, libelle, jauge (enregistrement seulement), bouton.
     Le detail reste replie sauf en erreur. */
  .station-audio-strip {
    gap: 0.55rem;
    min-height: 2.1rem;
    padding: 0.3rem 0.25rem;
  }

  .station-audio-strip b,
  .station-audio-strip small {
    min-width: 0;
    line-height: 1.12;
  }

  .station-audio-strip:not([data-audio-room-state="error"]) small {
    display: none;
  }

  /* Erreur : le message passe sous le libelle plutot que tronque a cote du bouton. */
  .station-audio-strip[data-audio-room-state="error"] .station-audio-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
  }

  .station-audio-meter {
    flex: 0 1 11rem;
    height: 1.5rem;
    margin-left: auto;
    padding: 0;
  }

  .station-audio-meter span {
    height: calc(1.2rem * var(--audio-level, 0.12));
  }

  .station-audio-strip:not([data-audio-room-state="recording"]) .station-audio-meter {
    display: none;
  }

  .station-audio-toggle {
    margin-left: auto;
    padding: 0.32rem 0.6rem;
  }

  .station-audio-gear {
    width: 1.75rem;
    height: 1.75rem;
  }

  .audio-processing-steps {
    grid-template-columns: 1fr 1fr;
  }

  .audio-ai-context-kv {
    grid-template-columns: 1fr;
  }

  .audio-ai-item > .grid-row {
    grid-template-columns: minmax(0, 1fr) 48px 26px 18px;
  }

  .audio-ai-item > .grid-row .pts,
  .audio-ai-item > .grid-row .audio-ai-status,
  .audio-ai-item > .grid-row .grid-check,
  .audio-ai-item > .grid-row .grid-disclosure {
    justify-self: start;
  }

  .audio-ai-context summary {
    align-items: flex-start;
  }
}

.sidebar-feedback-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, .06);
  color: var(--ink-text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-feedback-button:hover {
  border-color: color-mix(in srgb, var(--teal) 55%, var(--ink-line));
  background: #18465a;
  color: #fff;
}

.sidebar-feedback-button .ic {
  width: 17px;
  height: 17px;
  flex: none;
}

.station-play {
  position: relative;
}

.feedback-floating,
.feedback-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid rgba(47, 120, 120, .28);
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: #205e61;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(24, 30, 26, .08);
}

.feedback-floating:hover,
.feedback-inline-button:hover {
  border-color: rgba(47, 120, 120, .52);
  color: var(--ink);
}

.feedback-floating svg,
.feedback-inline-button svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.feedback-floating {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 28;
}

.ai-chatbot-station .feedback-floating {
  top: 58px;
}

.ai-audio-head .feedback-inline-button {
  margin-left: auto;
}

.ai-audio-head .feedback-inline-button + .ai-audio-status {
  margin-left: 0;
}

.feedback-modal[hidden] {
  display: none !important;
}

.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.feedback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 34, .48);
  backdrop-filter: blur(4px);
}

.feedback-modal__panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  width: min(520px, 100%);
  max-height: min(720px, calc(100dvh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(15, 46, 61, .28);
}

.feedback-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.feedback-modal__close:hover {
  color: var(--ink);
}

.feedback-modal__close svg {
  width: 18px;
  height: 18px;
}

.feedback-modal__head {
  padding-right: 40px;
}

.feedback-modal__head h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 24px;
  line-height: 1.1;
}

.feedback-form,
.feedback-field {
  display: grid;
  gap: 9px;
}

.feedback-kind {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-kind label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 9px;
  background: #fbfbf8;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.feedback-field {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.feedback-field textarea {
  width: 100%;
  min-height: 138px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  line-height: 1.45;
}

.feedback-file {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
  padding: 10px;
  background: #f7fbf9;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.feedback-file input {
  max-width: 100%;
  font-size: 12px;
}

.feedback-note,
.feedback-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.feedback-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 750;
}

.feedback-status.success {
  border-color: #b8ddd2;
  background: #edf8f4;
  color: #17604f;
}

.feedback-status.error {
  border-color: #f0b8bd;
  background: #fff0f1;
  color: #a8323d;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

@media (max-width: 720px) {
  .feedback-floating {
    top: 12px;
    right: 12px;
    min-height: 34px;
    padding: 8px;
    font-size: 0;
  }

  .feedback-floating svg {
    width: 17px;
    height: 17px;
  }

  .ai-chatbot-station .feedback-floating {
    top: 52px;
  }

  .feedback-kind {
    grid-template-columns: 1fr;
  }

  .feedback-actions .primary-action,
  .feedback-actions .secondary-action {
    flex: 1 1 150px;
  }
}

@media (min-width: 900px) {
  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) {
    border-radius: 12px;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .docs-head {
    padding: 10px 12px 8px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .docs-list {
    gap: 14px;
    padding: 2px 12px 14px;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .doc-link {
    align-items: flex-start;
    height: 72px;
    min-height: 72px;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 8px;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .doc-thumb {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .doc-thumb svg {
    width: 16px;
    height: 16px;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .doc-link span:last-child {
    gap: 5px;
    min-height: 0;
    padding-top: 1px;
    font-size: 12.75px;
    line-height: 1.16;
  }

  .station-play:not(.ai-chatbot-station) .station-content > .candidate-docs:not(.hidden) .doc-link small {
    font-size: 11px;
    line-height: 1.2;
  }
}

/* ============================================================================
   Sidebar rail compact (V1) — >720px la sidebar devient un rail de 84px :
   icônes en pastilles rondes 42px + micro-libellés uppercase dessous, item
   actif en pastille claire teal. <=720px, l'off-canvas mobile garde la liste
   classique (les helpers display:contents neutralisent le wrapper .nic).
   ============================================================================ */
.nav .nic,
.sidebar-bottom .join-nav-action .nic,
.sidebar-feedback-button .nic { display: contents; }
.nav a small,
.sidebar-bottom .join-nav-action small,
.sidebar-feedback-button small { font: inherit; }
.nav a.join-nav-action .nic,
.sidebar-bottom .join-nav-action .nic {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--ink-text);
}
.nav a.join-nav-action .nic::after,
.sidebar-bottom .join-nav-action .nic::after {
  content: "+";
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

@media (min-width: 720.02px) {
  .app-shell { grid-template-columns: 84px minmax(0, 1fr); }
  .side {
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    align-items: center;
    padding: 14px 8px;
  }
  .logo { padding: 2px 0 14px; font-size: 13px; text-align: center; }
  .nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .sidebar-bottom {
    order: 1;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 8px;
  }
  .nav a,
  .sidebar-bottom .join-nav-action {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    color: var(--ink-muted);
    white-space: normal;
  }
  .nav a small,
  .sidebar-bottom .join-nav-action small {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
  }
  .nav .nic,
  .sidebar-bottom .join-nav-action .nic {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--ink-text);
    transition: background .15s, color .15s;
  }
  .nav .ic,
  .sidebar-bottom .ic { width: 18px; height: 18px; }
  .nav a:hover,
  .sidebar-bottom .join-nav-action:hover { background: transparent; color: var(--ink-text); }
  .nav a:hover .nic,
  .sidebar-bottom .join-nav-action:hover .nic { background: rgba(255, 255, 255, .18); color: #fff; }
  .nav a.on,
  .sidebar-bottom .join-nav-action.on { background: transparent; color: #fff; }
  .nav a.on .nic,
  .sidebar-bottom .join-nav-action.on .nic { background: #e8f1f0; color: var(--teal); }
  .nav a.join-nav-action .nic,
  .sidebar-bottom .join-nav-action .nic {
    width: 42px;
    height: 42px;
  }
  .nav a.premium-nav.on { background: transparent !important; }
  .nav a.premium-nav.on .nic { background: #fff7e8; color: #6d4812; }

  /* premium = marqueur doré discret SOUS l'avatar (ordre flex), plus de carte */
  .sidebar-premium-card {
    order: 3;
    width: 100%;
    margin: 5px 0 0;
    padding: 0;
    gap: 0;
    border: 0;
    background: transparent;
    text-align: center;
  }
  .sidebar-premium-card:hover { border-color: transparent; }
  .sidebar-premium-card b {
    color: #e4b45e;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .sidebar-premium-card span { display: none; }
  .userbox {
    order: 2;
    margin-top: 8px;
  }

  .sidebar-feedback-button {
    display: flex;
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .sidebar-feedback-button .nic {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--ink-text);
    transition: background .15s, color .15s;
  }
  .sidebar-feedback-button .ic { width: 18px; height: 18px; }
  .sidebar-feedback-button:hover { background: transparent; color: var(--ink-text); }
  .sidebar-feedback-button:hover .nic { background: #18465a; color: #fff; }

  .userbox { width: 100%; }
  .userbtn { justify-content: center; padding: 7px 0; }
  .uinfo,
  .uchev { display: none; }
  .usermenu { left: calc(100% + 12px); }
}

/* Pages station 721-1120px : on garde le rail compact visible.
   L'off-canvas est réservé au vrai mode tablette/mobile <=720px. */
@media (min-width: 720.02px) and (max-width: 1120px) {
  body:has(.main > .page.station-shell) .app-shell {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
  }

  body:has(.main > .page.station-shell) .main {
    width: auto;
    min-width: 0;
  }

  body:has(.main > .page.station-shell) .side {
    position: sticky;
    top: 0;
    left: auto;
    z-index: 360;
    width: 84px;
    min-width: 84px;
    max-width: 84px;
    height: 100vh;
    transform: none;
    transition: none;
  }

  body:has(.main > .page.station-shell) .side.open {
    transform: none;
  }

  body:has(.main > .page.station-shell) .mobile-backdrop,
  body:has(.main > .page.station-shell) .mobile-backdrop.show {
    display: none;
  }

  body:has(.main > .page.station-shell) .menu-btn {
    display: none;
  }
}

/* Document viewer: if the station sidebar rail is visible, the modal must never
   start underneath it. Below 720px the sidebar is off-canvas, so the viewer can
   use the full viewport width. */
@media (min-width: 720.02px) {
  body:has(.main > .page.station-shell).document-open .document-modal {
    inset: 18px 18px 18px 102px !important;
  }
}

@media (min-width: 720.02px) and (max-width: 899px) {
  body:has(.main > .page.station-shell) .station-play:not(.ai-chatbot-station) .candidate-docs:not(.hidden) {
    left: 84px;
  }

  body:has(.main > .page.station-shell).document-open .document-modal {
    inset: 8px 8px calc(var(--ecos-docbar-h, 64px) + 8px) 92px !important;
  }
}

@media (max-width: 720px) {
  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-panel header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title close"
      "timer timer";
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-panel h2 {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-nav,
  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-zoom {
    display: none;
  }

  body.document-open.doc-fullscreen .station-play:not(.ai-chatbot-station) .document-tools .station-timer-strip {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
}

/* Assessment grid validation bar: keep the timer, instruction, and submit action
   in distinct grid areas so narrow station layouts cannot overlap text. */
@media (max-width: 820px) {
  .station-assessment-topbar--grid.station-result-topbar--noscore {
    grid-template-columns: auto minmax(108px, auto);
    grid-template-areas:
      "elapsed action"
      "hint hint";
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .station-result-topbar-main {
    display: contents;
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .station-result-topbar-parts {
    grid-area: elapsed;
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .grid-hint {
    grid-area: hint;
    justify-self: stretch;
    padding-top: 1px;
    text-align: center;
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .station-result-topbar-actions {
    grid-area: action;
    justify-self: end;
  }
}

@media (max-width: 520px) {
  .station-assessment-topbar--grid.station-result-topbar--noscore {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "elapsed action";
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .grid-hint {
    display: none;
  }

  .station-assessment-topbar--grid.station-result-topbar--noscore .result-topbar-part {
    min-width: 0;
  }
}
.launch-modal.is-ia-flow .launch-sub,
.launch-modal.is-ia-flow [data-launch-competence] {
  display: none;
}
.launch-modal.is-ia-flow .launch-panel,
.external-ai-dialog {
  overflow: auto;
}
.external-ai-modal[hidden],
.external-ai-panel[hidden] {
  display: none;
}
.external-ai-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
}
@media (min-width: 720.02px) {
  .external-ai-modal { left: 84px; }
}
.external-ai-dialog { width: min(600px, 100%); }
.external-ai-steps { display: grid; gap: 8px; margin-top: 16px; }
.external-ai-step { width: 100%; margin: 0; border-radius: 8px; }
.external-ai-step .launch-join-hint-icon { font-size: 16px; font-weight: 800; }
.external-ai-step .launch-join-hint-icon::after { content: none; }
.external-ai-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.external-ai-actions { display: flex; align-items: center; gap: 8px; }
.external-ai-copy { gap: 8px; white-space: nowrap; }
.external-ai-copy svg { width: 16px; height: 16px; }
.external-ai-provider { flex: 0 0 38px; width: 38px; height: 38px; }
.external-ai-provider svg { width: 19px; height: 19px; fill: #2b2b2b; stroke: none; }
.external-ai-provider-claude svg { fill: #ca6b48; }
.external-ai-status { margin: 6px 0 0; min-height: 18px; color: var(--muted); font-size: 12px; }
.external-ai-foot .external-ai-status { grid-column: 1 / -1; grid-row: 2; }
.external-ai-enter { grid-column: 2; grid-row: 1; white-space: nowrap; }
.external-ai-modal .external-ai-actions { margin-top: 16px; }
@media (max-width: 650px) {
  .external-ai-modal { padding: 10px 12px; }
  .external-ai-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 20px); }
  .external-ai-foot { grid-template-columns: 1fr; }
  .external-ai-enter { grid-column: 1; grid-row: 3; text-align: center; }
  .external-ai-foot .external-ai-status { grid-column: 1; grid-row: 2; }
  .external-ai-actions { justify-content: center; }
}
/* « Avec ton IA » : boutons inactifs et mini chargement tant que le prompt n'est pas charge. */
.external-ai-actions button:disabled { cursor: progress; opacity: .55; }
.external-ai-copy[aria-busy="true"] svg { display: none; }
.external-ai-copy[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid color-mix(in srgb, var(--teal) 25%, transparent);
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: launch-spin .8s linear infinite;
}
.external-ai-status[data-external-ai-retry] { color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Pass ECOS 2027 — page d'achat, variante séparée du bloc Abonnement. */
.page.premium-page-shell {
  padding-top: clamp(18px, 3vh, 32px);
  padding-bottom: 28px;
}

.premium-page {
  width: min(100%, 1180px);
  gap: 20px;
}

.premium-header.premium-header--context {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin: 0 6px 2px;
  text-align: left;
}

.premium-header--context span {
  flex: none;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf4f1;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-header--context strong {
  min-width: 0;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.18;
}

.pricing-switcher--upgrade {
  width: min(100%, 1180px);
  grid-template-columns: minmax(0, 2fr) minmax(320px, .78fr);
  gap: 20px;
}

.pricing-switcher--upgrade > .pricing-card,
.pricing-switcher--upgrade > .pricing-beta {
  border: 1px solid #cfe0da;
  border-radius: 24px;
}

.pricing-switcher--upgrade > .pricing-card {
  padding: 36px 50px 28px;
  box-shadow: 0 12px 34px rgba(18, 55, 70, .05);
}

.pricing-switcher--upgrade > .pricing-card:only-child {
  grid-column: 1 / -1;
  width: min(100%, 760px);
  justify-self: center;
}

.pricing-switcher--upgrade .pricing-offers {
  min-height: 0;
  padding: 0;
}

.pricing-switcher--upgrade .pricing-offer {
  justify-items: start;
  gap: 0;
  text-align: left;
}

.pricing-switcher--upgrade .pricing-offer-name {
  color: var(--signal);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .14em;
}

.pricing-unlock {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.35;
}

.pricing-switcher--upgrade .pricing-price {
  min-height: 0;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 16px;
}

.pricing-switcher--upgrade .pricing-price strong {
  font-size: clamp(58px, 5.8vw, 76px);
  letter-spacing: -.035em;
}

.pricing-switcher--upgrade .pricing-price span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef3f1;
  color: #5d7479;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pricing-switcher--upgrade .pricing-terms {
  margin-top: 13px;
  color: #567078;
  font-size: 20px;
  line-height: 1.35;
}

.pricing-switcher--upgrade .pricing-features {
  display: grid;
  gap: 18px;
  margin: 30px 0 32px;
  border: 0;
}

.pricing-switcher--upgrade .pricing-features li {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  align-items: center;
  padding: 3px 0;
  border: 0;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.45;
}

.pricing-switcher--upgrade .pricing-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e5f2ee;
  color: var(--teal);
  font-size: 18px;
}

.pricing-switcher--upgrade .pricing-actions,
.pricing-switcher--upgrade .pricing-secure {
  width: min(100%, 460px);
}

.pricing-switcher--upgrade .pricing-actions {
  margin-top: auto;
}

.pricing-switcher--upgrade .pricing-button {
  min-height: 52px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(33, 127, 123, .2);
  font-size: 16px;
}

.pricing-switcher--upgrade .pricing-button:hover {
  background: #256d69;
}

.pricing-secure {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 0;
  color: #567078;
  font-size: 13px;
  line-height: 1.4;
}

.pricing-secure svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pricing-switcher--upgrade > .pricing-beta {
  display: flex;
  flex-direction: column;
  padding: 34px 30px 29px;
  background: #eaf4f1;
  box-shadow: none;
}

.pricing-switcher--upgrade .pricing-beta__badge {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 7px 11px;
  font-size: 11px;
}

.pricing-switcher--upgrade .pricing-beta h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.pricing-switcher--upgrade .pricing-beta__included {
  display: grid;
  gap: 5px;
  margin: 22px 0 24px;
  padding: 16px 17px;
  border: 1px solid rgba(33, 127, 123, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.pricing-switcher--upgrade .pricing-beta__included strong {
  color: #176d69;
  font-size: 19px;
  line-height: 1.25;
}

.pricing-switcher--upgrade .pricing-beta__included span {
  color: #5b7477;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

.pricing-switcher--upgrade .pricing-beta > ul {
  gap: 16px;
  padding-bottom: 24px;
}

.pricing-switcher--upgrade .pricing-beta > ul li {
  font-size: 15px;
}

.pricing-switcher--upgrade .pricing-beta > .pricing-beta__features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 0 24px;
  list-style: none;
}

.pricing-switcher--upgrade .pricing-beta > .pricing-beta__features > li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.35;
}

.pricing-switcher--upgrade .pricing-beta > .pricing-beta__features > li::before {
  display: none;
}

.pricing-beta__feature-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(33, 127, 123, .11);
  color: var(--teal);
}

.pricing-beta__feature-icon svg {
  width: 18px;
  height: 18px;
}

.pricing-switcher--upgrade .pricing-beta__notice {
  margin-top: auto;
  padding-top: 21px;
  border-top-color: #c9ddd7;
}

.pricing-switcher--upgrade .pricing-beta__notice h3 {
  margin-bottom: 9px;
  font-size: 15px;
}

.pricing-switcher--upgrade .pricing-beta__notice p {
  margin-bottom: 12px;
  color: #506c71;
  font-size: 12.5px;
  line-height: 1.55;
}

@media (min-width: 861px) and (max-height: 820px) {
  .page.premium-page-shell {
    padding-top: 8px;
    padding-bottom: 0;
  }

  .page.premium-page-shell:has(> .site-footer) {
    padding-bottom: 0;
  }

  .page.premium-page-shell > .site-footer {
    padding: 10px 0 2px;
    font-size: 12px;
    line-height: 1.35;
  }

  .page.premium-page-shell > .site-footer .site-footer-links {
    margin-bottom: 4px;
  }

  .page.premium-page-shell > .site-footer p {
    font-size: 11px;
    line-height: 1.35;
  }

  .premium-page {
    gap: 12px;
  }

  .premium-header.premium-header--context {
    margin-bottom: 0;
  }

  .premium-header--context span {
    padding-block: 5px;
    font-size: 10.5px;
  }

  .premium-header--context strong {
    font-size: 19px;
  }

  .pricing-switcher--upgrade > .pricing-card {
    padding: 24px 38px 21px;
  }

  .pricing-switcher--upgrade .pricing-price {
    margin-top: 10px;
  }

  .pricing-switcher--upgrade .pricing-price strong {
    font-size: 56px;
  }

  .pricing-switcher--upgrade .pricing-terms {
    margin-top: 8px;
    font-size: 18px;
  }

  .pricing-switcher--upgrade .pricing-features {
    gap: 13px;
    margin: 22px 0 23px;
  }

  .pricing-switcher--upgrade .pricing-check {
    width: 30px;
    height: 30px;
  }

  .pricing-switcher--upgrade .pricing-features li {
    grid-template-columns: 32px minmax(0, 1fr);
    font-size: 14.5px;
  }

  .pricing-switcher--upgrade > .pricing-beta {
    padding: 24px 24px 20px;
  }

  .pricing-switcher--upgrade .pricing-beta__badge {
    margin-bottom: 10px;
  }

  .pricing-switcher--upgrade .pricing-beta h2 {
    font-size: 22px;
  }

  .pricing-switcher--upgrade .pricing-beta__included {
    margin: 14px 0 16px;
    padding: 12px 14px;
  }

  .pricing-switcher--upgrade .pricing-beta > ul {
    gap: 10px;
    padding-bottom: 15px;
  }

  .pricing-switcher--upgrade .pricing-beta > .pricing-beta__features {
    gap: 9px;
    padding-bottom: 15px;
  }

  .pricing-beta__feature-icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .pricing-switcher--upgrade .pricing-beta__notice {
    padding-top: 14px;
  }

  .pricing-switcher--upgrade .pricing-beta__notice p {
    margin-bottom: 7px;
  }
}

@media (max-width: 860px) {
  .page.premium-page-shell {
    padding-top: 16px;
  }

  .premium-page {
    width: 100%;
    gap: 14px;
  }

  .premium-header.premium-header--context {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-inline: 2px;
  }

  .pricing-switcher--upgrade {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pricing-switcher--upgrade > .pricing-card {
    padding: 28px 26px 24px;
  }

  .pricing-switcher--upgrade > .pricing-beta {
    padding: 26px 24px;
  }

  .pricing-switcher--upgrade .pricing-actions,
  .pricing-switcher--upgrade .pricing-secure {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .pricing-switcher--upgrade > .pricing-card,
  .pricing-switcher--upgrade > .pricing-beta {
    border-radius: 18px;
  }

  .pricing-switcher--upgrade > .pricing-card {
    padding: 24px 20px 21px;
  }

  .pricing-switcher--upgrade .pricing-price {
    flex-wrap: wrap;
    gap: 9px 12px;
  }

  .pricing-switcher--upgrade .pricing-price strong {
    font-size: 50px;
  }

  .pricing-switcher--upgrade .pricing-terms {
    font-size: 17px;
  }

  .pricing-switcher--upgrade .pricing-features li {
    grid-template-columns: 30px minmax(0, 1fr);
    font-size: 14px;
  }

  .pricing-switcher--upgrade .pricing-check {
    width: 28px;
    height: 28px;
  }
}
