/* =====================================================================
   VaultorNet v28 — loaded after v27.css (before theme.css on app pages),
   so it reads the same tokens and the dark palette still overrides.
   ===================================================================== */
:root {
  --v28-line: color-mix(in srgb, var(--color-text) 12%, transparent);
  --v28-soft: color-mix(in srgb, var(--color-text) 64%, transparent);
  --v28-faint: color-mix(in srgb, var(--color-text) 4%, transparent);
  --v28-card: var(--vn-card, #fff);
}

/* ---- Toggle switch (a styled checkbox, keyboard + screen-reader native).
   v29 — scoped to input.vn-switch: the language/theme links share the
   class name, and the unscoped rule drew a stray knob on top of them. */
input.vn-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  width: 44px; height: 26px; margin: 0; border-radius: 13px; border: 0;
  background: color-mix(in srgb, var(--color-text) 22%, transparent); transition: background .15s ease;
}
input.vn-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease;
}
input.vn-switch:checked { background: var(--color-accent); }
input.vn-switch:checked::after { left: 21px; }
input.vn-switch:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- Phase 1 · cookie notice ----------------------------------------- */
.vn-cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 900; width: min(420px, calc(100vw - 32px));
  background: var(--v28-card); color: var(--color-text); border: 1px solid var(--v28-line);
  border-radius: 18px; box-shadow: 0 16px 48px rgba(14, 28, 20, .18); padding: 20px; box-sizing: border-box;
}
.vn-cookie[hidden] { display: none; }
.vn-cookie-form { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.vn-cookie-head { display: flex; gap: 12px; align-items: flex-start; }
.vn-cookie-ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent);
}
.vn-cookie-title { font-weight: 700; font-size: 15.5px; margin-bottom: 4px; }
.vn-cookie-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--v28-soft); }
.vn-cookie-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--color-accent); }
.vn-cookie-more[open] summary { margin-bottom: 8px; }
.vn-cookie-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--v28-line); cursor: default;
}
label.vn-cookie-row { cursor: pointer; }
.vn-cookie-row strong { display: block; font-size: 13.5px; }
.vn-cookie-row span { font-size: 12px; color: var(--v28-soft); }
.vn-cookie-always { font-size: 12px; font-weight: 600; color: var(--v28-soft); white-space: nowrap; }
.vn-cookie-save { margin-top: 6px; font-size: 13px; }
.vn-cookie-actions { display: flex; gap: 8px; }
.vn-cookie-actions .btn { flex: 1; justify-content: center; min-height: 44px; }
.vn-cookie-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 900;
  background: #15201a; color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px;
  display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.vn-cookie-toast[hidden] { display: none; }
.vn-cookie-toast button { background: none; border: 0; color: #9fe1bc; font: inherit; font-weight: 600; cursor: pointer; min-height: 32px; }
@media (max-width: 520px) { .vn-cookie { right: 16px; left: 16px; bottom: 16px; width: auto; } }
@media print { .vn-cookie, .vn-cookie-toast { display: none !important; } }

/* ---- Legal links (footers, sign-in pages) --------------------------- */
.vn-legal-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; }
.vn-legal-links a { color: inherit; opacity: .75; text-decoration: none; }
.vn-legal-links a:hover { opacity: 1; text-decoration: underline; }
.vn-login-legal { position: fixed; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; pointer-events: none; }
.vn-login-legal .vn-legal-links { pointer-events: auto; background: color-mix(in srgb, var(--color-bg) 85%, transparent); padding: 4px 10px; border-radius: 999px; }
@media (min-width: 900px) { .vn-login-legal { left: 50%; } }

/* ---- "We updated our policy" bar ------------------------------------ */
.vn-legal-bar {
  display: flex; flex-wrap: wrap; gap: 8px 14px; justify-content: center; align-items: center;
  padding: 10px 16px; background: #1d4fb8; color: #fff; font-size: 14px;
}
.vn-legal-bar a { color: #fff; font-weight: 600; text-decoration: underline; }
.vn-legal-bar-ok {
  border: 0; border-radius: 8px; padding: 6px 12px; min-height: 32px; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff; font: inherit; font-weight: 600;
}
.vn-legal-bar-ok:hover { background: rgba(255,255,255,.28); }

/* ---- Terms acceptance page ------------------------------------------ */
.vn-terms-page { background: var(--color-bg); min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 56px 16px; box-sizing: border-box; }
.vn-terms-card {
  width: min(660px, 100%); background: var(--v28-card); border: 1px solid var(--v28-line); border-radius: 22px;
  box-shadow: 0 20px 60px rgba(14, 28, 20, .12); padding: 32px; box-sizing: border-box;
}
.vn-terms-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.vn-terms-step { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.vn-terms-card h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; }
.vn-terms-lead { margin: 0 0 18px; color: var(--v28-soft); font-size: 15px; }
.vn-terms-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.vn-terms-facts > div { background: var(--v28-faint); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.vn-terms-facts strong { font-size: 14px; }
.vn-terms-facts span { font-size: 13px; line-height: 1.45; color: var(--v28-soft); }
.vn-terms-form { margin: 0; border-top: 1px solid var(--v28-line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.vn-terms-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.vn-terms-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--color-accent); flex: none; }
.vn-req { color: var(--cp-bad); }
.vn-terms-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.vn-terms-actions .btn { min-height: 48px; padding: 0 24px; }
.vn-terms-out { color: var(--v28-soft); font-weight: 600; font-size: 14px; }
.vn-terms-proof { margin: 0; font-size: 12px; color: var(--v28-soft); }
@media (max-width: 640px) { .vn-terms-facts { grid-template-columns: 1fr; } .vn-terms-card { padding: 22px; } }

/* ---- Public legal page --------------------------------------------- */
.vn-legal-page { background: var(--v28-card); }
.vn-legal-top {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding: 14px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--v28-line);
}
/* Leave room for the floating language / theme switches (top-right). */
@media (min-width: 720px) { .vn-legal-top { padding-right: 150px; } }
@media (max-width: 719px) { .vn-legal-top { padding-top: 60px; } }
.vn-legal-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: inherit; text-decoration: none; }

