/*-----------------------------------------------------------------------------
 * Project : Mentor - Interactive Courses for Schools
 * File    : public/css/components.css
 * Stylesheet : fields, buttons, banners, panels, cards, chips, tabs, shutters, save indicator, inline confirmation, password meter, results
 * Author  : Johann Sievering
 * AI Support : Claude Code
 * Date    : 2026-10-25 The first slice: frontend shell
 * Rev     : forked from ergane v0.69.1 public/css/components.css and the button, field and banner rules of its base.css (Ergane's quota, field tools, combobox and notification post-its removed)
 * Rev     : 2026-10-26 0.7.0: the red notice of a class card
 * Rev     : 2026-10-27 0.14.0, the owner's notes on 0.13.0: the small icon buttons of the rows and their tooltips, the
 *           cards-or-table switch, the folding panels with a state beside their title, the tabs' panel
 * Rev     : 2026-11-01 0.23.1: the breadcrumb, shared by the administration and the teacher's pages (the consistency audit)
 * Rev     : 2026-11-04 0.33.0: « Exporter » and its panel, beside every table (D-75); the pastille of special needs (D-77)
 * Rev     : 2026-11-07 0.41.2: « btn--run », the light blue of every button that runs a program or its tests (D-90)
 * Rev     : 2026-11-13 0.50.0: the drop-down lists one can type in (SelectSearch.js; the owner's request, D-129 to D-132)
 * Rev     : 2026-11-14 0.55.0: the demonstration's band and pages (D-173); 2026-11-15 0.61.0: the steps of a guest's tour (D-210)
 * Version : 0.61.0
 *-----------------------------------------------------------------------------
 * Brief chapter 16. The class vocabulary is Ergane's (.btn, .panel, .chip,
 * .form-banner, .field, .tabs, .shutter, .empty, .save-indicator…), so the
 * components forked later port unchanged. Colour never carries a meaning
 * alone: every state has a text (WCAG 1.4.1). The three result blocks of
 * the workspace (Python, the tests, the AI) are announced here so that
 * they never look alike (brief chapter 6).
 *---------------------------------------------------------------------------*/

/* ── Fields: labels above, hints below, errors in text ── */
.field { margin-bottom: var(--space-4); }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: var(--space-1); font-size: var(--font-size-sm); }
.field .hint, .hint { font-size: var(--font-size-xs); color: var(--text-light); margin: var(--space-1) 0 0; }
/* The breadcrumb over a page's title (« Administration › Comptes », « Mes classes › 1IN »): the same on every page (0.23.1). */
.breadcrumb { margin: 0 0 var(--space-1); font-size: var(--font-size-sm); color: var(--text-light); }
.breadcrumb a { color: inherit; }
.field .field-error { font-size: var(--font-size-sm); color: var(--error); margin: var(--space-1) 0 0; font-weight: 600; }
.field .field-error:empty { display: none; }
.field[hidden] { display: none; }
.input-group { display: flex; gap: var(--space-2); align-items: stretch; }
.input-group input, .input-group select, .input-group .select-search { flex: 1; min-width: 0; }

/* ── A drop-down list one can type in (SelectSearch.js, 0.50.0) ──
   The field stands in the list's place, as wide and as high as the list was; the list itself lies under it, unseen:
   it keeps the value the pages read. The field's own text is only the letters typed: the current choice is its
   placeholder, drawn like a value (same colour, same weight), so nothing has to be erased before typing. */
.select-search { position: relative; display: block; width: 100%; min-width: 0; }
.select-search[hidden] { display: none; }
/* Whatever a page's rule gives the list (a width, a margin), it stays exactly under its field: hence « !important ». */
.select-search > select {
    position: absolute !important; inset: 0; width: 100% !important; height: 100% !important;
    min-width: 0 !important; min-height: 0 !important; max-width: none !important; margin: 0 !important;
    opacity: 0; pointer-events: none;
}
.select-search__input {
    display: block; width: 100%; min-height: var(--target);
    padding: var(--space-2) var(--space-5) var(--space-2) var(--space-3);
    font: inherit; font-size: max(16px, 1em); font-weight: 600; color: var(--text); text-overflow: ellipsis; cursor: pointer;
    background-color: var(--bg-card);
    /* The arrow of a list, drawn by two gradients (no image file): two half squares that meet in a point. */
    background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position: right calc(var(--space-3) + 0.35rem) center, right var(--space-3) center;
    background-size: 0.35rem 0.35rem; background-repeat: no-repeat;
    border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
}
.select-search__input::placeholder { color: var(--text); opacity: 1; }
.select-search__input:disabled::placeholder { color: var(--text-light); }
/* The one list of the page: it hangs from <body>, over everything, placed by the module under its field. */
.select-search__list {
    position: fixed; z-index: calc(var(--z-menu) + 5); width: max-content; margin: 0; padding: var(--space-1) 0; list-style: none;
    max-height: 20rem; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg-card); border: 1.5px solid var(--primary); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.select-search__list[hidden] { display: none; }
