/* ==========================================================================
   GEST CORP · SSL MONITOR — STYLES
   Même identité que le portail et le serveur email : bleu (actions),
   vert (réussite), ambre (en attente), rouge (erreur). Polices et icônes hébergées ici.
   ========================================================================== */

/* ── Polices ─────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ── Jetons ──────────────────────────────────────────────────────────────── */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --brand-green: #2ECC71;
  --brand-blue: #3498DB;

  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #F9FBFC;
  --sunken: #EEF2F6;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --text: #0B1220;
  --text-2: #4B5A6B;
  --text-3: #6B7A8C;

  --primary: #1F6FB5;
  --primary-hover: #195C97;
  --on-primary: #FFFFFF;
  --blue-ink: #1A5E9A;
  --blue-soft: rgba(52, 152, 219, .12);
  --green-ink: #13784A;
  --green-soft: rgba(46, 204, 113, .15);

  --ok: #16A34A;
  --warn: #D97706;
  --bad: #DC2626;
  --ok-soft: rgba(22, 163, 74, .12);
  --warn-soft: rgba(217, 119, 6, .13);
  --bad-soft: rgba(220, 38, 38, .10);

  --focus: rgba(31, 111, 181, .45);
  --overlay: rgba(11, 18, 32, .45);
  --glow-a: rgba(52, 152, 219, .16);
  --glow-b: rgba(46, 204, 113, .14);

  --shadow-xs: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow-sm: 0 1px 3px rgba(11, 18, 32, .06), 0 1px 2px rgba(11, 18, 32, .04);
  --shadow-md: 0 10px 28px -12px rgba(11, 18, 32, .18);
  --shadow-lg: 0 28px 70px -24px rgba(11, 18, 32, .35);

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: 140ms;
  --slow: 280ms;

  --appbar-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A0F15; --surface: #111821; --surface-2: #141C26; --sunken: #0D141C;
    --border: #1F2A36; --border-strong: #2C3A49;
    --text: #E6EDF3; --text-2: #A3B1C2; --text-3: #7B8BA0;
    --primary: #2A7FC4; --primary-hover: #3790D6;
    --blue-ink: #6CB6EE; --blue-soft: rgba(52, 152, 219, .16);
    --green-ink: #4ADE80; --green-soft: rgba(46, 204, 113, .14);
    --ok: #22C55E; --warn: #F59E0B; --bad: #F05252;
    --ok-soft: rgba(34, 197, 94, .14); --warn-soft: rgba(245, 158, 11, .14); --bad-soft: rgba(240, 82, 82, .14);
    --focus: rgba(108, 182, 238, .5); --overlay: rgba(0, 0, 0, .6);
    --glow-a: rgba(52, 152, 219, .13); --glow-b: rgba(46, 204, 113, .08);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
    --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A0F15; --surface: #111821; --surface-2: #141C26; --sunken: #0D141C;
  --border: #1F2A36; --border-strong: #2C3A49;
  --text: #E6EDF3; --text-2: #A3B1C2; --text-3: #7B8BA0;
  --primary: #2A7FC4; --primary-hover: #3790D6;
  --blue-ink: #6CB6EE; --blue-soft: rgba(52, 152, 219, .16);
  --green-ink: #4ADE80; --green-soft: rgba(46, 204, 113, .14);
  --ok: #22C55E; --warn: #F59E0B; --bad: #F05252;
  --ok-soft: rgba(34, 197, 94, .14); --warn-soft: rgba(245, 158, 11, .14); --bad-soft: rgba(240, 82, 82, .14);
  --focus: rgba(108, 182, 238, .5); --overlay: rgba(0, 0, 0, .6);
  --glow-a: rgba(52, 152, 219, .13); --glow-b: rgba(46, 204, 113, .08);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, .85);
  color-scheme: dark;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--appbar-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--blue-ink); }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--blue-soft); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-xs); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none;
  transition: top var(--fast) var(--ease);
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--text-2); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}

/* ── Boutons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none;
  transition: background var(--fast) var(--ease), border-color var(--fast) var(--ease),
              color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn--primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn--secondary { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn--secondary:hover:not(:disabled) { border-color: var(--border-strong); background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--text-2); }
.btn--ghost:hover:not(:disabled) { background: var(--sunken); color: var(--text); }
.btn--sm { height: 36px; padding: 0 12px; font-size: .875rem; }
.btn--lg { height: 48px; padding: 0 20px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] .fa-rotate { animation: spin 0.9s linear infinite; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--text-2);
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.icon-btn[aria-pressed="true"] { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }

.link-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 2px; border: 0; background: none;
  color: var(--text-2); font-size: .8125rem;
  transition: color var(--fast) var(--ease);
}
.link-btn:hover { color: var(--blue-ink); }

.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border: 1px solid var(--border); border-bottom-width: 2px; border-radius: var(--r-xs);
  background: var(--surface); color: var(--text-3);
  font-family: var(--font); font-size: .6875rem; font-weight: 600; line-height: 1;
}

/* ── Formulaires ─────────────────────────────────────────────────────────── */
.label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; color: var(--text); }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font-size: 1rem;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:hover:not(:disabled) { border-color: var(--text-3); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--blue-soft); }
.input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.input:disabled { background: var(--sunken); cursor: not-allowed; }
.textarea { height: auto; padding: 12px 14px; font-family: var(--mono); font-size: .875rem; resize: vertical; }