.vn-legal-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; font-weight: 600; }
.vn-legal-tabs a { color: var(--v28-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.vn-legal-tabs a.is-on { color: var(--color-text); border-bottom-color: var(--color-accent); }
.vn-legal-wrap {
  max-width: 1280px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 40px) 64px;
  display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start;
}
.vn-legal-toc { flex: 0 1 210px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.vn-legal-toc-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--v28-soft); margin-bottom: 6px; }
.vn-legal-toc a { color: var(--color-text); text-decoration: none; padding: 7px 10px; border-radius: 8px; }
.vn-legal-toc a:hover { background: var(--v28-faint); }
.vn-legal-doc { flex: 999 1 520px; min-width: 0; max-width: 740px; }
.vn-legal-doc h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 6px; }
.vn-legal-meta { font-size: 14px; color: var(--v28-soft); margin: 0 0 20px; }
.vn-legal-note { background: color-mix(in srgb, #1d4fb8 9%, transparent); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 22px; }
.vn-legal-body { font-size: 15.5px; line-height: 1.7; }
.vn-legal-body h2 { font-size: 22px; margin: 30px 0 8px; scroll-margin-top: 16px; }
.vn-legal-body h3 { font-size: 18px; margin: 22px 0 6px; }
.vn-legal-body h4 { font-size: 16px; margin: 18px 0 6px; }
.vn-legal-body p { margin: 0 0 12px; }
.vn-legal-body ul { margin: 0 0 14px; padding-left: 22px; }
.vn-legal-body li { margin: 4px 0; }
.vn-legal-tablewrap { overflow-x: auto; border: 1px solid var(--v28-line); border-radius: 12px; margin: 8px 0 16px; }
.vn-legal-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.vn-legal-table th { text-align: left; background: var(--v28-faint); font-weight: 600; padding: 10px 14px; }
.vn-legal-table td { padding: 10px 14px; border-top: 1px solid var(--v28-line); vertical-align: top; }
.vn-legal-table code { font-size: 12.5px; }
.vn-legal-versions { margin-top: 28px; font-size: 14px; }
.vn-legal-versions summary { cursor: pointer; font-weight: 600; color: var(--color-accent); }
.vn-legal-side { flex: 1 1 290px; min-width: 0; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.vn-legal-card { border: 1px solid var(--v28-line); border-radius: 16px; padding: 18px 20px; }
.vn-legal-card h2 { font-size: 17px; margin: 0 0 10px; }
.vn-legal-form { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.vn-legal-form .btn { align-self: flex-start; margin-top: 8px; font-size: 13px; }
.vn-legal-small { font-size: 12.5px; color: var(--v28-soft); margin: 6px 0 0; }
.vn-legal-actions { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--v28-line); margin-top: 12px; padding-top: 12px; }
.vn-legal-actions form { margin: 0; }
.vn-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--color-accent); cursor: pointer; text-align: left; }
.vn-linkbtn:hover { text-decoration: underline; }
.vn-legal-agreed { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 5px 0; }
@media (max-width: 860px) { .vn-legal-side { max-width: none; } }
@media print {
  .vn-legal-top, .vn-legal-toc, .vn-legal-side, .vn-legal-versions, [data-vn-print] { display: none !important; }
  .vn-legal-wrap { padding: 0; }
}

/* ---- Consultant legal editor ---------------------------------------- */
.vn-legal-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-4); align-items: start; }
.vn-legal-textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px !important; line-height: 1.55; min-height: 420px; }
.vn-legal-help { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }
@media (max-width: 960px) { .vn-legal-editor { grid-template-columns: 1fr; } }

/* App footer gets the legal links next to the framework label. */
.pf-foot .vn-legal-links { margin-left: auto; }

/* =====================================================================
   Phase 2 · Asset register + asset profile
   ===================================================================== */
.vn-crumbs { font-size: 13px; color: var(--v28-soft); margin: 0 0 var(--space-3); }
.vn-crumbs a { color: inherit; }
.vn-req { color: var(--cp-bad); }
.vn-danger { color: var(--cp-bad) !important; }
.vn-as-x {
  border: 0; background: none; cursor: pointer; color: var(--v28-soft); font-size: 16px; line-height: 1;
  width: 28px; height: 28px; border-radius: 6px; display: inline-grid; place-items: center;
}
.vn-as-x:hover { background: var(--v28-faint); color: var(--cp-bad); }

