/* ==========================================================================
   VALORIOM design system — visual language inspired by Frappe CRM:
   gray sidebar, white canvas, black primary buttons, borderless gray inputs,
   ring-dot status indicators, Inter + Lucide icons. Built on Bootstrap 5
   (grid, utilities, dropdowns) — component classes use the `vl-` prefix.
   ========================================================================== */

@font-face {
  font-family: "InterVar";
  src: url("../vendor/inter/Inter.var.00a2276243e3.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gray-50: #f8f8f8;
  --gray-100: #f3f3f3;
  --gray-200: #ededed;
  --gray-300: #e2e2e2;
  --gray-400: #c7c7c7;
  --gray-500: #999999;
  --gray-600: #7c7c7c;
  --gray-700: #525252;
  --gray-800: #383838;
  --gray-900: #171717;

  --bg: #ffffff;            /* canvas */
  --on-solid: #ffffff;      /* text on solid (black) buttons and toasts */
  --mix-ink: #000000;       /* used to darken indicator text */
  --ink: var(--gray-800);
  --ink-strong: var(--gray-900);
  --ink-muted: var(--gray-600);
  --line: var(--gray-200);

  --c-gray: #999999;
  --c-blue: #2490ef;
  --c-green: #30a66d;
  --c-orange: #f98b3f;
  --c-red: #e03636;
  --c-purple: #8b5cf6;
  --c-teal: #14b8a6;
  --c-pink: #e34aa6;

  /* Chart series (validated for colour blindness on the light and dark canvas). */
  --viz-1: #2490ef;
  --viz-2: #e06c1f;

  --brand-from: #f55ea5;
  --brand-to: #b84ff4;

  --sidebar-w: 220px;
  --sidebar-w-collapsed: 52px;
  --header-h: 48px;
  --panel-w: 400px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);

  --bs-body-font-family: "InterVar", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-font-size: 14px;
  --bs-body-color: var(--ink);
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 23, 23, 23;
  --bs-link-hover-color-rgb: 56, 56, 56;
}

html, body { height: 100%; }
body {
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
a { text-decoration: none; }

.vl-icon { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.vl-icon.sm { width: 14px; height: 14px; }
.vl-icon.lg { width: 20px; height: 20px; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.vl-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 1030;
  display: flex; flex-direction: column; background: var(--gray-50);
  border-right: 1px solid var(--line); transition: width 0.2s ease, transform 0.2s ease;
}
.vl-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column;
  transition: margin-left 0.2s ease; }
html.sidebar-collapsed .vl-sidebar { width: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .vl-main { margin-left: var(--sidebar-w-collapsed); }
html.sidebar-collapsed .vl-sidebar .sb-label,
html.sidebar-collapsed .vl-sidebar .sb-group > summary,
html.sidebar-collapsed .vl-sidebar .sb-site,
html.sidebar-collapsed .vl-sidebar .sb-org-text,
html.sidebar-collapsed .vl-sidebar .sb-org > .vl-icon { display: none; }
html.sidebar-collapsed .vl-sidebar .sb-link,
html.sidebar-collapsed .vl-sidebar .sb-org { justify-content: center; }

/* Org switcher */
.sb-top { padding: 8px; }
.sb-org { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px; border: 0;
  border-radius: var(--radius); background: transparent; text-align: left; color: var(--ink-strong); }
.sb-org:hover, .sb-org[aria-expanded="true"] { background: var(--gray-200); }
.sb-org-text { min-width: 0; }
.sb-logo { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to)); color: #fff;
  font-weight: 700; font-size: 15px; }
