/* Genius ID — feuille unique (CSP : aucun style en ligne). Même famille que la console GeniusLore : sombre neutre
   (#0d0d0e), relief par la lumière, verre dépoli pour l'en-tête et la carte de connexion seulement, un accent chaud,
   Inter. Les pages de travail sont des sections à plat séparées par l'espace et des filets, pas des cartes. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("Inter.woff2") format("woff2");
}

:root {
  --bg: #0d0d0e;
  --raised: #141416;
  --fill-1: rgb(255 255 255 / 3.5%);
  --fill-2: rgb(255 255 255 / 6%);
  --fill-3: rgb(255 255 255 / 10%);
  --hairline: rgb(255 255 255 / 7%);
  --hairline-strong: rgb(255 255 255 / 12%);
  --glass: rgb(22 22 25 / 72%);
  --glass-blur: blur(40px) saturate(1.7);
  --glass-edge: inset 0 1px 0 rgb(255 255 255 / 8%), inset 0 0 0 1px rgb(255 255 255 / 6%);
  --shadow-float: 0 30px 80px -24px rgb(0 0 0 / 80%), 0 2px 8px rgb(0 0 0 / 30%);
  --text: #ededee;
  --text-2: #a3a3aa;
  --text-3: #6e6e76;
  --accent: #d6a24a;
  --accent-hover: color-mix(in oklab, var(--accent) 82%, white);
  --accent-ink: #171106;
  --accent-soft: rgb(214 162 74 / 14%);
  --accent-glow: rgb(214 162 74 / 45%);
  --ok: #6cc38f;
  --warn: #ff9b5c;
  --danger: #ff6b6b;
  --danger-soft: rgb(255 107 107 / 12%);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 140ms;
  --font: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --page: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font: 15px/1.5 var(--font);
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* A faint warm light from above the page: relief without boxes. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(900px 420px at 50% -120px, rgb(214 162 74 / 7%), transparent 70%);
}
a { color: inherit; text-decoration: none; }
p a, .muted a, dd a, .note a { color: var(--accent); }
p a:hover, .muted a:hover, dd a:hover, .note a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 40px; line-height: 1.08; font-weight: 650; letter-spacing: -0.03em; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.lead { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.empty { padding: 22px 0; color: var(--text-3); }
.note { margin-top: 14px; font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------------ En-tête (verre) */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
  padding: 0 max(24px, calc((100vw - var(--page)) / 2));
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.brand .mark { display: block; width: 20px; height: 20px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); transition: color var(--fast), background-color var(--fast); }
.nav a:hover { color: var(--text); background: var(--fill-1); }
.nav a.active { color: var(--text); background: var(--fill-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.who .name { color: var(--text); }
.who form { margin-left: 6px; }

/* ------------------------------------------------------------------ Page */

main { width: min(var(--page), 100% - 48px); margin: 0 auto; padding: 56px 0 96px; }
.foot { margin-top: auto; padding: 28px 24px 36px; font-size: 12.5px; color: var(--text-3); text-align: center; }

/* Tête de page : fil d'Ariane, titre, sous-titre, actions à droite. */
.crumbs { margin-bottom: 14px; font-size: 13px; color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--text); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.head .ident { display: flex; align-items: center; gap: 20px; min-width: 0; }
.head .sub { margin-top: 10px; color: var(--text-2); }
.head .sub .sep { margin: 0 8px; color: var(--text-3); }
main > h1 { margin-bottom: 40px; }
main > h1 + .muted, main > h1 + p { margin: -28px 0 40px; max-width: 760px; color: var(--text-2); }

/* Sections : un titre, du contenu à plat, de l'espace. */
.section { margin-bottom: 56px; }
.section > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; margin-bottom: 10px; }
.section > header h2 .count { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.section > header + .muted, .section > .intro { margin: -4px 0 16px; font-size: 14px; color: var(--text-2); max-width: 760px; }
.section h3 { margin: 32px 0 12px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; align-items: start; }
.cols.wide-left { grid-template-columns: 3fr 2fr; }

/* ------------------------------------------------------------------ Avatars (initiales) */

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(160deg, rgb(255 255 255 / 16%), rgb(255 255 255 / 4%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
}
.avatar.l { width: 64px; height: 64px; font-size: 22px; }
.avatar.s { width: 26px; height: 26px; font-size: 10.5px; }
.glyph { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; color: var(--accent); background: linear-gradient(160deg, var(--fill-3), var(--fill-1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%); }
.glyph svg { width: 16px; height: 16px; }
.person { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.person .names { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person .names > :first-child { color: var(--text); font-weight: 550; }
.person .names > :last-child:not(:first-child) { font-size: 12.5px; color: var(--text-3); }
a.person:hover .names > :first-child { color: var(--accent); }

/* ------------------------------------------------------------------ Tables et rangées */

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { padding: 0 14px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: left; color: var(--text-3); box-shadow: inset 0 -1px 0 var(--hairline); }
td { padding: 14px; vertical-align: middle; box-shadow: inset 0 -1px 0 var(--hairline); }
th:first-child, td:first-child { padding-left: 4px; }
th:last-child, td:last-child { padding-right: 4px; }
tbody tr { transition: background-color var(--fast); }
tbody tr:hover { background: var(--fill-1); }
tbody tr:last-child td { box-shadow: none; }
td a:not(.button):not(.person) { color: var(--text); font-weight: 550; }
td a:not(.button):not(.person):hover { color: var(--accent); }
td .muted, td.muted { color: var(--text-2); }
td code { color: var(--text-2); }

/* Liste de rangées (accès, membres, passkeys) : une ligne par élément, actions à droite. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; align-items: center; gap: 16px; min-height: 60px; padding: 10px 4px; box-shadow: inset 0 -1px 0 var(--hairline); }
.rows > li:first-child { box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.rows > li > .what { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.rows > li > .what > :first-child { font-weight: 550; color: var(--text); }
.rows > li > .what > :not(:first-child) { font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.rows > li > .what a:hover { color: var(--accent); }
.rows > li.empty { justify-content: flex-start; min-height: 56px; color: var(--text-3); }

/* Propriétés : libellé à gauche, valeur à droite, filets fins. */
dl.props { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; margin: 0; font-size: 14px; }
dl.props dt, dl.props dd { padding: 12px 0; box-shadow: inset 0 -1px 0 var(--hairline); }
dl.props dt { padding-right: 24px; color: var(--text-2); }
dl.props dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
dl.props > :nth-last-child(-n + 2) { box-shadow: none; }

/* États : point coloré et mot, pas de pastille. */
.state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.state.ok::before { background: var(--ok); box-shadow: 0 0 10px rgb(108 195 143 / 50%); }
.state.warn { color: var(--warn); }
.state.warn::before { background: var(--warn); }
.state.danger { color: var(--danger); }
.state.danger::before { background: var(--danger); }
/* Mots-clés d'accès : texte, l'accent pour les niveaux privilégiés. */
.tags { color: var(--text-2); }
.tags .sep { margin: 0 7px; color: var(--text-3); }
.priv { color: var(--accent); }
.chip { color: var(--text-2); }
.chip + .chip::before { content: "·"; margin: 0 7px; color: var(--text-3); }
.chip.accent { color: var(--accent); }
.chip.ok { color: var(--text); }
.chip.warn { color: var(--warn); }
.chip.danger { color: var(--danger); }

/* ------------------------------------------------------------------ Formulaires */

label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); }
label > input, label > select, label > textarea { margin-top: 8px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--fill-1);
  border: 0;
  border-radius: var(--radius-m);
  outline: none;
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow var(--fast), background-color var(--fast);
}
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover { background: var(--fill-2); }
input:focus, select:focus, textarea:focus { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
input::placeholder { color: var(--text-3); }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: right 19px top 20px, right 14px top 20px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--raised); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }

.stack > * + * { margin-top: 16px; }
.stack > button, .stack > .actions { margin-top: 24px; }
/* Formulaire en grille : champs côte à côte (deux par ligne), blocs et actions sur toute la largeur. */
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
.grid-form > div, .grid-form > fieldset, .grid-form > .full { grid-column: 1 / -1; }
.grid-form > div:last-child { display: flex; justify-content: flex-end; }
.form-panel { padding-top: 24px; box-shadow: inset 0 1px 0 var(--hairline); }
fieldset.level-set { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.level-set legend { padding: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.row { display: flex; align-items: center; gap: 10px; }
.row input { flex: 1; }
.inline { display: inline; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
details > summary { cursor: pointer; color: var(--text-2); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary:hover { color: var(--text); }
details[open] > summary { margin-bottom: 16px; }

/* Cases (groupes d'un compte) : une rangée par case. */
.checklist { display: flex; flex-direction: column; }
.checklist label.check { min-height: 48px; padding: 8px 4px; box-shadow: inset 0 -1px 0 var(--hairline); }
.checklist label.check:hover { background: var(--fill-1); }
label.check { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
label.check .grow { flex: 1; }

/* Niveau d'un droit : contrôle segmenté (radios), « Personnalisé » déplie les six actions de Lore. Sans JS. */
.levels { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--hairline); }
label.level { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: color var(--fast), background-color var(--fast), box-shadow var(--fast); }
label.level input { position: absolute; opacity: 0; pointer-events: none; }
label.level:hover { color: var(--text); }
label.level:has(input:checked) { color: var(--text); background: var(--fill-3); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), 0 1px 3px rgb(0 0 0 / 35%); }
label.level:has(input[value="admin"]:checked) { color: var(--accent); }
label.level:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.checks { display: none; flex-basis: 100%; }
.levels:has(input[value="custom"]:checked) .checks { display: grid; grid-template-columns: 16px max-content 1fr; align-items: center; gap: 10px 14px; margin: 6px 0 4px; padding: 14px 16px; border-radius: var(--radius-m); background: var(--fill-1); }
.checks label.check { display: contents; }
.checks code { color: var(--text); font-size: 13px; }
.checks .small { font-size: 12.5px; color: var(--text-3); }

/* Droits d'un groupe : une rangée par dépôt, le niveau et ses actions à droite. */
/* La rangée est une grille ; le formulaire et le sélecteur s'y fondent (display: contents) pour que le contrôle,
   « Enregistrer » et « Retirer » s'alignent à droite et que les six actions passent dessous, sur toute la largeur. */
.grants > li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto auto; column-gap: 16px; row-gap: 6px; }
.grants > li > form.row, .grants > li > form.row .levels { display: contents; }
.grants > li .checks { grid-column: 2 / -1; grid-row: 2; }
.grants > li.empty { display: flex; }
.add-grant { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 20px; }
.add-grant > label { flex: 1 1 260px; }
.add-grant > fieldset { flex: 0 1 auto; }
.add-grant > fieldset legend { padding-bottom: 8px; }
.add-grant:has(input[value="custom"]:checked) > fieldset { flex-basis: 100%; order: 2; }
.add-grant:has(input[value="custom"]:checked) > button { order: 3; margin-left: auto; }

/* « Enregistrer » d'un droit n'apparaît qu'une fois le niveau changé (ou en personnalisé, où les cases comptent). */
.grants .save { display: none; }
.grants form:has(input[name="level"]:checked:not([data-current])) .save,
.grants form:has(input[name="level"][value="custom"]:checked) .save { display: inline-flex; }
/* Création d'un groupe : le niveau ne vaut que pour « tous les dépôts ». */
.group-create:has(input[name="all_repositories"]:not(:checked)) fieldset.level-set { display: none; }
.checklist.cols-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.grid-form.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rows > li.add form { flex: 1; }
.rows > li.add input { height: 40px; }
details.more { margin-top: 20px; }
details.more > summary { font-size: 13.5px; }
.filter { margin: -16px 0 32px; }
.filter input { max-width: 560px; }
table.audit td.details { max-width: 340px; overflow-wrap: anywhere; color: var(--text-2); }
table.audit code.act { color: var(--text); }
.more { margin-top: 20px; }
.totp-setup { display: flex; align-items: flex-start; gap: 48px; }
.totp-setup .qr { margin: 0; flex: none; }
.totp-setup > div:last-child { flex: 1; max-width: 420px; }
.totp-setup .secret { margin: 0 0 24px; font-size: 13.5px; color: var(--text-2); overflow-wrap: anywhere; }
.totp-setup .secret code { display: block; margin-top: 6px; font-size: 15px; letter-spacing: 0.06em; color: var(--text); }
.glyph.big { width: 64px; height: 64px; border-radius: 18px; }
.glyph.big svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------------ Boutons (capsules) */

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  color: var(--text);
  background: var(--fill-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  cursor: pointer;
  transition: background-color var(--fast), color var(--fast), box-shadow 240ms var(--ease), transform var(--fast) var(--ease);
}
button:hover, .button:hover { background: var(--fill-3); text-decoration: none; }
button:active, .button:active { transform: scale(0.97); }
button.primary, .button.primary { color: var(--accent-ink); background: var(--accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 8px 24px -10px var(--accent-glow); }
button.primary:hover, .button.primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 12px 30px -10px var(--accent-glow); }
button.ghost, .button.ghost { color: var(--text-2); background: transparent; box-shadow: none; }
button.ghost:hover, .button.ghost:hover { color: var(--text); background: var(--fill-1); }
button.danger, .button.danger { color: var(--danger); }
button.danger:hover, .button.danger:hover { color: var(--danger); background: var(--danger-soft); }
button.small, .button.small { height: 32px; padding: 0 14px; font-size: 13px; }
button.link { height: auto; padding: 0; font-weight: 500; color: var(--text-2); background: none; box-shadow: none; }
button.link:hover { color: var(--text); background: none; }
button:disabled { opacity: 0.45; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions.end { justify-content: flex-end; }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; box-shadow: inset 0 1px 0 var(--hairline); }
.danger-zone p { font-size: 13.5px; color: var(--text-2); }

/* ------------------------------------------------------------------ Messages */

.alert { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; padding: 14px 18px; border-radius: var(--radius-m); font-size: 14px; color: var(--text); background: var(--fill-1); box-shadow: inset 0 0 0 1px var(--hairline); }
.alert.error { color: #ffd6d6; background: var(--danger-soft); box-shadow: inset 0 0 0 1px rgb(255 107 107 / 28%); }
.alert.ok { box-shadow: inset 0 0 0 1px rgb(108 195 143 / 28%); background: rgb(108 195 143 / 8%); }
.alert p { margin: 0; }
.code { margin: 6px 0 2px; padding: 16px; font-family: var(--mono); font-size: 22px; letter-spacing: 0.12em; text-align: center; color: var(--text); background: var(--fill-1); border-radius: var(--radius-m); box-shadow: inset 0 0 0 1px var(--hairline); user-select: all; }
.qr { width: 216px; margin: 20px auto; padding: 12px; border-radius: var(--radius-m); background: #fff; }
.qr svg { display: block; width: 100%; height: auto; }
.error-text { color: var(--danger); }

/* ------------------------------------------------------------------ Pages étroites (connexion, appareil) : une carte de verre */

body.narrow main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: min(420px, 100% - 32px); padding: 8vh 0 64px; }
body.narrow .top { display: none; }
.card {
  padding: 40px 36px 32px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgb(255 255 255 / 4%), transparent 50%), var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--shadow-float);
}
.card h1 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 10px; }
.card .lead { margin-bottom: 24px; font-size: 15px; }
.card .alert { margin-bottom: 20px; }
.card button.primary, .card button.ghost, .card .button.primary, .card .button.ghost { width: 100%; height: 46px; }
.card button.ghost, .card .button.ghost { color: var(--text); background: var(--fill-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%); }
.card button.ghost:hover, .card .button.ghost:hover { background: var(--fill-3); }
.card .actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
.card > .muted:last-child { margin-top: 20px; text-align: center; font-size: 13.5px; }
.card > .muted:last-child a { color: var(--text-2); }
.card > .muted:last-child a:hover { color: var(--text); }
.card::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 16px; background: url("mark-light.svg") center / 26px no-repeat, linear-gradient(160deg, var(--fill-3), var(--fill-1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.card .crest { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px; border-radius: 16px; background: linear-gradient(160deg, var(--fill-3), var(--fill-1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%); }
.card .crest img { width: 26px; height: 26px; }
#passkey-status:empty { display: none; }
#passkey-status { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-2); }

/* Accueil */
body.home .top { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10vh 0 0; }
.hero .crest { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 32px; border-radius: 22px; background: linear-gradient(160deg, var(--fill-3), var(--fill-1)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%), var(--shadow-float); }
.hero .crest img { width: 38px; height: 38px; }
.hero h1 { font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.04em; }
.hero .lead { max-width: 520px; margin: 18px 0 36px; font-size: 17px; }
.hero .actions { justify-content: center; }
.hero .button { height: 46px; padding: 0 26px; font-size: 15px; }

/* Formulaires fournis par oidc-provider (device flow) */
#op\.deviceInputForm input { height: 60px; margin-bottom: 18px; font-family: var(--mono); font-size: 24px; letter-spacing: 0.25em; text-align: center; text-transform: uppercase; }
#op\.deviceConfirmForm, #op\.logoutForm { display: none; }

@media (max-width: 860px) {
  .top { gap: 16px; height: auto; min-height: 56px; padding: 10px 16px; flex-wrap: wrap; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  main { padding-top: 32px; }
  h1 { font-size: 32px; }
  .cols, .cols.wide-left, .grid-form { grid-template-columns: 1fr; }
  .head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
