/* Hub Laurent — navigation par univers (25/11/2026). Complète style.css : rail des univers, barre des modules et composants partagés
   des pages Aujourd'hui, Applications, Serveurs et Achats. Couleurs, rayons et ombres viennent des jetons de la peau « Papier doux ».
   Les tailles variables (jauges, barres) lisent --size, posée par hub.js : la politique de sécurité du portail refuse les styles écrits dans le HTML. */
:root{--h-raised:#fff;--h-fill:#2E86C1;--h-fill-2:#A9CBE6;--h-u-aujourdhui:#52555B;--h-u-gestion:#2E86C1;--h-u-atelier:#7E5BC4;--h-u-infrastructure:#1E9460}
:root[data-theme="dark"]{--h-raised:rgba(150,195,240,.14);--h-fill:#4A9FD8;--h-fill-2:#2F628F;--h-u-aujourdhui:#BBC9DA;--h-u-gestion:#74B8E6;--h-u-atelier:#B49AEC;--h-u-infrastructure:#4CCB8A}
.h-u-aujourdhui{--u:var(--h-u-aujourdhui)}
.h-u-gestion{--u:var(--h-u-gestion)}
.h-u-atelier{--u:var(--h-u-atelier)}
.h-u-infrastructure{--u:var(--h-u-infrastructure)}

/* L'ancien menu et l'ancienne barre restent dans la page pour les scripts des pages existantes ; le rail et la barre des modules les remplacent à l'écran. */
#workspace.hub>.sidebar,#workspace.hub>.menu-scrim,#workspace.hub .main>.topbar{display:none!important}
#workspace.hub .main{margin-left:120px}
#workspace.hub #view-serveurs{flex:0 0 auto}
#workspace.hub #view-access>.page-heading{display:none}
/* PilotRH en une colonne : la colonne peut se rétrécir sous la largeur de ses cartes sur petit écran. */
@media (max-width:1100px){#workspace.hub .pilot-layout{grid-template-columns:minmax(0,1fr)}}
:is(.h-rail-logo,.h-rail-item,.h-avatar,.h-module,.h-tile,.h-card,.h-supplier,.h-tabs a,.h-btn,.h-health,.h-back,.h-idle a),
:is(.h-rail-logo,.h-rail-item,.h-avatar,.h-module,.h-tile,.h-card,.h-supplier,.h-tabs a,.h-btn,.h-health):hover{text-decoration:none}

/* Rail des univers */
.h-rail{position:fixed;inset:12px auto 12px 12px;z-index:40;display:flex;flex-direction:column;align-items:center;width:96px;padding:14px 8px 12px;border:1px solid var(--card-edge);border-radius:24px;background:var(--chrome);box-shadow:var(--shadow-chrome);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
.h-rail-logo{display:grid;place-items:center;width:40px;height:40px;margin-bottom:16px;border-radius:12px;background:var(--ink);color:var(--paper);font:500 19px var(--display)}
.h-rail nav{display:grid;gap:4px;width:100%}
.h-rail-item{position:relative;display:grid;justify-items:center;gap:5px;padding:10px 2px 9px;border-radius:14px;color:var(--ink-2);font-size:12px;line-height:1.2}
.h-rail-item .ico{width:22px;height:22px}
.h-rail-item:hover{background:var(--bg-strong);color:var(--ink)}
.h-rail-item[aria-current="page"]{background:color-mix(in srgb,var(--u) 14%,transparent);color:var(--ink);font-weight:500}
.h-rail-item[aria-current="page"] .ico{color:var(--u)}
.h-count{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--brand);color:var(--on-brand);font:500 12px/1 var(--body)}
.h-rail-item .h-count{position:absolute;top:4px;right:14px}
.h-rail-tools{display:grid;gap:8px;justify-items:center;margin-top:auto}
.h-avatar{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:var(--blue-light);color:var(--blue);font-weight:500;font-size:13px}
.h-only-narrow{display:none}
.h-compte-out{margin-top:16px}

/* Barre des modules */
.h-topbar{position:sticky;top:12px;z-index:30;display:flex;align-items:center;align-self:center;flex-wrap:wrap;gap:8px 18px;width:calc(100% - 64px);max-width:1416px;min-height:62px;margin:12px auto 0;padding:10px 12px 10px 22px;border:1px solid var(--card-edge);border-radius:20px;background:var(--chrome);box-shadow:var(--shadow-chrome);-webkit-backdrop-filter:var(--blur);backdrop-filter:var(--blur)}
.h-universe{display:flex;align-items:center;gap:10px;color:var(--ink);font:500 18px/1.2 var(--display)}
.h-universe i{width:8px;height:8px;border-radius:50%;background:var(--u)}
.h-modules{display:flex;flex:1;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none}
.h-module{display:flex;align-items:center;gap:7px;padding:8px 12px;border-radius:10px;color:var(--ink-2);white-space:nowrap}
.h-module:hover{background:var(--bg);color:var(--ink)}
.h-module[aria-current="page"]{background:var(--bg-strong);color:var(--ink);font-weight:500}
.h-module[aria-disabled="true"]{background:none;color:var(--muted)}
.h-module .ico{width:14px;height:14px}
.h-soon{padding:1px 8px;border-radius:999px;background:var(--bg-strong);color:var(--muted);font-size:12px}
.h-tools{display:flex;align-items:center;gap:8px;margin-left:auto}
.h-search{display:flex;align-items:center;gap:8px;width:200px;height:36px;padding:0 8px 0 12px;border:1px solid var(--line-control);border-radius:var(--radius-control);background:var(--bg);color:var(--muted);font-size:13px;text-align:left}
.h-search:hover{border-color:var(--line-hover)}
.h-search kbd,.h-palette kbd{margin-left:auto;padding:1px 7px;border:1px solid var(--line-control);border-radius:7px;color:var(--muted);font:400 12px var(--body)}
.h-seg{display:inline-flex;padding:3px;border-radius:var(--radius-control);background:var(--bg-strong)}
.h-seg button{height:30px;padding:0 12px;border-radius:9px;color:var(--ink-2);font-size:13px;white-space:nowrap}
.h-seg button[aria-pressed="true"]{background:var(--h-raised);color:var(--ink);font-weight:500;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.h-health{position:relative;display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--white);color:var(--ink)}
.h-health i{position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--spv-green);box-shadow:0 0 0 2px var(--pop)}
.h-health.is-down i{background:var(--brand)}
.h-stats{display:flex;height:36px;border:1px solid var(--line-control);border-radius:var(--radius-control)}
.h-stat{display:grid;align-content:center;padding:0 12px;line-height:1.2;white-space:nowrap}
.h-stat+.h-stat{border-left:1px solid var(--line)}
.h-stat span{color:var(--muted);font-size:12px}
.h-stat b{font-weight:500;font-size:12px}
.h-tabs{display:flex;gap:24px;overflow-x:auto;scrollbar-width:none;border-bottom:1px solid var(--line)}
.h-tabs a{display:flex;align-items:center;gap:8px;padding:10px 0 11px;margin-bottom:-1px;border-bottom:2px solid transparent;color:var(--ink-2);white-space:nowrap}
.h-tabs a:hover{color:var(--ink)}
.h-tabs a[aria-current="page"]{border-color:var(--spv-blue);color:var(--ink);font-weight:500}
.h-subnav{align-self:center;width:calc(100% - 64px);max-width:1416px;margin:20px auto 0}

/* Pages et composants partagés */
.h-page{display:grid;align-content:start;gap:18px}
.h-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:14px 24px}
.h-head p{margin-top:8px;color:var(--muted)}
.h-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.h-icon-button{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line-control);border-radius:50%;background:var(--h-raised);color:var(--ink-2);font-size:18px;line-height:1;text-decoration:none}
.h-icon-button:hover{border-color:var(--line-hover);color:var(--ink);transform:rotate(18deg)}
.h-overline{margin:0!important;color:var(--blue)!important;font-size:11px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
/* Paramétrage des boîtes : lignes renseignées en orange pastel, barre de tri et relevé par boîte. */
.h-source-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin:4px 0 14px}
.h-source-toolbar .h-seg small{margin-left:4px;color:var(--muted);font-size:11px}
.h-source-toolbar>.h-btn{margin-left:auto}
.h-source-sort{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}
.h-source-shared{margin:0 0 10px;padding:10px 14px;border:1px solid var(--line-soft);border-radius:var(--radius-control);color:var(--ink-2);font-size:13px}
.h-source-table tr.is-configured td{background:color-mix(in srgb,var(--brand) 9%,transparent)}
.h-source-table tr.is-configured td:first-child{box-shadow:inset 3px 0 0 var(--brand)}
.h-source-table tr.is-configured td b,.h-source-table tr.is-configured td small,.h-source-table tr.is-configured .h-source-person{color:var(--blue)}
.h-source-table tr.is-configured .h-field{border-color:color-mix(in srgb,var(--brand) 55%,transparent)}
.h-source-toggle{display:inline-flex;align-items:center;gap:8px;cursor:pointer;color:var(--ink-2)}
.h-source-toggle input{width:16px;height:16px;accent-color:var(--brand);cursor:pointer}
.h-source-toggle.is-active span{color:var(--blue);font-weight:600}
.h-source-run{display:grid;gap:4px;margin-top:8px}
.h-source-run .h-btn-small{justify-self:start;min-height:28px;padding:4px 12px;font-size:12px}
.h-source-run small{max-width:340px;color:var(--muted)!important;font-size:12px}
.h-origin{color:var(--blue)!important}
.h-twin{color:var(--muted)}
.h-table tr.is-twin td{opacity:.7}
.h-back{display:inline-flex;align-items:center;gap:6px;margin-bottom:10px;color:var(--blue);font-size:13px}
.h-back .ico{width:14px;height:14px}
.h-title{display:flex;align-items:center;gap:14px}
.h-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.h-stepper{display:inline-flex;align-items:center;height:36px;border:1px solid var(--line-control);border-radius:var(--radius-control)}
.h-stepper button{display:grid;place-items:center;width:34px;height:100%;color:var(--ink-2)}
.h-stepper button:disabled{opacity:.35;cursor:default}
.h-stepper .ico{width:15px;height:15px}
.h-stepper span{min-width:128px;font-size:13px;text-align:center}
.h-card{display:block;min-width:0;padding:22px 24px;border:1px solid var(--card-edge);border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow);color:var(--ink)}
.h-card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.h-card-head>span{color:var(--muted);font-size:13px}
.h-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 14px;border:1px solid var(--line-control);border-radius:var(--radius-control);background:var(--h-raised);color:var(--ink);font-size:13px;font-weight:500;line-height:1.2;white-space:nowrap}
.h-btn:hover{border-color:var(--line-hover)}
.h-btn.is-primary{border-color:transparent;background:var(--brand);color:var(--on-brand)}
.h-btn.is-primary:hover{filter:brightness(1.07)}
.h-btn .ico{width:16px;height:16px}
.status-pill.h-neutral::before{background:var(--dot)}
.h-cols{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:18px;align-items:start}
.h-cols.h-even{grid-template-columns:repeat(2,minmax(0,1fr))}
.h-cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.h-stack{display:grid;gap:18px;min-width:0}
.h-muted{color:var(--muted)}
.h-num{font-variant-numeric:tabular-nums;white-space:nowrap}
.h-right{text-align:right}
.h-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:0}
.h-kpis.is-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.h-kpi{display:grid;align-content:start;gap:4px;padding:22px 24px}
.h-kpi+.h-kpi{border-left:1px solid var(--line)}
.h-kpi-label{color:var(--muted);font-size:13px}
.h-kpi-value{color:var(--ink);font:500 28px/1.2 var(--display);letter-spacing:-.01em;white-space:nowrap}
.h-kpi-value small{color:var(--muted);font:400 14px var(--body)}
.h-kpi-sub{color:var(--ink-2);font-size:13px}
.h-kpi .h-btn{justify-self:start;margin-top:8px}
.h-kpi .h-gauge{margin-top:8px}
.h-todo{display:grid;grid-template-columns:118px minmax(0,1fr) auto;align-items:center;gap:6px 16px;padding:14px 0;border-top:1px solid var(--line-soft)}
.h-card-head+.h-todo,.h-card-head+.h-entry{padding-top:2px;border-top:0}
.h-todo:last-child,.h-entry:last-child{padding-bottom:2px}
.h-todo b,.h-entry b{display:block;font-weight:500}
.h-todo small,.h-entry small{display:block;color:var(--muted);font-size:13px}
.h-utag{display:inline-flex;align-items:center;gap:8px;color:var(--ink-2);font-size:13px}
.h-utag i{width:8px;height:8px;border-radius:50%;background:var(--u)}
.h-ucard{display:grid;align-content:start;gap:12px}
.h-ucard:hover{border-color:color-mix(in srgb,var(--u) 55%,transparent)}
.h-ucard-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted)}
.h-facts{display:grid;gap:9px}
.h-fact{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;font-size:13px}
.h-fact span{color:var(--ink-2)}
.h-fact b{font-weight:500}
.h-gauge{grid-column:1/-1;height:6px;border-radius:3px;background:var(--track);overflow:hidden}
.h-gauge i{display:block;width:var(--size,0%);height:100%;border-radius:3px;background:var(--spv-green)}
.h-gauge.is-use i{background:var(--h-fill)}
.h-gauge.is-high i{background:var(--brand)}
.h-launch{display:grid;grid-template-columns:repeat(auto-fill,minmax(236px,1fr));gap:10px}
.h-tile{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;color:var(--ink)}
.h-tile:hover{border-color:var(--line-control);background:var(--bg)}
.h-tile>span:nth-child(2){min-width:0}
.h-tile b{display:block;font-weight:500}
.h-tile small{display:block;color:var(--muted)}
.h-tile b,.h-tile small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.h-tile>.ico:last-child{width:15px;height:15px;color:var(--muted)}
.h-mono{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--bg-strong);color:var(--ink);font:500 13px var(--display)}
.h-mono .ico{width:17px;height:17px}
.h-total{display:flex;align-items:baseline;flex-wrap:wrap;gap:10px}
.h-total strong{font:500 28px/1.2 var(--display)}
.h-total .text-button{margin-left:auto}
.h-total+.h-facts{margin-top:16px}
.h-total+.h-entry{margin-top:10px}
.h-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:12px 0;border-top:1px solid var(--line-soft)}