.sb-org-name { font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-org-user { font-size: 12px; color: var(--ink-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-org > .vl-icon { margin-left: auto; color: var(--gray-600); }
.sb-site { padding: 0 8px 4px; }
.sb-site select { width: 100%; }

/* Nav */
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 8px; }
.sb-link { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px; margin-bottom: 2px;
  border-radius: 6px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.sb-link .vl-icon { color: var(--gray-700); }
.sb-link:hover { background: var(--gray-100); color: var(--ink-strong); }
.sb-link.active { background: var(--bg); box-shadow: var(--shadow-sm); color: var(--ink-strong); }
.sb-link.disabled { color: var(--gray-500); pointer-events: none; }
.sb-link.disabled .vl-icon { color: var(--gray-400); }
.sb-soon { margin-left: auto; font-size: 11px; color: var(--gray-500); }
.sb-group { margin-top: 12px; }
.sb-group > summary { list-style: none; display: flex; align-items: center; gap: 4px; height: 26px;
  padding: 0 4px; font-size: 13px; color: var(--ink-muted); cursor: pointer; user-select: none; }
.sb-group > summary::-webkit-details-marker { display: none; }
.sb-group > summary .vl-icon { transition: transform 0.15s; }
.sb-group:not([open]) > summary .vl-icon { transform: rotate(-90deg); }
.sb-bottom { padding: 8px; border-top: 1px solid var(--line); }
.sb-bottom .sb-link { color: var(--ink-muted); width: 100%; border: 0; background: transparent; }

/* Header bar */
.vl-header { position: sticky; top: 0; z-index: 1020; height: var(--header-h); display: flex; align-items: center;
  gap: 12px; padding: 0 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.vl-crumbs { display: flex; align-items: center; gap: 6px; font-size: 18px; min-width: 0; color: var(--ink-strong); }
.vl-crumbs a { color: var(--gray-600); white-space: nowrap; }
.vl-crumbs a:hover { color: var(--ink); }
.vl-crumbs .sep { color: var(--gray-400); }
.vl-crumbs .current { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vl-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.vl-menu-btn { display: none !important; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.vl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--radius); border: 1px solid transparent; font-size: 14px; line-height: 1;
  white-space: nowrap; cursor: pointer; transition: background 0.12s; color: var(--ink); background: var(--gray-100); }
.vl-btn:hover { background: var(--gray-200); color: var(--ink-strong); }
.vl-btn.solid { background: var(--gray-900); color: var(--on-solid); }
.vl-btn.solid:hover { background: var(--gray-800); color: var(--on-solid); }
.vl-btn.ghost { background: transparent; }
.vl-btn.ghost:hover { background: var(--gray-100); }
.vl-btn.outline { background: var(--bg); border-color: var(--gray-300); }
.vl-btn.outline:hover { background: var(--gray-50); }
.vl-btn.danger { color: var(--c-red); }
.vl-btn.icon { width: 28px; padding: 0; }
.vl-btn.lg { height: 36px; padding: 0 14px; }

/* ── Form controls (also restyles Bootstrap .form-control/.form-select) ─ */
.vl-input, .form-control, .form-select {
  height: 28px; padding: 0 8px; font-size: 14px; color: var(--ink-strong); background-color: var(--gray-100);
  border: 1px solid var(--gray-100); border-radius: 6px; box-shadow: none; transition: background 0.12s, border 0.12s;
}
.form-select { padding-right: 28px; background-position: right 8px center; background-size: 12px 10px; }
textarea.form-control { height: auto; padding: 6px 8px; }
.form-control[type="file"] { padding: 3px 8px; }
.vl-input:hover, .form-control:hover, .form-select:hover { background-color: var(--gray-200); border-color: var(--gray-200); }
.vl-input:focus, .form-control:focus, .form-select:focus { background-color: var(--bg); border-color: var(--gray-500);
  box-shadow: 0 0 0 2px var(--gray-300); outline: 0; }
.form-control::placeholder { color: var(--gray-500); }
.form-control.is-invalid, .form-select.is-invalid { border-color: var(--c-red); background-image: none; padding-right: 8px; }
.form-check-input { width: 16px; height: 16px; border-color: var(--gray-400); }
.form-check-input:checked { background-color: var(--gray-900); border-color: var(--gray-900); }
.form-switch .form-check-input { width: 28px; margin: 0; flex-shrink: 0; }
.vl-check { display: flex; align-items: center; gap: 8px; min-height: 28px; margin: 0; padding: 0; }
.vl-check-row .vl-help { margin-left: 36px; }
.vl-check .form-check-label { color: var(--ink-strong); }
.form-check-input:focus { box-shadow: 0 0 0 2px var(--gray-300); border-color: var(--gray-500); }
.vl-label { display: block; font-size: 12px; color: var(--ink-muted); margin-bottom: 6px; }
.vl-label .req { color: var(--c-red); }
.vl-help { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.vl-error { font-size: 12px; color: var(--c-red); margin-top: 4px; }
.vl-form-error { padding: 8px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--c-red) 12%, var(--bg)); color: color-mix(in srgb, var(--c-red) 75%, var(--mix-ink)); margin-bottom: 16px; }

/* ── Indicators (status) ───────────────────────────────────────────────── */
.vl-ind { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vl-ind::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--ind, var(--c-gray)); flex-shrink: 0; }
.ind-gray { --ind: var(--c-gray); } .ind-blue { --ind: var(--c-blue); } .ind-green { --ind: var(--c-green); }
.ind-orange { --ind: var(--c-orange); } .ind-red { --ind: var(--c-red); } .ind-purple { --ind: var(--c-purple); }
.ind-teal { --ind: var(--c-teal); } .ind-pink { --ind: var(--c-pink); }
.vl-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius);
  font-size: 14px; border: 0; background: color-mix(in srgb, var(--ind) 12%, var(--bg)); color: color-mix(in srgb, var(--ind) 70%, var(--mix-ink)); }
.vl-pill:hover { background: color-mix(in srgb, var(--ind) 20%, var(--bg)); }
.vl-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 12px;
  background: var(--gray-100); color: var(--ink-muted); }

/* ── List view ─────────────────────────────────────────────────────────── */
.vl-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px; }
.vl-toolbar .vl-search { width: 220px; }
.vl-toolbar .form-select { width: auto; max-width: 200px; }
.vl-toolbar .spacer { flex: 1; }
.vl-list-wrap { padding: 0 20px; overflow-x: auto; }
.vl-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.vl-table thead th { height: 32px; padding: 0 10px; font-weight: 400; color: var(--ink-muted); background: var(--gray-100);
  white-space: nowrap; text-align: left; }