/* import + empty */
.vn-as-import { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: var(--space-4); margin-bottom: var(--space-4); }
.vn-as-import > div { flex: 1 1 360px; }
.vn-as-empty { padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.vn-as-empty-ico { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); margin-bottom: 14px; }
.vn-as-empty h2 { font-size: 22px; margin: 0 0 6px; }
.vn-as-empty p { margin: 0; max-width: 46ch; color: var(--v28-soft); line-height: 1.55; }
.vn-as-empty-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.vn-as-empty-actions form { margin: 0; }

/* tiles */
.vn-as-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.vn-as-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--v28-line); background: var(--v28-card); color: inherit; text-decoration: none;
  transition: border-color .15s ease;
}
.vn-as-tile:hover { border-color: color-mix(in srgb, var(--color-accent) 50%, transparent); }
.vn-as-tile.is-on { border: 2px solid var(--color-accent); padding: 13px 15px; }
.vn-as-tile .ico { color: var(--color-accent); }
.vn-as-tile .n { font-family: var(--font-heading); font-size: 24px; line-height: 1; }
.vn-as-tile .l { font-size: 12.5px; color: var(--v28-soft); }

/* risk map + attention */
.vn-as-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--space-4); margin-bottom: var(--space-4); }
.vn-as-panel { padding: var(--space-4); }
.vn-as-heat { display: grid; grid-template-columns: 96px repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 12px; font-size: 12px; }
.vn-as-heat .hd { text-align: center; color: var(--v28-soft); }
.vn-as-heat .rh { align-self: center; color: var(--v28-soft); }
.vn-as-heat .cell {
  border-radius: 8px; padding: 10px 0; text-align: center; font-weight: 700; font-size: 14px;
  color: var(--color-text); text-decoration: none; outline-offset: 2px;
}
.vn-as-heat .cell.zero { background: var(--v28-faint); color: var(--v28-soft); font-weight: 500; }
.vn-as-heat .cell.h1 { background: color-mix(in srgb, var(--color-accent) 16%, transparent); }
.vn-as-heat .cell.h2 { background: #fdf1e3; }
.vn-as-heat .cell.h3 { background: #f6c9a8; }
.vn-as-heat .cell.h4 { background: #b42318; color: #fff; }
.vn-as-heat .cell.is-on { outline: 2px solid var(--color-text); }
[data-theme="dark"] .vn-as-heat .cell.h2 { background: #4a3720; }
[data-theme="dark"] .vn-as-heat .cell.h3 { background: #6e3a22; }
.vn-as-attn { display: flex; flex-direction: column; gap: 6px; }
.vn-as-attn-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 10px; font-size: 14px; font-weight: 600; color: inherit; text-decoration: none;
}
.vn-as-attn-row.t-bad { background: color-mix(in srgb, var(--cp-bad) 12%, transparent); }
.vn-as-attn-row.t-bad strong { color: var(--cp-bad); }
.vn-as-attn-row.t-warn { background: color-mix(in srgb, var(--cp-warn) 14%, transparent); }
.vn-as-attn-row.t-ok { background: var(--v28-faint); color: var(--v28-soft); font-weight: 500; }
.vn-as-attn-row.t-ok strong { color: var(--cp-good); }
.vn-as-attn-row.is-on { outline: 2px solid var(--color-text); outline-offset: -2px; }

/* table card */
.vn-as-table-card { padding: 0; overflow: hidden; }
.vn-as-toolbar { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--v28-line); }
.vn-as-views { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.vn-as-views > a, .vn-as-saved > a { font-size: 13.5px; font-weight: 500; padding: 7px 11px; border-radius: 8px; color: var(--color-text); text-decoration: none; }
.vn-as-views > a:hover, .vn-as-saved > a:hover { background: var(--v28-faint); }
.vn-as-views > a.is-on, .vn-as-saved.is-on > a { background: var(--color-text); color: var(--color-bg); font-weight: 600; }
.vn-as-saved { display: inline-flex; align-items: center; }
.vn-as-saveview summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--color-accent); padding: 7px 6px; list-style: none; }
.vn-as-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--v28-line); border-radius: 10px; padding: 0 12px; height: 40px; min-width: 260px; color: var(--v28-soft); margin: 0; }
.vn-as-search input { border: 0; outline: 0; background: transparent; font-size: 14px !important; flex: 1; color: var(--color-text); min-width: 0; }
.vn-as-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--v28-line); }
.vn-as-chips a.pf-pill { text-decoration: none; }
.vn-as-none { padding: 36px 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.vn-as-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--v28-line); background: var(--v28-faint); }
.vn-as-bulk.is-active { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.vn-as-bulk-n { font-size: 13.5px; font-weight: 600; margin-right: 6px; }
.vn-as-bulk select.input { width: auto; max-width: 260px; font-size: 13.5px !important; height: 38px; padding-top: 0; padding-bottom: 0; }
.vn-as-bulk select[hidden] { display: none; }
.vn-as-bulk .btn { height: 38px; }
.vn-as-scroll { overflow-x: auto; }
.vn-as-table { min-width: 980px; margin: 0; }
.vn-as-table td { vertical-align: middle; }
.vn-as-table .ck { width: 28px; padding-left: 16px; }
.vn-as-table .ck input { width: 17px; height: 17px; accent-color: var(--color-accent); }
.vn-as-table tr.is-picked { background: color-mix(in srgb, var(--color-accent) 6%, transparent); }
.vn-as-table tr.is-retired { opacity: .6; }
.vn-as-name { font-weight: 600; color: var(--color-text); text-decoration: none; }
.vn-as-name:hover { color: var(--color-accent); text-decoration: underline; }
.vn-as-sub { font-size: 12px; color: var(--v28-soft); margin-top: 2px; }
.vn-as-owner { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.vn-as-owner .av { width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.vn-as-unassigned { color: var(--cp-bad); font-weight: 600; font-size: 13px; }
.vn-as-overdue { color: var(--cp-bad); font-weight: 600; }
.vn-as-warn { font-size: 12px; color: var(--cp-warn); font-weight: 600; }
.vn-as-ctl { font-size: 13px; white-space: nowrap; }
.vn-as-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: var(--space-3); font-size: 13px; }
.vn-as-foot form { margin: 0; }

/* form */
.vn-as-form { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.vn-as-fsec { padding: var(--space-4) var(--space-4) var(--space-5, 20px); }
.vn-as-fsec h2 { font-size: 17px; margin: 0 0 12px; }
.vn-as-help { font-size: 13px; color: var(--v28-soft); margin: -4px 0 12px; line-height: 1.5; }
.vn-as-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.vn-as-wide { grid-column: 1 / -1; }
.vn-as-checkfield { display: flex; align-items: flex-end; }
.vn-as-check { display: flex; gap: 10px; align-items: center; font-size: 14px !important; cursor: pointer; min-height: 44px; }
.vn-as-check input { width: 18px; height: 18px; accent-color: var(--color-accent); }
.vn-as-formbar {
  position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 12px 0;
  background: linear-gradient(to top, var(--color-bg) 70%, transparent);
}

/* profile */
.vn-av-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.vn-av-id { display: flex; gap: 16px; align-items: center; min-width: 0; }
.vn-av-ico { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--color-accent) 12%, transparent); color: var(--color-accent); }
.vn-av-head h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 6px; }
.vn-av-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vn-av-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vn-av-actions form { margin: 0; }
.vn-av-life { padding: var(--space-4); margin-bottom: var(--space-4); }
.vn-av-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.vn-av-steps li { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vn-av-steps .bar { height: 6px; border-radius: 3px; background: var(--v28-line); }
.vn-av-steps li.is-done .bar { background: var(--color-accent); }
.vn-av-steps li.is-bad .bar { background: var(--cp-bad); }
.vn-av-steps strong { font-size: 13px; }
.vn-av-steps .sub { font-size: 12px; color: var(--v28-soft); overflow-wrap: anywhere; }
.vn-av-steps li.is-bad .sub { color: var(--cp-bad); font-weight: 600; }
@media (max-width: 760px) { .vn-av-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vn-av-cols { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-start; }
.vn-av-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.vn-av-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.vn-av-card { padding: var(--space-4); }
.vn-av-cia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 0; }
@media (max-width: 640px) { .vn-av-cia { grid-template-columns: 1fr; } }
.vn-av-ciabox { border: 1px solid var(--v28-line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.vn-av-ciabox .k { font-size: 13px; color: var(--v28-soft); }
.vn-av-ciabox select.input { font-size: 14px !important; }
.vn-av-meter { display: flex; gap: 4px; }
.vn-av-meter span { flex: 1; height: 8px; border-radius: 4px; background: var(--v28-line); }

.vn-av-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; }
.vn-av-dl.one { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.vn-av-dl dt { font-size: 12px; color: var(--v28-soft); }
.vn-av-dl dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 560px) { .vn-av-dl { grid-template-columns: 1fr; } }
.vn-av-notes { margin: 14px 0 0; font-size: 14px; line-height: 1.55; border-top: 1px solid var(--v28-line); padding-top: 12px; }
.vn-av-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vn-av-feed li { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; }
.vn-av-feed .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--v28-line); }
.vn-av-feed .dot.t-good { background: var(--cp-good); }
.vn-av-feed .dot.t-warn { background: var(--cp-warn); }
.vn-av-feed .dot.t-info { background: #3b82c4; }
.vn-av-linkrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--v28-line); }
.vn-av-linkrow:last-of-type { border-bottom: 0; }
.vn-av-linkrow form { margin: 0; display: inline; }
.vn-av-linkrow a { overflow-wrap: anywhere; }
.vn-av-linkside { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vn-av-st { font-size: 12px; font-weight: 600; }
.vn-av-st.t-good { color: var(--cp-good); }
.vn-av-st.t-warn { color: var(--cp-warn); }
.vn-av-st.t-bad { color: var(--cp-bad); }
.vn-av-st.t-neutral { color: var(--v28-soft); }
.vn-av-suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; font-size: 13px; }
.vn-av-suggest form { margin: 0; }
.vn-av-chip { border: 1px dashed color-mix(in srgb, var(--color-accent) 60%, transparent); background: none; color: var(--color-accent); border-radius: 999px; padding: 4px 10px; font: inherit; font-weight: 600; cursor: pointer; min-height: 30px; }
.vn-av-chip:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.vn-av-linkform, .vn-av-upload { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.vn-av-linkform select.input { flex: 1 1 140px; width: auto; min-width: 0; font-size: 13.5px !important; }
.vn-av-linkform select[hidden] { display: none; }
.vn-av-upload input.input { flex: 1 1 180px; min-width: 0; font-size: 13px !important; }
.vn-av-delete { margin: 0; text-align: right; }

/* =====================================================================
   Phase 3 · Consent management
   ===================================================================== */
/* Toggle used as a submit button (automation on/off). */
.vn-toggle {
  flex: none; position: relative; width: 44px; height: 26px; border: 0; padding: 0; border-radius: 13px; cursor: pointer;
  background: color-mix(in srgb, var(--color-text) 22%, transparent); transition: background .15s ease;
}
.vn-toggle > span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease; }
.vn-toggle.is-on { background: var(--color-accent); }
.vn-toggle.is-on > span { left: 21px; }
.vn-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* layout */
.vn-cs-card { padding: 16px 20px; margin-bottom: var(--space-4); }
.vn-cs-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-4); align-items: start; }
.vn-cs-main > section, .vn-cs-main > form { margin-bottom: var(--space-4); }
.vn-cs-side > section { margin-bottom: var(--space-4); }
@media (max-width: 1000px) { .vn-cs-cols { grid-template-columns: 1fr; } }

