/* Vigie — jetons (docs/vigie-design-system/tokens.json), composants vg- et mise en page. Fichier assemblé : modifier les sources dans docs/vigie-design-system/. */
:root{--surface:#f5f8f9;--surface-raised:#ffffff;--surface-sunken:#ecf1f3;--line:#e2e8eb;--line-strong:#8597a0;--ink:#10191c;--ink-muted:#52626a;--ink-faint:#5f6f76;--accent:#0e6170;--accent-soft:#e0eff1;--on-accent:#ffffff;--series-2:#8a6bbf;--ok:#1b7a4b;--ok-soft:#e2f3e9;--warn:#985a00;--warn-soft:#fbefd9;--crit:#b3261e;--crit-soft:#fde6e3;--scrim:rgba(16, 25, 28, 0.32);--shadow-raised:0 1px 2px rgba(16, 25, 28, 0.05), 0 6px 20px rgba(16, 25, 28, 0.05);--shadow-float:0 8px 32px rgba(16, 25, 28, 0.14);--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--radius-sm:8px;--radius-md:14px;--radius-lg:22px;--radius-pill:999px;--font-sans:"Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--surface:#0d1315;--surface-raised:#141c1f;--surface-sunken:#0a0f11;--line:#223035;--line-strong:#5f747c;--ink:#e8eff1;--ink-muted:#9fb0b6;--ink-faint:#7f939a;--accent:#5cc3d2;--accent-soft:#12343a;--on-accent:#06262c;--series-2:#b39ae6;--ok:#52d18e;--ok-soft:#0f2e1f;--warn:#f2b24c;--warn-soft:#36280c;--crit:#ff7d71;--crit-soft:#3d1613;--scrim:rgba(0, 0, 0, 0.56);--shadow-raised:0 1px 2px rgba(0, 0, 0, 0.5);--shadow-float:0 8px 32px rgba(0, 0, 0, 0.6);color-scheme:dark}}
:root[data-theme="dark"]{--surface:#0d1315;--surface-raised:#141c1f;--surface-sunken:#0a0f11;--line:#223035;--line-strong:#5f747c;--ink:#e8eff1;--ink-muted:#9fb0b6;--ink-faint:#7f939a;--accent:#5cc3d2;--accent-soft:#12343a;--on-accent:#06262c;--series-2:#b39ae6;--ok:#52d18e;--ok-soft:#0f2e1f;--warn:#f2b24c;--warn-soft:#36280c;--crit:#ff7d71;--crit-soft:#3d1613;--scrim:rgba(0, 0, 0, 0.56);--shadow-raised:0 1px 2px rgba(0, 0, 0, 0.5);--shadow-float:0 8px 32px rgba(0, 0, 0, 0.6);color-scheme:dark}
/* Vigie — composants. Préfixe vg-. Toutes les couleurs, rayons et ombres viennent des jetons. */
.vg, .vg *, .vg *::before, .vg *::after { box-sizing: border-box; }
.vg { font-family: var(--font-sans); color: var(--ink); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
.vg :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.vg-num { font-variant-numeric: tabular-nums; }
.vg-mono { font-family: var(--font-mono); font-size: 12.5px; }

/* Pastille d'état : icône + mot, jamais la couleur seule */
.vg-pill { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 10px 0 7px; border-radius: var(--radius-pill); font: 600 12px/1 var(--font-sans); letter-spacing: .01em; white-space: nowrap; }
.vg-pill svg { width: 14px; height: 14px; flex: none; }
.vg-pill--ok { background: var(--ok-soft); color: var(--ok); }
.vg-pill--warn { background: var(--warn-soft); color: var(--warn); }
.vg-pill--crit { background: var(--crit-soft); color: var(--crit); }

/* Pastille ronde d'icône d'état (listes) */
.vg-badge { width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; flex: none; }
.vg-badge svg { width: 18px; height: 18px; }
.vg-badge--ok { background: var(--ok-soft); color: var(--ok); }
.vg-badge--warn { background: var(--warn-soft); color: var(--warn); }
.vg-badge--crit { background: var(--crit-soft); color: var(--crit); }

/* Carte */
.vg-card { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); padding: var(--space-4); }

/* Synthèse */
.vg-verdict { display: flex; flex-direction: column; gap: var(--space-3); }
.vg-verdict__time { font-size: 13px; color: var(--ink-muted); display: flex; align-items: center; gap: 6px; }
.vg-verdict__live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.vg-verdict__title { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.vg-verdict__counts { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* Carte de famille */
.vg-family { display: flex; flex-direction: column; gap: 6px; padding: 14px var(--space-4) var(--space-3); background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); color: inherit; text-decoration: none; border: 0; text-align: left; font: inherit; cursor: pointer; width: 100%; transition: transform .18s ease; }
.vg-family:active { transform: scale(.98); }
.vg-family__top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.vg-family__name { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.vg-family__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.vg-family__dot--ok { background: var(--ok); }
.vg-family__dot--warn { background: var(--warn); }
.vg-family__dot--crit { background: var(--crit); }
.vg-family__value { font-size: 28px; line-height: 32px; font-weight: 300; letter-spacing: -.01em; }
.vg-family__value small { font-size: 14px; font-weight: 400; color: var(--ink-muted); margin-left: 3px; letter-spacing: 0; }
.vg-family__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vg-family__sub--warn { color: var(--warn); } .vg-family__sub--crit { color: var(--crit); }
.vg-family svg.vg-spark { width: 100%; height: 28px; display: block; margin-top: 2px; }

/* Point à traiter */
.vg-todo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-3); padding: 14px var(--space-4); background: var(--surface-raised); border: 0; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.vg-todo + .vg-todo { border-top: 1px solid var(--line); }
.vg-todo__title { font-size: 15px; line-height: 21px; font-weight: 600; margin: 0; }
.vg-todo__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 2px; }
.vg-list { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); overflow: hidden; }

/* Valeur chiffrée */
.vg-metric { display: flex; flex-direction: column; gap: 2px; }
.vg-metric__label { font-size: 13px; color: var(--ink-muted); }
.vg-metric__value { font-size: 28px; line-height: 32px; font-weight: 300; letter-spacing: -.01em; }
.vg-metric__value small { font-size: 14px; color: var(--ink-muted); margin-left: 3px; font-weight: 400; }
.vg-metric__delta { font-size: 13px; color: var(--ink-muted); }

/* Jauge avec seuil */
.vg-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--space-3); align-items: baseline; }
.vg-meter__label { font-size: 13px; color: var(--ink-muted); }
.vg-meter__value { font-size: 13px; font-weight: 600; }
.vg-meter__track { grid-column: 1 / -1; position: relative; height: 8px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.vg-meter__fill { position: absolute; inset: 0 auto 0 0; border-radius: var(--radius-pill); background: var(--accent); transition: width .4s ease; }
.vg-meter__fill--warn { background: var(--warn); } .vg-meter__fill--crit { background: var(--crit); }
.vg-meter__mark { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--ink); }