.vl-table thead th:first-child { border-radius: 6px 0 0 6px; }
.vl-table thead th:last-child { border-radius: 0 6px 6px 0; }
.vl-table tbody td { height: 40px; padding: 0 10px; border-bottom: 1px solid var(--gray-100); color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.vl-table tbody tr[data-href] { cursor: pointer; }
.vl-table tbody tr[data-href]:hover td { background: var(--gray-50); }
.vl-table .strong { color: var(--ink-strong); }
.vl-table .muted { color: var(--ink-muted); }
.vl-table .actions { text-align: right; width: 1%; }
.vl-empty { padding: 56px 0; text-align: center; color: var(--ink-muted); white-space: normal !important; }
.vl-empty .vl-icon { width: 28px; height: 28px; color: var(--gray-400); margin-bottom: 8px; display: block; margin-inline: auto; }
.vl-avatar { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gray-100);
  color: var(--gray-700); font-size: 11px; font-weight: 500; margin-right: 8px; flex-shrink: 0; vertical-align: middle; }
.vl-avatar.lg { width: 56px; height: 56px; border-radius: 12px; font-size: 22px; margin: 0; }
.vl-avatar.lg .vl-icon { width: 24px; height: 24px; }
.vl-list-footer { display: flex; align-items: center; gap: 12px; padding: 10px 20px; margin-top: auto; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-muted); }
.vl-seg { display: inline-flex; padding: 2px; border-radius: var(--radius); background: var(--gray-100); }
.vl-seg a { white-space: nowrap; padding: 3px 10px; border-radius: 6px; color: var(--ink); font-size: 13px; }
.vl-seg a.active { background: var(--bg); box-shadow: var(--shadow-sm); color: var(--ink-strong); }

/* ── Record (detail) view ──────────────────────────────────────────────── */
.vl-record { display: flex; flex: 1; min-height: calc(100vh - var(--header-h)); }
.vl-record-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vl-record-panel { width: var(--panel-w); flex-shrink: 0; border-left: 1px solid var(--line); }
.vl-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.vl-tabs::-webkit-scrollbar { display: none; }
.vl-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 8px; border: 0; background: none;
  color: var(--ink-muted); font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.vl-tabs button:hover { color: var(--ink-strong); }
.vl-tabs button.active { color: var(--ink-strong); box-shadow: inset 0 -1px 0 var(--gray-900); }
.vl-tabs .vl-badge { height: 18px; font-size: 11px; }
.vl-tab-body { padding: 24px 40px; }
.vl-tab-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.vl-section-title { font-size: 20px; font-weight: 600; color: var(--ink-strong); margin: 0; }
.vl-panel-head { height: var(--header-h); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 600; color: var(--ink-strong); }
.vl-profile { display: flex; gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.vl-profile-name { font-size: 20px; font-weight: 600; color: var(--ink-strong); line-height: 1.25; margin-bottom: 8px; }
.vl-profile-actions { display: flex; gap: 6px; }
.vl-profile-actions form { margin: 0; }
.vl-panel-section { border-bottom: 1px solid var(--line); padding: 10px 20px 14px; }
.vl-panel-section > summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 32px; cursor: pointer;
  font-weight: 600; color: var(--ink-strong); }
.vl-panel-section > summary::-webkit-details-marker { display: none; }
.vl-panel-section > summary .vl-icon { transition: transform 0.15s; color: var(--ink-muted); }
.vl-panel-section:not([open]) > summary .vl-icon { transform: rotate(-90deg); }
.vl-field { display: flex; align-items: baseline; gap: 12px; min-height: 34px; padding: 6px 0 6px 4px; font-size: 14px; }
.vl-field-label { width: 40%; flex-shrink: 0; color: var(--ink-muted); }
.vl-field-value { flex: 1; min-width: 0; color: var(--ink-strong); overflow-wrap: anywhere; }
.vl-field-value.empty { color: var(--gray-400); }

/* Activity timeline */
.vl-timeline { list-style: none; padding: 0; margin: 16px 0 0; position: relative; }
.vl-timeline::before { content: ""; position: absolute; left: 13px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.vl-timeline li { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; }
.vl-tl-icon { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-muted);
  position: relative; z-index: 1; flex-shrink: 0; }
.vl-tl-body { flex: 1; padding-top: 4px; color: var(--ink-muted); }
.vl-tl-body strong { font-weight: 500; color: var(--ink-strong); }
.vl-tl-body .vl-ind { color: var(--ink-strong); }
.vl-tl-time { padding-top: 4px; color: var(--ink-muted); font-size: 13px; white-space: nowrap; }
.vl-tl-note { margin-top: 6px; padding: 8px 10px; border-radius: var(--radius); background: var(--gray-50); color: var(--ink); }

.vl-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-radius: var(--radius);
  background: var(--gray-50); font-size: 14px; margin: 16px 0 24px; }
.vl-path a { color: var(--ink-muted); }
.vl-path a:hover { color: var(--ink-strong); }
.vl-path .vl-icon { color: var(--gray-400); }
.vl-subtable { margin-top: 8px; }
.vl-subtable td { max-width: none; }

