/* DockPanel — feuille de style unique (aucune dépendance externe). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #f6f6f7; --surface: #fff; --surface-2: #f4f4f5; --surface-3: #ebebed;
  --border: #e4e4e7; --border-strong: #d4d4d8;
  --text: #18181b; --text-2: #3f3f46; --muted: #6b6b74; --faint: #a1a1aa;
  --accent: #2459e8; --accent-h: #1b47c2; --accent-fg: #fff; --accent-soft: #eef3ff; --accent-text: #1d4ed8; --ring: rgba(36, 89, 232, .28);
  --ok: #16a34a; --ok-soft: #ecfdf3; --ok-text: #15803d;
  --warn: #d97706; --warn-soft: #fff8eb; --warn-text: #a14f05;
  --err: #dc2626; --err-soft: #fef2f2; --err-text: #b91c1c;
  --term-bg: #0d0d10; --term-fg: #e4e4e7;
  --shadow-xs: 0 1px 2px rgba(24, 24, 27, .05);
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .04), 0 1px 3px rgba(24, 24, 27, .06);
  --shadow-lg: 0 12px 32px -8px rgba(24, 24, 27, .18), 0 4px 8px -4px rgba(24, 24, 27, .08);
  --r-sm: 6px; --r: 8px; --r-lg: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --side-w: 248px;
  --series-1: #2a78d6; --series-2: #eb6834; --series-crit: #d03b3b; --chart-grid: #ececee; --chart-axis: #d4d4d8;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0c; --surface: #131316; --surface-2: #19191d; --surface-3: #232328;
  --border: #26262b; --border-strong: #36363d;
  --text: #f4f4f5; --text-2: #d4d4d8; --muted: #a1a1aa; --faint: #6b6b74;
  --accent: #3d6dff; --accent-h: #5a85ff; --accent-fg: #fff; --accent-soft: rgba(61, 109, 255, .14); --accent-text: #8fadff; --ring: rgba(90, 133, 255, .4);
  --ok: #22c55e; --ok-soft: rgba(34, 197, 94, .12); --ok-text: #4ade80;
  --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .12); --warn-text: #fbbf24;
  --err: #ef4444; --err-soft: rgba(239, 68, 68, .12); --err-text: #f87171;
  --term-bg: #08080a;
  --series-1: #3987e5; --series-2: #d95926; --series-crit: #e05252; --chart-grid: #222227; --chart-axis: #36363d;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .7), 0 0 0 1px var(--border);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0c; --surface: #131316; --surface-2: #19191d; --surface-3: #232328;
    --border: #26262b; --border-strong: #36363d;
    --text: #f4f4f5; --text-2: #d4d4d8; --muted: #a1a1aa; --faint: #6b6b74;
    --accent: #3d6dff; --accent-h: #5a85ff; --accent-fg: #fff; --accent-soft: rgba(61, 109, 255, .14); --accent-text: #8fadff; --ring: rgba(90, 133, 255, .4);
    --ok: #22c55e; --ok-soft: rgba(34, 197, 94, .12); --ok-text: #4ade80;
    --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .12); --warn-text: #fbbf24;
    --err: #ef4444; --err-soft: rgba(239, 68, 68, .12); --err-text: #f87171;
    --term-bg: #08080a;
    --series-1: #3987e5; --series-2: #d95926; --series-crit: #e05252; --chart-grid: #222227; --chart-axis: #36363d;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .7), 0 0 0 1px var(--border);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 400 14px/1.5 var(--font); font-feature-settings: "cv11", "ss01"; letter-spacing: -.003em;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent-text); text-decoration: none; }
a.ext-link { display: inline-flex; align-items: center; gap: 4px; }
a.ext-link .ic { opacity: .7; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; letter-spacing: -.015em; }
h1 { font-size: 21px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0 0 10px; } p:last-child { margin-bottom: 0; }
code, pre, kbd, .mono { font-family: var(--mono); font-size: 12.5px; font-variant-ligatures: none; }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; word-break: break-all; color: var(--text-2); }
small, .muted { color: var(--muted); }
small { font-size: 12.5px; }
.num, td.num, th.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--ring); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ic { flex: none; display: inline-block; vertical-align: -3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-fg); padding: 8px 12px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }
.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; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 16px 18px; font-weight: 650; font-size: 15px; letter-spacing: -.02em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 28px; height: 28px; flex: none; }
.brand .ver { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--faint); font-family: var(--mono); letter-spacing: 0; }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px 12px; }
.nav-sep { font-size: 11.5px; font-weight: 550; color: var(--faint); padding: 18px 10px 6px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; margin-bottom: 1px;
  border-radius: var(--r-sm); color: var(--text-2); font-weight: 480;
}
.nav-link .ic { color: var(--muted); }
.nav-link:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: var(--surface-3); color: var(--text); font-weight: 560; }
.nav-link[aria-current="page"] .ic { color: var(--accent); }
.side-foot { border-top: 1px solid var(--border); padding: 10px; }
.user-chip {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r);
  background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; text-align: left;
}
.user-chip:hover, .user-chip[aria-expanded="true"] { background: var(--surface-2); }
.user-chip .who { flex: 1; min-width: 0; line-height: 1.25; }
.user-chip .who b { display: block; font-weight: 560; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who small { font-size: 12px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: 12px; text-transform: uppercase;
}
.main { min-width: 0; display: flex; flex-direction: column; }
.mobilebar { display: none; }
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 56px; }
.content:focus { outline: none; }

/* ---------- en-tête de page ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .titles { flex: 1; min-width: 240px; }
.page-head .titles p { color: var(--muted); margin: 4px 0 0; max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--text); }
.crumbs .ic { color: var(--faint); }
.title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- cartes ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); margin-bottom: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head .t { flex: 1; min-width: 0; }
.card-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.card-head h3 .ic { color: var(--muted); }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.card-head .actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card-body { padding: 18px; }
.card-head:last-child { border-bottom: 0; }
.card-body:has(> .table-wrap:only-child), .card-body.flush { padding: 0; }
.card-body > .table-wrap:only-child tr:last-child td { border-bottom: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.card-foot .hint { margin-right: auto; color: var(--muted); font-size: 13px; }
.card.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--border)); }
.card.danger-zone .card-head h3 .ic { color: var(--err); }

.grid { display: grid; gap: 20px; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid { margin-top: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 12px; }
.mt { margin-top: 16px; }

/* ---------- statistiques ---------- */
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-xs); min-width: 0; }
.stat .l { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .v { font-size: 24px; font-weight: 620; letter-spacing: -.025em; margin-top: 10px; font-variant-numeric: tabular-nums; line-height: 1.15; }
.stat .v small { font-size: 13px; font-weight: 500; letter-spacing: 0; margin-left: 4px; }
.stat .s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat .meter { margin-top: 12px; }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s ease; }
.meter.warn i { background: var(--warn); } .meter.err i { background: var(--err); }

