/* ============================================================================
   VELORA DESIGN SYSTEM · v107 "Next Level"
   ----------------------------------------------------------------------------
   Single source of truth for the panel's look. Self-hosted, zero CDN.
   Loaded together with: fonts.css (Inter + Manrope) and tailwind.css
   (precompiled utilities — replaces the old cdn.tailwindcss.com runtime).

   Layers in this file:
     [1] Design tokens          [6] Page skins (per-view tints)
     [2] Base & typography      [7] Hunter-Bot modal + Hunter AI dock
     [3] App shell (header/nav) [8] Icon system (vicon) + illustrations
     [4] Core components        [9] Live (SSE) indicator + motion
     [5] Modal hard-reset       [10] Accessibility & reduced motion
                                [11] Dark theme (html[data-theme=dark])

   Every token is documented in docs/DESIGN_SYSTEM.md.
   ========================================================================== */

/* ── [1] Design tokens ────────────────────────────────────────────────────── */
:root{
  /* Surfaces */
  --bg:#f5f1ea;             /* page background (warm cream) */
  --surface:#ffffff;        /* cards, inputs */
  --surface-2:#fbf8f3;      /* soft card background */
  --surface-3:#f0e7dc;      /* deepest warm surface */
  /* Lines */
  --line:#e9dfd1;           /* primary border */
  --line-2:#f1e7da;         /* soft border */
  --line-accent:#dfe3ff;    /* accent-tinted border */
  /* Ink */
  --text:#1d2433;           /* primary text */
  --muted:#6e7685;          /* secondary text */
  --muted-2:#8d95a3;        /* tertiary text / eyebrows */
  /* Brand */
  --accent:#5563ff;         /* primary indigo */
  --accent-up:#7380ff;      /* gradient partner of --accent */
  --accent-2:#f28b50;       /* warm peach accent */
  --accent-soft:#eef0ff;    /* indigo wash */
  --accent-2-soft:#fff8f0;  /* peach wash */
  /* Semantic */
  --ok:#22a35a;             /* success */
  --ok-soft:#f4fbf6;
  --ok-line:#cfe8d5;
  --warn:#b97324;           /* warning text-safe amber */
  --warn-soft:#fff6ea;
  --warn-line:#f3dfc2;
  --bad:#cb3a58;            /* danger */
  --bad-soft:#fdf1f4;
  --bad-line:#f3cdd6;
  /* Effects */
  --shadow:0 20px 60px rgba(33,36,44,.075);
  --shadow-sm:0 8px 20px rgba(33,36,44,.035);
  --shadow-pop:0 22px 54px rgba(33,36,44,.14);
  /* Radii scale (v134: removed --radius-lg/md/sm — zero var() consumers anywhere; the live radii are
     --radius-card/control/pill in components.css. --radius-xl IS used, so it stays.) */
  --radius-xl:30px;
  /* Spacing scale (use multiples; do not invent values) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px;
  /* Type */
  --font-body:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display:Manrope, Inter, system-ui, sans-serif;
}