/* ── Dropdown menus (Bootstrap) ────────────────────────────────────────── */
.dropdown-menu { --bs-dropdown-font-size: 14px; --bs-dropdown-border-color: transparent; --bs-dropdown-border-radius: 10px;
  --bs-dropdown-link-active-bg: var(--gray-100); --bs-dropdown-link-active-color: var(--ink-strong);
  --bs-dropdown-link-hover-bg: var(--gray-100); --bs-dropdown-link-color: var(--ink);
  padding: 6px; box-shadow: var(--shadow-lg); min-width: 200px; }
.dropdown-item { display: flex; align-items: center; gap: 8px; border-radius: 6px; padding: 6px 8px; }
.dropdown-item .vl-icon { color: var(--gray-700); }
.dropdown-item .check { margin-left: auto; }
.theme-check { visibility: hidden; }
html[data-theme-pref="light"] [data-theme-set="light"] .theme-check,
html[data-theme-pref="dark"] [data-theme-set="dark"] .theme-check,
html[data-theme-pref="system"] [data-theme-set="system"] .theme-check { visibility: visible; }
.dropdown-header { font-size: 12px; color: var(--ink-muted); padding: 6px 8px 4px; }
.dropdown-menu form { margin: 0; }
.dropdown-divider { margin: 4px 0; border-color: var(--line); }

/* ── Cards, settings, forms pages ──────────────────────────────────────── */
.vl-page { padding: 20px; }
.vl-card { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden; }
.vl-kpi { display: block; padding: 16px; color: var(--ink); }
.vl-kpi:hover { background: var(--gray-50); color: var(--ink); }
.vl-kpi-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.vl-kpi-value { font-size: 24px; font-weight: 600; color: var(--ink-strong); margin-top: 6px; }
.vl-onboarding { max-width: 640px; }
.vl-onboarding h2 { display: flex; align-items: center; gap: 8px; }
.vl-onboarding ul { list-style: none; margin: 0; padding: 6px 16px 10px; }
.vl-onboarding li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.vl-onboarding li + li { border-top: 1px solid var(--gray-100); }
.vl-onboarding li > .vl-icon { flex-shrink: 0; margin-top: 2px; color: var(--gray-400); }
.vl-onboarding li.done > .vl-icon { color: var(--c-green); }
.vl-onboarding li > span { display: flex; flex-direction: column; }
.vl-onboarding a { color: var(--ink-strong); font-weight: 500; text-decoration: none; }
.vl-onboarding a:hover { text-decoration: underline; text-underline-offset: 3px; }
.vl-onboarding li.done a { color: var(--ink-muted); font-weight: 400; text-decoration: line-through; }
.vl-onboarding .muted { color: var(--ink-muted); font-size: 13px; }
.vl-form { max-width: 820px; padding: 24px 20px 40px; }
.vl-form-section + .vl-form-section { margin-top: 28px; }
.vl-form-section h2 { font-size: 16px; font-weight: 600; color: var(--ink-strong); margin-bottom: 14px; }
.vl-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.vl-settings { display: flex; flex: 1; min-height: calc(100vh - var(--header-h)); }
.vl-settings-nav { width: 220px; flex-shrink: 0; padding: 12px 8px; border-right: 1px solid var(--line); }
.vl-settings-nav h6 { font-size: 12px; font-weight: 500; color: var(--ink-muted); padding: 4px 8px; margin: 4px 0; }
.vl-settings-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vl-settings-intro { padding: 16px 20px 0; color: var(--ink-muted); max-width: 760px; margin: 0; }
.vl-subtitle { font-size: 15px; font-weight: 600; color: var(--ink-strong); margin: 8px 0 4px; }
.vl-roles { max-width: 820px; padding: 0 20px 40px; margin: -16px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13px; }
.vl-roles dt { font-weight: 500; color: var(--ink-strong); }
.vl-roles dd { margin: 0; color: var(--ink-muted); }
.vl-group-row td { background: var(--gray-50); color: var(--ink-muted) !important; font-size: 13px; height: 32px !important; }
.vl-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--ink-strong);
  background: var(--gray-100); border-radius: 4px; padding: 1px 5px; }

/* Toasts */
.vl-alerts { position: fixed; right: 20px; bottom: 20px; z-index: 1080; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.vl-toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--gray-900);
  color: var(--on-solid); box-shadow: var(--shadow-lg); font-size: 14px; animation: vl-in 0.2s ease; }