/* Contrôle segmenté */
.vg-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-sunken); border-radius: var(--radius-sm); }
.vg-seg button { font: 600 13px/1 var(--font-sans); color: var(--ink-muted); background: transparent; border: 0; border-radius: 6px; padding: 7px 12px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.vg-seg button[aria-pressed="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-raised); }

/* Barre d'onglets */
.vg-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; background: var(--surface-raised); border-radius: var(--radius-pill); box-shadow: var(--shadow-float); }
.vg-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 5px; border: 0; background: transparent; border-radius: var(--radius-pill); color: var(--ink-muted); font: 600 11px/1.2 var(--font-sans); cursor: pointer; transition: background .2s ease, color .2s ease; }
.vg-tab svg { width: 22px; height: 22px; }
.vg-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); }
.vg-tab__count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--radius-pill); background: var(--crit); color: var(--surface-raised); font: 700 11px/18px var(--font-sans); text-align: center; }

/* Tiroir */
.vg-sheet { background: var(--surface-raised); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-float); padding: 8px var(--space-4) var(--space-6); }
.vg-sheet__grip { width: 36px; height: 5px; border-radius: var(--radius-pill); background: var(--line-strong); margin: 0 auto var(--space-3); }
.vg-sheet__title { font-size: 20px; line-height: 26px; font-weight: 600; margin: 0; }

