/* Next-Pit 0.2 – one semantic design contract.  Browser/frontend only.
   A palette selects an accent; a mode selects neutral surfaces and readable text.
   Keep error, success, warning and status colors independent of accents. */
html[data-vb-mode]{
  --vb-surface-page:var(--vb-color-bg);
  --vb-surface-card:var(--vb-color-surface-1);
  --vb-surface-raised:var(--vb-color-surface-2);
  --vb-surface-soft:var(--vb-color-surface-3);
  --vb-ink:var(--vb-color-text);
  --vb-ink-muted:var(--vb-color-text-secondary);
  --vb-ink-subtle:var(--vb-color-muted);
  --vb-stroke:var(--vb-color-border);
  --vb-stroke-strong:var(--vb-color-border-strong);
  --vb-interactive:var(--vb-color-accent);
  --vb-interactive-hover:var(--vb-color-accent-strong);
  --vb-on-interactive:#fff;
  --vb-shadow-ui:0 16px 42px rgba(5,7,18,.2);
  --vb-hero-grad:linear-gradient(135deg,var(--vb-color-surface-1),var(--vb-color-surface-2));
  --vb-quiet-bg:color-mix(in srgb,var(--vb-color-accent) 8%,var(--vb-color-surface-1));
  --vb-quiet-border:color-mix(in srgb,var(--vb-color-accent) 40%,var(--vb-color-border));
  --vb-quiet-text:var(--vb-color-text);
  --vb-on-image:#fff;
  --vb-status-danger:#b91c1c;
  --vb-status-success:#166534;
  --vb-status-warning:#92400e;
  --vb-status-info:#1d4ed8;
  --vb-color-on-accent:#fff;
  --vbx-bg:var(--vb-color-bg)!important;
  --vbx-surface:var(--vb-color-surface-1)!important;
  --vbx-surface-raised:var(--vb-color-surface-2)!important;
  --vbx-surface-soft:var(--vb-color-surface-3)!important;
  --vbx-border:var(--vb-color-border)!important;
  --vbx-border-hover:var(--vb-color-border-strong)!important;
  --vbx-text:var(--vb-color-text)!important;
  --vbx-muted:var(--vb-color-muted)!important;
  --vbx-accent:var(--vb-color-accent)!important;
  --vbx-accent-strong:var(--vb-color-accent-strong)!important;
  --vbx-accent-dark:var(--vb-color-accent-strong)!important;
}
html[data-vb-mode="dark"]{
  --vb-color-bg:#09090d;
  --vb-color-bg-elevated:#121217;
  --vb-color-surface-1:#1a1921;
  --vb-color-surface-2:#25232d;
  --vb-color-surface-3:#302d39;
  --vb-color-field:#121118;
  --vb-color-text:#f8f7fb;
  --vb-color-text-secondary:#e1dce6;
  --vb-color-muted:#c2bacb;
  --vb-color-muted-2:#a99faf;
  --vb-color-border:rgba(240,234,248,.17);
  --vb-color-border-strong:rgba(240,234,248,.28);
  --vb-color-success:#65d99a;
  --vb-color-warning:#ffcf75;
  --vb-color-danger:#ff899b;
  --vb-color-info:#90c2ff;
  --vb-shadow-ui:0 16px 42px rgba(0,0,0,.34);
  --vb-quiet-bg:color-mix(in srgb,var(--vb-color-accent) 16%,var(--vb-color-surface-1));
  --vb-status-danger:#ff9aad;
  --vb-status-success:#80e9aa;
  --vb-status-warning:#ffd58b;
  --vb-status-info:#9bc8ff;
  color-scheme:dark;
}
html[data-vb-mode="light"]{
  --vb-color-bg:#f6f3ef;
  --vb-color-bg-elevated:#fffdfa;
  --vb-color-surface-1:#fffdfa;
  --vb-color-surface-2:#f0ebe5;
  --vb-color-surface-3:#e7dfd6;
  --vb-color-field:#fffdfa;
  --vb-color-text:#20202b;
  --vb-color-text-secondary:#41414e;
  --vb-color-muted:#585764;
  --vb-color-muted-2:#62616d;
  --vb-color-border:rgba(66,52,49,.18);
  --vb-color-border-strong:rgba(66,52,49,.32);
  --vb-color-success:#187743;
  --vb-color-warning:#985500;
  --vb-color-danger:#b4233a;
  --vb-color-info:#185abc;
  --vb-shadow-ui:0 16px 40px rgba(24,21,40,.1);
  --vb-hero-grad:linear-gradient(135deg,#fffdfa,#f0ebe5);
  color-scheme:light;
}
html[data-vb-mode]{
  --vb-bg:var(--vb-color-bg)!important;
  --vb-surface:var(--vb-color-surface-1)!important;
  --vb-surface-2:var(--vb-color-surface-2)!important;
  --vb-surface-3:var(--vb-color-surface-3)!important;
  --vb-text:var(--vb-color-text)!important;
  --vb-muted:var(--vb-color-muted)!important;
  --vb-line:var(--vb-color-border)!important;
  --vb-line-strong:var(--vb-color-border-strong)!important;
  --vb-red:var(--vb-color-accent)!important;
  --vb-red-deep:var(--vb-color-accent-strong)!important;
  --vb-focus-ring:0 0 0 3px color-mix(in srgb,var(--vb-interactive) 30%,transparent)!important;
}
html[data-vb-mode] :where(.vb-ui-card,.vb-ui-field,.vb-ui-button,.vb-ui-tabs--segmented,.vb-ui-chip){
  border-color:var(--vb-stroke);
}
html[data-vb-mode] :where(.vb-ui-card,.vb-ui-chip,.vb-ui-tabs--segmented){background:var(--vb-surface-card);color:var(--vb-ink)}
html[data-vb-mode] :where(.vb-ui-field){background:var(--vb-color-field);color:var(--vb-ink)}
html[data-vb-mode] :where(.vb-ui-button:not(.vb-ui-button--primary)){background:var(--vb-surface-raised);color:var(--vb-ink)}
html[data-vb-mode] :where(.vb-ui-button--primary){background:var(--vb-interactive);color:#fff;border-color:var(--vb-interactive)}
html[data-vb-mode] :where(.vb-ui-tab.is-active,.vb-ui-tab[aria-selected="true"]){border-color:var(--vb-interactive);color:var(--vb-ink);background:var(--vb-quiet-bg)}
html[data-vb-mode] :where(.vb-ui-kicker,.vb-ui-overline){color:var(--vb-interactive)}
html[data-vb-mode] :where(.vb-ui-notice--danger){color:var(--vb-status-danger)}
html[data-vb-mode] :where(.vb-ui-notice--success){color:var(--vb-status-success)}
html[data-vb-mode] :where(.vb-ui-field,.vb-ui-button,.vb-ui-tab):focus-visible{outline:2px solid var(--vb-interactive);outline-offset:2px}

/* Shared finishing contract: semantic focus, hover, scrollbar and subtle background glows. */
html[data-vb-mode] {--vb-control-hover:color-mix(in srgb,var(--vb-color-accent) 12%,var(--vb-color-surface-2));--vb-control-selected:color-mix(in srgb,var(--vb-color-accent) 18%,var(--vb-color-surface-1));--vb-button-shadow:0 10px 26px color-mix(in srgb,var(--vb-color-accent) 13%,transparent);--vb-hover-outline:color-mix(in srgb,var(--vb-color-accent) 44%,var(--vb-color-border));--vb-event-glow:color-mix(in srgb,var(--vb-color-accent) 7%,transparent);--vb-soft-scrollbar:color-mix(in srgb,var(--vb-color-accent) 48%,var(--vb-color-border));scrollbar-color:var(--vb-soft-scrollbar) var(--vb-color-surface-1);scrollbar-width:thin;}
html[data-vb-mode] :where(.vfp-public,.vfp-timeline-scroll,.lbf-account-modal,.vcomm-chat-app,.vcomm-message-list,.vcomm-c28-shell,.cm-custom-page,.cm-overlay,.vcomm-notifications-panel){scrollbar-color:var(--vb-soft-scrollbar) var(--vb-color-surface-1);scrollbar-width:thin;}
html[data-vb-mode] :where(.vfp-public,.vcomm-chat-app,.lbf-page,.cm-custom-page) :where(button,a,input,select,textarea):focus-visible{outline:2px solid var(--vb-color-accent);outline-offset:3px;}
html[data-vb-mode] :where(.vfp-public,.vcomm-chat-app,.lbf-page,.cm-custom-page) :where(button,a,input,select,textarea):disabled{opacity:.6;cursor:not-allowed;}
@media(prefers-reduced-motion:reduce){html[data-vb-mode] :where(.vfp-public,.vcomm-chat-app,.lbf-page,.cm-custom-page) *,html[data-vb-mode] :where(.vfp-public,.vcomm-chat-app,.lbf-page,.cm-custom-page) *::before{transition-duration:0.01ms!important;animation-duration:0.01ms!important;}}

/* Next-Pit UI finishing: owned stylesheet, semantic light/dark tokens. */
html[data-vb-mode]{--vb-toolbar-bg:var(--vb-color-surface-1);--vb-toolbar-border:var(--vb-color-border);--vb-toolbar-fg:var(--vb-color-text)}

/* Next-Pit palette finishing: readable brand text, tinted panels and consistent state colors. */
html[data-vb-mode="dark"]{
 --vb-color-accent-text:color-mix(in srgb,var(--vb-color-accent) 65%,white);
 --vb-color-accent-tint:color-mix(in srgb,var(--vb-color-accent) 14%,var(--vb-color-surface-1));
 --vb-color-accent-outline:color-mix(in srgb,var(--vb-color-accent) 48%,var(--vb-color-border));
}
html[data-vb-mode="light"]{
 --vb-color-accent-text:color-mix(in srgb,var(--vb-color-accent) 80%,black);
 --vb-color-accent-tint:color-mix(in srgb,var(--vb-color-accent) 9%,var(--vb-color-surface-1));
 --vb-color-accent-outline:color-mix(in srgb,var(--vb-color-accent) 38%,var(--vb-color-border));
}
html[data-vb-mode]{
 --vb-native-scrollbar:color-mix(in srgb,var(--vb-color-accent) 48%,var(--vb-color-border));
 scrollbar-color:var(--vb-native-scrollbar) var(--vb-color-surface-1);
}
html[data-vb-mode] :where(.vfp-timeline-scroll,.vbpc-dialog,.vcomm-chat-app,.vcomm-message-list,.lbf-page){scrollbar-color:var(--vb-native-scrollbar) var(--vb-color-surface-1)}