/* setup checklist */

/* KPI strip */
.vn-cs-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.vn-cs-kpi { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--v28-card); border: 1px solid var(--v28-line); }
.vn-cs-kpi .k { font-size: 12.5px; color: var(--v28-soft); font-weight: 500; }
.vn-cs-kpi .v { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vn-cs-kpi .s { font-size: 12px; color: var(--v28-soft); }
.vn-cs-kpi.is-warn { border-color: color-mix(in srgb, var(--cp-warn) 50%, transparent); }
.vn-cs-kpi.is-warn .v { color: var(--cp-warn); }
.vn-cs-kpi.is-bad { border-color: color-mix(in srgb, var(--cp-bad) 50%, transparent); }
.vn-cs-kpi.is-bad .v { color: var(--cp-bad); }

/* weekly chart */

.vn-cs-none { padding: 28px 18px; text-align: center; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }

/* automation rows */
.vn-cs-auto { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--v28-line); }
.vn-cs-auto:last-child { border-bottom: 0; }
.vn-cs-auto form { margin: 0; }
.vn-cs-auto .nm { font-weight: 600; font-size: 14px; color: var(--color-text); text-decoration: none; }
.vn-cs-auto a.nm:hover { color: var(--color-accent); }
.vn-cs-auto .ds { font-size: 12.5px; color: var(--v28-soft); margin-top: 2px; }
.vn-cs-auto .rn { font-size: 12px; color: var(--v28-soft); margin-top: 2px; }
.vn-au-row { padding: 12px 18px; }