/* ── [2] Base & typography ───────────────────────────────────────────────── */
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:
    radial-gradient(640px 420px at 8% -10%, rgba(85,99,255,.10), transparent 68%),
    radial-gradient(560px 420px at 100% 0%, rgba(242,139,80,.12), transparent 72%),
    linear-gradient(135deg, #f6f0e8 0%, #fbf7f1 48%, #f2e8dc 100%);
}
.velora-grain{
  position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.16;
  background-image:radial-gradient(rgba(29,36,51,.065) .6px, transparent .7px);
  background-size:18px 18px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,.72), transparent 96%);
}
::selection{background:rgba(85,99,255,.18)}
:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:6px}
*{scrollbar-width:thin; scrollbar-color:#d8ccbb transparent}
*::-webkit-scrollbar{width:9px;height:9px}
*::-webkit-scrollbar-thumb{background:#d8ccbb;border-radius:999px;border:2px solid transparent;background-clip:content-box}
*::-webkit-scrollbar-track{background:transparent}

/* ── [3] App shell ───────────────────────────────────────────────────────── */
.app-shell{min-height:100vh; padding:14px;}
.app-frame{
  min-height:calc(100vh - 28px);
  border:1px solid rgba(233,223,209,.96);
  border-radius:34px;
  background:rgba(255,255,255,.42);
  box-shadow:0 26px 70px rgba(33,36,44,.08);
  backdrop-filter:blur(14px);
  overflow:hidden;
}
.platform-header{
  padding:18px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.90), rgba(251,248,243,.82));
}
.brand-row{display:flex; align-items:center; gap:14px; min-width:0;}
.brand-mark{
  width:52px; height:52px; border-radius:20px;
  display:grid; place-items:center;
  color:white;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:0 16px 34px rgba(85,99,255,.20);
  flex:0 0 auto;
}
.brand-mark .vicon{width:30px;height:30px;vertical-align:0}
.brand-title{font-family:var(--font-display); font-weight:800; letter-spacing:-.045em; color:var(--text);}
.brand-sub{font-size:12px; color:var(--muted); line-height:1.5;}
.brand-title-main{font-size:30px; line-height:1;}
.view-title{font-family:var(--font-display); font-size:28px; font-weight:800; letter-spacing:-.05em; line-height:1.05; color:var(--text);}
.eyebrow{font-size:11px; text-transform:uppercase; letter-spacing:.18em; color:var(--muted-2); font-weight:800;}
.status-dot{width:8px;height:8px;border-radius:999px;background:var(--ok);display:inline-block;box-shadow:0 0 0 6px rgba(34,163,90,.12)}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line); background:#fff; color:var(--muted);
  font-size:12px; font-weight:800; white-space:nowrap;
  max-width:100%;
}
.chip > span, .chip > b{overflow:hidden; text-overflow:ellipsis;}
.chip-strong{color:#26336e;background:var(--accent-soft);border-color:var(--line-accent);}
.chip-ok{color:#14693c;background:var(--ok-soft);border-color:var(--ok-line);}
.chip-warn{color:var(--warn);background:var(--warn-soft);border-color:var(--warn-line);}
.chip-bad{color:#9c2b44;background:var(--bad-soft);border-color:var(--bad-line);}

.quick-action,.secondary-action,.nav-link,.mobile-menu-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border-radius:16px; font-size:13px; font-weight:800; white-space:nowrap;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.quick-action{padding:11px 14px;background:linear-gradient(135deg,var(--accent),var(--accent-up));color:#fff;box-shadow:0 12px 28px rgba(85,99,255,.20)}
.secondary-action,.mobile-menu-btn{padding:11px 14px;background:#fff;border:1px solid var(--line);color:var(--text);box-shadow:0 8px 18px rgba(33,36,44,.035)}
.quick-action:hover,.secondary-action:hover,.nav-link:hover{transform:translateY(-1px)}

.command-strip{
  margin-top:18px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
}
.section-tabs{
  display:flex; gap:10px; overflow:auto; padding:8px;
  border:1px solid var(--line); background:rgba(255,255,255,.72); border-radius:24px;
  box-shadow:0 10px 24px rgba(33,36,44,.035);
}
.nav-group{display:flex; gap:8px; align-items:center; padding-right:10px; margin-right:2px; border-right:1px solid var(--line);}
.nav-group:last-child{border-right:0; padding-right:0; margin-right:0;}
.nav-group-label{
  display:inline-flex; align-items:center; padding:0 8px;
  font-size:10px; letter-spacing:.16em; text-transform:uppercase; font-weight:900; color:var(--muted-2);
}
.nav-link{padding:10px 12px; color:#4b5563; border:1px solid transparent; background:transparent;}
.nav-link .vicon{width:18px;height:18px;color:var(--muted);}
.nav-link.is-active{
  color:#27306c;
  background:linear-gradient(135deg,var(--accent-soft),var(--accent-2-soft));
  border-color:var(--line-accent);
  box-shadow:0 10px 24px rgba(85,99,255,.10);
}
.nav-link.is-active .vicon{color:var(--accent);}
.top-actions{display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}

.workspace-layout{display:grid; grid-template-columns:74px minmax(0,1fr); gap:0;}
.utility-rail{
  padding:18px 12px;
  border-right:1px solid var(--line);
  background:linear-gradient(180deg, rgba(251,248,243,.84), rgba(255,255,255,.52));
}
.rail-stack{position:sticky;top:18px;display:flex;flex-direction:column;align-items:center;gap:10px;}
.rail-btn{
  width:48px;height:48px;border-radius:18px;display:grid;place-items:center;
  border:1px solid var(--line);background:#fff;color:#596171;box-shadow:0 8px 20px rgba(33,36,44,.035);
  transition:transform .14s ease, box-shadow .14s ease;
}
.rail-btn:hover{transform:translateY(-1px)}
.rail-btn .vicon{width:21px;height:21px;vertical-align:0}
.rail-btn.is-active{background:linear-gradient(135deg,var(--accent-soft),var(--accent-2-soft));border-color:var(--line-accent);color:var(--accent);}
.rail-spacer{height:1px;width:34px;background:var(--line);margin:4px 0;}

.content-zone{min-width:0;padding:20px;position:relative;}
.page-heading{display:grid; grid-template-columns:1fr auto; gap:16px; align-items:end; margin-bottom:18px;}
.page-kicker{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:10px;}
.search-shell{
  display:flex; align-items:center; gap:10px; min-width:260px; max-width:420px;
  padding:12px 14px; border-radius:18px; border:1px solid var(--line); background:#fff; color:var(--muted);
  box-shadow:var(--shadow-sm);
}
.search-shell input{background:transparent;outline:none;border:0;width:100%;font-size:14px;color:var(--text);}
.search-shell .vicon{color:#94a3b8}
.main-surface{max-width:1880px; margin:0 auto; min-width:0;}

.velora-tools-menu{position:relative}
.velora-tools-menu summary{list-style:none;cursor:pointer}
.velora-tools-menu summary::-webkit-details-marker{display:none}
.velora-tools-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:80;min-width:220px;padding:10px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.96);box-shadow:var(--shadow-pop);display:grid;gap:6px}
.tool-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;color:#4b5563;font-weight:850;font-size:13px}
.tool-link:hover,.tool-link.is-active{background:linear-gradient(135deg,var(--accent-soft),var(--accent-2-soft));color:#27306c}
.tool-link .vicon{width:18px;height:18px;color:var(--accent)}
.mobile-nav{display:none;}

@media (max-width:1180px){
  .command-strip{grid-template-columns:1fr;}
  .top-actions{justify-content:flex-start;}
  .section-tabs{flex-wrap:wrap; overflow:visible;}
  .nav-group{flex-wrap:wrap;}
}
@media (max-width:900px){
  .app-shell{padding:8px;}
  .app-frame{border-radius:24px;}
  .platform-header{padding:14px;}
  .brand-title-main{font-size:24px;}
  .command-strip{display:none;}
  .mobile-nav{display:block;margin-top:14px;}
  .mobile-nav summary{list-style:none;cursor:pointer;}
  .mobile-nav summary::-webkit-details-marker{display:none;}
  .mobile-panel{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:22px;background:#fff;display:grid;gap:8px;}
  .mobile-panel .nav-link{justify-content:flex-start;}
  .workspace-layout{grid-template-columns:1fr;}
  .utility-rail{display:none;}
  .content-zone{padding:14px;}
  .page-heading{grid-template-columns:1fr;align-items:start;}
  .view-title{font-size:24px;}
  .search-shell{max-width:none;width:100%;}
  .chip{white-space:normal;}
}

/* ── [4] Core components ─────────────────────────────────────────────────── */
.card,.card-soft,.shell-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-xl); box-shadow:0 12px 34px rgba(33,36,44,.055);
}
.card-soft{background:var(--surface-2);border-color:var(--line-2);box-shadow:0 8px 24px rgba(33,36,44,.035)}
.section-label{font-size:11px;text-transform:uppercase;letter-spacing:.18em;color:var(--muted-2);font-weight:900;}

/* Buttons (v107) — use these for new/refit controls */
.v-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 14px;border-radius:16px;font-size:13px;font-weight:800;white-space:nowrap;
  border:1px solid transparent;cursor:pointer;text-decoration:none;
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.v-btn:hover{transform:translateY(-1px)}
.v-btn:active{transform:translateY(0)}
.v-btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}
.v-btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-up));color:#fff;box-shadow:0 12px 28px rgba(85,99,255,.20)}
.v-btn-secondary{background:#fff;border-color:var(--line);color:var(--text);box-shadow:var(--shadow-sm)}
.v-btn-ghost{background:transparent;color:var(--muted);border-color:transparent}
.v-btn-ghost:hover{background:var(--accent-soft);color:#27306c}
.v-btn-ok{background:linear-gradient(135deg,#22a35a,#3dbb72);color:#fff;box-shadow:0 12px 28px rgba(34,163,90,.18)}
.v-btn-danger{background:linear-gradient(135deg,#cb3a58,#e05a76);color:#fff;box-shadow:0 12px 28px rgba(203,58,88,.18)}
.v-btn-sm{padding:8px 11px;border-radius:13px;font-size:12px}

/* Badges — status pills for tables/cards */
.v-badge{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:999px;font-size:11px;font-weight:850;letter-spacing:.02em;
  border:1px solid var(--line);background:#fff;color:var(--muted);white-space:nowrap;
}
.v-badge .vicon{width:13px;height:13px;vertical-align:-2px}
.v-badge-ok{color:#14693c;background:var(--ok-soft);border-color:var(--ok-line)}
.v-badge-warn{color:var(--warn);background:var(--warn-soft);border-color:var(--warn-line)}
.v-badge-bad{color:#9c2b44;background:var(--bad-soft);border-color:var(--bad-line)}
.v-badge-accent{color:#26336e;background:var(--accent-soft);border-color:var(--line-accent)}
.v-badge-peach{color:#9a4f1e;background:var(--accent-2-soft);border-color:#f5d9c2}

/* Inputs */
.v-input,.v-select,.v-textarea{
  width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:var(--text);outline:none;font:inherit;font-size:14px;
  transition:border-color .14s ease, box-shadow .14s ease;
}
.v-input:focus,.v-select:focus,.v-textarea:focus{border-color:#cbd1ff;box-shadow:0 0 0 5px rgba(85,99,255,.09)}
.v-label{font-size:13px;font-weight:800;color:var(--muted);display:block;margin-bottom:8px}

/* Tables */
.v-table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.v-table thead th{
  text-align:left;padding:10px 14px;font-size:10.5px;text-transform:uppercase;letter-spacing:.14em;
  color:var(--muted-2);font-weight:900;border-bottom:1px solid var(--line);background:var(--surface-2);
  position:sticky;top:0;z-index:1;
}
.v-table thead th:first-child{border-top-left-radius:14px}
.v-table thead th:last-child{border-top-right-radius:14px}
.v-table tbody td{padding:12px 14px;border-bottom:1px solid var(--line-2);vertical-align:middle}
.v-table tbody tr:hover td{background:rgba(238,240,255,.34)}
.v-table tbody tr:last-child td{border-bottom:0}

/* Empty states */
.v-empty{display:grid;place-items:center;text-align:center;padding:38px 22px;gap:6px}
.v-empty .villu{width:min(240px,72%);height:auto}
.v-empty-title{font-family:var(--font-display);font-weight:800;letter-spacing:-.03em;font-size:18px;color:var(--text);margin-top:10px}
.v-empty-sub{color:var(--muted);font-size:13px;line-height:1.6;max-width:380px}
.v-empty .v-btn{margin-top:12px}

/* Skeleton loading */
.v-skeleton{display:grid;gap:12px;padding:8px}
.v-skeleton div,.vh-skeleton div{height:14px;border-radius:999px;background:linear-gradient(90deg,#f2eadf,#fff,#f2eadf);background-size:200% 100%;animation:vhLoad 1.1s linear infinite}
.v-skeleton .short,.vh-skeleton .short{width:55%}
.vh-skeleton{display:grid;gap:12px;padding:8px}
@keyframes vhLoad{from{background-position:200% 0}to{background-position:-200% 0}}

/* Flash messages */
.v-flash{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:16px;font-size:13px;font-weight:700;border:1px solid var(--line);background:#fff}
.v-flash-ok{background:var(--ok-soft);border-color:var(--ok-line);color:#14693c}
.v-flash-bad{background:var(--bad-soft);border-color:var(--bad-line);color:#9c2b44}
.v-flash .vicon{flex:none;margin-top:1px}

/* ── [5] Modal hard reset (kept from V7, unchanged behavior) ─────────────── */
#holdViewModal [data-modal-overlay], #bulkModal [data-modal-overlay]{
  background:rgba(29,36,51,.34) !important;
  backdrop-filter:blur(10px) !important;
}
#holdViewModal [data-modal-dialog], #bulkModal .max-w-\[720px\]{
  border-radius:34px !important;
  border:1px solid #eadfd1 !important;
  background:linear-gradient(180deg,#fff,#fcfaf6) !important;
  box-shadow:0 34px 90px rgba(33,36,44,.20) !important;
  overflow:hidden !important;
  overscroll-behavior:contain;
  transform:translateZ(0);
}
#holdViewModal .sticky, #bulkModal .border-b{
  background:linear-gradient(135deg,#fff,#fff8f0) !important;
  border-color:#eadfd1 !important;
}
#holdViewModal #hv-subject{
  font-family:var(--font-display) !important;
  font-size:22px !important;
  font-weight:800 !important;
  letter-spacing:-.04em;
  color:#1d2433 !important;
}
#holdViewModal #hv-body{
  background:#fff !important;
  border:1px solid #eadfd1 !important;
  border-radius:22px !important;
  padding:18px !important;
  color:#1d2433 !important;
}
#holdViewModal .md\:border-l, #holdViewModal .border-t{background:#fbf8f3 !important;border-color:#eadfd1 !important;}
#holdViewModal .rounded-xl.border.bg-white, #bulkModal .bg-gray-50{
  background:#fff !important;
  border-color:#eadfd1 !important;
  border-radius:22px !important;
  box-shadow:0 10px 24px rgba(33,36,44,.04) !important;
}
#holdViewModal #hv-close{background:#fff !important;border:1px solid #eadfd1 !important;border-radius:14px !important;}
#bulkBarFill{background:linear-gradient(90deg,#5563ff,#22a35a) !important;}
#holdViewModal .invoices-modal-main,
#holdViewModal .invoices-modal-side,
#holdViewModal #hv-body{scrollbar-width:thin;}
#holdViewModal .invoices-modal-body pre{margin:0;}

html.velora-modal-open, body.velora-modal-open{overflow:hidden !important; height:100% !important;}
#holdViewModal{
  position:fixed !important;
  inset:0 !important;
  top:0 !important; right:0 !important; bottom:0 !important; left:0 !important;
  width:100vw !important; height:100vh !important; min-height:100vh !important;
  z-index:2147483000 !important;
  margin:0 !important; padding:0 !important;
  transform:none !important;
  contain:layout paint style;
}
#holdViewModal.hidden{display:none !important;}
#holdViewModal:not(.hidden){display:block !important;}
#holdViewModal > [data-modal-overlay]{
  position:fixed !important; inset:0 !important;
  width:100vw !important; height:100vh !important; z-index:0 !important;
}
#holdViewModal > .velora-modal-stage,
#holdViewModal > div:nth-child(2){
  position:fixed !important; inset:0 !important;
  width:100vw !important; height:100vh !important;
  display:flex !important; align-items:center !important; justify-content:center !important;
  overflow:hidden !important; padding:24px !important; z-index:1 !important; transform:none !important;
}
#holdViewModal [data-modal-dialog]{
  position:relative !important;
  width:min(1260px, calc(100vw - 48px)) !important;
  height:auto !important;
  max-height:calc(100vh - 48px) !important;
  margin:0 auto !important;
  display:flex !important; flex-direction:column !important;
  overflow:hidden !important;
}
#holdViewModal .invoices-modal-grid{min-height:0 !important; overflow:hidden !important;}
#holdViewModal .invoices-modal-main,
#holdViewModal .invoices-modal-side{max-height:calc(100vh - 160px) !important; overflow:auto !important;}
@media (max-width: 768px){
  #holdViewModal > .velora-modal-stage,
  #holdViewModal > div:nth-child(2){padding:10px !important; align-items:flex-start !important;}
  #holdViewModal [data-modal-dialog]{width:calc(100vw - 20px) !important; max-height:calc(100vh - 20px) !important;}
  #holdViewModal .invoices-modal-main,
  #holdViewModal .invoices-modal-side{max-height:none !important;}
}

/* ── [6] Shared platform skin + page tints (from V5, consolidated) ───────── */
:where(.main-surface) :where(.card,.card-soft,.hh-card,.hh-panel,.db-card,.np-card,.note-tile,section.card){
  border-radius:28px !important;
  border:1px solid #eadfd1 !important;
  box-shadow:0 12px 30px rgba(33,36,44,.045) !important;
  color:#1d2433;
}
:where(.main-surface) :where(input,textarea,select){
  border-radius:14px !important;
  border:1px solid #e6dbce !important;
  color:#1d2433 !important;
  background:#fff !important;
}
:where(.main-surface) :where(input,textarea,select):focus{
  border-color:#cbd1ff !important;
  box-shadow:0 0 0 4px rgba(85,99,255,.08) !important;
  outline:0 !important;
}
:where(.main-surface) :where(h1,h2,h3,.font-black,.font-extrabold,.card-t,.db-heading,.hh-title){
  font-family:var(--font-display) !important;
  color:#1d2433 !important;
  letter-spacing:-.035em;
}
:where(.main-surface) :where(.text-gray-500,.text-gray-600,.text-slate-500,.text-slate-600,.np-meta,.db-small,.db-desc,.db-sub){color:#6e7685 !important;}
:where(.main-surface) :where(.bg-gray-900,.bg-slate-900,.bg-indigo-600,.bg-blue-600,.np-primary,.db-primary){
  background:linear-gradient(135deg,#5563ff,#7380ff) !important;
  color:#fff !important;
  border-color:#5563ff !important;
}
:where(.main-surface) :where(.bg-emerald-600){background:#22a35a !important;color:#fff !important;}
:where(.main-surface) :where(.bg-rose-600){background:#cb3a58 !important;color:#fff !important;}
:where(.main-surface) :where(.bg-amber-600){background:#f28b50 !important;color:#fff !important;}
:where(.main-surface) :where(.hh-btn,.np-soft,.hh-chip,.chip,.db-pill,.db-action:not(.db-primary),.fleet-btn,.hh-mini){
  background:#fff !important;
  border:1px solid #e6dbce !important;
  color:#4b5563 !important;
  box-shadow:0 8px 18px rgba(33,36,44,.03) !important;
}

body.page-home .content-zone{background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,248,240,.28));}
body.page-home .main-surface{max-width:1760px;}
body.page-home .db-shell, body.page-home .hh-wrap{
  border-radius:36px !important;
  background:linear-gradient(135deg,#fff 0%,#fff8f0 46%,#eef0ff 130%) !important;
}
body.page-inbox .content-zone{background:linear-gradient(135deg,rgba(238,240,255,.42),rgba(255,255,255,.24));}
body.page-inbox .main-surface :where(.msg-row,#msgList>*,li){
  border-radius:24px !important;
  border:1px solid #dfe3ff !important;
  background:#fff !important;
  box-shadow:0 10px 24px rgba(85,99,255,.055) !important;
}
body.page-inbox .main-surface :where(#msgList,.overflow-hidden){background:transparent !important;border-color:transparent !important;}
body.page-invoices .content-zone{background:linear-gradient(135deg,rgba(255,248,240,.72),rgba(255,255,255,.28));}
body.page-invoices .main-surface > section{
  border-radius:34px !important;
  background:linear-gradient(180deg,#fff,#fff8f0) !important;
  border:1px solid #eadfd1 !important;
}
body.page-invoices .js-view-btn{background:linear-gradient(135deg,#5563ff,#7380ff) !important;color:#fff !important;border-color:#5563ff !important;}
body.page-released .content-zone{background:linear-gradient(135deg,rgba(244,251,246,.68),rgba(255,255,255,.24));}
body.page-released .main-surface :where(.card,li){border-color:#cfe8d5 !important;}
body.page-notepad .content-zone{background:linear-gradient(135deg,rgba(255,248,240,.62),rgba(238,240,255,.52));}
body.page-notepad .np-hero{border-radius:38px !important;background:linear-gradient(135deg,#5563ff,#f28b50) !important;}
body.page-notepad .note-tile{background:linear-gradient(180deg,#fff,#fffdf8) !important;}
body.page-accounts .content-zone{background:linear-gradient(135deg,rgba(238,240,255,.62),rgba(255,255,255,.28));}
body.page-bank .content-zone{background:linear-gradient(135deg,rgba(255,248,240,.78),rgba(251,248,243,.36));}
body.page-settings .content-zone{background:linear-gradient(135deg,rgba(251,248,243,.9),rgba(238,240,255,.32));}
body.page-users .content-zone{background:linear-gradient(135deg,rgba(244,251,246,.62),rgba(255,255,255,.30));}
body.page-updates .content-zone{background:linear-gradient(135deg,rgba(255,248,240,.52),rgba(238,240,255,.50));}

body.page-home .main-surface::before,
body.page-inbox .main-surface::before,
body.page-invoices .main-surface::before,
body.page-released .main-surface::before,
body.page-notepad .main-surface::before,
body.page-accounts .main-surface::before,
body.page-bank .main-surface::before,
body.page-settings .main-surface::before,
body.page-users .main-surface::before,
body.page-updates .main-surface::before{content:''; display:block; height:14px;}
body.page-home .main-surface > *:first-child,
body.page-inbox .main-surface > *:first-child,
body.page-invoices .main-surface > *:first-child,
body.page-released .main-surface > *:first-child,
body.page-notepad .main-surface > *:first-child,
body.page-accounts .main-surface > *:first-child,
body.page-bank .main-surface > *:first-child,
body.page-settings .main-surface > *:first-child,
body.page-users .main-surface > *:first-child,
body.page-updates .main-surface > *:first-child{position:relative;}
body.page-home .main-surface > *:first-child::before{content:'Control center';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-inbox .main-surface > *:first-child::before{content:'Message hub';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-invoices .main-surface > *:first-child::before{content:'Review queue';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-released .main-surface > *:first-child::before{content:'Release archive';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-notepad .main-surface > *:first-child::before{content:'Creative space';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-accounts .main-surface > *:first-child::before{content:'Account base';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-bank .main-surface > *:first-child::before{content:'Finance board';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-settings .main-surface > *:first-child::before{content:'Platform settings';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-users .main-surface > *:first-child::before{content:'User control';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}
body.page-updates .main-surface > *:first-child::before{content:'News board';position:absolute;top:-18px;left:6px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;font-weight:900;color:#8d95a3;}

body.page-inbox .main-surface :where(.card,.card-soft,section.card){background:linear-gradient(180deg,#fff,#f6f8ff) !important;}
body.page-invoices .main-surface :where(.rounded-2xl.border,.rounded-xl.border,li){border-radius:24px !important;}
body.page-invoices .main-surface :where(li){background:linear-gradient(180deg,#fff,#fffaf3) !important;}
body.page-released .main-surface :where(.rounded-2xl.border,.rounded-xl.border,li){background:linear-gradient(180deg,#fff,#f7fcf8) !important;border-color:#d7eadc !important;}
body.page-bank .main-surface :where(.card,.card-soft,.rounded-2xl.border){background:linear-gradient(180deg,#fff,#fff8f0) !important;}
body.page-settings .main-surface :where(.card,.card-soft,.rounded-2xl.border){background:linear-gradient(180deg,#fff,#f7f8ff) !important;}
body.page-users .main-surface :where(.card,.card-soft,.rounded-2xl.border){background:linear-gradient(180deg,#fff,#f7fcf8) !important;}
body.page-updates .main-surface :where(.card,.card-soft,.rounded-2xl.border){background:linear-gradient(180deg,#fff,#fff8f1) !important;}

/* ── [7] Hunter-Bot welcome modal + Hunter AI dock ───────────────────────── */
.hunter-bot-backdrop{
  position:fixed; inset:0; z-index:2147482500; display:grid; place-items:center;
  padding:22px; background:rgba(15,23,42,.40); backdrop-filter:blur(13px);
  animation:hunterFadeIn .18s ease-out both;
}
.hunter-bot-card{
  position:relative; overflow:hidden; width:min(760px, calc(100vw - 28px));
  border:1px solid rgba(255,255,255,.74); border-radius:34px;
  background:
    radial-gradient(420px 220px at 92% 6%, rgba(85,99,255,.16), transparent 68%),
    radial-gradient(360px 180px at 8% 110%, rgba(242,139,80,.13), transparent 72%),
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(248,250,252,.94));
  box-shadow:0 34px 100px rgba(15,23,42,.26); padding:28px;
}
.hunter-bot-glow{position:absolute; inset:-110px -130px auto auto; width:280px; height:280px; border-radius:999px; background:radial-gradient(circle, rgba(85,99,255,.24), transparent 68%); pointer-events:none;}
.hunter-bot-top{position:relative; display:flex; gap:18px; align-items:flex-start;}
.hunter-bot-avatar{
  width:76px; height:76px; flex:0 0 auto; border-radius:28px; display:grid; place-items:center;
  background:linear-gradient(135deg, #111827, #5563ff 50%, #f28b50); color:#fff;
  box-shadow:0 18px 44px rgba(85,99,255,.28), inset 0 1px 0 rgba(255,255,255,.28);
}
.hunter-bot-avatar .vicon{width:42px;height:42px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.22));}
.hunter-bot-avatar-fallback{display:none;font-size:34px;}
.hunter-bot-kicker{font-size:11px; text-transform:uppercase; letter-spacing:.20em; color:#7c8596; font-weight:900;}
.hunter-bot-title{margin:7px 0 0; font-family:var(--font-display); font-size:34px; line-height:1; letter-spacing:-.055em; color:#111827;}
.hunter-bot-subtitle{margin:14px 0 0; color:#4b5563; font-size:15px; line-height:1.75; max-width:610px;}
.hunter-bot-subtitle strong{color:#111827;}
.hunter-bot-meta{margin:14px 0 0; color:#687386; font-size:13px; line-height:1.55;}
.hunter-bot-meta strong{color:#27306c;}
.hunter-bot-health{margin:14px 0 0; display:flex; align-items:center; gap:9px; color:#657083; font-size:12px; font-weight:850;}
.hunter-bot-health span{width:9px; height:9px; border-radius:999px; background:#22a35a; box-shadow:0 0 0 6px rgba(34,163,90,.12); flex:0 0 auto;}
.hunter-bot-footer{position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:24px; padding-top:18px; border-top:1px solid #eee4d8;}
.hunter-bot-note{max-width:480px; color:#7a8494; font-size:12px; line-height:1.55; font-weight:750;}
.hunter-bot-ok{display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer; padding:12px 16px; border-radius:16px; color:#fff; font-weight:900; background:linear-gradient(135deg, #5563ff, #7380ff); box-shadow:0 14px 30px rgba(85,99,255,.22);}
.hunter-bot-hidden{animation:hunterFadeOut .20s ease-in both;}
@keyframes hunterFadeIn{from{opacity:0; transform:scale(.985)} to{opacity:1; transform:scale(1)}}
@keyframes hunterFadeOut{from{opacity:1; transform:scale(1)} to{opacity:0; transform:scale(.985)}}
@media (max-width:760px){.hunter-bot-card{padding:20px;border-radius:28px}.hunter-bot-top{gap:13px}.hunter-bot-avatar{width:60px;height:60px;border-radius:22px}.hunter-bot-avatar .vicon{width:33px;height:33px}.hunter-bot-title{font-size:26px}.hunter-bot-footer{align-items:stretch}.hunter-bot-ok{width:100%;}.hunter-bot-note{max-width:none;}}

.hunter-ai-dock{position:fixed;right:22px;bottom:22px;z-index:2147482500;font-family:var(--font-body);}
.hunter-ai-orb{position:relative;width:66px;height:66px;border:0;border-radius:24px;cursor:pointer;color:#fff;background:linear-gradient(135deg,#111827,#28306c 52%,#5563ff);box-shadow:0 22px 52px rgba(17,24,39,.28),0 0 0 1px rgba(255,255,255,.22) inset;display:grid;place-items:center;overflow:visible;transition:transform .16s ease, box-shadow .16s ease;}
.hunter-ai-orb:hover{transform:translateY(-2px) scale(1.015);box-shadow:0 28px 62px rgba(17,24,39,.34),0 0 0 1px rgba(255,255,255,.25) inset;}
.hunter-ai-orb-glow{position:absolute;inset:-12px;border-radius:30px;background:radial-gradient(circle at 35% 25%,rgba(242,139,80,.48),transparent 42%),radial-gradient(circle at 78% 85%,rgba(85,99,255,.46),transparent 48%);filter:blur(11px);opacity:.78;z-index:-1;animation:hunterAiPulse 2.8s ease-in-out infinite;}
.hunter-ai-orb-icon{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#5563ff,#f28b50);box-shadow:0 12px 28px rgba(85,99,255,.30);}
.hunter-ai-orb-icon .vicon{width:33px;height:33px;filter:drop-shadow(0 6px 10px rgba(0,0,0,.24));}
.hunter-ai-orb-dot{position:absolute;right:9px;top:9px;width:12px;height:12px;border-radius:999px;background:#22a35a;box-shadow:0 0 0 5px rgba(34,163,90,.18),0 0 18px rgba(34,163,90,.8);}
.hunter-ai-panel{position:absolute;right:0;bottom:82px;width:min(420px,calc(100vw - 28px));height:min(640px,calc(100vh - 120px));border-radius:30px;background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(251,248,243,.98));border:1px solid rgba(233,223,209,.96);box-shadow:0 32px 90px rgba(17,24,39,.26);overflow:hidden;display:flex;flex-direction:column;backdrop-filter:blur(18px);}
.hunter-ai-panel[hidden]{display:none;}
.hunter-ai-head{display:flex;align-items:center;gap:13px;padding:17px 17px 14px;border-bottom:1px solid #eadfd1;background:linear-gradient(135deg,#fff,#fff8f0 58%,#eef0ff);}
.hunter-ai-avatar{width:52px;height:52px;border-radius:20px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#5563ff,#f28b50);box-shadow:0 14px 30px rgba(85,99,255,.18);}
.hunter-ai-avatar .vicon{width:34px;height:34px;filter:drop-shadow(0 6px 9px rgba(0,0,0,.22));}
.hunter-ai-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.18em;font-weight:950;color:#8d95a3;}
.hunter-ai-title{font-family:var(--font-display);font-size:21px;line-height:1.1;font-weight:950;letter-spacing:-.045em;color:#111827;margin-top:4px;}
.hunter-ai-close{margin-left:auto;width:40px;height:40px;border-radius:15px;border:1px solid #eadfd1;background:#fff;color:#64748b;display:grid;place-items:center;cursor:pointer;}
.hunter-ai-body{flex:1;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px;scrollbar-width:thin;}
.hunter-ai-msg{max-width:88%;border-radius:20px;padding:12px 14px;font-size:13px;line-height:1.58;white-space:pre-wrap;box-shadow:0 8px 20px rgba(17,24,39,.035);}
.hunter-ai-msg-bot{align-self:flex-start;background:#fff;border:1px solid #eadfd1;color:#334155;}
.hunter-ai-msg-user{align-self:flex-end;background:linear-gradient(135deg,#5563ff,#7380ff);color:#fff;border:1px solid rgba(255,255,255,.3);}
.hunter-ai-msg small{display:block;margin-top:6px;color:#8d95a3;font-size:11px;font-weight:800;}
.hunter-ai-msg-user small{color:rgba(255,255,255,.78);}
.hunter-ai-chips{display:flex;gap:8px;overflow:auto;padding:0 14px 12px;border-top:1px solid rgba(234,223,209,.55);}
.hunter-ai-chips button{flex:0 0 auto;border:1px solid #e5dbce;background:#fff;border-radius:999px;padding:8px 10px;color:#4b5563;font-size:11px;font-weight:900;cursor:pointer;}
.hunter-ai-form{display:grid;grid-template-columns:1fr 46px;gap:10px;padding:12px 14px;border-top:1px solid #eadfd1;background:rgba(255,255,255,.76);}
.hunter-ai-form input[type=text]{height:46px;border:1px solid #e5dbce;border-radius:17px;background:#fff;padding:0 13px;outline:none;color:#111827;font-size:13px;}
.hunter-ai-form input[type=text]:focus{border-color:#cbd1ff;box-shadow:0 0 0 4px rgba(85,99,255,.08);}
.hunter-ai-form button{height:46px;border:0;border-radius:17px;background:linear-gradient(135deg,#5563ff,#7380ff);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 24px rgba(85,99,255,.18);}
.hunter-ai-form button[disabled]{opacity:.55;cursor:not-allowed;}
.hunter-ai-foot{padding:0 16px 14px;color:#94a3b8;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em;background:rgba(255,255,255,.76);}
.hunter-ai-thinking{display:inline-flex;gap:4px;align-items:center;}
.hunter-ai-thinking span{width:6px;height:6px;border-radius:999px;background:#8d95a3;animation:hunterAiDot 1s infinite ease-in-out;}.hunter-ai-thinking span:nth-child(2){animation-delay:.12s}.hunter-ai-thinking span:nth-child(3){animation-delay:.24s}
@keyframes hunterAiPulse{0%,100%{opacity:.55;transform:scale(.98)}50%{opacity:.95;transform:scale(1.02)}}
@keyframes hunterAiDot{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(max-width:720px){.hunter-ai-dock{right:14px;bottom:14px}.hunter-ai-orb{width:60px;height:60px;border-radius:22px}.hunter-ai-panel{right:-2px;bottom:76px;width:calc(100vw - 24px);height:min(620px,calc(100vh - 104px));border-radius:26px}.hunter-ai-msg{max-width:94%;}}

/* ── [8] Icon system + illustrations ─────────────────────────────────────── */
.vicon{width:18px;height:18px;display:inline-block;vertical-align:-3px;flex:none}
.vicon-sm{width:15px;height:15px;vertical-align:-2px}
.vicon-lg{width:24px;height:24px;vertical-align:-5px}
.vicon-xl{width:32px;height:32px}
.vi2{opacity:.32}
.vicon-spin{animation:viconSpin 1s linear infinite}
@keyframes viconSpin{to{transform:rotate(360deg)}}
.villu{display:block;width:220px;max-width:100%;height:auto}

/* Compatibility shim styling: <iconify-icon> rendered by velora.js from the
   local sprite. 1em like the old runtime, but with a 17px legibility floor
   (v108 — fixes icons that rendered too small in dense contexts). */
iconify-icon{display:inline-block;width:max(1em,17px);height:max(1em,17px);vertical-align:-0.125em;line-height:0}
iconify-icon > svg{width:100%;height:100%;display:block}
/* Same floor for sprite icons inside interactive controls. */
.v-btn .vicon,.quick-action .vicon,.secondary-action .vicon,.spl-btn .vicon{width:17px;height:17px}

/* ── [9] Live updates (SSE) indicator ────────────────────────────────────── */
.v-live-chip{display:inline-flex;align-items:center;gap:7px;}
.v-live-chip .v-live-dot{width:8px;height:8px;border-radius:999px;background:var(--muted-2);transition:background .2s ease, box-shadow .2s ease;}
.v-live-chip.is-on .v-live-dot{background:var(--ok);box-shadow:0 0 0 5px rgba(34,163,90,.13);animation:vLivePulse 2.4s ease-in-out infinite}
@keyframes vLivePulse{0%,100%{box-shadow:0 0 0 4px rgba(34,163,90,.10)}50%{box-shadow:0 0 0 7px rgba(34,163,90,.16)}}
.v-flash-update{animation:vFlashUpdate 1.2s ease-out}
@keyframes vFlashUpdate{0%{box-shadow:0 0 0 3px rgba(85,99,255,.35)}100%{box-shadow:0 0 0 3px rgba(85,99,255,0)}}

/* v110 calm refresh pill — appears instead of auto-reload */
.v-new-pill{
  position:fixed;top:14px;left:50%;transform:translate(-50%,-160%);z-index:2147482400;
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;border:0;
  padding:10px 16px;border-radius:999px;font:800 12.5px/1 var(--font-body);
  background:linear-gradient(135deg,var(--accent),var(--accent-up));color:#fff;
  box-shadow:0 16px 40px rgba(85,99,255,.32);
  transition:transform .25s cubic-bezier(.2,1.2,.4,1), opacity .2s ease;
  opacity:0;pointer-events:none;
}
.v-new-pill.is-visible{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.v-new-pill:hover{transform:translate(-50%,-1px)}
.v-new-pill .vicon{width:14px;height:14px;vertical-align:-2px}
@media (prefers-reduced-motion: reduce){.v-new-pill{transition:opacity .2s ease}}

/* ── [9.5] v108 "Simple & Next Level" shell ──────────────────────────────── */
/* One-row top bar replaces the two-row platform header: less chrome, more content. */
.topbar{
  display:flex;align-items:center;gap:14px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,248,243,.84));
  position:relative;z-index:60;
}
.topbar .brand-mark{width:40px;height:40px;border-radius:15px}
.topbar .brand-mark .vicon{width:23px;height:23px}
.topbar-brand-title{font-size:21px;line-height:1}
.topbar-nav{
  display:flex;gap:6px;align-items:center;flex:1;min-width:0;
  overflow-x:auto;scrollbar-width:none;padding:4px;
}
.topbar-nav::-webkit-scrollbar{display:none}
.topbar-nav .nav-link{padding:9px 12px;border-radius:14px;flex:none}
.topbar-actions{display:flex;gap:8px;align-items:center;flex:none}
.quick-action-slim{padding:10px 12px}
.palette-trigger{
  display:inline-flex;align-items:center;gap:8px;cursor:pointer;
  padding:9px 12px;border-radius:14px;border:1px solid var(--line);
  background:#fff;color:var(--muted);font:inherit;font-size:12.5px;font-weight:750;
  box-shadow:var(--shadow-sm);transition:transform .14s ease, border-color .14s ease;
}
.palette-trigger:hover{transform:translateY(-1px);border-color:#cbd1ff}
.palette-trigger kbd{
  font:800 10px/1 var(--font-body);color:var(--muted-2);
  border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;
  padding:3px 5px;background:var(--surface-2);
}
.tools-panel-foot{margin-top:4px;padding-top:8px;border-top:1px solid var(--line-2);display:grid;gap:6px}
.tools-user{display:flex;align-items:center;gap:10px;padding:6px 12px;font-size:12px;font-weight:800;color:var(--muted-2)}
.tool-link-logout{color:#9c2b44}
.tool-link-logout .vicon{color:var(--bad)}
.page-title-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:2px 2px 14px;
}
.page-title-row .view-title{font-size:23px;margin:0}
@media (max-width:1280px){
  .topbar-nav .nav-label{display:none}
  .topbar-nav .nav-link{padding:10px}
}
@media (max-width:900px){
  .topbar{flex-wrap:wrap;padding:10px 12px}
  .topbar-nav{display:none}
  .topbar-actions .palette-hint,.topbar-actions kbd{display:none}
  .topbar-actions .nav-label{display:none}
  .mobile-nav{display:block;margin:0 0 0 auto;order:5}
  .mobile-nav .mobile-panel{position:absolute;right:10px;left:10px;z-index:90}
}

/* Command palette (Ctrl+K) — self-made, zero dependencies. */
.vk-overlay{
  position:fixed;inset:0;z-index:2147482600;display:grid;place-items:start center;
  padding:12vh 16px 16px;background:rgba(15,23,42,.38);backdrop-filter:blur(10px);
  animation:hunterFadeIn .14s ease-out both;
}
.vk-panel{
  width:min(580px,100%);border-radius:24px;overflow:hidden;
  border:1px solid rgba(255,255,255,.7);
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(251,248,243,.97));
  box-shadow:0 36px 110px rgba(15,23,42,.32);
}
.vk-input-row{display:flex;align-items:center;gap:10px;padding:15px 17px;border-bottom:1px solid var(--line-2)}
.vk-input-row .vicon{color:var(--muted-2);width:19px;height:19px}
.vk-input{flex:1;border:0;outline:none;background:transparent;font:inherit;font-size:15.5px;color:var(--text)}
.vk-esc{font:800 10px/1 var(--font-body);color:var(--muted-2);border:1px solid var(--line);border-radius:6px;padding:3px 6px;background:var(--surface-2)}
.vk-list{max-height:46vh;overflow:auto;padding:8px;display:grid;gap:2px}
.vk-item{
  display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:14px;
  color:#374151;font-size:13.5px;font-weight:750;cursor:pointer;text-decoration:none;
}
.vk-item .vicon{color:var(--muted);width:17px;height:17px}
.vk-item.is-active{background:linear-gradient(135deg,var(--accent-soft),var(--accent-2-soft));color:#27306c}
.vk-item.is-active .vicon{color:var(--accent)}
.vk-item small{margin-left:auto;color:var(--muted-2);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.1em}
.vk-empty{padding:26px;text-align:center;color:var(--muted-2);font-size:13px;font-weight:700}

/* ── [10] Accessibility & motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce){
  .vh-skeleton div,.v-skeleton div{animation:none}
  .quick-action,.secondary-action,.nav-link,.v-btn{transition:none}
  .vicon-spin{animation:none}
  .hunter-ai-orb-glow{animation:none}
  .v-live-chip.is-on .v-live-dot{animation:none}
}

/* ── [11] Dark theme — html[data-theme=dark] (v111) ──────────────────────────
   Token-level dark mode. The header boot script sets data-theme="dark" on
   <html> before first paint; [data-velora-theme-toggle] flips it at runtime.
   Every rule below is scoped under html[data-theme=dark] — purely additive,
   zero impact on the light theme. Dark counterparts for hardcoded hexes in
   sections [3]–[9] live here; do not edit the light rules above.
   ========================================================================== */

/* [11.1] Token overrides */
html[data-theme=dark]{
  color-scheme:dark;
  /* Surfaces */
  --bg:#14161d;
  --surface:#1c1f29;
  --surface-2:#181b24;
  --surface-3:#20242f;
  /* Lines */
  --line:#2a2f3d;
  --line-2:#262b38;
  --line-accent:#3a4264;
  /* Ink */
  --text:#e8eaf2;
  --muted:#9aa2b5;
  --muted-2:#6d7689;
  /* Brand (accent unchanged by design) */
  --accent:#5563ff;
  --accent-up:#7380ff;
  --accent-soft:#232948;
  --accent-2-soft:#2b2330;
  /* Semantic washes */
  --ok-soft:#16241c;
  --ok-line:#2c4a38;
  --warn-soft:#2a2118;
  --warn-line:#4a3a22;
  --bad-soft:#2a1a20;
  --bad-line:#4a2a34;
  /* Effects — reduced-alpha dark equivalents */
  --shadow:0 20px 60px rgba(0,0,0,.35);
  --shadow-sm:0 8px 20px rgba(0,0,0,.20);
  --shadow-pop:0 22px 54px rgba(0,0,0,.45);
  background:var(--bg);
}

/* [11.2] Base: deep slate gradient, quieter grain, dark scrollbars */
html[data-theme=dark] body{
  background:
    radial-gradient(640px 420px at 8% -10%, rgba(85,99,255,.13), transparent 68%),
    radial-gradient(560px 420px at 100% 0%, rgba(242,139,80,.06), transparent 72%),
    linear-gradient(135deg, #14161d 0%, #181b24 48%, #121420 100%);
}
html[data-theme=dark] .velora-grain{
  opacity:.07;
  background-image:radial-gradient(rgba(232,234,242,.06) .6px, transparent .7px);
}
html[data-theme=dark] ::selection{background:rgba(115,128,255,.30)}
html[data-theme=dark] *{scrollbar-color:#394052 transparent}
html[data-theme=dark] *::-webkit-scrollbar-thumb{background:#394052;background-clip:content-box}

/* [11.3] App shell counterparts (section [3] hardcoded hexes) */
html[data-theme=dark] .app-frame{
  border-color:rgba(42,47,61,.96);
  background:rgba(24,27,36,.55);
  box-shadow:0 26px 70px rgba(0,0,0,.35);
}
html[data-theme=dark] .platform-header{background:linear-gradient(180deg, rgba(28,31,41,.92), rgba(24,27,36,.84));}
html[data-theme=dark] .chip{background:var(--surface);}
html[data-theme=dark] .chip-strong{color:#b4bdff;background:var(--accent-soft);}
html[data-theme=dark] .chip-ok{color:#7fd6a4;background:var(--ok-soft);}
html[data-theme=dark] .chip-warn{color:#e3a35c;background:var(--warn-soft);}
html[data-theme=dark] .chip-bad{color:#f0a3b6;background:var(--bad-soft);}
html[data-theme=dark] .secondary-action,
html[data-theme=dark] .mobile-menu-btn{background:var(--surface);box-shadow:0 8px 18px rgba(0,0,0,.18);}
html[data-theme=dark] .section-tabs{background:rgba(28,31,41,.72);box-shadow:0 10px 24px rgba(0,0,0,.18);}
html[data-theme=dark] .nav-link{color:var(--muted);}
html[data-theme=dark] .nav-link.is-active{color:#c0c8ff;box-shadow:0 10px 24px rgba(85,99,255,.14);}
html[data-theme=dark] .utility-rail{background:linear-gradient(180deg, rgba(24,27,36,.84), rgba(28,31,41,.52));}
html[data-theme=dark] .rail-btn{background:var(--surface);color:var(--muted);box-shadow:0 8px 20px rgba(0,0,0,.18);}
html[data-theme=dark] .rail-btn.is-active{background:linear-gradient(135deg,var(--accent-soft),var(--accent-2-soft));color:var(--accent);}
html[data-theme=dark] .search-shell{background:var(--surface);}
html[data-theme=dark] .velora-tools-panel{background:rgba(28,31,41,.97);}
html[data-theme=dark] .tool-link{color:var(--muted);}
html[data-theme=dark] .tool-link:hover,
html[data-theme=dark] .tool-link.is-active{color:#c0c8ff;}
html[data-theme=dark] .tool-link-logout{color:#f0a3b6;}
html[data-theme=dark] .mobile-panel{background:var(--surface);}

/* [11.4] Core component counterparts (section [4] hardcoded hexes) */
html[data-theme=dark] .card,
html[data-theme=dark] .shell-card{background:var(--surface);box-shadow:0 12px 34px rgba(0,0,0,.22);}
html[data-theme=dark] .v-btn-secondary{background:var(--surface);}
html[data-theme=dark] .v-btn-ghost:hover{color:#c0c8ff;}
html[data-theme=dark] .v-badge{background:var(--surface);}
html[data-theme=dark] .v-badge-ok{color:#7fd6a4;background:var(--ok-soft);}
html[data-theme=dark] .v-badge-warn{color:#e3a35c;background:var(--warn-soft);}
html[data-theme=dark] .v-badge-bad{color:#f0a3b6;background:var(--bad-soft);}
html[data-theme=dark] .v-badge-accent{color:#b4bdff;background:var(--accent-soft);}
html[data-theme=dark] .v-badge-peach{color:#f2b380;background:var(--accent-2-soft);border-color:#4a3526;}
html[data-theme=dark] .v-input,
html[data-theme=dark] .v-select,
html[data-theme=dark] .v-textarea{background:var(--surface);}
html[data-theme=dark] .v-input:focus,
html[data-theme=dark] .v-select:focus,
html[data-theme=dark] .v-textarea:focus{border-color:var(--line-accent);box-shadow:0 0 0 5px rgba(85,99,255,.16);}
html[data-theme=dark] .v-table tbody tr:hover td{background:rgba(85,99,255,.07);}
html[data-theme=dark] .v-skeleton div,
html[data-theme=dark] .vh-skeleton div{background:linear-gradient(90deg,#20242f,#2a2f3d,#20242f);background-size:200% 100%;}
html[data-theme=dark] .v-flash{background:var(--surface);}
html[data-theme=dark] .v-flash-ok{color:#7fd6a4;background:var(--ok-soft);}
html[data-theme=dark] .v-flash-bad{color:#f0a3b6;background:var(--bad-soft);}

/* [11.5] Modal hard-reset counterparts (section [5]) */
html[data-theme=dark] #holdViewModal [data-modal-overlay],
html[data-theme=dark] #bulkModal [data-modal-overlay]{background:rgba(5,7,12,.62) !important;}
html[data-theme=dark] #holdViewModal [data-modal-dialog],
html[data-theme=dark] #bulkModal .max-w-\[720px\]{
  border-color:var(--line) !important;
  background:var(--surface) !important;
  box-shadow:0 34px 90px rgba(0,0,0,.55) !important;
}
html[data-theme=dark] #holdViewModal .sticky,
html[data-theme=dark] #bulkModal .border-b{
  background:var(--surface-2) !important;
  border-color:var(--line) !important;
}
html[data-theme=dark] #holdViewModal #hv-subject{color:var(--text) !important;}
html[data-theme=dark] #holdViewModal #hv-body{
  background:var(--surface-2) !important;
  border-color:var(--line) !important;
  color:var(--text) !important;
}
html[data-theme=dark] #holdViewModal .md\:border-l,
html[data-theme=dark] #holdViewModal .border-t{background:var(--surface-2) !important;border-color:var(--line) !important;}
html[data-theme=dark] #holdViewModal .rounded-xl.border.bg-white,
html[data-theme=dark] #bulkModal .bg-gray-50{
  background:var(--surface-3) !important;
  border-color:var(--line) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.18) !important;
}
html[data-theme=dark] #holdViewModal #hv-close{background:var(--surface) !important;border-color:var(--line) !important;}

/* [11.6] Shared skin + Tailwind utility overrides (section [6] counterparts).
   Forces the common light utilities used across views to read on dark. */
html[data-theme=dark] :where(.main-surface) :where(.card,.card-soft,.hh-card,.hh-panel,.db-card,.np-card,.note-tile,section.card){
  background:var(--surface) !important;
  border-color:var(--line) !important;
  box-shadow:0 12px 30px rgba(0,0,0,.20) !important;
  color:var(--text);
}
html[data-theme=dark] :where(.main-surface) :where(input,textarea,select){
  border-color:var(--line) !important;
  color:var(--text) !important;
  background:var(--surface-3) !important;
}
html[data-theme=dark] :where(.main-surface) :where(input,textarea,select):focus{
  border-color:var(--line-accent) !important;
  box-shadow:0 0 0 4px rgba(85,99,255,.16) !important;
}
html[data-theme=dark] :where(.main-surface) :where(h1,h2,h3,.font-black,.font-extrabold,.card-t,.db-heading,.hh-title){color:var(--text) !important;}
html[data-theme=dark] :where(.main-surface) :where(.text-gray-500,.text-gray-600,.text-slate-500,.text-slate-600,.np-meta,.db-small,.db-desc,.db-sub){color:var(--muted) !important;}
html[data-theme=dark] :where(.main-surface) :where(.hh-btn,.np-soft,.hh-chip,.chip,.db-pill,.db-action:not(.db-primary),.fleet-btn,.hh-mini){
  background:var(--surface) !important;
  border-color:var(--line) !important;
  color:var(--muted) !important;
  box-shadow:0 8px 18px rgba(0,0,0,.14) !important;
}
/* Tailwind utility skins: light backgrounds -> surfaces */
html[data-theme=dark] :where(.main-surface) :where(.bg-white,.bg-slate-50,.bg-gray-50){background:var(--surface) !important;}
html[data-theme=dark] :where(.main-surface) :where(.bg-slate-100,.bg-gray-100){background:var(--surface-2) !important;}
html[data-theme=dark] :where(.main-surface) :where(.hover\:bg-gray-50:hover,.hover\:bg-slate-50:hover,.hover\:bg-gray-100:hover,.hover\:bg-slate-100:hover,.hover\:bg-gray-200:hover,.hover\:bg-slate-200:hover){background:var(--surface-3) !important;}
/* Tailwind utility skins: dark inks -> tokens */
html[data-theme=dark] :where(.main-surface) :where(.text-slate-900,.text-gray-900,.text-slate-800,.text-gray-800,.text-slate-700,.text-gray-700,.text-black){color:var(--text) !important;}
html[data-theme=dark] :where(.main-surface) :where(.text-slate-400,.text-gray-400){color:var(--muted-2) !important;}
/* Tailwind utility skins: neutral light-gray borders -> --line */
html[data-theme=dark] :where(.main-surface) :where(.border-slate-100,.border-slate-200,.border-slate-300,.border-gray-100,.border-gray-200,.border-gray-300){border-color:var(--line) !important;}
html[data-theme=dark] :where(.main-surface) :where(.border,.border-t,.border-b,.border-l,.border-r):where(:not([class*="border-rose"]):not([class*="border-red"]):not([class*="border-amber"]):not([class*="border-yellow"]):not([class*="border-orange"]):not([class*="border-emerald"]):not([class*="border-green"]):not([class*="border-teal"]):not([class*="border-sky"]):not([class*="border-blue"]):not([class*="border-indigo"]):not([class*="border-violet"]):not([class*="border-purple"]):not([class*="border-pink"])){
  border-color:var(--line);
}
html[data-theme=dark] :where(.main-surface) :where(.divide-y,.divide-x) > :where(:not([hidden]) ~ :not([hidden])){border-color:var(--line);}

/* Page skins: flat, calm dark counterparts of the cream tints */
html[data-theme=dark] body.page-home .content-zone,
html[data-theme=dark] body.page-inbox .content-zone,
html[data-theme=dark] body.page-invoices .content-zone,
html[data-theme=dark] body.page-released .content-zone,
html[data-theme=dark] body.page-notepad .content-zone,
html[data-theme=dark] body.page-accounts .content-zone,
html[data-theme=dark] body.page-bank .content-zone,
html[data-theme=dark] body.page-settings .content-zone,
html[data-theme=dark] body.page-users .content-zone,
html[data-theme=dark] body.page-updates .content-zone{background:var(--surface-2);}
html[data-theme=dark] body.page-home .db-shell,
html[data-theme=dark] body.page-home .hh-wrap{background:var(--surface) !important;}
html[data-theme=dark] body.page-inbox .main-surface :where(.msg-row,#msgList>*,li){
  border-color:var(--line-accent) !important;
  background:var(--surface) !important;
  box-shadow:0 10px 24px rgba(0,0,0,.20) !important;
}
html[data-theme=dark] body.page-invoices .main-surface > section{
  background:var(--surface) !important;
  border-color:var(--line) !important;
}
html[data-theme=dark] body.page-released .main-surface :where(.card,li){border-color:var(--ok-line) !important;}
html[data-theme=dark] body.page-notepad .note-tile{background:var(--surface) !important;}
html[data-theme=dark] body.page-inbox .main-surface :where(.card,.card-soft,section.card){background:var(--surface) !important;}
html[data-theme=dark] body.page-invoices .main-surface :where(li){background:var(--surface) !important;}
html[data-theme=dark] body.page-released .main-surface :where(.rounded-2xl.border,.rounded-xl.border,li){background:var(--surface) !important;border-color:var(--ok-line) !important;}
html[data-theme=dark] body.page-bank .main-surface :where(.card,.card-soft,.rounded-2xl.border),
html[data-theme=dark] body.page-settings .main-surface :where(.card,.card-soft,.rounded-2xl.border),
html[data-theme=dark] body.page-users .main-surface :where(.card,.card-soft,.rounded-2xl.border),
html[data-theme=dark] body.page-updates .main-surface :where(.card,.card-soft,.rounded-2xl.border){background:var(--surface) !important;}

/* [11.7] Hunter-Bot modal + Hunter AI dock counterparts (section [7]) */
html[data-theme=dark] .hunter-bot-card{
  border-color:var(--line);
  background:
    radial-gradient(420px 220px at 92% 6%, rgba(85,99,255,.20), transparent 68%),
    radial-gradient(360px 180px at 8% 110%, rgba(242,139,80,.10), transparent 72%),
    linear-gradient(135deg, rgba(28,31,41,.98), rgba(24,27,36,.96));
  box-shadow:0 34px 100px rgba(0,0,0,.55);
}
html[data-theme=dark] .hunter-bot-title{color:var(--text);}
html[data-theme=dark] .hunter-bot-subtitle{color:var(--muted);}
html[data-theme=dark] .hunter-bot-subtitle strong{color:var(--text);}
html[data-theme=dark] .hunter-bot-meta{color:var(--muted);}
html[data-theme=dark] .hunter-bot-meta strong{color:#b4bdff;}
html[data-theme=dark] .hunter-bot-health{color:var(--muted);}
html[data-theme=dark] .hunter-bot-footer{border-top-color:var(--line);}
html[data-theme=dark] .hunter-ai-panel{
  background:linear-gradient(180deg, rgba(28,31,41,.98), rgba(24,27,36,.98));
  border-color:rgba(42,47,61,.96);
  box-shadow:0 32px 90px rgba(0,0,0,.55);
}
html[data-theme=dark] .hunter-ai-head{border-bottom-color:var(--line);background:linear-gradient(135deg,#1c1f29,#20242f 58%,#232948);}
html[data-theme=dark] .hunter-ai-title{color:var(--text);}
html[data-theme=dark] .hunter-ai-close{border-color:var(--line);background:var(--surface);color:var(--muted);}
html[data-theme=dark] .hunter-ai-msg{box-shadow:0 8px 20px rgba(0,0,0,.18);}
html[data-theme=dark] .hunter-ai-msg-bot{background:var(--surface-3);border-color:var(--line);color:var(--text);}
html[data-theme=dark] .hunter-ai-chips{border-top-color:rgba(42,47,61,.55);}
html[data-theme=dark] .hunter-ai-chips button{border-color:var(--line);background:var(--surface);color:var(--muted);}
html[data-theme=dark] .hunter-ai-form{border-top-color:var(--line);background:rgba(24,27,36,.76);}
html[data-theme=dark] .hunter-ai-form input[type=text]{border-color:var(--line);background:var(--surface-3);color:var(--text);}
html[data-theme=dark] .hunter-ai-form input[type=text]:focus{border-color:var(--line-accent);box-shadow:0 0 0 4px rgba(85,99,255,.16);}
html[data-theme=dark] .hunter-ai-foot{background:rgba(24,27,36,.76);}

/* [11.8] Illustrations: tame the hardcoded light fills, do not redraw */
html[data-theme=dark] .villu{filter:brightness(.92) saturate(.95);}

/* [11.9] v108 shell + command palette counterparts (section [9.5]) */
html[data-theme=dark] .topbar{background:linear-gradient(180deg, rgba(28,31,41,.94), rgba(24,27,36,.88));}
html[data-theme=dark] .palette-trigger{background:var(--surface);}
html[data-theme=dark] .palette-trigger:hover{border-color:var(--line-accent);}
html[data-theme=dark] .vk-panel{
  border-color:var(--line);
  background:linear-gradient(180deg,#1c1f29,#181b24);
  box-shadow:0 36px 110px rgba(0,0,0,.60);
}
html[data-theme=dark] .vk-item{color:#b9c1d4;}
html[data-theme=dark] .vk-item.is-active{color:#c0c8ff;}
