/* vpsd dashboard. Identity from the prototype's v5/v7 system: neutral blacks and whites, one brand blue,
   flat surfaces, regular-weight headings. Every class is namespaced vd- so nothing collides. */
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(/fonts/instrument-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --vd-font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --vd-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --vd-ease: cubic-bezier(.2, 0, 0, 1);
  --vd-spring: cubic-bezier(.3, 1.25, .4, 1);
  --code-bg: #0C0E13; --code-line: #1E232D; --code-text: #E3E7EE; --code-dim: #7B8494;
}
html[data-theme="light"], html[data-theme="system"] {
  color-scheme: light;
  --page: #F6F7F9; --bg: #FFFFFF; --bg-2: #F3F4F6; --bg-3: #EBEDF0; --bg-4: #E1E4E9;
  --line: rgba(17,17,20,.08); --line-2: rgba(17,17,20,.14); --line-3: rgba(17,17,20,.24);
  --text: #111114; --text-2: #55575F; --text-3: #8B8D96;
  --brand: #2B59F0; --brand-hover: #2350DF; --brand-press: #1C43C4; --brand-edge: #1F49D2; --brand-soft: #EEF2FE; --brand-text: #2349D9;
  --s2: #0E8F86; --area: .08;
  --green: #138A4E; --amber: #B25E07; --red: #D3361E;
  --green-bg: rgba(19,138,78,.1); --amber-bg: rgba(178,94,7,.1); --red-bg: rgba(211,54,30,.08); --blue-bg: rgba(43,89,240,.1);
  --ring: 0 0 0 3px rgba(43,89,240,.18);
  --lift: 0 1px 2px rgba(17,17,20,.05), 0 12px 32px -16px rgba(17,17,20,.22);
  --pop: 0 2px 6px rgba(17,17,20,.06), 0 24px 60px -12px rgba(17,17,20,.28);
  --seg: #EBEDF0; --thumb: #FFFFFF; --ind: #EBEDF0; --toast-ok: #45D38F; --toast-bad: #FF8A78;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --page: #060607; --bg: #111113; --bg-2: #18181B; --bg-3: #212125; --bg-4: #2B2B30;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
  --text: #F8F9FA; --text-2: #A3A4AB; --text-3: #75767E;
  --brand: #4D6FFF; --brand-hover: #5A7AFF; --brand-press: #4062F2; --brand-edge: #3D5EEC; --brand-soft: rgba(77,111,255,.13); --brand-text: #95AAFF;
  --s2: #26A99B; --area: .14;
  --green: #45D38F; --amber: #F5B04C; --red: #FF6B57;
  --green-bg: rgba(69,211,143,.11); --amber-bg: rgba(245,176,76,.12); --red-bg: rgba(255,107,87,.12); --blue-bg: rgba(77,111,255,.15);
  --ring: 0 0 0 3px rgba(77,111,255,.3);
  --lift: 0 1px 2px rgba(0,0,0,.5), 0 16px 40px -18px rgba(0,0,0,.8);
  --pop: 0 2px 8px rgba(0,0,0,.5), 0 30px 80px -16px rgba(0,0,0,.8);
  --seg: #18181B; --thumb: #2B2B30; --ind: #1C1C20; --toast-ok: #138A4E; --toast-bad: #D3361E;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --page: #060607; --bg: #111113; --bg-2: #18181B; --bg-3: #212125; --bg-4: #2B2B30;
    --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
    --text: #F8F9FA; --text-2: #A3A4AB; --text-3: #75767E;
    --brand: #4D6FFF; --brand-hover: #5A7AFF; --brand-press: #4062F2; --brand-edge: #3D5EEC; --brand-soft: rgba(77,111,255,.13); --brand-text: #95AAFF;
    --s2: #26A99B; --area: .14;
    --green: #45D38F; --amber: #F5B04C; --red: #FF6B57;
    --green-bg: rgba(69,211,143,.11); --amber-bg: rgba(245,176,76,.12); --red-bg: rgba(255,107,87,.12); --blue-bg: rgba(77,111,255,.15);
    --ring: 0 0 0 3px rgba(77,111,255,.3);
    --lift: 0 1px 2px rgba(0,0,0,.5), 0 16px 40px -18px rgba(0,0,0,.8);
    --pop: 0 2px 8px rgba(0,0,0,.5), 0 30px 80px -16px rgba(0,0,0,.8);
    --seg: #18181B; --thumb: #2B2B30; --ind: #1C1C20; --toast-ok: #138A4E; --toast-bad: #D3361E;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; font: 15px/1.5 var(--vd-font); color: var(--text); background: var(--page); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code, pre, kbd { font-family: var(--vd-mono); }
code { font-size: .9em; }
svg { display: block; }
::selection { background: color-mix(in srgb, var(--brand) 28%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.vd-noscript { padding: 40px; text-align: center; }
.vd-offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

.vd-i { width: 16px; height: 16px; flex: none; }
.vd-i.lg { width: 28px; height: 28px; }
.vd-grow { flex: 1; min-width: 0; }
.vd-row { display: flex; align-items: center; gap: 8px; }
.vd-row-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-mono { font-family: var(--vd-mono); font-size: .93em; font-variant-numeric: tabular-nums; }
.vd-faint { color: var(--text-3); } .vd-muted { color: var(--text-2); } .vd-small { font-size: 13px; }
.vd-red { color: var(--red); } .vd-amber { color: var(--amber); }
.vd-ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.vd-link { color: var(--brand-text); font-weight: 500; }
.vd-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.vd-prose p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.vd-prose p + p, .vd-prose p + pre, .vd-prose pre + p { margin-top: 10px; }
.vd-prose code, .vd-callout code, .vd-pending code, .vd-add-h code, .vd-tl code, .vd-card-b > p code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--bg-3); color: var(--text); overflow-wrap: anywhere; }

/* ---------- brand ---------- */
.vd-mark { width: 26px; height: 26px; flex: none; }
.vd-mk-bg { fill: var(--brand); } .vd-mk-tag { fill: #fff; } .vd-mk-dot { fill: var(--brand); }
.vd-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 18px; letter-spacing: -0.035em; color: var(--text); flex: none; }
.vd-brand.big { font-size: 24px; gap: 11px; } .vd-brand.big .vd-mark { width: 32px; height: 32px; }

/* ---------- header ---------- */
.vd-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--page) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.vd-top-in { max-width: 1240px; margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; gap: 26px; }
.vd-tabs { --vd-tabs-h: 60px; position: relative; display: flex; align-items: center; gap: 2px; height: var(--vd-tabs-h); min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vd-tabs::-webkit-scrollbar { display: none; }
.vd-tab { position: relative; z-index: 1; height: 34px; padding: 0 13px; border-radius: 9px; display: inline-flex; align-items: center; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: color .2s; }
.vd-tab:hover, .vd-tab.on { color: var(--text); }
.vd-tab-ind { position: absolute; left: 0; top: 50%; height: 34px; margin-top: -17px; width: 0; border-radius: 9px; background: var(--ind); opacity: 0; pointer-events: none;
  transition: transform .5s var(--vd-spring), width .5s var(--vd-spring), opacity .2s; }
.vd-tab-ind.noanim { transition: none; }
.vd-tabs .vd-tab-ind::after { content: ""; position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; bottom: calc((34px - var(--vd-tabs-h)) / 2 + 0px); border-radius: 2px;
  background: var(--brand); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--brand) 55%, transparent), 0 0 3px color-mix(in srgb, var(--brand) 80%, transparent); }