.input-group { position: relative; }
.input-group .input { padding-left: 42px; padding-right: 48px; font-family: var(--mono); letter-spacing: .12em; }
.input-group .input::placeholder { letter-spacing: .2em; }
.input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-size: .875rem; pointer-events: none; }
.input-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: var(--r-xs); background: none; color: var(--text-3);
  transition: color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.input-btn:hover:not(:disabled) { color: var(--text); background: var(--sunken); }

.hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8125rem; color: var(--text-2); }
.hint--warn { color: var(--warn); }
.hint--error { color: var(--bad); }

.alert {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid; border-radius: var(--r-sm);
  font-size: .875rem; line-height: 1.45;
}
.alert i { margin-top: 2px; }
.alert--error { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); color: var(--text); }
.alert--error i { color: var(--bad); }

/* ── Points d'état ───────────────────────────────────────────────────────── */
.dot { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--border-strong); }
.dot--up, [data-status="up"] > .dot, [data-state="up"] > .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot--slow, [data-status="slow"] > .dot, [data-state="slow"] > .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.dot--down, [data-status="down"] > .dot, [data-state="down"] > .dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
[data-status="pending"] > .dot, [data-state="pending"] > .dot { background: var(--brand-blue); animation: pulse 1s var(--ease) infinite; }

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   CONNEXION
   ========================================================================== */
.page-auth { background: var(--bg); }
.auth { display: grid; min-height: 100vh; min-height: 100dvh; }

.auth-brand {
  position: relative; overflow: hidden; display: none;
  color: #E9F1F8;
  background:
    radial-gradient(120% 90% at 0% 0%, #12344F 0%, transparent 60%),
    linear-gradient(160deg, #0B1A2A 0%, #0A1520 55%, #08111A 100%);
}
.auth-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 85%);
}
.auth-brand-in {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: clamp(32px, 5vw, 64px);
}
.auth-logo { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.auth-logo img { border-radius: 50%; background: #fff; padding: 3px; }
.auth-pitch { max-width: 30rem; }
.auth-pitch .eyebrow { color: #7FD3A6; }
.auth-headline {
  margin-top: 14px;
  font-size: clamp(1.75rem, 2.4vw + .5rem, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em;
}
.auth-points { display: grid; gap: 14px; margin-top: 32px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(233, 241, 248, .82); }
.auth-points i {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  color: #7FD3A6; font-size: .8125rem;
}
.auth-legal { font-size: .8125rem; color: rgba(233, 241, 248, .5); }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.orb--green { width: 380px; height: 380px; right: -120px; bottom: -80px; background: var(--brand-green); opacity: .28; }
.orb--blue { width: 420px; height: 420px; right: 10%; top: -160px; background: var(--brand-blue); opacity: .32; }

.auth-panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  padding: 88px var(--gutter) 40px;
}
.auth-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 100% 0%, var(--glow-a), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, var(--glow-b), transparent 70%);
}
.auth-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
}
.auth-mobile-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.auth-card {
  width: 100%; max-width: 420px;
  padding: clamp(24px, 5vw, 36px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  animation: rise var(--slow) var(--ease) both;
}
.auth-badge {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 14px; color: #fff; font-size: 1.125rem;
  background: linear-gradient(135deg, var(--brand-blue), var(--primary));
  box-shadow: 0 10px 24px -10px var(--brand-blue);
}
.auth-card h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.auth-card > .muted { margin-top: 6px; }
.auth-form { margin-top: 28px; }
.auth-form .btn { margin-top: 20px; }
.auth-form.is-sending .btn .fa-arrow-right { animation: nudge .8s var(--ease) infinite; }
.auth-note { display: flex; align-items: center; gap: 8px; max-width: 420px; font-size: .8125rem; color: var(--text-3); text-align: center; }

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth-brand { display: block; }
  .auth-mobile-logo { visibility: hidden; }
  .auth-top { justify-content: flex-end; }
}


/* ── Compléments formulaires ─────────────────────────────────────────────── */
.input-group .input { font-family: var(--font); letter-spacing: normal; }
.input-group .input[type="password"] { letter-spacing: .08em; }
.input-group .input::placeholder { letter-spacing: normal; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7A8C'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select--sm { height: 36px; font-size: .875rem; padding-left: 10px; }
.input[type="date"] { font-family: var(--font); }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.label-row .label { margin-bottom: 8px; }
.auth-form .label:first-of-type { margin-top: 0; }
.auth-form .input-group + .label, .auth-form .strength + .hint + .label { margin-top: 18px; }
.link-sm { font-size: .8125rem; color: var(--blue-ink); text-decoration: none; }
.link-sm:hover { text-decoration: underline; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; }
.alert--success { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); color: var(--text); margin-top: 18px; }
.alert--success i { color: var(--ok); }
.alert--info { border-color: color-mix(in srgb, var(--brand-blue) 35%, transparent); background: var(--blue-soft); color: var(--text); margin: 0 0 16px; }
.alert--info i { color: var(--blue-ink); }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.strength span { height: 4px; border-radius: 2px; background: var(--border); transition: background var(--fast) var(--ease); }
.strength[data-level="1"] span:nth-child(-n+1) { background: var(--bad); }
.strength[data-level="2"] span:nth-child(-n+2) { background: var(--warn); }
.strength[data-level="3"] span:nth-child(-n+3) { background: var(--brand-blue); }
.strength[data-level="4"] span { background: var(--ok); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--bad) 40%, var(--border)); color: var(--bad); }
.btn--danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn .fa-rotate.spin, .btn[aria-busy="true"] > i:first-child { animation: spin .9s linear infinite; }
.small { font-size: .8125rem; }
code { font-family: var(--mono); font-size: .8125em; padding: 1px 6px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--border); overflow-wrap: anywhere; }

