/* École alternative La Traversée — système de design (repris des maquettes du canevas).
   Polices hébergées ici (CSP stricte : aucune ressource externe). */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Baloo 2'; src: url('/assets/fonts/baloo2-var.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/spacemono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/assets/fonts/spacemono-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --bg: #FAF8FC;
  --line: #EDE7F4;      /* bordures de cartes */
  --line-2: #E4DEEC;    /* bordures de champs, pastilles */
  --line-3: #D8CFE6;
  --purple: #2B1B3D;
  --deep: #140B1E;
  --teal: #4FD8D2;
  --teal-2: #2E9C97;
  --teal-ink: #1F7A6E;
  --on-teal: #0F2E2C;
  --ink: #1E1425;
  --muted: #8B92A3;
  --text2: #52596B;
  --lilac: #C9C2D6;
  --gray: #9CA6B2;
  --hover: #F7F3FB;
  --track: #F0EEF5;
  --danger: #B23238;
  --danger-2: #E5555B;
  --green: #3FC77E;
  --green-ink: #1F7A4C;
  --amber-ink: #8A5518;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Baloo 2', ui-rounded, system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/normal var(--font); color: var(--ink); background: var(--bg); }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); color: var(--purple); }
h1 { font-weight: 800; font-size: 26px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { font-family: var(--font); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.noscript { padding: 24px; }
.hidden { display: none !important; }
.muted { color: var(--text2); } .small { font-size: 13px; } .mono { font-family: var(--mono); }
.lbl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sub { font-size: 14px; color: var(--text2); }

/* ── Boutons ─────────────────────────────────────────── */
.btn { font-weight: 700; font-size: 14px; border: 1.5px solid var(--line-2); background: transparent; color: var(--text2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; }
.btn:hover { border-color: var(--purple); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary, .btn.teal { border: none; background: linear-gradient(135deg, #4FD8D2, #2E9C97); color: var(--on-teal); }
.btn.primary:hover, .btn.teal:hover { filter: brightness(1.04); }
.btn.dark { border: none; background: var(--purple); color: #fff; }
.btn.danger { color: var(--danger-2); border: 2px solid var(--danger-2); padding: 12px 22px; }
.btn.danger:hover { background: rgba(229,85,91,.08); border-color: var(--danger-2); }
.btn.solid-danger { border: none; background: var(--danger); color: #fff; }
.btn.outline { background: #fff; color: var(--purple); border-color: var(--line-3); }
.btn.sm { padding: 9px 16px; font-size: 13px; }
.btn.lg { padding: 16px; font-size: 15px; }
.btn.link, .link-btn { font-size: 13px; font-weight: 600; color: var(--teal-2); background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.link-btn:hover, .btn.link:hover { text-decoration: underline; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0; color: var(--muted); }
.icon-btn:hover { background: var(--track); color: var(--purple); }
.icon-btn.red { color: var(--danger); } .icon-btn.red:hover { background: rgba(229,85,91,.12); }
.icon-nav { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; color: var(--purple); }
.icon-nav:hover { border-color: var(--purple); }

/* ── Champs ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.input { font-size: 14px; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; width: 100%; outline: none; }
.input.big { font-size: 15px; padding: 14px 16px; }
.input:focus { border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(79,216,210,.25); }
.input:disabled { background: var(--bg); color: var(--text2); }
.hint { font-size: 12px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--teal-2); flex: none; }
.err { font-size: 13px; font-weight: 600; color: var(--danger); }
.okmsg { font-size: 13px; font-weight: 600; color: var(--green-ink); }
.note-amber { font-size: 13px; color: var(--amber-ink); background: rgba(245,166,75,.14); border-radius: 12px; padding: 12px 14px; }
.note-gray { font-size: 13px; color: var(--text2); background: var(--track); border-radius: 12px; padding: 14px 16px; }

/* ── Pastilles, badges, segments ───────────────────── */
.chip { font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); cursor: pointer; background: #fff; color: var(--text2); }
.chip:hover { border-color: #B6ADC6; }
.chip.active, .chip.active:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.chip.sm { padding: 7px 12px; font-size: 12px; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip-add { font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; border: 1.5px dashed var(--teal); cursor: pointer; background: transparent; color: var(--teal-ink); }
.chip-add:hover { background: rgba(79,216,210,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.warn { background: rgba(245,166,75,.18); color: var(--amber-ink); }
.badge.ok { background: rgba(63,199,126,.15); color: var(--green-ink); }
.badge.teal { background: rgba(79,216,210,.15); color: var(--teal-ink); }
.badge.off { background: var(--track); color: var(--text2); }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { flex: 1; border: none; background: #fff; color: var(--text2); font-size: 14px; font-weight: 600; padding: 11px 16px; cursor: pointer; }
.seg button.active { background: var(--purple); color: #fff; }
.track { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.track.lg { height: 8px; }
.track > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2E9C97, #4FD8D2); }
.track > i.gray { background: var(--gray); }
.track > i.purple { background: var(--purple); }
.track > i.done { background: var(--green); }
.avatar { flex: none; border-radius: 50%; background: linear-gradient(135deg, #4FD8D2, #2B1B3D); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; color: #fff; }

/* ── Cartes ─────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.kpi { background: var(--bg); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--purple); line-height: 1.1; }
.sub-card { background: var(--bg); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; cursor: pointer; border: 1.5px solid transparent; background: transparent; width: 100%; text-align: left; color: inherit; }
.row:hover { background: var(--hover); }
.row.selected, .row.selected:hover { background: rgba(79,216,210,.12); border-color: rgba(79,216,210,.55); }
.row .t { font-weight: 700; font-size: 14px; color: var(--purple); }
.row .s { font-size: 12px; color: var(--text2); }
.row .grow { flex: 1; min-width: 0; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; border: none; background: transparent; width: 100%; text-align: left; cursor: pointer; color: inherit; }
.rank-row:hover { background: var(--hover); }
.empty { text-align: center; padding: 32px 12px; font-size: 14px; color: var(--muted); }

/* ── Structure ──────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 304px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--purple); padding: 32px 20px; display: flex; flex-direction: column; gap: 36px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand img { height: 40px; width: auto; display: block; flex: none; }
.brand b { font-family: var(--head); font-weight: 700; font-size: 17px; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; width: 100%; border: none; background: transparent; color: var(--lilac); cursor: pointer; text-align: left; }
.nav-item svg { color: var(--gray); }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active, .nav-item.active:hover { background: rgba(79,216,210,.14); color: var(--teal); }
.nav-item.active svg { color: var(--teal); }
.side .grow { flex: 1; }
.userbox { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.userbox .nm { font-size: 13px; font-weight: 700; color: #fff; }
.userbox .rl { font-size: 11px; color: var(--gray); }
.userbox.col { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; }
.userbox.col .rl { font-size: 12px; }
.userbox.col .nm { font-weight: 600; }
.logout { background: none; border: none; color: var(--gray); font-size: 12px; font-weight: 600; cursor: pointer; padding: 6px 0 0; text-decoration: underline; text-underline-offset: 2px; }
.logout:hover { color: #fff; }
.main { padding: 32px 48px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.main.admin { padding: 28px 40px 32px; gap: 20px; }
.titlerow { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 52px; }
.titlerow h1 { font-size: 26px; }
.weekbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weekbar .wl { font-size: 14px; font-weight: 600; color: var(--purple); min-width: 236px; text-align: center; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--text2); }
.legend > div { display: flex; align-items: center; gap: 8px; }
.tex { background-color: #F5F2FA; background-image: repeating-linear-gradient(135deg, #EDE7F4 0, #EDE7F4 3px, transparent 3px, transparent 9px); }
.legend .tex-sm { width: 14px; height: 14px; border-radius: 4px; background-color: #F5F2FA; background-image: repeating-linear-gradient(135deg, #EDE7F4 0, #EDE7F4 2px, transparent 2px, transparent 6px); }

/* barre du haut admin */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.searchbox { position: relative; width: min(480px, 100%); }
.searchbox .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--muted); }
.searchbox .input { padding-left: 40px; padding-right: 44px; }
.searchbox .clr { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10; max-height: 460px; overflow-y: auto; padding: 10px; box-shadow: 0 16px 32px rgba(43,27,61,.16); display: flex; flex-direction: column; gap: 4px; }
.results .lbl { padding: 8px 10px 2px; }
.split { display: flex; gap: 24px; flex: 1; min-height: 0; }
.split .list { flex: 1.05; min-width: 0; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.split .list .rows { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; max-height: calc(100vh - 300px); }
.split .detail { flex: 1; min-width: 0; padding: 28px; overflow-y: auto; max-height: calc(100vh - 210px); }
.dossier { display: flex; flex-direction: column; gap: 24px; }
.dossier .head { display: flex; align-items: center; gap: 16px; }
.dossier .head h2 { font-weight: 800; font-size: 24px; line-height: 1.15; }
.hoursbox { background: var(--bg); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.hoursbox .big { font-family: var(--head); font-weight: 800; font-size: 32px; color: var(--purple); line-height: 1; }
.hoursbox .of { font-size: 14px; color: var(--muted); margin-left: 8px; }

/* ── Connexion / activation (écran divisé) ─────────── */
.auth { min-height: 100vh; display: flex; background: var(--bg); }
.auth .brandpanel { width: 672px; flex: none; background: linear-gradient(160deg, #2B1B3D, #140B1E); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth .brandpanel img { height: 250px; width: auto; align-self: flex-start; display: block; }
.auth .brandpanel h2 { font-family: var(--head); font-weight: 800; font-size: 44px; line-height: 1.1; color: #fff; }
.auth .brandpanel p { font-size: 16px; line-height: 1.55; color: var(--lilac); max-width: 420px; margin: 16px 0 0; }
.auth .brandpanel small { font-size: 13px; color: var(--gray); }
.auth .formpanel { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth .formcol { width: min(440px, 100%); display: flex; flex-direction: column; gap: 28px; }
.auth .formcol form, .auth .stack { display: flex; flex-direction: column; gap: 24px; }
.auth h1 { font-weight: 800; font-size: 30px; line-height: 1.15; }
.auth .lead { font-size: 15px; color: var(--text2); line-height: 1.5; margin-top: 6px; }
.auth .ftr { border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; color: var(--muted); }
.mailcircle { width: 64px; height: 64px; border-radius: 50%; background: rgba(79,216,210,.18); display: flex; align-items: center; justify-content: center; color: var(--teal-2); }

/* ── Grille d'horaire (enseignant + parent) ────────── */
.sched-wrap { overflow-x: auto; }
.sched { display: flex; flex-direction: column; gap: 8px; }
.sched .g { display: grid; grid-template-columns: 64px repeat(5, minmax(0, 1fr)); gap: 8px; }
.sched .g.hd { margin-bottom: 8px; }
.sched .g.hd > div { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sched .g.r { height: 64px; }
.sched.parent .g.r { height: 58px; }
.sched .tm { display: flex; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.slot { position: relative; border-radius: 10px; height: 100%; display: flex; align-items: center; justify-content: center; }
.slot-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.slot-content .fr { font-family: var(--mono); font-size: 8.5px; font-weight: 700; }
.cell-adjust { position: absolute; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; border: none; background: rgba(43,27,61,.06); color: var(--muted); font-size: 14px; font-weight: 800; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; opacity: 0; transition: opacity .12s ease; }
.slot:hover .cell-adjust, .slot:focus-within .cell-adjust { opacity: 1; }
.cell-adjust:hover { background: rgba(43,27,61,.16); color: var(--purple); }
.cell-adjust:disabled { opacity: 0 !important; cursor: default; }
.cell-adjust.l { left: 3px; } .cell-adjust.r { right: 3px; }
@media (hover: none) { .cell-adjust { opacity: 1; } }
.slot.pk { font-size: 9.5px; font-weight: 700; flex-direction: column; gap: 2px; text-align: center; padding: 4px; line-height: 1.1; width: 100%; border: none; font-family: var(--font); }
.slot.slot-free { border: 1.5px dashed var(--teal); color: var(--teal-2); cursor: pointer; background: transparent; }
.slot.slot-free:hover { background: rgba(79,216,210,.1); }
.slot.slot-selected { background: var(--purple); color: #fff; cursor: pointer; font-size: 12px; }
.slot.slot-taken { background: var(--track); color: var(--muted); }
.slot.slot-mine { background: rgba(79,216,210,.18); border: 1.5px solid var(--teal); color: var(--teal-ink); cursor: pointer; }
.slot.slot-mine:hover { background: rgba(79,216,210,.28); }
.alertbar { background: rgba(229,85,91,.08); border: 1px solid rgba(229,85,91,.35); border-radius: 16px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.alertbar .t { font-weight: 700; font-size: 14px; color: var(--danger); }
.alertbar .s { font-size: 12px; color: var(--amber-ink); }

/* ── Fenêtres modales ──────────────────────────────── */
dialog.modal { border: 0; padding: 0; background: transparent; width: min(624px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible; color: var(--ink); }
dialog.modal::backdrop { background: rgba(20,11,30,.45); }
.modal-card { background: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 48px rgba(20,11,30,.3); max-height: calc(100vh - 24px); overflow-y: auto; }
.modal-card > .mh { display: flex; align-items: center; justify-content: space-between; }
.modal-card h2 { font-weight: 800; font-size: 20px; }
.modal-card .intro { font-size: 13px; color: var(--text2); margin-top: -10px; }
.modal-card .sect { display: flex; flex-direction: column; gap: 8px; }
.modal-card .foot { display: flex; gap: 12px; margin-top: 8px; }
.modal-card .foot .btn { flex: 1; padding: 14px; }
.modal-card .durrow { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border-radius: 12px; padding: 12px 16px; }
.modal-card .durrow b { font-family: var(--mono); font-size: 15px; color: var(--purple); }
.pick { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 6px; }
.pick .check { padding: 8px 10px; border-radius: 10px; align-items: center; }
.pick .check:hover { background: var(--hover); }
.block { border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.block > .lbl { display: flex; justify-content: space-between; align-items: center; }

#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; align-items: center; width: calc(100% - 24px); pointer-events: none; }
.toast { background: var(--purple); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 520px; font-size: 14px; font-weight: 600; }
.toast.err { background: var(--danger); }

/* ── Tableau de bord parent ────────────────────────── */
.hero { flex: 1.3; background: linear-gradient(135deg, #2B1B3D, #140B1E); border-radius: 24px; padding: 32px; display: flex; align-items: center; gap: 32px; }
.hero .big { font-family: var(--head); font-weight: 800; font-size: 30px; color: #fff; }
.hero .big small { font-size: 16px; font-weight: 600; color: var(--gray); }
.hero .pill { display: inline-flex; align-items: center; margin-top: 4px; padding: 8px 16px; border-radius: 999px; background: rgba(79,216,210,.15); color: var(--teal); font-size: 13px; font-weight: 700; width: fit-content; }
.hero .mini { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; min-width: 240px; }
.hero .mini .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--lilac); margin-bottom: 4px; }
.hero .mini .top b { font-family: var(--mono); font-weight: 700; color: #fff; }
.hero .track { background: rgba(255,255,255,.12); height: 8px; }
.stat { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--head); font-weight: 800; font-size: 26px; color: var(--purple); }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.vrow { display: flex; align-items: center; padding: 16px 20px; border-radius: 14px; font-size: 14px; gap: 8px; }
.vrow.hd { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vrow.alt { background: var(--bg); }
.vrow > div { min-width: 0; }
.vrow .c1 { flex: 1.2; font-family: var(--mono); } .vrow.hd .c1 { font-family: var(--font); }
.vrow .c2 { flex: 1.4; } .vrow .c3 { flex: 1; } .vrow .c4 { flex: 1.4; }

@media (max-width: 1000px) {
  .auth .brandpanel { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 12px; }
  .nav { flex-direction: row; flex-wrap: wrap; } .nav-item { width: auto; }
  .side .grow { display: none; }
  .userbox { margin-left: auto; }
  .main, .main.admin { padding: 20px 16px; }
  .sched { min-width: 720px; }
  .split { flex-direction: column; }
  .split .list .rows, .split .detail { max-height: none; }
  .grid2 { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .topbar { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: no-preference) { .track > i { transition: width .4s ease; } }
.twocol { display: flex; gap: 24px; }
@media (max-width: 1000px) { .twocol { flex-direction: column; } }
.userbox { position: relative; }
.userbox .logout-ic { margin-left: auto; color: var(--gray); }
.userbox .logout-ic:hover { color: #fff; background: rgba(255,255,255,.1); }
.userbox.col .logout-ic { position: absolute; top: 10px; right: 10px; margin: 0; }

/* Espace enseignant : pastilles de la maquette Teacher (9px 16px) */
.chip.t { padding: 9px 16px; }
.chip.t.sm { padding: 7px 12px; font-size: 12px; }

.badge.lg { font-size: 12px; padding: 4px 12px; gap: 6px; }