.select-search__option { padding: var(--space-2) var(--space-3); cursor: pointer; overflow-wrap: anywhere; }
.select-search__option:hover { background: var(--gray-50); }
/* The line Enter takes: a blue ground and a rule on its left, never the colour alone. */
.select-search__option.is-active { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.select-search__option.is-current { font-weight: 700; }
.select-search__option.is-disabled { color: var(--text-light); cursor: not-allowed; background: none; }
.select-search__option mark { padding: 0 1px; border-radius: 2px; background: #FFF1A8; color: inherit; }
.select-search__note { padding: var(--space-2) var(--space-3); max-width: 24rem; font-size: var(--font-size-sm); color: var(--text-light); }
@media (pointer: coarse) {
    .select-search__option { padding-top: 0.7rem; padding-bottom: 0.7rem; }
}

.checkbox, .field label.checkbox { display: flex; align-items: center; gap: var(--space-2); min-height: var(--target); margin: 0; font-size: var(--font-size-sm); font-weight: 500; cursor: pointer; }
.checkbox input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--primary); flex: 0 0 auto; }

/* A list of radio choices, each a 44 px row (the text size of the account page). */
.choices { display: grid; gap: var(--space-1); }
.choice {
    display: flex; align-items: center; gap: var(--space-3); min-height: var(--target); padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); cursor: pointer;
}
.choice:hover { background: var(--gray-50); }
.choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--primary); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
/* Each text size shows itself at its own size, so the choice is seen before it is made. */
.text-size-choice--0 span { font-size: 0.85rem; }
.text-size-choice--1 span { font-size: 0.93rem; }
.text-size-choice--2 span { font-size: 1rem; }
.text-size-choice--3 span { font-size: 1.12rem; }
.text-size-choice--4 span { font-size: 1.26rem; }