.vl-toast.error { background: var(--c-red); color: #fff; }
.vl-toast button { margin-left: auto; border: 0; background: none; color: inherit; opacity: 0.7; padding: 0; }
@keyframes vl-in { from { transform: translateY(8px); opacity: 0; } }

/* Auth */
.vl-auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--bg); }
.vl-auth-box { width: 100%; max-width: 360px; }
.vl-auth-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; text-align: center; }
.vl-auth-brand .sb-logo { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.vl-auth-brand h1 { font-size: 20px; font-weight: 600; color: var(--ink-strong); margin: 0; }
.vl-auth-brand p { color: var(--ink-muted); margin: 0; }
.vl-auth .form-control { height: 32px; }
.vl-auth-alt { text-align: center; color: var(--ink-muted); margin-top: 20px; }
.vl-auth-alt a { color: var(--ink-strong); }
.vl-auth-lead { color: var(--ink-muted); text-align: center; margin: -12px 0 20px; }
.vl-auth-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.vl-auth-card .muted { color: var(--ink-muted); font-size: 13px; }


/* ── Dark mode ─────────────────────────────────────────────────────────────
   The gray ramp is inverted, so every rule written with gray tokens adapts.
   Theme is set on <html data-theme="dark|light"> by a tiny inline script
   (stored per browser, defaults to the OS preference). */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414;
  --on-solid: #141414;
  --mix-ink: #ffffff;
  --gray-50: #1b1b1b;
  --gray-100: #242424;
  --gray-200: #2e2e2e;
  --gray-300: #3a3a3a;
  --gray-400: #4d4d4d;
  --gray-500: #6e6e6e;
  --gray-600: #9b9b9b;
  --gray-700: #b9b9b9;
  --gray-800: #dedede;
  --gray-900: #f5f5f5;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --bs-body-bg: var(--bg);
  --bs-link-color-rgb: 245, 245, 245;
  --bs-link-hover-color-rgb: 222, 222, 222;
}
html[data-theme="dark"] .form-check-input { background-color: var(--gray-100); }
html[data-theme="dark"] .form-check-input:checked { background-color: var(--gray-500); border-color: var(--gray-500); }
html[data-theme="dark"] .dropdown-menu { --bs-dropdown-bg: var(--gray-50); }
html[data-theme="dark"] .sb-link.active { background: var(--gray-200); }
html[data-theme="dark"] .vl-seg a.active { background: var(--gray-300); }
html[data-theme="dark"] .vl-tl-icon { background: var(--bg); }

/* ── Reports (charts are plain HTML: bars sized in %, hover tip from data-tip) ── */
.vl-indicators { display: grid; grid-template-columns: repeat(4, 1fr); }
.vl-indicators > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; font-size: 12px; }
.vl-indicators > div + div { border-left: 1px solid var(--line); }
.vl-indicators strong { font-size: 20px; font-weight: 600; color: var(--ink-strong); }
@media (max-width: 767.98px) {
  .vl-indicators { grid-template-columns: 1fr 1fr; }
  .vl-indicators > div:nth-child(3) { border-left: 0; }
  .vl-indicators > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.vl-kpi-sub { margin-top: 2px; font-size: 12px; color: var(--ink-muted); }
.vl-chart { padding: 12px 16px 16px; }
.vl-legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-muted); margin-bottom: 8px; }
.vl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.vl-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-created { background: var(--viz-1); }
.sw-done { background: var(--viz-2); }
.vl-cols { position: relative; display: flex; align-items: stretch; gap: 2px; height: 200px; padding: 0 0 22px 28px; }
.vl-cols-grid { position: absolute; inset: 0 0 22px 28px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.vl-cols-grid span { border-top: 1px solid var(--gray-200); position: relative; }
.vl-cols-grid span[data-v]::before { content: attr(data-v); position: absolute; left: -28px; top: -8px; width: 22px;
  text-align: right; font-size: 11px; color: var(--ink-muted); }
.vl-col { position: relative; flex: 1; display: flex; flex-direction: column; border-radius: 6px; }
.vl-col:hover { background: var(--gray-50); }
.vl-col-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.vl-col-bars .bar { width: min(14px, 35%); min-height: 0; border-radius: 4px 4px 0 0; position: relative; z-index: 1; }
.vl-col-x { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; z-index: 10; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  width: max-content; max-width: 240px; padding: 6px 8px; border-radius: 6px; background: var(--gray-900); color: var(--on-solid);
  font-size: 12px; line-height: 1.3; white-space: normal; box-shadow: var(--shadow-lg); pointer-events: none; }
.vl-col[data-tip]:hover::after { bottom: auto; top: 0; }
.vl-col:nth-child(-n+4)[data-tip]:hover::after { left: 0; transform: none; }
.vl-col:nth-last-child(-n+3)[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.vl-chart-table { margin-top: 28px; }
.vl-chart-table summary { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); cursor: pointer; }
.vl-hbars { list-style: none; margin: 0; padding: 8px 16px 12px; display: grid;
  grid-template-columns: fit-content(60%) minmax(60px, 1fr) auto; column-gap: 12px; }
.vl-hbars li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.vl-hbars li.muted { display: block; padding: 16px 0; color: var(--ink-muted); }
.vl-hbar { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; min-height: 32px;
  color: var(--ink); border-radius: 6px; }
.vl-hbar:hover { background: var(--gray-50); color: var(--ink-strong); }
.vl-hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vl-hbar-track { height: 12px; }
.vl-hbar-fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--viz-1); }
.vl-hbar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.vl-hbar[data-tip]:hover::after { left: auto; right: 0; transform: none; }
.vl-reports .vl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 767.98px) {
  .vl-col:nth-child(odd) .vl-col-x { visibility: hidden; }
  .vl-header-actions .vl-seg a { padding: 3px 6px; font-size: 12px; }
}

