/* Vigie Centaure — tableau de bord
   Un poste de veille : papier gris-bleu, encre ardoise, voyants de signalisation. */

:root {
  --paper: #eef2f1;
  --panel: #ffffff;
  --ink: #17242b;
  --ink-soft: #33444c;
  --muted: #5e6e74;
  --line: #d3dcda;
  --line-soft: #e4eae8;
  --sea: #24566b;
  --sea-dark: #183f50;
  --critical: #d33a2c;
  --critical-bg: #fbeceb;
  --warning: #d98e04;
  --warning-bg: #fdf4e2;
  --ok: #2f8f5b;
  --ok-bg: #e8f4ed;
  --info: #4a6fa5;
  --info-bg: #ebf0f8;
  --unknown: #8c979b;
  --radius: 6px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
}
a { color: var(--sea); text-underline-offset: 2px; }
a:hover { color: var(--sea-dark); }
code, pre { font-family: var(--mono); font-size: 0.86em; }
code { background: var(--line-soft); padding: 1px 5px; border-radius: 4px; word-break: break-all; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 650; letter-spacing: -0.01em; margin: 6px 0 10px; }
h2 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 650; margin: 22px 0 8px; color: var(--ink-soft); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- En-tête ---------- */
.top {
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px; height: 58px;
  background: var(--ink); color: #e7eeec;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 5px; border: 2px solid #9fb3b8;
  display: grid; place-items: center;
}
.brand-mark span { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,143,91,.25); }
.brand-name { font-weight: 650; letter-spacing: 0.01em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  color: #c4d1ce; text-decoration: none; padding: 7px 12px; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav a.is-current { color: #fff; background: rgba(255,255,255,.12); }
.who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: #9fb3b8; }
.who .link { color: #c4d1ce; }

.banner { padding: 10px 24px; font-size: 14px; }
.banner-warn { background: var(--warning-bg); color: #6d4700; border-bottom: 1px solid #f1d9a6; }
.banner-error { background: var(--critical-bg); color: #8a1f15; border-bottom: 1px solid #f2c3bf; }

.main { max-width: 1180px; margin: 0 auto; padding: 26px 24px 40px; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 24px 30px; color: var(--muted); font-size: 12px; }

.flash { max-width: 1180px; margin: 16px auto 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid; font-size: 14px; }
.main ~ .flash, .top ~ .flash { margin-left: auto; margin-right: auto; width: calc(100% - 48px); }
.flash-ok { background: var(--ok-bg); border-color: #bcdcc9; color: #1d5c3a; }
.flash-warn { background: var(--warning-bg); border-color: #f1d9a6; color: #6d4700; }
.flash-error { background: var(--critical-bg); border-color: #f2c3bf; color: #8a1f15; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 550; line-height: 1;
  padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #b4c2bf; color: var(--ink); background: #f8faf9; }
.btn-primary { background: var(--sea); border-color: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-dark); border-color: var(--sea-dark); color: #fff; }
.btn-small { padding: 6px 10px; font-size: 13px; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--sea); }
.btn-quiet:hover { background: var(--line-soft); border-color: transparent; color: var(--sea-dark); }
.btn:disabled, .btn:disabled:hover {
  /* Inactif mais lisible : texte gris foncé sur fond gris clair, bordure en pointillés */
  color: #4f5f66; background: #f1f4f3; border-color: #c3cdcb; border-style: dashed; cursor: not-allowed; box-shadow: none;
}
.btn-quiet:disabled, .btn-quiet:disabled:hover { background: transparent; border-color: transparent; color: #4f5f66; }
/* Scripts à coller dans le Terminal cPanel : repérables au premier coup d'œil */
.btn-script { border-color: var(--sea); color: var(--sea-dark); font-weight: 650; }
.btn-script::before { content: ">_"; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--sea); letter-spacing: -1px; }
.btn-script:hover { background: #e9f1f4; border-color: var(--sea-dark); color: var(--sea-dark); }
.btn-danger { color: var(--critical); }
.btn-danger:hover { color: #a3291e; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--sea); text-decoration: underline; cursor: pointer; }
form.inline { display: inline; margin: 0; }
.row-actions, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }

/* ---------- Gravité, étiquettes ---------- */
.sev {
  display: inline-block; font-size: 12px; font-weight: 650; line-height: 1;
  padding: 4px 8px; border-radius: 4px; white-space: nowrap;
}
.sev-critical { background: var(--critical); color: #fff; }
.sev-warning { background: var(--warning); color: #2b1d00; }
.sev-info { background: var(--info-bg); color: var(--info); }
.sev-ok { background: var(--ok-bg); color: var(--ok); }
.sev-unknown { background: var(--line-soft); color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--line-soft); color: var(--ink-soft); }
.tag-prestashop { background: #e7eef8; color: #2d4f7c; }
.tag-woocommerce { background: #efe9f6; color: #5b3a85; }
.tag-wordpress { background: #e6f0f3; color: #24566b; }
.tag-custom, .tag-static { background: #f0ece4; color: #5f5137; }
.tag-pause { background: var(--warning-bg); color: #6d4700; }
.host { color: var(--muted); font-size: 13px; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.count-critical { background: var(--critical); color: #fff; }
.count-warning { background: var(--warning); color: #2b1d00; }

/* ---------- Voyants ---------- */
.lamp { display: inline-flex; align-items: center; gap: 6px; }
.lamp-dot {
  width: 13px; height: 13px; border-radius: 3px; flex: none;
  background: var(--line); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.lamp-ok .lamp-dot { background: var(--ok); }
.lamp-info .lamp-dot { background: var(--ok); box-shadow: inset 0 0 0 3px #8fc7a7; }
.lamp-warning .lamp-dot { background: var(--warning); }
.lamp-critical .lamp-dot { background: var(--critical); box-shadow: 0 0 0 3px rgba(211,58,44,.18); animation: beacon 2.4s ease-in-out infinite; }
.lamp-unknown .lamp-dot { background: var(--unknown); }
.lamp-pending .lamp-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
@keyframes beacon { 0%, 100% { box-shadow: 0 0 0 3px rgba(211,58,44,.18); } 50% { box-shadow: 0 0 0 5px rgba(211,58,44,.05); } }
@media (prefers-reduced-motion: reduce) { .lamp-critical .lamp-dot { animation: none; } }
.lamp-label { font-size: 13px; color: var(--ink-soft); }

.lamps-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 12px 16px; margin: 0 0 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}

/* ---------- Bandeau de disponibilité 24 h ---------- */
.strip { display: inline-flex; gap: 2px; vertical-align: middle; }
.strip i { width: 5px; height: 18px; border-radius: 1px; background: var(--line-soft); }
.strip .s-up { background: #9cc9ae; }
.strip .s-partial { background: var(--warning); }
.strip .s-down { background: var(--critical); }

/* ---------- Vue d'ensemble ---------- */
.headline { margin: 4px 0 22px; }
.headline h1 { font-size: 32px; margin-bottom: 8px; }
.headline-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--ink-soft); }
.tally b { font-size: 17px; margin-right: 3px; }
.tally-critical b { color: var(--critical); }
.tally-warning b { color: #a86c00; }
.tally-ok b { color: var(--ok); }
.tally-off b { color: var(--muted); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 8px; }
.toolbar .search input { width: 340px; max-width: 100%; }

.board { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.board-head, .board-row {
  display: grid;
  grid-template-columns: minmax(200px, 1.5fr) minmax(110px, .7fr) 196px 150px 80px 104px;
  gap: 16px; align-items: center; padding: 11px 18px 11px 16px;
}
.board-head { font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f7f9f8; }
.board-row {
  color: inherit; text-decoration: none;
  border-left: 4px solid transparent; border-bottom: 1px solid var(--line-soft);
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: #f6f9f8; color: inherit; }
.board-row.state-critical { border-left-color: var(--critical); }
.board-row.state-warning { border-left-color: var(--warning); }
.board-row.state-ok { border-left-color: #9cc9ae; }
.board-row.state-off { border-left-color: var(--line); opacity: .62; }
.board-head { border-left: 4px solid transparent; }
.site-name { display: block; font-weight: 600; }
.site-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cell-lamps { display: flex; gap: 7px; }
.cell-count { display: flex; justify-content: flex-end; gap: 4px; }
.legend { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.legend-lamps { display: inline-flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Fiche site ---------- */
.crumbs { font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.site-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; padding-left: 14px; border-left: 5px solid var(--line); }
.site-head.state-critical { border-left-color: var(--critical); }
.site-head.state-warning { border-left-color: var(--warning); }
.site-head.state-ok { border-left-color: var(--ok); }
.site-head h1 { margin: 0 0 4px; }
.site-head .site-meta { font-size: 14px; }
.site-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.client { color: var(--ink-soft); }
.notice { background: var(--warning-bg); border: 1px solid #f1d9a6; color: #6d4700; padding: 9px 13px; border-radius: var(--radius); font-size: 14px; }

.block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; }
.block-end { background: transparent; border: 0; padding: 0; }
.block h2 .muted { font-weight: 400; font-size: 15px; margin-left: 4px; }
.empty { color: var(--muted); margin: 4px 0; }
.lead { font-size: 16px; color: var(--ink-soft); max-width: 70ch; }

/* Alertes */
.alert { border: 1px solid var(--line); border-left-width: 4px; border-radius: var(--radius); margin: 0 0 10px; background: var(--panel); }
.alert-critical { border-left-color: var(--critical); }
.alert-warning { border-left-color: var(--warning); }
.alert-info { border-left-color: var(--info); }
.alert > summary {
  list-style: none; cursor: pointer; padding: 11px 44px 11px 14px; position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
}
.alert > summary::-webkit-details-marker { display: none; }
.alert > summary::after { content: "+"; position: absolute; right: 16px; top: 10px; color: var(--muted); font-weight: 600; font-size: 18px; line-height: 1; }
.alert[open] > summary::after { content: "−"; }
.alert > summary:hover .alert-title { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.incident-ref { margin-top: 10px; }
.incident-ref a { font-weight: 600; }
.procedure { margin-top: 16px; background: var(--critical-bg); border: 1px solid #f2c3bf; border-radius: var(--radius); padding: 10px 16px; }
.procedure summary { cursor: pointer; font-weight: 650; color: #8a1f15; }
.procedure[open] summary { margin-bottom: 8px; }
.alert[open] > summary { border-bottom: 1px solid var(--line-soft); }
.alert-title { font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.alert-site { font-weight: 600; }
.alert-when { font-size: 13px; color: var(--muted); width: 100%; padding-left: 0; }
.alert-body { padding: 12px 16px 14px; }
.detail { white-space: pre-wrap; background: #f7f9f8; border: 1px solid var(--line-soft); padding: 8px 10px; border-radius: 4px; margin: 0 0 10px; max-height: 260px; overflow: auto; overflow-wrap: anywhere; }
.advice { max-width: 82ch; overflow-wrap: anywhere; }
.advice p { margin: 0 0 8px; }
.advice ul { margin: 0 0 10px; padding-left: 20px; }
.advice li { margin: 3px 0; }
.snippet { background: var(--ink); color: #dfe8e6; padding: 10px 12px; border-radius: 4px; overflow-x: auto; margin: 6px 0 10px; }
.snippet code { background: none; padding: 0; color: inherit; word-break: normal; }
.alert-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }

/* Tableaux */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table-compact td { padding: 6px 10px; }
.table .num { text-align: right; }
tr.is-off td { color: var(--muted); }
tr.is-flag td { background: #fffaf0; }
.upd { color: #a86c00; font-weight: 600; }
.strip-wrap { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-left: 6px; }
.stats { margin: 14px 0 0; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 22px; margin: 0 0 6px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; }
.steps { padding-left: 20px; }
.steps li { margin: 4px 0; }
details.ref { border-top: 1px solid var(--line-soft); padding: 8px 0; }
details.ref summary { cursor: pointer; font-weight: 600; }
details.ref ul { margin: 8px 0 4px; padding-left: 18px; font-size: 14px; }
.notes { white-space: normal; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.is-current { color: var(--ink); border-bottom-color: var(--sea); }

.checklist { list-style: none; padding: 0; margin: 0 0 12px; }
.checklist li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.checklist .mark { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; transform: translateY(1px); }
.checklist .is-ok .mark { background: var(--ok); }
.checklist .is-todo .mark { background: var(--warning); }
.checklist .muted p { display: inline; margin: 0; }

/* ---------- Formulaires ---------- */
.form { display: grid; gap: 16px; max-width: 420px; }
.form-wide { max-width: 860px; }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; max-width: none; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 14px; }
.form small { font-weight: 400; color: var(--muted); font-size: 13px; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
input[type=text], input[type=url], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  padding: 9px 11px; border: 1px solid #c3cfcc; border-radius: var(--radius); background: #fff; width: 100%;
}
textarea { font-family: var(--mono); font-size: 13px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(36,86,107,.35); border-color: var(--sea); }

/* ---------- Connexion ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; background: var(--ink); }
.login { width: min(400px, calc(100% - 32px)); background: var(--panel); border-radius: 10px; padding: 30px 30px 26px; }
.brand-large { color: var(--ink); margin-bottom: 4px; }
.brand-large .brand-mark { border-color: var(--ink); }
.brand-large .brand-name { font-size: 20px; }
.login-intro { color: var(--muted); margin: 0 0 18px; }
.login .flash { margin: 0 0 14px; width: auto; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .board-head { display: none; }
  .board-row { grid-template-columns: 1fr auto; grid-template-areas: "site count" "lamps uptime"; gap: 8px 12px; }
  .cell-site { grid-area: site; }
  .cell-lamps { grid-area: lamps; }
  .cell-strip, .cell-theme { display: none; }
  .cell-uptime { grid-area: uptime; }
  .cell-count { grid-area: count; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top { height: auto; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px; }
  .nav { order: 3; flex: 0 0 100%; overflow-x: auto; }
  .who { margin-left: auto; }
  .main { padding: 18px 16px 30px; }
  .headline h1 { font-size: 25px; }
  h1 { font-size: 24px; }
  .block { padding: 16px; }
  .table { display: block; overflow-x: auto; }
  .toolbar .search, .toolbar .search input { width: 100%; }
  .toolbar-actions { width: 100%; }
}

/* ---------- Vérifications ---------- */
.pass { border-color: #b9cfd6; }
.pass-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pass-head h2 { margin: 0; }
.progress { height: 12px; background: var(--line-soft); border-radius: 6px; overflow: hidden; margin: 14px 0 10px; }
.progress-bar { display: block; height: 100%; width: 0; background: var(--sea); border-radius: 6px; transition: width .4s ease; }
@media (prefers-reduced-motion: reduce) { .progress-bar { transition: none; } }
.pass-figures { margin: 0 0 14px; }
.pass-state { display: block; margin-top: 2px; font-size: 13px; }
.types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 20px; }
.types legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.types .check { align-items: flex-start; font-weight: 400; }
.types .check input { margin-top: 4px; }
.user-actions { display: flex; gap: 6px; justify-content: flex-end; }
.notice-done { background: var(--ok-bg); border-color: #bcdcc9; color: #1d5c3a; margin-bottom: 18px; }

/* Statuts de site : en pause, abandonné */
.tag-abandoned { background: var(--line-soft); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.site-head.state-off { border-left-color: var(--line); }
.notice-off { background: var(--line-soft); border-color: var(--line); color: var(--ink-soft); margin-bottom: 14px; }
.state-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 12px 0 14px; }
.state-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.state-option h3 { margin: 0; font-size: 15px; }
.state-option p { margin: 0; font-size: 14px; }
.state-option .form { gap: 10px; max-width: none; margin-top: auto; }
.state-option > form.inline { margin-top: auto; }
.state-option .form button { justify-self: start; }
.state-option-danger { border-color: #efc6c2; background: #fffafa; }
details.abandoned > summary { cursor: pointer; list-style: none; }
details.abandoned > summary::-webkit-details-marker { display: none; }
details.abandoned > summary h2 { display: inline; margin: 0; }
details.abandoned > summary::after { content: "Afficher"; float: right; font-size: 14px; color: var(--sea); }
details.abandoned[open] > summary::after { content: "Masquer"; }
details.abandoned[open] > summary { margin-bottom: 10px; }
a.tally { text-decoration: none; color: inherit; }
a.tally:hover b { text-decoration: underline; }

/* Comptes */
.users { border-top: 1px solid var(--line-soft); margin: 12px 0 14px; }
details.user { border-bottom: 1px solid var(--line-soft); }
details.user > summary { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(180px, 1.6fr) minmax(130px, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; cursor: pointer; list-style: none; }
details.user > summary::-webkit-details-marker { display: none; }
details.user > summary:hover { background: #f7f9f8; }
.user-name { font-weight: 600; }
.user-email { font-size: 14px; overflow-wrap: anywhere; }
.user-last { font-size: 13px; }
.user-toggle { font-size: 13px; color: var(--sea); font-weight: 600; justify-self: end; }
details.user[open] .user-toggle::after { content: " ▴"; }
details.user:not([open]) .user-toggle::after { content: " ▾"; }
.user-body { padding: 6px 4px 18px; display: grid; gap: 12px; }
.user-danger { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.user-danger p { margin: 0; }
details.user-new { border: 1px dashed var(--line); border-radius: var(--radius); padding: 0 12px; }
details.user-new > summary { grid-template-columns: 1fr; color: var(--sea); }
details.user-new > summary .user-name::before { content: "+ "; }
@media (max-width: 640px) {
  details.user > summary { grid-template-columns: 1fr auto; }
  details.user > summary .user-email { grid-column: 1; }
  details.user > summary .user-last { display: none; }
  details.user > summary .user-toggle { grid-row: 1; grid-column: 2; }
}
.grid-2 > label { align-content: start; }
.lamps-row.is-stale { opacity: .55; }

/* ---------- Demander à Claude ---------- */
.ask-open {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(217, 119, 87, .18); border: 1px solid rgba(217, 119, 87, .55);
  padding: 6px 12px; border-radius: 999px;
}
.ask-open:hover { background: rgba(217, 119, 87, .32); }
.ask-spark { width: 9px; height: 9px; border-radius: 50%; background: #d97757; box-shadow: 0 0 0 3px rgba(217, 119, 87, .25); }
.btn-ask { color: #9a4a2f; border-color: #ecc7b9; background: #fdf6f3; }
.btn-ask:hover { background: #f9e8e1; border-color: #e2ad99; color: #7d3a23; }

dialog.ask {
  width: min(920px, calc(100vw - 32px)); height: min(86vh, 900px); max-height: none;
  padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--panel);
  box-shadow: 0 24px 60px rgba(14, 26, 32, .28);
}
dialog.ask[open] { display: flex; flex-direction: column; }
dialog.ask::backdrop { background: rgba(14, 26, 32, .45); }
.ask-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.ask-head h2 { margin: 0; font-size: 18px; }
.ask-label { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ask-head-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ask-body { flex: 1; overflow-y: auto; padding: 16px 20px; background: #fbfcfc; }
.ask-intro p { margin: 0 0 10px; max-width: 70ch; }
.ask-notice { background: var(--warning-bg); border: 1px solid #f1d9a6; color: #6d4700; padding: 9px 13px; border-radius: var(--radius); font-size: 14px; margin: 0 0 14px; }
.ask-history { margin-top: 18px; }
.ask-history h3 { font-size: 14px; margin: 0 0 6px; }
.ask-history ul { margin: 0; padding-left: 18px; font-size: 14px; }
.ask-history li { margin: 4px 0; }
.ask-history .link { text-align: left; }
.ask-thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 100%; }
.msg-user { align-self: flex-end; max-width: 80%; background: #e6f0f3; border: 1px solid #cfe0e6; border-radius: 10px 10px 2px 10px; padding: 9px 13px; }
.msg-user p { margin: 0; overflow-wrap: anywhere; }
.msg-user p + p { margin-top: 6px; }
.msg-meta { font-size: 12px; color: var(--muted); margin-top: 4px; text-align: right; }
.ask-attach { font-size: 12px; color: var(--muted); }
.msg-claude { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.msg-who { font-size: 12px; font-weight: 700; color: #9a4a2f; letter-spacing: .02em; margin-bottom: 4px; }
.msg-copy { margin-top: 6px; }
.msg-wait { color: var(--muted); font-size: 14px; padding: 4px 2px; }
.msg-wait::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #d97757; animation: askpulse 1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes askpulse { from { opacity: .25; } to { opacity: 1; } }
.msg-error { background: var(--critical-bg); border: 1px solid #efc6c2; color: #8f2318; border-radius: var(--radius); padding: 9px 13px; font-size: 14px; }
.prose { font-size: 15px; line-height: 1.55; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 10px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 3px 0; }
.prose h3, .prose h4, .prose h5 { margin: 16px 0 6px; font-size: 15px; }
.prose h3 { font-size: 16px; }
.prose blockquote { border-left: 3px solid var(--line); padding-left: 10px; color: var(--ink-soft); }
.prose hr { border: 0; border-top: 1px solid var(--line-soft); margin: 14px 0; }
.prose code { word-break: break-word; }
.prose .table-wrap { overflow-x: auto; margin: 0 0 10px; }
.prose table { font-size: 14px; }
.code { margin: 0 0 12px; border: 1px solid #22323a; border-radius: 6px; overflow: hidden; background: #17242b; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 4px 12px; font-size: 12px; color: #9fb3b8; background: #1f2f37; }
.code-copy { font: inherit; font-size: 12px; color: #e7eeec; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 2px 8px; cursor: pointer; }
.code-copy:hover { background: rgba(255,255,255,.16); }
.code pre { margin: 0; padding: 10px 12px; overflow-x: auto; color: #e7eeec; font-size: 13px; line-height: 1.5; }
.code code { background: none; padding: 0; word-break: normal; white-space: pre; color: inherit; font-size: 1em; }
.ask-form { border-top: 1px solid var(--line-soft); padding: 12px 20px 14px; display: grid; gap: 8px; }
.ask-form textarea {
  width: 100%; resize: vertical; min-height: 76px; max-height: 40vh; font: inherit; font-size: 15px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.ask-form textarea:focus { outline: 2px solid rgba(36, 86, 107, .35); border-color: var(--sea); }
.ask-files { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-files:empty { display: none; }
.ask-thumb { position: relative; width: 74px; height: 56px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.ask-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ask-thumb-x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(23, 36, 43, .75); color: #fff; font-size: 14px; line-height: 20px; padding: 0; cursor: pointer; }
.ask-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ask-file { cursor: pointer; }
.ask-meta { flex: 1; font-size: 12px; color: var(--muted); text-align: right; min-width: 120px; }
.ask-context summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ask-context pre { white-space: pre-wrap; max-height: 220px; overflow: auto; background: #f7f9f8; border: 1px solid var(--line-soft); border-radius: 4px; padding: 8px 10px; font-size: 12px; margin: 6px 0 0; }
@media (max-width: 640px) {
  dialog.ask { width: 100vw; height: 100dvh; max-width: 100vw; border-radius: 0; border: 0; margin: 0; }
  .ask-head, .ask-body, .ask-form { padding-left: 14px; padding-right: 14px; }
  .msg-user { max-width: 92%; }
  .ask-open { padding: 5px 10px; }
  .ask-meta { text-align: left; flex-basis: 100%; order: 5; }
}

/* Réglages de l'assistant */
.assistant-usage { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; margin: 8px 0 14px; }
.assistant-usage b { font-size: 17px; display: block; }

/* ---------- Filtres et tri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -6px 0 14px; }
.filters select { width: auto; min-width: 0; padding: 7px 30px 7px 10px; font-size: 14px; }
.filters .board-count { margin-left: auto; font-size: 13px; }
.sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.sort:hover { color: var(--ink); text-decoration: underline; }
.sort.is-sorted { color: var(--ink); font-weight: 700; }
.sort[data-dir="asc"]::after { content: " ↑"; }
.sort[data-dir="desc"]::after { content: " ↓"; }
.board-head .sort + .sort { margin-left: 10px; }
.board-empty { padding: 26px 18px; color: var(--muted); text-align: center; margin: 0; }
button.tally { font: inherit; background: none; border: 0; padding: 2px 4px; margin: 0 -4px; border-radius: 4px; cursor: pointer; color: inherit; }
button.tally:hover { background: rgba(0,0,0,.05); }
.tag-contract { background: #e3f1ea; color: #1d5c3a; }
.maint-check { align-self: end; padding-bottom: 10px; }
.import-report details { margin: 6px 0; }
.import-report ul { margin: 6px 0 4px; padding-left: 20px; font-size: 14px; max-height: 320px; overflow: auto; }

/* ---------- Alertes : filtres et traitement par lot ---------- */
#alert-filters { margin: 0 0 12px; }
#alert-filters .search { flex: 1 1 240px; }
#alert-filters .search input { width: 100%; }
.bulk-bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 12px; margin: 0 0 8px; box-shadow: 0 4px 12px rgba(14, 26, 32, .06);
}
.bulk-bar .check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.bulk-count { font-size: 13px; flex: 1; min-width: 160px; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.bulk-actions .btn:disabled { cursor: not-allowed; }
.alert-total { font-size: 13px; margin: 0 0 8px; }
.alert-row { display: grid; grid-template-columns: 30px 1fr; align-items: start; }
.alert-row .alert-pick { margin: 18px 0 0 4px; width: 17px; height: 17px; cursor: pointer; }
.alert-row.is-picked .alert { box-shadow: 0 0 0 2px rgba(36, 86, 107, .35); }
@media (max-width: 640px) {
  .bulk-bar { position: static; }
  .alert-row { grid-template-columns: 26px 1fr; }
}

/* Connexion : libellés séparés des champs (meilleure détection par les gestionnaires de mots de passe) */
.login .form { gap: 6px; }
.login .form label { font-weight: 600; font-size: 14px; }
.login .form input + label { margin-top: 10px; }
.login .form button { margin-top: 16px; }

/* ---------- Alertes ignorées ---------- */
.sev-muted { background: var(--line-soft); color: var(--muted); }
.alert-muted { border-left-color: var(--line); background: #fafbfb; }
.alert-muted .alert-title { color: var(--ink-soft); }
.mute-pop { position: relative; display: inline-block; }
.mute-pop > summary { list-style: none; }
.mute-pop > summary::-webkit-details-marker { display: none; }
.mute-pop[open] > summary { background: var(--line-soft); }
.mute-pop .mute-form {
  position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; width: 320px;
  display: grid; gap: 10px; padding: 14px; max-width: 86vw;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(14, 26, 32, .16);
}
.alert-actions .mute-pop .mute-form { left: 0; right: auto; }
.mute-form .muted { font-size: 12px; font-weight: 400; margin: 0; }
.mute-form button { justify-self: start; }
.bulk-actions { align-items: center; }

/* ---------- Notifications, actions sur place ---------- */
.toasts { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: grid; gap: 8px; max-width: min(440px, calc(100vw - 32px)); }
dialog.ask[open] ~ .toasts, .toasts { pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #f2f6f5; border-radius: 8px; padding: 10px 10px 10px 14px; font-size: 14px;
  box-shadow: 0 10px 28px rgba(14, 26, 32, .28); border-left: 4px solid var(--ok);
  animation: toastin .2s ease-out;
}
.toast-warn { border-left-color: var(--warning); }
.toast-error { border-left-color: var(--critical); }
.toast span { flex: 1; }
.toast-action { font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.toast-action:hover { background: rgba(255,255,255,.24); }
.toast-x { font: inherit; font-size: 18px; line-height: 1; color: #9fb3b8; background: none; border: 0; cursor: pointer; padding: 2px 4px; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.alert-row.is-leaving, details.alert.is-leaving, tr.is-leaving { opacity: 0; transition: opacity .25s; }
.done-note { font-size: 13px; font-weight: 600; color: var(--ok); align-self: center; }
.btn-ask.is-pending { background: #fff7e8; border-color: #f0d49a; color: #7a5300; }
.btn-ask.is-pending::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #d98e04; animation: askpulse 1s ease-in-out infinite alternate; vertical-align: middle; }
.btn-ask.is-answered { background: #e8f4ed; border-color: #bcdcc9; color: #1d5c3a; }
.btn-ask.is-answered::before { content: "✓ "; }
.ask-badge { font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 2px 8px; border-radius: 10px; border: 1px solid; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.ask-badge.is-pending { background: #fff7e8; border-color: #f0d49a; color: #7a5300; }
.ask-badge.is-pending::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #d98e04; animation: askpulse 1s ease-in-out infinite alternate; vertical-align: middle; }
.ask-badge.is-answered { background: #e8f4ed; border-color: #bcdcc9; color: #1d5c3a; }
.ask-badge.is-answered::before { content: "✓ "; }
.ask-badge:hover { filter: brightness(.97); }
.task-badge { font-size: 12px; font-weight: 600; line-height: 1.2; padding: 2px 8px; border-radius: 10px; border: 1px solid #c9d8ea; background: #eef4fb; color: #1f4d7a; white-space: nowrap; vertical-align: middle; }
.task-pop > summary.is-done { color: #1f4d7a; background: #eef4fb; border-color: #c9d8ea; }
.task-form .task-known { margin: 0 0 4px; }
.task-setup { font-size: 13px; font-weight: 400; line-height: 1.45; }
.task-setup b { display: block; margin-bottom: 4px; }
.task-form .check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.key-once { border: 1px solid #f0d49a; background: #fff9ec; border-radius: 6px; padding: 10px 14px; margin: 8px 0 14px; }
.key-once p { margin: 4px 0; }
.small { font-size: 12px; }

/* Sécurité PrestaShop (thème Leotheme / Ap Page Builder) */
.tag-leo { background: #fde9e4; color: #8c2f1b; font-weight: 600; }
.sec-tally { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 18px; }
.sec-tally > div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.sec-tally > div b { font-size: 18px; margin-right: 4px; }
.sec-tally .is-critical { border-color: #f1c4bd; background: #fdf3f1; }
.sec-tally .is-ok { border-color: #bcdcc9; background: #f0f8f3; }
.sec-tally .is-muted { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.sec-table td { vertical-align: top; }
.callout { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; margin: 12px 0; }
.callout h3 { margin-top: 0; }
.callout-critical { border-color: #f1c4bd; background: #fdf6f4; }
.callout-warn { border-color: #f0d49a; background: #fffaf0; }
.callout ul { margin: 6px 0; padding-left: 20px; }
.btn-danger-soft { color: #8c2f1b; border-color: #f1c4bd; background: #fdf3f1; }
.fix-script { border-top: 1px solid var(--line-soft); margin-top: 14px; padding-top: 6px; }
.script-code {
  display: block; width: 100%; min-height: 260px; max-height: 480px; margin: 6px 0 4px; padding: 10px 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.45; white-space: pre; overflow: auto; resize: vertical;
  background: var(--ink); color: #dfe8e6; border: 1px solid var(--ink); border-radius: 4px;
}
.render-error { border-color: #f1c4bd; background: #fdf6f4; }
.render-error code { word-break: break-word; }
.copy-tmp { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.script-code:focus { outline: 2px solid var(--sea); outline-offset: 2px; }
.script-view > summary { cursor: pointer; color: var(--sea); margin: 6px 0; }
.fix-result textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.fix-log tr.fix-detail td { border-top: 0; padding-top: 0; font-size: 12px; }
code.wrap { white-space: pre-wrap; word-break: break-all; }
.cell-theme { font-size: 13px; line-height: 1.3; }
.sec-table { font-size: 13.5px; }
.sec-table th, .sec-table td { padding-left: 6px; padding-right: 6px; }
.sec-table .sev { white-space: normal; line-height: 1.35; }
.fix-plan { max-width: none; }
.fix-plan > label, .fix-plan > .row-actions { max-width: 860px; }
.fix-cat { font-size: 13.5px; margin: 8px 0 12px; width: 100%; }
.fix-cat th:nth-child(2) { width: 46%; }
.plan-state { font-size: 13px; line-height: 1.35; }
.plan-state::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: #b8c2c8; }
.plan-todo { font-weight: 600; }
.plan-todo::before { background: #d98a1c; }
.plan-ok::before { background: #2f8a57; }
.plan-muted { color: var(--muted); }
.fix-log { width: 100%; }
.fix-log td.fix-checks { font-size: 12.5px; max-width: 320px; }
.fix-log td:nth-child(4) { min-width: 260px; }
.fix-cat td { vertical-align: top; }
.fix-cat td:first-child { width: 28px; }
.fix-cat input[type=checkbox] { width: 16px; height: 16px; margin-top: 2px; }
.fix-cat label { cursor: pointer; }
.fix-cat .sev, .fix-log .sev { white-space: normal; line-height: 1.35; }
.fix-plan input[name=root] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.fix-parts { margin: 0; padding-left: 16px; font-size: 13px; }
ul.tight { margin: 4px 0 12px; padding-left: 20px; max-width: 90ch; }
ul.tight li { margin: 3px 0; }
.fix-parts li { margin: 2px 0; }

/* ------------------------------------------------------------------ SEO & IA */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr 1fr; } .tile-value { font-size: 22px; } .tile { padding: 10px 12px; } }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.block .tile { background: #f8faf9; }
.tile-label { font-size: 13px; color: var(--muted); }
.tile-value { font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.tile-of { font-size: 15px; color: var(--muted); font-weight: 400; }
.tile-note { font-size: 12px; color: var(--muted); }
.delta { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta-good { color: var(--ok); }
.delta-bad { color: var(--critical); }
.delta-flat, .delta-none { color: var(--muted); font-weight: 400; }
.score { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 7px; border-radius: 12px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.score-good { background: var(--ok-bg); color: #1d6a41; }
.score-mid { background: var(--warning-bg); color: #7a5000; }
.score-bad { background: var(--critical-bg); color: #a3261b; }
.tile-value .score { font-size: 20px; height: 34px; min-width: 52px; border-radius: 17px; justify-self: start; width: max-content; }
.cwv { font-size: 12px; font-weight: 600; }
.cwv-fast { color: var(--ok); }
.cwv-average { color: #a86c00; }
.cwv-slow { color: var(--critical); }
.chart-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 12px 0 8px; }
.chart { position: relative; margin: 0; outline: none; }
.chart:focus-visible { box-shadow: 0 0 0 2px var(--sea); border-radius: 4px; }
.chart figcaption { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-grid { stroke: var(--line-soft); stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-line { fill: none; stroke: var(--sea); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: var(--sea); fill-opacity: .1; stroke: none; }
.chart-dot { fill: var(--sea); stroke: var(--panel); stroke-width: 2; }
.chart-end { fill: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-cross { stroke: var(--muted); stroke-width: 1; }
.chart-hover { display: none; }
.chart.is-hover .chart-hover { display: inline; }
.chart-hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 5px; font-size: 12px; pointer-events: none; white-space: nowrap; display: flex; flex-direction: column; gap: 1px; box-shadow: 0 2px 8px rgba(0,0,0,.15); z-index: 2; }
.chart-tip[hidden] { display: none; }
.chart-tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-tip span { color: #c9d3d6; }
.spark { display: block; overflow: visible; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.chip { font: inherit; font-size: 13px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 3px 10px; cursor: pointer; color: var(--ink-soft); }
.chip:hover, .chip:focus-visible { border-color: var(--sea); color: var(--ink); }
.was { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.ai-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.ai-count.is-bad { color: var(--critical); }
.count-info { background: var(--info-bg); color: var(--info); }
.seo-alerts { list-style: none; padding: 0; margin: 0 0 8px; }
.seo-alerts li { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.checklist .is-none .mark { background: var(--line); }
.seo-prop { margin-bottom: 14px; }
.seo-prop select { max-width: 460px; }
.seo-board td { vertical-align: middle; }
.seo-queries td:first-child { max-width: 380px; }
.bots td { vertical-align: middle; }
.bots { table-layout: fixed; }
.bots th:nth-child(1) { width: 24%; }
.bots th:nth-child(2) { width: 44%; }
.bots th:nth-child(3) { width: 15%; }
.bots th:nth-child(4) { width: 17%; }
@media (max-width: 720px) { .bots { table-layout: auto; } }
.ok-text { color: var(--ok); }
.bad-text { color: var(--critical); font-weight: 600; }
.login .remember { margin: 2px 0 4px; font-size: 14px; color: var(--ink-soft); }
.devices { margin: 16px 0 8px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.devices h3 { font-size: 15px; margin: 0 0 6px; }
.devices ul { margin: 0 0 8px; padding-left: 18px; }
.sugg-head { margin: 10px 0 4px; }
.insp-list { margin: 4px 0 12px; padding-left: 18px; }
.insp-list li { margin: 3px 0; }

/* « Écarter l'alerte… » : chaque choix dit si l'alerte revient */
.dismiss-pop .dismiss-form { width: 380px; gap: 8px; }
.dismiss-q { margin: 0; font-weight: 600; }
.dismiss-opt { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 400; }
.dismiss-opt:has(input:checked) { border-color: var(--sea); background: var(--line-soft); }
.dismiss-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.dismiss-opt input { margin-top: 3px; }
.dismiss-label { display: block; font-weight: 600; }
.dismiss-effect { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.dismiss-effect b { color: var(--ink); font-weight: 700; }
.dismiss-opt:has(input:disabled) .dismiss-effect b { color: inherit; }
.dismiss-why { display: grid; gap: 8px; padding: 0 2px 2px 28px; }
.dismiss-form:not(:has(input[name="how"][value="mute"]:checked)) .dismiss-why { display: none; }
.dismiss-legend { margin: 6px 0 14px; }

/* Mises à jour et sauvegardes */
.maj-group { margin: 16px 0 6px; }
.maj-group h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.maj-group .fix-cat td:first-child { width: 28px; }
.maj-core tr.is-blocked label, .maj-core tr.is-blocked td.nowrap { opacity: .62; }
.maj-core .core-note { display: block; margin-top: 2px; font-weight: 400; }
.maj-scope { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 12px; margin: 16px 0 6px; max-width: 860px; display: grid; gap: 6px; }
.maj-scope legend { font-weight: 650; padding: 0 6px; }
.maj-zip { margin-top: 14px; }
.maj-backups td.right { white-space: nowrap; }
.restore-pop .mute-form { width: 380px; }
#script-maint .steps { margin: 6px 0 10px; }
.maj-plan > *, .maj-group, .maj-scope { min-width: 0; }
/* Fenêtre « Restaurer… » ouverte dans un tableau défilant : elle peut en sortir */
.table-scroll:has(.restore-pop[open]), .table-scroll:has(.restore-pop[open]) > .table { overflow: visible; }
.restore-pop .mute-form { white-space: normal; text-align: left; }

/* Traitement des fichiers suspects : un groupe par problème identique */
.fs-group { margin: 12px 0 4px; }
.fs-group-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 4px; }
.fs-group .fix-cat { margin: 4px 0 8px; }
.fs-list > summary { cursor: pointer; padding: 4px 0; }
.fs-list[open] > summary { margin-bottom: 4px; }
.fix-parts details summary { cursor: pointer; display: inline; }

/* Réponses de Claude : commande à risque */
.code-warn { margin: 0 0 8px; padding: 8px 12px; border: 1px solid #e0a44a; border-left: 4px solid #d9822b; border-radius: 6px; background: #fff6e8; color: #5a3a0a; font-size: 13px; line-height: 1.45; }
code.code-risky { outline: 2px solid #d9822b; outline-offset: 1px; }

/* Double authentification */
.mfa-setup { margin: 12px 0 16px; padding: 12px; border: 1px solid #dfe6e4; border-radius: 8px; background: #f7faf9; }
.mfa-setup ol { margin: 0 0 10px 18px; padding: 0; font-size: 14px; line-height: 1.5; }
.mfa-qr { display: flex; justify-content: center; margin: 8px 0; min-height: 40px; }
.mfa-qr img { width: 200px; height: 200px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 4px; }
.mfa-key { display: block; text-align: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; letter-spacing: .06em; word-spacing: .3em; user-select: all; color: #22323a; }
.recovery-codes { columns: 2; margin: 12px 0 16px 0; padding: 12px 12px 12px 34px; border: 1px dashed #9fb3b8; border-radius: 8px; background: #f7faf9; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; line-height: 1.8; }
@media (max-width: 480px) { .recovery-codes { columns: 1; } }
