:root {
  --soleil: #FFD23F;
  --corail: #FF6B6B;
  --turquoise: #4ECDC4;
  --violet: #9B5DE5;
  --creme: #FFF8E7;
  --encre: #2B2B2B;
  --blanc: #FFFFFF;
  --muted: #6b6257;
  --line: #eadfcb;
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--blanc); padding: 8px; }

.topbar {
  padding: 7px 20px;
  text-align: center;
}
.topbar h1 { margin: 0; font-size: 18px; line-height: 1.2; letter-spacing: .2px; }

.shell {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  background: var(--blanc);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: 0 6px 18px rgba(43, 43, 43, .08);
}
.card h2 { margin: 0 0 10px; font-size: 19px; }
.card__body { display: flex; flex-direction: column; gap: 10px; }

form { display: flex; flex-direction: column; gap: 10px; }

.hello { margin: 0; font-size: 17px; }
.muted { color: var(--muted); margin: 0; }
.error { color: var(--corail); margin: 0; }

.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--creme);
  border-radius: 16px;
  min-height: 48px;
}
.avatar {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--soleil);
  border-radius: 50%;
  font-size: 18px;
}
.member__name { flex: 1; font-weight: 600; }
.role {
  font-size: 12px;
  color: var(--muted);
  background: var(--blanc);
  border-radius: 999px;
  padding: 2px 9px;
}

label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
input {
  width: 100%;
  font: inherit;
  color: var(--encre);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blanc);
  min-height: 46px;
}
input:focus { outline: 3px solid var(--turquoise); outline-offset: 1px; }

.btn {
  font: inherit;
  font-weight: 700;
  color: var(--encre);
  background: var(--soleil);
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
}
.btn--ghost { background: var(--blanc); border: 1px solid var(--line); }
.actions { display: flex; justify-content: center; }

.foot {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ── écran « Qui es-tu ? », page principale, écran Membres ─────────────────── */

.hero { padding: 10px 12px; }
.hero__row { display: flex; align-items: center; gap: 6px; }
.hero__row .hello {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
}
.avatar--big { width: 38px; height: 38px; font-size: 20px; }
.btn--small { min-height: 44px; padding: 8px 14px; }

.field-label { font-size: 14px; color: var(--muted); }

.actions--start { justify-content: flex-start; }
.actions--end { justify-content: flex-end; }
.actions--wrap { flex-wrap: wrap; gap: 8px; }

.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.member-pick {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 96px;
  padding: 10px;
  background: var(--creme);
  border: 2px solid transparent;
  border-radius: 20px;
  font: inherit; color: inherit; cursor: pointer;
}
.member-pick.is-on { border-color: var(--turquoise); background: var(--blanc); }
.avatar--pick { width: 56px; height: 56px; font-size: 30px; }
.member-pick__name { font-weight: 600; }
.member-pick .check { position: absolute; top: 6px; right: 8px; }

.avatars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.avatar-pick {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-height: 64px;
  padding: 6px 2px;
  background: var(--creme);
  border: 2px solid transparent;
  border-radius: 16px;
  font: inherit; color: inherit; cursor: pointer;
}
.avatar-pick.is-on { border-color: var(--turquoise); background: var(--blanc); }
/* Le cercle coloré : la couleur est posée par `style.background` (source serveur unique). */
.avatar-dot {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--creme);
  font-size: 22px; line-height: 1;
}
.avatar-label { font-size: 11px; color: var(--muted); }
.check { font-size: 12px; }

.link-row { display: flex; gap: 8px; align-items: stretch; }
.link-row input { flex: 1; min-width: 0; font-size: 13px; }
.link-row .btn { flex: none; }

.pin { max-width: 160px; text-align: center; letter-spacing: .4em; font-size: 22px; }
.pin-row { display: flex; flex-direction: column; gap: 10px; }

.tag { margin-left: 6px; font-size: 12px; color: var(--muted); background: var(--blanc); border-radius: 999px; padding: 2px 8px; }

.member .btn { min-height: 44px; padding: 8px 12px; }
/* Invitation en attente : l'e-mail prend sa ligne, la date et « Révoquer » la suivante. */
.member--invite { flex-wrap: wrap; }
.member--invite .member__name { flex-basis: 100%; overflow-wrap: anywhere; }

/* ── tâches, feuille, confettis (lot 2) ─────────────────────────────────── */
.btn--wide { width: 100%; }

.tasks { display: flex; flex-direction: column; gap: 8px; }
.task-card {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--creme); border: 0; border-radius: 16px;
  padding: 12px 14px; min-height: 56px;
  font: inherit; color: inherit; cursor: pointer;
}
.task-card:disabled { opacity: .5; cursor: default; }
.task-card__emoji { font-size: 26px; line-height: 1; }
.task-card__title { flex: 1; font-weight: 600; }
.task-card__points {
  background: var(--soleil); border-radius: 999px; padding: 4px 12px; font-weight: 700;
}