/* Shortcut to the technician app (/m/), shown only on phone-sized screens. */
.vl-app-banner { display: none; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); line-height: 1.35; }
.vl-app-banner > span { flex: 1; }
.vl-app-banner .muted { font-size: 13px; color: var(--ink-muted); }

/* ── Responsive ────────────────────────────────────────────────────────── */
.vl-show-sm { display: none; }
@media (max-width: 991.98px) {
  .vl-record { flex-direction: column; }
  .vl-record-panel { width: 100%; border-left: 0; border-bottom: 1px solid var(--line); order: -1; }
  .vl-tab-body { padding: 20px; }
  .vl-settings { flex-direction: column; }
  .vl-settings-nav { width: 100%; display: flex; flex-wrap: wrap; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .vl-settings-nav h6 { display: none; }
}
@media (max-width: 767.98px) {
  .vl-app-banner { display: flex; }
  .vl-sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; box-shadow: var(--shadow-lg); }
  html.sidebar-open .vl-sidebar { transform: none; }
  html.sidebar-collapsed .vl-sidebar .sb-label, html.sidebar-collapsed .vl-sidebar .sb-group > summary,
  html.sidebar-collapsed .vl-sidebar .sb-site, html.sidebar-collapsed .vl-sidebar .sb-org-text { display: revert; }
  .vl-main, html.sidebar-collapsed .vl-main { margin-left: 0; }
  .vl-menu-btn { display: inline-flex !important; }
  .vl-header { padding: 0 12px; gap: 8px; }
  .vl-crumbs { font-size: 16px; }
  .vl-toolbar, .vl-list-wrap { padding-left: 12px; padding-right: 12px; }
  .vl-toolbar .vl-search { width: 100%; }
  .vl-hide-sm { display: none; }
  .vl-show-sm { display: inline; }
}
.min-w-0 { min-width: 0; }

/* Column header filters */
.vl-th { display: inline-flex; align-items: center; gap: 4px; margin: 0 -6px; padding: 2px 6px; border: 0; border-radius: 6px;
  background: transparent; color: inherit; font: inherit; cursor: pointer; }
.vl-th:hover, .vl-th[aria-expanded="true"] { background: var(--gray-200); color: var(--ink-strong); }
.vl-th.active { color: var(--ink-strong); font-weight: 500; }
.vl-th-pop { width: 260px; padding: 12px; }
.vl-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 8px; border-radius: var(--radius);
  background: var(--gray-100); font-size: 13px; color: var(--ink-strong); white-space: nowrap; }
.vl-chip .muted { color: var(--ink-muted); }
.vl-chip a { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: var(--ink-muted); }
.vl-chip a:hover { background: var(--gray-200); color: var(--ink-strong); }
.vl-table thead th { overflow: visible; }
.vl-sort { display: flex; flex-direction: column; gap: 2px; }
.vl-sort a { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; color: var(--ink); }
.vl-sort a:hover { background: var(--gray-100); }
.vl-sort a.active { background: var(--gray-100); color: var(--ink-strong); font-weight: 500; }

/* Work orders */
.text-overdue { color: var(--c-red) !important; }
.vl-composer { display: flex; gap: 8px; align-items: flex-end; margin: 12px 0 8px; }
.vl-composer textarea { flex: 1; }
.vl-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.vl-inline-form .form-control, .vl-inline-form .form-select { width: auto; flex: 1 1 140px; }
.vl-inline-form .form-select[name="level"] { flex: 3 1 280px; }
.vl-failure-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 12px; }
.vl-failure-grid label { display: block; }
.vl-failure-grid .form-select:disabled { opacity: .55; }
@media (max-width: 767.98px) { .vl-failure-grid { grid-template-columns: 1fr; } }
.vl-ftree { list-style: none; margin: 0; padding: 0; }
.vl-ftree .vl-ftree { margin-left: 22px; padding-left: 14px; border-left: 1px solid var(--gray-200); }
.vl-ftree-row { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--gray-100); }
.vl-ftree-row.inactive .vl-ftree-code, .vl-ftree-row.inactive .vl-ftree-desc { color: var(--ink-muted); }
.vl-ftree-level { width: 64px; flex-shrink: 0; font-size: 12px; color: var(--ink-muted); }
.vl-ftree-code { font-weight: 600; color: var(--ink-strong); white-space: nowrap; }
.vl-ftree-desc { flex: 1; min-width: 0; color: var(--ink); }
.vl-ftree-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .12s; }
.vl-ftree-row:hover .vl-ftree-actions, .vl-ftree-row:focus-within .vl-ftree-actions { opacity: 1; }
@media (hover: none) { .vl-ftree-actions { opacity: 1; } }
.vl-ftree-add { margin: 4px 0 8px 0; }
.vl-ftree-add > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 13px; color: var(--ink-muted); padding: 4px 0; }
.vl-ftree-add > summary::-webkit-details-marker { display: none; }
.vl-ftree-add > summary:hover { color: var(--ink-strong); }
.vl-ftree-add .vl-inline-form { margin: 4px 0 8px; }
.vl-inline-form .vl-ftree-code-input { flex: 0 1 160px; }
.vl-subsection-title { font-size: 14px; font-weight: 600; color: var(--ink-strong); margin: 20px 0 6px; }
.vl-dropdown-form { min-width: 260px; }