/* rate meters */
.vn-cs-rate { font-size: 13.5px; margin-bottom: 12px; }
.vn-cs-meter { height: 6px; border-radius: 3px; background: var(--v28-faint); margin-top: 6px; overflow: hidden; }
.vn-cs-meter i { display: block; height: 100%; background: var(--color-accent); border-radius: 3px; }

/* filter bar + add popovers */
.vn-cs-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 4px; }

.vn-cs-form { padding: 18px 20px; }
.vn-cs-stack { display: flex; flex-direction: column; gap: 8px; }
.vn-cs-mini { height: 32px; padding: 0 8px; font-size: 13px; width: auto; }

/* scans */
.vn-cs-scan { padding: 10px 0; border-top: 1px solid var(--v28-line); font-size: 13.5px; }
.vn-cs-issue { font-size: 12.5px; margin-top: 4px; padding-left: 14px; position: relative; }
.vn-cs-issue::before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--cp-warn); }
.vn-cs-ok { font-size: 12.5px; color: var(--cp-good); margin-top: 4px; }

/* requests */
.vn-rq { padding: 16px 20px; margin-top: 12px; }
.vn-rq-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: flex-start; }
.vn-rq-title { font-size: 16px; font-weight: 700; }
.vn-rq-who { font-size: 13px; color: var(--v28-soft); margin-top: 2px; }
.vn-rq-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.vn-rq-progress { margin: 10px 0 0; font-size: 13.5px; padding: 8px 12px; border-radius: 8px; background: var(--v28-faint); }
.vn-rq-detail { margin: 8px 0 0; font-size: 13.5px; }
.vn-rq-block { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v28-line); }
.vn-rq-h { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--v28-soft); margin-bottom: 8px; }
.vn-rq-task { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.vn-rq-task form { margin: 0; }
.vn-rq-task.is-done > span:nth-of-type(1) { text-decoration: line-through; color: var(--v28-soft); }
.vn-rq-check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--v28-line); background: none; cursor: pointer; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; padding: 0; }
.vn-rq-task.is-done .vn-rq-check { background: var(--cp-good); border-color: var(--cp-good); }
.vn-rq-check:hover { border-color: var(--color-accent); }
.vn-rq-taskform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.vn-rq-taskform .input:first-of-type { flex: 1 1 240px; }
.vn-rq-taskform select { width: auto; }
.vn-rq-runs > summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.vn-rq-run { font-size: 13px; margin-top: 8px; }
.vn-rq-run ul { margin: 4px 0 0; padding-left: 18px; color: var(--v28-soft); }
.vn-rq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--v28-line); }
.vn-rq-actions form { margin: 0; }
.vn-rq-update { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1; }
.vn-rq-update select { width: auto; }
.vn-rq-update input[name="resolution"] { flex: 1 1 220px; }