/* Barres mensuelles : SPV en bleu soutenu, SPVI en bleu clair. */
.h-bars{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px;height:176px}
.h-bar{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:6px;justify-items:center;min-width:0;padding:6px 3px 5px;border-radius:10px;color:var(--muted);font-size:12px}
button.h-bar:hover{background:var(--bg)}
.h-bar.is-on,button.h-bar.is-on:hover{background:var(--bg-strong);color:var(--ink);font-weight:500}
.h-bar-stack{display:flex;flex-direction:column;justify-content:flex-end;width:100%;max-width:34px;height:100%}
.h-bar-stack i{display:block;height:var(--size,0%);min-height:2px;background:var(--h-fill)}
.h-bar-stack i.is-s1,.h-legend i.is-s1{background:var(--h-fill-2)}
.h-bar-stack i:first-child{border-radius:5px 5px 0 0}
.h-bar-stack i:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}
.h-bars.is-mini{height:52px;gap:4px}
.h-bars.is-mini .h-bar{padding:0}
.h-bars.is-mini .h-bar-label{display:none}
.h-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:12px;color:var(--ink-2);font-size:13px}
.h-legend i{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:3px;background:var(--h-fill)}
.h-legend.is-end{margin:0 0 0 auto}

.h-scroll{overflow-x:auto}
.h-table td{border-bottom-color:var(--line-soft)}
.h-table td small{display:block;color:var(--muted)}
.h-table tbody tr:last-child td{border-bottom:0}
.h-table tr[data-href]{cursor:pointer}
.h-table tr[data-href]:hover td{background:var(--bg)}
.h-table tfoot td{border-top:1px solid var(--line);border-bottom:0;font-weight:500}
.h-name{display:flex;align-items:center;gap:12px}
.h-name b{display:block;font-weight:500}