.vl-tasks { list-style: none; padding: 0; margin: 12px 0 0; }
.vl-task { display: flex; align-items: center; gap: 10px; min-height: 40px; border-bottom: 1px solid var(--gray-100); }
.vl-task form { margin: 0; }
.vl-task-check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--gray-400); background: var(--bg);
  display: grid; place-items: center; padding: 0; color: var(--on-solid); }
.vl-task.done .vl-task-check { background: var(--gray-900); border-color: var(--gray-900); }
.vl-task-text { flex: 1; color: var(--ink-strong); }
.vl-task.done .vl-task-text { color: var(--ink-muted); text-decoration: line-through; }
.vl-task-meta { font-size: 12px; color: var(--ink-muted); }
.sb-link.sb-sub { padding-left: 20px; }
html.sidebar-collapsed .sb-link.sb-sub { padding-left: 8px; }
.vl-card-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.vl-card-head h2 { font-size: 16px; font-weight: 600; color: var(--ink-strong); margin: 0; }
.vl-card .vl-table tbody td:first-child { padding-left: 16px; }
@media (max-width: 1499.98px) { .vl-hide-lg { display: none; } }
.vl-table tbody td.vl-empty { padding: 40px 10px 32px; height: auto; }

/* Bulk selection */
.vl-table .vl-check-cell { width: 36px; padding-right: 0; }
.vl-table thead .vl-check-cell .form-check-input, .vl-table tbody .vl-check-cell .form-check-input { margin: 0; vertical-align: middle; }
.vl-table tbody tr.selected td { background: var(--gray-50); }
.vl-bulkbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 1040; display: flex; align-items: center;
  gap: 8px; padding: 8px 10px 8px 16px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow-lg); }
.vl-bulkbar[hidden] { display: none; }
.vl-bulk-count { color: var(--ink-muted); margin-right: 8px; white-space: nowrap; }
.vl-bulk-count strong { color: var(--ink-strong); }
.vl-bulkbar .dropdown-menu { max-height: 320px; overflow-y: auto; }
.vl-view-row { display: flex; align-items: center; gap: 2px; }
.vl-view-row .dropdown-item { flex: 1; min-width: 0; }
.vl-view-row .dropdown-item span:not(.vl-badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Service requests & QR landing */
.vl-form-narrow { max-width: 560px; }
.vl-form-narrow .form-control, .vl-form-narrow .form-select { height: 36px; }
.vl-form-narrow textarea.form-control { height: auto; }
.vl-asset-banner { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 20px; border-radius: 10px; background: var(--gray-50); }
.vl-asset-banner .vl-avatar.lg { width: 44px; height: 44px; }
.vl-qr-landing { max-width: 420px; margin: 0 auto; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.vl-qr-landing h1 { font-size: 22px; font-weight: 600; color: var(--ink-strong); margin: 16px 0 4px; }
.vl-qr-landing .vl-btn.lg { height: 48px; font-size: 16px; }
.vl-subtitle { font-size: 15px; font-weight: 600; color: var(--ink-strong); margin: 24px 0 10px; }
.vl-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-count { margin-left: auto; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gray-900); color: var(--on-solid);
  font-size: 11px; display: inline-grid; place-items: center; }

/* Map */
.vl-map-layout { display: flex; flex: 1; min-height: calc(100vh - var(--header-h)); }
.vl-map { flex: 1; min-height: 400px; background: var(--gray-100); z-index: 0; }
.vl-map-panel { width: 340px; flex-shrink: 0; border-left: 1px solid var(--line); overflow-y: auto; max-height: calc(100vh - var(--header-h)); }
.vl-map-toggle { display: flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; color: var(--ink-strong); }
.vl-map-toggle .form-check-input { margin: 0; }
.vl-map-unlocated { display: flex; align-items: center; gap: 6px; padding: 6px 4px; border-radius: 6px; color: var(--ink); }
.vl-map-unlocated:hover { background: var(--gray-100); }
.vl-map-unlocated .muted { margin-left: auto; font-size: 12px; color: var(--ink-muted); }
.vl-marker { background: none; border: 0; }
.vl-pin { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--ind, var(--c-gray));
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.vl-map-toggle .vl-pin { width: 14px; height: 14px; border-width: 3px; box-shadow: none; }
.vl-pin.inherited { border-style: dotted; }
.vl-pin-loc { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--gray-900);
  color: var(--on-solid); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }
.vl-map-toggle .vl-pin-loc { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; }
.vl-map-toggle .vl-pin-loc .vl-icon { width: 12px; height: 12px; }
.marker-cluster { background: color-mix(in srgb, var(--gray-900) 25%, transparent); border-radius: 50%; }
.marker-cluster div { width: 30px; height: 30px; margin: 5px; border-radius: 50%; background: var(--gray-900); color: var(--on-solid);
  display: grid; place-items: center; font: 600 12px/1 var(--bs-body-font-family); }