/* automation builder */
.vn-au-wrap { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: var(--space-4); align-items: start; }
@media (max-width: 1200px) { .vn-au-wrap { grid-template-columns: minmax(0, 1fr) 300px; } .vn-au-templates { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; } .vn-au-templates .card-title { width: 100%; } .vn-au-templates .vn-au-tpl { flex: 1 1 200px; } }
@media (max-width: 860px) { .vn-au-wrap { grid-template-columns: 1fr; } }
.vn-au-templates { padding: 14px; }
.vn-au-tpl { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 8px; text-decoration: none; color: var(--color-text); border: 1px solid transparent; margin-bottom: 4px; }
.vn-au-tpl strong { font-size: 13.5px; }
.vn-au-tpl span { font-size: 12px; color: var(--v28-soft); line-height: 1.4; }
.vn-au-tpl:hover { background: var(--v28-faint); }
.vn-au-tpl.is-on { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 8%, transparent); }
.vn-au-builder { margin: 0; }
.vn-au-block { padding: 16px 18px; margin-bottom: 0; }
.vn-au-block + .vn-au-block { margin-top: var(--space-3); }
.vn-au-line { width: 2px; height: 18px; background: var(--v28-line); margin: 0 0 0 34px; }
.vn-au-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; color: #fff; }
.vn-au-tag.when { background: #2563EB; }
.vn-au-tag.if { background: #B45309; }
.vn-au-tag.then { background: var(--color-accent); }
.vn-au-step { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--v28-line); }
.vn-au-step:first-of-type { border-top: 0; }
.vn-au-step:has(.vn-au-rm:checked) { opacity: .4; }
.vn-au-step:has(.vn-au-rm:checked) .vn-au-stepbody { text-decoration: line-through; }
.vn-au-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--v28-faint); border: 1px solid var(--v28-line); margin-top: 5px; }
.vn-au-stepbody { display: flex; flex-direction: column; gap: 8px; }
.vn-au-sub { display: flex; flex-direction: column; gap: 8px; }
.vn-au-sub[hidden], .vn-au-stepbody [hidden] { display: none !important; }
.vn-au-stepctl { display: flex; gap: 2px; margin-top: 4px; }
.vn-au-stepctl label.vn-as-x { position: relative; }
.vn-au-rm { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.vn-au-stepctl label.vn-as-x:has(.vn-au-rm:focus-visible) { outline: 2px solid var(--color-accent); }
.vn-au-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.vn-au-inline .input { width: 70px; height: 34px; padding: 0 8px; }
.vn-au-inline select.input { width: auto; }
.vn-au-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.vn-au-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border: 1px solid var(--v28-line); border-radius: 999px; cursor: pointer; }
.vn-au-chip:has(input:checked) { border-color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.vn-au-chip input { accent-color: var(--color-accent); margin: 0; }
.vn-au-save { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: var(--space-3); padding: 12px 18px; border-radius: var(--radius-lg); background: var(--v28-card); border: 1px solid var(--v28-line); box-shadow: 0 6px 20px rgba(15,23,42,.10); position: sticky; bottom: 10px; z-index: 5; }
.vn-au-side > section { margin-bottom: var(--space-3); }
.vn-au-log { margin: 10px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.55; }
.vn-au-run { padding: 8px 0; border-top: 1px solid var(--v28-line); font-size: 13px; }
.vn-au-run > summary { display: flex; justify-content: space-between; gap: 8px; align-items: center; cursor: pointer; list-style: none; }
.vn-au-run > summary::-webkit-details-marker { display: none; }
.vn-au-intform { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--v28-line); background: var(--v28-faint); }
.vn-au-intform .vn-au-chips { grid-column: 1 / -1; margin: 0; }
.vn-au-intform .btn { justify-self: start; }
@media (max-width: 760px) { .vn-au-intform { grid-template-columns: 1fr; } }