/* ── Squelette de l'administration ───────────────────────────────────────── */
:root { --sidebar-w: 248px; --topbar-h: 60px; }
.admin { display: block; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  display: flex; flex-direction: column;
  width: var(--sidebar-w); padding: 16px 12px;
  background: var(--surface); border-right: 1px solid var(--border);
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.sidebar-brand img { border-radius: 50%; }
.sidebar-brand div { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.sidebar-brand strong { font-size: .9375rem; font-weight: 700; letter-spacing: -.01em; }
.sidebar-brand span { font-size: .75rem; color: var(--text-3); }
.sidebar-close { display: none; }

.nav { display: grid; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--text-2); text-decoration: none; font-size: .9375rem; font-weight: 500;
  transition: background var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-link i { width: 18px; text-align: center; color: var(--text-3); transition: color var(--fast) var(--ease); }
.nav-link:hover { background: var(--sunken); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; }
.nav-link[aria-current="page"] i { color: var(--blue-ink); }

.sidebar-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 0; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-green)); color: #fff;
  font-size: .75rem; font-weight: 700;
}
.user-name { font-size: .875rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-actions { display: flex; gap: 2px; }

.shell { min-height: 100vh; min-height: 100dvh; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: var(--topbar-h); padding: 0 clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--border);
}
.menu-btn { display: none; }
.topbar-title { font-size: 1rem; font-weight: 650; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.content { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 40px; display: grid; gap: 20px; align-content: start; }
.app-foot { padding: 16px clamp(16px, 3vw, 32px) calc(16px + env(safe-area-inset-bottom)); font-size: .75rem; color: var(--text-3); border-top: 1px solid var(--border); }
.scrim { position: fixed; inset: 0; z-index: 45; background: var(--overlay); }

/* ── En-têtes de page ────────────────────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-title { font-size: clamp(1.5rem, 1.2vw + 1rem, 1.875rem); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; }
.page-head .muted { margin-top: 4px; max-width: 60ch; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters-inline .select { width: auto; min-width: 200px; height: 40px; font-size: .9375rem; }

.live { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: .8125rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.live[data-state="ok"] > .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); animation: pulse 2.4s var(--ease) infinite; }
.live[data-state="error"] > .dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.live[data-state="loading"] > .dot { background: var(--brand-blue); animation: pulse 1s var(--ease) infinite; }

/* ── Cartes ──────────────────────────────────────────────────────────────── */
.card { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: .9375rem; font-weight: 650; }
.card-meta { font-size: .8125rem; color: var(--text-3); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; color: var(--blue-ink); text-decoration: none; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.card-body { padding: 18px 20px; }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 1080px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
}

/* Alertes du tableau de bord */
.alerts { display: grid; gap: 10px; }
.alerts:empty { display: none; }
.alerts .alert { margin: 0; align-items: center; }
.alert--warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); color: var(--text); }
.alert--warn i { color: var(--warn); }
.alert .btn { margin-left: auto; flex: none; }

/* Indicateurs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { position: relative; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--warn); opacity: .8; }
.kpi--ok::after { background: var(--ok); }
.kpi--bad::after { background: var(--bad); }
.kpi--accent::after { background: var(--brand-blue); }
.kpi-label { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.kpi-label i { color: var(--text-3); font-size: .75rem; }
.kpi-value { margin-top: 8px; font-size: 2rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi-sub { margin-top: 6px; font-size: .8125rem; color: var(--text-3); }

/* Barre empilée */
.stackbar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--sunken); }
.stackbar .seg { height: 100%; width: 0; transition: width var(--slow) var(--ease); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; font-size: .875rem; color: var(--text-2); }
.legend-row li { display: flex; align-items: center; gap: 8px; }
.legend-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.legend-row .sw { width: 10px; height: 10px; border-radius: 3px; }

.chart { position: relative; height: 280px; }
.chart--donut { height: 280px; }

.facts { display: grid; gap: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-2); }
.facts dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.quick-actions { display: grid; gap: 8px; margin-top: 16px; }

/* Badges de statut */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  background: var(--sunken); color: var(--text-2);
}
.badge .dot { width: 6px; height: 6px; box-shadow: none !important; }
.chip { display: inline-block; min-width: 26px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); font-family: var(--mono); font-size: .75rem; text-align: center; color: var(--text-2); }

/* ── Tableaux ────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { padding: 10px 16px; text-align: left; font-size: .75rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .muted-cell { color: var(--text-3); font-size: .8125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .mono { font-family: var(--mono); font-size: .8125rem; color: var(--text-2); }
.table--clickable tbody tr { cursor: pointer; transition: background var(--fast) var(--ease); }
.table--clickable tbody tr:hover, .table--clickable tbody tr:focus-visible { background: var(--surface-2); outline: none; }
.table--clickable tbody tr:focus-visible { box-shadow: inset 3px 0 0 var(--primary); }
.empty-cell { padding: 40px 16px !important; text-align: center; color: var(--text-3); }
.th-sort { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.th-sort:hover { color: var(--text); }
.th-sort::after { content: "↕"; opacity: .35; font-size: .75rem; }
.th-sort[data-dir="asc"]::after { content: "↑"; opacity: 1; color: var(--blue-ink); }
.th-sort[data-dir="desc"]::after { content: "↓"; opacity: 1; color: var(--blue-ink); }
.rate { display: flex; align-items: center; gap: 8px; }
.rate .meter { flex: 1; min-width: 40px; margin: 0; }
.rate b { font-variant-numeric: tabular-nums; font-size: .8125rem; min-width: 38px; text-align: right; }

/* Filtres et pagination */
.filters { padding: 16px 20px; }
.filters-grid { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; }
.filters .input { height: 40px; font-size: .9375rem; }
.field--btn .btn { height: 40px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: -8px; }
.per { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); }
.per .select { width: auto; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 14px; border-top: 1px solid var(--border); }
.pager:empty { display: none; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager button:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }
.pager button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pager button:disabled { opacity: .45; cursor: default; }
.pager .gap { padding: 0 4px; color: var(--text-3); }

