:root {
  color-scheme: dark;
  --bg: #1e1f22;
  --bg-alt: #26282b;
  --border: #38393d;
  --text: #d7d8db;
  --text-dim: #9a9ba0;
  --accent: #4f9cf9;
  --ok: #58c774;
  --err: #f06868;
}

/* Gris — noir pur (non éclairé), écriture grise calme, monochrome (type OLED). */
:root[data-theme="gray"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #0d0d0d;
  --border: #262626;
  --text: #b3b3b3;
  --text-dim: #737373;
  --accent: #707070;
  --ok: #7d9d7d;
  --err: #b07d7d;
}

/* Calm — sombre adouci : moins de contraste, accent vert sauge, pour les longues sessions. */
:root[data-theme="calm"] {
  color-scheme: dark;
  --bg: #1e2523;
  --bg-alt: #262e2b;
  --border: #354039;
  --text: #cfd8d3;
  --text-dim: #8fa39a;
  --accent: #7fae8e;
  --ok: #7fae8e;
  --err: #d98a7a;
}

/* Sepia — clair type liseuse : fond beige, jamais de noir/blanc pur, accent terracotta. */
:root[data-theme="sepia"] {
  color-scheme: light;
  --bg: #f4ecdf;
  --bg-alt: #ece0cb;
  --border: #ddccae;
  --text: #3a332a;
  --text-dim: #7a6f5d;
  --accent: #b06a3d;
  --ok: #5f8a5a;
  --err: #b5533f;
}

* { box-sizing: border-box; }

/* An element's own `display` rule (author stylesheet) otherwise beats the
   `[hidden]` attribute (user-agent stylesheet) regardless of specificity —
   several panels here (.content-tabs, .sketchnote-view, .content-toolbar)
   set `display: flex` and would stay visible while `hidden` even so. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.layout {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 12px;
}

.sidebar-title {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-title img {
  width: 18px;
  height: 18px;
}

.theme-toggle {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 6px 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
}
.theme-toggle:hover { border-color: var(--accent); }

.nav-buttons {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.nav-buttons button {
  flex: 1;
  padding: 6px 8px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.nav-buttons button:hover:not(:disabled) { border-color: var(--accent); }
.nav-buttons button:disabled { opacity: 0.4; cursor: default; }

#tree ul { list-style: none; margin: 0; padding-left: 14px; }
#tree > ul { padding-left: 0; }

#tree .dir > .label {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dim);
}
#tree .dir > .label::before { content: "▸ "; }
#tree .dir.open > .label::before { content: "▾ "; }
#tree .dir > ul { display: none; }
#tree .dir.open > ul { display: block; }

#tree .file > .label {
  cursor: pointer;
  display: block;
  padding: 3px 6px;
  border-radius: 4px;
}
#tree .file > .label:hover { background: var(--border); }
#tree .file.active > .label { background: var(--accent); color: #fff; }

.label { padding: 4px 4px; display: block; }

.main-panel {
  flex: 1;
  position: relative; /* repère de l'aperçu privé */
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.content-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 48px 0;
  max-width: 1000px;
}

.content-tabs { display: flex; gap: 6px; }