/* ── Buttons (Ergane's family: primary, accent, secondary, ghost, danger; and run, D-90) ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: var(--target); padding: var(--space-2) var(--space-4);
    font: inherit; font-weight: 600; font-size: var(--font-size-sm); line-height: 1.2;
    color: var(--text); background: var(--gray-50);
    border: 1px solid var(--border); border-radius: var(--radius);
    cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { color: var(--text); background: var(--border); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
/* A save button whose data is saved: light grey, its label says so. */
.btn.is-saved:disabled { opacity: 1; background: var(--gray-50); color: var(--text-light); border-color: var(--border); cursor: default; }
.btn--primary { color: #FFFFFF; background: var(--primary); border-color: var(--primary); }
.btn--primary:hover { color: #FFFFFF; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn--accent { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { color: #FFFFFF; background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--secondary { color: var(--text); background: var(--gray-50); border-color: var(--border); }
.btn--ghost { background: var(--bg-card); border-color: var(--border); color: var(--primary); }
.btn--ghost:hover { background: var(--gray-50); color: var(--primary-dark); }
.btn--danger { color: var(--error); background: var(--error-soft); border-color: transparent; }
.btn--danger:hover { color: var(--error); background: #F5D0D0; }
/* The buttons that run a program or its tests (« Exécuter », « Essayer ce programme », « Vérifier mon programme »,
   « Lancer les tests ici »): one light blue on every page, so that a pupil spots them at once (the owner's request D-90). */
.btn--run { color: var(--run-text); background: var(--run-bg); border-color: var(--run-border); }
.btn--run:hover { color: var(--run-text); background: var(--run-bg-hover); border-color: var(--run-border); }
/* A small button keeps the 44 px target height on touch screens; it is only narrower and quieter. */
.btn--sm { min-height: 2.25rem; padding: var(--space-1) var(--space-3); font-size: var(--font-size-xs); }
@media (pointer: coarse) { .btn--sm { min-height: var(--target); } }
.btn .spinner { display: none; }
.btn.is-busy .spinner { display: inline-block; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-4); }

/* A square outlined icon button the height of an input (the eye of a password field). */
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: var(--target); height: var(--target); padding: 0;
    color: var(--text-light); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-pressed="true"] { color: var(--primary); background: var(--primary-soft); border-color: #B9D4EF; }
.icon { width: 1rem; height: 1rem; flex: 0 0 auto; }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }
/* The small icon button of a row or a tool (IconButton.js): 32 px with a mouse, 44 px under a finger. */
.icon-btn--sm { width: 2rem; height: 2rem; }
.icon-btn--sm .icon { width: 1.1rem; height: 1.1rem; }
.icon-btn--danger:hover { color: var(--error); background: var(--error-soft); border-color: #E7B4B1; }
.icon-btn--primary { color: #FFFFFF; background: var(--primary); border-color: var(--primary); }
.icon-btn--primary:hover { color: #FFFFFF; background: var(--primary-dark); }
.icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
@media (pointer: coarse) {
    .icon-btn--sm { width: var(--target); height: var(--target); }
}
/* A tooltip on hover and on keyboard focus (data-tip; the aria-label says the same to a screen reader, and a title
   would never show on focus). */
[data-tip] { position: relative; }
[data-tip]::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: var(--z-menu);
    padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--primary-dark); color: #FFFFFF;
    font-size: var(--font-size-xs); font-weight: 600; line-height: 1.4; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 120ms ease;
}
[data-tip]:hover::after, [data-tip]:focus-visible::after { opacity: 1; transition-delay: 250ms; }
/* In the header the tooltip hangs below; at the end of a row it opens leftwards (never cut by the table's frame). */
.app-header [data-tip]::after { bottom: auto; top: calc(100% + 6px); }
.data-table__actions [data-tip]::after, .view-switch [data-tip]::after { left: auto; right: 0; transform: none; }
@media (prefers-reduced-motion: reduce) {
    [data-tip]::after { transition: none; }
}

/* Two small buttons beside a heading: the same records as cards or as a table (ViewSwitch.js). */
.view-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.view-switch .icon-btn { border-color: transparent; }
.view-switch .icon-btn[aria-pressed="true"] { color: #FFFFFF; background: var(--primary); border-color: var(--primary); }
/* A heading with its tools on the right, wrapped below when the line is short. */
.head-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); }
.head-tools > h2, .head-tools > h3 { margin: 0; }

/* ── Inline banners (never an alert box) and the page's one banner ── */
.form-banner {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--gray-50); margin-bottom: var(--space-4);
}
.form-banner:empty, .form-banner[hidden] { display: none; }
.form-banner--error   { background: var(--error-soft);   border-color: var(--error);   color: var(--error); }
.form-banner--success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.form-banner--warning { background: var(--warning-soft); border-color: var(--warning); color: var(--warning); }
.form-banner--info    { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.notices { max-width: var(--page-max); margin: 0 auto; padding: var(--space-4) var(--space-5) 0; }
.notices:empty { display: none; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin: 0; font-weight: 600; }
.notice .btn { flex: 0 0 auto; }

/* ── Panels and cards ── */
.panel {
    padding: var(--space-5); margin-bottom: var(--space-5);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel--quiet { background: var(--gray-50); box-shadow: none; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); }
.panel-head h2 { margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-4); }
.card-grid--plain { margin: 0; padding: 0; list-style: none; }
.card-grid .panel { margin: 0; }
.card { padding: var(--space-4); background: var(--bg-card); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: var(--radius); }
.card__title { margin: 0 0 var(--space-1); font-size: var(--font-size-lg); }
.card__meta { margin: 0; font-size: var(--font-size-sm); color: var(--text-light); }
/* A red notice on a class card: alerts wait there for the teacher (decision D-24). */
.card__alert { margin: var(--space-2) 0 0; font-weight: 700; }
.card__alert a { display: inline-flex; align-items: center; min-height: var(--target); color: var(--error); }

/* The « Reprendre » card of the home: the accent rule marks the way back to the work. */
.resume-card { border-left: 4px solid var(--accent); }
.resume-card__where { font-size: var(--font-size-lg); margin-bottom: var(--space-1); }
.resume-card__meta { margin: 0; font-size: var(--font-size-sm); color: var(--text-light); }