/* ── Dialogues ───────────────────────────────────────────────────────────── */
.dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px; margin: auto; border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.dialog--lg { width: min(720px, calc(100% - 24px)); }
.dialog--xl { width: min(980px, calc(100% - 24px)); }
.dialog[open] { animation: pop var(--slow) var(--ease); }
.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dialog-head h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.dialog-title { min-width: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field--full { grid-column: 1 / -1; }
.field .label { margin-bottom: 6px; font-size: .8125rem; }
.textarea { font-family: var(--mono); font-size: .8125rem; line-height: 1.5; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; padding: 14px 16px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.meta-grid dt { font-size: .75rem; color: var(--text-3); }
.meta-grid dd { margin-top: 2px; font-size: .875rem; font-weight: 500; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.tab { padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); font-size: .875rem; font-weight: 600; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--blue-ink); border-bottom-color: var(--primary); }
.preview { display: block; width: 100%; height: min(60vh, 560px); border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
.code { margin: 0; padding: 14px 16px; max-height: min(60vh, 560px); overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); font-family: var(--mono); font-size: .75rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); }
.card > .code { border: 0; border-radius: 0; max-height: 360px; }

/* ── Statistiques ────────────────────────────────────────────────────────── */
.bars { display: grid; gap: 12px; }
.bars li { display: grid; gap: 6px; font-size: .875rem; }
.bars .bar-top { display: flex; justify-content: space-between; gap: 12px; }
.bars .bar-top b { font-variant-numeric: tabular-nums; }

/* États vides */
.empty-state { display: grid; justify-items: center; gap: 12px; padding: 64px 20px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--sunken); color: var(--text-3); font-size: 1.25rem; }

/* ── Notifications ───────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 80; display: grid; gap: 8px; width: min(380px, calc(100% - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: var(--r-md); background: #0F1A26; color: #F1F5F9;
  font-size: .875rem; box-shadow: var(--shadow-lg); animation: rise var(--slow) var(--ease);
}
.toast i { margin-top: 3px; color: var(--brand-green); }
.toast--error i { color: #F87171; }
.toast--warn i { color: #FBBF24; }
:root[data-theme="dark"] .toast { background: #E6EDF3; color: #0B1220; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #E6EDF3; color: #0B1220; } }
/* ── Animations ──────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fade { from { opacity: .35; } to { opacity: 1; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* ── Adaptations ─────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--search { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform var(--slow) var(--ease); box-shadow: var(--shadow-lg); width: min(300px, 86vw); }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: inline-grid; }
  .shell { margin-left: 0; }
  .menu-btn { display: inline-grid; margin-left: -8px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none; }
  .content { padding-top: 18px; gap: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 1.5rem; }
  .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .chart, .chart--donut { height: 220px; }
  .filters-grid { grid-template-columns: 1fr 1fr; }
  .filters-inline { width: 100%; }
  .filters-inline .select { flex: 1; min-width: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .dialog { padding: 18px; }
  .inline-form { flex-direction: column; }
  .page-actions .btn { padding: 0 12px; }
  .toasts { right: 12px; left: 12px; width: auto; }

  /* Tableaux en cartes */
  .table--responsive thead { display: none; }
  .table--responsive, .table--responsive tbody, .table--responsive tr, .table--responsive td { display: block; width: 100%; }
  .table--responsive tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table--responsive tbody tr:last-child { border-bottom: 0; }
  .table--responsive td { padding: 2px 0; border: 0; }
  .table--responsive td[data-label]::before { content: attr(data-label) " · "; color: var(--text-3); font-size: .75rem; }
  .table--responsive td.cell-main { font-weight: 600; padding-right: 96px; }
  .table--responsive td.cell-badge { position: absolute; top: 12px; right: 16px; width: auto; }
  .table--responsive .clip { max-width: none; white-space: normal; }
  .table--responsive .num { text-align: left; }
  .empty-cell { text-align: center !important; }
}

@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar, .topbar, .page-actions, .quick-actions, .toasts, .app-foot { display: none !important; }
  .shell { margin: 0; }
  .card { break-inside: avoid; box-shadow: none; }
}

/* ==========================================================================
   COMPOSANTS COMMUNS AUX OUTILS GEST CORP
   ========================================================================== */