.vd-top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.vd-th-moon { display: none; }
html[data-theme="dark"] .vd-th-sun { display: none; } html[data-theme="dark"] .vd-th-moon { display: block; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .vd-th-sun { display: none; } html[data-theme="system"] .vd-th-moon { display: block; } }
.vd-avatar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: background-color .15s, box-shadow .15s; }
.vd-avatar:hover { background: var(--brand-hover); box-shadow: var(--ring); }

/* ---------- page ---------- */
.vd-main { max-width: 1240px; margin: 0 auto; padding: 30px 28px 120px; }
.vd-page-in { animation: vdIn .4s var(--vd-ease) both; }
.vd-swap { animation: vdIn .32s var(--vd-ease) both; }
@keyframes vdIn { from { opacity: 0; transform: translateY(6px); } }
.vd-ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.vd-ph h1 { font-size: 30px; letter-spacing: -0.035em; }
.vd-ph p { color: var(--text-2); font-size: 14.5px; margin-top: 6px; max-width: 46em; }
.vd-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-2); margin-bottom: 14px; transition: color .15s, gap .25s var(--vd-ease); }
.vd-back:hover { color: var(--text); gap: 9px; }
.vd-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vd-sec-h h2 { font-size: 20px; }
.vd-sec-h p { color: var(--text-2); font-size: 14px; margin-top: 4px; max-width: 48em; }
.vd-group-t { font: 600 11.5px var(--vd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }
.vd-group-t:first-child { margin-top: 0; }
.vd-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vd-col-main, .vd-col-side { display: grid; gap: 16px; min-width: 0; }

/* ---------- buttons ---------- */
.vd-btn { position: relative; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap; flex: none; box-shadow: 0 1px 1px rgba(16,24,40,.04);
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.vd-btn:hover { background: var(--bg-2); border-color: var(--line-3); }
.vd-btn:active { background: var(--bg-3); transform: translateY(1px); }
.vd-btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--brand), var(--ring); border-radius: 10px; }
.vd-btn .vd-i { width: 16px; height: 16px; }
.vd-btn.primary { background: var(--brand); border-color: var(--brand-edge); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(16,24,40,.16); }
.vd-btn.primary:hover { background: var(--brand-hover); }
.vd-btn.primary:active { background: var(--brand-press); box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.vd-btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.vd-btn.ghost:hover { background: var(--bg-3); color: var(--text); }
.vd-btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.vd-btn.danger:hover { background: var(--red-bg); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.vd-btn.ghost.danger { border-color: transparent; }
.vd-dialog-f .vd-btn.danger:not(.ghost) { background: var(--red); border-color: var(--red); color: #fff; }
.vd-dialog-f .vd-btn.danger:not(.ghost):hover { background: color-mix(in srgb, var(--red) 88%, #000); }
.vd-btn.sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; gap: 6px; }
.vd-btn.sm .vd-i { width: 15px; height: 15px; }
.vd-btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.vd-btn.icon { width: 38px; padding: 0; } .vd-btn.icon.sm { width: 32px; }
.vd-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.vd-btn.busy:disabled { opacity: .8; cursor: progress; }
.vd-btn .vd-spin { width: 16px; height: 16px; }
html[data-theme="dark"] .vd-btn:not(.primary):not(.ghost) { background: var(--bg-2); box-shadow: none; }
html[data-theme="dark"] .vd-btn:not(.primary):not(.ghost):hover { background: var(--bg-3); }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .vd-btn:not(.primary):not(.ghost) { background: var(--bg-2); box-shadow: none; }
  html[data-theme="system"] .vd-btn:not(.primary):not(.ghost):hover { background: var(--bg-3); }
}

/* ---------- forms ---------- */
.vd-form { display: grid; gap: 16px; }
.vd-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.vd-field-l { font-size: 13px; font-weight: 600; color: var(--text-2); }
.vd-field-h { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.vd-field-e { font-size: 13px; color: var(--red); line-height: 1.4; }
.vd-field-e:empty { display: none; }
.vd-form-e { font-size: 13.5px; color: var(--red); line-height: 1.45; }
.vd-input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 15px var(--vd-font); outline: none;
  transition: border-color .15s, box-shadow .15s; }
.vd-input.mono { font-family: var(--vd-mono); font-size: 14.5px; }
.vd-input::placeholder { color: var(--text-3); opacity: .8; }
.vd-input:hover { border-color: var(--line-3); }
.vd-input:focus { border-color: var(--brand); box-shadow: var(--ring); }
textarea.vd-input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.vd-input { width: auto; flex: 1; padding-right: 32px; appearance: none; -webkit-appearance: none; cursor: pointer; font-size: 14px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
html[data-theme="dark"] .vd-input { background: var(--bg-2); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .vd-input { background: var(--bg-2); } }
.vd-input-wrap { display: flex; align-items: center; height: 46px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); cursor: text; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
html[data-theme="dark"] .vd-input-wrap { background: var(--bg-2); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .vd-input-wrap { background: var(--bg-2); } }
.vd-input-wrap:hover { border-color: var(--line-3); }
.vd-input-wrap:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.vd-input-wrap .vd-input { border: 0; box-shadow: none; padding: 0; height: 100%; background: transparent; font: 500 16px var(--vd-mono); field-sizing: content; width: auto; min-width: 5ch; max-width: 100%; flex: 0 1 auto; }
.vd-sfx { font: 500 16px var(--vd-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vd-field.err .vd-input, .vd-field.err .vd-input-wrap { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-bg); }
.vd-field.err .vd-input-wrap .vd-input { box-shadow: none; }
.vd-avail { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); }
.vd-avail:empty { display: none; }
.vd-avail .vd-i { width: 15px; height: 15px; }
.vd-avail.ok { color: var(--green); } .vd-avail.bad { color: var(--red); }
.vd-inline-form { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.vd-inline-form .vd-field { flex: 1; min-width: 200px; }
.vd-inline-form > .vd-btn { height: 42px; }
.vd-inline-form .vd-form-e { width: 100%; }

.vd-check { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.vd-check:hover { border-color: var(--line-3); }
.vd-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vd-check-b { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-3); display: grid; place-items: center; color: transparent; flex: none; margin-top: 1px; transition: background-color .15s, border-color .15s, color .15s; }
.vd-check-b .vd-i { width: 12px; height: 12px; stroke-width: 3; }
.vd-check input:checked + .vd-check-b { background: var(--brand); border-color: var(--brand); color: #fff; }
.vd-check input:focus-visible + .vd-check-b { outline: 2px solid var(--brand); outline-offset: 2px; }
.vd-check:has(input:checked) { border-color: color-mix(in srgb, var(--brand) 45%, transparent); background: var(--brand-soft); }
.vd-check code { display: block; font: 600 13px var(--vd-mono); color: var(--text); }
.vd-check small { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 1px; }
.vd-check.sm { padding: 0; border: 0; background: none; align-items: center; font-size: 13px; color: var(--text-2); }
.vd-check.sm:has(input:checked) { background: none; }
.vd-check.sm .vd-check-b { margin-top: 0; }
.vd-checks { display: grid; gap: 6px; }

/* segmented control */
.vd-seg { position: relative; display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--seg); flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.vd-seg button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; border-radius: 7px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: color .2s; }
.vd-seg button:hover, .vd-seg button.on { color: var(--text); }
.vd-seg button .vd-i { width: 15px; height: 15px; }
.vd-seg-thumb { position: absolute; top: 3px; left: 3px; height: 30px; width: 0; border-radius: 7px; background: var(--thumb); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0,0,0,.1); opacity: 0;
  transition: transform .45s var(--vd-spring), width .45s var(--vd-spring), opacity .2s; }
.vd-seg-thumb.noanim { transition: none; }
.vd-seg.sm button { height: 26px; padding: 0 9px; font-size: 12.5px; }
.vd-seg.sm .vd-seg-thumb { height: 26px; }

/* ---------- surfaces ---------- */
.vd-card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.vd-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 54px; }
.vd-card-h h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.vd-card-b { padding: 18px; }
.vd-card-f { padding: 12px 18px; border-top: 1px solid var(--line); margin: 0; }
.vd-callout { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); font-size: 14px; }
.vd-callout > .vd-i { margin-top: 2px; color: var(--text-2); }
.vd-callout b { display: block; font-weight: 600; }
.vd-callout p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }
.vd-callout.amber { background: var(--bg); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); } .vd-callout.amber > .vd-i { color: var(--amber); }
.vd-callout.bad { background: var(--red-bg); } .vd-callout.bad > .vd-i { color: var(--red); }
.vd-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); white-space: nowrap; flex: none; }
.vd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.vd-pill.ok { color: var(--green); } .vd-pill.warn { color: var(--amber); } .vd-pill.bad { color: var(--red); } .vd-pill.idle { color: var(--text-3); }
.vd-agent { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); min-width: 0; }
.vd-agent .vd-dot { background: var(--text-3); }
.vd-agent.ok .vd-dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); } .vd-agent.bad .vd-dot { background: var(--red); }
.vd-tag { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--bg-3); color: var(--text-2); white-space: nowrap; flex: none; }
.vd-tag.amber { background: var(--amber-bg); color: var(--amber); } .vd-tag.blue { background: var(--blue-bg); color: var(--brand-text); }
.vd-tag.red { background: var(--red-bg); color: var(--red); } .vd-tag.green { background: var(--green-bg); color: var(--green); }
.vd-tag.brand { background: var(--brand); color: #fff; }
.vd-empty { text-align: center; padding: 64px 20px; color: var(--text-2); display: grid; justify-items: center; gap: 8px; }
.vd-empty > .vd-i { color: var(--text-3); margin-bottom: 4px; }
.vd-empty h1 { font-size: 24px; color: var(--text); }
.vd-empty b { font-weight: 600; font-size: 15px; color: var(--text); }
.vd-empty p { font-size: 14px; max-width: 30em; }
.vd-empty .vd-btn { margin-top: 10px; }
.vd-empty.sm { padding: 34px 20px; background: var(--bg); border: 1px dashed var(--line-2); border-radius: 16px; }
.vd-card .vd-empty.sm { border: 0; border-radius: 0; background: transparent; }
.vd-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px; color: var(--text-3); font-size: 13.5px; }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%) !important; background-size: 200% 100% !important; animation: vdShimmer 1.4s linear infinite; border-color: transparent !important; }
@keyframes vdShimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* spinner */
.vd-spin { width: 18px; height: 18px; animation: vdRot 1.4s linear infinite; flex: none; color: inherit; }
.vd-spin circle { stroke: currentColor; stroke-linecap: round; stroke-dasharray: 1 150; animation: vdDash 1.4s ease-in-out infinite; }
@keyframes vdRot { to { transform: rotate(360deg); } }
@keyframes vdDash { 0% { stroke-dasharray: 1 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90 150; stroke-dashoffset: -124; } }