.content-tab {
  padding: 6px 14px;
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.content-tab:hover { border-color: var(--accent); }
.content-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.toolbar-actions { display: flex; align-items: center; gap: 10px; }

.sketchnote-view {
  flex: 1;
  overflow: auto;
  padding: 16px 48px 32px;
  max-width: 1000px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.sketchnote-view img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

#copy-md-btn {
  padding: 6px 12px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
#copy-md-btn:hover { border-color: var(--accent); }
#copy-md-btn:disabled { opacity: 0.4; cursor: default; border-color: var(--border); }

.copy-status {
  font-size: 12px;
  color: var(--text-dim);
}
.copy-status.ok { color: var(--ok); }
.copy-status.err { color: var(--err); }

#content {
  flex: 1;
  position: relative; /* repère des offsetTop pour la synchro du défilement live */
  overflow-y: auto;
  padding: 16px 48px 32px;
  max-width: 1000px;
}

.placeholder { color: var(--text-dim); }

#content h1, #content h2, #content h3, #content h4,
#preview-content h1, #preview-content h2, #preview-content h3, #preview-content h4 { line-height: 1.3; scroll-margin-top: 16px; }
#content code, #preview-content code { background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
#content pre, #preview-content pre { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; overflow-x: auto; }
#content pre code, #preview-content pre code { background: none; padding: 0; }
#content table, #preview-content table { border-collapse: collapse; }
#content th, #content td, #preview-content th, #preview-content td { border: 1px solid var(--border); padding: 6px 10px; }
#content a, #preview-content a { color: var(--accent); }

/* Notes formateur (« > [!FORMATEUR] ») : jamais envoyées aux participant·es, chez qui il ne
   reste qu'un repère vide (gardé pour aligner les blocs de la synchro live). */
.teacher-only:empty { display: none; }
.teacher-only {
  margin: 16px 0;
  padding: 4px 16px;
  border: 1px dashed var(--accent);
  border-left-width: 4px;
  border-radius: 6px;
  background: var(--bg-alt);
}
.teacher-only-label { margin: 8px 0 0; font-size: 0.85em; font-weight: 600; color: var(--accent); }
body.hide-teacher .teacher-only { display: none; }

/* Page entière réservée (« <!-- formateur --> » en tête du fichier). */
#content.teacher-file::before,
#preview-content.teacher-file::before {
  content: "🎓 Page réservée à l'animation : jamais diffusée en session live.";
  display: block;
  margin-bottom: 8px;
  font-size: 0.85em;
  color: var(--accent);
}
body.hide-teacher #content.teacher-file > *,
body.hide-teacher #preview-content.teacher-file > * { display: none; }
body.hide-teacher #content.teacher-file::before,
body.hide-teacher #preview-content.teacher-file::before {
  content: "🎓 Page réservée à l'animation : masquée (bouton « Notes formateur » dans la barre latérale).";
}
body.hide-teacher #tree li.teacher-file { display: none; }

.runnable { margin: 12px 0; }
.runbar { display: flex; align-items: center; gap: 10px; padding: 4px 2px; }
.run-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
}
.run-btn:hover { filter: brightness(1.1); }
.run-btn:disabled { opacity: 0.6; cursor: default; }
.run-status { font-size: 12px; color: var(--text-dim); }
.run-status.ok { color: var(--ok); }
.run-status.err { color: var(--err); }

#exports-view {
  flex: 1;
  overflow-y: auto;
  padding: 16px 48px 32px;
  max-width: 1000px;
}
#exports-view h1 { line-height: 1.3; }
#exports-view h2 { margin-top: 28px; font-size: 1.05em; color: var(--text-dim); }

.exports-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
}
.exports-controls select {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  min-width: 260px;
}
.export-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
#export-run-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
#export-run-btn:hover { filter: brightness(1.1); }
#export-run-btn:disabled { opacity: 0.6; cursor: default; }

#export-files-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
#export-files-list li {
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
}
#export-files-list a { color: var(--accent); font-weight: 500; }
.export-meta { color: var(--text-dim); font-size: 12px; }

.run-output {
  margin-top: 6px;
  background: #111213;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  font-size: 13px;
}

/* ---------- session live : blocs partagés viewer / page participant·es ---------- */

:root { --hl: rgba(255, 214, 10, 0.38); --hl-text: inherit; }
:root[data-theme="sepia"] { --hl: rgba(255, 196, 0, 0.5); }

mark.live-hl {
  background: var(--hl);
  color: var(--hl-text);
  border-radius: 3px;
  box-shadow: 0 0 0 2px var(--hl);
  animation: live-hl-in 0.5s ease-out;
}
@keyframes live-hl-in { from { box-shadow: 0 0 0 8px var(--hl); } }

.live-question {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: 8px;
  background: var(--bg-alt);
}
.live-q-prompt { margin: 0 0 10px; font-weight: 600; }
.live-q-prompt::before { content: "💬 "; }