/* ── Chips and badges (short states, always with their text) ── */
.chip {
    display: inline-flex; align-items: center; gap: var(--space-1);
    padding: 0.125rem var(--space-2); border-radius: var(--radius-pill);
    font-size: var(--font-size-xs); font-weight: 600;
    color: var(--primary-dark); background: var(--primary-soft);
}
.chip + .chip { margin-left: var(--space-1); }
.chip--accent { color: var(--accent-dark); background: var(--accent-soft); }
.chip--slate  { color: var(--olive-900); background: var(--olive-50); }
.chip--ok     { color: var(--success); background: var(--success-soft); }
.chip--warn   { color: var(--warning); background: var(--warning-soft); }
.chip--error  { color: var(--error); background: var(--error-soft); }
.badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.75rem; padding: 0 var(--space-2); border-radius: var(--radius-pill);
    font-size: var(--font-size-xs); font-weight: 700; color: var(--text-light); background: var(--gray-50);
}

/* ── Tabs (the workspace's panels on a narrow screen, the teacher's views) ── */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0 0 var(--space-4); padding: 0; list-style: none; border-bottom: 2px solid var(--border); }
.tab {
    display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: var(--target); padding: var(--space-2) var(--space-4); margin-bottom: -2px;
    font: inherit; font-weight: 600; font-size: var(--font-size-md); color: var(--text-light);
    background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--primary); border-bottom-color: var(--primary); }
.tab[aria-selected="true"] .badge { color: #FFFFFF; background: var(--primary); }

/* ── Collapsible card: a button head with the triangle on the left ── */
.shutter { padding: 0; }
.shutter__title { margin: 0; }
.shutter__head {
    display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--target);
    padding: var(--space-4) var(--space-5); font: inherit; font-weight: 600; font-size: var(--font-size-lg);
    color: var(--text); background: none; border: 0; border-radius: var(--radius-lg); cursor: pointer; text-align: left;
}
.shutter__head::before { content: '▼'; font-size: 0.75em; color: var(--text-light); }
.shutter__head[aria-expanded="false"]::before { content: '▶'; }
/* The same head on a <details>: its own triangle replaces the browser's, ▶ while it is closed. */
summary.shutter__head { list-style: none; }
summary.shutter__head::-webkit-details-marker { display: none; }
details.shutter:not([open]) > summary.shutter__head::before { content: '▶'; }
.shutter__head:hover { background: var(--gray-50); }
.shutter__body { padding: 0 var(--space-5) var(--space-5); border-top: 1px solid var(--border); }
.shutter__body > :first-child { margin-top: var(--space-4); }
.shutter__body[hidden] { display: none; }
/* A short state beside the title, in sight while the panel is closed (Shutter.js). */
.shutter__label { flex: 1 1 auto; }
.shutter__meta { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); font-size: var(--font-size-sm); font-weight: 500; }
.shutter__meta:empty { display: none; }
.shutter__bar { display: flex; align-items: center; gap: var(--space-2); }
.shutter__bar .shutter__title { flex: 1 1 auto; min-width: 0; }
.shutter__tools { flex: 0 0 auto; padding-right: var(--space-4); }
.tabs__panel:focus { outline: none; }

/* ── Empty state: one sentence and, when there is one, the next action ── */
.empty { margin: 0; padding: var(--space-5); text-align: center; color: var(--text-light); border: 1px dashed var(--border); border-radius: var(--radius); }
.empty .btn { margin-top: var(--space-3); }

.spinner {
    width: 1em; height: 1em; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin 0.8s linear infinite; vertical-align: -0.15em;
}
@keyframes spin { to { transform: rotate(360deg); } }

