/* Appareils (règle One Big Goal) : ordinateur au-dessus de 1024 px ; tablette à partir de 533 × 815 px en portrait et de
   893 × 455 px en paysage, jusqu'à 1024 px ; mobile en dessous. « (max-width: 1024px) » = tablette et mobile ;
   la requête « mobile » est celle des blocs placés après. */
/* One MailAdmin — feuille de style */
:root {
  --brand: #ff4d00;
  --brand-hover: #e64500;
  --brand-soft: #fff1ea;
  --brand-ring: rgba(255, 77, 0, .35);
  --on-brand: #fff;
  --logo-ink: #373c40;
  --ink: #373c40;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fa;
  --text: #24282b;
  --muted: #6b7278;
  --border: #e3e6e9;
  --sidebar: #ffffff;
  --sidebar-text: #3b4146;
  --sidebar-strong: #1d2023;
  --sidebar-muted: #8a9096;
  --sidebar-hover: rgba(16, 24, 32, .05);
  --sidebar-active: #fff1ea;
  --sidebar-border: #e3e6e9;
  --success: #138a4b; --success-bg: #e6f6ed;
  --warn: #a15c00;    --warn-bg: #fff4e0;
  --danger: #c62828;  --danger-bg: #fdecec;
  --info: #1f5fa8;    --info-bg: #eaf2fc;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 32, .05), 0 2px 8px rgba(16, 24, 32, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #3a2418;
    --logo-ink: #ffffff;
    --bg: #17191b;
    --surface: #212427;
    --surface-2: #1b1e20;
    --text: #e8eaec;
    --muted: #9aa1a7;
    --border: #33373b;
    --sidebar: #111315;
    --sidebar-text: #c9cdd1;
    --sidebar-strong: #ffffff;
    --sidebar-muted: #80878d;
    --sidebar-hover: rgba(255, 255, 255, .06);
    --sidebar-active: rgba(255, 77, 0, .16);
    --sidebar-border: rgba(255, 255, 255, .06);
    --success: #4cc985; --success-bg: #173826;
    --warn: #f0a640;    --warn-bg: #3b2a10;
    --danger: #ff6b6b;  --danger-bg: #3d1a1a;
    --info: #7db3f0;    --info-bg: #182a40;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-soft: #3a2418;
  --logo-ink: #ffffff;
  --bg: #17191b;
  --surface: #212427;
  --surface-2: #1b1e20;
  --text: #e8eaec;
  --muted: #9aa1a7;
  --border: #33373b;
  --sidebar: #111315;
  --sidebar-text: #c9cdd1;
  --sidebar-strong: #ffffff;
  --sidebar-muted: #80878d;
  --sidebar-hover: rgba(255, 255, 255, .06);
  --sidebar-active: rgba(255, 77, 0, .16);
  --sidebar-border: rgba(255, 255, 255, .06);
  --success: #4cc985; --success-bg: #173826;
  --warn: #f0a640;    --warn-bg: #3b2a10;
  --danger: #ff6b6b;  --danger-bg: #3d1a1a;
  --info: #7db3f0;    --info-bg: #182a40;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
code { font-family: var(--mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; }
code.wrap { display: block; white-space: pre-wrap; word-break: break-all; padding: 6px 8px; }
code[data-copy] { cursor: copy; }
hr { border: 0; border-top: 1px solid var(--border); margin: 14px 0; }
.muted { color: var(--muted); }
small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.lead { font-size: 15px; margin: 0 0 18px; }

.icon { width: 16px; height: 16px; flex: none; }

/* ---------- Structure ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 248px; background: var(--sidebar); color: var(--sidebar-text); border-right: 1px solid var(--sidebar-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: none; }
.brand { display: block; padding: 22px 22px 18px; }
.brand img { width: 170px; display: block; }
.sidebar nav { padding: 4px 10px 16px; flex: 1; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-muted); padding: 16px 12px 6px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; }
.nav-link:hover { background: var(--sidebar-hover); color: var(--sidebar-strong); text-decoration: none; }
.nav-link.active { background: var(--sidebar-active); color: var(--sidebar-strong); box-shadow: inset 3px 0 0 var(--brand); font-weight: 600; }
.nav-link.active .icon { color: var(--brand); }
.sidebar-foot { padding: 14px 22px; font-size: 12px; color: var(--sidebar-muted); border-top: 1px solid var(--sidebar-border); }
.sidebar-backdrop { display: none; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 18px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.topbar h1 .icon { width: 20px; height: 20px; color: var(--brand); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.domain-switch select { min-width: 220px; }
.user-chip { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.menu-btn { display: none; }
.content { padding: 24px 28px 48px; max-width: 1400px; width: 100%; }

/* ---------- Cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card > p:first-child { margin-top: 0; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-2 + .card, .grid-2 + .grid-2 { margin-top: 18px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; color: var(--text); box-shadow: var(--shadow); }
a.stat:hover { border-color: var(--brand); text-decoration: none; }
.stat-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 12px; color: var(--muted); }
.quick { display: grid; gap: 6px; }
.quick a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--text); border: 1px solid var(--border); }
.quick a:hover { border-color: var(--brand); text-decoration: none; }
.quick .icon { color: var(--brand); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
.small-table td { padding: 7px 10px; font-size: 13px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.actions, th.actions { text-align: right; white-space: nowrap; }
td.actions > * { margin-left: 4px; }
.compact-actions .btn span { display: none; }
.compact-actions .btn { padding: 4px 8px; }
.compact-actions details.menu .btn span { display: inline; }
td.arrow { color: var(--muted); width: 20px; }
td.usage { min-width: 170px; }
tr.row-danger td { background: var(--danger-bg); }

.meter { height: 6px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 99px; overflow: hidden; min-width: 120px; }
.meter span { display: block; height: 100%; background: var(--success); }
.meter.warn span { background: #e8a33d; }
.meter.danger span { background: var(--danger); }

/* ---------- Badges & alertes ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; margin: 1px 2px 1px 0; white-space: nowrap; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge-info { background: var(--info-bg); color: var(--info); }

.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--info-bg); color: var(--info); }

/* ---------- Formulaires ---------- */
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
label small { font-weight: 400; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-height: 36px; width: 100%; }
textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-ring); border-color: var(--brand); }
input[readonly] { background: var(--surface-2); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); }
label.check, label.radio { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.radio { align-items: flex-start; padding: 6px 0; }
label.radio input { margin-top: 3px; }
.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
label.choice { flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-weight: 500; }
label.choice span { display: flex; flex-direction: column; gap: 2px; }
label.choice input { margin-top: 3px; }
label.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.drop-hint { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px dashed var(--border); border-radius: 8px; background: var(--surface-2); }
.drop-hint .icon { width: 28px; height: 28px; color: var(--brand); }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 650; padding: 0 6px; }
.stack { display: grid; gap: 14px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row .grow { flex: 1 1 240px; }
.w-sm { width: 140px; }
.w-md { max-width: 320px; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; }
.input-group { display: flex; align-items: stretch; }
.input-group > * { border-radius: 0; }
.input-group > :first-child { border-radius: 8px 0 0 8px; }
.input-group > :last-child { border-radius: 0 8px 8px 0; }
.input-group > span { display: grid; place-items: center; padding: 0 10px; background: var(--surface-2); border: 1px solid var(--border); border-left: 0; border-right: 0; color: var(--muted); }
.input-group select { width: auto; max-width: 55%; }
.input-group .btn { border-left: 0; }
.search { max-width: 260px; }
.rows { display: grid; gap: 8px; }
.rule-row { display: grid; grid-template-columns: 1.3fr 1.3fr 2fr .6fr auto; gap: 8px; align-items: center; }
#actions .rule-row { grid-template-columns: 1.3fr 3fr auto; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row p { margin: 4px 0 0; }
.toggle-row form { display: flex; gap: 8px; align-items: center; }
.toggle-row select { width: auto; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 14px; border-radius: 8px; min-height: 36px; white-space: nowrap; }
.btn:hover { border-color: #c4c9ce; text-decoration: none; background: var(--surface-2); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-sm { padding: 4px 10px; min-height: 30px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger-ghost { color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-bg); border-color: var(--danger); }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.inline-form { display: inline; margin: 0; }

/* Menu déroulant « Plus » */
details.menu { display: inline-block; position: relative; margin-left: 4px; }
details.menu summary { list-style: none; }
details.menu summary::-webkit-details-marker { display: none; }
.menu-pop { position: fixed; z-index: 50; min-width: 240px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 6px; text-align: left; }
.menu-pop a, .menu-pop .menu-item { display: flex; width: 100%; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 6px; color: var(--text); font: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop .menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop .menu-item.danger { color: var(--danger); }
.menu-pop form { display: block; }
.menu-pop hr { margin: 6px 0; }

/* Dialogues */
dialog { border: 1px solid var(--border); border-radius: 12px; padding: 22px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(20, 22, 24, .5); }
dialog h3 { font-size: 17px; margin: 0; }
dialog p { margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* Listes clé/valeur */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted); font-weight: 600; font-size: 13px; }
dl.kv dd { margin: 0; min-width: 0; }
dl.kv.small { font-size: 12.5px; }
.auth-block { min-width: 0; }

/* ---------- Pages d'authentification ---------- */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 0%, var(--brand-soft), transparent 50%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.auth-card.auth-wide { max-width: 720px; }
.auth-card h1 { font-size: 22px; margin: 18px 0 4px; }
.auth-card > p { margin: 0 0 20px; }
.auth-logo { width: 220px; max-width: 100%; display: block; }
:root .logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
/* Logo et couleur de l'entreprise (Administration › Entreprise) */
.logo-inline svg { width: 100%; height: auto; display: block; }
.brand .logo-inline { width: 170px; display: block; }
.brand img.company-logo { width: auto; max-width: 190px; max-height: 64px; object-fit: contain; }
.auth-logo.company-logo { width: auto; max-width: 240px; max-height: 96px; object-fit: contain; }
:root[data-theme="dark"] .company-logo { background: #fff; padding: 6px 10px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .company-logo { background: #fff; padding: 6px 10px; border-radius: 8px; } }
.company-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }
.company-preview img { max-width: 220px; max-height: 80px; object-fit: contain; }
.company-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; vertical-align: -4px; border: 1px solid var(--border); }

/* Sélecteur de thème */
.theme-toggle .ti { display: none; }
.theme-toggle[data-mode="auto"] .ti-auto, .theme-toggle[data-mode="light"] .ti-light, .theme-toggle[data-mode="dark"] .ti-dark { display: block; }
.auth-theme { position: fixed; top: 14px; right: 14px; background: var(--surface); border: 1px solid var(--border); }
.lang-switch { position: fixed; top: 20px; left: 16px; font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--text); text-decoration: none; padding: 4px 2px; }
.lang-switch a:hover { color: var(--brand); text-decoration: underline; }
.lang-switch strong { color: var(--brand); }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 4px; }
.checklist li span { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-weight: 700; margin-right: 6px; }
.checklist .ok span { background: var(--success-bg); color: var(--success); }
.checklist .ko span { background: var(--danger-bg); color: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 40; transform: translateX(-100%); transition: transform .2s ease; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 30; }
  .menu-btn { display: grid; }
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .topbar h1 { font-size: 16px; }
  .domain-switch select { min-width: 0; max-width: 46vw; }
  .content { padding: 16px 16px 40px; }
  td.actions .btn span { display: none; }
  .rule-row, #actions .rule-row { grid-template-columns: 1fr; }
  .search { max-width: none; }
}

