/* KiloHub IDP360 — charte IDP 2026 (marine / violet / lime), thème régie sombre */
:root {
  --bg: #0A0F2A; --s1: #10193B; --s2: #18234F; --s3: #223064; --line: #2A3870;
  --txt: #F2F3FF; --mut: #C1C1FE; --mut2: #8C90C8;
  --violet: #5C5BEC; --lime: #D7E829; --orange: #FE9A31; --jaune: #FFC803; --red: #FF5A5F; --gris: #B2B2B2;
  --r: 14px; --nav-h: 64px;
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); -webkit-tap-highlight-color: transparent; }
body { font-size: 15px; line-height: 1.45; }
.hidden { display: none !important; }
a { color: var(--lime); }
h2 { font-size: 20px; margin: 4px 0 12px; font-weight: 800; letter-spacing: .2px; }
h3 { font-size: 15px; margin: 0; font-weight: 700; }
.muted { color: var(--mut2); }
.error { color: var(--red); min-height: 1.2em; margin: 8px 0 0; }
.num { font-variant-numeric: tabular-nums; }

/* Marque */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.brand { color: var(--txt); text-decoration: none; }
.brand .idp-logo { height: 26px; width: auto; display: block; }
.brand.big .idp-logo { height: 44px; }
.brand span:last-child { border-left: 1px solid var(--line); padding-left: 10px; }
.brand .logo { background: var(--txt); color: var(--s1); border-radius: 8px; padding: 0 8px; font-weight: 800; letter-spacing: 1px; line-height: 28px; }
.brand.big { font-size: 26px; justify-content: center; }
.brand.big .logo { line-height: 38px; padding: 0 12px; }