/* ── Formulaires ─────────────────────────────────────────────────────────── */
form.inline { display: inline-flex; margin: 0; }
.field { min-width: 0; }
.auth-form .field + .field, .auth-form .field + .btn { margin-top: 18px; }
.auth-form .btn { margin-top: 22px; }
.form-stack { display: grid; gap: 16px; justify-items: start; }
.form-stack > .field, .form-stack > .alert, .form-stack > .btn--block, .form-stack > p { width: 100%; }
.form-stack > .alert { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary); }
.input--otp {
  height: 56px; text-align: center; font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .35em; padding: 0 0 0 .35em; font-variant-numeric: tabular-nums;
}
.input--otp::placeholder { color: var(--border-strong); letter-spacing: .35em; }
.input--recovery { font-size: 1.125rem; letter-spacing: .14em; text-transform: uppercase; }
.input--otp-sm { height: 46px; font-size: 1.125rem; letter-spacing: .2em; max-width: 260px; }
.auth-links { display: grid; justify-items: center; gap: 10px; margin-top: 22px; text-align: center; }
.auth-links .link-sm { display: inline-flex; align-items: center; gap: 6px; }
.auth-badge--green { background: linear-gradient(135deg, var(--brand-green), #1E9E57); box-shadow: 0 10px 24px -10px var(--brand-green); }
.auth-badge--red { background: linear-gradient(135deg, #F87171, var(--bad)); box-shadow: 0 10px 24px -10px var(--bad); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav-group { margin: 14px 12px 6px; font-size: .6875rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.nav-group:first-child { margin-top: 0; }
.nav-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--text)); font-size: .6875rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.nav-count--err { background: var(--bad-soft); color: var(--bad); }
.nav-note { display: flex; gap: 10px; margin: 4px; padding: 12px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--blue-ink); font-size: .8125rem; line-height: 1.45; }
.nav-note i { margin-top: 2px; }
.user-chip { padding: 4px; margin: -4px; border-radius: var(--r-sm); color: inherit; text-decoration: none; flex: 1; transition: background var(--fast) var(--ease); }
.user-chip:hover, .user-chip[aria-current="page"] { background: var(--sunken); }
.user-meta { display: grid; min-width: 0; line-height: 1.25; }
.user-sub { display: flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-3); }
.user-sub .fa-shield-halved { color: var(--ok); }

/* ── Boutons, badges, étiquettes ─────────────────────────────────────────── */
.btn--danger-solid { background: var(--bad); color: #fff; }
.btn--danger-solid:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 85%, #000); }
.badge--ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 75%, var(--text)); }
.badge--ok .dot { background: var(--ok); }
.badge--warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 80%, var(--text)); }
.badge--warn .dot { background: var(--warn); }
.badge--err { background: var(--bad-soft); color: color-mix(in srgb, var(--bad) 80%, var(--text)); }
.badge--err .dot { background: var(--bad); }
.badge--info { background: var(--blue-soft); color: var(--blue-ink); }
.badge--info .dot { background: var(--brand-blue); }
.badge--na .dot { background: var(--text-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.tag i { font-size: .75rem; }
.tag--ok { color: var(--green-ink); }
.tag--err { color: var(--bad); }
.tag--warn { color: var(--warn); }
.tag--na { color: var(--text-3); }
.tone { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border-radius: 8px; font-size: .75rem; vertical-align: middle; }
.tone--ok { background: var(--ok-soft); color: var(--ok); }
.tone--err { background: var(--bad-soft); color: var(--bad); }
.alert--warn, .alert--error, .alert--success, .alert--info { margin: 0; }
.content > .alert + .alert { margin-top: -8px; }

/* ── Mise en page ────────────────────────────────────────────────────────── */
.stack { display: grid; gap: 20px; align-content: start; }
.narrow { width: 100%; max-width: 640px; display: grid; gap: 20px; }
.kpi-value--sm { font-size: 1.375rem; letter-spacing: -.02em; }
.card-head--wrap { flex-wrap: wrap; }
.card-head h3 { display: flex; align-items: center; gap: 4px; }
.mono-strong { font-family: var(--mono); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.table td[data-label="Serveur"] { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .8125rem; }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table .cell-actions form.inline + form.inline { margin-left: 4px; }
.table .row-err td { background: color-mix(in srgb, var(--bad-soft) 50%, transparent); }
.filters-grid--3 { grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(160px, 1fr)) auto; }
.field--btn { display: flex; gap: 8px; }

/* Pagination (liens) */
.pager { justify-content: space-between; }
.pager nav { display: flex; flex-wrap: wrap; gap: 4px; }
.pager nav a, .pager .cur { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-2); font-size: .875rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.pager nav a:hover { border-color: var(--border-strong); color: var(--text); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pager .gap { display: inline-grid; place-items: center; }

/* Sélecteur segmenté */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--sunken); }
.segmented a { padding: 6px 12px; border-radius: 7px; color: var(--text-2); font-size: .8125rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.segmented a:hover { color: var(--text); }
.segmented a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

/* ── Utilisateurs ────────────────────────────────────────────────────────── */
.user-cell { display: flex; align-items: center; gap: 12px; }
.avatar--sm { width: 32px; height: 32px; font-size: .6875rem; }
.menu { position: relative; display: inline-block; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--sunken); color: var(--text); }
.menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; min-width: 280px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-md); text-align: left;
}
.menu-list form.inline { display: block; }
.menu-item { width: 100%; height: 38px; justify-content: flex-start; padding: 0 10px; border: 0; background: none; color: var(--text); font-weight: 500; font-size: .875rem; }
.menu-item i { width: 18px; color: var(--text-3); }
.menu-item:hover:not(:disabled) { background: var(--sunken); }
.menu-item--danger, .menu-item--danger i { color: var(--bad); }
.sec-list { display: grid; gap: 12px; font-size: .875rem; color: var(--text-2); }
.sec-list li { display: flex; gap: 12px; }
.sec-list i { width: 18px; margin-top: 3px; text-align: center; color: var(--blue-ink); }
.test-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.copy { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface-2); }
.copy code { flex: 1; padding: 0; border: 0; background: none; }

