/* =============================================================================
   VENHIMS — Carbon-inspired design system (self-contained, offline).

   Follows IBM Carbon's design language — 8px grid, functional type scale, square
   2px radii, g10 (light) / g100 (dark) neutrals — recoloured with the VENHIMS
   brand palette. No CDN, no external fonts: everything needed to render is here,
   so the UI looks identical with zero connectivity (offline-first).
   Theme follows the OS by default and can be overridden with [data-theme].
   ========================================================================== */

:root {
  /* Brand */
  --navy:   #0A2540;
  --blue:   #1E6FB8;
  --accent: #2E86E0;
  --grey:   #5A6B73;

  /* Light theme (Carbon g10) */
  --bg:            #f4f4f4;
  --layer:         #ffffff;
  --layer-hover:   #e8e8e8;
  --layer-accent:  #eef4fb;
  --border:        #dcdcdc;
  --border-strong: #c6c6c6;
  --text:          #161616;
  --text-secondary:#525252;
  --text-muted:    #6f6f6f;
  --text-on-brand: #ffffff;

  --interactive:   var(--blue);
  --interactive-hover: #185a97;
  --focus:         var(--accent);

  --support-success:#198038;
  --support-warning:#b28600;
  --support-error:  #da1e28;
  --support-info:   var(--accent);

  --header-bg:     var(--navy);

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --radius: 2px;
  --header-h: 48px;
  --sidenav-w: 256px;

  --font: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Cascadia Code', Consolas, monospace;
  --shadow: 0 2px 6px rgba(10, 37, 64, .08);
  --shadow-lg: 0 8px 24px rgba(10, 37, 64, .16);
}