/* copy + code */
.vd-cp { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; flex: none; white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.vd-cp:hover { border-color: var(--line-3); background: var(--bg-2); }
.vd-cp.sm { height: 26px; padding: 0 8px; font-size: 12px; border-radius: 7px; }
.vd-cp-ic { position: relative; width: 14px; height: 14px; }
.vd-cp-ic > span { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .35s var(--vd-ease), opacity .25s; }
.vd-cp-ic .vd-i { width: 14px; height: 14px; }
.vd-cp-ic .b { transform: scale(.4); opacity: 0; }
.vd-cp.done { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.vd-cp.done .a { transform: scale(.4); opacity: 0; } .vd-cp.done .b { transform: none; opacity: 1; }
.vd-codeline { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--code-line); min-width: 0; }
.vd-codeline code { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: var(--code-text); white-space: pre-wrap; overflow-wrap: anywhere; padding: 3px 0; }
.vd-codeline.secret code { color: #E8C07D; }
.vd-codeline .vd-cp, .vd-card-h .vd-cp:only-of-type { }
.vd-codeline .vd-cp { background: #171A21; border-color: #262B35; color: #DDE2EA; align-self: flex-start; }
.vd-codeline .vd-cp:hover { background: #1F232C; }
.vd-codeline .vd-cp.done { color: #6FE3AE; }
.vd-pre, .vd-code { margin: 0; padding: 14px 16px; background: var(--code-bg); color: var(--code-text); font: 12.5px/1.65 var(--vd-mono); border-radius: 10px; overflow-x: auto; white-space: pre; scrollbar-width: thin; }
.vd-code { border-radius: 0; }
.vd-card > .vd-code:last-child { border-radius: 0 0 15px 15px; }

/* dialogs, popovers, toasts */
.vd-dialog { border: 1px solid var(--line-2); border-radius: 20px; padding: 0; background: var(--bg); color: var(--text); width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: var(--pop); }
.vd-dialog.wide { width: min(720px, calc(100vw - 32px)); }
.vd-dialog[open] { animation: vdPop .35s var(--vd-spring); }
.vd-dialog::backdrop { background: rgba(8,10,14,.45); backdrop-filter: blur(2px); }
.vd-dialog-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0 22px; }
.vd-dialog-h h2 { font-size: 19px; overflow-wrap: anywhere; }
.vd-dialog-h p { font-size: 13.5px; color: var(--text-2); margin-top: 4px; overflow-wrap: anywhere; font-family: var(--vd-mono); }
.vd-dialog-b { padding: 14px 22px 18px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.vd-dialog-b .vd-field { margin-top: 6px; }
.vd-dialog-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.vd-bullets { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 8px; }
@keyframes vdPop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
.vd-pop { position: fixed; z-index: 90; width: 272px; background: var(--bg); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--pop); padding: 6px; animation: vdPop .25s var(--vd-ease); }
.vd-pop-who { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.vd-pop-who b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-pop-who span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.vd-pop-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 6px 10px; font-size: 13px; color: var(--text-2); }
.vd-pop-sep { height: 1px; background: var(--line); margin: 6px 0; }
.vd-pop-item { width: 100%; justify-content: flex-start; height: 36px; font-weight: 500; color: var(--text); padding: 0 10px; }
.vd-toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.vd-toast { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 600; box-shadow: var(--pop); animation: vdPop .4s var(--vd-spring); max-width: 100%; }
.vd-toast .vd-i { color: var(--toast-ok); } .vd-toast.bad .vd-i { color: var(--toast-bad); }
.vd-toast.out { animation: vdOut .3s ease-in forwards; }
@keyframes vdOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- sign in ---------- */
.vd-public { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px 60px; }
.vd-signin { width: min(420px, 100%); display: grid; gap: 26px; justify-items: center; }
.vd-signin-card { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 30px 28px 26px; box-shadow: var(--lift); }
.vd-signin-card h1 { font-size: 26px; letter-spacing: -0.035em; }
.vd-signin-sub { color: var(--text-2); font-size: 14.5px; margin-top: 6px; }
.vd-signin-sub b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.vd-signin-err { margin-top: 18px; }
/* Sign-in buttons. Google's: white (or #131314 in dark) with a #747775 edge and the standard four-colour G, per Google's branding guidance. */
.vd-sso { display: grid; gap: 10px; margin-top: 22px; }
.vd-sso .vd-loading { padding: 12px; }
.vd-sso-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid #747775;
  background: #FFFFFF; color: #1F1F1F; font: 500 15px var(--vd-font); letter-spacing: .005em; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.vd-sso-btn.google:not(.off):hover { background: #F2F2F2; box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15); }
.vd-sso-btn.google:not(.off):active { background: #E8E8E8; }
.vd-sso-btn img, .vd-gh { width: 18px; height: 18px; flex: none; }
.vd-sso-btn small { font: 600 11px var(--vd-font); color: var(--text-2); background: var(--bg-3); padding: 2px 8px; border-radius: 999px; letter-spacing: 0; }
.vd-sso-btn.off { cursor: not-allowed; background: var(--bg-2); border-color: var(--line-2); color: var(--text-3); }
.vd-sso-btn.off > img, .vd-sso-btn.off > .vd-gh, .vd-sso-btn.off > span { opacity: .55; }
html[data-theme="dark"] .vd-sso-btn.google:not(.off) { background: #131314; border-color: #8E918F; color: #E3E3E3; }
html[data-theme="dark"] .vd-sso-btn.google:not(.off):hover { background: #1E1F20; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .vd-sso-btn.google:not(.off) { background: #131314; border-color: #8E918F; color: #E3E3E3; }
  html[data-theme="system"] .vd-sso-btn.google:not(.off):hover { background: #1E1F20; }
}
.vd-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; font-size: 12.5px; color: var(--text-3); }
.vd-or::before, .vd-or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.vd-email .vd-dev-row { margin-top: 10px; }
.vd-email { margin-bottom: 6px; }
.vd-sent { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--green-bg); margin: 4px 0 6px; }
.vd-sent > .vd-i { color: var(--green); margin-top: 2px; }
.vd-sent b { font-weight: 600; font-size: 14px; }
.vd-sent p { font-size: 13.5px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.vd-linkbtn { border: 0; background: none; padding: 0; margin-top: 6px; color: var(--brand-text); font-size: 13px; font-weight: 600; cursor: pointer; }
.vd-linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }
.vd-dev { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.vd-dev-h b { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); }
.vd-dev-h span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
.vd-dev-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; align-items: start; }
.vd-dev-row > .vd-btn { height: 42px; }
.vd-dev-form .vd-form-e { margin-top: 8px; }
.vd-welcome-form { margin-top: 22px; }
.vd-welcome-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.vd-welcome-acts .vd-btn.primary { flex: 1; }
.vd-opt { font-weight: 500; color: var(--text-3); }
.vd-acct-email { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--bg-2); font-size: 14px; color: var(--text); min-width: 0; }
.vd-acct-email .vd-mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-boot { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; color: var(--text-2); }
.vd-boot-mark { width: 40px; height: 40px; animation: vdBreath 1.6s ease-in-out infinite; }
@keyframes vdBreath { 50% { opacity: .45; transform: scale(.94); } }

/* ---------- servers ---------- */
.vd-sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.vd-sgrid.empty { display: block; }
.vd-scard { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 0; overflow: hidden;
  transition: border-color .25s, box-shadow .35s, transform .45s var(--vd-ease); }
.vd-scard:hover { border-color: var(--line-2); box-shadow: var(--lift); transform: translateY(-2px); }
.vd-scard:focus-visible { box-shadow: var(--ring); border-radius: 18px; }
.vd-scard.alert { border-color: color-mix(in srgb, var(--red) 32%, transparent); }
.vd-scard.skel { min-height: 286px; }
.vd-scard-h { display: flex; align-items: flex-start; gap: 12px; }
.vd-scard-n { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-scard-host { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 13px var(--vd-mono); color: var(--text-2); min-width: 0; }
.vd-scard-host span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-scard-host .vd-i { width: 13px; height: 13px; color: var(--text-3); }
.vd-scard-inc { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-size: 13px; font-weight: 600; }
.vd-scard-inc .vd-i { width: 15px; height: 15px; }
.vd-scard-inc .vd-grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-card-spark { position: relative; height: 84px; margin: 14px -18px 0; border-top: 1px solid var(--line); }
.vd-card-spark .vd-spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58px; }
.vd-card-cap { position: absolute; top: 9px; left: 18px; font: 500 10.5px var(--vd-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.vd-card-spark.empty { display: grid; place-items: center; font-size: 13px; color: var(--text-3); }
.vd-card-spark.loading { background: linear-gradient(90deg, transparent, var(--bg-2), transparent); background-size: 200% 100%; animation: vdShimmer 1.4s linear infinite; }
.vd-card-wait { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg-2); }
.vd-card-wait .vd-spin { color: var(--amber); width: 20px; height: 20px; }
.vd-card-wait b { display: block; font-size: 14px; font-weight: 600; }
.vd-card-wait span { display: block; font-size: 13px; color: var(--text-2); margin-top: 1px; overflow-wrap: anywhere; }
.vd-scard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px 0 16px; border-top: 1px solid var(--line); margin: 0 0 0; }
.vd-card-wait + .vd-scard-f { margin-top: 16px; }
.vd-stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 7px; min-width: 0; }
.vd-stat > span:first-child { font-size: 12px; color: var(--text-3); }
.vd-stat b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; }
.vd-meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--bg-3); overflow: hidden; }
.vd-meter i { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--brand); transition: width .8s var(--vd-ease); }
.vd-meter.warn i { background: var(--amber); } .vd-meter.bad i { background: var(--red); }
.vd-scard-f { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin: auto -18px 0; padding: 11px 18px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 12.5px; color: var(--text-2); min-width: 0; }
html[data-theme="dark"] .vd-scard-f { background: color-mix(in srgb, var(--bg-2) 60%, var(--bg)); }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .vd-scard-f { background: color-mix(in srgb, var(--bg-2) 60%, var(--bg)); } }
.vd-scard-f > .vd-ell { max-width: 40%; }
.vd-scard-agent { margin-left: auto; }
.vd-scard.add { align-items: center; justify-content: center; gap: 6px; min-height: 286px; padding: 18px; text-align: center; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text-2); font-size: 13.5px; }
.vd-scard.add:hover { border-color: var(--line-3); box-shadow: none; }
.vd-scard.add b { color: var(--text); font-weight: 600; font-size: 15.5px; }
.vd-add-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--bg-3); color: var(--text); margin-bottom: 8px; transition: transform .55s var(--vd-spring), background-color .25s, color .25s; }
.vd-add-ic .vd-i { width: 22px; height: 22px; }
.vd-scard.add:hover .vd-add-ic { transform: rotate(90deg); background: var(--brand); color: #fff; }
.vd-first { max-width: 640px; margin: 24px auto 0; text-align: center; padding: 48px 32px 44px; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; }
.vd-first-name { display: inline-flex; align-items: baseline; padding: 11px 18px; border-radius: 12px; background: var(--bg-2); font: 500 18px var(--vd-mono); margin-bottom: 24px; max-width: 100%; overflow: hidden; }
.vd-first-name b { font-weight: 500; color: var(--brand-text); }
.vd-first h2 { font-size: 26px; letter-spacing: -0.035em; }
.vd-first p { color: var(--text-2); font-size: 15px; margin: 10px auto 26px; max-width: 32em; line-height: 1.6; }

/* ---------- add server ---------- */
.vd-add { max-width: 640px; margin: 0 auto; }
.vd-add-card { background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 30px 32px 30px; }
.vd-add-h { margin-bottom: 22px; }
.vd-add-h h1 { font-size: 28px; letter-spacing: -0.035em; }
.vd-add-h p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.vd-mono-h { font-family: var(--vd-mono) !important; font-size: 23px !important; letter-spacing: -0.02em !important; overflow-wrap: anywhere; }
.vd-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.vd-kicker .vd-i { width: 15px; height: 15px; }
.vd-install { display: grid; gap: 10px; }
.vd-install-n { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.vd-install-n .vd-i { width: 14px; height: 14px; margin-top: 2px; }
.vd-add-wait { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.vd-add-live { display: grid; gap: 12px; margin-top: 18px; }
.vd-add-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.vd-add-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-text); font-weight: 500; }
.vd-done { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--green-bg); }
.vd-done-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; animation: vdPop .5s var(--vd-spring); }
.vd-done-ic .vd-i { width: 19px; height: 19px; stroke-width: 3; }
.vd-done b { display: block; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.vd-done p { color: var(--text-2); font-size: 14px; margin-top: 3px; }

/* steps */
.vd-watch { margin-top: 20px; }
.vd-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.vd-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.vd-step:last-child { padding-bottom: 4px; }
.vd-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 1px; background: var(--line-2); transition: background-color .3s; }
.vd-step.done:not(:last-child)::before { background: var(--green); }
.vd-step-ic { position: relative; width: 28px; height: 28px; display: grid; place-items: center; }
.vd-step-ic > * { grid-area: 1 / 1; transition: transform .35s var(--vd-ease), opacity .25s; }
.vd-step-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-3); }
.vd-step-ic .vd-spin { width: 22px; height: 22px; color: var(--brand); opacity: 0; }
.vd-step-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.3); }
.vd-step-ok .vd-i { width: 14px; height: 14px; stroke-width: 3; }
.vd-step.active .vd-step-dot { opacity: 0; } .vd-step.active .vd-spin { opacity: 1; }
.vd-step.done .vd-step-dot, .vd-step.done .vd-spin { opacity: 0; }
.vd-step.done .vd-step-ok { opacity: 1; transform: none; transition: transform .45s var(--vd-spring), opacity .2s; }
.vd-step-tx { padding-top: 3px; min-width: 0; }
.vd-step-tx b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-3); transition: color .3s; }
.vd-step-tx span { display: block; font-size: 13px; color: var(--text-3); margin-top: 1px; overflow-wrap: anywhere; }
.vd-step.active b, .vd-step.done b { color: var(--text); }
.vd-step.active span, .vd-step.done span { color: var(--text-2); }
.vd-watch .vd-callout { margin-top: 12px; }