/* ── Journal ─────────────────────────────────────────────────────────────── */
.log { margin: 0; padding: 6px 0; list-style: none; font-family: var(--mono); font-size: .75rem; line-height: 1.5; max-height: 70vh; overflow: auto; }
.log-line { display: grid; grid-template-columns: 150px 56px minmax(0, 1fr); gap: 12px; padding: 5px 20px; border-left: 3px solid transparent; }
.log-line:hover { background: var(--surface-2); }
.log-line time { color: var(--text-3); white-space: nowrap; }
.log-lvl { font-weight: 700; color: var(--text-3); }
.log-msg { color: var(--text); overflow-wrap: anywhere; }
.log-line--error { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 45%, transparent); }
.log-line--error .log-lvl { color: var(--bad); }
.log-line--warn { border-left-color: var(--warn); }
.log-line--warn .log-lvl { color: var(--warn); }
.log-line--ok .log-lvl { color: var(--ok); }
.log-line--info .log-lvl { color: var(--blue-ink); }

/* ── Mon compte et double authentification ───────────────────────────────── */
.setup-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 0; font-size: .875rem; font-weight: 600; color: var(--text-3); }
.setup-steps li { display: flex; align-items: center; gap: 8px; }
.setup-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); font-size: .75rem; }
.setup-steps [aria-current="step"] { color: var(--text); }
.setup-steps [aria-current="step"] span { border-color: var(--primary); background: var(--primary); color: #fff; }
.setup-steps .is-done { color: var(--green-ink); }
.setup-steps .is-done span { border-color: var(--ok); background: var(--ok); color: #fff; }

.sec-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: inherit; text-decoration: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.sec-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.sec-card > .fa-chevron-right { color: var(--text-3); font-size: .8125rem; }
.sec-card-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; font-size: 1.125rem; }
.sec-card--on .sec-card-icon { background: var(--ok-soft); color: var(--ok); }
.sec-card--off .sec-card-icon { background: var(--warn-soft); color: var(--warn); }
.sec-card-text { display: grid; gap: 2px; flex: 1; min-width: 0; }

.setup { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.setup-step { position: relative; display: grid; gap: 12px; padding: 22px; align-content: start; }
.setup-step h3 { font-size: 1rem; font-weight: 700; }
.setup-step .muted { font-size: .875rem; }
.setup-step .field { margin-top: 4px; }
.setup-step .alert { margin: 0; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font-size: .875rem; font-weight: 750; }
.qr { display: grid; place-items: center; width: 100%; max-width: 220px; aspect-ratio: 1; margin: 4px auto; padding: 12px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--border); }
.qr svg { width: 100%; height: 100%; }
.manual summary { cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--blue-ink); }
.secret { font-size: .9375rem; font-weight: 600; letter-spacing: .06em; word-spacing: .2em; }

.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; padding: 16px; list-style: none; border: 1px dashed var(--border-strong); border-radius: var(--r-md); background: var(--surface-2); counter-reset: code; }
.codes li { display: flex; align-items: center; gap: 10px; counter-increment: code; }
.codes li::before { content: counter(code); width: 18px; font-size: .75rem; color: var(--text-3); text-align: right; font-variant-numeric: tabular-nums; }
.codes code { padding: 6px 10px; font-size: .9375rem; font-weight: 600; letter-spacing: .06em; background: var(--surface); }
.codes-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.codes-done { margin-top: 18px; }
.tf-status { display: flex; gap: 18px; }
.tf-status > div { display: grid; gap: 10px; flex: 1; min-width: 0; }
.tf-status h3 { font-size: 1.0625rem; }
.tf-status .alert { margin: 0; }
.tf-status-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--ok-soft); color: var(--ok); font-size: 1.375rem; }

/* ── Dialogue de confirmation ────────────────────────────────────────────── */
.confirm { display: flex; gap: 16px; }
.confirm h2 { font-size: 1.125rem; font-weight: 650; line-height: 1.3; }
.confirm p { margin-top: 6px; font-size: .9375rem; }
.confirm-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--bad-soft); color: var(--bad); }

/* ── Adaptations ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .setup { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 1180px) {
  .filters-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .filters-grid--3 { grid-template-columns: 1fr 1fr; }
  .filters-grid--3 .field--btn { grid-column: 1 / -1; }
  .field--btn .btn { flex: 1; }
  .table--responsive td.cell-actions { padding-top: 8px; text-align: left; }
  .table--responsive td.cell-main { padding-right: 150px; overflow-wrap: anywhere; }
  .mono-strong { white-space: normal; overflow-wrap: anywhere; }
  .menu-list { left: 0; right: auto; }
  .log-line { grid-template-columns: auto 1fr; gap: 0 10px; padding: 8px 16px; }
  .log-msg { grid-column: 1 / -1; }
  .table--responsive .rate { display: inline-flex; width: 170px; vertical-align: middle; }
  .sec-card > .badge { display: none; }
  .log-line time { font-size: .6875rem; }
  .codes { grid-template-columns: 1fr; }
  .tf-status { flex-direction: column; }
  .pager { justify-content: center; }
  .page-actions { width: 100%; }
}

@media print {
  body.admin * { visibility: hidden; }
  .codes-card, .codes-card * { visibility: visible; }
  .codes-card { position: absolute; inset: 0 auto auto 0; width: 100%; border: 0; box-shadow: none; }
  .codes-actions, .codes-done, .codes-card .alert { display: none !important; }
}
.help { margin-top: 10px; font-size: .8125rem; line-height: 1.6; color: var(--text-2); }
.table-wrap--menu { overflow: visible; }
.grid-2--top { align-items: start; }

/* ==========================================================================
   SSL MONITOR — COMPOSANTS PROPRES
   ========================================================================== */