@media print {
  .sidebar, .topbar, .btn { display: none !important; }
  .card { box-shadow: none; border: 0; }
}
.steps { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.steps ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.steps ul strong { color: var(--text); }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 4px; }
.btn-ghost { border-color: transparent; background: none; color: var(--muted); }
.quota-presets { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 2px; }
.tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.tips strong { color: var(--text); }
@media (max-width: 1024px) { .head-actions { width: 100%; } .head-actions .search { flex: 1; max-width: none; } }

/* ---------- Sécurité, notifications, Mon compte ---------- */
.switch { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 99px; background: var(--border); flex: none; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--brand); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--brand-ring); outline-offset: 2px; }
.checks.column { flex-direction: column; gap: 6px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head h2 .icon { color: var(--brand); }

.score-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.score-gauge { --c: var(--success); width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-2) 0); }
.score-gauge > div { width: 118px; height: 118px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; align-content: center; text-align: center; }
.score-gauge strong { font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-gauge span { color: var(--muted); font-size: 12px; }
.score-gauge.small { width: 64px; height: 64px; }
.score-gauge.small > div { width: 50px; height: 50px; }
.score-gauge.small strong { font-size: 18px; }
.score-warn { --c: #e8a33d; } .score-danger { --c: var(--danger); } .score-neutral { --c: var(--muted); }
.score-body h2 { margin-bottom: 6px; }
.score-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.score-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.score-list li:last-child { border-bottom: 0; }
.score-dot { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.score-list .ok .score-dot { background: var(--success-bg); color: var(--success); }
.score-list .part .score-dot { background: var(--warn-bg); color: var(--warn); }
.score-list .ko .score-dot { background: var(--danger-bg); color: var(--danger); }
.score-pts { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; }
.grow { flex: 1; min-width: 0; }
.score-mini { display: flex; gap: 14px; align-items: center; }
.score-mini p { margin: 6px 0 0; }
p.small, .small { font-size: 12.5px; }

.bell { position: relative; color: var(--muted); }
.bell.active { color: var(--brand); }
.bell-count { position: absolute; top: 0; right: 0; transform: translate(35%, -25%); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: var(--on-brand); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
a.user-chip:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--brand); }

.notif-list { list-style: none; margin: 0; padding: 0; }
.notif { display: flex; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.notif:last-child { border-bottom: 0; }
.notif p { margin: 2px 0 4px; }
.notif.unread { background: var(--brand-soft); border-radius: 8px; }
.notif-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.notif-success .notif-icon { background: var(--success-bg); color: var(--success); }
.notif-warn .notif-icon { background: var(--warn-bg); color: var(--warn); }
.notif-danger .notif-icon { background: var(--danger-bg); color: var(--danger); }

.totp-setup { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.qr { border-radius: 10px; border: 1px solid var(--border); background: #fff; padding: 4px; image-rendering: pixelated; }
.code-input { font-family: var(--mono); font-size: 20px; letter-spacing: .25em; text-align: center; }
.recovery-card { border-color: var(--brand); }
.recovery-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 6px; cursor: copy; }
.recovery-codes code { font-size: 15px; padding: 8px; text-align: center; }
.choice.static { cursor: default; }
.choice.static span { gap: 6px; }
.choice.static .btn, .choice.static form { align-self: flex-start; margin-top: 4px; }

.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.btn-block .icon { margin-right: 2px; }

.strength { height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.strength span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.strength-label { font-size: 12px; font-weight: 500; }

.account-pick { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: grid; gap: 2px; background: var(--surface-2); }
.account-pick label.check { padding: 5px 0; border-bottom: 1px dashed var(--border); }
.account-pick label.check:last-child { border-bottom: 0; }
.mt { margin-top: 22px; }

@media (orientation: portrait) and (max-width: 532px), (orientation: portrait) and (max-height: 814px) and (max-width: 1024px), (orientation: landscape) and (max-width: 892px), (orientation: landscape) and (max-height: 454px) and (max-width: 1024px) {
  .score-card, .totp-setup { grid-template-columns: 1fr; justify-items: center; }
  .score-body { width: 100%; }
}

/* Installation sécurisée (1.1) */
.install-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 20px; font-size: 13px; color: var(--muted, #8a9096); }
.install-steps li { display: flex; align-items: center; gap: 6px; }
.install-steps span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); font-size: 12px; font-weight: 700; }
.install-steps .on { color: inherit; font-weight: 600; }
.install-steps .on span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.install-steps .done span { background: var(--success-bg); border-color: transparent; color: var(--success); }
.auth-card .h3 { font-size: 16px; margin: 14px 0 0; }
.auth-card form + form { margin-top: 18px; }
.install-code { text-align: center; margin: 8px 0 14px; }
.install-code code { font-size: 22px; letter-spacing: .15em; padding: 8px 14px; user-select: all; }
.install-howto { padding-left: 20px; margin: 10px 0 0; line-height: 1.6; }
.install-fallback { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 12px; }
.install-fallback summary { cursor: pointer; font-weight: 600; }
.install-tabs { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.install-qr { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.install-qr p { margin: 0 0 8px; }
.install-restart { text-align: center; margin-top: 18px; }
.btn-link { background: none; border: 0; color: var(--muted, #8a9096); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; padding: 0; }
@media (orientation: portrait) and (max-width: 532px), (orientation: portrait) and (max-height: 814px) and (max-width: 1024px), (orientation: landscape) and (max-width: 892px), (orientation: landscape) and (max-height: 454px) and (max-width: 1024px) { .install-qr { flex-direction: column; align-items: flex-start; } }

/* Licence et mises à jour (1.2) */
.nav-link .nav-lock { margin-left: auto; opacity: .55; display: inline-flex; }
.nav-link .nav-lock svg { width: 13px; height: 13px; }
.locked-card { text-align: center; max-width: 620px; margin: 30px auto; padding: 34px 28px; }
.locked-card .locked-icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--surface-2); color: var(--brand); margin-bottom: 6px; }
.locked-card .locked-icon svg { width: 24px; height: 24px; }
.locked-card .form-row { justify-content: center; }
.card .h3 { font-size: 14px; margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.ticks li { padding-left: 22px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
ul.ticks.pro li::before { color: var(--brand); }
input.mono { font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; }
details.changelog { margin: 0 0 12px; }
details.changelog summary { cursor: pointer; font-weight: 600; }
details.changelog div { margin-top: 8px; font-size: 13px; }

/* ---------- Signatures (1.8.0) ---------- */
.sig-preview { background: #fff; color: #1d2023; border: 1px solid var(--border); border-radius: 8px; padding: 16px; overflow-x: auto; }
.sig-mail .sig-preview { border-style: dashed; }
.sig-logo { max-width: 200px; max-height: 80px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 6px; }
@media (min-width:1025px) { .sig-sticky { position: sticky; top: 16px; } }
textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.mb-status { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mb-domains td:first-child { font-weight: 600; }
.cron-line { display: block; white-space: pre-wrap; word-break: break-all; padding: 8px 10px; }
