/* GhostSafe 3.0 — mode classique. Identité : bleu nuit → bleu (logo). Sobre, contrasté. */
:root {
  --navy: #0B2A4A; --blue: #1667B7; --blue-2: #1E88D6; --violet: #5560D4;
  --primary: var(--blue); --primary-ink: #fff; --primary-hover: #0F4F8F;
  --grad: linear-gradient(135deg, #0B2A4A 0%, #1667B7 70%, #5560D4 100%);
  --bg: #F2F5F9; --card: #FFFFFF; --text: #0B1B2E; --muted: #5A6B80; --line: #DDE4EC; --inp: #FFFFFF; --inp-line: #C5D0DC;
  --ok: #08805A; --warn: #B45309; --bad: #C81E3A;
  --perso: #2A9471; --pro: #AD1732; --equipe: #2563EB;
  --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: #3B8EEA; --primary-hover: #5AA2F0;
  --bg: #08111F; --card: #101C2E; --text: #EAF1FA; --muted: #93A4BA; --line: #1D2C43; --inp: #0B1626; --inp-line: #2A3C57;
  --ok: #34D399; --warn: #FBBF24; --bad: #FB7185;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.mono { font-family: var(--mono); }

/* ── Écrans plein cadre (accueil, PIN) ─────────────────── */
.screen { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
.welcome-in { width: 100%; max-width: 420px; }
.welcome-logo { width: 220px; display: block; margin: 0 auto 22px; }
[data-theme="dark"] .welcome-logo { filter: brightness(0) invert(1); }
.welcome h1 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; text-align: center; }
.welcome .muted { text-align: center; margin: 0 0 22px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--inp-line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: var(--card); }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.choice input { accent-color: var(--primary); margin-top: 3px; width: 18px; height: 18px; flex: none; }
.choice small { display: block; }
.w-leak { font-size: 13px; font-weight: 600; min-height: 4px; margin: 4px 0 10px; }

.lock-in { width: 100%; max-width: 320px; text-align: center; }
.lock-icon { width: 76px; height: 76px; border-radius: 18px; margin-bottom: 14px; }
.lock-title { font-size: 20px; font-weight: 800; }
.pin-dots { display: flex; justify-content: center; gap: 12px; margin: 22px 0 8px; }
.pin-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text); }
.pin-dot.on { background: var(--text); }
.pin-err { min-height: 20px; color: var(--bad); font-weight: 600; font-size: 13.5px; margin-bottom: 10px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.key { height: 62px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); font-size: 22px; font-weight: 600; }
.key:active { background: var(--primary); color: #fff; }
.key-ok { background: var(--primary); color: #fff; border-color: var(--primary); }
.lock .link { display: block; margin: 6px auto; }

/* ── Structure de l'appli ──────────────────────────────── */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
.view { padding-top: env(safe-area-inset-top); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 10px; position: sticky; top: 0; z-index: 5; background: var(--bg); }
.bar-sub { margin-bottom: 4px; }
.brand { background: none; border: 0; padding: 0; display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, #1677C8, #5560D4); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .brand { color: #fff; }
[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }
.bar-actions { display: flex; gap: 8px; }
.bar-title { font-weight: 800; font-size: 17px; }
.bar-title-l { font-size: 22px; }
.back { background: none; border: 0; font-weight: 700; color: var(--primary); display: inline-flex; gap: 6px; align-items: center; padding: 8px 0; }

.ibtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.ibtn:hover { border-color: var(--primary); color: var(--primary); }
.ibtn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 20px; }
.ibtn-primary:hover { background: var(--primary-hover); color: #fff; }
.ibtn-danger:hover { border-color: var(--bad); color: var(--bad); }
.ibtn-flat { border: 0; background: transparent; width: 34px; height: 34px; }
.ibtn.busy i { animation: spin .8s linear infinite; }
.ibtn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.search { position: relative; margin: 2px 0 12px; }
.search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--inp-line); background: var(--inp); color: var(--text); font: inherit; font-size: 16px; padding: 0 14px 0 40px; }
.search input:focus { outline: none; border-color: var(--primary); }

.health { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 11px 14px; margin-bottom: 12px; font-weight: 700; font-size: 14px; text-align: left; }
.health.bad { background: var(--bad); color: #fff; }
.health.ok { background: var(--card); color: var(--ok); border: 1px solid var(--line); }
.health i { font-size: 18px; } .health span { flex: 1; }

/* Liste des sites */
.group { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 4px 6px; display: flex; align-items: center; gap: 8px; }
.group::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--gc, var(--primary)); }
.list-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.site { display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.site:last-child { border-bottom: 0; }
.site:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.site-txt { flex: 1; min-width: 0; }
.site-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-sub .bad { color: var(--bad); font-weight: 700; }
.avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; flex: none; position: relative; text-transform: uppercase; }
.avatar .flag { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bad); border: 2px solid var(--card); font-size: 10px; display: flex; align-items: center; justify-content: center; }
.avatar-lg { width: 64px; height: 64px; font-size: 26px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty > i { font-size: 40px; color: var(--primary); display: block; margin-bottom: 8px; }
.empty > b { color: var(--text); display: block; font-size: 16px; margin-bottom: 4px; }

/* Détail */
.d-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 16px; }
.d-name { font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.d-prof { margin-top: 3px; }
.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #fff; border-radius: 6px; padding: 2px 8px; text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
.row-k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.pwd-line { display: flex; align-items: center; gap: 8px; }
.pwd { flex: 1; min-width: 0; font-family: var(--mono); font-size: 18px; font-weight: 600; word-break: break-all; }
.leak { font-size: 13px; font-weight: 600; margin-top: 8px; }
.leak:empty { display: none; }
.leak.ok { color: var(--ok); } .leak.bad { color: var(--bad); } .leak.wait { color: var(--muted); font-weight: 500; }
.leak .link { font-size: 13px; }

/* Formulaires */
.lbl { display: block; font-weight: 700; font-size: 13.5px; margin: 14px 0 6px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.inp { width: 100%; height: 48px; border: 1.5px solid var(--inp-line); border-radius: 12px; background: var(--inp); color: var(--text); font: inherit; font-size: 16px; padding: 0 14px; }
.inp:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.inp-flat { border: 0; height: 36px; padding: 0; background: transparent; }
.inp-flat:focus { box-shadow: none; }
.inp-xs { width: 90px; height: 38px; font-size: 14px; }
.field { position: relative; }
.field .inp { padding-right: 50px; }
.field-btn { position: absolute; right: 4px; top: 4px; width: 44px; height: 40px; border: 0; background: none; color: var(--muted); font-size: 18px; }
.meter { height: 5px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.meter-bar { height: 100%; width: 0; transition: width .25s, background .25s; }
.meter-txt { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.sel { height: 36px; border-radius: 10px; border: 1.5px solid var(--inp-line); background: var(--inp); color: var(--text); font: inherit; font-size: 14px; padding: 0 8px; }

.btn { height: 46px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; }
.btn-primary { background: var(--primary); color: #fff; width: 100%; margin-top: 12px; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-lg { height: 52px; font-size: 16px; margin-top: 18px; }
.btn-sm { height: 38px; width: auto; margin: 0; font-size: 14px; }
.btn-ghost { background: var(--card); border-color: var(--inp-line); color: var(--text); flex: 1; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon { flex: 0 0 52px; padding: 0; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; }
.link { background: none; border: 0; color: var(--primary); font-weight: 700; font-size: 14px; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.link-adv { text-decoration: none; display: inline-flex; gap: 6px; margin-top: 10px; }

.seg { display: flex; border: 1.5px solid var(--inp-line); border-radius: 12px; overflow: hidden; background: var(--inp); }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 6px; font-weight: 700; font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.seg button + button { border-left: 1.5px solid var(--inp-line); }
.seg button.on { background: var(--sc, var(--primary)); color: #fff; }
.seg-sm button { padding: 6px 12px; font-size: 13px; }

.adv { margin-top: 12px; border: 1.5px dashed var(--inp-line); border-radius: var(--radius); padding: 4px 14px 14px; }
.adv-warn { background: var(--warn); color: #fff; font-size: 13px; font-weight: 600; border-radius: 10px; padding: 8px 12px; margin-top: 12px; }
.row-sp { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-sp .lbl { margin: 12px 0 6px; }
.val { color: var(--primary); font-weight: 800; }
input[type="range"] { width: 100%; accent-color: var(--primary); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0; }
.chip { border: 1.5px solid var(--inp-line); background: var(--inp); border-radius: 9px; padding: 7px 12px; font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); }
.chip.active, .chip.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.sw { position: relative; flex: 0 0 46px; width: 46px; height: 26px; }
.sw input { opacity: 0; position: absolute; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; border-radius: 13px; background: var(--inp-line); transition: background .2s; }
.sw span::before { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked + span { background: var(--primary); }
.sw input:checked + span::before { transform: translateX(20px); }

/* Analyse */
.score { display: flex; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s, stroke .3s; }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-txt b { font-size: 26px; } .ring-txt small { font-size: 11.5px; }
.stats { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { border: 1.5px solid var(--line); border-radius: 12px; text-align: center; padding: 10px 4px; }
.stat b { display: block; font-size: 22px; color: var(--ok); }
.stat-warn b { color: var(--warn); } .stat-bad b { color: var(--bad); }
.scan-prog { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.scan-prog div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.sec-title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 4px 6px; }
.st { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.st-ok { color: var(--ok); border: 1.5px solid currentColor; } .st-weak { background: var(--warn); color: #fff; }
.st-bad { background: var(--bad); color: #fff; } .st-none { color: var(--muted); border: 1.5px dashed var(--inp-line); }

/* Lignes de réglages / outils */
.li { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.li:last-child { border-bottom: 0; }
button.li:hover, a.li:hover { background: color-mix(in srgb, var(--primary) 5%, transparent); }
.li > span { flex: 1; min-width: 0; }
.li > .st, .li > .sw, .li > .seg, .li > .sel, .li > .btn, .li > .cnt { flex: none; }
.li small { display: block; }
.li-ic { font-size: 19px; color: var(--primary); width: 24px; text-align: center; flex: none; }
.li > .bi-chevron-right { color: var(--muted); }
.li-danger b, .li-danger .li-ic { color: var(--bad); }
.li-static { cursor: default; }
label.li-static { cursor: pointer; }

/* Barre d'onglets */
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.tabs button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-radius: 10px; }
.tabs button i { font-size: 20px; }
.tabs button.on { color: var(--primary); }
.tabs button.on i { transform: scale(1.06); }
@media (min-width: 600px) { .tabs { border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; } }

.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
[data-theme="dark"] .toast { background: #fff; color: var(--navy); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Dialogues */
dialog { border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 16px 18px 18px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(6, 14, 26, .6); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 17px; margin-bottom: 8px; }
#alert-body p { margin: 6px 0; }
.qr { display: flex; justify-content: center; background: #fff; padding: 12px; border-radius: 12px; margin: 10px 0; }
.copy-box { display: flex; gap: 6px; }
.copy-box .inp { font-family: var(--mono); font-size: 12px; }

/* Générateur */
#generator-dialog .seg { margin: 8px 0; }
.gen-out { height: auto; min-height: 84px; padding: 10px; resize: vertical; margin-top: 6px; font-size: 14px; }
.gp-langs, .gp-palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gp-lang, .gp-add { border: 1.5px solid var(--inp-line); background: var(--inp); border-radius: 8px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; }
.gp-lang[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.gp-preview { font-family: var(--mono); font-size: 14px; word-break: break-all; padding: 10px; margin-top: 8px; background: var(--inp); border: 1.5px solid var(--inp-line); border-radius: 10px; }
.gp-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; font-weight: 700; }
.gp-bar-track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.gp-bar { height: 100%; width: 0; transition: width .25s; }
.gp-advanced { margin-top: 10px; } .gp-advanced summary { cursor: pointer; font-weight: 700; font-size: 13.5px; color: var(--primary); }
.gp-plan { display: flex; flex-wrap: wrap; gap: 8px; min-height: 56px; padding: 10px; border: 1.5px dashed var(--inp-line); border-radius: 10px; background: var(--inp); margin-top: 6px; }
.gp-plan.gp-recoit { border-color: var(--primary); }
.gp-empty { color: var(--muted); font-size: 12.5px; align-self: center; }
.gp-bloc { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--inp-line); border-radius: 8px; padding: 6px 8px; cursor: grab; user-select: none; touch-action: none; }
.gp-cat { font-size: 9.5px; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.gp-lg { background: var(--text); color: var(--bg); border-radius: 4px; padding: 0 4px; font-size: 9px; }
.gp-mot { font-weight: 600; font-size: 13px; }
.gp-x { border: none; background: transparent; color: var(--bad); font-size: 15px; line-height: 1; padding: 0 2px; }
.gp-grab { opacity: .35; }
.gp-ghost { position: fixed; z-index: 9999; pointer-events: none; background: var(--card); border: 1px solid var(--primary); border-radius: 8px; padding: 6px 8px; }
.gp-times { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Classes attendues par gs-secret.js / gs-share.js (dialogues construits à la volée) */
.premium-input { width: 100%; height: 46px; border: 1.5px solid var(--inp-line); border-radius: 12px; background: var(--inp); color: var(--text); font: inherit; padding: 0 12px; }
.btn-generate { width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.btn-generate:hover { background: var(--primary-hover); }
.btn-generate.btn-ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--inp-line); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.action-btn { background: none; border: 0; font-size: 16px; color: var(--muted); height: 34px; min-width: 34px; border-radius: 8px; }
.range-header { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.range-header .val { color: var(--primary); font-weight: 800; }
.t-err { color: var(--bad); } .t-ok { color: var(--ok); } .t-warn { color: var(--warn); }

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

/* Installation (PWA) */
.install { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1.5px solid var(--primary); border-radius: 12px; padding: 10px 8px 10px 12px; margin-bottom: 12px; }
.install img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.install > span { flex: 1; min-width: 0; } .install small { display: block; }
.ios-steps { margin: 8px 0; padding-left: 20px; } .ios-steps li { margin: 8px 0; }
.toast button { background: none; border: 0; color: inherit; font-weight: 800; text-decoration: underline; margin-left: 8px; pointer-events: auto; }
.toast.on { pointer-events: auto; }
.av-ic { width: 52%; height: 52%; fill: currentColor; }

/* Alias attendus par gs-secret.js / gs-share.js / générateur (noms de variables du mode expert) */
:root { --bg-color: var(--bg); --bg-image: none; --text-main: var(--text); --text-muted: var(--muted);
  --input-bg: var(--inp); --input-border: var(--inp-line); --err: var(--bad); }

/* Création de la clé, 2FA, rapports, à propos, Safe++ */
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.welcome .link { display: block; margin: 10px auto 0; }
.tfa-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.tfa-row small { display: block; }
.site-name .bi-shield-lock-fill { color: var(--primary); font-size: 12px; margin-left: 4px; }
.cnt { min-width: 30px; text-align: center; font-weight: 800; font-size: 13px; border-radius: 8px; padding: 3px 8px; flex: none; }
.cnt-ok { color: var(--ok); border: 1.5px solid currentColor; } .cnt-warn { background: var(--warn); color: #fff; } .cnt-bad { background: var(--bad); color: #fff; }
.li.is-sel { background: color-mix(in srgb, var(--primary) 10%, transparent); box-shadow: inset 4px 0 0 var(--primary); }
.about-logo { display: block; width: 190px; margin: 6px auto 14px; }
[data-theme="dark"] .about-logo { filter: brightness(0) invert(1); }
.info-t { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: center; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.info-row > span:first-child { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.info-row > span:last-child { color: var(--muted); font-weight: 600; text-align: right; }
.dk-code { font-family: var(--mono); font-size: 15px; font-weight: 700; text-align: center; letter-spacing: .04em; word-break: break-all; background: var(--inp); border: 1.5px dashed var(--inp-line); border-radius: 10px; padding: 10px; margin: 8px 0; user-select: all; }
.sec-danger { color: var(--bad); } .list-danger { border: 1.5px solid var(--bad); }
.ibtn-fav.on { color: #D97706; border-color: #D97706; }
.group .bi { color: #D97706; margin-right: -2px; }
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
select.inp { appearance: auto; }
.list-view { margin-bottom: 12px; }
.site-name .bi-star-fill { color: #D97706; font-size: 12px; margin-left: 5px; }
.group .bi-person-fill, .group .bi-briefcase-fill, .group .bi-people-fill { color: var(--gc); }

/* Codes 2FA */
.tabs button span { white-space: nowrap; }
.totp { cursor: pointer; }
.t-right { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.t-code { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.t-left { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.t-left.soon { color: var(--bad); }
.t-big { text-align: center; margin-top: 4px; } .t-big .t-code { font-size: 38px; }
.t-big-left { text-align: center; margin-bottom: 4px; }
.t-warn-box { margin: 14px 2px 0; } .t-warn-box .bi { color: var(--warn); }
#t-cam { margin-top: 10px; text-align: center; } #t-video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; object-fit: cover; }
#d-totp:empty { display: none; }
.tfa-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tfa-head .row-k { margin: 0; } .tfa-head .st { display: inline-flex; align-items: center; gap: 5px; }
.tfa-txt { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.tfa-add { width: 100%; margin-top: 0; } .tfa-alt { display: block; margin: 8px auto 0; font-size: 13px; }
#d-totp .t-code { font-size: 18px; }

/* Assistant de première utilisation */
.wiz-choice { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1.5px solid var(--inp-line); border-radius: 14px; padding: 16px; margin-top: 12px; }
.wiz-choice:hover { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.wiz-choice > i:first-child { font-size: 26px; color: var(--primary); width: 32px; text-align: center; flex: none; }
.wiz-choice > span { flex: 1; } .wiz-choice b { font-size: 16px; } .wiz-choice small { display: block; margin-top: 2px; }
.wiz-choice > .bi-chevron-right { color: var(--muted); }
.wiz-dots { display: flex; justify-content: center; gap: 8px; margin: -8px 0 16px; }
.wiz-dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--line); }
.wiz-dots span.on { background: var(--primary); } .wiz-dots span.done { background: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.wiz-point { display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 10px 2px; }
.wiz-point > i { font-size: 22px; color: var(--primary); width: 28px; text-align: center; flex: none; margin-top: 2px; }
.wiz-point small { display: block; font-size: 13.5px; margin-top: 1px; } .wiz-point.warn > i { color: var(--warn); }
.wiz-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
#wz-cam { margin-top: 10px; text-align: center; } #wz-video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; object-fit: cover; }
#v-wizard .back, #v-welcome .back { display: inline-flex; margin-bottom: 4px; }
#v-wizard .welcome-in > .muted { margin-bottom: 14px; } #v-wizard .ios-steps { text-align: left; }
.result-input { width: 100%; height: 44px; border: 1.5px solid var(--inp-line); border-radius: 12px; background: var(--inp); color: var(--text); font: 12.5px var(--mono); padding: 0 12px; }
.tfa-add.btn-primary { background: var(--card); color: var(--primary); border-color: var(--primary); }
.tfa-add.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-row .btn-ghost:not(.btn-icon) { font-size: 14px; white-space: nowrap; padding: 0 10px; }