.leaflet-container { font-family: var(--bs-body-font-family); }
html[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.85) contrast(0.9); }
.vl-picker-map { height: 260px; border-radius: 10px; overflow: hidden; z-index: 0; }
@media (max-width: 991.98px) {
  .vl-map-layout { flex-direction: column; }
  .vl-map { min-height: 60vh; }
  .vl-map-panel { width: 100%; border-left: 0; border-top: 1px solid var(--line); max-height: none; }
}

/* Floor plans */
.vl-plan { background: var(--gray-50); }
.vl-plan.armed { cursor: crosshair; }
.vl-plan.editing .leaflet-marker-draggable { cursor: move; }
.vl-plan-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 6px; margin-bottom: 2px; border: 1px solid transparent;
  border-radius: 8px; background: none; text-align: left; color: var(--ink); cursor: pointer; }
.vl-plan-item:hover { background: var(--gray-100); }
.vl-plan-item.armed { background: var(--gray-100); border-color: var(--gray-900); }
.vl-plan-item[draggable="true"] { cursor: grab; }
.vl-plan-item .strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-strong); }
.vl-plan-item .muted { font-size: 12px; color: var(--ink-muted); }
.vl-plan-item .vl-pin { width: 14px; height: 14px; border-width: 3px; box-shadow: none; flex-shrink: 0; }
.vl-plan-item .vl-pin-loc { width: 18px; height: 18px; border-radius: 5px; box-shadow: none; flex-shrink: 0; }
.vl-plan-item .vl-pin-loc .vl-icon { width: 12px; height: 12px; }
.vl-pin-loc.has-plan { background: var(--c-blue); color: #fff; }
.leaflet-tooltip { font-family: var(--bs-body-font-family); font-size: 12px; padding: 2px 6px; border-radius: 6px; }
.vl-plan-preview { display: block; max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--line); background: var(--gray-50); }

/* Related-record links and navigation trail */
.vl-field-link { color: var(--ink-strong); text-decoration: underline; text-decoration-color: var(--gray-300);
  text-underline-offset: 3px; }
.vl-field-link:hover { text-decoration-color: var(--ink-strong); }
.vl-crumbs .vl-back { margin-right: 2px; color: var(--ink); }
.vl-crumbs .vl-trail-item { white-space: nowrap; }

/* Planning */
.vl-steps-list { list-style: decimal; padding-left: 22px; margin: 12px 0 0; }
.vl-steps-list li { padding: 8px 0; border-bottom: 1px solid var(--gray-100); color: var(--ink-strong); }
.vl-steps-list li > span { display: inline-block; min-width: 0; }
.vl-steps-list li form { float: right; margin: -4px 0 0; }
.vl-steps-list li.vl-empty { list-style: none; margin-left: -22px; }
.vl-forecast { list-style: none; padding: 0; margin: 12px 0 0; max-width: 520px; }
.vl-forecast li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; }
.vl-forecast li + li { border-top: 1px solid var(--gray-100); border-radius: 0; }
.vl-forecast li.next { background: var(--gray-50); }
.vl-forecast li.overdue .vl-forecast-date { color: var(--c-red); }
.vl-forecast-date { color: var(--ink-strong); font-weight: 500; }


/* ── Legal pages ───────────────────────────────────────────────────────── */
.vl-legal { min-height: 100vh; background: var(--bg); padding: 24px 20px 64px; }
.vl-legal-head { max-width: 760px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 16px; }
.vl-legal-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-strong); text-decoration: none; }
.vl-legal-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; border-bottom: 1px solid var(--gray-200); padding-bottom: 12px; }
.vl-legal-nav a { color: var(--ink-muted); text-decoration: none; }
.vl-legal-nav a:hover, .vl-legal-nav a.active { color: var(--ink-strong); }
.vl-legal-nav a.active { font-weight: 600; }
.vl-legal-doc { max-width: 760px; margin: 0 auto; color: var(--ink); line-height: 1.6; }
.vl-legal-doc h1 { font-size: 24px; font-weight: 600; color: var(--ink-strong); margin-bottom: 4px; }
.vl-legal-doc h2 { font-size: 16px; font-weight: 600; color: var(--ink-strong); margin: 28px 0 8px; }
.vl-legal-doc a { color: var(--ink-strong); }
.vl-legal-date { color: var(--ink-muted); margin-bottom: 24px; }
.vl-legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 13px; }
.vl-legal-table th, .vl-legal-table td { border-bottom: 1px solid var(--gray-200); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.vl-legal-table th { color: var(--ink-muted); font-weight: 500; }
@media (max-width: 600px) { .vl-legal-table { display: block; overflow-x: auto; } }
.vl-legal-todo { background: var(--gray-100); color: var(--ink-strong); padding: 0 4px; border-radius: 4px; }
.vl-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 28px; font-size: 12px; }
.vl-legal-links a { color: var(--ink-muted); text-decoration: none; }
.vl-legal-links a:hover { color: var(--ink-strong); }
.vl-auth-legal { font-size: 12px; color: var(--ink-muted); text-align: center; margin-top: 12px; }
.vl-auth-legal a { color: var(--ink-strong); }
.vl-danger-box { border: 1px solid var(--gray-200); border-radius: 8px; padding: 16px; margin-top: 16px; max-width: 560px; }