/* Recherche globale */
.h-palette{width:min(600px,calc(100vw - 24px));margin-top:12vh;padding:0;border:1px solid var(--card-edge);border-radius:var(--radius);background:var(--pop);color:var(--ink);box-shadow:var(--pop-shadow)}
.h-palette::backdrop{background:rgba(6,17,31,.5)}
.h-palette label{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line);color:var(--muted)}
.h-palette input,.h-palette input:focus{flex:1;min-width:0;border:0;outline:0;background:none;box-shadow:none;color:var(--ink);font-size:16px}
.h-palette [role="listbox"]{max-height:min(52vh,420px);overflow-y:auto;padding:8px}
.h-palette [role="option"]{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border-radius:10px;font-size:14px;text-align:left}
.h-palette [role="option"][aria-selected="true"]{background:var(--bg-strong)}
.h-palette [role="option"] small{color:var(--muted)}
.h-palette p{padding:14px 12px;color:var(--muted)}

@media (max-width:1320px){.h-stats{display:none}}
@media (max-width:1180px){
  .h-kpis,.h-kpis.is-three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-kpi:nth-child(odd){border-left:0}
  .h-kpi:nth-child(n+3){border-top:1px solid var(--line)}
  .h-cols,.h-cols.h-even,.h-cols3{grid-template-columns:minmax(0,1fr)}
  .h-search{width:36px;padding:0;justify-content:center}
  .h-search span,.h-search kbd{display:none}
}
@media (max-width:680px){
  #workspace.hub .main{margin-left:0;padding-bottom:104px}
  #workspace.hub~.toast{bottom:112px}
  .h-rail{inset:auto 8px 8px;flex-direction:row;width:auto;padding:6px;border-radius:20px}
  .h-rail nav{grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-rail-logo,.h-rail-tools,.h-health{display:none}
  .h-only-narrow{display:grid}
  .h-rail-item{padding:8px 2px 7px}
  .h-rail-item .h-count{right:calc(50% - 26px)}
  .h-topbar{top:8px;width:calc(100% - 16px);margin-top:8px;padding:8px 10px 8px 16px;gap:6px 10px}
  .h-modules{order:3;flex-basis:100%}
  .h-subnav{width:calc(100% - 32px)}
  .h-card{padding:16px}
  .h-kpis,.h-kpis.is-three{grid-template-columns:minmax(0,1fr)}
  .h-kpi{padding:16px}
  .h-kpi+.h-kpi{border-left:0;border-top:1px solid var(--line)}
  .h-todo{grid-template-columns:minmax(0,1fr)}
  .h-bars{gap:3px}
}

/* Page Aujourd'hui (29/11/2026) : santé du VPS et quotas en haut, « À traiter » condensé, Gestion résumée. */
.h-ucard .h-card-head{margin-bottom:2px}
.h-status-line{margin:0 0 14px;color:var(--ink-2);font-size:13px}
.h-health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}
.h-ratio{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 10px;font-size:13px}
.h-ratio span{color:var(--ink-2)}
.h-ratio b{font-weight:500;white-space:nowrap}
.h-ratio .h-gauge{grid-column:1/-1}
.h-ratio small{grid-column:1/-1;color:var(--muted);font-size:12px}
.h-quota+.h-quota{margin-top:14px;padding-top:14px;border-top:1px solid var(--line-soft)}
.h-quota h3{margin:0 0 10px;font-size:14px;font-weight:600}
.h-quota h3 small{color:var(--muted);font-weight:400}
.h-quota-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px 18px}
.h-todo-line{display:grid;grid-template-columns:8px minmax(0,max-content) minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line-soft);color:var(--ink);font-size:13px;text-decoration:none}
.h-card-head+.h-todo-line{border-top:0;padding-top:2px}
.h-todo-line:hover{text-decoration:none}
.h-todo-line:hover b{text-decoration:underline}
.h-todo-line i{width:8px;height:8px;border-radius:50%;background:var(--u)}
.h-todo-line b{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h-todo-line small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h-todo-line span{color:var(--h-fill);white-space:nowrap}
.h-todo-more summary{padding:9px 0 2px;border-top:1px solid var(--line-soft);color:var(--h-fill);font-size:13px;cursor:pointer}
.h-mini a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 0;border-top:1px solid var(--line-soft);color:var(--ink);font-size:13px;text-decoration:none}
.h-mini a:first-child{border-top:0;padding-top:2px}
.h-mini a:hover b{text-decoration:underline}
.h-mini span{color:var(--ink-2)}
.h-mini b{font-weight:500}
.h-mini small{grid-column:1/-1;color:var(--muted);font-size:12px}
@media (max-width:760px){.h-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.h-todo-line{grid-template-columns:8px minmax(0,1fr) auto}.h-todo-line small{display:none}}
/* Page Aujourd'hui, version 2 (29/11/2026) : santé du VPS dans la barre du haut, Gestion et « À traiter » côte à côte, bande des abonnements IA. */
.h-vps{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:4px 6px 4px 12px;border:1px solid var(--line-control);border-radius:var(--radius-control);color:var(--ink);text-decoration:none}
.h-vps:hover{border-color:var(--line-hover);text-decoration:none}
.h-vps-name{display:inline-flex;align-items:center;gap:7px;margin-right:4px;font-size:13px;font-weight:600}
.h-vps-name i{width:8px;height:8px;border-radius:50%;background:var(--spv-green)}
.h-vps.is-down .h-vps-name i{background:var(--brand)}
.h-vps.is-wait .h-vps-name i{background:var(--dot)}
.h-vps>small{color:var(--muted);font-size:12px}
.h-chip{display:grid;grid-template-columns:auto auto;align-items:baseline;gap:0 6px;min-width:66px;padding:3px 9px;border-radius:9px;background:var(--bg-strong);font-size:12px}
.h-chip small{color:var(--muted);font-size:11px}
.h-chip b{font-weight:600;white-space:nowrap}
.h-chip-bar{grid-column:1/-1;display:block;height:3px;margin-top:3px;border-radius:2px;background:var(--track);overflow:hidden}
.h-chip-bar i{display:block;width:var(--size,0%);height:100%;background:var(--h-fill)}
.h-chip-bar.is-high i{background:var(--brand)}
.h-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.h-tile-stat{display:grid;align-content:start;gap:4px;padding:14px;border:1px solid var(--line-soft);border-radius:var(--radius-control);color:var(--ink);text-decoration:none}
.h-tile-stat:hover{border-color:var(--line-hover);text-decoration:none}
.h-tile-stat b{font-size:30px;font-weight:600;line-height:1.1;color:var(--h-u-gestion)}
.h-tile-stat span{font-size:13px;font-weight:500}
.h-tile-stat small{color:var(--muted);font-size:12px}
.h-foot-link{display:block;margin-top:14px;color:var(--ink-2);font-size:13px}
.h-band{display:grid;gap:12px}
.h-band-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.h-band-head h2{margin:0;font-size:17px}
.h-band-head span{flex:1;color:var(--muted);font-size:13px}
@media (max-width:760px){.h-band-head span{order:3;flex-basis:100%}.h-vps .h-chip:nth-of-type(n+3){display:none}.h-tiles{grid-template-columns:minmax(0,1fr)}.h-tile-stat{grid-template-columns:auto minmax(0,1fr);align-items:baseline;column-gap:10px}.h-tile-stat small{grid-column:1/-1}}
/* Abonnements IA : une carte par fournisseur, avec quotas, comptes et activité sur 6 h. */
.h-contents{display:contents}
.h-ai-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.h-ai{--ai:var(--h-fill);position:relative;display:flex;flex-direction:column;gap:18px;overflow:hidden}
.h-ai::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--ai),transparent 75%)}
.h-ai-anthropic{--ai:#D97757}
.h-ai-openai{--ai:#10A37F}
.h-ai-xai{--ai:#7D8CA3}
:root[data-theme="dark"] .h-ai-xai{--ai:#C3CEDC}
.h-ai-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px}
.h-ai-head b{display:block;font-size:16px;font-weight:600}
.h-ai-head small{display:block;color:var(--muted);font-size:12px}
.h-ai-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--ai);color:#fff;font-size:16px;font-weight:700}
.h-ai-xai .h-ai-logo{background:#111}
:root[data-theme="dark"] .h-ai-xai .h-ai-logo{background:#E8EDF3;color:#111}
.h-ai-state{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:var(--bg-strong);color:var(--ink-2);font-size:12px;font-weight:500;white-space:nowrap}
.h-ai-state::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.h-ai-state.is-ok{background:var(--ok-bg);color:var(--teal)}
.h-ai-state.is-warn{background:var(--warn-bg);color:var(--amber)}
.h-ai-state.is-low{background:var(--bad-bg);color:var(--red)}
.h-ai-main{display:grid;gap:12px}
.h-ai-wins{display:grid;gap:16px}
.h-ai-win>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.h-ai-win span{color:var(--ink-2);font-size:13px;font-weight:500}
.h-ai-win b{color:var(--ink);font-size:28px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums}
.h-ai-win b small{color:var(--muted);font-size:14px;font-weight:500}
.h-ai-wins.is-single b{font-size:40px}
.h-ai-win>small{display:block;margin-top:7px;color:var(--muted);font-size:12px}
.h-ai-win.is-warn>small{color:var(--amber)}
.h-ai-win.is-low>small{color:var(--red)}
.h-ai-bar{position:relative;height:8px;margin-top:10px;border-radius:999px;background:var(--track)}
.h-ai-fill{display:block;width:var(--size,0%);height:100%;border-radius:inherit;background:linear-gradient(90deg,color-mix(in srgb,var(--spv-green) 55%,transparent),var(--spv-green));transform-origin:left center}
.h-ai-win.is-mid .h-ai-fill{background:linear-gradient(90deg,color-mix(in srgb,var(--h-fill) 55%,transparent),var(--h-fill))}
.h-ai-win.is-warn .h-ai-fill{background:linear-gradient(90deg,color-mix(in srgb,var(--brand) 55%,transparent),var(--brand))}
.h-ai-win.is-low .h-ai-fill{background:var(--red)}
.h-ai-tick{position:absolute;top:-4px;bottom:-4px;left:var(--size,0%);width:2px;margin-left:-1px;border-radius:1px;background:var(--ink);opacity:.5}
.h-ai-side{display:grid;gap:16px;margin-top:auto;padding-top:16px;border-top:1px solid var(--line-soft)}
.h-ai-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase}
.h-ai-accounts{display:grid;margin:0;padding:0;list-style:none}
.h-ai-accounts li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:6px 0;font-size:13px}
.h-ai-accounts.has-resets li{grid-template-columns:minmax(0,1fr) auto minmax(44px,auto)}
.h-ai-accounts :is(em,a){justify-self:end}
.h-ai-accounts li+li{border-top:1px solid var(--line-soft)}
.h-ai-accounts li>span:first-child{min-width:0}
.h-ai-accounts b{display:block;overflow:hidden;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.h-ai-accounts small{display:block;color:var(--muted);font-size:11px}
.h-ai-accounts em{font-style:normal;font-weight:600;font-variant-numeric:tabular-nums}
.h-ai-accounts a{color:var(--amber);font-size:12px;font-weight:500}
.h-dots{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}
.h-dots i{width:7px;height:7px;border-radius:50%;background:var(--spv-green);box-shadow:0 0 0 2px color-mix(in srgb,var(--spv-green) 20%,transparent)}
.h-dots.is-none{color:var(--muted);font-size:11px}
.h-ai-live{display:inline-flex;align-items:center;gap:6px;color:var(--teal);font-size:12px;font-style:normal;font-weight:500;letter-spacing:0;text-transform:none}
.h-ai-live i{width:7px;height:7px;border-radius:50%;background:var(--spv-green)}
.h-ai-spark{display:block;width:100%;height:46px;color:var(--ai)}
.h-ai-area{fill:currentColor;opacity:.16}
.h-ai-line{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
.h-ai-quiet{display:grid;place-items:center;height:46px;margin:0;border:1px dashed var(--line-soft);border-radius:10px;color:var(--muted);font-size:12px}
.h-ai-activity>small{display:block;margin-top:6px;color:var(--muted);font-size:12px}
/* Animations : une seule fois à l'arrivée des cartes (classe is-enter posée par hub.js), et aucune si le système demande moins de mouvement. */
@media (prefers-reduced-motion:no-preference){
  .h-band.is-enter .h-ai{animation:h-ai-in .5s cubic-bezier(.2,.7,.2,1) both}
  .h-band.is-enter .h-ai:nth-child(2){animation-delay:.08s}
  .h-band.is-enter .h-ai:nth-child(3){animation-delay:.16s}
  .h-band.is-enter .h-ai-fill{animation:h-ai-grow .9s cubic-bezier(.2,.7,.2,1) .25s both}
  .h-band.is-enter .h-ai-spark{animation:h-ai-draw 1.2s ease-out .35s both}
  .h-band.is-enter .h-dots i{animation:h-ai-pop .35s ease-out .6s both}
  .h-band.is-enter .h-dots i:nth-child(2){animation-delay:.66s}
  .h-band.is-enter .h-dots i:nth-child(3){animation-delay:.72s}
  .h-band.is-enter .h-dots i:nth-child(4){animation-delay:.78s}
  .h-band.is-enter .h-dots i:nth-child(n+5){animation-delay:.84s}
  .h-ai-live i{animation:h-ai-pulse 2.6s ease-out infinite}
  .h-ai{transition:border-color .2s,transform .2s}
  .h-ai:hover{border-color:var(--line-hover);transform:translateY(-2px)}
}
@keyframes h-ai-in{from{opacity:0;transform:translateY(10px)}}
@keyframes h-ai-grow{from{transform:scaleX(0)}}
@keyframes h-ai-draw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes h-ai-pop{from{opacity:0;transform:scale(.2)}}
@keyframes h-ai-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--spv-green) 50%,transparent)}70%,100%{box-shadow:0 0 0 7px transparent}}
/* Habillage Tremor du Hub. Le contenu conserve les gabarits et commandes métier. */
:root[data-theme]{
  --h-raised:var(--white);--h-fill:var(--spv-blue);--h-fill-2:#93c5fd;
  --h-u-aujourdhui:var(--blue);--h-u-gestion:var(--blue);
  --h-u-atelier:#7c3aed;--h-u-infrastructure:var(--teal);
  --hub-width:1360px;--hub-inset:clamp(16px,3vw,32px);
}
:root[data-theme="dark"]{--h-u-atelier:#c4b5fd;--h-fill-2:#3b82f6}
#workspace.hub .main{margin-left:0;padding-bottom:0}
#workspace.hub .main::before{display:none}
#workspace.hub .view{max-width:var(--hub-width);padding:26px var(--hub-inset) 12px}
#workspace.hub .view:not([hidden]){min-width:0}
#workspace.hub #view-access{padding-top:0}
#workspace.hub .page-footer{width:calc(100% - var(--hub-inset) * 2);max-width:calc(var(--hub-width) - var(--hub-inset) * 2);margin:26px auto 0}
#workspace.hub .error-banner{width:calc(100% - var(--hub-inset) * 2);max-width:calc(var(--hub-width) - var(--hub-inset) * 2);margin:16px auto 0}
.h-topbar{
  display:block;position:sticky;top:0;width:100%;max-width:none;min-height:0;
  margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:var(--chrome);box-shadow:var(--shadow-chrome);backdrop-filter:none;
}
.h-bar-row,.h-module-row{max-width:var(--hub-width);margin:auto;padding-inline:var(--hub-inset)}
.h-bar-row{display:flex;align-items:center;gap:clamp(12px,2.1vw,30px);min-height:62px;padding-block:8px}
.h-brand{display:flex;align-items:center;gap:8px;color:var(--ink);font-weight:650;white-space:nowrap;line-height:1.2}
.h-brand:hover{text-decoration:none}
.h-brand .ico{width:20px;height:20px;color:var(--blue)}
.h-primary-nav{display:flex;align-items:center;gap:4px;min-width:0;flex:1}
.h-rail-item{
  display:flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;
  border-radius:var(--radius-control);font-size:13px;font-weight:500;white-space:nowrap;
}
.h-rail-item .ico{width:16px;height:16px}
.h-rail-item[aria-current="page"]{background:var(--blue-light);color:var(--blue);font-weight:600}
.h-rail-item[aria-current="page"] .ico{color:inherit}
.h-rail-item .h-count{
  position:static;min-width:17px;height:17px;padding-inline:4px;
  border-radius:5px;background:var(--warn-bg);color:var(--amber);font-size:11px;
}
.h-rail-item:hover{text-decoration:none}
.h-tools{gap:7px;flex-shrink:0}
.h-tools .h-search{width:auto;min-width:140px;padding-inline:9px}
.h-tools .h-avatar{border-radius:var(--radius-control)}
.h-module-row{display:flex;align-items:center;gap:12px;min-height:48px;border-top:1px solid var(--line-soft)}
.h-universe{flex:none;font-size:13px;font-weight:600}
.h-universe i{width:6px;height:6px}
.h-modules{gap:2px;scrollbar-width:thin}
.h-module{padding:7px 9px;border-radius:var(--radius-control);font-size:13px}
.h-module[aria-current="page"]{background:var(--blue-light);color:var(--blue);font-weight:600}
.h-soon{padding-inline:6px}
.h-subnav{width:calc(100% - var(--hub-inset) * 2);max-width:calc(var(--hub-width) - var(--hub-inset) * 2);margin:16px auto 0}
.h-tabs a:focus-visible,.h-modules a:focus-visible{outline-offset:-2px}

.h-card{padding:20px 22px}
.h-kpis{padding:0}
.h-card-head{align-items:center}
.h-card-head h2{display:flex;align-items:center;gap:8px}
.h-card-head .ico{width:17px;height:17px}
.h-card-head .status-pill .ico{width:13px;height:13px}
.h-today-head p{margin:0 0 5px}
.h-today-head h1{font-size:clamp(27px,3vw,34px)}
.h-today-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.05fr);gap:16px;align-items:stretch}
.h-today-gestion{min-width:0}
.h-today-gestion .h-card-head{margin-bottom:10px}
.h-today-grid .h-tile-stat{
  align-content:start;min-width:0;padding:14px 15px;border-color:var(--card-edge);
  border-radius:var(--radius);background:var(--white);box-shadow:var(--shadow);
}
.h-today-grid .h-tile-stat:hover{border-color:var(--spv-blue)}
.h-tile-stat span{display:flex;align-items:center;gap:6px;min-width:0;color:var(--ink-2)}
.h-tile-stat span .ico{width:15px;height:15px;color:var(--muted)}
.h-tile-stat b{color:var(--ink);margin:4px 0;font-variant-numeric:tabular-nums}
.h-foot-link{margin-top:8px}
.h-today-grid .h-todo-line{grid-template-columns:6px minmax(0,1fr) auto;gap:8px}
.h-today-grid .h-todo-line b{white-space:normal;font-weight:500}
.h-today-grid .h-todo-line small{display:none}
.h-today-grid .h-todo-line>span{font-size:12px}
.h-vps-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.h-today-vps .h-chip{
  display:grid;grid-template-columns:minmax(0,1fr);gap:4px;
  padding:10px 12px;border-radius:var(--radius-control);background:var(--bg);border:1px solid var(--line-soft);
}
.h-today-vps .h-chip b{font-size:18px;line-height:1.25;font-variant-numeric:tabular-nums}
.h-today-vps .h-chip small{font-size:12px}
.h-today-vps .h-chip-bar{height:4px}
.h-today-vps .h-chip-bar.is-high i{background:var(--red)}