/* Journal */
.vg-timeline { list-style: none; margin: 0; padding: 0; }
.vg-timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: var(--space-3); padding-bottom: var(--space-4); position: relative; }
.vg-timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.vg-timeline li:last-child::before { display: none; }
.vg-timeline__dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; border: 2px solid var(--surface-raised); box-shadow: 0 0 0 1px var(--line-strong); }
.vg-timeline__dot--ok { background: var(--ok); } .vg-timeline__dot--warn { background: var(--warn); } .vg-timeline__dot--crit { background: var(--crit); }
.vg-timeline__title { font-size: 15px; font-weight: 600; line-height: 21px; }
.vg-timeline__meta { font-size: 13px; color: var(--ink-muted); }

/* Tirer pour rafraîchir */
.vg-ptr { display: flex; align-items: center; justify-content: center; gap: var(--space-2); height: 44px; font-size: 13px; color: var(--ink-muted); }
.vg-ptr svg { width: 18px; height: 18px; color: var(--accent); }
.vg-ptr--busy svg { animation: vg-spin .8s linear infinite; }
@keyframes vg-spin { to { transform: rotate(360deg); } }

/* Graphique */
.vg-chart { display: block; width: 100%; height: auto; overflow: visible; }
.vg-chart .grid { stroke: var(--line); stroke-width: 1; }
.vg-chart .axis { fill: var(--ink-faint); font: 400 11px var(--font-sans); }
.vg-chart .s1 { stroke: var(--accent); fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vg-chart .s1-area { fill: var(--accent); opacity: .08; }
.vg-chart .s2 { stroke: var(--series-2); fill: none; stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.vg-chart .thr { stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 2 4; stroke-linecap: round; }
.vg-chart .end { fill: var(--surface-raised); stroke-width: 2; }

/* Section */
.vg-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin: 0 0 var(--space-3); }
.vg-section__title { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0; }
.vg-section__aside { font-size: 13px; color: var(--ink-muted); }

/* Bloc d'architecture : un composant réel du système, dépliable sur place */
.vg-node { background: var(--surface-raised); border-radius: var(--radius-lg); box-shadow: var(--shadow-raised); scroll-margin-top: 64px; }
.vg-node__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-3); align-items: center; width: 100%; padding: 14px var(--space-4); background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-lg); }
.vg-node__kicker { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vg-node__name { display: block; font-size: 17px; line-height: 24px; font-weight: 600; }
.vg-node__key { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 2px; }
.vg-node__side { display: flex; align-items: center; gap: var(--space-2); }
.vg-node__chev { width: 20px; height: 20px; color: var(--ink-faint); transition: transform .2s ease; }
.vg-node__head[aria-expanded="true"] .vg-node__chev { transform: rotate(180deg); }
.vg-node__links { padding: 0 var(--space-4) 12px; margin-top: -4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vg-node__links b { color: var(--ink); font-weight: 600; }
.vg-node__body { padding: 4px var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-4); }
.vg-node__body[hidden] { display: none; }

/* Liaison entre deux blocs, avec la nature du lien */
.vg-link { display: flex; align-items: center; gap: var(--space-2); min-height: 28px; padding-left: 26px; position: relative; font-size: 12px; color: var(--ink-muted); }
.vg-link::before { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 2px; background: var(--line-strong); border-radius: 1px; }
.vg-link span { margin-left: 12px; }
.vg-link--crit::before { background: repeating-linear-gradient(var(--crit) 0 4px, transparent 4px 7px); }
.vg-link--crit { color: var(--crit); }

/* Cadre d'hébergement : regroupe les blocs qui vivent sur la même machine */
.vg-frame { border: 1.5px dashed var(--line-strong); border-radius: calc(var(--radius-lg) + 6px); padding: var(--space-3); display: flex; flex-direction: column; gap: 0; }
.vg-frame > .vg-node:first-child { box-shadow: none; background: transparent; }
.vg-frame > .vg-node:first-child > .vg-node__head { padding: 6px 6px 10px; }
.vg-frame > .vg-node:first-child > .vg-node__links { padding: 0 6px 10px; }
.vg-frame > .vg-node:first-child > .vg-node__body { padding: var(--space-3) 6px var(--space-4); }

/* Liste de détail lisible sur téléphone : nom, précision, valeur ou état */
.vg-rows { display: flex; flex-direction: column; }
.vg-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--space-3); padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.vg-row:first-child { border-top: 0; padding-top: 0; }
.vg-row__name { font-size: 14px; line-height: 20px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.vg-row__sub { grid-column: 1; font-size: 13px; line-height: 18px; color: var(--ink-muted); min-width: 0; overflow-wrap: anywhere; }
.vg-row__end { grid-column: 2; grid-row: 1 / span 2; text-align: right; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Liste de vérification */
.vg-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vg-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: var(--space-2); align-items: start; font-size: 14px; line-height: 20px; }
.vg-check svg { width: 18px; height: 18px; margin-top: 1px; }
.vg-check .ok { color: var(--ok); } .vg-check .warn { color: var(--warn); } .vg-check .crit { color: var(--crit); } .vg-check .idle { color: var(--ink-faint); }
.vg-check small { font-size: 13px; color: var(--ink-muted); text-align: right; }

/* Interrupteur : un réglage qui s'active ou se coupe */
.vg-switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: var(--radius-pill); border: 0; background: var(--line-strong); cursor: pointer; transition: background .2s ease; }
.vg-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-raised); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.vg-switch[aria-checked="true"] { background: var(--accent); }
.vg-switch[aria-checked="true"]::after { transform: translateX(20px); }
.vg-switch-row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.vg-switch-row b { display: block; font-size: 14px; line-height: 20px; font-weight: 600; }
.vg-switch-row small { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Sous-titre de groupe dans un bloc déplié */
.vg-sub { font-size: 13px; font-weight: 600; color: var(--ink-muted); margin: 0 0 -6px; }

@media (prefers-reduced-motion: reduce) {
  .vg *, .vg-ptr--busy svg { transition: none !important; animation: none !important; }
}

html{height:100%;box-sizing:border-box}
body{height:100%;margin:0;background:var(--surface);overflow:hidden}
.app{height:100%;display:flex;flex-direction:column}
.top{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 6px;max-width:1180px;width:100%;margin:0 auto}
.brand{display:flex;align-items:center;gap:8px;min-width:0}
.brand-ico{width:28px;height:28px;border-radius:7px;flex:none}
.brand b{font-size:19px;font-weight:700;letter-spacing:-.01em}
.brand span{font-size:13px;color:var(--ink-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-r{display:flex;align-items:center;gap:8px;flex:none}
.icon-btn{position:relative;width:40px;height:40px;border-radius:50%;border:0;background:var(--surface-raised);box-shadow:var(--shadow-raised);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.icon-btn svg{width:22px;height:22px}
.icon-dot{position:absolute;top:8px;right:9px;width:9px;height:9px;border-radius:50%;background:var(--warn);box-shadow:0 0 0 2px var(--surface-raised)}
.icon-dot.on{background:var(--ok)}
.set-group{display:flex;flex-direction:column;gap:10px}
.set-group h3{margin:0;font-size:13px;font-weight:600;color:var(--ink-muted)}
.fake{flex:none;font:600 11px/1 var(--font-sans);color:var(--ink-muted);background:var(--surface-sunken);padding:6px 9px;border-radius:var(--radius-pill)}
.viewport{flex:1;min-height:0;overflow:hidden;position:relative}
.track{display:flex;height:100%;width:400%;transition:transform .24s cubic-bezier(.2,.8,.2,1);will-change:transform}
.track.drag{transition:none}
.panel{width:25%;height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.panel-in{max-width:1180px;margin:0 auto;padding:4px 16px calc(112px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:24px;transition:transform .24s cubic-bezier(.2,.8,.2,1)}
.panel-in.pulling{transition:none}
.ptr-slot{height:0;overflow:visible;position:relative}
.ptr-slot .vg-ptr{position:absolute;left:0;right:0;top:-48px;opacity:0;transition:opacity .15s ease}
.screen-title{font-size:24px;line-height:30px;font-weight:600;letter-spacing:-.01em;margin:4px 0 0}
.lead{font-size:14px;line-height:20px;color:var(--ink-muted);margin:-14px 0 0;max-width:60ch}
.fam-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.syn-two{display:flex;flex-direction:column;gap:24px}
.vg-family__value{white-space:nowrap}
.link-btn{font:600 14px/1 var(--font-sans);color:var(--accent);background:none;border:0;padding:10px 0 2px;cursor:pointer}
.sticky{position:sticky;top:0;z-index:2;background:var(--surface);padding:8px 0;margin:-8px 0}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
/* architecture */
.arch{display:flex;flex-direction:column;gap:0}
.spine,.side{display:flex;flex-direction:column}
.side-title{font-size:13px;font-weight:600;color:var(--ink-muted);margin:24px 0 10px}
.side .vg-node+.vg-node{margin-top:12px}
.vg-frame .vg-link{padding-left:20px}.vg-frame .vg-link::before{left:19px}
.metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.readout{font-size:13px;color:var(--ink-muted);min-height:18px}
.readout b{color:var(--ink);font-weight:600}
.chart-box{touch-action:pan-y}
.legend{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:12px;color:var(--ink-muted)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:16px;height:0;border-top:2px solid var(--accent)}
.legend i.s2{border-top:2px dashed var(--series-2)}
.legend i.sq{width:10px;height:10px;border:0;border-radius:3px}
.bars{display:flex;flex-direction:column;gap:10px}
.bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;font-size:13px}
.bar span:first-child{color:var(--ink-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar span:nth-child(2){font-weight:600}
.bar i{grid-column:1/-1;height:6px;border-radius:var(--radius-pill);background:var(--surface-sunken);position:relative;overflow:hidden}
.bar i b{position:absolute;inset:0 auto 0 0;border-radius:var(--radius-pill);background:var(--accent)}
.bar i em{position:absolute;top:0;bottom:0;width:2px;background:var(--ink)}
.strip{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:4px}
.strip span{aspect-ratio:1;border-radius:5px;background:var(--ok-soft);box-shadow:inset 0 0 0 1.5px var(--ok);cursor:pointer}
.strip span.crit{background:var(--crit);box-shadow:none}
.strip span.warn{background:var(--warn);box-shadow:none}
.strip span.on{outline:2px solid var(--accent);outline-offset:1px}
.stack{display:flex;height:12px;border-radius:var(--radius-pill);overflow:hidden;gap:2px}
.stack b{display:block;height:100%}
.note{font-size:13px;line-height:19px;color:var(--ink-muted);margin:0}
.note b{color:var(--ink)}
.alert{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:center;padding:12px;border-radius:var(--radius-md);background:var(--crit-soft)}
.alert .vg-badge{background:var(--surface-raised)}
.alert p{margin:0;font-size:14px;line-height:20px}
.alert small{display:block;font-size:13px;color:var(--ink-muted)}
.day{font-size:13px;font-weight:600;color:var(--ink-muted);margin:0 0 10px}
.tabbar-wrap{position:fixed;left:0;right:0;bottom:calc(12px + env(safe-area-inset-bottom,0px));display:flex;justify-content:center;padding-inline:12px;pointer-events:none;z-index:10}
.tabbar-wrap .vg-tabbar{pointer-events:auto;width:100%;max-width:440px}
.scrim{position:fixed;inset:0;background:var(--scrim);opacity:0;pointer-events:none;transition:opacity .24s ease;z-index:20}
.scrim.on{opacity:1;pointer-events:auto}
.sheet-wrap{position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;z-index:21;transform:translateY(105%);transition:transform .26s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.sheet-wrap.on{transform:translateY(0);pointer-events:auto}
.sheet-wrap.drag{transition:none}
.sheet-wrap .vg-sheet{width:100%;max-width:560px;max-height:88vh;overflow-y:auto;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:16px}
.sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sheet-text{font-size:15px;line-height:22px;color:var(--ink-muted);margin:0}
.touch{font-size:14px;line-height:20px;padding:12px;border-radius:var(--radius-md);background:var(--surface-sunken);margin:0}
.touch b{font-weight:600}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:var(--radius-md);background:var(--accent);color:var(--on-accent);font:600 15px/1 var(--font-sans);text-decoration:none;border:0;cursor:pointer}
.btn.ghost{background:var(--accent-soft);color:var(--accent)}
.flash{animation:flash .6s ease}
@keyframes flash{from{opacity:.3}to{opacity:1}}
.node-flash{animation:nflash 1.2s ease}
@keyframes nflash{0%,40%{box-shadow:0 0 0 2px var(--accent)}100%{box-shadow:var(--shadow-raised)}}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (min-width:720px){.panel-in{padding-inline:24px}.top{padding-inline:24px}}
@media (min-width:960px){
  .syn-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:start}
  .arch{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr) minmax(0,1fr);gap:0 20px;align-items:start}
  .side--l{grid-column:1;grid-row:1;padding-top:236px}
  .spine{grid-column:2;grid-row:1}
  .side--r{grid-column:3;grid-row:1;padding-top:236px}
  .side-title{margin-top:0}
}
@media (prefers-reduced-motion:reduce){.track,.sheet-wrap,.scrim,.panel-in{transition:none}.flash,.node-flash{animation:none}}

/* Ajouts du service (PR 1) */
.vg-pill--idle{background:var(--surface-sunken);color:var(--ink-muted)}
.vg-badge--idle{background:var(--surface-sunken);color:var(--ink-muted)}
.vg-family__dot--idle{background:var(--line-strong)}
.vg-node--idle{opacity:.72}
.vide{font-size:14px;line-height:20px;color:var(--ink-muted);padding:16px;margin:0}
body.page-msg{height:auto;overflow:auto}
.page-msg{margin:0;min-height:100vh;display:grid;place-items:center;background:var(--surface);padding:24px 16px}
.page-msg main{max-width:380px;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.page-msg img{border-radius:15px;box-shadow:var(--shadow-raised)}
.page-msg h1{font-size:24px;line-height:30px;font-weight:600;margin:6px 0 0}
.page-msg p{margin:0;color:var(--ink-muted);font-size:15px;line-height:22px}
.page-msg .btn{width:100%;padding:0 20px}
.g-ico{width:20px;height:20px;background:var(--surface-raised);border-radius:50%;padding:2px}
.vg-verdict__btn{background:none;border:0;padding:0;font:inherit;cursor:pointer}
.vg-verdict__live--stale{background:var(--warn);box-shadow:0 0 0 3px var(--warn-soft)}
.screen-title--flush{margin:0}
.journal-list{display:flex;flex-direction:column;gap:20px}
.gap-12{height:12px}
.vg-chart .s1--warn{stroke:var(--warn)}
.vg-chart .s1--crit{stroke:var(--crit)}
.vg-chart .xh{stroke:var(--ink-faint);stroke-width:1}
.legend i.thr{border-top:2px dotted var(--warn)}
.strip span.idle{background:var(--surface-sunken);box-shadow:inset 0 0 0 1px var(--line)}
.btn--full{width:100%}