.live-q-form { display: flex; gap: 8px; align-items: flex-start; }
.live-q-form input,
.live-q-form textarea {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.live-q-form textarea { resize: vertical; }
.live-q-form button,
.live-btn {
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.live-btn.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.live-btn.secondary:hover { border-color: var(--accent); }
.live-btn.danger { background: transparent; color: var(--err); border: 1px solid var(--border); }
.live-btn:disabled { opacity: 0.5; cursor: default; }

.live-q-mine { margin-top: 8px; font-size: 13px; color: var(--text-dim); }
.live-q-mine span { color: var(--ok); }
.live-q-mine ul { margin: 4px 0 0; padding-left: 20px; }

.live-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 16px;
  padding: 12px 4px;
  line-height: 1.15;
}
.live-cloud-term { font-weight: 600; white-space: nowrap; }
.live-cloud-term.c1 { color: #4f9cf9; }
.live-cloud-term.c2 { color: #3fb27f; }
.live-cloud-term.c3 { color: #e8964a; }
.live-cloud-term.c4 { color: #b77ee0; }
.live-cloud-term.c5 { color: #e06c75; }
.live-cloud-term.c6 { color: #2bb3c0; }

.live-answers { list-style: none; margin: 0; padding: 0; }
.live-answers li {
  padding: 8px 10px;
  margin-bottom: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  word-break: break-word;
}
.live-answer-name { color: var(--text-dim); font-size: 12px; }
.live-answer-del {
  float: right;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.live-answer-del:hover { color: var(--err); }

/* ---------- session live : panneau d'animation (viewer) ---------- */

#live-panel {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg-alt);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  padding: 12px 14px 24px;
  font-size: 13px;
}
#live-panel h2 {
  margin: 18px 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.live-panel-head { display: flex; align-items: center; justify-content: space-between; }
.live-panel-head strong { font-size: 14px; }
.live-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.live-join-urls { margin: 6px 0; padding: 0; list-style: none; }
.live-join-urls li { margin: 3px 0; }
.live-join-urls a { color: var(--accent); font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.live-hint { color: var(--text-dim); font-size: 12px; margin: 4px 0; }
.live-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11px;
}
.live-badge.on { color: var(--ok); border-color: var(--ok); }
.live-badge.paused { color: var(--err); border-color: var(--err); }
#live-participants { color: var(--text-dim); }
#live-adhoc-input {
  width: 100%;
  padding: 7px 9px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
.live-q-list { list-style: none; margin: 0; padding: 0; }
.live-q-list li {
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.live-q-list li:hover { background: var(--border); }
.live-q-list li.active { background: var(--accent); color: #fff; }
.live-q-list .count { flex-shrink: 0; opacity: 0.8; }
.live-q-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.live-q-detail h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.35; }
.live-q-detail .live-cloud { font-size: 13px; }
.live-onair { color: var(--ok); font-weight: 600; }

/* Bouton flottant « Surligner » au-dessus de la sélection, et repères dans le contenu. */
#hl-float {
  position: fixed;
  z-index: 20;
  padding: 5px 10px;
  background: #ffd60a;
  color: #222;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}
body.live-on #content mark.live-hl { cursor: pointer; }
.live-q-ui .live-row { margin: 0; }

/* ---------- aperçu privé : une autre page, sans changer celle des participant·es ---------- */

#preview {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  padding: 12px;
  background: rgba(0, 0, 0, 0.45);
}
.preview-card {
  flex: 1;
  min-height: 0;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 2px dashed var(--accent);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.preview-head {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.preview-label { font-weight: 600; color: var(--accent); }
#preview-path { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--text-dim); }
.preview-spacer { flex: 1; }
.preview-head a.live-btn { text-decoration: none; }
.preview-live { flex-basis: 100%; font-size: 12px; color: var(--text-dim); }
#preview-content {
  flex: 1;
  position: relative; /* offsetTop des blocs, pour reprendre le défilement en diffusant */
  overflow-y: auto;
  padding: 16px 36px 32px;
}

.tree-preview {
  display: none;
  float: right;
  padding: 0 2px;
  background: none;
  border: none;
  font-size: 12px;
  cursor: pointer;
  opacity: 0.75;
}
.tree-preview:hover { opacity: 1; }
body.live-on #tree .file > .label:hover .tree-preview { display: inline; }

/* ---------- code temporaire de session ---------- */

.live-code-box { display: flex; gap: 12px; align-items: center; margin: 6px 0 4px; }
.live-qr { width: 104px; height: 104px; background: #fff; border-radius: 6px; padding: 4px; flex-shrink: 0; }
.live-code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* Projection : lien, QR code et code en très grand, au-dessus de tout le viewer. */
.join-big {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}
.join-big-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.join-big-title { margin: 0; font-size: 28px; color: var(--text-dim); }
.join-big-qr { width: min(42vh, 80vw); height: min(42vh, 80vw); background: #fff; border-radius: 12px; padding: 12px; }
.join-big-url { margin: 8px 0 0; font-family: ui-monospace, Consolas, monospace; font-size: clamp(18px, 3vw, 32px); color: var(--accent); word-break: break-all; }
.join-big-label { margin: 12px 0 0; font-size: 18px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.join-big-code {
  margin: 0 0 16px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: clamp(56px, 12vw, 140px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* ---------- minuteur (partagé : page participant·es et viewer) ---------- */

.live-timer {
  position: fixed;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  max-width: calc(100vw - 32px);
  padding: 6px 14px 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}
.live-timer-time { font-family: ui-monospace, Consolas, monospace; font-size: 22px; font-weight: 700; }
.live-timer-msg { grid-column: 1 / -1; font-size: 13px; color: var(--text-dim); text-align: center; }
.live-timer-bar { grid-column: 1 / -1; height: 3px; margin-top: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.live-timer-bar > span { display: block; height: 100%; background: var(--accent); transition: width 0.25s linear; }
.live-timer.soon { border-color: #e8964a; }
.live-timer.soon .live-timer-time { color: #e8964a; }
.live-timer.paused { opacity: 0.75; }
.live-timer.done { border-color: var(--err); animation: live-timer-pulse 1s ease-in-out infinite alternate; }
.live-timer.done .live-timer-time { color: var(--err); font-size: 18px; }
@keyframes live-timer-pulse { to { box-shadow: 0 0 0 6px rgba(240, 104, 104, 0.25); } }


.live-timer.inline { position: static; transform: none; box-shadow: none; margin: 4px 0 6px; width: 100%; }
/* Sur l'écran d'animation (projeté en présentiel), en haut de la zone de contenu. */
.live-timer.trainer-float { top: 8px; }
.live-num {
  width: 64px;
  padding: 5px 6px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}
.live-text {
  width: 100%;
  padding: 7px 9px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.live-hands { list-style: none; margin: 4px 0; padding: 0; }
.live-hands li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; }
.live-hands li.first { background: rgba(255, 214, 10, 0.18); }
.hand-rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.live-hands li.first .hand-rank { background: #ffd60a; color: #222; border-color: #ffd60a; }
.hand-name { flex: 1; }
.hand-time { color: var(--text-dim); font-size: 12px; }
.live-hands .live-btn { padding: 3px 8px; font-size: 12px; }

.live-msgs { list-style: none; margin: 4px 0; padding: 0; max-height: 320px; overflow-y: auto; }
.live-msgs li { padding: 6px 8px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); }
.live-msgs li.unread { border-left: 3px solid var(--accent); }
.msg-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.msg-actions { margin-left: auto; display: flex; gap: 4px; }
.msg-actions button { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 4px; cursor: pointer; padding: 0 6px; }
.msg-actions button:hover { color: var(--text); border-color: var(--accent); }
.msg-text { margin-top: 4px; white-space: pre-wrap; word-break: break-word; }

.live-flag { font-size: 11px; padding: 0 6px; border-radius: 999px; border: 1px solid #e8964a; color: #e8964a; white-space: nowrap; }
.live-flag.muted { border-color: var(--border); color: var(--text-dim); }
.live-answers li.is-hidden .live-answer-text { opacity: 0.55; text-decoration: line-through; }
.live-answer-toggle {
  float: right;
  margin-left: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
}
.live-answer-toggle:hover { color: var(--text); border-color: var(--accent); }
#nav-live.attention { border-color: #ffd60a; font-weight: 600; }

/* Révélation par blocs : ce que le groupe ne voit pas encore, grisé chez l'animation. */
#content > .veiled-for-group { opacity: 0.45; box-shadow: -10px 0 0 -6px #e8964a; }
#content > [data-veil-label]::before {
  content: attr(data-veil-label);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #e8964a;
}
.reveal-list { list-style: none; margin: 4px 0; padding: 0; max-height: 260px; overflow-y: auto; }
.reveal-list li label { display: flex; gap: 6px; align-items: baseline; padding: 3px 4px; border-radius: 4px; cursor: pointer; }
.reveal-list li label:hover { background: var(--border); }
.reveal-list li:not(.shown) { color: var(--text-dim); }