.member-select {
  width: 100%; font: inherit; color: var(--encre);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--blanc); min-height: 46px;
}

.sheet {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(43, 43, 43, .35);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet__panel {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: var(--blanc);
  border-radius: 24px 24px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 -6px 18px rgba(43, 43, 43, .12);
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet__head h2 { margin: 0; font-size: 19px; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 30;
  background: var(--encre); color: var(--blanc);
  border-radius: 999px; padding: 10px 18px;
}
.points-pop {
  position: fixed; top: 42%; right: 24px; z-index: 30;
  background: var(--turquoise); color: var(--encre); font-weight: 700;
  border-radius: 999px; padding: 8px 16px;
  animation: pop 1.5s ease-out forwards;
}
@keyframes pop {
  0% { opacity: 0; transform: translateY(8px) scale(.9); }
  20% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px); }
}
.confetti { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.confetti__piece {
  position: absolute; top: -16px; width: 10px; height: 14px; border-radius: 3px;
  animation: fall 1.5s linear forwards;
}
.confetti__piece:nth-child(5n+1) { background: var(--soleil); }
.confetti__piece:nth-child(5n+2) { background: var(--corail); }
.confetti__piece:nth-child(5n+3) { background: var(--turquoise); }
.confetti__piece:nth-child(5n+4) { background: var(--violet); }
.confetti__piece:nth-child(5n+5) { background: var(--encre); }
@keyframes fall {
  to { transform: translateY(100vh) rotate(540deg); opacity: .9; }
}

/* ── jauge, classement, historique (lot 3) ──────────────────────────────── */
.gauge { height: 14px; background: var(--creme); border-radius: 999px; overflow: hidden; }
/* Carte objectif d'une seule rangée (demande #12) : texte + jauge à gauche, action principale
   à droite ; padding 10 × 12 px, 68 px de haut (48 px de bouton + padding). */
.card--goal {
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.goal__row { display: flex; align-items: center; gap: 10px; }
.goal__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.goal__line {
  margin: 0; font-size: 13px; line-height: 1.25;
  display: flex; align-items: baseline; min-width: 0; white-space: nowrap;
}
/* État vide : la phrase se lit en entier, le bouton reste à sa droite. */
.goal__line.muted { display: block; white-space: normal; }
.goal__line strong { flex: 0 0 auto; font-weight: 700; }
/* Seul le libellé de la récompense cède la place : le compteur n'est jamais tronqué. */
.goal__reward { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gauge--thin { height: 7px; }
.unlocked--compact { padding: 6px 10px; font-size: 13px; }
.btn--add {
  flex: 0 0 auto; width: auto; min-width: 150px; height: 48px;
  padding: 0 14px; font-size: 15px; white-space: nowrap;
}
.gauge__fill {
  height: 100%; width: 0; background: var(--turquoise); border-radius: 999px;
  transition: width .3s ease;
}
.unlocked {
  margin: 0; font-weight: 700; text-align: center;
  background: var(--soleil); border-radius: 16px; padding: 10px 12px;
}

.podium {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.podium__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; background: var(--creme); border-radius: 18px; min-width: 0;
}
.podium__medal { font-size: 18px; line-height: 1; }
.podium__item .member__name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px;
}

.ranks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; min-height: 48px; }
.rank:nth-child(odd) { background: var(--creme); }
.rank__num { width: 22px; text-align: center; font-weight: 700; color: var(--muted); }
.rank__points { font-weight: 700; background: var(--soleil); border-radius: 999px; padding: 2px 10px; }

/* Semaines clôturées (demande #15) : une ligne = une cible de 44 px, jamais tronquée. */
.week {
  display: flex; flex-direction: column; gap: 4px; align-items: stretch;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--creme); border: 0; border-radius: 16px;
  padding: 10px 12px; min-height: 44px;
}
.week__range { font-weight: 600; }
.week__detail { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.week__reward { overflow-wrap: anywhere; }
.gauge--week { height: 7px; }
/* Le mien est surligné dans le détail d'une semaine, pas seulement coloré. */
.rank--me { background: var(--soleil); font-weight: 700; box-shadow: inset 0 0 0 2px var(--encre); }

.filters { display: flex; flex-direction: column; gap: 8px; }
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  flex: 1; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--blanc);
  font: inherit; font-size: 14px; color: var(--encre); cursor: pointer;
}
.seg.is-on { border-color: var(--turquoise); background: var(--creme); font-weight: 700; }
/* Trois filtres sur 390 px : libellés entiers sur une ligne, cible toujours ≥ 44 px. */
.segmented--tight .seg { padding: 8px 6px; font-size: 13px; white-space: nowrap; }

