
:root {

  --ncx-brand:              #7C3AED;
  --ncx-brand-ink:          #12131a;
  --ncx-brand-mark:         #6D28D9;

  --ncx-brand-mark-ink:     #ffffff;

  --ncx-bg:                 #f8f8fb;
  --ncx-surface:            #ffffff;
  --ncx-raised:             #ffffff;
  --ncx-sunken:             #f2f2f7;
  --ncx-recess:             #e6e6ee;
  --ncx-row-hover:          #f5f5f9;
  --ncx-row-selected:       #f1ebfe;

  --ncx-border-subtle:      #e6e6ee;
  --ncx-border-strong:      #d5d6e0;
  --ncx-border-control:     #85899b;

  --ncx-scroll-track:       transparent;
  --ncx-scroll-thumb:       color-mix(in srgb, var(--ncx-accent) 30%, var(--ncx-recess));
  --ncx-scroll-thumb-hover: color-mix(in srgb, var(--ncx-accent) 58%, var(--ncx-recess));

  --ncx-text:               #12131a;
  --ncx-text-secondary:     #4a4d5c;
  --ncx-text-muted:         #6b7080;
  --ncx-text-placeholder:   #6b7080;
  --ncx-text-inverse:       #ffffff;
  --ncx-text-disabled:      #9296a8;

  --ncx-accent:             #7C3AED;
  --ncx-accent-hover:       #6D28D9;
  --ncx-accent-active:      #5b21b6;
  --ncx-accent-subtle:      #f1ebfe;
  --ncx-accent-text:        #6D28D9;
  --ncx-accent-border:      #7C3AED;
  --ncx-on-accent:          #ffffff;

  --ncx-success-fg:         #0b7a55;
  --ncx-success-bg:         #e7f8f0;
  --ncx-success-border:     #a7e9cd;
  --ncx-success-solid:      #0b7a55;
  --ncx-success-on-solid:   #ffffff;

  --ncx-warning-fg:         #8a5a06;
  --ncx-warning-bg:         #fdf3e3;
  --ncx-warning-border:     #f5d6a2;

  --ncx-warning-solid:      #f59e0b;
  --ncx-warning-on-solid:   #3d2c00;

  --ncx-pending-fg:         #4a4d5c;
  --ncx-pending-bg:         #f2f2f7;
  --ncx-pending-dot:        #f59e0b;

  --ncx-upgrade-from:       #fbbf24;
  --ncx-upgrade-to:         #f59e0b;
  --ncx-upgrade-ink:        #3d2c00;
  --ncx-upgrade-glow:       0 1px 2px rgba(180,120,6,.28), 0 6px 18px -8px rgba(245,158,11,.70);

  --ncx-danger-fg:          #c0262c;
  --ncx-danger-bg:          #fdecec;
  --ncx-danger-border:      #f7c9cb;
  --ncx-danger-solid:       #c0262c;
  --ncx-danger-on-solid:    #ffffff;

  --ncx-info-fg:            #0b6bb3;
  --ncx-info-bg:            #e8f4fd;
  --ncx-info-border:        #b6dcf8;
  --ncx-info-solid:         #0b6bb3;
  --ncx-info-on-solid:      #ffffff;

  --ncx-switch-knob:        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2385899b'/%3e%3c/svg%3e");
  --ncx-switch-knob-focus:  url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%237C3AED'/%3e%3c/svg%3e");
  --ncx-switch-knob-on:     url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");

  --ncx-select-chevron:     url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234a4d5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");

  --ncx-navbar-toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2312131a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

  --ncx-check-border:       #85899b;

  --ncx-focus:              #7C3AED;
  --ncx-focus-ring:         0 0 0 2px var(--ncx-surface), 0 0 0 4px var(--ncx-focus);
  --ncx-focus-ring-flat:    0 0 0 3px rgba(124, 58, 237, .32);

  --ncx-scrim:              rgba(10, 11, 16, 0.55);
  --ncx-scrim-light:        rgba(10, 11, 16, 0.28);

  --ncx-shadow-sm:          0 1px 2px rgba(16,18,28,.05), 0 4px 12px -6px rgba(16,18,28,.10);
  --ncx-shadow-md:          0 8px 24px -8px rgba(16,18,28,.16), 0 2px 6px -2px rgba(16,18,28,.08);

  --ncx-shadow-accent:      0 1px 2px rgba(124,58,237,.30), 0 6px 18px -8px rgba(124,58,237,.55);

  --ncx-radius-xs:          6px;
  --ncx-radius-sm:          8px;
  --ncx-radius-md:          12px;
  --ncx-radius-lg:          16px;
  --ncx-radius-pill:        999px;

  --ncx-space-0: 0;    --ncx-space-1: 2px;  --ncx-space-2: 4px;
  --ncx-space-3: 6px;  --ncx-space-4: 8px;  --ncx-space-5: 12px;
  --ncx-space-6: 16px; --ncx-space-7: 20px; --ncx-space-8: 24px;
  --ncx-space-9: 32px; --ncx-space-10: 40px; --ncx-space-11: 48px;

  --ncx-font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
              Roboto, 'Helvetica Neue', Arial, sans-serif;
  --ncx-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo,
              Consolas, monospace;

  --ncx-font-brand: 'Outfit', 'IBM Plex Sans', -apple-system,
              BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ncx-fw-brand: 600;
  --ncx-tracking-brand: -0.02em;

  --ncx-fs-display: 22px;  --ncx-lh-display: 30px;
  --ncx-fs-h2:      17px;  --ncx-lh-h2:      24px;
  --ncx-fs-h3:      15px;  --ncx-lh-h3:      22px;
  --ncx-fs-body:  13.5px;  --ncx-lh-body:    20px;
  --ncx-fs-sm:      12px;  --ncx-lh-sm:      17px;
  --ncx-fs-xs:      11px;  --ncx-lh-xs:      16px;
  --ncx-fs-mono:    12px;  --ncx-lh-mono:    18px;

  --ncx-fw-regular:  400;
  --ncx-fw-medium:   500;
  --ncx-fw-semibold: 600;

  --ncx-tracking-tight: -0.012em;
  --ncx-tracking-caps:   0.055em;

  --ncx-fs-hero:     34px;  --ncx-lh-hero:     40px;
  --ncx-fs-section:  24px;  --ncx-lh-section:  30px;
  --ncx-fs-price:    36px;  --ncx-lh-price:    40px;
  --ncx-fs-lead:     16px;  --ncx-lh-lead:     25px;
  --ncx-fs-read:     15px;  --ncx-lh-read:     23px;

  --ncx-preset-violet: #7C3AED;
  --ncx-preset-slate:  #475569;
  --ncx-preset-green:  #0b7a55;
  --ncx-preset-red:    #c0262c;
  --ncx-preset-amber:  #f59e0b;
  --ncx-preset-blue:   #0b6bb3;
  --ncx-preset-light:  #e6e6ee;
  --ncx-preset-dark:   #12131a;

  --ncx-space-12:      64px;
  --ncx-space-13:      80px;
  --ncx-w-public:    1080px;
  --ncx-w-authcard:   400px;
  --ncx-h-public-nav:  60px;

  --ncx-h-topbar:        52px;
  --ncx-h-subheader:     44px;
  --ncx-w-sidebar:      232px;
  --ncx-w-sidebar-rail:  50px;
  --ncx-w-drawer:       292px;
  --ncx-h-row:           44px;
  --ncx-h-row-tall:      56px;
  --ncx-h-control:       36px;
  --ncx-h-control-sm:    30px;
  --ncx-h-control-xs:    26px;
  --ncx-h-control-lg:    42px;
  --ncx-h-nav:           34px;
  --ncx-h-pill:          22px;
  --ncx-h-tap:           44px;
  --ncx-w-content:     1180px;
  --ncx-w-content-wide: 1600px;
  --ncx-w-pane-list:    360px;
  --ncx-w-pane-aside:   320px;

  --ncx-w-teamchat:     320px;
  --ncx-w-teamchat-rail: 32px;
  --ncx-w-teamchat-roster: 196px;

  --ncx-dot:             10px;
  --ncx-dot-lg:          12px;

  --ncx-dur-instant:  0ms;
  --ncx-dur-fast:    120ms;
  --ncx-dur-base:    180ms;
  --ncx-dur-slow:    240ms;
  --ncx-ease:        cubic-bezier(0.2, 0, 0.2, 1);
  --ncx-ease-out:    cubic-bezier(0.05, 0.7, 0.1, 1);
  --ncx-ease-in:     cubic-bezier(0.3, 0, 0.8, 0.15);

  --ncx-z-sticky:   1020;  --ncx-z-topbar: 1030;  --ncx-z-dropdown: 1040;
  --ncx-z-scrim:    1050;  --ncx-z-drawer: 1055;  --ncx-z-modal:    1060;
  --ncx-z-popover:  1070;  --ncx-z-toast:  1080;
}

