/* Vigia · thèmes et blocs du tableau de bord (Studio, aperçu et formulaire K2). Polices : SIL OFL 1.1 (fonts/vigia). */
@font-face { font-family: "Vigia Chakra"; src: url(/site/assets/fonts/vigia/chakra-petch-600.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Vigia Mono"; src: url(/site/assets/fonts/vigia/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vigia Mono"; src: url(/site/assets/fonts/vigia/ibm-plex-mono-600.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "Vigia Grotesk"; src: url(/site/assets/fonts/vigia/space-grotesk-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Vigia Fraunces"; src: url(/site/assets/fonts/vigia/fraunces-600.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Vigia Inter"; src: url(/site/assets/fonts/vigia/inter-var.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Vigia Sora"; src: url(/site/assets/fonts/vigia/sora-var.woff2) format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Vigia Barlow"; src: url(/site/assets/fonts/vigia/barlow-condensed-600.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Vigia Barlow"; src: url(/site/assets/fonts/vigia/barlow-condensed-700.woff2) format("woff2"); font-weight: 700 800; font-display: swap; }

.vg {
  --c1: var(--accent); --c2: var(--accent2);
  --radius: 4px; --bar-r: 2px; --gap: 14px;
  --font-head: "Vigia Inter", system-ui, sans-serif; --font-body: "Vigia Inter", system-ui, sans-serif; --font-label: "Vigia Inter", system-ui, sans-serif; --font-num: var(--font-head);
  --label-case: uppercase; --label-track: .12em; --label-size: 11px;
  min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; box-sizing: border-box;
}
.vg *, .vg *::before, .vg *::after { box-sizing: border-box; }
.vg-in { max-width: 1600px; margin: 0 auto; padding: 22px 26px 30px; }

/* ---- Thèmes */
.theme-night {
  --bg: #060c18; --panel: rgba(12, 24, 44, .92); --border: rgba(34, 211, 238, .16); --text: #d6ecff; --muted: #8fb2d0; --gl: rgba(127, 167, 201, .16); --track: rgba(127, 167, 201, .16);
  --c3: #a78bfa; --c4: #34d399; --c5: #f472b6; --c6: #facc15; --c7: #60a5fa; --c8: #f87171; --alert: var(--accent2); --ok: #4ade80;
  --radius: 0; --bar-r: 0; --font-head: "Vigia Chakra", sans-serif; --font-body: "Vigia Chakra", sans-serif; --font-label: "Vigia Mono", monospace; --label-track: .14em;
}
.theme-day {
  --bg: #eef3f8; --panel: #ffffff; --border: #d7e3ee; --text: #0f172a; --muted: #5b6b7d; --gl: #e2ebf3; --track: #e2ebf3;
  --c3: #7c3aed; --c4: #15803d; --c5: #be185d; --c6: #ca8a04; --c7: #2563eb; --c8: #dc2626; --alert: var(--accent2); --ok: #15803d;
  --font-head: "Vigia Grotesk", sans-serif; --font-body: "Vigia Grotesk", sans-serif; --font-label: "Vigia Mono", monospace;
}
.theme-paper {
  --bg: #f5efe3; --panel: transparent; --border: transparent; --text: #1c1917; --muted: #57534e; --gl: #d6cbb6; --track: #e6dcc8;
  --c3: #78716c; --c4: #a16207; --c5: #0f766e; --c6: #57534e; --c7: #9a3412; --c8: #44403c; --alert: var(--accent); --ok: #3f6212;
  --radius: 0; --bar-r: 0; --font-head: "Vigia Fraunces", Georgia, serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif; --label-track: .16em;
}
.theme-pop {
  --bg: #f4f2fb; --panel: #ffffff; --border: transparent; --text: #1e1b4b; --muted: #5b5794; --gl: #ece9f8; --track: #ebe8f7;
  --c3: #38bdf8; --c4: #84cc16; --c5: #facc15; --c6: #a78bfa; --c7: #f97316; --c8: #14b8a6; --alert: #e11d48; --ok: #4d7c0f;
  --radius: 26px; --bar-r: 10px; --font-head: "Vigia Sora", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif;
  --label-case: none; --label-track: 0; --label-size: 13px;
}
.theme-control {
  --bg: #2a2e35; --panel: #343a43; --border: #454d58; --text: #e7e9ec; --muted: #a9b2bf; --gl: #48505c; --track: #454d58;
  --c3: #60a5fa; --c4: #f87171; --c5: #a3e635; --c6: #e879f9; --c7: #fcd34d; --c8: #94a3b8; --alert: var(--accent2); --ok: #5eead4;
  --radius: 6px; --bar-r: 1px; --font-head: "Vigia Barlow", sans-serif; --font-body: "Vigia Mono", monospace; --font-label: "Vigia Mono", monospace;
}

/* ---- En-tête */
.vg-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 18px; }
.vg-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vg-mark { color: var(--accent); display: grid; place-items: center; }
.vg-logo-img { height: 42px; max-width: 180px; object-fit: contain; }
.vg-name { font-family: var(--font-head); font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.vg-sub { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.vg-folder { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; font-family: var(--font-label); font-size: 11.5px; color: var(--text); }
.vg-folder svg { color: var(--accent); }
.vg-sp { flex: 1 1 40px; }
.vg-filter { display: flex; flex-direction: column; gap: 4px; }
.vg-filter select { font: inherit; font-size: 13.5px; color: var(--text); background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; min-height: 40px; max-width: 220px; }
.theme-paper .vg-filter select, .theme-pop .vg-filter select { background: #fff; border-color: #d6cbb6; }
.theme-pop .vg-filter select { border-color: #e2def5; border-radius: 999px; padding: 8px 14px; }
.theme-night .vg-filter select { background: #0b1628; border-color: rgba(34, 211, 238, .35); }
.vg-status { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; min-height: 40px; font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--border); border-radius: var(--radius); }
.vg-status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vg-status.ok { color: var(--ok); } .vg-status.warn { color: var(--alert); } .vg-status.demo { color: var(--muted); }
.theme-paper .vg-head { border-bottom: 3px double var(--text); padding-bottom: 12px; }
.theme-paper .vg-name { font-size: 30px; }

/* ---- Grille et blocs */
.vg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 56px; gap: var(--gap); position: relative; }
.vg-b { container-type: inline-size; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; overflow: hidden; }
.vg-bt { margin: 0 0 8px; font-family: var(--font-label); font-size: var(--label-size); font-weight: 600; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.vg-bb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.vg-noframe { background: transparent; border-color: transparent; padding: 4px 2px; overflow: visible; }
.vg-t-kpi_spark .vg-bb { flex-direction: row; align-items: flex-end; gap: 14px; }
.vg-t-kpi_spark .vg-kpi { flex: none; }
.vg-t-kpi_spark .vg-spark-wrap { flex: 1 1 40%; height: 46px !important; min-width: 60px; padding-bottom: 6px; }
.theme-night .vg-b:not(.vg-noframe)::before, .theme-night .vg-b:not(.vg-noframe)::after,
.theme-day .vg-b:not(.vg-noframe)::before, .theme-day .vg-b:not(.vg-noframe)::after { content: ""; position: absolute; width: 13px; height: 13px; border: 0 solid var(--accent); pointer-events: none; }
.theme-night .vg-b:not(.vg-noframe)::before, .theme-day .vg-b:not(.vg-noframe)::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.theme-night .vg-b:not(.vg-noframe)::after, .theme-day .vg-b:not(.vg-noframe)::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.theme-paper .vg-b:not(.vg-noframe) { border-top: 1px solid var(--text); padding: 12px 2px 6px; }
.theme-pop .vg-b { box-shadow: 0 1px 0 rgba(30, 27, 75, .04); }
.theme-control .vg-bt { color: var(--text); }

.vg-lbl { font-family: var(--font-label); font-size: var(--label-size); letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--muted); }
.vg-note { font-size: 12.5px; color: var(--muted); }
.vg-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 13px; padding: 8px; border: 1px dashed var(--border); border-radius: var(--radius); }
.vg-empty.warn { color: var(--alert); border-color: currentColor; font-size: 12.5px; }
.alert { color: var(--alert) !important; }
.vg-center { flex: 1; display: grid; place-items: center; min-height: 0; }

/* Chiffres */
.vg-kpi { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vg-num { white-space: nowrap; font-family: var(--font-num); font-size: clamp(24px, 17cqi, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.vg-num.alert { color: var(--alert); }
.vg-of { font-size: .45em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.vg-delta { font-size: 13px; font-weight: 600; color: var(--muted); }
.vg-delta.up { color: var(--ok); } .vg-delta.down { color: var(--alert); }
.vg-delta span { font-weight: 400; color: var(--muted); }
.vg-spark-wrap { flex: 1; min-height: 28px; }
.vg-spark { width: 100%; height: 100%; display: block; }
.vg-stats { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; align-content: center; }
.vg-stats b { display: block; font-family: var(--font-num); font-size: 26px; line-height: 1.1; }
.vg-strip { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; height: 100%; font-family: var(--font-label); font-size: 13.5px; }
.vg-strip b { font-family: var(--font-num); font-size: 17px; }
.vg-track { height: 6px; background: var(--track); border-radius: 99px; overflow: hidden; flex: none; }
.vg-track.big { height: 10px; margin: 6px 0 2px; }
.vg-track i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.theme-night .vg-track, .theme-paper .vg-track { border-radius: 0; }

/* Tons des chiffres du thème Pop */
.theme-pop .vg-b.tone-1 { background: var(--accent); color: #fff; } .theme-pop .vg-b.tone-1 .vg-bt, .theme-pop .vg-b.tone-1 .vg-note, .theme-pop .vg-b.tone-1 .vg-delta span, .theme-pop .vg-b.tone-1 .vg-of { color: rgba(255, 255, 255, .86); }
.theme-pop .vg-b.tone-1 .vg-num.alert, .theme-pop .vg-b.tone-1 .vg-delta { color: #fff; }
.theme-pop .vg-b.tone-2 { background: #ffe1dc; color: #881337; } .theme-pop .vg-b.tone-2 .vg-bt, .theme-pop .vg-b.tone-2 .vg-note { color: #9f1239; } .theme-pop .vg-b.tone-2 .vg-num.alert { color: #881337; }
.theme-pop .vg-b.tone-3 { background: #e3f5c4; color: #365314; } .theme-pop .vg-b.tone-3 .vg-bt, .theme-pop .vg-b.tone-3 .vg-note { color: #3f6212; }
.theme-pop .vg-b.tone-4 { background: #d9edfd; color: #0c4a6e; } .theme-pop .vg-b.tone-4 .vg-bt, .theme-pop .vg-b.tone-4 .vg-note { color: #075985; }
.theme-pop .vg-b.tone-5 { background: #fff0b3; color: #713f12; } .theme-pop .vg-b.tone-5 .vg-bt, .theme-pop .vg-b.tone-5 .vg-note { color: #854d0e; }
.theme-pop .vg-b[class*="tone-"] .vg-track { background: rgba(0, 0, 0, .1); }
.theme-pop .vg-num { font-weight: 800; letter-spacing: -.04em; }
.theme-paper .vg-num { font-weight: 600; }

/* Graphiques */
.vg-svg { width: 100%; flex: 1 1 auto; min-height: 0; display: block; overflow: visible; }
.vg-svg rect { rx: var(--bar-r); }
.vg-gl { stroke: var(--gl); stroke-width: 1; }
.vg-ax { fill: var(--muted); font-family: var(--font-label); font-size: 10.5px; }
.vg-val { fill: var(--text); font-family: var(--font-label); font-size: 11px; font-weight: 600; }
.vg-big-svg { fill: var(--text); font-family: var(--font-num); font-size: 34px; font-weight: 700; }
.vg-track-s { stroke: var(--track); }
.vg-target { stroke: var(--text); stroke-width: 3; }
.vg-tm { fill: #fff; font-family: var(--font-label); font-size: 12px; } .vg-tm.b { font-family: var(--font-num); font-size: 17px; font-weight: 700; }
.theme-paper .vg-tm, .theme-day .vg-tm { fill: #fff; }
.vg-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.vg-legend.row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; flex: none; }
.vg-legend li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vg-legend span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.vg-legend.row span { flex: none; }
.vg-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.vg-donut { flex: 1; min-height: 0; display: flex; align-items: center; gap: 16px; }
.vg-donut svg { flex: none; height: 100%; max-height: 100%; }
@container (max-width: 330px) { .vg-donut { flex-direction: column; align-items: stretch; gap: 8px; } .vg-donut svg { height: auto; max-height: 55%; align-self: center; } .vg-donut .vg-legend { gap: 3px; font-size: 12px; } }
@container (max-width: 200px) { .vg-t-kpi_spark .vg-spark-wrap { display: none; } }
.vg-donut .vg-legend { flex: 1; }
.vg-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.vg-hb-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 5px; }
.vg-hb-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-heat-wrap { flex: 1; min-height: 0; overflow: auto; }
.vg-heat { width: 100%; height: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.vg-heat th { font-family: var(--font-label); font-weight: 500; font-size: 10.5px; color: var(--muted); text-align: center; white-space: nowrap; }
.vg-heat th[scope="row"] { text-align: left; padding-right: 6px; font-size: 12px; color: var(--text); }
.vg-heat td { text-align: center; border-radius: calc(var(--bar-r) + 1px); background: color-mix(in srgb, var(--accent) calc(var(--f) * 85%), var(--track)); color: var(--text); font-weight: 600; min-width: 26px; }
.vg-heat td.hot { color: #fff; }
.theme-paper .vg-heat td.hot, .theme-day .vg-heat td.hot { color: #fff; }
.vg-cal { flex: 1; min-height: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.vg-cal i { border-radius: 2px; background: color-mix(in srgb, var(--accent) calc(var(--f) * 90%), var(--track)); }
.vg-cal i.off { background: transparent; }
.vg-mult { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 18px; align-items: end; }
.vg-mult > div { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-width: 0; }
.vg-mult .vg-lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-mult b { font-family: var(--font-num); font-size: 20px; }
.vg-mult .vg-spark { grid-column: 1 / -1; height: 34px; }
.vg-gauge, .vg-ring, .vg-dial { max-height: 100%; }
/* Cadran et vagues en crête */
.vg-dial-bezel { fill: none; stroke: var(--gl); stroke-width: 2; }
.vg-dial-face { fill: color-mix(in srgb, var(--text) 4%, transparent); stroke: var(--gl); stroke-width: 1; }
.vg-dial-tick { stroke: var(--muted); stroke-width: 1.4; opacity: .45; }
.vg-dial-tick.major { stroke-width: 2.2; opacity: .8; }
.vg-dial-tick.on { stroke: var(--accent); opacity: 1; }
.vg-dial-dot { stroke: var(--panel); stroke-width: 2; }
.vg-ridge-fill { fill: var(--ridge-bg, var(--panel)); }
.vg-ridge-line { fill: none; stroke: var(--accent); stroke-width: 1.1; }
.vg-ridge-line.top { stroke-width: 1.8; }
.vg-ridge-mesh { stroke: var(--accent); stroke-width: .7; opacity: .2; }
.vg-ridge-lbl { fill: var(--text); font-family: var(--font-label); font-size: 11px; font-weight: 600; paint-order: stroke; stroke: var(--ridge-bg, var(--panel)); stroke-width: 3px; stroke-linejoin: round; }
.theme-night { --ridge-bg: #0c182c; } .theme-paper { --ridge-bg: #f5efe3; } .theme-swiss { --ridge-bg: #ffffff; } .theme-aurora { --ridge-bg: #181538; }
.theme-terminal { --ridge-bg: #061206; } .theme-neon { --ridge-bg: #16062a; } .theme-luxe { --ridge-bg: #15130f; }

/* Processus */
.vg-pipe-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.vg-pipe { flex: 1; display: flex; align-items: stretch; gap: 8px; min-height: 0; overflow-x: auto; }
.vg-step { flex: 1 1 130px; min-width: 120px; display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.theme-paper .vg-step { border-color: var(--gl); }
.theme-pop .vg-step { border: 0; background: #f6f4fd; border-radius: 18px; }
.vg-step b { font-family: var(--font-num); font-size: 28px; line-height: 1; }
.vg-step.hot { border: 2px solid var(--accent2); }
.vg-step.hot .vg-track i { background: var(--accent2); }
.vg-step.done { border-style: dashed; }
.vg-step.done b { color: var(--ok); }
.vg-arrow { align-self: center; color: var(--muted); font-size: 18px; flex: none; }
.vg-funnel { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.vg-funnel div { margin: 0 auto; min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 10px; color: #fff; font-size: 12.5px; border-radius: var(--bar-r); white-space: nowrap; overflow: hidden; }
.vg-funnel span { overflow: hidden; text-overflow: ellipsis; }
.vg-pills { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; flex: 1; }
.vg-pill { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--pc); font-size: 13px; }
.vg-pill b { font-family: var(--font-num); font-size: 18px; color: var(--pc); }

/* Listes */
.vg-table-wrap { flex: 1; min-height: 0; overflow: auto; }
.vg-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vg-table th { font-family: var(--font-label); font-size: 10.5px; letter-spacing: var(--label-track); text-transform: var(--label-case); color: var(--muted); font-weight: 500; text-align: left; padding: 4px 6px 8px; white-space: nowrap; position: sticky; top: 0; background: var(--panel); }
.theme-paper .vg-table th { background: var(--bg); }
.vg-table td { padding: 8px 6px; border-top: 1px solid var(--gl); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.vg-table .r { text-align: right; }
.vg-table .mono { font-family: var(--font-label); color: var(--accent); font-size: 12.5px; }
.theme-paper .vg-table .mono { color: var(--text); font-weight: 600; }
.vg-people, .vg-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; overflow: auto; min-height: 0; }
.vg-people li { display: grid; grid-template-columns: 34px minmax(0, 1fr) minmax(50px, 90px) 36px; align-items: center; gap: 10px; }
.vg-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.vg-pn { display: flex; flex-direction: column; min-width: 0; }
.vg-pn b, .vg-pn .vg-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg-pv { text-align: right; font-family: var(--font-num); }
.vg-tasks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--gl); }
.vg-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; overflow: auto; font-size: 13px; min-height: 0; }
.vg-feed li { display: flex; gap: 10px; }
.vg-feed time { font-family: var(--font-label); color: var(--muted); font-size: 12px; flex: none; }
.vg-feed .k-completed, .vg-feed .k-step { color: var(--ok); } .vg-feed .k-started { color: var(--accent); } .vg-feed .k-rejected { color: var(--alert); }
.vg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border-radius: var(--radius); background: var(--accent); color: #fff; font-weight: 600; font-size: 13.5px; text-decoration: none; border: 0; white-space: nowrap; }
.theme-night .vg-btn, .theme-control .vg-btn { color: #04121a; }
.theme-pop .vg-btn { border-radius: 999px; }
.vg-btn.off { opacity: .55; }
.vg-links { display: flex; flex-wrap: wrap; gap: 8px; align-content: center; flex: 1; }

/* Contenu */
.vg-title h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.vg-title p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.theme-paper .vg-title h2 { font-size: 30px; font-weight: 600; }
.theme-night .vg-title h2, .theme-control .vg-title h2 { text-transform: uppercase; letter-spacing: .08em; }
.vg-text { font-size: 14.5px; line-height: 1.55; overflow: auto; }
.vg-img { width: 100%; height: 100%; min-height: 0; flex: 1; }
.vg-hr { width: 100%; border: 0; border-top: 1px solid var(--gl); margin: auto 0; }
.theme-paper .vg-hr { border-top: 3px double var(--text); }

/* ---- Thèmes ajoutés (novembre 2026) : Aurora, Swiss, Corporate, Terminal, Bento, Neon, Brutal, Luxe */
.theme-aurora, .theme-neon, .theme-terminal, .theme-luxe, .theme-night, .theme-control { color-scheme: dark; }

/* Aurora : verre dépoli sur un ciel violet et cyan (futuriste, doux) */
.theme-aurora {
  --bg: #0b0b1e; --panel: rgba(255, 255, 255, .06); --border: rgba(255, 255, 255, .12); --text: #eef0ff; --muted: #a9acd8; --gl: rgba(169, 172, 216, .14); --track: rgba(169, 172, 216, .18);
  --c3: #f472b6; --c4: #34d399; --c5: #fbbf24; --c6: #60a5fa; --c7: #fb923c; --c8: #e879f9; --alert: #fb7185; --ok: #34d399;
  --radius: 20px; --bar-r: 6px; --font-head: "Vigia Sora", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif;
  --label-case: none; --label-track: 0; --label-size: 13px;
  background: radial-gradient(900px 620px at 8% -12%, rgba(139, 92, 246, .5), transparent 62%), radial-gradient(820px 600px at 100% -4%, rgba(34, 211, 238, .3), transparent 60%), radial-gradient(900px 700px at 55% 125%, rgba(236, 72, 153, .28), transparent 60%), #0b0b1e;
}
.theme-aurora .vg-b:not(.vg-noframe) { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 44px -28px rgba(0, 0, 0, .7); }
.theme-aurora .vg-filter select { background: rgba(20, 18, 48, .85); border-radius: 999px; padding: 8px 14px; }
.theme-aurora .vg-status { border-radius: 999px; }
.theme-aurora .vg-num { font-weight: 600; letter-spacing: -.035em; }
.theme-aurora .vg-step { border-radius: 16px; }
.theme-aurora .vg-btn { border-radius: 999px; color: #0b0b1e; }

/* Swiss : blanc, noir, un rouge ; filets fins, grands chiffres (moderne, sobre) */
.theme-swiss {
  --bg: #ffffff; --panel: transparent; --border: transparent; --text: #111111; --muted: #6b6b6b; --gl: #e6e6e6; --track: #ececec;
  --c3: #111111; --c4: #8a8a8a; --c5: #c9c9c9; --c6: #5c5c5c; --c7: #f08a8f; --c8: #3d3d3d; --alert: #e11d2e; --ok: #111111;
  --radius: 0; --bar-r: 0; --font-head: "Vigia Inter", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif;
  --label-track: .14em; --label-size: 10.5px;
}
.theme-swiss .vg-head { border-bottom: 2px solid var(--text); padding-bottom: 14px; }
.theme-swiss .vg-name { font-size: 30px; letter-spacing: -.03em; }
.theme-swiss .vg-b:not(.vg-noframe) { border-top: 2px solid var(--text); padding: 12px 0 4px; }
.theme-swiss .vg-bt { color: var(--text); font-weight: 700; }
.theme-swiss .vg-num { font-weight: 300; letter-spacing: -.05em; font-size: clamp(28px, 20cqi, 58px); }
.theme-swiss .vg-step { border-color: var(--gl); }
.theme-swiss .vg-filter select { background: #fff; border-color: #111; }
.theme-swiss .vg-status { border-color: #111; color: #111; }
.theme-swiss .vg-heat td.hot, .theme-swiss .vg-tm { color: #fff; fill: #fff; }
.theme-swiss .vg-title h2 { font-size: 34px; letter-spacing: -.035em; }

/* Corporate : le tableau de bord d'entreprise classique, clair et net (standard) */
.theme-corporate {
  --bg: #f5f6f8; --panel: #ffffff; --border: #e5e7eb; --text: #101828; --muted: #667085; --gl: #eef0f3; --track: #eef0f3;
  --c3: #10b981; --c4: #8b5cf6; --c5: #ec4899; --c6: #06b6d4; --c7: #f97316; --c8: #64748b; --alert: #dc2626; --ok: #059669;
  --radius: 12px; --bar-r: 4px; --font-head: "Vigia Inter", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif;
  --label-case: none; --label-track: 0; --label-size: 13px;
}
.theme-corporate .vg-b:not(.vg-noframe) { box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04); padding: 16px 18px; }
.theme-corporate .vg-bt { font-weight: 600; color: #344054; }
.theme-corporate .vg-filter select { background: #fff; border-color: #d0d5dd; border-radius: 8px; }
.theme-corporate .vg-status { border-radius: 8px; background: #fff; }
.theme-corporate .vg-num { font-weight: 600; letter-spacing: -.03em; }
.theme-corporate .vg-step { border-radius: 10px; }

/* Terminal : écran phosphore vert, lignes de balayage (rétro-futuriste) */
.theme-terminal {
  --bg: #040904; --panel: rgba(6, 18, 8, .9); --border: rgba(51, 255, 102, .28); --text: #b8ffc8; --muted: #5fc777; --gl: rgba(51, 255, 102, .12); --track: rgba(51, 255, 102, .14);
  --c3: #00e5ff; --c4: #ff5f56; --c5: #c792ea; --c6: #ffd866; --c7: #7fdbca; --c8: #f78c6c; --alert: #ffb000; --ok: #33ff66;
  --radius: 0; --bar-r: 0; --font-head: "Vigia Mono", monospace; --font-body: "Vigia Mono", monospace; --font-label: "Vigia Mono", monospace; --label-track: .1em;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), radial-gradient(1200px 700px at 50% 40%, #0a1f0d, #030603 75%);
}
.theme-terminal .vg-bt::before { content: "> "; color: var(--accent); }
.theme-terminal .vg-num, .theme-terminal .vg-name, .theme-terminal .vg-big-svg, .theme-terminal .vg-step b { text-shadow: 0 0 10px rgba(51, 255, 102, .55); font-weight: 600; }
.theme-terminal .vg-b:not(.vg-noframe) { border-style: dashed; }
.theme-terminal .vg-filter select { background: #061206; }
.theme-terminal .vg-btn { color: #021004; }
.theme-terminal .vg-title h2 { text-transform: uppercase; letter-spacing: .12em; }
.theme-terminal .vg-title h2::before { content: "$ "; color: var(--accent); }

/* Bento : tuiles arrondies aux couleurs chaudes et douces (contemporain) */
.theme-bento {
  --bg: #efe9df; --panel: #fbf8f3; --border: transparent; --text: #2b2620; --muted: #7a6f62; --gl: #e8dfd2; --track: #ebe3d6;
  --c3: #d9a441; --c4: #8aa6a3; --c5: #b5838d; --c6: #3f5e74; --c7: #e08e6d; --c8: #9c8f7e; --alert: #b4472a; --ok: #4f6f4e;
  --radius: 26px; --bar-r: 8px; --font-head: "Vigia Grotesk", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif;
  --label-case: none; --label-track: 0; --label-size: 13px;
}
.theme-bento .vg-b:not(.vg-noframe) { padding: 18px 20px; }
.theme-bento .vg-step { border: 0; background: #f2ece2; border-radius: 18px; }
.theme-bento .vg-filter select { background: #fbf8f3; border-color: #ddd2c2; border-radius: 999px; padding: 8px 14px; }
.theme-bento .vg-status { border-radius: 999px; }
.theme-bento .vg-num { font-weight: 700; letter-spacing: -.04em; }
.theme-bento .vg-btn { border-radius: 999px; }
.theme-bento .vg-b.tone-1 { background: var(--accent); color: #fff; } .theme-bento .vg-b.tone-1 .vg-bt, .theme-bento .vg-b.tone-1 .vg-note, .theme-bento .vg-b.tone-1 .vg-delta span, .theme-bento .vg-b.tone-1 .vg-of { color: rgba(255, 255, 255, .85); }
.theme-bento .vg-b.tone-1 .vg-num.alert, .theme-bento .vg-b.tone-1 .vg-delta { color: #fff; }
.theme-bento .vg-b.tone-2 { background: #dfe7d8; color: #2f4a2e; } .theme-bento .vg-b.tone-2 .vg-bt, .theme-bento .vg-b.tone-2 .vg-note { color: #45633f; } .theme-bento .vg-b.tone-2 .vg-num.alert { color: #2f4a2e; }
.theme-bento .vg-b.tone-3 { background: #f3e3c3; color: #5c4214; } .theme-bento .vg-b.tone-3 .vg-bt, .theme-bento .vg-b.tone-3 .vg-note { color: #7a5a1e; }
.theme-bento .vg-b.tone-4 { background: #dde6ea; color: #23404f; } .theme-bento .vg-b.tone-4 .vg-bt, .theme-bento .vg-b.tone-4 .vg-note { color: #36586a; }
.theme-bento .vg-b.tone-5 { background: #efd9d3; color: #6b2f22; } .theme-bento .vg-b.tone-5 .vg-bt, .theme-bento .vg-b.tone-5 .vg-note { color: #87402f; }
.theme-bento .vg-b[class*="tone-"] .vg-track { background: rgba(0, 0, 0, .1); }

/* Neon : violet nuit, magenta et cyan lumineux (cyber, futuriste) */
.theme-neon {
  --bg: #0a0014; --panel: rgba(22, 6, 42, .82); --border: rgba(255, 43, 214, .38); --text: #f7ecff; --muted: #b9a0dc; --gl: rgba(185, 160, 220, .14); --track: rgba(185, 160, 220, .16);
  --c3: #fff200; --c4: #8b5cf6; --c5: #22ff88; --c6: #ff7a00; --c7: #3b82f6; --c8: #ff4d6d; --alert: #fff200; --ok: #22ff88;
  --radius: 10px; --bar-r: 2px; --font-head: "Vigia Chakra", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Mono", monospace; --label-track: .14em;
  background: linear-gradient(rgba(255, 43, 214, .07) 1px, transparent 1px) 0 0 / 100% 44px, linear-gradient(90deg, rgba(0, 240, 255, .06) 1px, transparent 1px) 0 0 / 44px 100%, radial-gradient(900px 500px at 50% 110%, rgba(255, 43, 214, .35), transparent 65%), radial-gradient(700px 420px at 0% 0%, rgba(0, 240, 255, .2), transparent 60%), #0a0014;
}
.theme-neon .vg-b:not(.vg-noframe) { box-shadow: 0 0 0 1px rgba(255, 43, 214, .18), 0 0 26px -6px rgba(255, 43, 214, .5), inset 0 0 34px -20px rgba(0, 240, 255, .7); }
.theme-neon .vg-num, .theme-neon .vg-name, .theme-neon .vg-big-svg { text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent); }
.theme-neon .vg-filter select { background: #16062a; }
.theme-neon .vg-btn { color: #0a0014; }
.theme-neon .vg-title h2 { text-transform: uppercase; letter-spacing: .1em; }

/* Brutal : bordures épaisses, ombres franches, jaune vif (graphique, audacieux) */
.theme-brutal {
  --bg: #f2f0e9; --panel: #ffffff; --border: #111111; --text: #111111; --muted: #444444; --gl: #dcdcdc; --track: #e8e8e8;
  --c3: #ffd400; --c4: #00b37e; --c5: #ff6bcb; --c6: #111111; --c7: #8b5cf6; --c8: #00b8d9; --alert: #ff4d00; --ok: #00915f;
  --radius: 0; --bar-r: 0; --font-head: "Vigia Grotesk", sans-serif; --font-body: "Vigia Grotesk", sans-serif; --font-label: "Vigia Grotesk", sans-serif; --label-track: .06em; --label-size: 12px;
}
.theme-brutal .vg-b:not(.vg-noframe) { border-width: 2.5px; box-shadow: 6px 6px 0 #111; }
.theme-brutal .vg-bt { color: var(--text); font-weight: 700; }
.theme-brutal .vg-num { font-weight: 700; letter-spacing: -.04em; }
.theme-brutal .vg-name { text-transform: uppercase; letter-spacing: -.01em; font-size: 28px; }
.theme-brutal .vg-filter select, .theme-brutal .vg-status { border: 2.5px solid #111; background: #fff; box-shadow: 3px 3px 0 #111; color: #111; }
.theme-brutal .vg-step { border-width: 2px; }
.theme-brutal .vg-btn { border: 2.5px solid #111; box-shadow: 3px 3px 0 #111; }
.theme-brutal .vg-b.tone-1 { background: #ffd400; } .theme-brutal .vg-b.tone-3 { background: #c9f2e1; } .theme-brutal .vg-b.tone-5 { background: #ffd6ef; }
/* Grand chiffre de la première tuile (Brutal, Bento) : suit la hauteur du bloc (--h, en lignes) */
.theme-brutal .vg-t-kpi.tone-1 .vg-num, .theme-bento .vg-t-kpi.tone-1 .vg-num { font-size: max(28px, min(28cqi, calc(var(--h) * 24px), 150px)); line-height: 1; }
.theme-brutal .vg-title h2 { text-transform: uppercase; font-size: 28px; }

/* Luxe : noir et or, titres en serif (contemporain, direction) */
.theme-luxe {
  --bg: #0d0c0a; --panel: #15130f; --border: rgba(201, 169, 97, .22); --text: #f3ecdf; --muted: #a99f8c; --gl: rgba(201, 169, 97, .13); --track: rgba(201, 169, 97, .16);
  --c3: #8c7a52; --c4: #6f8f7f; --c5: #b07a5f; --c6: #d8cfbd; --c7: #5e6b7e; --c8: #a35d5d; --alert: #e0915c; --ok: #9fbf8f;
  --radius: 2px; --bar-r: 0; --font-head: "Vigia Fraunces", Georgia, serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif; --label-track: .22em; --label-size: 10.5px;
}
.theme-luxe .vg-head { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.theme-luxe .vg-name { font-size: 30px; font-weight: 600; }
.theme-luxe .vg-num { font-weight: 500; letter-spacing: -.01em; }
.theme-luxe .vg-b:not(.vg-noframe) { background: linear-gradient(180deg, #17150f, #121009); }
.theme-luxe .vg-filter select { background: #15130f; }
.theme-luxe .vg-btn { color: #0d0c0a; }
.theme-luxe .vg-title h2 { font-size: 30px; font-weight: 600; }

/* Holo teal : panneaux gris-bleu en relief doux, turquoise lumineux, cadrans (futuriste) */
.theme-holo {
  --bg: #16242c; --panel: #1d2f38; --border: rgba(255, 255, 255, .05); --text: #e2f6f7; --muted: #8aadb5; --gl: rgba(138, 173, 181, .14); --track: rgba(138, 173, 181, .16);
  --c3: #17a2b8; --c4: #5ad8ff; --c5: #7f8cff; --c6: #a7f3d0; --c7: #f5b84b; --c8: #ff6b81; --alert: #ff6b81; --ok: #2ee6d6; --ridge-bg: #1b2c34;
  --radius: 16px; --bar-r: 3px; --font-head: "Vigia Sora", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Inter", sans-serif; --label-track: .08em; --label-size: 10.5px;
  background: radial-gradient(1200px 700px at 50% -15%, #2b4552, transparent 70%), linear-gradient(180deg, #1c2e37, #0f1a20);
}
.theme-holo .vg-b:not(.vg-noframe) { background: linear-gradient(150deg, #23373f 0%, #18272f 100%); box-shadow: 10px 10px 22px rgba(4, 9, 12, .55), -6px -6px 16px rgba(62, 94, 108, .2), inset 0 1px 0 rgba(255, 255, 255, .05); }
.theme-holo .vg-bt { color: var(--text); font-weight: 700; }
.theme-holo .vg-num, .theme-holo .vg-big-svg { font-weight: 600; text-shadow: 0 0 18px rgba(46, 230, 214, .25); }
.theme-holo .vg-svg path[style*="stroke"], .theme-holo .vg-spark path, .theme-holo .vg-ridge-line.top, .theme-holo .vg-dial-val { filter: drop-shadow(0 0 4px rgba(46, 230, 214, .6)); }
.theme-holo .vg-track i { background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35)) !important; box-shadow: 0 0 10px rgba(46, 230, 214, .45); }
.theme-holo .vg-dial-bezel { stroke: rgba(138, 173, 181, .28); stroke-width: 3; filter: drop-shadow(5px 7px 8px rgba(0, 0, 0, .5)); }
.theme-holo .vg-dial-face { fill: #15232a; stroke: rgba(46, 230, 214, .18); }
.theme-holo .vg-dial-tick.on { filter: drop-shadow(0 0 3px #2ee6d6); }
.theme-holo .vg-filter select { background: #1d2f38; border-radius: 10px; box-shadow: 4px 4px 10px rgba(0, 0, 0, .35); }
.theme-holo .vg-status { border-radius: 10px; }
.theme-holo .vg-btn { color: #062a28; border-radius: 10px; }
.theme-holo .vg-step { border-radius: 12px; }

/* Holo blue : interface holographique bleue, traits lumineux et coins marqués (futuriste) */
.theme-holoblue {
  --bg: #020e24; --panel: rgba(4, 30, 70, .55); --border: rgba(56, 170, 255, .42); --text: #d3ecff; --muted: #6fa8d6; --gl: rgba(56, 170, 255, .14); --track: rgba(56, 170, 255, .2);
  --c3: #00ffd5; --c4: #ff4d8d; --c5: #ffd24d; --c6: #6b7cff; --c7: #00e0ff; --c8: #a0b4ff; --alert: #ff5c7a; --ok: #3dffb0; --ridge-bg: #04173a;
  --radius: 2px; --bar-r: 0; --font-head: "Vigia Chakra", sans-serif; --font-body: "Vigia Inter", sans-serif; --font-label: "Vigia Mono", monospace; --label-track: .14em; --label-size: 10.5px;
  background: linear-gradient(rgba(56, 170, 255, .05) 1px, transparent 1px) 0 0 / 100% 32px, linear-gradient(90deg, rgba(56, 170, 255, .05) 1px, transparent 1px) 0 0 / 32px 100%, radial-gradient(1000px 620px at 55% 30%, rgba(30, 140, 255, .28), transparent 65%), linear-gradient(180deg, #03163a, #010915);
}
.theme-holoblue .vg-b:not(.vg-noframe) { box-shadow: inset 0 0 26px rgba(47, 180, 255, .14), 0 0 18px -6px rgba(47, 180, 255, .5); }
.theme-holoblue .vg-b:not(.vg-noframe)::before, .theme-holoblue .vg-b:not(.vg-noframe)::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid #9fe6ff; pointer-events: none; }
.theme-holoblue .vg-b:not(.vg-noframe)::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.theme-holoblue .vg-b:not(.vg-noframe)::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.theme-holoblue .vg-num, .theme-holoblue .vg-name, .theme-holoblue .vg-big-svg, .theme-holoblue .vg-step b { text-shadow: 0 0 12px rgba(47, 180, 255, .75); font-weight: 600; }
.theme-holoblue .vg-svg path[style*="stroke"], .theme-holoblue .vg-spark path, .theme-holoblue .vg-ridge-line.top, .theme-holoblue .vg-dial-val { filter: drop-shadow(0 0 5px rgba(47, 180, 255, .85)); }
.theme-holoblue .vg-track-s { stroke-dasharray: 2 3; }
.theme-holoblue .vg-dial-bezel { stroke: rgba(56, 170, 255, .55); stroke-dasharray: 1 5; stroke-width: 3; }
.theme-holoblue .vg-dial-face { fill: rgba(4, 30, 70, .6); stroke: rgba(56, 170, 255, .4); }
.theme-holoblue .vg-track i { box-shadow: 0 0 10px rgba(47, 180, 255, .6); }
.theme-holoblue .vg-filter select { background: #04173a; }
.theme-holoblue .vg-btn { color: #021028; }
.theme-holoblue .vg-title h2 { text-transform: uppercase; letter-spacing: .12em; }
.theme-holo, .theme-holoblue { color-scheme: dark; }

/* Studio : édition */
.vg.editing .vg-b { cursor: grab; }
.vg.editing .vg-b:hover { outline: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.vg.editing .vg-sel { outline: 2px solid var(--accent) !important; outline-offset: 2px; z-index: 3; }
.vg.editing .vg-b a, .vg.editing .vg-b select { pointer-events: none; }
.vg-rs { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; cursor: nwse-resize; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); opacity: 0; z-index: 4; }
.vg.editing .vg-b:hover .vg-rs, .vg.editing .vg-sel .vg-rs { opacity: .9; }
.vg.editing .vg-grid { background-image: linear-gradient(to right, color-mix(in srgb, var(--muted) 14%, transparent) 1px, transparent 1px); background-size: calc((100% + var(--gap)) / 12) 100%; }
.vg-ghost { position: absolute; border: 2px dashed var(--accent); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 12%, transparent); pointer-events: none; z-index: 5; }

@media (max-width: 860px) {
  .vg-in { padding: 16px; }
  .vg-grid { display: flex; flex-direction: column; }
  .vg-b { min-height: calc(var(--h) * 56px + (var(--h) - 1) * 14px); }
  .vg-filter select { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vg * { transition: none !important; } }

/* Blocs des SmartObjects Workflow Analytics : bulles, statuts empilés, carte des sous-workflows, équipe, données */
.vg-bub { fill-opacity: .42; stroke-width: 1.5; }
.vg-bub-l { font-weight: 600; fill: var(--text); }
.vg-seg { display: flex; overflow: hidden; }
.vg-seg i { flex: none; border-radius: 0; background-image: none !important; box-shadow: none !important; }
.vg-sk-band { fill-opacity: .34; }
.vg-sk-band:hover { fill-opacity: .6; }
.vg-sk-l { font-size: 12px; fill: var(--text); font-weight: 600; }
.vg-score td { vertical-align: middle; white-space: nowrap; }
.vg-av.sm { width: 22px; height: 22px; font-size: 9.5px; display: inline-grid; margin-right: 8px; vertical-align: middle; }
.vg-mini { display: inline-block; width: 56px; height: 6px; border-radius: 3px; background: var(--track); margin-right: 8px; vertical-align: middle; overflow: hidden; }
.vg-mini i { display: block; height: 100%; background: var(--accent); }
.vg-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); flex: none; margin: 4px 0 8px; }
.vg-stats.three b { font-size: 22px; }
.vg-dv-h { margin-bottom: 6px; }

/* Filtres croisés : éléments cliquables, élément choisi, bandeau des filtres */
.vg:not(.editing) .vg-bb [data-x-dim] { cursor: pointer; }
.vg:not(.editing) .vg-bb [data-x-dim]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vg:not(.editing) .vg-bb li[data-x-dim]:hover, .vg:not(.editing) .vg-bb tr[data-x-dim]:hover, .vg:not(.editing) .vg-bb div[data-x-dim]:hover, .vg:not(.editing) .vg-bb span[data-x-dim]:hover, .vg:not(.editing) .vg-bb th[data-x-dim]:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.vg:not(.editing) .vg-bb g[data-x-dim]:hover, .vg:not(.editing) .vg-bb circle[data-x-dim]:hover, .vg:not(.editing) .vg-bb path[data-x-dim]:hover { filter: brightness(1.18); }
.vg-hit { fill: transparent; }
.vg-xsel .vg-bb [data-x-dim] { opacity: .32; transition: opacity .15s; }
.vg-xsel .vg-bb [data-x-dim].vg-on, .vg-xsel .vg-bb [data-x-dim] .vg-on, .vg-xsel .vg-bb .vg-on [data-x-dim] { opacity: 1; }
.vg-xsel .vg-bb td.vg-on, .vg-xsel .vg-bb th.vg-on { outline: 2px solid var(--accent2); outline-offset: -2px; }
.vg-xsel .vg-bb tr.vg-on td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.vg-xsel .vg-bb .vg-sk-band.vg-on { fill-opacity: .7; }
.vg-xbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.vg-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--text); border-radius: 999px; padding: 4px 10px 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.vg-chip span { font-size: 15px; line-height: 1; opacity: .75; }
.vg-chip:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.vg-chip.clear { background: transparent; border-color: var(--border); color: var(--muted); }
.vg-xbar .vg-note { margin-left: auto; }