:root { --violet: #6D28D9; --violet-soft: rgba(109, 40, 217, .11); }
:root[data-theme="dark"] { --violet: #A78BFA; --violet-soft: rgba(167, 139, 250, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --violet: #A78BFA; --violet-soft: rgba(167, 139, 250, .14); } }

.grow { flex: 1; min-width: 0; }
.big { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.is-danger { color: var(--bad) !important; font-weight: 600; }
.stack--sm { gap: 12px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.row-actions--top { margin-top: 18px; }
.prose p + p { margin-top: 10px; }
.badge--violet { background: var(--violet-soft); color: var(--violet); }
.badge--violet .dot { background: var(--violet); }
.tone-text--ok { color: var(--ok); }
.tone-text--warn { color: var(--warn); }
.tone-text--err { color: var(--bad); }
.btn.is-busy > i:first-child, .icon-btn.is-busy > i { animation: spin .9s linear infinite; }
.auth-cta { margin-top: 22px; }
.check--block { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.check--block input { margin-top: 3px; flex: none; }
.check--block span { display: grid; gap: 2px; }
.check--block b { color: var(--text); font-size: .875rem; }
.check--block small { font-size: .8125rem; color: var(--text-2); line-height: 1.4; }
.resend { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; }
.resend .link-btn:disabled { opacity: .6; cursor: default; }

/* Pastilles colorées (statuts) */
.tone-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; font-size: .8125rem; background: var(--sunken); color: var(--text-3); }
.tone-ico--ok { background: var(--ok-soft); color: var(--ok); }
.tone-ico--warn { background: var(--warn-soft); color: var(--warn); }
.tone-ico--err { background: var(--bad-soft); color: var(--bad); }
.tone-ico--violet { background: var(--violet-soft); color: var(--violet); }
.tone-ico--info { background: var(--blue-soft); color: var(--blue-ink); }
.card-head h3 .tone-ico { width: 28px; height: 28px; margin-right: 6px; }

/* Règle d'alerte */
.policy { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); color: var(--text-2); font-size: .875rem; background: var(--surface); }
.policy i { margin-top: 3px; color: var(--blue-ink); }

/* Tuiles de filtre */
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-xs); transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.tile[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 3px var(--blue-soft); }
.tile-label { display: flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-value { font-size: 1.5rem; font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .dot { box-shadow: none; }
.tile--ok .dot { background: var(--ok); } .tile--warn .dot { background: var(--warn); } .tile--err .dot { background: var(--bad); }
.tile--violet .dot { background: var(--violet); } .tile--info .dot { background: var(--brand-blue); } .tile--na .dot { background: var(--text-3); }
.tile--err:not(.is-zero) .tile-value { color: var(--bad); }
.tile--warn:not(.is-zero) .tile-value { color: var(--warn); }
.tile--violet:not(.is-zero) .tile-value { color: var(--violet); }
.tile.is-zero .tile-value { color: var(--text-3); }

/* Barre d'outils (recherche, tri) */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar .input { height: 42px; }
.toolbar .select { width: auto; min-width: 220px; }
.toolbar .input-group { min-width: 220px; }

/* Sélection multiple */
.selectbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: var(--blue-soft); border-bottom: 1px solid var(--border); font-size: .875rem; font-weight: 600; color: var(--blue-ink); }
.table .cell-check { width: 44px; padding-right: 0; }
.table .cell-check input { width: 16px; height: 16px; accent-color: var(--primary); }
.table tr.is-selected td { background: color-mix(in srgb, var(--blue-soft) 60%, transparent); }
.flash-row td { animation: flashrow 1.6s var(--ease); }
@keyframes flashrow { from { background: var(--green-soft); } to { background: transparent; } }

/* Tableau des certificats */
.dom { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dom-text { display: grid; min-width: 0; }
.dom-name { font-family: var(--mono); font-size: .8125rem; font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
a.dom-name:hover { color: var(--blue-ink); text-decoration: underline; }
.dom-url { font-size: .75rem; color: var(--text-3); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.dom-url:hover { color: var(--blue-ink); }
.err-text { display: block; max-width: 260px; margin-top: 4px; font-size: .75rem; color: var(--violet); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-main { display: block; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-sub { display: block; font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.table .cell-actions { display: flex; justify-content: flex-end; gap: 2px; }
.table td.cell-actions { display: table-cell; }
.table td.cell-actions .icon-btn { width: 34px; height: 34px; }
.table--certs td { vertical-align: middle; }

/* Jauge de validité (90 jours) avec le repère de la date d'alerte */
.gauge { position: relative; display: block; width: 120px; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--border); }
.gauge > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ok); }
.gauge > i { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--text-3); }
.gauge--warn > span { background: var(--warn); } .gauge--err > span { background: var(--bad); } .gauge--violet > span { background: var(--violet); }
.gauge--lg { width: 100%; height: 8px; }
.dates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dates-grid .label { margin-bottom: 4px; font-size: .75rem; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* Historique de disponibilité */
.beats { display: inline-flex; gap: 2px; align-items: flex-end; }
.beats i { width: 5px; height: 18px; border-radius: 2px; background: var(--border); }
.beats i.up { background: var(--ok); }
.beats i.down { background: var(--bad); }
.beats--wide { display: flex; margin-top: 14px; }
.beats--wide i { flex: 1; width: auto; max-width: 10px; }

/* Listes simples */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.rows li:last-child { border-bottom: 0; }
.rows--scroll { max-height: 340px; overflow: auto; }
details.card > summary { list-style: none; cursor: pointer; }
details.card > summary::-webkit-details-marker { display: none; }

/* Vérification par lots */
.radio-cards { display: grid; gap: 8px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease); }
.radio-card:hover { border-color: var(--border-strong); }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--blue-soft); }
.radio-card input { margin-top: 4px; accent-color: var(--primary); }
.radio-card span { display: grid; gap: 2px; }
.radio-card b { font-size: .9375rem; }
.radio-card em { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--sunken); font-size: .75rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.radio-card small { font-size: .8125rem; color: var(--text-2); }
.progress { height: 10px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-blue), var(--brand-green)); transition: width var(--slow) var(--ease); }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .8125rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.runlog { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; border-top: 1px solid var(--border); }
.runlog li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 20px; border-bottom: 1px solid var(--border); }