/* ---------- server page ---------- */
.vd-hero { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.vd-hero.skel { min-height: 168px; }
.vd-hero-top { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 20px; flex-wrap: wrap; }
.vd-hero h1 { font-size: 28px; letter-spacing: -0.035em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vd-hero-label { overflow-wrap: anywhere; }
.vd-hero-name { display: flex; align-items: center; gap: 8px; margin-top: 9px; font: 500 15px var(--vd-mono); color: var(--text-2); flex-wrap: wrap; min-width: 0; }
.vd-hero-name > .vd-i { width: 14px; height: 14px; color: var(--text-3); }
.vd-hero-name a, .vd-hero-name > span { color: var(--text); overflow-wrap: anywhere; }
.vd-hero-name a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.vd-hero-host { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 9px; background: var(--bg-2); font-size: 13px; color: var(--text-2); max-width: 100%; }
.vd-hero-host .vd-i { width: 14px; height: 14px; }
.vd-hero-bot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.vd-hero-bot > div { padding: 13px 24px 14px; border-right: 1px solid var(--line); min-width: 0; }
.vd-hero-bot > div:last-child { border-right: 0; }
.vd-k { font: 500 10.5px var(--vd-mono); color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }
.vd-v { margin-top: 5px; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-v .vd-ell { display: block; }
.vd-pending { margin-top: 16px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent); border-radius: 18px; padding: 20px 22px; }
.vd-pending-h { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.vd-pending-h h2 { font-size: 18px; }
.vd-pending-h p { color: var(--text-2); font-size: 14px; margin-top: 4px; line-height: 1.55; max-width: 44em; }
.vd-newinstall-out:not(:empty) { margin-top: 16px; }
.vd-subtabs { position: relative; display: flex; width: fit-content; max-width: 100%; gap: 2px; padding: 4px; margin: 20px 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; }
.vd-subtabs::-webkit-scrollbar { display: none; }
.vd-subtabs .vd-tab { height: 34px; padding: 0 15px; }
.vd-subtabs .vd-tab-ind { top: 4px; margin-top: 0; background: var(--thumb); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(0,0,0,.08); }
.vd-over { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
.vd-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); margin: 0; padding: 4px 18px 6px; font-size: 14px; }
.vd-kv dt { color: var(--text-2); padding: 9px 0; border-bottom: 1px solid var(--line); }
.vd-kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.vd-kv dt:last-of-type, .vd-kv dd:last-of-type { border-bottom: 0; }
.vd-allgood { display: flex; gap: 12px; align-items: flex-start; }
.vd-allgood-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.vd-allgood b { font-weight: 600; font-size: 15px; }
.vd-allgood p { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }

/* incidents */
.vd-incs { display: grid; gap: 12px; }
.vd-inc { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.vd-inc + .vd-inc { margin-top: 12px; }
.vd-incs > .vd-inc + .vd-inc { margin-top: 0; }
.vd-inc.open { border-color: color-mix(in srgb, var(--red) 30%, transparent); }
.vd-inc-h { display: flex; gap: 12px; align-items: flex-start; }
.vd-inc-st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.vd-inc-st .vd-i { width: 16px; height: 16px; }
.vd-inc-st.open { background: var(--red-bg); color: var(--red); } .vd-inc-st.done { background: var(--green-bg); color: var(--green); }
.vd-inc-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-inc-t b { font-weight: 600; font-size: 15px; }
.vd-inc-m { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.vd-inc-m a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }
.vd-inc-when { font-size: 12.5px; color: var(--text-3); white-space: nowrap; padding-top: 3px; }
.vd-inc-sum { margin: 10px 0 0 40px; font-size: 14px; line-height: 1.55; }
.vd-inc-ev { margin: 12px 0 0 40px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; padding: 11px 14px; border-radius: 10px; background: var(--bg-2); font-size: 13px; }
.vd-inc-ev dt { color: var(--text-3); }
.vd-inc-ev dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.vd-inc-ev code { font-size: 12.5px; color: var(--text); }
.vd-inc-f { margin: 10px 0 0 40px; font-size: 12.5px; color: var(--text-3); }

/* charts */
.vd-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vd-chart { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px 12px; min-width: 0; }
.vd-chart.skel { height: 238px; }
.vd-chart-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 28px; }
.vd-chart-h > b { font-size: 14px; font-weight: 600; color: var(--text-2); }
.vd-chart-now { margin-left: auto; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vd-chart-sub { font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.vd-legend { margin-left: auto; display: flex; gap: 14px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.vd-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.vd-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-legend i, .vd-tip-r i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; }
i.s1 { background: var(--brand); } i.s2 { background: var(--s2); }
.vd-chart-plot { position: relative; height: 150px; margin-top: 12px; cursor: crosshair; touch-action: pan-y; border-radius: 4px; }
.vd-chart-plot:focus-visible { outline-offset: 4px; }
.vd-chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.vd-grid { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 4; }
.vd-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.vd-line.s1 { stroke: var(--brand); } .vd-line.s2 { stroke: var(--s2); }
.vd-area.s1 { fill: var(--brand); fill-opacity: var(--area); stroke: none; }
.vd-chart-yl { position: absolute; left: 0; font: 10.5px var(--vd-mono); color: var(--text-3); pointer-events: none; z-index: 1; padding-right: 6px; background: var(--bg); border-radius: 3px; line-height: 1.2; }
.vd-chart-yl.top { top: 3px; } .vd-chart-yl.mid { top: calc(50% + 3px); }
.vd-hair { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: var(--line-3); pointer-events: none; }
.vd-hdot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
.vd-hdot.s1 { background: var(--brand); } .vd-hdot.s2 { background: var(--s2); }
.vd-tip { position: absolute; top: 6px; transform: translateX(12px); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--pop); pointer-events: none; white-space: nowrap; z-index: 3; min-width: 120px; }
.vd-tip.left { transform: translateX(calc(-100% - 12px)); }
.vd-tip-t { color: var(--text-3); font-size: 12px; margin-bottom: 3px; }
.vd-tip-r { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.vd-tip-r b { margin-left: auto; padding-left: 10px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vd-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 24px; font-size: 13px; color: var(--text-3); line-height: 1.5; }
.vd-chart-x { display: flex; justify-content: space-between; margin-top: 7px; font: 10.5px var(--vd-mono); color: var(--text-3); }

/* monitors */
.vd-mons { display: grid; gap: 10px; }
.vd-mon { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.vd-mon.paused { background: transparent; }
.vd-mon.paused .vd-mon-t, .vd-mon.paused .vd-mon-target { opacity: .7; }
.vd-mon-main { display: flex; align-items: center; gap: 12px; }
.vd-mon-main > .vd-pill { min-width: 104px; justify-content: center; }
.vd-mon-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vd-mon-t b { font-weight: 600; font-size: 14.5px; }
.vd-mon-target { font-size: 12.5px; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.vd-mon-acts { display: flex; gap: 2px; align-items: center; flex: none; }
.vd-mon-sub { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 13px; }
.vd-regions { display: flex; gap: 8px; flex-wrap: wrap; }
.vd-region { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--bg-2); font-size: 12.5px; color: var(--text-2); max-width: 100%; }
.vd-region b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-region.ok .vd-dot { background: var(--green); } .vd-region.bad .vd-dot { background: var(--red); } .vd-region.bad b { color: var(--red); }
.vd-strip { display: flex; gap: 2px; align-items: center; height: 18px; }
.vd-strip i { display: block; width: 4px; height: 16px; border-radius: 2px; background: var(--green); opacity: .8; }
.vd-strip i.warn { background: var(--amber); } .vd-strip i.bad { background: var(--red); opacity: 1; }
.vd-mon-when { margin-left: auto; font-size: 12.5px; }
.vd-addmon { margin-bottom: 14px; }
.vd-addmon-grid { display: grid; grid-template-columns: auto 120px minmax(0, 1fr) 150px; gap: 12px; align-items: start; }
.vd-addmon-pvrow { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.vd-addmon-pv { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--bg-2); overflow-wrap: anywhere; min-width: 0; }

/* settings */
.vd-sets { display: grid; gap: 14px; }
.vd-set { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; padding: 20px 22px; }
.vd-set-l h3 { font-size: 16px; font-weight: 500; }
.vd-set-l p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; line-height: 1.5; }
.vd-set-r { min-width: 0; }
.vd-set.danger { border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.vd-set-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: start; }
.vd-set-form > .vd-btn { height: 42px; }
.vd-mb { margin-bottom: 14px; }
.vd-set-form .vd-input-wrap { height: 42px; }
.vd-set-form .vd-input-wrap .vd-input, .vd-set-form .vd-sfx { font-size: 14.5px; }
.vd-set-form > .vd-form-e { grid-column: 1 / -1; }
.vd-set-static { display: grid; gap: 6px; }
.vd-set-static .vd-mono { font-size: 15px; }

/* alerts */
.vd-chans { list-style: none; margin: 0; padding: 0; }
.vd-chan { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vd-chan:last-child { border-bottom: 0; }
.vd-chan-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.vd-chan-t { font-size: 14px; font-weight: 500; }
.vd-chan-m { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.vd-chan-err { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 12.5px; color: var(--red); line-height: 1.45; }
.vd-chan-err .vd-i { width: 14px; height: 14px; margin-top: 2px; }
.vd-chan-acts { display: flex; gap: 4px; align-items: center; flex: none; }
.vd-fallback { display: flex; gap: 12px; align-items: flex-start; padding: 18px; }
.vd-fallback > .vd-i { width: 20px; height: 20px; color: var(--text-2); margin-top: 1px; }
.vd-fallback b { font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
.vd-fallback p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.vd-reveal { border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.vd-reveal-n { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--amber); margin: 0 0 10px; }
.vd-card-b.vd-reveal { border-bottom: 1px solid var(--line); background: var(--bg-2); }
.vd-card-b.vd-reveal .vd-reveal-n { color: var(--amber); }
.vd-reveal .vd-card-b > p.vd-faint { margin-top: 10px; }

/* developers */
.vd-gate { padding: 28px; }
.vd-gate-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.vd-gate-ic .vd-i { width: 21px; height: 21px; }
.vd-gate h2 { font-size: 22px; margin-top: 16px; letter-spacing: -0.03em; }
.vd-gate p { color: var(--text-2); font-size: 14.5px; margin: 8px 0 20px; max-width: 36em; line-height: 1.55; }
.vd-keys { list-style: none; margin: 0; padding: 0; }
.vd-key { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vd-key:last-child { border-bottom: 0; }
.vd-key-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.vd-key-t b { font-weight: 600; font-size: 14.5px; }
.vd-key-t code { font-size: 12.5px; }
.vd-key-sc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.vd-key-m { font-size: 12.5px; color: var(--text-3); margin-top: 7px; }
.vd-scope { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11.5px var(--vd-mono); color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); white-space: nowrap; }
.vd-eps { list-style: none; margin: 0; padding: 8px 0; }
.vd-eps li { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 18px; font-size: 12.5px; }
.vd-eps code { font-size: 12.5px; color: var(--text); }
.vd-eps .vd-scope { height: 20px; font-size: 11px; }
.vd-mth { display: inline-grid; place-items: center; height: 20px; border-radius: 5px; font: 700 10.5px var(--vd-mono); letter-spacing: .03em; background: var(--green-bg); color: var(--green); }
.vd-mth.post { background: var(--blue-bg); color: var(--brand-text); } .vd-mth.patch { background: var(--amber-bg); color: var(--amber); } .vd-mth.delete { background: var(--red-bg); color: var(--red); }

/* activity */
.vd-tl { max-width: 820px; }
.vd-tl-day + .vd-tl-day { margin-top: 28px; }
.vd-tl-day h3 { font: 600 11.5px var(--vd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.vd-tl-day ol { list-style: none; margin: 0; padding: 0; }
.vd-tl-i { position: relative; display: flex; gap: 14px; padding: 9px 0; }
.vd-tl-i:not(:last-child)::before { content: ""; position: absolute; left: 15.5px; top: 44px; bottom: -6px; width: 1px; background: var(--line-2); }
.vd-tl-ic { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.vd-tl-ic .vd-i { width: 15px; height: 15px; }
.vd-tl-i.ok .vd-tl-ic { background: var(--green-bg); color: var(--green); border-color: transparent; }
.vd-tl-i.bad .vd-tl-ic { background: var(--red-bg); color: var(--red); border-color: transparent; }
.vd-tl-i.warn .vd-tl-ic { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.vd-tl-i p { font-size: 14.5px; line-height: 1.45; padding-top: 5px; overflow-wrap: anywhere; }
.vd-tl-i b { font-weight: 600; }
.vd-tl-m { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* admin */
.vd-adm { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.vd-adm-list { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vd-adm-list ul { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.vd-adm-item { width: 100%; text-align: left; border: 0; background: transparent; padding: 11px 12px; border-radius: 10px; cursor: pointer; display: grid; gap: 4px; color: inherit; }
.vd-adm-item:hover { background: var(--bg-2); }
.vd-adm-item.on { background: var(--brand-soft); }
.vd-adm-item-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vd-adm-item-t b { font-weight: 600; font-size: 14px; }
.vd-adm-sum { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vd-adm-item-m { font-size: 12px; color: var(--text-3); }
.vd-adm-detail { display: grid; gap: 16px; min-width: 0; }
.vd-adm-detail > .vd-empty.sm { min-height: 200px; align-content: center; }
.vd-adm-summary { display: grid; gap: 6px; font-size: 14px; border-bottom: 1px solid var(--line); }
.vd-adm-summary b { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.vd-adm-ctl { display: grid; padding: 4px 18px; }
.vd-adm-ctl-r { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.vd-adm-ctl-r:last-child { border-bottom: 0; }
.vd-adm-ctl-r > :nth-child(n+3) { grid-column: 2; }
.vd-adm-ctl-r .vd-row { flex-wrap: wrap; }
.vd-adm-ctl-r .vd-input { height: 32px; font-size: 13px; padding-left: 10px; border-radius: 8px; flex: 0 1 220px; }
.vd-adm-ctl-r p { margin: 0; }
.vd-adm-msgs { list-style: none; margin: 0; padding: 4px 18px; max-height: 560px; overflow-y: auto; }
.vd-adm-msg { padding: 12px 0; border-bottom: 1px solid var(--line); }
.vd-adm-msg:last-child { border-bottom: 0; }
.vd-adm-msg-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 6px; }
.vd-adm-msg-h b { font-weight: 600; font-size: 13px; }
.vd-adm-msg.user .vd-adm-msg-h b { color: var(--brand-text); } .vd-adm-msg.human .vd-adm-msg-h b { color: var(--green); }
.vd-adm-msg.system { opacity: .7; }
.vd-adm-msg .vd-md { font-size: 14px; }
.vd-adm-reply { display: grid; gap: 10px; }

/* markdown subset */
.vd-md { line-height: 1.55; overflow-wrap: anywhere; }
.vd-md > * + * { margin-top: 8px; }
.vd-md ul, .vd-md ol { margin-bottom: 0; padding-left: 20px; }
.vd-md li + li { margin-top: 3px; }
.vd-md strong { font-weight: 600; }
.vd-md code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--bg-3); }
.vd-md pre { margin-bottom: 0; padding: 10px 12px; border-radius: 10px; background: var(--code-bg); color: var(--code-text); font: 12px/1.55 var(--vd-mono); overflow-x: auto; white-space: pre; }
.vd-md pre code { background: none; padding: 0; font-size: inherit; }

/* ---------- support ---------- */
.vd-sup-launch { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 28px -12px rgba(16,24,40,.55), 0 2px 6px rgba(16,24,40,.14); transition: transform .3s var(--vd-ease), background-color .2s, opacity .2s; }
.vd-sup-launch:hover { background: var(--brand-hover); transform: scale(1.05); }
.vd-sup-launch:active { transform: scale(.96); }
.vd-sup-launch:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 3px; border-radius: 50%; }
.vd-sup-launch.open { opacity: 0; pointer-events: none; transform: scale(.85); }
.vd-chat-g { width: 28px; height: 28px; overflow: visible; }
.vd-cg-b { fill: #fff; }
.vd-cg-d { fill: var(--brand); transform-box: fill-box; transform-origin: center; }
.vd-sup-launch:hover .vd-cg-d { fill: var(--brand-hover); animation: vdCg .9s ease-in-out; }
.vd-sup-launch:hover .vd-cg-d:nth-of-type(2) { animation-delay: .12s; } .vd-sup-launch:hover .vd-cg-d:nth-of-type(3) { animation-delay: .24s; }
@keyframes vdCg { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-2.2px); } }
.vd-sup { position: fixed; right: 22px; bottom: 22px; z-index: 81; width: 400px; height: min(640px, calc(100vh - 44px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--pop); overflow: hidden; transform-origin: bottom right; animation: vdSupIn .4s var(--vd-spring); }
@keyframes vdSupIn { from { opacity: 0; transform: scale(.92) translateY(10px); } }
.vd-sup-h { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); }
.vd-sup-h > .vd-btn:first-child { margin-left: -6px; }
.vd-sup-av { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.vd-sup-av .vd-chat-g { width: 22px; height: 22px; }
.vd-sup-title { flex: 1; min-width: 0; }
.vd-sup-title b { display: block; font-size: 14.5px; font-weight: 600; }
.vd-sup-title small { display: block; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-sup-body { flex: 1; overflow-y: auto; padding: 16px; overscroll-behavior: contain; scrollbar-width: thin; }
.vd-sup-foot { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.vd-sup-foot:empty { display: none; }
.vd-sup-msgs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vd-sup-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.vd-sup-msg.me { align-self: flex-end; align-items: flex-end; }
.vd-sup-bubble { padding: 9px 13px; border-radius: 14px; background: var(--bg-2); font-size: 14px; line-height: 1.5; min-width: 0; max-width: 100%; }
.vd-sup-msg.me .vd-sup-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.vd-sup-msg.me .vd-md code { background: rgba(255,255,255,.18); }
.vd-sup-msg.ai .vd-sup-bubble, .vd-sup-msg.human .vd-sup-bubble { border-bottom-left-radius: 4px; }
.vd-sup-msg.human .vd-sup-bubble { background: var(--bg); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.vd-sup-at { font-size: 11px; color: var(--text-3); margin-top: 3px; padding: 0 4px; }
.vd-sup-from { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
.vd-sup-team { width: 18px; height: 18px; border-radius: 5px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.vd-sup-note { align-self: center; font-size: 12.5px; color: var(--text-3); text-align: center; max-width: 92%; padding: 2px 8px; line-height: 1.45; }
.vd-dots { display: inline-flex; gap: 4px; padding: 5px 0; }
.vd-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: vdDot 1.2s ease-in-out infinite; }
.vd-dots i:nth-child(2) { animation-delay: .15s; } .vd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vdDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.vd-sup-slow { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.vd-sup-intro { text-align: center; padding: 30px 12px; }
.vd-sup-intro-ic { width: 50px; height: 50px; border-radius: 14px; background: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.vd-sup-intro b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.vd-sup-intro p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }
.vd-sup-form { display: grid; gap: 6px; }
.vd-sup-in { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line-2); border-radius: 14px; padding: 5px 5px 5px 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.vd-sup-in:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.vd-sup-ta { flex: 1; min-width: 0; border: 0; outline: none; resize: none; background: transparent; font: 14.5px/1.45 var(--vd-font); color: var(--text); padding: 7px 0; max-height: 140px; }
.vd-sup-ta::placeholder { color: var(--text-3); }
.vd-sup-send { width: 36px !important; height: 36px; border-radius: 10px; }
.vd-sup-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); min-height: 20px; padding: 0 2px; }
.vd-sup-count { font-variant-numeric: tabular-nums; } .vd-sup-count.over { color: var(--red); font-weight: 600; }
.vd-sup-person { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--brand-text); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.vd-sup-person:hover { text-decoration: underline; text-underline-offset: 3px; }
.vd-sup-person .vd-i { width: 14px; height: 14px; }
.vd-sup-e { font-size: 13px; color: var(--red); line-height: 1.4; }
.vd-sup-list { display: grid; gap: 10px; }
.vd-sup-list h4 { font: 600 11px var(--vd-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: 10px; }
.vd-sup-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vd-sup-conv { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: inherit; display: grid; gap: 3px; transition: background-color .15s, border-color .15s; }
.vd-sup-conv:hover { background: var(--bg-2); border-color: var(--line-2); }
.vd-sup-conv-t { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.vd-sup-conv-t b { font-weight: 600; }
.vd-sup-conv-t time { font-size: 12px; color: var(--text-3); }
.vd-sup-conv p { font-size: 13px; color: var(--text-2); }
.vd-sup-ask { display: grid; gap: 8px; }
.vd-sup-ask b { font-size: 14px; font-weight: 600; }
.vd-sup-ask p { font-size: 13px; color: var(--text-2); }
.vd-sup-ask .vd-sup-ta { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; }
.vd-sup-ask .vd-sup-ta:focus { border-color: var(--brand); box-shadow: var(--ring); }
.vd-sup-closed { display: flex; gap: 10px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.vd-sup-err, .vd-sup-loading { display: grid; place-items: center; gap: 10px; padding: 40px 10px; text-align: center; color: var(--text-2); font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .vd-cols, .vd-over, .vd-adm { grid-template-columns: minmax(0, 1fr); }
  .vd-addmon-grid { grid-template-columns: auto 110px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .vd-charts { grid-template-columns: minmax(0, 1fr); }
  .vd-hero-bot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd-hero-bot > div:nth-child(2) { border-right: 0; }
  .vd-hero-bot > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vd-set { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 760px) {
  .vd-top-in { flex-wrap: wrap; height: auto; padding: 0 14px; gap: 0; }
  .vd-brand { height: 54px; }
  .vd-top-r { height: 54px; }
  .vd-tabs { --vd-tabs-h: 46px; order: 3; width: calc(100% + 28px); margin: 0 -14px; padding: 0 10px; border-top: 1px solid var(--line); }
  .vd-main { padding: 20px 16px 110px; }
  .vd-ph h1 { font-size: 26px; }
  .vd-ph .vd-btn { width: 100%; }
  .vd-sgrid { grid-template-columns: minmax(0, 1fr); }
  .vd-scard.add { min-height: 150px; }
  .vd-first { padding: 34px 20px 30px; }
  .vd-first-name { font-size: 15px; }
  .vd-add-card { padding: 22px 18px; border-radius: 18px; }
  .vd-add-h h1 { font-size: 24px; }
  .vd-mono-h { font-size: 19px !important; }
  .vd-hero-top { padding: 18px 18px 16px; }
  .vd-hero h1 { font-size: 24px; }
  .vd-hero-host { margin-left: 0; }
  .vd-hero-bot > div { padding: 11px 18px 12px; }
  .vd-pending { padding: 18px; }
  .vd-kv { grid-template-columns: 116px minmax(0, 1fr); padding: 2px 14px 4px; font-size: 13.5px; }
  .vd-inc { padding: 14px; }
  .vd-inc-sum, .vd-inc-ev, .vd-inc-f { margin-left: 0; }
  .vd-inc-ev { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .vd-inc-ev dd + dt { margin-top: 6px; }
  .vd-inc-when { display: none; }
  .vd-mon-main { flex-wrap: wrap; }
  .vd-mon-main > .vd-pill { min-width: 0; order: 1; }
  .vd-mon-main > .vd-grow { order: 3; flex-basis: 100%; }
  .vd-mon-acts { order: 2; margin-left: auto; }
  .vd-mon-when { margin-left: 0; }
  .vd-addmon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vd-set { padding: 18px; }
  .vd-set-form { grid-template-columns: minmax(0, 1fr); }
  .vd-set-form > .vd-btn { justify-self: start; }
  .vd-chan { padding: 14px; flex-wrap: wrap; }
  .vd-chan-acts { margin-left: 46px; }
  .vd-key { flex-wrap: wrap; padding: 14px; }
  .vd-eps li { padding: 6px 14px; grid-template-columns: 56px minmax(0, 1fr); }
  .vd-eps li .vd-scope { grid-column: 2; justify-self: start; }
  .vd-signin-card { padding: 24px 20px; }
  .vd-dialog-f .vd-btn { flex: 1; }
}
@media (max-width: 640px) {
  .vd-sup { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; animation-name: vdSupInM; }
  @keyframes vdSupInM { from { opacity: 0; transform: translateY(24px); } }
  .vd-sup-launch { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  body.vd-sup-open { overflow: hidden; }
  .vd-sup-msg { max-width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .vd-spin, .vd-spin circle, .vd-dots i, .skel { animation-iteration-count: infinite !important; animation-duration: 1.4s !important; }
}
/* admin: early access */
.vd-adm-bar { margin-bottom: 14px; }
.vd-acc-form { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.vd-acc-form > .vd-btn { height: 42px; }
.vd-acc-form > .vd-form-e { grid-column: 1 / -1; }
.vd-acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vd-acc li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.vd-acc li:last-child { border-bottom: 0; }
.vd-acc li b { font-weight: 600; font-size: 14px; }
.vd-acc-m { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.vd-inv-out:not(:empty) { margin-top: 16px; }
.vd-inv-new { display: grid; gap: 10px; }
@media (max-width: 760px) { .vd-acc-form { grid-template-columns: minmax(0, 1fr); } .vd-acc-form > .vd-btn { justify-self: start; } .vd-acc li { padding: 12px 14px; } }