.h-ai-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.h-ai.h-card{display:flex;flex-direction:column;gap:14px;padding:19px}
.h-ai::before{display:none}
.h-ai.h-card:hover{transform:none}
.h-ai-head{grid-template-columns:auto minmax(0,1fr) auto;gap:8px}
.h-ai-logo{width:30px;height:30px;border-radius:7px;font-size:14px}
.h-ai-head b{font-size:15px}
.h-ai-head .h-ai-state{border-radius:6px;padding:2px 6px;font-size:11px}
.h-ai-main{min-width:0}
.h-ai-wins{gap:11px}
.h-ai-wins .h-ai-win b{font-size:17px}
.h-ai-win b small{font-size:12px}
.h-ai-win .h-ai-bar{margin-top:5px}
.h-ai-win .h-ai-fill,.h-ai-win.is-mid .h-ai-fill{background:var(--spv-blue)}
.h-ai-win.is-warn .h-ai-fill,.h-ai-win.is-fable .h-ai-fill{background:#eab308}
.h-ai-win.is-fable .h-ai-bar{background:var(--warn-line)}
.h-ai-win.is-low .h-ai-fill{background:var(--red)}
.h-ai-side{padding:11px 0 0;border:0;border-top:1px solid var(--line);gap:10px;margin-top:auto}
.h-ai-label{letter-spacing:0;text-transform:none;font-weight:500;font-size:12px}
.h-ai-accounts b{font-weight:500}
.h-ai-anthropic{--ai:#d97706}
.h-ai-openai{--ai:#10b981}
:root[data-theme] .h-ai-xai{--ai:var(--h-fill)}
.h-ai-spark{height:42px}
.h-palette{border-radius:var(--radius-hero)}

@media(max-width:1240px){
  .h-tools .h-search{min-width:0;width:36px;padding:0;justify-content:center}
  .h-tools .h-search :is(span,kbd){display:none}
  .h-module-row #hub-context:empty{display:none}
  .h-today-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
}
@media(max-width:960px){
  .h-bar-row{gap:12px}
  .h-today-grid{grid-template-columns:minmax(0,1fr)}
  .h-ai.h-card{padding:14px}
  .h-ai-head{grid-template-columns:auto minmax(0,1fr)}
  .h-ai-head .h-ai-state{grid-column:2;justify-self:start}
  .h-ai-accounts li{gap:5px;font-size:12px}
  .h-tools #hub-logout{display:none}
}
@media(max-width:730px){
  #workspace.hub .view{padding-top:18px}
  .h-bar-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px}
  .h-primary-nav{grid-row:2;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
  .h-tools{grid-column:2;grid-row:1}
  .h-rail-item{justify-content:center;padding-inline:5px;font-size:12px}
  .h-rail-item .ico{width:14px;height:14px}
  .h-rail-item .h-count{display:none}
  .h-module-row{min-height:43px;gap:7px}
  .h-universe{display:none}
  .h-ai-grid{grid-template-columns:minmax(0,1fr)}
  .h-ai-head{grid-template-columns:auto minmax(0,1fr) auto}
  .h-ai-head .h-ai-state{grid-column:auto}
  .h-today-grid .h-tile-stat{grid-template-columns:minmax(0,1fr);padding:12px}
  .h-tile-stat span{font-size:12px}
  .h-tile-stat span .ico{display:none}
  .h-vps-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .h-today-grid .h-card{padding:14px}
  .h-card{padding:16px}
  .h-kpis{padding:0}
}
@media(max-width:390px){
  .h-rail-item .ico{display:none}
  .h-brand .ico{display:none}
  .h-tools #hub-refresh{display:none}
  .h-tools{gap:5px}
  .h-today-grid .h-tile-stat{padding:9px}
}
@media(pointer:coarse){
  .h-primary-nav .h-rail-item,.h-tools .h-avatar,.h-tools .h-search,
  .h-tools :is(.icon-button,.theme-toggle),.h-module,.h-tabs a,.h-stepper,.h-seg button{min-height:44px}
  .h-stepper button{min-width:44px}
  .h-tools .h-search,.h-tools :is(.icon-button,.theme-toggle),.h-tools .h-avatar{min-width:44px}
  #workspace.hub .view :is(.button,.h-btn,.h-field){min-height:42px}
}