/* Connexion */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 80% -10%, #2b2a8a 0%, transparent 60%), var(--bg); }
.login-card { width: min(380px, 100%); background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 14px; text-align: center; }
label { display: grid; gap: 6px; text-align: left; font-size: 13px; color: var(--mut); font-weight: 600; }
input, select, textarea { font: inherit; color: var(--txt); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--violet); border-color: transparent; }
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* Boutons */
.btn { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--s2); color: var(--txt); border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; justify-content: center; text-decoration: none; }
.btn:hover { background: var(--s3); }
.btn.primary { background: var(--violet); border-color: var(--violet); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.lime { background: var(--lime); color: var(--s1); border-color: var(--lime); }
.btn.danger { border-color: var(--red); color: var(--red); background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { position: relative; background: var(--s2); border: 1px solid var(--line); color: var(--txt); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-weight: 800; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--orange); color: var(--s1); border-radius: 10px; font-size: 11px; font-weight: 800; padding: 0 6px; line-height: 18px; }
.badge.crit { background: var(--red); color: #fff; }

/* Mise en page */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(10,15,42,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-right { display: flex; align-items: center; gap: 10px; }
.live { font-size: 11px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; border-radius: 6px; background: var(--lime); color: var(--s1); }
.live.off { background: var(--s3); color: var(--mut2); }
main { padding: 16px; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); max-width: 1280px; margin: 0 auto; }

.nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(6, 1fr); background: var(--s1); border-top: 1px solid var(--line); }
.nav a { display: grid; place-items: center; align-content: center; gap: 2px; color: var(--mut2); text-decoration: none; font-size: 11.5px; font-weight: 700; }
.nav a.active { color: var(--lime); }
.ic { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ic-dash { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3h8v10H3zM13 3h8v6h-8zM13 11h8v10h-8zM3 15h8v6H3z'/%3E%3C/svg%3E"); }
.ic-parc { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 3 6.5v11L12 22l9-4.5v-11zm0 2.3 6.4 3.2L12 10.7 5.6 7.5zM5 9.1l6 3v7.3l-6-3zm8 10.3v-7.3l6-3v7.3z'/%3E%3C/svg%3E"); }
.ic-flux { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 8a14 14 0 0 1 20 0l-2 2a11 11 0 0 0-16 0zm4 4a8 8 0 0 1 12 0l-2 2a5 5 0 0 0-8 0zm6 3 3 3-3 3-3-3z'/%3E%3C/svg%3E"); }
.ic-com { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7v4H3v6a3 3 0 0 0 3 3h2v-9H7V9a5 5 0 0 1 10 0v4h-1v9h2a3 3 0 0 0 3-3v-6h-2V9a7 7 0 0 0-7-7z'/%3E%3C/svg%3E"); }
.ic-map { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ic-cog { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m19.4 13 .1-1-.1-1 2.1-1.6-2-3.5-2.5 1a7 7 0 0 0-1.7-1L15 3h-4l-.4 2.9a7 7 0 0 0-1.7 1l-2.5-1-2 3.5L6.5 11l-.1 1 .1 1-2.1 1.6 2 3.5 2.5-1a7 7 0 0 0 1.7 1L11 21h4l.4-2.9a7 7 0 0 0 1.7-1l2.5 1 2-3.5zM13 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z'/%3E%3C/svg%3E"); }

@media (min-width: 900px) {
  .nav { top: 59px; bottom: 0; right: auto; width: 96px; height: auto; grid-template-columns: 1fr; grid-auto-rows: 76px; align-content: start; border-top: 0; border-right: 1px solid var(--line); padding-top: 8px; }
  main { padding: 24px 24px 24px 120px; }
  .map-wrap { left: 96px !important; bottom: 0 !important; }
}

/* Grilles et cartes */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.kpi .v { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi .l { font-size: 12px; color: var(--mut2); font-weight: 600; }
.kpi.ok .v { color: var(--lime); } .kpi.warn .v { color: var(--orange); }

.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.card.click { cursor: pointer; } .card.click:hover { border-color: var(--violet); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.sub { font-size: 12.5px; color: var(--mut2); }
.section { margin: 22px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.section h2 { margin: 0; }

.pill { font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.pill.on { background: rgba(215,232,41,.16); color: var(--lime); }
.pill.off { background: rgba(178,178,178,.15); color: var(--gris); }
.pill.warn { background: rgba(254,154,49,.16); color: var(--orange); }
.pill.crit { background: rgba(255,90,95,.16); color: var(--red); }
.pill.vio { background: rgba(92,91,236,.22); color: var(--mut); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.stat { background: var(--bg); border-radius: 10px; padding: 6px 8px; }
.stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--mut2); font-weight: 600; }
.stat.bad b { color: var(--orange); }

.links { display: grid; gap: 5px; margin-top: 6px; }
.link { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 8px; font-size: 12.5px; }
.link .n { color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { height: 7px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--violet); border-radius: 4px; transition: width .6s; }
.link.down .bar i { background: var(--gris); } .link.down .n { color: var(--mut2); text-decoration: line-through; }
.link .k { text-align: right; font-variant-numeric: tabular-nums; color: var(--mut2); }

/* Alertes */
.alerts { display: grid; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: center; background: var(--s1); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 10px; padding: 9px 12px; }
.alert.critique { border-left-color: var(--red); }
.alert .t { flex: 1; } .alert .s { font-size: 12px; color: var(--mut2); white-space: nowrap; }
.empty { color: var(--mut2); padding: 18px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); }

/* Camrunners */
.cam .row { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.cam .row b { color: var(--txt); }
.bat { display: inline-flex; align-items: center; gap: 5px; }
.bat i { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; display: inline-block; }
.bat i::after { content: ''; position: absolute; left: 1px; top: 1px; bottom: 1px; width: calc(var(--p) * 0.17px); background: currentColor; border-radius: 1px; }
.bat.low { color: var(--orange); }

/* Intercom */
.member { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .who { flex: 1; min-width: 0; }
.member .who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gris); flex: none; }
.dot.on { background: var(--lime); box-shadow: 0 0 0 3px rgba(215,232,41,.18); }
.tog { font: inherit; font-size: 12px; font-weight: 800; border-radius: 8px; padding: 5px 9px; border: 1px solid var(--line); background: transparent; color: var(--mut2); cursor: pointer; min-width: 54px; }
.tog.on { background: var(--violet); color: #fff; border-color: var(--violet); }
.tog.mic.on { background: var(--lime); color: var(--s1); border-color: var(--lime); }

/* Carte */
.map-wrap { position: fixed; z-index: 5; top: 59px; left: 0; right: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
#map { position: absolute; inset: 0; background: #0d1330; }
.map-panel { position: absolute; z-index: 500; left: 10px; right: 10px; bottom: 10px; max-height: 34%; overflow: auto; background: rgba(16,25,59,.94); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
@media (min-width: 900px) { .map-panel { left: auto; top: 10px; bottom: auto; width: 320px; max-height: calc(100% - 20px); } }
.map-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.map-item:hover { background: var(--s2); }
.map-item .who { flex: 1; min-width: 0; } .map-item .who b { display: block; font-size: 14px; }
.map-tools { display: flex; gap: 6px; padding: 4px 4px 8px; flex-wrap: wrap; }
.mk { background: var(--violet); color: #fff; border: 2px solid #fff; border-radius: 999px; padding: 1px 8px; font: 800 12px Cairo, sans-serif; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); transform: translate(-50%, -50%); display: inline-block; }
.mk.off { background: var(--gris); color: var(--s1); }
.mk.warn { background: var(--orange); color: var(--s1); }
.leaflet-div-icon.kh { background: none; border: 0; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--s1); color: var(--txt); }
.leaflet-container { font-family: Cairo, sans-serif; }
.leaflet-control-layers, .leaflet-bar a { background: var(--s1) !important; color: var(--txt) !important; border-color: var(--line) !important; }

/* Feuille modale */
.sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(5,8,25,.65); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { position: relative; width: min(640px, 100%); max-height: 88vh; overflow: auto; background: var(--s1); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 20px; } }
.sheet-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: var(--mut); font-size: 28px; cursor: pointer; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.out { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: 10px; margin-top: 8px; }
.out .who { flex: 1; min-width: 0; } .out code { font-size: 11.5px; color: var(--mut2); word-break: break-all; }

/* Réglages */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 4px; }
.tabs button { flex: none; }
.tabs button.active { background: var(--violet); border-color: var(--violet); }
.form-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 8px; color: var(--mut); font-size: 13px; }
.check input { width: auto; }
pre.out-json { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; overflow: auto; max-height: 50vh; font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.qr { background: #fff; border-radius: 12px; padding: 10px; width: 220px; margin: 10px auto; }
.qr svg { display: block; width: 100%; height: auto; }

/* Notifications */
.toasts { position: fixed; z-index: 2000; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top)); display: grid; gap: 8px; width: min(420px, 92vw); }
.toast { background: var(--s2); border: 1px solid var(--line); border-left: 4px solid var(--lime); border-radius: 10px; padding: 10px 14px; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: tin .2s ease-out; }
.toast.err { border-left-color: var(--red); } .toast.warn { border-left-color: var(--orange); }
@keyframes tin { from { opacity: 0; transform: translateY(-6px); } }

/* Intercom intégré au hub */
.ic-panel { position: fixed; z-index: 1500; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.45); }
.ic-panel.hidden { display: flex !important; transform: translateX(110%); pointer-events: none; visibility: hidden; }
.ic-panel { transition: transform .2s ease-out; }
.ic-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--s1); }
.ic-head .sub { flex: 1; font-size: 11.5px; }
.ic-panel iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }
.ic-fab { position: fixed; z-index: 1400; right: 12px; bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom)); display: flex; align-items: stretch; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.45); overflow: hidden; }
@media (min-width: 900px) { .ic-fab { bottom: 18px; } }
.ic-fab-mic { width: 52px; border: 0; font-size: 22px; background: var(--s3); color: var(--txt); cursor: pointer; }
.ic-fab.on .ic-fab-mic { background: var(--lime); color: var(--s1); }
.ic-fab-open { border: 0; background: transparent; color: var(--txt); padding: 6px 16px 6px 12px; text-align: left; cursor: pointer; font: inherit; display: grid; line-height: 1.2; }
.ic-fab-open .sub { font-size: 11.5px; }
.ic-fab.off .ic-fab-open b::before { content: '● '; color: var(--orange); }
.ic-fab.live .ic-fab-open b::before { content: '● '; color: var(--lime); }
#icOpen.live { box-shadow: 0 0 0 3px rgba(215,232,41,.35); }

/* Parc d'encodeurs */
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 4px 0 12px; padding-bottom: 4px; }
.chips button { flex: none; font: inherit; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--s1); color: var(--mut); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.chips button.active { background: var(--violet); border-color: var(--violet); color: #fff; }
.chips button b { color: var(--lime); margin-left: 4px; }
.srv-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.srv-dot { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 8px; border: 1px dashed var(--line); color: var(--mut2); }
.srv-dot.present { border-style: solid; color: var(--mut); }
.srv-dot.online { border-style: solid; border-color: var(--lime); color: var(--lime); background: rgba(215,232,41,.08); }
.srv-dot.down { opacity: .55; }
.enc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--mut2); margin-top: 6px; }
.enc-meta b { color: var(--txt); font-weight: 700; }
.srv-row { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--bg); border-radius: 10px; margin-top: 8px; flex-wrap: wrap; }
.srv-row .who { flex: 1; min-width: 160px; }
.srv-row .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.setup { margin-top: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--lime); background: rgba(215,232,41,.06); }
.setup h3 { color: var(--lime); margin: 0 0 6px; font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 10px; align-items: center; margin-top: 8px; }
.kv span { color: var(--mut2); font-size: 13px; }
.kv code { font-size: 15px; font-weight: 700; color: var(--txt); background: var(--bg); padding: 4px 8px; border-radius: 6px; word-break: break-all; }
.code-hide { filter: blur(5px); cursor: pointer; }