/* website page */
.vn-ws-status { display: flex; gap: 14px; align-items: center; padding: 14px 18px; margin-bottom: var(--space-4); }
.vn-ws-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--v28-line); }
.vn-ws-dot.ok { background: var(--cp-good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cp-good) 20%, transparent); }
.vn-ws-dot.wait { background: var(--cp-warn); }
.vn-ws-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-4); align-items: start; }
@media (max-width: 1050px) { .vn-ws-cols { grid-template-columns: 1fr; } }
.vn-ws-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.vn-ws-step > span { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--color-accent); color: #fff; }
.vn-ws-code { position: relative; }
.vn-ws-code pre { margin: 0; padding: 14px 84px 14px 14px; border-radius: 10px; background: #0F172A; color: #E2E8F0; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; }
.vn-ws-copy { position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 4px 10px; min-height: 0; height: 28px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.vn-ws-more { margin-top: 10px; font-size: 13.5px; }
.vn-ws-more > summary { cursor: pointer; font-weight: 600; color: var(--color-accent); }
.vn-ws-more .vn-ws-code { margin: 8px 0; }
.vn-ws-dev { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v28-line); align-items: center; }
.vn-ws-domains { list-style: none; margin: 0; padding: 0; }
.vn-ws-domains li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--v28-line); }
.vn-ws-lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.vn-ws-key { display: block; padding: 8px 10px; border-radius: 8px; background: var(--v28-faint); font-size: 13px; word-break: break-all; }
.vn-ws-side > section { margin-bottom: var(--space-4); }
/* the preview is a small drawing of a page with the banner on it */
.vn-ws-preview { position: relative; height: 270px; border-radius: 12px; overflow: hidden; border: 1px solid var(--v28-line); background: #F1F5F9; }
.vn-ws-page { position: absolute; inset: 14px; display: flex; flex-direction: column; gap: 10px; }
.vn-ws-page i { display: block; height: 14px; border-radius: 4px; background: #E2E8F0; }
.vn-ws-page i:nth-child(1) { width: 40%; height: 20px; }
.vn-ws-page i:nth-child(3) { width: 70%; }
.vn-ws-banner { position: absolute; background: #fff; color: #0F172A; padding: 12px; font-size: 11px; line-height: 1.45; box-shadow: 0 6px 24px rgba(15,23,42,.18); }
.vn-ws-banner strong { display: block; font-size: 12.5px; margin-bottom: 3px; }
.vn-ws-banner p { margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vn-ws-logo { max-height: 22px; max-width: 90px; display: block; margin-bottom: 6px; }
.vn-ws-btns { display: flex; flex-wrap: wrap; gap: 5px; }
.vn-ws-btns .b { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--vn-brand); color: var(--vn-brand); font-weight: 600; font-size: 10.5px; }
.vn-ws-btns .b.solid { background: var(--vn-brand); color: #fff; }
.vn-ws-btns .b.ghost { border-color: transparent; text-decoration: underline; }
.vn-ws-cats { display: none; }
.vn-ws-bar .vn-ws-banner { left: 0; right: 0; bottom: 0; border-top: 3px solid var(--vn-brand); }
.vn-ws-corner .vn-ws-banner { right: 12px; bottom: 12px; width: 62%; border-radius: 10px; }
.vn-ws-modal { background: #94A3B8; }
.vn-ws-modal .vn-ws-page i { background: #A8B4C4; }
.vn-ws-modal .vn-ws-banner { left: 10%; right: 10%; top: 50%; transform: translateY(-50%); border-radius: 12px; }
.vn-ws-modal .vn-ws-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.vn-ws-cats span { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #F1F5F9; }
.vn-ws-fab { position: absolute; left: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--vn-brand); opacity: .35; }
.vn-ws-bar .vn-ws-fab { display: none; }

.vn-ws-side form .field { margin-bottom: 12px; }
.vn-ws-side form .field label { display: block; margin-bottom: 4px; }

/* =====================================================================
   Phase 4 · Endpoint agents (fleet + device)
   ===================================================================== */
.vn-ag-cols { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1100px) { .vn-ag-cols { grid-template-columns: 1fr; } }
.vn-ag-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--v28-line); }
.vn-ag-dot.on { background: var(--cp-good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cp-good) 20%, transparent); }
.vn-ag-dot.stale { background: var(--cp-warn); }
.vn-ag-dot.off { background: color-mix(in srgb, var(--color-text) 30%, transparent); }
.vn-ag-dev { display: flex; gap: 10px; align-items: center; }
.vn-ag-table tr.is-off td { opacity: .55; }
.vn-ag-health { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.vn-ag-health b { font-size: 15px; width: 28px; font-variant-numeric: tabular-nums; }
.vn-ag-health span { flex: 1; height: 6px; border-radius: 3px; background: var(--v28-faint); overflow: hidden; }
.vn-ag-health i { display: block; height: 100%; border-radius: 3px; }
.vn-ag-health.t-good i { background: var(--cp-good); } .vn-ag-health.t-good b { color: var(--cp-good); }
.vn-ag-health.t-warn i { background: var(--cp-warn); } .vn-ag-health.t-warn b { color: var(--cp-warn); }
.vn-ag-health.t-bad i { background: var(--cp-bad); }  .vn-ag-health.t-bad b { color: var(--cp-bad); }
.vn-ag-sevs { display: flex; flex-wrap: wrap; gap: 4px; }
.vn-ag-sevs span { font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.s-critical { --sev: #B91C1C; } .s-high { --sev: #EA580C; } .s-medium { --sev: #CA8A04; } .s-low { --sev: #64748B; } .s-info { --sev: #94A3B8; }
.vn-ag-sevs span { background: color-mix(in srgb, var(--sev) 14%, transparent); color: var(--sev); }
.vn-ag-runall { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.vn-ag-chkbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; margin-bottom: 10px; border-radius: 10px; background: color-mix(in srgb, var(--color-accent) 10%, transparent); font-size: 13.5px; }
.vn-ag-issue { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--v28-line); }
.vn-ag-issue:last-child { border-bottom: 0; }
.vn-ag-issue form { margin: 0; }
.vn-ag-sevbar { flex: none; align-self: stretch; width: 4px; border-radius: 2px; background: var(--sev, var(--v28-line)); }
.vn-ag-issue-t { font-weight: 600; font-size: 13.5px; color: var(--color-text); text-decoration: none; }
.vn-ag-issue-t:hover { color: var(--color-accent); }
.vn-ag-hi { font-size: 11px; font-weight: 600; color: var(--cp-bad); margin-left: 4px; }
.vn-ag-task { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--v28-line); }
.vn-ag-task:last-of-type { border-bottom: 0; }
.vn-ag-task form { margin: 2px 0 0; }

/* device page */
.vn-ag-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 18px 22px; margin-bottom: var(--space-4); }
.vn-ag-ring { --c: var(--v28-line); flex: none; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; align-content: center; position: relative;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--v28-faint) 0); }
.vn-ag-ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--v28-card); }
.vn-ag-ring span, .vn-ag-ring small { position: relative; line-height: 1; }
.vn-ag-ring span { font-size: 26px; font-weight: 800; }
.vn-ag-ring small { font-size: 11px; color: var(--v28-soft); margin-top: 3px; }
.vn-ag-ring.t-good { --c: var(--cp-good); } .vn-ag-ring.t-warn { --c: var(--cp-warn); } .vn-ag-ring.t-bad { --c: var(--cp-bad); }
.vn-ag-headmain { flex: 1 1 380px; min-width: 0; }
.vn-ag-headmain h1 { font-size: 22px; margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vn-ag-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 18px; font-size: 13.5px; }
.vn-ag-facts span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.vn-ag-facts b { font-size: 11.5px; font-weight: 600; color: var(--v28-soft); text-transform: uppercase; letter-spacing: .04em; }
.vn-ag-headact { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 760px) { .vn-ag-headact { align-items: stretch; width: 100%; } }
.vn-ag-sevgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 6px; }
.vn-ag-sevgrid div { padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--sev) 10%, transparent); display: flex; flex-direction: column; }
.vn-ag-sevgrid b { font-size: 22px; color: var(--sev); }
.vn-ag-sevgrid span { font-size: 12px; color: var(--v28-soft); }
.vn-ag-logline { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--v28-line); font-size: 13px; }
.vn-ag-logline:last-child { border-bottom: 0; }
.vn-ag-logline .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-ag-lvl { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: .03em; background: var(--v28-faint); color: var(--v28-soft); text-align: center; min-width: 60px; }
.vn-ag-lvl.l-critical { background: #B91C1C; color: #fff; }
.vn-ag-lvl.l-high { background: color-mix(in srgb, #EA580C 16%, transparent); color: #C2410C; }
.vn-ag-lvl.l-medium { background: color-mix(in srgb, #CA8A04 16%, transparent); color: #A16207; }
.vn-ag-catlink { display: block; color: inherit; text-decoration: none; }
.vn-ag-catlink:hover span { color: var(--color-accent); }
.vn-ag-invk { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.vn-ag-invk a { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; border: 1px solid var(--v28-line); color: inherit; text-decoration: none; }
.vn-ag-invk a:hover { border-color: var(--color-accent); }
.vn-ag-invk b { font-size: 18px; }
.vn-ag-invk span { font-size: 12px; color: var(--v28-soft); }
.vn-ag-findings { display: flex; flex-direction: column; gap: 10px; }
.vn-ag-find { display: flex; gap: 14px; padding: 14px 18px; }
.vn-ag-find.is-done { opacity: .6; }
.vn-ag-findbody { flex: 1; min-width: 0; }
.vn-ag-findbody p { margin: 6px 0 0; font-size: 13.5px; }
.vn-ag-findbody p.fix { padding: 8px 10px; border-radius: 8px; background: var(--v28-faint); }
.vn-ag-logfilter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.vn-ag-logfilter select { width: auto; }
.vn-ag-logs { font-size: 13px; }
.vn-ag-logrow { border-bottom: 1px solid var(--v28-line); }
.vn-ag-logrow:last-child { border-bottom: 0; }
.vn-ag-logrow > summary { display: grid; grid-template-columns: 120px 70px 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 16px; cursor: pointer; list-style: none; }
.vn-ag-logrow > summary::-webkit-details-marker { display: none; }
.vn-ag-logrow > summary:hover { background: var(--v28-faint); }
.vn-ag-logrow .t { font-variant-numeric: tabular-nums; color: var(--v28-soft); white-space: nowrap; }
.vn-ag-logrow .c { color: var(--v28-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-ag-logrow .msg { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vn-ag-logrow.is-flag > summary { box-shadow: inset 3px 0 0 var(--cp-warn); }
.vn-ag-logrow[open] > summary { background: var(--v28-faint); }
.vn-ag-logrow dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; margin: 0; padding: 10px 16px 14px 148px; font-size: 12.5px; }
.vn-ag-logrow dt { color: var(--v28-soft); }
.vn-ag-logrow dd { margin: 0; overflow-wrap: anywhere; }
.vn-ag-logrow dd.full { font-family: var(--font-mono, ui-monospace, monospace); white-space: pre-wrap; }
@media (max-width: 700px) {
  .vn-ag-logrow > summary { grid-template-columns: 1fr auto; }
  .vn-ag-logrow .c { display: none; }
  .vn-ag-logrow .msg { grid-column: 1 / -1; white-space: normal; }
  .vn-ag-logrow dl { padding-left: 16px; }
}