/* ---------- liste de définitions ---------- */
.kv { display: grid; grid-template-columns: minmax(110px, max-content) 1fr; gap: 10px 24px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; word-break: break-word; color: var(--text); }

/* ---------- boutons ---------- */
.btn {
  --h: 34px; height: var(--h); padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 500 13.5px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; cursor: pointer; user-select: none;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-xs); text-decoration: none; transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); text-decoration: none; }
.btn:active:not(:disabled) { background: var(--surface-3); }
.btn .ic { color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 2px rgba(36, 89, 232, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn.primary .ic { color: inherit; opacity: .9; }
.btn.primary:hover:not(:disabled) { background: var(--accent-h); border-color: var(--accent-h); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--err-text); }
.btn.danger .ic { color: var(--err-text); }
.btn.danger:hover:not(:disabled) { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.btn.danger.solid { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger.solid .ic { color: #fff; }
.btn.danger.solid:hover:not(:disabled) { background: color-mix(in srgb, var(--err) 85%, #000); }
.btn.sm { --h: 28px; padding: 0 10px; font-size: 12.5px; gap: 6px; }
.btn.icon { width: var(--h); padding: 0; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn[aria-busy="true"] { position: relative; color: transparent !important; }
.btn[aria-busy="true"] .ic { visibility: hidden; }
.btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--muted); border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn.primary[aria-busy="true"]::after, .btn.danger.solid[aria-busy="true"]::after { border-color: #fff; border-right-color: transparent; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- formulaires ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
label.field > span { font-weight: 550; font-size: 13px; color: var(--text); }
label.field > small { font-size: 12.5px; line-height: 1.45; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm); padding: 0 11px; height: 36px; width: 100%; min-width: 0;
  box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; padding: 9px 11px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; resize: vertical; }
select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover:not(:disabled):not(:focus), select:hover:not(:disabled):not(:focus), textarea:hover:not(:disabled):not(:focus) { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--muted)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input:disabled, select:disabled, textarea:disabled, input[readonly], textarea[readonly] { background: var(--surface-2); color: var(--muted); }
input.mono { font-family: var(--mono); font-size: 13px; }
input[type=checkbox], input[type=radio] {
  appearance: none; width: 16px; height: 16px; padding: 0; margin: 0; flex: none; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); display: inline-grid; place-items: center;
}
input[type=checkbox] { border-radius: 4px; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
input[type=radio]:checked::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .5; cursor: not-allowed; }
input[type=file] { height: auto; padding: 6px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; cursor: pointer; line-height: 1.4; }
.check input { margin-top: 1px; }
.check .lbl b { display: block; font-weight: 550; }
.check .lbl small { display: block; }
/* interrupteur */
input.switch { width: 32px; height: 18px; border-radius: 99px; background: var(--surface-3); border-color: var(--border-strong); position: relative; transition: background .15s; }
input.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; border: 0; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { transform: translateX(14px); width: 12px; height: 12px; border: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 18px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.inline-form label.field { margin-bottom: 0; flex: 1; min-width: 160px; }
.input-group { display: flex; align-items: stretch; }
.input-group > input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group > .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-left: -1px; height: 36px; }
.search { position: relative; }
.search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 34px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 550; white-space: nowrap; letter-spacing: 0;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok-text); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); border-color: transparent; }
.badge.err { background: var(--err-soft); color: var(--err-text); border-color: transparent; }
.badge.info { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.badge.ok .dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.badge.warn .dot.pulse { animation: pulse 1.4s ease-in-out infinite; }
a.badge:hover { text-decoration: none; filter: brightness(.97); }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- marque runtime ---------- */
.rt-mark {
  --c: #71717a; width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center;
  font: 700 11px/1 var(--mono); letter-spacing: -.02em; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.rt-mark.lg { width: 44px; height: 44px; border-radius: 11px; font-size: 13.5px; }
.rt-mark.node { --c: #3f9142; } .rt-mark.php { --c: #6c6fb4; } .rt-mark.laravel { --c: #e5332a; } .rt-mark.wordpress { --c: #2271b1; }
.rt-mark.python { --c: #3572a5; } .rt-mark.static { --c: #d9561f; } .rt-mark.custom { --c: #1d8fe0; } .rt-mark.plausible { --c: #5850ec; }
:root[data-theme="dark"] .rt-mark { filter: brightness(1.35) saturate(.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt-mark { filter: brightness(1.35) saturate(.9); } }
.site-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-cell .n { min-width: 0; line-height: 1.3; max-width: 190px; }
.site-cell .n > a, .site-cell .n > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-cell .n > a { display: block; }
.site-cell .n a { font-weight: 560; color: var(--text); }
.site-cell .n small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- tableaux ---------- */
.table-wrap { overflow-x: auto; position: relative; }
td code { white-space: nowrap; word-break: normal; }
td.num { white-space: nowrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12.5px; font-weight: 550; color: var(--muted); white-space: nowrap; background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; }
thead tr:first-child th:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); }
thead tr:first-child th:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
tbody tr { transition: background .1s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
td.num, th.num { text-align: right; }
td.act { white-space: nowrap; text-align: right; width: 1%; }
td.act > * + * { margin-left: 6px; }
td.ext a { color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.ext-link .nw { white-space: nowrap; }
td.ext a .ic { color: var(--faint); }
td.ext a:hover { color: var(--accent-text); }
td.sel, th.sel { width: 40px; padding-right: 0; }

/* ---------- états vides / chargement ---------- */
.empty { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .em-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.empty b { color: var(--text); font-weight: 560; }
.empty p { margin: 0; max-width: 46ch; }
.empty .btn { margin-top: 6px; }
.loading { padding: 40px; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; }
.spin { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- onglets ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0 2px; border-bottom: 1px solid var(--border); margin: 0 0 24px; }
.tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 9px; color: var(--muted); font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: var(--r-sm) var(--r-sm) 0 0;
}
.tabs a .ic { color: var(--faint); }
.tabs a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.tabs a.active { color: var(--text); border-bottom-color: var(--accent); }
.tabs a.active .ic { color: var(--accent); }

/* ---------- alertes ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r);
  margin-bottom: 20px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.alert > .ic { margin-top: 1px; color: var(--muted); }
.alert .a-body { flex: 1; min-width: 0; }
.alert .a-body b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.alert .a-body .row { margin-top: 10px; }
.alert.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.alert.info > .ic { color: var(--accent-text); }
.alert.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.alert.warn > .ic { color: var(--warn-text); }
.alert.err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 28%, transparent); }
.alert.err > .ic, .alert.err .a-body b { color: var(--err-text); }
.alert.ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.alert.ok > .ic { color: var(--ok-text); }

/* ---------- terminal / logs ---------- */
.term, .logbox {
  background: var(--term-bg); color: var(--term-fg); border-radius: var(--r); padding: 14px 16px; margin: 0;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; overflow: auto;
  border: 1px solid #1f1f24;
}
.logbox { height: 62vh; min-height: 280px; }
.logbox.nowrap { white-space: pre; word-break: normal; }
.term-host { background: var(--term-bg); border-radius: var(--r); padding: 10px 12px; height: 64vh; min-height: 320px; border: 1px solid #1f1f24; }
.console { border-radius: var(--r-lg); overflow: hidden; border: 1px solid #1f1f24; background: var(--term-bg); }
.console-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #141418; border-bottom: 1px solid #1f1f24; color: #a1a1aa; font-size: 12.5px; flex-wrap: wrap; }
.console-bar .ttl { display: flex; align-items: center; gap: 8px; font-family: var(--mono); color: #d4d4d8; }
.console-bar .btn { --h: 26px; background: #1c1c21; border-color: #2c2c33; color: #d4d4d8; box-shadow: none; font-size: 12px; }
.console-bar .btn .ic { color: #a1a1aa; }
.console-bar .btn:hover:not(:disabled) { background: #26262c; }
.console-bar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.console-bar input[type=checkbox] { background: #1c1c21; border-color: #3a3a42; }
.console .logbox, .console .term-host { border: 0; border-radius: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #71717a; }
.live.on .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.live.err .dot { background: #ef4444; }

/* ---------- modales ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(9, 9, 11, .5); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fade .12s ease-out; }
.modal {
  background: var(--surface); border-radius: var(--r-lg); width: min(500px, 100%); max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); animation: pop .16s cubic-bezier(.2, .9, .3, 1.1);
}
.modal.wide { width: min(1000px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 18px; overflow: auto; }
.modal-body > p { color: var(--text-2); }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }

/* ---------- menus déroulants ---------- */
.menu {
  position: fixed; z-index: 60; min-width: 190px; padding: 5px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-lg); animation: pop .12s ease-out;
}
.menu button, .menu a {
  width: 100%; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border: 0; background: none;
  border-radius: 5px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; text-align: left; text-decoration: none;
}
.menu button .ic, .menu a .ic { color: var(--muted); }
.menu button:hover, .menu a:hover, .menu button:focus-visible, .menu a:focus-visible { background: var(--surface-2); outline: none; text-decoration: none; }
.menu .danger, .menu .danger .ic { color: var(--err-text); }
.menu .danger:hover { background: var(--err-soft); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px -5px; }
.menu .menu-label { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); word-break: break-word; animation: pop .18s ease-out;
}
.toast .ic { margin-top: 1px; color: var(--ok); }
.toast.err .ic { color: var(--err); }
.toast span { flex: 1; }

/* ---------- gestionnaire de fichiers ---------- */
.fm-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.fm-path { display: flex; flex-wrap: wrap; align-items: center; gap: 1px; flex: 1; min-width: 200px; font-size: 13.5px; }
.fm-path button { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--text-2); cursor: pointer; font: inherit; padding: 4px 6px; border-radius: 5px; }
.fm-path button:hover { background: var(--surface-2); color: var(--text); }
.fm-path button:last-child { color: var(--text); font-weight: 560; }
.fm-path .ic { color: var(--faint); }
.fm-drop { position: relative; }
.fm-drop.over::after {
  content: "Déposez les fichiers pour les envoyer"; position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 10%, transparent); border: 2px dashed var(--accent); border-radius: var(--r-lg); font-weight: 600; color: var(--accent-text);
}
.fm-uploads:not(:empty) { padding: 10px 14px; border-bottom: 1px solid var(--border); display: grid; gap: 8px; }
.fm-uploads .up { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fm-uploads .up .meter { flex: 1; max-width: 240px; }
.fm-bulk { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: var(--accent-soft); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 550; color: var(--accent-text); }
.file-name { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; padding: 0; text-align: left; }
.file-name:hover { color: var(--accent-text); }
.file-name .ic { color: var(--muted); }
.file-name .ic.dir { color: var(--accent); }
.editor { height: 64vh; font-size: 13px; tab-size: 2; white-space: pre; overflow: auto; border-radius: var(--r); }

/* ---------- connexion ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--muted) 22%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
}
.login-box { width: min(380px, 100%); }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: 22px; }
.login-brand .logo { width: 44px; height: 44px; }
.login-brand h1 { font-size: 20px; }
.login-brand p { color: var(--muted); margin: 4px 0 0; }
.login .card { padding: 24px; margin: 0; box-shadow: var(--shadow-sm); }
.login .card .btn { margin-top: 4px; }
.login-foot { text-align: center; color: var(--faint); font-size: 12.5px; margin-top: 18px; }

/* ---------- assistant ---------- */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 24px; overflow-x: auto; padding-bottom: 2px; }
.stepper .st { display: flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--muted); font-weight: 500; font-size: 13.5px; }
.stepper .st .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); font-variant-numeric: tabular-nums;
}
.stepper .st.on { color: var(--text); }
.stepper .st.on .n { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--ring); }
.stepper .st.done .n { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.stepper .line { flex: 1; min-width: 24px; height: 1px; background: var(--border-strong); margin: 0 12px; }
.stepper .line.done { background: var(--accent); }
.rt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.rt {
  position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: var(--r-lg); font: inherit; color: var(--text);
  box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s;
}
.rt:hover { border-color: color-mix(in srgb, var(--border-strong) 50%, var(--muted)); }
.rt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.rt .t { min-width: 0; }
.rt b { display: block; font-weight: 600; }
.rt small { display: block; margin-top: 2px; line-height: 1.4; }
.rt .chk { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: none; place-items: center; }
.rt[aria-pressed="true"] .chk { display: grid; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--r); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice .lbl b { display: block; font-weight: 560; }
.choice .lbl small { display: block; }
.wizard-foot { display: flex; align-items: center; gap: 8px; }

/* ---------- divers ---------- */
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); min-width: 0; }
.copy-field code { flex: 1; background: none; border: 0; padding: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.dns-record { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 24px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); font-size: 13px; }
.dns-record span { color: var(--muted); font-size: 12px; }
.dns-record code { background: none; border: 0; padding: 0; }
.env-row { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr auto; gap: 8px; align-items: center; }
.env-row + .env-row { margin-top: 8px; }
.svc-head { display: flex; align-items: center; gap: 12px; }
.svc-head .svc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); flex: none; }
.svc-head .t { flex: 1; min-width: 0; }
.svc-head .t small { display: block; font-family: var(--mono); font-size: 11.5px; }
.res-line + .res-line { margin-top: 16px; }
.res-line .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 13px; }
.res-line .top span { color: var(--muted); }
.res-line .top b { font-weight: 560; font-variant-numeric: tabular-nums; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; z-index: 45; width: 272px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-scrim { position: fixed; inset: 0; background: rgba(9, 9, 11, .45); z-index: 44; }
  .mobilebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .mobilebar .brand { padding: 0; }
  .content { padding: 20px 16px 48px; }
  .card-body { padding: 16px; }
  .card-head { padding: 12px 16px; }
  th, td { padding: 10px 12px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; }
  .env-row { grid-template-columns: 1fr auto; } .env-row > :first-child { grid-column: 1 / -1; }
  .stepper .st .lbl { display: none; } .stepper .st.on .lbl { display: inline; }
}
@media (max-width: 640px) { .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
  .spin, .btn[aria-busy="true"]::after { animation-duration: 1.4s !important; }
}

/* ---------- double authentification ---------- */
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--accent-text); font: inherit; font-size: 13px; cursor: pointer; border-radius: 4px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 2px; }
.login-alt { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.otp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.otp-head .ic { color: var(--accent-text); }
.otp-head p { margin: 0; font-size: 13px; }
.otp-input { font-size: 18px; letter-spacing: .18em; text-align: center; }
.qr-box { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.qr-box img { width: 168px; height: 168px; background: #fff; border-radius: var(--r); border: 1px solid var(--border); padding: 6px; flex: none; }
.qr-box .steps { flex: 1 1 220px; min-width: 0; }
.qr-box ol { margin: 0 0 12px; padding-left: 18px; color: var(--text-2); }
.qr-box ol li { margin-bottom: 6px; }
ol.steps { margin: 0; padding-left: 18px; color: var(--text-2); }
ol.steps li { margin-bottom: 6px; }
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 12px 0; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); }
.codes-grid code { background: none; border: 0; padding: 0; font-size: 14px; text-align: center; }

/* ---------- puces / sous-titres ---------- */
.sub-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 10px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 999px; font-size: 13px; }
.chip .btn.icon { width: 24px; height: 24px; min-height: 24px; }
.inline-form > input { flex: 1; min-width: 140px; }
.lock-mark { margin-left: 6px; color: var(--warn-text); }

/* ---------- alertes ---------- */
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.alert-list li { display: flex; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface-2); }
.alert-list li > .ic { margin-top: 2px; }
.alert-list li.lvl-err > .ic { color: var(--err); } .alert-list li.lvl-warn > .ic { color: var(--warn); }
.alert-list b { display: block; font-weight: 600; }
.alert-list p { margin: 2px 0 4px; color: var(--text-2); font-size: 13px; }
.alert-cell b { font-weight: 560; }
.alert-cell details { margin-top: 4px; }
.alert-cell summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.alert-cell pre { white-space: pre-wrap; word-break: break-word; margin: 6px 0 0; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); max-height: 260px; overflow: auto; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--err); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.card-alert { border-color: color-mix(in srgb, var(--err) 35%, var(--border)); }
.form-grid.c4 { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
details.help { margin: 4px 0 16px; }
details.help > summary { cursor: pointer; color: var(--accent-text); font-size: 13px; margin-bottom: 8px; }
code.pre { white-space: pre; }

/* ---------- graphiques ---------- */
.chart { position: relative; outline: none; border-radius: var(--r-sm); }
.chart:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.chart-plot { position: relative; width: 100%; touch-action: pan-y; }
.chart-plot svg { display: block; overflow: visible; }
.chart .grid { stroke: var(--chart-grid); stroke-width: 1; }
.chart .axis { stroke: var(--chart-axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .cross-line { stroke: var(--border-strong); stroke-width: 1; }
.chart .cross-dot { stroke: var(--surface); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i, .chart-tip i { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
.chart-tip { position: absolute; top: 24px; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: var(--r); padding: 8px 10px; font-size: 12.5px; min-width: 150px; }
.chart-tip .t { color: var(--muted); margin-bottom: 4px; }
.chart-tip .r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chart-tip .r b { font-variant-numeric: tabular-nums; color: var(--text); }
.chart-tip .r span { color: var(--muted); }
.chart-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--border); border-radius: var(--r); text-align: center; padding: 0 16px; }
.chart-data { margin-top: 8px; font-size: 12.5px; }
.chart-data summary { cursor: pointer; color: var(--muted); }
.chart-data .table-wrap { max-height: 260px; overflow: auto; margin-top: 6px; }
.range-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r); padding: 2px; background: var(--surface); }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 6px; color: var(--text-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); font-weight: 560; }
.charts .card-body { padding-top: 12px; }
.chart-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.chart-card-head .big { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.req-cell { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 420px; }
.req-cell .path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.client-cell { white-space: nowrap; }
.card-head .actions select, .card-head .actions input[type=search] { width: auto; min-width: 150px; height: 32px; padding-top: 4px; padding-bottom: 4px; font-size: 13px; }
.section-title { font-size: 15px; margin: 28px 0 12px; }
.chart, .chart-plot { min-width: 0; max-width: 100%; }
.chart-plot { overflow: hidden; }
.card-more { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--border); }
.usage-cell { display: grid; gap: 4px; min-width: 120px; } .usage-cell .meter { height: 4px; }
/* mention de l'éditeur */
.side-vendor { display: block; margin: 8px 10px 0; font-size: 11.5px; color: var(--faint); }
.side-vendor:hover { color: var(--muted); }
.login-foot .vendor { color: var(--muted); }