/* Console d'un encodeur (interface Kiloview relayée par KiloHub) */
.kconsole { position: fixed; inset: 0; z-index: 1200; background: var(--bg); display: flex; flex-direction: column; }
.kconsole-h { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--s1); border-bottom: 1px solid var(--line); }
.kconsole-h img { height: 22px; }
.kconsole-h .t { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kconsole-h .t small { color: var(--mut2); font-weight: 400; margin-left: 6px; }
.kconsole iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.kconsole .wait { flex: 1; display: grid; place-items: center; color: var(--mut); }

/* Infos détaillées de l'encodeur */
.dinfo { display: grid; gap: 10px; margin-top: 12px; min-width: 0; }
.dinfo > .dbox { min-width: 0; overflow: hidden; }
.dbox { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.dbox h3 { margin: 0 0 6px; font-size: 14px; color: var(--lime); text-transform: uppercase; letter-spacing: .04em; }
.dl { display: grid; grid-template-columns: minmax(96px, 36%) minmax(0, 1fr); gap: 3px 10px; font-size: 14px; }
.dl > span { color: var(--mut2); }
.dl > b { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.simt { width: 100%; border-collapse: collapse; font-size: 13px; }
.simt th { text-align: left; color: var(--mut2); font-weight: 600; padding: 3px 4px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.simt td { padding: 4px; border-bottom: 1px solid rgba(255,255,255,.05); white-space: nowrap; }
.simt-wrap { overflow-x: auto; }
.q-good { color: var(--lime); } .q-mid { color: var(--orange, #FE9A31); } .q-bad { color: #ff6b6b; }
.preview { position: relative; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; display: grid; place-items: center; margin-top: 10px; }
.preview img { width: 100%; height: 100%; object-fit: contain; }
.preview .none { color: var(--mut); font-size: 14px; padding: 12px; text-align: center; }
.preview .tag { position: absolute; left: 8px; top: 8px; font-size: 12px; font-weight: 700; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 6px; }
.batt { display: inline-block; min-width: 44px; }
.preview.sm { margin: 8px 0 0; border-radius: 10px; }
.preview.sm .none { font-size: 12px; }

/* Courbes */
.chart { position: relative; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 4px; margin: 8px 0; }
.chart-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 4px; font-size: 13px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .g { stroke: var(--line); stroke-width: 1; }
.chart .tk { fill: var(--mut); font-size: 10px; font-family: inherit; }
.chart .el { fill: var(--mut); font-size: 10px; font-family: inherit; }
.chart .xh { stroke: var(--mut); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-empty { color: var(--mut); font-size: 13px; padding: 18px 0; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--mut); font-size: 12px; }
.legend i, .chart .tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.chart .tip { position: absolute; top: 34px; pointer-events: none; background: var(--s3); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; color: var(--txt); white-space: nowrap; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.chart .tip > b { display: block; color: var(--mut); font-weight: 600; margin-bottom: 2px; }
.out.ocard { align-items: flex-start; border: 1px solid var(--line); }
.out.ocard .row-actions { margin-bottom: 0; }
/* Mises à jour */
.updjob { margin: 8px 0 0; font-size: 13px; color: var(--txt); }
.updjob .bar { margin-top: 5px; }
.card.upd .dl { margin-top: 6px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