body.Light { color-scheme: light; }

body.Dark {
  color-scheme: dark;

  --ncx-brand-ink:          #f0f1f5;
  --ncx-brand-mark:         #8B5CF6;

  --ncx-bg:                 #0e0f14;
  --ncx-surface:            #16181f;
  --ncx-raised:             #1d202a;
  --ncx-sunken:             #0b0c11;
  --ncx-recess:             #07080c;
  --ncx-row-hover:          #1c1f28;
  --ncx-row-selected:       #251a4a;

  --ncx-border-subtle:      #23252f;
  --ncx-border-strong:      #2e313d;
  --ncx-border-control:     #474b59;

  --ncx-scroll-track:       transparent;
  --ncx-scroll-thumb:       color-mix(in srgb, var(--ncx-accent) 42%, var(--ncx-surface));
  --ncx-scroll-thumb-hover: color-mix(in srgb, var(--ncx-accent) 70%, var(--ncx-surface));

  --ncx-text:               #f0f1f5;
  --ncx-text-secondary:     #b3b7c4;
  --ncx-text-muted:         #868b9c;
  --ncx-text-placeholder:   #868b9c;
  --ncx-text-inverse:       #ffffff;
  --ncx-text-disabled:      #5f6474;

  --ncx-accent:             #7C3AED;
  --ncx-accent-hover:       #8B5CF6;
  --ncx-accent-active:      #6D28D9;
  --ncx-accent-subtle:      #251a4a;
  --ncx-accent-text:        #b79cf8;
  --ncx-accent-border:      #8B5CF6;
  --ncx-on-accent:          #ffffff;

  --ncx-success-fg:         #4fd3a5;
  --ncx-success-bg:         #10312a;
  --ncx-success-border:     #1d5847;
  --ncx-success-solid:      #0b7a55;
  --ncx-success-on-solid:   #ffffff;

  --ncx-warning-fg:         #e0ab5f;
  --ncx-warning-bg:         #332512;
  --ncx-warning-border:     #5c4320;

  --ncx-warning-solid:      #f59e0b;
  --ncx-warning-on-solid:   #3d2c00;

  --ncx-pending-fg:         #b6bac9;
  --ncx-pending-bg:         #22252f;
  --ncx-pending-dot:        #f59e0b;

  --ncx-upgrade-from:       #fbbf24;
  --ncx-upgrade-to:         #f59e0b;
  --ncx-upgrade-ink:        #3d2c00;
  --ncx-upgrade-glow:       0 1px 2px rgba(0,0,0,.35), 0 6px 20px -8px rgba(245,158,11,.75);

  --ncx-danger-fg:          #f28b8b;
  --ncx-danger-bg:          #3a1a1f;
  --ncx-danger-border:      #6d3036;
  --ncx-danger-solid:       #c0262c;
  --ncx-danger-on-solid:    #ffffff;

  --ncx-info-fg:            #7cc0f0;
  --ncx-info-bg:            #12293d;
  --ncx-info-border:        #245073;
  --ncx-info-solid:         #0b6bb3;
  --ncx-info-on-solid:      #ffffff;

  --ncx-focus:              #a78bfa;
  --ncx-focus-ring-flat:    0 0 0 3px rgba(139, 92, 246, .38);

  --ncx-switch-knob:        url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23868b9c'/%3e%3c/svg%3e");
  --ncx-switch-knob-focus:  url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23a78bfa'/%3e%3c/svg%3e");
  --ncx-select-chevron:     url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b3b7c4' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  --ncx-navbar-toggler-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f0f1f5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  --ncx-check-border:       #7d8294;

  --ncx-scrim:              rgba(0, 0, 0, 0.66);
  --ncx-scrim-light:        rgba(0, 0, 0, 0.42);

  --ncx-shadow-sm:          0 1px 0 rgba(255,255,255,.03) inset, 0 1px 2px rgba(0,0,0,.4);
  --ncx-shadow-md:          0 12px 32px -10px rgba(0,0,0,.7), 0 2px 8px -2px rgba(0,0,0,.5);
  --ncx-shadow-accent:      0 0 0 1px rgba(124,58,237,.45), 0 6px 18px -6px rgba(124,58,237,.55);

  --bs-light-rgb:           11, 12, 17;
  --bs-dark-rgb:            240, 241, 245;
  --bs-body-color-rgb:      240, 241, 245;
  --bs-body-bg-rgb:         14, 15, 20;
  --bs-link-color-rgb:      183, 156, 248;
}