/* déploiements : commit sur une ligne, message tronqué */
.dep-commit { display: flex; gap: 8px; align-items: center; max-width: 220px; min-width: 0; }
.nowrap { white-space: nowrap; }
.dep-commit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 420px; }
.preview-cell a { white-space: nowrap; font-weight: 560; }
.preview-cell code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: flex-start; max-width: 100%; }

/* ---- sécurité / performances ---- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; margin-bottom: 8px; }
.feature-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; color: var(--text-2); font-size: 13px; }
.feature-list li { display: flex; align-items: center; gap: 8px; }
.feature-list svg { color: var(--ok, #16a34a); flex: none; }
.chip .btn { margin: -4px -6px -4px 0; }
code.break { white-space: normal; word-break: break-all; }

/* ---------- règles du pare-feu ---------- */
.rules-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rules-toolbar input { flex: 1 1 220px; min-width: 160px; }
.rules-toolbar select { flex: 0 1 220px; }
.rules-table td { vertical-align: top; }
.rules-table td:first-child, .rules-table th:first-child { width: 64px; }
.rule-off td:not(:first-child) { opacity: .62; }
.rule-idle td:nth-child(2) > div { color: var(--muted); }
.rule-pl { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; background: var(--faint); }
.sev.critical, .sev.error { background: var(--err); }
.sev.warning { background: var(--warn); }
.form-stack { display: grid; gap: 14px; }
.form-stack .field[hidden] { display: none; }
.inherit-box { margin-bottom: 16px; padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: var(--r); background: var(--surface-2); }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }

/* ---- audience ---- */
.delta { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.delta .ic { color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); cursor: default; }
.live.on { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 3.4em; align-items: center; gap: 10px; min-height: 30px; padding: 0 8px; font-size: 13.5px; }
.rank-bar { position: absolute; left: 0; top: 2px; bottom: 2px; border-radius: 0 4px 4px 0; background: color-mix(in srgb, var(--series-1) 16%, transparent); pointer-events: none; }
.rank-label { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
code.rank-label { font-size: 12.5px; background: none; border: 0; box-shadow: none; padding: 0; }
.rank-val { position: relative; color: var(--text); font-weight: 560; }
.rank-pct { position: relative; text-align: right; font-size: 12.5px; }
.rank-more { display: flex; justify-content: center; margin-top: 8px; }
.rank-card .card-body { padding-top: 12px; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.privacy-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--text-2); }
.privacy-list li .ic { color: var(--ok-text); margin-top: 2px; }
.privacy-list li b { color: var(--text); font-weight: 600; }
.policy summary { cursor: pointer; font-weight: 560; margin-bottom: 8px; }
.policy textarea { width: 100%; font-family: var(--font); font-size: 13px; line-height: 1.55; }
.sep { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.sites-aud .site-cell { display: flex; align-items: center; gap: 10px; }
.sites-aud .site-cell small { display: block; color: var(--muted); }

/* aperçu des changements avant déploiement */
.dp-sum .kv { margin-bottom: 8px; }
.dp-totals { margin: 10px 0 6px; }
.dp-add { color: var(--ok, #16a34a); font-variant-numeric: tabular-nums; }
.dp-del { color: var(--err, #dc2626); font-variant-numeric: tabular-nums; }
.dp-commits, .dp-files { list-style: none; margin: 8px 0 0; padding: 0; max-height: 220px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.dp-commits li, .dp-files li { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-bottom: 1px solid var(--border); min-width: 0; }
.dp-commits li:last-child, .dp-files li:last-child { border-bottom: 0; }
.dp-commits .sub { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-files li { justify-content: space-between; }
.dp-files code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dp-sum details { margin-top: 10px; }
.dp-sum summary { cursor: pointer; font-weight: 560; }
.dp-sched { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); max-width: 360px; }
@media (max-width: 640px) { .dp-commits li { flex-wrap: wrap; } }

/* éditeur de fichiers (CodeMirror 6, public/js/site/editor.js) : couleurs de coloration syntaxique, suivent le thème */
:root { --code-bg: #fbfbfc; --code-gutter: #f4f4f5; --code-fg: #18181b; --code-muted: #9a9aa3; --code-sel: rgba(36, 89, 232, .16);
  --code-kw: #7c3aed; --code-str: #15803d; --code-num: #c2410c; --code-com: #8b8b95; --code-fn: #1d4ed8; --code-type: #0f766e;
  --code-prop: #9f1239; --code-tag: #b91c1c; --code-attr: #a16207; }
:root[data-theme="dark"] { --code-bg: #0e0e11; --code-gutter: #111114; --code-fg: #e4e4e7; --code-muted: #5f5f68; --code-sel: rgba(61, 109, 255, .3);
  --code-kw: #c084fc; --code-str: #86efac; --code-num: #fdba74; --code-com: #6b6b74; --code-fn: #93c5fd; --code-type: #5eead4;
  --code-prop: #fda4af; --code-tag: #f87171; --code-attr: #fcd34d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --code-bg: #0e0e11; --code-gutter: #111114; --code-fg: #e4e4e7; --code-muted: #5f5f68; --code-sel: rgba(61, 109, 255, .3);
  --code-kw: #c084fc; --code-str: #86efac; --code-num: #fdba74; --code-com: #6b6b74; --code-fn: #93c5fd; --code-type: #5eead4;
  --code-prop: #fda4af; --code-tag: #f87171; --code-attr: #fcd34d; } }

.ed-pane { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.ed-pane[hidden] { display: none; }
.ed-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ed-title { flex: 1 1 200px; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-status { font-size: 12.5px; white-space: nowrap; }
.ed-tabs { display: flex; gap: 2px; padding: 6px 8px 0; overflow-x: auto; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ed-tabs:empty { display: none; }
.ed-tab { display: inline-flex; align-items: center; flex: none; border: 1px solid transparent; border-bottom: 0; border-radius: 6px 6px 0 0; }
.ed-tab.on { background: var(--code-bg); border-color: var(--border); }
.ed-tab-name { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--muted); padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.ed-tab-name:hover { color: var(--text); }
.ed-tab.on .ed-tab-name { color: var(--text); font-weight: 560; }
.ed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); flex: none; }
.ed-cm { height: clamp(340px, 66vh, 820px); min-height: 0; background: var(--code-bg); }
.ed-cm .cm-editor { height: 100%; }
@media (max-width: 640px) { .ed-status { display: none; } .ed-cm { height: 60vh; } }

.fs-form { display: grid; gap: 4px; }
.fs-opts { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.fs-results { margin-top: 14px; max-height: 52vh; overflow: auto; display: grid; gap: 12px; }
.fs-count { margin: 0; font-size: 13px; }
.fs-group { display: grid; gap: 2px; }
.fs-file { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 560; color: var(--text-2); padding: 4px 2px; border-bottom: 1px solid var(--border); }
.fs-file .ic { color: var(--muted); }
.fs-hit { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-radius: 6px; padding: 5px 8px; cursor: pointer; color: var(--text); font: inherit; }
.fs-hit:hover, .fs-hit:focus-visible { background: var(--surface-2); }
.fs-line { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.fs-hit code { font-family: var(--mono); font-size: 12.5px; white-space: pre; overflow: hidden; text-overflow: ellipsis; background: none; padding: 0; min-width: 0; }
.fs-hit mark { background: var(--warn-soft); color: var(--warn-text); border-radius: 3px; padding: 0 1px; }

/* Pagination des listes */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.pager-btns { display: flex; gap: 8px; }

/* Documentation de l'API */
.api-concepts { margin-top: 0; }
.api-concept { padding: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.api-concept-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--accent); margin-bottom: 10px; }
.api-concept p { margin: 6px 0 0; font-size: 13px; }
.api-group { margin-top: 18px; }
.api-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; color: var(--muted); }
.api-op { border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); margin-bottom: 8px; }
.api-op[open] { border-color: var(--accent); }
.api-op-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; cursor: pointer; list-style: none; }
.api-op-head::-webkit-details-marker { display: none; }
.api-path { font-family: var(--mono); font-size: 13px; }
.api-sum { font-size: 13px; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.api-op-body { padding: 4px 14px 14px; border-top: 1px solid var(--border); }
.api-method { display: inline-block; min-width: 62px; text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); }
.api-method.get { background: var(--info-soft, var(--surface-2)); color: var(--info-text, var(--text)); }
.api-method.post { background: var(--ok-soft, var(--surface-2)); color: var(--ok-text, var(--text)); }
.api-method.put, .api-method.patch { background: var(--warn-soft, var(--surface-2)); color: var(--warn-text, var(--text)); }
.api-method.delete { background: var(--err-soft, var(--surface-2)); color: var(--err-text, var(--text)); }
.api-legend { margin-bottom: 4px; }

/* Fichier binaire dans l'éditeur : en-tête, aperçu hexadécimal, image */
.ed-binary { padding: 14px 16px; overflow: auto; height: 100%; box-sizing: border-box; }
.ed-binary-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 12px; }
.ed-binary-head b { font-weight: 560; }
.ed-binary-head .muted { font-size: 13px; flex: 1 1 auto; }
.ed-binary-img { display: block; max-width: 100%; max-height: 60vh; margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.ed-hex { font-family: var(--mono); font-size: 12px; line-height: 1.55; margin: 0 0 10px; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: auto; white-space: pre; }