.day { margin: 6px 0 2px; font-size: 15px; font-weight: 600; color: var(--muted); }
.logs { list-style: none; margin: 0; padding: 0; }
.log {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.log:last-child { border-bottom: 0; }
.log__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.log__task { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.log .btn { min-height: 44px; padding: 6px 12px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Écran admin (lot 4) : lignes de catalogue qui se replient à 390 px. */
.member--task { flex-wrap: wrap; }
.member--task .task__title { flex-basis: 100%; font-weight: 600; }
.member--task .btn { min-height: 44px; padding: 6px 10px; }
.member--task.is-off { opacity: 0.75; }
.points-field, .emoji-field { width: 84px; }
.segmented--admin { display: grid; grid-template-columns: 1fr 1fr; }

/* Cloche de notifications et cérémonie (lot 5). */
.bell { position: relative; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; min-height: 20px;
  border-radius: 999px; background: var(--corail); color: var(--blanc);
  font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; padding: 0 5px;
}
.tag--new { color: var(--encre); background: var(--soleil); }

/* Écran des notifications (demande #14) : une ligne = une cible tactile de 44 px minimum. */
.notices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notice {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  background: var(--creme); border: 0; border-radius: 16px;
  padding: 10px 12px; min-height: 44px;
}
.notice--new { box-shadow: inset 3px 0 0 var(--soleil); }
.notice__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.notice__title { font-weight: 600; overflow-wrap: anywhere; }
.notice__text { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.notice__time { flex: none; font-size: 12px; color: var(--muted); }
.ceremony__winner { font-size: 20px; font-weight: 700; margin: 0 0 8px; }

/* Bandeau « Nouvelle version prête » — discret, au-dessus de la zone sûre iOS. */
.update-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--encre); color: var(--blanc);
  border-radius: 18px; padding: 8px 8px 8px 16px;
  box-shadow: 0 6px 18px rgba(43, 43, 43, .22);
}
.update-bar__text { font-size: 15px; font-weight: 600; }
.update-bar__btn {
  background: var(--soleil); color: var(--encre); border: 0; font-weight: 700;
  border-radius: 12px; padding: 0 16px; min-height: 44px;
}

/* Interrupteur push : l'état et la raison d'un échec sont écrits sous la ligne. */
.push-block { padding: 4px 0 2px; }
.push-status { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.push-status.is-bad { color: #B4232A; }

/* Interrupteur des notifications : vraie bascule, cible ≥ 44 px. */
.push-block .field-label {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  text-align: left; gap: 12px; min-height: 44px; margin: 0; font-size: 17px; color: var(--encre);
}
.push-block input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: 0 0 auto;
  width: 52px; height: 32px; min-height: 32px; padding: 0; margin: 0; border: 0;
  border-radius: 99px; background: #d9cfc0; position: relative; cursor: pointer;
  transition: background .15s ease;
}
.push-block input[type="checkbox"]::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blanc);
  box-shadow: 0 1px 3px rgba(43, 43, 43, .28); transition: transform .15s ease;
}
.push-block input[type="checkbox"]:checked { background: var(--turquoise); }
.push-block input[type="checkbox"]:checked::after { transform: translateX(20px); }
.push-block input[type="checkbox"]:disabled { opacity: .45; }

/* Jeux (demande #13) : horloge lisible, terrain 10×20 net, boutons ≥ 52 px. */
.game-clock {
  margin: 0; text-align: center; font-size: 34px; font-weight: 800;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.game-note { min-height: 22px; margin: 0; text-align: center; font-weight: 600; color: var(--muted); }
.game-note--strong { font-size: 19px; color: var(--encre); }
.tetris-wrap { display: flex; justify-content: center; }
.tetris {
  display: block; border-radius: 12px; background: #FFFDF6;
  box-shadow: 0 0 0 2px var(--line);
}
.game-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.game-btn { padding: 0; min-height: 52px; font-size: 20px; line-height: 1; }
/* Score et temps restant sur la même ligne (demandes #18, #19) : le score monte à droite. */
.game-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.game-head .game-clock { font-size: 26px; text-align: left; }
.game-score { margin: 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.game-score--result { text-align: center; font-size: 28px; }
.game-record { margin: 0; font-weight: 600; }
.game-board { display: block; }
/* Le glissement du doigt pilote le jeu : le navigateur ne fait pas défiler la page dessus. */
.game-wrap { touch-action: none; }
.game-canvas {
  display: block; margin: 0 auto; border-radius: 12px; background: #FFFDF6;
  box-shadow: 0 0 0 2px var(--line);
}
.grid2048-wrap { display: flex; justify-content: center; }
.grid2048 {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  width: 100%; max-width: 320px; aspect-ratio: 1; padding: 6px;
  background: rgba(43, 43, 43, .06); border-radius: 16px;
}
.tile {
  display: flex; align-items: center; justify-content: center; border-radius: 10px;
  font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(16px, 6vw, 24px);
}
.tile-empty { background: rgba(43, 43, 43, .05); }
/* Appui long sur un bouton de jeu : ni glyphe sélectionné, ni menu contextuel iOS (demande #19). */
.game-btn, .game-canvas, .tetris, .grid2048 {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* « ▶ Jouer » désactivé (crédit épuisé) : l'état se lit sans lire la couleur seule. */
.btn:disabled { opacity: .45; cursor: default; }

/* Pas de zoom au double-tap sur iOS : le premier tap agit tout de suite, le pincer reste
 * possible pour l'accessibilité. */
button, a, input, label, select, textarea, [role="button"] { touch-action: manipulation; }

/* Coquille tactile : le double-tap ne zoome pas, l'appui long ne sélectionne pas un glyphe. */
body { touch-action: manipulation; }
button, [role="button"], .tetris, .game-btn, .avatar-pick {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* Avatar déjà porté par un autre membre : visible mais non choisissable. */
.avatar-pick.is-taken { opacity: .42; }

/* « Qui es-tu ? » : les admins sont dans la même grille, un petit cadenas les distingue. */
.member-pick { position: relative; }
.member-pick__key {
  position: absolute; top: 4px; right: 6px; font-size: 13px; line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .8));
}

/* ── Cartes de semaine enrichies (demande #23) ─────────────────────────────── */
.week__members { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.week__member { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--encre); }
.week__medal { flex: none; width: 22px; text-align: center; font-weight: 700; }
.week__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week__points { flex: none; font-weight: 700; }
.avatar--week { width: 26px; height: 26px; font-size: 15px; }
.rank__medal { font-size: 17px; }

/* ── Bouton fermer flottant (demande #24) ──────────────────────────────────── */
/* 52 px, 16 px des bords, safe-area iOS comprise, au-dessus de tout le contenu. */
.fab-close {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--encre); color: var(--blanc);
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 50;
  box-shadow: 0 6px 16px rgba(43, 43, 43, .26);
}
body.has-fab #view { padding-bottom: 96px; }
/* Le bandeau « Nouvelle version prête » ne passe pas sous le ✕. */
body.has-fab .update-bar { right: 84px; }

/* ── Notifications façon iOS (demande #22) ─────────────────────────────────── */
.notices { gap: 6px; overscroll-behavior-x: none; }
.notice-row { position: relative; border-radius: 16px; overflow: hidden; }
.notice-actions { position: absolute; inset: 0 0 0 auto; display: flex; }
.notice-act {
  flex: 0 0 88px; padding: 0 6px; border: 0; border-radius: 0;
  background: var(--turquoise); color: var(--encre);
  font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.notice-act--danger { background: var(--corail); color: var(--blanc); }
.notice-act:focus-visible { outline: 2px solid var(--encre); outline-offset: -4px; }
.notice {
  position: relative; display: flex; align-items: flex-start; gap: 8px;
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--creme); border: 0; border-radius: 16px;
  padding: 10px 12px; min-height: 56px;
  transform: translateX(0);
  transition: transform .22s cubic-bezier(.2, .9, .25, 1.15);
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.notice-row.is-open .notice { transform: translateX(calc(-1 * var(--reveal, 176px))); }
.notice.is-dragging { transition: none; }
.notice__dot {
  flex: none; width: 10px; height: 10px; margin-top: 8px;
  border-radius: 50%; background: #0A84FF;
}
.notice__dot--none { background: transparent; }
.notice__title { font-weight: 500; }
.notice--new { box-shadow: none; }
.notice--new .notice__title { font-weight: 700; }
.notice__text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── porte d'entrée : appareil non autorisé, écran Admin → Appareils ───────── */

select {
  width: 100%;
  font: inherit;
  color: var(--encre);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--blanc);
  min-height: 46px;
}
select:focus { outline: 3px solid var(--turquoise); outline-offset: 1px; }

.code-field {
  font-size: 1.8rem;
  letter-spacing: .5em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.device-fingerprint {
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .35em;
  font-variant-numeric: tabular-nums;
  background: var(--blanc);
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.device-code {
  margin: 4px 0;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .3em;
  font-variant-numeric: tabular-nums;
}

.device-code-box { display: flex; flex-direction: column; gap: 4px; }
.device-code-box:empty { display: none; }

.device-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.device-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--blanc);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.device-row__text { flex: 1 1 auto; min-width: 0; }
.device-row .btn { flex: none; }