/* Statistiques */
.stackbar .seg { display: block; }
.seg--ok { background: var(--ok); } .seg--warn { background: var(--warn); } .seg--err { background: var(--bad); }
.seg--violet { background: var(--violet); } .seg--na { background: var(--text-3); }
.weekbars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: end; height: 200px; }
.weekbar { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; height: 100%; }
.weekbar-n { font-size: .75rem; font-weight: 700; color: var(--text-2); min-height: 1em; font-variant-numeric: tabular-nums; }
.weekbar-col { align-self: end; width: 100%; max-width: 42px; height: 2%; border-radius: 6px 6px 2px 2px; background: var(--brand-blue); opacity: .85; }
.weekbar-col--err { background: var(--bad); } .weekbar-col--warn { background: var(--warn); }
.weekbar-lbl { font-size: .6875rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Journal compact */
.log--compact { max-height: 320px; }
.log--compact .log-line { grid-template-columns: 1fr; padding: 6px 20px; }
.segmented--wrap { flex-wrap: wrap; }

/* ── Page publique ──────────────────────────────────────────────────── */
.page-public { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(70% 40% at 100% 0%, var(--glow-a), transparent 70%), radial-gradient(60% 40% at 0% 30%, var(--glow-b), transparent 70%), var(--bg); }
.public-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px var(--gutter); }
.public-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.public-brand img { border-radius: 50%; }
.public-brand span { display: grid; line-height: 1.2; }
.public-brand strong { font-weight: 750; }
.public-brand span span { font-size: .75rem; color: var(--text-3); }
.public-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px var(--gutter) 48px; display: grid; gap: 18px; align-content: start; }
.public-hero { text-align: center; padding: 28px 0 8px; }
.public-hero h1 { margin-top: 10px; font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.public-hero .muted { margin-top: 10px; }
.health { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-lg); border: 1px solid; font-size: .9375rem; }
.health i { font-size: 1.375rem; }
.health div { display: grid; }
.health span { color: var(--text-2); font-size: .875rem; }
.health--ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.health--ok i { color: var(--ok); }
.health--warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.health--warn i { color: var(--warn); }
.public-search { display: flex; gap: 10px; }
.public-search .input-group { flex: 1; }
.public-search .input, .public-search .btn { height: 52px; }
.public-search .input { font-size: 1.0625rem; }
.public-list { list-style: none; margin: 0; padding: 0; }
.public-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.public-list li:last-child { border-bottom: 0; }
.public-dom { flex: 1; min-width: 0; font-family: var(--mono); font-size: .875rem; font-weight: 600; overflow-wrap: anywhere; }
.public-note { display: flex; justify-content: center; align-items: center; gap: 8px; }
.public-foot { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); text-align: center; font-size: .8125rem; color: var(--text-3); }
.public-foot a { color: inherit; }

/* ── Adaptations ────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .hide-md { display: none; }
}
@media (max-width: 720px) {
  .tiles, .tiles--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile { padding: 10px 12px; }
  .tile-value { font-size: 1.25rem; }
  .toolbar .select, .toolbar .input-group { min-width: 0; width: 100%; flex: 1 1 100%; }
  .toolbar .btn { flex: 1; }
  .table--responsive td.cell-check { position: absolute; top: 14px; left: 12px; width: auto; padding: 0; }
  .table--certs tbody tr, .table--responsive tbody tr:has(.cell-check) { padding-left: 40px; }
  .table--responsive td.cell-actions { display: flex; justify-content: flex-start; gap: 4px; padding-top: 8px; }
  .table--responsive td.cell-badge .d-sub, .table--responsive .err-text { display: none; }
  .table--responsive td.cell-main { padding-right: 120px; }
  .table--responsive .dom-name, .table--responsive .dom-url { max-width: 100%; }
  .gauge { display: inline-block; vertical-align: middle; width: 90px; margin: 0 0 0 8px; }
  .table--responsive .d-main, .table--responsive .d-sub { display: inline; }
  .table--responsive .d-sub::before { content: " · "; }
  .dates-grid { grid-template-columns: 1fr; }
  .weekbars { height: 160px; gap: 4px; }
  .weekbar-lbl { font-size: .625rem; }
  .weekbar:nth-child(even) .weekbar-lbl { visibility: hidden; }
  .card-head { flex-wrap: wrap; }
  .card-head .card-meta { flex-basis: 100%; }
  .public-search { flex-direction: column; }
  .public-hero { padding-top: 12px; }
  .rows li { padding: 10px 16px; flex-wrap: wrap; }
  .beats i { width: 4px; }
}

/* Contrôles (liste avec pastille d'état) */
.checks { display: grid; list-style: none; margin: 0; padding: 0; }
.checks li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .875rem; }
.checks li:last-child { border-bottom: 0; }
.checks b { font-weight: 600; text-align: right; color: var(--text-2); }
.checks .is-ok { color: var(--ok); }
.checks .is-warn { color: var(--warn); }