.definition { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.definition dt { font-weight: 600; color: var(--text-light); }
.definition dd { margin: 0; }

.live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── The save indicator (« Enregistrement… », « Brouillon enregistré à 14:12 », « non enregistré ») ── */
.save-indicator { display: inline-block; min-height: 1.25em; font-size: var(--font-size-xs); color: var(--text-light); }
.save-indicator--saving { color: var(--primary-dark); }
.save-indicator--saved  { color: var(--success); }
.save-indicator--failed { color: var(--error); font-weight: 600; }

/* ── An in-page confirmation (never a browser dialog) ── */
.inline-confirm .form-banner { margin: var(--space-2) 0; }
.inline-confirm .form-banner p { margin: 0 0 var(--space-2); font-weight: 600; }
.inline-confirm .actions { margin-top: 0; }

/* ── The live password checklist ── */
.pw-meter { margin-top: var(--space-2); }
.pw-meter__bar { height: 0.4rem; border-radius: var(--radius-pill); background: var(--gray-50); overflow: hidden; }
.pw-meter__bar span { display: block; height: 100%; width: 0; background: var(--error); transition: width 0.2s; }
.pw-meter__bar[data-level="medium"] span { background: var(--warning); }
.pw-meter__bar[data-level="ok"] span { background: var(--success); }
.pw-meter__bar[data-level="strong"] span { background: var(--primary); }
.pw-meter__label { margin: var(--space-1) 0; font-size: var(--font-size-xs); color: var(--text-light); }
.pw-meter__rules { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin: 0; padding: 0; list-style: none; font-size: var(--font-size-xs); }
.pw-meter__rules li { display: inline-flex; align-items: center; gap: 0.2rem; color: var(--text-light); }
.pw-meter__rules li.is-ok { color: var(--success); }
.pw-meter__rules .icon { width: 0.9rem; height: 0.9rem; }

/* ── The three results of the workspace: Python's output, the tests, the AI's explanation ── */
.result { margin: 0 0 var(--space-3); border-radius: var(--radius); }
.result__label { margin: 0 0 var(--space-1); font-size: var(--font-size-xs); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
/* Python's output is shown verbatim (brief chapter 17): monospace, kept spaces, long lines wrapped, never translated. */
.result--python { padding: var(--space-3); color: var(--python-text); background: var(--python-bg); font-family: var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.result--python .result__label { color: #B9C7D6; font-family: var(--font-family); }
.result--python .result__error { color: var(--python-error); }
.result--tests { padding: var(--space-3); background: var(--tests-bg); border: 1px solid var(--tests-border); }
.result--tests .result__label { color: var(--success); }
.result--ai { padding: var(--space-3) var(--space-4); background: var(--ai-bg); border-left: 4px solid var(--ai-border); }
.result--ai .result__label { color: var(--ai-border); }

@media (max-width: 47.99rem) {
    .notices { padding: var(--space-3) var(--space-3) 0; }
    .shutter__head { padding: var(--space-3) var(--space-4); font-size: var(--font-size-md); }
    .shutter__body { padding: 0 var(--space-4) var(--space-4); }
    .tab { padding: var(--space-2) var(--space-3); font-size: var(--font-size-sm); }
    .definition { grid-template-columns: minmax(0, 1fr); gap: 0 var(--space-4); }
    .definition dd { margin-bottom: var(--space-2); }
}

/* « Exporter » (D-75): a button and its panel — the rows the file holds, then the three formats — on every page
   that shows a table, the learning pages included. */
.export-menu { position: relative; }
.export-menu__panel {
    position: absolute; right: 0; top: calc(100% + var(--space-1)); z-index: var(--z-menu);
    display: grid; gap: var(--space-2); min-width: 15rem; padding: var(--space-3);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.export-menu__panel[hidden] { display: none; }
.export-menu__label { margin: 0; font-size: var(--font-size-sm); font-weight: 600; }
.export-menu__choices { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.export-menu__choices .btn[aria-pressed="true"] { color: #FFFFFF; background: var(--primary); border-color: var(--primary); }
.export-row { display: flex; justify-content: flex-end; margin: var(--space-2) 0; }
@media (max-width: 47.99rem) {
    .export-menu__panel { right: auto; left: 0; max-width: 92vw; }
}

/* The pastille of special educational needs (D-77): a small dot after a pupil's name, its meaning in its label; its
   colour holds in a print (a character, not a background). */
.needs-mark { color: var(--accent-dark); font-weight: 700; cursor: help; }
@media print {
    .needs-mark { color: #000000; }
}

/* The demonstration (0.55.0): the band of every page while a session sees the application as a fictitious person,
   the fictitious people to choose from, the short lists that say what is true there */
.demo-banner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-2); }
.demo-banner__text { flex: 1 1 16rem; font-weight: 600; }
.demo-banner__link { font-weight: 600; }
.demo-facts { margin: var(--space-2) 0 var(--space-3); padding-left: var(--space-4); }
.demo-facts li { margin: var(--space-1) 0; }
.demo-school { margin-bottom: var(--space-3); }
/* « Découvrir Mentor en dix minutes » (0.61.0, D-210): the numbered steps of a guest's tour */
.tour-step { margin-bottom: var(--space-3); }
.tour-step h2 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.tour-step__n { min-width: 2em; text-align: center; font-weight: 700; }
.demo-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: var(--space-2); margin: var(--space-3) 0; padding: 0; list-style: none; }
.demo-person { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.demo-person.is-current { border-color: var(--primary); }
.demo-person__who { display: flex; align-items: center; gap: var(--space-2); }
.demo-person .hint { margin: 0; }