body.Light, body.Dark {
  --bs-body-font-family: var(--ncx-font);
  --bs-body-font-size:   var(--ncx-fs-body);
  --bs-body-line-height: 1.48;
  --bs-body-color:       var(--ncx-text);
  --bs-body-bg:          var(--ncx-bg);
  --bs-border-color:     var(--ncx-border-subtle);
  --bs-border-radius:    var(--ncx-radius-sm);
  --bs-border-radius-sm: var(--ncx-radius-xs);
  --bs-border-radius-lg: var(--ncx-radius-md);

  --bs-border-radius-xl: var(--ncx-radius-lg);
  --bs-border-radius-xxl: var(--ncx-radius-lg);
  --bs-border-width: 1px;
  --bs-border-style: solid;
  --bs-secondary: var(--ncx-text-secondary);
  --bs-navbar-active-color: var(--ncx-accent-text);
  --bs-breadcrumb-divider-color: var(--ncx-text-muted);
  --bs-nav-tabs-border-width: 0;
  --bs-table-color: var(--ncx-text);
  --bs-table-border-color: var(--ncx-border-subtle);
  --bs-pagination-bg: var(--ncx-surface);
  --bs-pagination-active-bg: var(--ncx-accent);
  --bs-pagination-active-border-color: var(--ncx-accent);
  --bs-link-color:       var(--ncx-accent-text);
  --bs-link-hover-color: var(--ncx-accent-hover);
  --bs-primary:          var(--ncx-accent);
  --bs-emphasis-color:   var(--ncx-text);
  --bs-secondary-color:  var(--ncx-text-secondary);
  --bs-tertiary-color:   var(--ncx-text-muted);
  --bs-tertiary-bg:      var(--ncx-sunken);

  --bs-link-color-rgb:      124, 58, 237;
  --bs-primary-rgb:         124, 58, 237;
  --bs-success-rgb:         11, 122, 85;
  --bs-danger-rgb:          192, 38, 44;
  --bs-warning-rgb:         245, 158, 11;
  --bs-info-rgb:            11, 107, 179;
  --bs-light-rgb:           242, 242, 247;
  --bs-dark-rgb:            18, 19, 26;
  --bs-body-color-rgb:      18, 19, 26;
  --bs-body-bg-rgb:         248, 248, 251;
  --bs-focus-ring-color: transparent;
}

@media (min-width: 768px) {
  :root {
    --ncx-fs-hero:    44px;  --ncx-lh-hero:    50px;
    --ncx-fs-section: 28px;  --ncx-lh-section: 34px;
    --ncx-fs-price:   40px;  --ncx-lh-price:   44px;
    --ncx-fs-lead:    17px;  --ncx-lh-lead:    26px;
  }
}

@media (min-width: 1280px) {
  :root {
    --ncx-fs-hero:    56px;  --ncx-lh-hero:    62px;
    --ncx-fs-section: 32px;  --ncx-lh-section: 40px;
    --ncx-fs-lead:    18px;  --ncx-lh-lead:    28px;
  }
}