@media (prefers-color-scheme: dark) { :root { color-scheme: dark;
  --bg:#161616; --layer:#262626; --layer-hover:#333333; --layer-accent:#1d2b3a;
  --border:#393939; --border-strong:#525252; --text:#f4f4f4; --text-secondary:#c6c6c6;
  --text-muted:#a8a8a8; --header-bg:#0A2540; --interactive:#4f9fe0; --interactive-hover:#78b6ea;
  --shadow:0 2px 6px rgba(0,0,0,.4); --shadow-lg:0 8px 24px rgba(0,0,0,.5);
} }
:root[data-theme="dark"] { color-scheme: dark;
  --bg:#161616; --layer:#262626; --layer-hover:#333333; --layer-accent:#1d2b3a;
  --border:#393939; --border-strong:#525252; --text:#f4f4f4; --text-secondary:#c6c6c6;
  --text-muted:#a8a8a8; --header-bg:#0A2540; --interactive:#4f9fe0; --interactive-hover:#78b6ea;
  --shadow:0 2px 6px rgba(0,0,0,.4); --shadow-lg:0 8px 24px rgba(0,0,0,.5);
}
:root[data-theme="light"] { color-scheme: light;
  --bg:#f4f4f4; --layer:#ffffff; --layer-hover:#e8e8e8; --layer-accent:#eef4fb;
  --border:#dcdcdc; --border-strong:#c6c6c6; --text:#161616; --text-secondary:#525252;
  --text-muted:#6f6f6f; --header-bg:#0A2540; --interactive:#1E6FB8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--interactive); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3,h4 { font-weight: 600; margin: 0 0 var(--sp-3); letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 20px; } h3 { font-size: 16px; }
.vh-icon { display: inline-block; vertical-align: middle; flex: none; }
.muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---- App shell ----------------------------------------------------------- */
.vh-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 40;
  background: var(--header-bg); color: #fff;
  display: flex; align-items: center; gap: var(--sp-3); padding: 0 var(--sp-4);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.vh-header .brand { display:flex; align-items:center; gap: var(--sp-3); font-weight:600; letter-spacing:.02em; }
.vh-header .brand b { color:#fff; } .vh-header .brand span { color: var(--accent); }
.vh-header .brand small { color: rgba(255,255,255,.55); font-weight:400; font-size:11px; letter-spacing:.08em; text-transform:uppercase; }
.vh-header .spacer { flex: 1; }
.vh-header .hbtn { background:none; border:0; color:#fff; cursor:pointer; padding: var(--sp-2); border-radius: var(--radius); display:flex; align-items:center; gap:6px; }
.vh-header .hbtn:hover { background: rgba(255,255,255,.1); }

.vh-sidenav {
  position: fixed; top: var(--header-h); bottom: 0; left: 0; width: var(--sidenav-w); z-index: 30;
  background: var(--layer); border-right: 1px solid var(--border); overflow-y: auto; padding: var(--sp-3) 0;
}
.vh-navgroup { padding: var(--sp-2) 0; }
.vh-navgroup > .label { padding: var(--sp-2) var(--sp-4); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); font-weight: 600; }
.vh-navitem { display:flex; align-items:center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); color: var(--text-secondary); border-left: 3px solid transparent; }
.vh-navitem:hover { background: var(--layer-hover); text-decoration:none; color: var(--text); }
.vh-navitem.active { background: var(--layer-accent); border-left-color: var(--interactive); color: var(--interactive); font-weight: 600; }
.vh-navitem .dot { margin-left:auto; width:6px;height:6px;border-radius:50%; background: var(--support-success); }

.vh-main { margin-top: var(--header-h); margin-left: var(--sidenav-w); padding: var(--sp-6); min-height: calc(100vh - var(--header-h)); }
.vh-page-head { display:flex; align-items:flex-end; justify-content:space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.vh-page-head .sub { color: var(--text-muted); font-size: 13px; }

/* ---- Tiles / cards ------------------------------------------------------- */
.vh-tile { background: var(--layer); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-5); }
.vh-grid { display:grid; gap: var(--sp-4); }
.vh-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.vh-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.vh-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.vh-kpi { background: var(--layer); border:1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); border-left: 3px solid var(--interactive); }
.vh-kpi .k { font-size: 12px; text-transform: uppercase; letter-spacing:.06em; color: var(--text-muted); }
.vh-kpi .v { font-size: 34px; font-weight: 600; line-height: 1.1; margin-top: var(--sp-2); font-variant-numeric: tabular-nums; }
.vh-kpi .d { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ---- Buttons ------------------------------------------------------------- */
.vh-btn { display:inline-flex; align-items:center; gap: var(--sp-2); font-family:inherit; font-size:14px; font-weight:500;
  padding: 10px 16px; border-radius: var(--radius); border:1px solid transparent; cursor:pointer; transition: background .12s; }
.vh-btn--primary { background: var(--interactive); color:#fff; }
.vh-btn--primary:hover { background: var(--interactive-hover); text-decoration:none; }
.vh-btn--secondary { background: var(--layer); color: var(--text); border-color: var(--border-strong); }
.vh-btn--secondary:hover { background: var(--layer-hover); text-decoration:none; }
.vh-btn--ghost { background:none; color: var(--interactive); }
.vh-btn--ghost:hover { background: var(--layer-hover); text-decoration:none; }
.vh-btn--danger { background: var(--support-error); color:#fff; }
.vh-btn[disabled] { opacity:.5; cursor:not-allowed; }

/* ---- Tags / badges ------------------------------------------------------- */
.vh-tag { display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:500; padding: 2px 10px; border-radius: 12px; background: var(--layer-accent); color: var(--interactive); }
.vh-tag--grey { background: var(--layer-hover); color: var(--text-secondary); }
.vh-tag--success { background: rgba(25,128,56,.12); color: var(--support-success); }
.vh-tag--warning { background: rgba(178,134,0,.14); color: var(--support-warning); }
.vh-tag--error { background: rgba(218,30,40,.12); color: var(--support-error); }

/* ---- Tables -------------------------------------------------------------- */
.vh-table-wrap { background: var(--layer); border:1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.vh-table { width:100%; border-collapse: collapse; font-size: 14px; }
.vh-table th { text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:.04em; color: var(--text-secondary); font-weight:600; padding: 12px 16px; border-bottom:1px solid var(--border-strong); background: var(--layer); position: sticky; top:0; }
.vh-table td { padding: 12px 16px; border-bottom:1px solid var(--border); }
.vh-table tr:hover td { background: var(--layer-hover); }
.vh-table tr:last-child td { border-bottom:0; }
.vh-table .num { text-align:right; font-variant-numeric: tabular-nums; }

/* ---- Forms --------------------------------------------------------------- */
.vh-field { margin-bottom: var(--sp-4); }
.vh-field > label { display:block; font-size:12px; color: var(--text-secondary); margin-bottom: 6px; font-weight:500; }
.vh-field .req { color: var(--support-error); }
.vh-input, .vh-select, .vh-textarea {
  width:100%; font-family:inherit; font-size:14px; color: var(--text);
  background: var(--layer); border:1px solid var(--border-strong);
  border-bottom-color: var(--text-muted); border-radius: var(--radius); padding: 10px 12px;
}
.vh-input:focus, .vh-select:focus, .vh-textarea:focus { outline: 2px solid var(--focus); outline-offset:-2px; border-color: transparent; }
.vh-help { font-size:12px; color: var(--text-muted); margin-top:4px; }
.vh-fieldset { border:1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-5); }
.vh-fieldset > legend { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color: var(--text-muted); font-weight:600; padding: 0 8px; }

/* ---- Notifications ------------------------------------------------------- */
.vh-note { display:flex; gap: var(--sp-3); align-items:flex-start; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius); border-left:3px solid var(--support-info); background: var(--layer); border:1px solid var(--border); margin-bottom: var(--sp-4); }
.vh-note--success { border-left-color: var(--support-success); }
.vh-note--error { border-left-color: var(--support-error); }
.vh-note--warning { border-left-color: var(--support-warning); }
.vh-note .t { font-weight:600; }

/* ---- Sync / offline indicator ------------------------------------------- */
.vh-sync { display:flex; align-items:center; gap:6px; font-size:12px; padding: 4px 10px; border-radius: 12px; background: rgba(255,255,255,.1); }
.vh-sync.is-online  { color:#7fd88a; }
.vh-sync.is-offline { color:#ffb784; }
.vh-offline-banner { display:none; background: var(--support-warning); color:#fff; text-align:center; font-size:13px; padding: 6px; position:fixed; top: var(--header-h); left:0; right:0; z-index:35; }
body.is-offline .vh-offline-banner { display:block; }

/* ---- Avatar / meta ------------------------------------------------------- */
.vh-avatar { width:32px;height:32px;border-radius:50%; background: var(--accent); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:600; font-size:13px; }
.vh-meta-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: var(--sp-4); }
.vh-meta-grid .k { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color: var(--text-muted); }
.vh-meta-grid .v { font-size:15px; margin-top:2px; }

/* ---- Search bar ---------------------------------------------------------- */
.vh-search { display:flex; align-items:center; gap: var(--sp-2); background: var(--layer); border:1px solid var(--border-strong); border-radius: var(--radius); padding: 0 12px; }
.vh-search input { flex:1; border:0; background:none; padding: 11px 0; font-size:14px; color: var(--text); font-family:inherit; }
.vh-search input:focus { outline:none; }

/* ---- Simple bar chart (offline, no chart lib) --------------------------- */
.vh-bars { display:flex; align-items:flex-end; gap: 6px; height: 140px; padding-top: var(--sp-3); }
.vh-bars .bar { flex:1; background: linear-gradient(var(--accent), var(--blue)); border-radius: 2px 2px 0 0; min-height:2px; position:relative; }
.vh-bars .bar:hover::after { content: attr(data-v); position:absolute; top:-20px; left:50%; transform:translateX(-50%); font-size:11px; color: var(--text-secondary); }
.vh-bars-x { display:flex; gap:6px; margin-top:6px; }
.vh-bars-x span { flex:1; text-align:center; font-size:10px; color: var(--text-muted); }

/* ---- Login --------------------------------------------------------------- */
.vh-login { min-height:100vh; display:grid; grid-template-columns: 1fr 1fr; }
.vh-login__brand { background: linear-gradient(160deg, var(--navy), #123a63); color:#fff; padding: var(--sp-8); display:flex; flex-direction:column; justify-content:center; }
.vh-login__brand h1 { font-size: 40px; color:#fff; } .vh-login__brand h1 span { color: var(--accent); }
.vh-login__brand p { color: rgba(255,255,255,.7); max-width: 420px; }
.vh-login__brand .feats { margin-top: var(--sp-6); display:grid; gap: var(--sp-3); }
.vh-login__brand .feats div { display:flex; gap:var(--sp-3); align-items:center; color: rgba(255,255,255,.85); }
.vh-login__form { display:flex; align-items:center; justify-content:center; padding: var(--sp-6); background: var(--bg); }
.vh-login__form .card { width:100%; max-width: 380px; }

/* ---- Installer wizard ---------------------------------------------------- */
.vh-wiz { max-width: 720px; margin: 0 auto; padding: 40px 20px 64px; }
.vh-wiz__brand { display:flex; align-items:center; gap:12px; margin-bottom: var(--sp-5); color: var(--navy); }
:root[data-theme="dark"] .vh-wiz__brand { color:#fff; }
.vh-wiz__brand h1 { margin:0; font-size:24px; }
.vh-steps { display:flex; gap:0; margin-bottom: var(--sp-5); counter-reset: step; }
.vh-steps .s { flex:1; text-align:center; position:relative; font-size:12px; color: var(--text-muted); padding-top: 34px; }
.vh-steps .s::before { counter-increment: step; content: counter(step); position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:26px; height:26px; border-radius:50%; background: var(--layer-hover); color: var(--text-muted);
  display:flex; align-items:center; justify-content:center; font-weight:600; border:2px solid var(--border); }
.vh-steps .s::after { content:''; position:absolute; top:13px; left:-50%; width:100%; height:2px; background: var(--border); z-index:-1; }
.vh-steps .s:first-child::after { display:none; }
.vh-steps .s.done::before { background: var(--support-success); border-color: var(--support-success); color:#fff; content:'✓'; }
.vh-steps .s.active::before { background: var(--interactive); border-color: var(--interactive); color:#fff; }
.vh-steps .s.active { color: var(--text); font-weight:600; }
.vh-req { display:flex; align-items:center; justify-content:space-between; padding: 8px 0; border-bottom:1px solid var(--border); font-size:14px; }
.vh-req:last-child { border-bottom:0; }
.vh-req .ok { color: var(--support-success); font-weight:600; }
.vh-req .bad { color: var(--support-error); font-weight:600; }
.vh-req .warn { color: var(--support-warning); font-weight:600; }
.vh-roles { display:grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
.vh-role { border:2px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); cursor:pointer; transition: border-color .12s, background .12s; }
.vh-role:hover { border-color: var(--border-strong); }
.vh-role.sel { border-color: var(--interactive); background: var(--layer-accent); }
.vh-role input { position:absolute; opacity:0; }
.vh-role .t { font-weight:600; display:flex; align-items:center; gap:6px; }
.vh-role .d { font-size:12px; color: var(--text-muted); margin-top:4px; }
.vh-toggle { display:flex; align-items:center; gap:10px; padding: var(--sp-4); border:1px solid var(--border); border-radius: var(--radius); background: var(--layer-accent); }
.vh-dr-banner { background: var(--support-warning); color:#fff; text-align:center; font-size:13px; padding: 8px 12px; border-radius: var(--radius); margin-bottom: var(--sp-4); display:flex; align-items:center; justify-content:center; gap:8px; }

/* ---- Utilities ----------------------------------------------------------- */
.row { display:flex; gap: var(--sp-4); flex-wrap:wrap; }
.row.between { justify-content:space-between; align-items:center; }
.row.tight { gap: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4);} .mt-5 { margin-top: var(--sp-5);} .mb-0{margin-bottom:0;}
.grow { flex:1; }
.f2 { grid-column: span 2; }
.mono { font-family: var(--mono); font-size:13px; }
.empty { text-align:center; padding: var(--sp-7); color: var(--text-muted); }

/* =============================================================================
   Home — app launcher ("each module is an app"). Built to IBM Carbon: flat
   surfaces, 2px corners, one functional blue accent, subtle state layers — the
   Carbon "clickable tile" grid. No gradients, no decorative colour, no lift.
   ========================================================================== */
:root { --radius-md: var(--radius); --radius-lg: var(--radius); }

/* ---- Stat row (Carbon KPI: left accent bar, sharp corners) --------------- */
.vh-stat-strip { display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: var(--sp-5); }
.vh-stat { display: flex; align-items: center; gap: var(--sp-3); background: var(--layer);
  border: 1px solid var(--border); border-left: 3px solid var(--app-accent, var(--interactive));
  border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.vh-stat__ico { width: 40px; height: 40px; flex: none; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--app-tint, var(--layer-accent)); color: var(--app-accent, var(--interactive)); }
.vh-stat__v { font-size: 28px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vh-stat__k { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

/* ---- Launcher sections --------------------------------------------------- */
.vh-launch { margin-bottom: var(--sp-6); }
.vh-launch-head { display: flex; align-items: center; gap: var(--sp-3); margin: 0 0 var(--sp-4); }
.vh-launch-head h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); font-weight: 600; margin: 0; }
.vh-launch-head .count { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.vh-launch-head .line { flex: 1; height: 1px; background: var(--border); }

.vh-apps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vh-app {
  display: flex; flex-direction: column; gap: var(--sp-3); min-height: 148px;
  background: var(--layer); border: 1px solid var(--border); border-radius: var(--radius);
  padding: var(--sp-5); color: var(--text); transition: background .11s, border-color .11s;
}
.vh-app:hover { background: var(--layer-hover); border-color: var(--border-strong); text-decoration: none; }
.vh-app:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.vh-app__ico { color: var(--interactive); }
.vh-app__title { font-size: 16px; font-weight: 600; }
.vh-app__desc { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.vh-app__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-2); }
.vh-app__off { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.vh-app__off .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--support-success); }
.vh-app__arrow { color: var(--text-muted); transition: color .11s; }
.vh-app:hover .vh-app__arrow { color: var(--interactive); }

/* =============================================================================
   Tele-Haptics — tab bar, live metric gauges, safe-mode banner, policy lists.
   ========================================================================== */
.vh-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: var(--sp-5); border-bottom: 1px solid var(--border); }
.vh-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; color: var(--text-secondary);
  font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vh-tab:hover { color: var(--text); text-decoration: none; background: var(--layer-hover); border-radius: var(--radius) var(--radius) 0 0; }
.vh-tab.active { color: var(--interactive); border-bottom-color: var(--interactive); font-weight: 600; }

.vh-metrics { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.vh-metric { background: var(--layer); border: 1px solid var(--border); border-left: 3px solid var(--support-success);
  border-radius: var(--radius-md); padding: 16px 18px; }
.vh-metric.--bad { border-left-color: var(--support-error); }
.vh-metric .lab { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.vh-metric .val { font-size: 32px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: 6px; }
.vh-metric .val small { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 3px; }
.vh-metric .tgt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--text-muted); }

/* Safe-mode banner — impossible to miss; gentle pulse (reduced-motion safe). */
.vh-safebar { display: flex; align-items: center; gap: 12px; background: var(--support-error); color: #fff;
  padding: 14px 18px; border-radius: var(--radius-md); margin-bottom: var(--sp-5); font-weight: 600;
  box-shadow: 0 0 0 0 rgba(218,30,40,.5); animation: vh-pulse 1.8s ease-out infinite; }
.vh-safebar .grow { font-weight: 500; }
@keyframes vh-pulse { 0% { box-shadow: 0 0 0 0 rgba(218,30,40,.45); } 70% { box-shadow: 0 0 0 12px rgba(218,30,40,0); } 100% { box-shadow: 0 0 0 0 rgba(218,30,40,0); } }

.vh-checklist { list-style: none; padding: 0; margin: 0; }
.vh-checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.vh-checklist li:last-child { border-bottom: 0; }
.vh-checklist li .vh-icon { color: var(--interactive); flex: none; margin-top: 1px; }
.vh-ol-degrade { margin: 0; padding-left: 0; list-style: none; counter-reset: deg; }
.vh-ol-degrade li { counter-increment: deg; display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.vh-ol-degrade li::before { content: counter(deg); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--layer-accent); color: var(--interactive); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.vh-ol-degrade li:last-child { border-bottom: 0; } .vh-ol-degrade li:last-child::before { background: rgba(25,128,56,.14); color: var(--support-success); }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .vh-grid.cols-4 { grid-template-columns: repeat(2,1fr); }
  .vh-login { grid-template-columns: 1fr; } .vh-login__brand { display:none; }
}
@media (max-width: 768px) {
  .vh-sidenav { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .vh-sidenav { transform: none; box-shadow: var(--shadow-lg); }
  .vh-main { margin-left: 0; padding: var(--sp-4); }
  .vh-grid.cols-4, .vh-grid.cols-3, .vh-grid.cols-2 { grid-template-columns: 1fr; }
  .f2 { grid-column: auto; }
  .vh-apps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .vh-app { min-height: 132px; padding: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) {
  .vh-safebar { animation: none; }
}
