/* Marketiism design tokens.
   The ONLY file in the repo allowed to contain colour literals (enforced by ui/tests.py).
   Light is the default. Dark applies when the OS asks for it (unless the user picked light),
   or when any element carries data-theme="dark". data-theme="light" forces light on a subtree. */

:root,
[data-theme="light"] {
  color-scheme: light;

  /* Chrome: console top bar, marketing dark bands, footer */
  --chrome: #10110F;
  --chrome-2: #191B17;
  --chrome-3: #23251F;
  --chrome-line: #33352F;
  --chrome-ink: #FFFFFF;
  --chrome-ink-2: #E9E7DF;
  --chrome-muted: #A3A59C;

  /* Surfaces */
  --bg: #F3F1EB;
  --surface: #FFFFFF;
  --surface-2: #FAF9F5;
  --surface-3: #E9E7DF;   /* hover, zebra, code */
  --surface-sel: #FFF1E6; /* selected rows, active nav */

  /* Lines */
  --line: #D8D6CF;
  --line-strong: #B5B2A8;
  --line-input: #7D7F76;  /* form control borders: 3:1 against surface */

  /* Text */
  --ink: #10110F;
  --ink-2: #3A3C36;
  --muted: #5F615A;
  --ink-inverse: #FFFFFF;

  /* Brand */
  --brand: #FF6A00;
  --brand-ink: #B84A00;
  --brand-soft: #FFF1E6;
  --brand-2: #1D58D9;          /* brand blue: second dot of the "ii" mark and logo (brand kit) */
  --brand-btn: #10110F;        /* primary button fill = brand ink (marketiism.com): white text 18:1 */
  --brand-btn-hover: #33352F;
  --brand-btn-ink: #FFFFFF;

  /* Interactive */
  --link: #1D58D9;
  --link-hover: #163F9C;
  --focus: #1D58D9;
  --focus-width: 2px;
  --selection: #FFD9BD;

  /* Status (text/dot colour + background pair) */
  --success: #037F0C;  --success-bg: #EFF9F0;  --success-line: #9FD6A5;
  --warning: #8D6605;  --warning-bg: #FFF8E1;  --warning-line: #E8C774;
  --error: #D91515;    --error-bg: #FFF1F1;    --error-line: #F2A3A3;
  --info: #0972D3;     --info-bg: #F0F7FF;     --info-line: #9CC7F2;
  --stopped: #5F6B7A;  --stopped-bg: #F0F2F4;  --stopped-line: #C6CED6;

  /* Data visualisation */
  --data-1: #1D58D9;
  --data-1-soft: #DDE6FA;
  --data-2: #FF6A00;
  --data-3: #037F0C;
  --data-grid: #E6E4DD;

  /* Overlays */
  --scrim: #10110F73;
  --shadow-pop: 0 1px 2px #10110F14, 0 8px 24px -6px #10110F33;

  /* Logo (marketiism.com, 15 Oct): logo-light.png only reads on black, so every logo sits on this plate in both themes */
  --logo-bg: #10110F;
  --logo-h: 16px;
  --logo-mark: 28px;

  /* Shape */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Space: 4px scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-7: 32px; --s-8: 40px; --s-9: 48px; --s-10: 64px;

  /* Type */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;   /* brand: headings (marketiism.com) */
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-12: 12px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px; --fs-20: 20px;
  --fs-24: 24px; --fs-32: 32px; --fs-44: 44px; --fs-56: 56px;
  --fs-13: 13px;                  /* WP-15: table meta, sub-lines, phone card labels */
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-tight: 1.15; --lh-snug: 1.3; --lh: 1.5; --lh-loose: 1.6;
  --track-tight: -0.02em; --track-display: -0.035em; --track-caps: 0.06em;

  /* Layout */
  --topbar-h: 48px;
  --side-w: 240px;
  --side-w-rail: 56px;
  --content-max: 1280px;
  --wrap: 1200px;
  --focus-narrow: 440px;
  --focus-wide: 960px;
  --control-h: 32px;
  --control-h-sm: 28px;
  --control-h-lg: 40px;

  /* Layers */
  --z-sticky: 20; --z-top: 40; --z-menu: 50; --z-drawer: 60; --z-modal: 80; --z-toast: 90;
  --z-fab: 55; --z-cookie: 58;   /* WP-9D: below drawers and dialogs, above page content */
  --z-sidetab: 30;                /* 26 Oct: side tabs, under menus, drawers, cookie bar and chat */
  --z-install: 57;                /* WP-10F: floating install banner, under the cookie bar */
  --touch-min: 44px;              /* WP-10F: minimum touch target on phones (console top bar, nav, menus) */

  /* Floating action button, cookie bar, OTP input (WP-9D) */
  --fab-size: 56px;
  --fab-size-sm: 52px;
  --fab-gap: 16px;                 /* distance from the viewport edge (plus the safe-area inset) */
  --fab-success: #15803D;          /* chat FAB fill: white text 5.0:1 */
  --fab-success-hover: #116A32;
  --fab-success-ink: #FFFFFF;
  --fab-ring: #FFFFFF00;           /* outline that separates the FAB from dark pages */
  --cookie-max: 960px;
  --otp-size: 28px;
  --otp-track: 0.5em;
  --meter-h: 8px;

  /* WP-15: command palette, stacked phone tables, touch controls */
  --pal-w: 640px;
  --pal-h: 560px;
  --pal-top: 12vh;
  --pal-row-h: 40px;
  --stack-label-max: 45%;
  --empty-max: 520px;

  /* WP-19D0: flow builder geometry (bot canvas). The canvas JS reads the same numbers to place edges. */
  --flow-node-w: 240px;
  --flow-head-h: 48px;      /* node header (input port sits at its middle) */
  --flow-body-h: 44px;      /* node summary, two lines max */
  --flow-row-h: 32px;       /* one output row (button, answer, branch) */
  --flow-port: 12px;
  --flow-port-hit: 28px;    /* invisible touch/pointer area around a port */
  --flow-grid: 20px;
  --flow-h: 640px;
  --flow-palette-w: 232px;
  --flow-inspector-w: 340px;
  --flow-mini-w: 168px;
  --flow-mini-h: 104px;

  /* Motion */
  --t: 150ms;
  --t-slow: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Motion tokens (WP-21 P1). --t/--t-slow/--ease above stay as they are; new ones are additive. */
  --t-fast: 120ms;
  --t-enter: 260ms;
  --t-exit: 160ms;
  --t-chart: 400ms;
  --ease-out: var(--ease);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-std: cubic-bezier(.4, 0, .2, 1);
  --dist-1: 4px;
  --dist-2: 8px;
  --stagger: 40ms;
}

[data-theme="dark"] {
  color-scheme: dark;
  --chrome: #0A0B09;
  --chrome-2: #151613;
  --chrome-3: #1F211C;
  --chrome-line: #2E302A;
  --chrome-ink: #FFFFFF;
  --chrome-ink-2: #D8D6CF;
  --chrome-muted: #A3A59C;
  --bg: #0E0F0D;
  --surface: #171815;
  --surface-2: #1C1E1A;
  --surface-3: #25271F;
  --surface-sel: #2B1E12;
  --line: #2E302A;
  --line-strong: #44463F;
  --line-input: #6F7168;
  --ink: #F3F1EB;
  --ink-2: #D8D6CF;
  --muted: #A3A59C;
  --ink-inverse: #10110F;
  --brand: #FF6A00;
  --brand-ink: #FF8F42;
  --brand-soft: #2B1A0C;
  --brand-btn: #F3F1EB;
  --brand-btn-hover: #FFFFFF;
  --brand-btn-ink: #10110F;
  --link: #7EA2F2;
  --link-hover: #AFC6F7;
  --focus: #7EA2F2;
  --selection: #5A2E0C;
  --success: #5FCB6B;  --success-bg: #12271A;  --success-line: #2D5B36;
  --warning: #E8B53A;  --warning-bg: #2C2410;  --warning-line: #5E4B1B;
  --error: #FF7A7A;    --error-bg: #331718;    --error-line: #6B2C2E;
  --info: #539FE5;     --info-bg: #10233A;     --info-line: #24486F;
  --stopped: #8D99A8;  --stopped-bg: #1F2731;  --stopped-line: #3D4A57;
  --data-1: #7EA2F2;
  --data-1-soft: #1A2848;
  --data-2: #FF8F42;
  --data-3: #5FCB6B;
  --data-grid: #262821;
  --scrim: #000000A6;
  --shadow-pop: 0 1px 2px #00000066, 0 12px 32px -8px #000000A6;
  --fab-ring: #FFFFFF3D;          /* WP-9D: light hairline so the FAB reads on dark pages */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --chrome: #0A0B09;
    --chrome-2: #151613;
    --chrome-3: #1F211C;
    --chrome-line: #2E302A;
    --chrome-ink: #FFFFFF;
    --chrome-ink-2: #D8D6CF;
    --chrome-muted: #A3A59C;
    --bg: #0E0F0D;
    --surface: #171815;
    --surface-2: #1C1E1A;
    --surface-3: #25271F;
    --surface-sel: #2B1E12;
    --line: #2E302A;
    --line-strong: #44463F;
    --line-input: #6F7168;
    --ink: #F3F1EB;
    --ink-2: #D8D6CF;
    --muted: #A3A59C;
    --ink-inverse: #10110F;
    --brand: #FF6A00;
    --brand-ink: #FF8F42;
    --brand-soft: #2B1A0C;
    --brand-btn: #F3F1EB;
    --brand-btn-hover: #FFFFFF;
    --brand-btn-ink: #10110F;
    --link: #7EA2F2;
    --link-hover: #AFC6F7;
    --focus: #7EA2F2;
    --selection: #5A2E0C;
    --success: #5FCB6B;  --success-bg: #12271A;  --success-line: #2D5B36;
    --warning: #E8B53A;  --warning-bg: #2C2410;  --warning-line: #5E4B1B;
    --error: #FF7A7A;    --error-bg: #331718;    --error-line: #6B2C2E;
    --info: #539FE5;     --info-bg: #10233A;     --info-line: #24486F;
    --stopped: #8D99A8;  --stopped-bg: #1F2731;  --stopped-line: #3D4A57;
    --data-1: #7EA2F2;
    --data-1-soft: #1A2848;
    --data-2: #FF8F42;
    --data-3: #5FCB6B;
    --data-grid: #262821;
    --scrim: #000000A6;
    --shadow-pop: 0 1px 2px #00000066, 0 12px 32px -8px #000000A6;
    --fab-ring: #FFFFFF3D;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --t: 0ms; --t-slow: 0ms; --t-fast: 0ms; --t-enter: 0ms; --t-exit: 0ms; --t-chart: 0ms; --stagger: 0ms; }
}

/* Public site theme (WP-4S). Scoped to body.site, so the console and focus shells never see these.
   Dark only (owner, 15 Oct): these are the dark values; the light set below exists only for a nested
   data-theme="light" scope (styleguide samples). site-chrome.css maps the core tokens (--ink, --link, --brand-btn ...) onto these inside .site. */
.site {
  --site-font: "DM Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --site-font-display: "Space Grotesk", "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;   /* brand headings (marketiism.com) */
  --site-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;   /* WP-9D: no web mono font on the site */
  --site-label: "Space Grotesk", "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif;   /* marketiism.com: labels, nav and buttons are Space Grotesk, not mono */
  /* Type (WP-PUB-AWS phase 0, 8 Nov): calmer AWS-style scale. Headings medium/semibold, not bold; looser tracking. */
  --site-fs-display: clamp(34px, 4.2vw, 56px);   /* was clamp(36px, 5.3vw, 68px) */
  --site-fs-display-page: clamp(30px, 3.2vw, 44px);   /* was clamp(32px, 3.9vw, 51px) */
  --site-fs-h2: clamp(26px, 2.8vw, 36px);   /* was clamp(30px, 4vw, 52px) */
  --site-fs-h3: 20px;
  --site-fw-display: 500;   /* page H1s */
  --site-fw-head: 600;   /* section H2s, card titles */
  --site-lh-display: 1.1;
  --site-lh-head: 1.15;
  --site-track-display: -0.02em;
  --site-fs-eyebrow: 12px;
  --site-track-eyebrow: 0.08em;
  --site-r-card: 12px;   /* AWS is flatter; was 24px */
  --site-r-section: 24px;
  --site-r-panel: 16px;
  --site-pill-h: 64px;
  --site-hero-wash: 960px;
  --site-space-band: 96px;
  --site-space-band-sm: 64px;
  --site-gap-head: 32px;   /* section head to content */
  /* Chrome sizes: sticky offsets and scroll-margin-top use these */
  --site-util-h: 36px;
  --site-hdr-h: 64px;
  --site-subnav-h: 52px;
  --site-mega-rail-w: 260px;   /* mega menu category rail */
  /* Layers: one ordered list so header, menus, scrim and floating UI stop colliding */
  --site-z-hdr: 40; --site-z-scrim: 35;   /* scrim sits under the sticky header, over the page and side tabs */
  --site-scrim-blur: 6px;
  --site-t-menu: 180ms;
  --site-t-lift: 260ms;
  --site-t-float: 9s;
  --wrap: 1440px;   /* 17 Oct (owner): one content width for every public page */
  /* Motion scale (1 Nov, transitions.dev): web/static/web/motion.js + home.js */
  --m-stagger: 40ms; --m-quick: 150ms; --m-fast: 250ms; --m-slow: 400ms; --m-very-slow: 500ms;
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1); --m-ease-bounce: cubic-bezier(0.34, 1.36, 0.64, 1);
  --m-rise: 12px; --m-blur: 2px;
  --site-bg: #120C26;
  --site-surface: #1C1438;
  --site-surface-2: #271C4A;
  --site-ink: #F6F3FF;
  --site-ink-2: #DCD4F7;
  --site-muted: #ADA3D1;
  --site-line: #33285A;
  --site-line-strong: #4A3D7A;
  --site-accent: #FF6A00;
  --site-accent-ink: #FF9A52;
  --site-accent-soft: #3B1E33;
  --site-btn: #FFFFFF;
  --site-btn-hover: #EFEAFF;
  --site-btn-ink: #160F2E;
  --site-hero-1: #120C26;
  --site-hero-2: #1C1438;
  --site-hero-3: #3A1D4A;
  --site-hero-4: #271C4A;
  --site-glass: #FFFFFF1A;
  --site-glass-2: #FFFFFF0D;
  --site-glass-line: #FFFFFF33;
  --site-glass-tint: #FF6A0033;
  --site-glass-tint-2: #D6C9B726;
  --site-glass-shade: #0A061A66;
  --site-pill-bg: #1C1438E6;
  --site-chrome: #0D0820;
  --site-chrome-2: #150E2D;
  --site-chrome-3: #1F1640;
  --site-chrome-line: #2C2252;
  --site-chrome-ink: #FFFFFF;
  --site-chrome-ink-2: #DCD4F7;
  --site-chrome-muted: #ADA3D1;
  --site-chrome-accent: #FF6A00;
  --site-shadow-nav: 0 2px 6px #07041299, 0 18px 40px -16px #070412CC;
  --site-shadow-card: 0 1px 2px #07041280, 0 24px 48px -32px #070412CC;
  --site-shadow-lift: 0 2px 4px #07041299, 0 32px 60px -28px #070412E6;
  --site-glow: #FF6A0059;
  --site-glow-soft: #FF6A0024;
  --site-glow-line: #FF8F4280;
  --site-glow-ink-1: #FFB27A;
  --site-glow-ink-2: #FF6A00;
  --site-grid-line: #FFFFFF0D;
  --site-scrim: #0A061AB3;   /* page dimmer behind an open mega menu */
  /* Vivid layer (WP-PUB-AWS, 9 Nov, owner: "more attractive, not only a plain black website"). Brand orange leads; amber,
     pink, violet and the brand blue join it in gradients, glows and illustrations. Values tuned for the dark site. */
  --site-c-amber: #FFB547;
  --site-c-orange: #FF6A00;
  --site-c-pink: #FF4D8D;
  --site-c-violet: #8B5CF6;
  --site-c-blue: #4F86F7;
  --site-c-teal: #2DD4BF;
  --site-c-lemon: #F9E27D;
  --site-grad-brand: linear-gradient(100deg, #FFB547 0%, #FF6A00 35%, #FF4D8D 70%, #8B5CF6 100%);
  --site-grad-cool: linear-gradient(100deg, #F9E27D 0%, #9BF2C9 50%, #7FE3F0 100%);   /* active pills (AWS tab look) */
  --site-grad-text: linear-gradient(100deg, #F6F3FF 0%, #F6F3FF 45%, #FFB547 65%, #FF6A00 80%, #FF4D8D 100%);
  --site-grad-line: linear-gradient(90deg, transparent, #FF6A00 20%, #FF4D8D 50%, #8B5CF6 80%, transparent);
  --site-aurora-1: #FF6A0059;
  --site-aurora-2: #FF4D8D33;
  --site-aurora-3: #8B5CF64D;
  --site-aurora-4: #4F86F72E;
  --site-glow-hover: -10px 0 36px -8px #FF4D8D99, 10px 0 36px -8px #FF6A0099, 0 18px 40px -16px #8B5CF680;
  --site-chip-bg: #FFFFFF14;
  --site-dot: #FFFFFF14;   /* dotted vector grid */
  --site-on-cool: #160F2E;   /* text on the cool gradient pill */
  --site-t-aurora: 22s;
  --site-t-shine: 900ms;
  --site-t-draw: 1600ms;
  --site-wash-1: #FF6A001A;   /* large soft colour washes on bands */
  --site-wash-2: #8B5CF61F;
  --site-wash-3: #4F86F71A;
  --site-sheen: #FFB54773;   /* light sweep across the primary button */
  --site-r-foot: 32px;
  /* One colour per product family (Grow amber, Engage teal, Sell pink, Run blue, AI violet): menu, cards, icons, product pages */
  --site-c-amber-soft: #FFB54724;
  --site-c-teal-soft: #2DD4BF24;
  --site-c-pink-soft: #FF4D8D24;
  --site-c-blue-soft: #4F86F724;
  --site-c-violet-soft: #8B5CF62E;
  /* Direction B (owner, 9 Nov): deep colour, not black. Indigo/plum page, violet and plum glows behind heroes,
     orange-to-pink main buttons, glass cards. Orange stays the brand accent. */
  --site-glow-violet: #6A35D6B3;
  --site-glow-plum: #B8336A8C;
  --site-glow-indigo: #3B4BD666;
  --site-grad-cta: linear-gradient(100deg, #C2410C 0%, #BE185D 100%);
  --site-grad-cta-hover: linear-gradient(100deg, #A8380A 0%, #9D174D 100%);
  --site-on-cta: #FFFFFF;   /* 17 Nov (owner, final): white on the deeper orange-to-pink buttons, AA */
  --site-glass-card: #FFFFFF12;
  --site-glass-card-line: #FFFFFF2E;
  --site-hdr-bg: #000000;   /* owner, 9 Nov: the header (utility strip + bar) is plain black */
  --site-hdr-line: #FFFFFF1A;
  --site-logo-chip: #FFFFFF;   /* brand logos keep their own colours on white chips */
  --site-logo-chip-ink: #1B1530;
  --site-t-marquee: 70s;   /* integrations carousel, one full loop */
  /* WhatsApp's own dark-mode colours for the hero phone (owner, 9 Nov: "real mobile screen and official whatsapp
     colours"): header, wallpaper, bubbles, text, ticks, green actions. Used only by .hscene in site-vivid.css. */
  --wa-header: #1F2C34;
  --wa-bg: #0B141A;
  --wa-in: #1F2C34;
  --wa-out: #005C4B;
  --wa-text: #E9EDEF;
  --wa-meta: #8696A0;
  --wa-tick: #53BDEB;
  --wa-green: #00A884;
  --wa-icon: #AEBAC1;
  --wa-input: #2A3942;
  --wa-chip: #182229;
  --wa-divider: #FFFFFF14;
  --wa-doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23FFFFFF' stroke-opacity='.05' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='16' cy='18' r='6'/%3E%3Cpath d='M44 12c4 6 10 6 14 0M70 20l6-8 6 8M96 14h12M102 8v12'/%3E%3Cpath d='M10 52c6-6 12 6 18 0s12 6 18 0'/%3E%3Crect x='62' y='44' width='14' height='10' rx='3'/%3E%3Cpath d='M92 48l4 4 8-8M18 84l6 6m0-6l-6 6M48 80a6 6 0 1 0 12 0a6 6 0 1 0-12 0M76 90c2-8 12-8 14 0'/%3E%3Cpath d='M104 82l3 6 6 1-4 4 1 6-6-3-6 3 1-6-4-4 6-1z'/%3E%3Cpath d='M30 108h12M66 104c4 4 8 4 12 0M98 110l8-6'/%3E%3C/svg%3E");
  --phone-bezel: #121214;
  --phone-edge: #3A3A40;
  --phone-island: #000000;
  --phone-glass: #FFFFFF14;
}
/* 14 Nov (owner): light by choice, indigo family like the light console. Applies when the person picks Light, or picks
   "Match device" on a light-mode device. The header stays the dark brand bar in both themes. */
.site [data-theme="light"], [data-theme="light"] .site,
:root .site.site[data-theme="light"] {
  --site-bg: #F7F5FD;
  --site-surface: #FFFFFF;
  --site-surface-2: #EFEBF8;
  --site-ink: #1A1530;
  --site-ink-2: #3D3658;
  --site-muted: #5F5878;
  --site-line: #E4DFF0;
  --site-line-strong: #C9C1DE;
  --site-accent: #FF6A00;
  --site-accent-ink: #C2410C;
  --site-accent-soft: #FFEDE0;
  --site-btn: #1A1530;
  --site-btn-hover: #2E2652;
  --site-btn-ink: #FFFFFF;
  --site-hero-1: #F7F5FD;
  --site-hero-2: #EFEBF8;
  --site-hero-3: #F6E3EF;
  --site-hero-4: #FFF1E6;
  --site-glass: #FFFFFFB3;
  --site-glass-2: #FFFFFF66;
  --site-glass-line: #E4DFF0;
  --site-glass-tint: #FF6A0026;
  --site-glass-tint-2: #8B5CF61A;
  --site-glass-shade: #1A15301A;
  --site-pill-bg: #FFFFFFE6;
  --site-chrome: #0D0820;
  --site-chrome-2: #150E2D;
  --site-chrome-3: #1F1640;
  --site-chrome-line: #2C2252;
  --site-chrome-ink: #FFFFFF;
  --site-chrome-ink-2: #DCD4F7;
  --site-chrome-muted: #ADA3D1;
  --site-chrome-accent: #FF6A00;
  --site-shadow-nav: 0 2px 6px #1A15300F, 0 18px 40px -16px #1A153033;
  --site-shadow-card: 0 1px 2px #1A15300D, 0 24px 48px -32px #1A153040;
  --site-shadow-lift: 0 2px 4px #1A153014, 0 32px 60px -28px #1A153059;
  --site-glow: #FF6A0040;
  --site-glow-soft: #FF6A001A;
  --site-glow-line: #FF8F4280;
  --site-glow-ink-1: #C2410C;
  --site-glow-ink-2: #FF6A00;
  --site-grid-line: #1A15300D;
  --site-grad-text: linear-gradient(100deg, #1A1530 0%, #1A1530 45%, #E07A00 65%, #FF6A00 80%, #E63D7F 100%);
  --site-chip-bg: #1A15300D;
  --site-dot: #1A153014;
  --site-wash-1: #FF6A0014;
  --site-wash-2: #8B5CF614;
  --site-wash-3: #4F86F714;
  --site-aurora-1: #FF6A0026;
  --site-aurora-2: #FF4D8D1F;
  --site-aurora-3: #8B5CF626;
  --site-aurora-4: #4F86F71A;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .site {
    --site-bg: #F7F5FD;
    --site-surface: #FFFFFF;
    --site-surface-2: #EFEBF8;
    --site-ink: #1A1530;
    --site-ink-2: #3D3658;
    --site-muted: #5F5878;
    --site-line: #E4DFF0;
    --site-line-strong: #C9C1DE;
    --site-accent: #FF6A00;
    --site-accent-ink: #C2410C;
    --site-accent-soft: #FFEDE0;
    --site-btn: #1A1530;
    --site-btn-hover: #2E2652;
    --site-btn-ink: #FFFFFF;
    --site-hero-1: #F7F5FD;
    --site-hero-2: #EFEBF8;
    --site-hero-3: #F6E3EF;
    --site-hero-4: #FFF1E6;
    --site-glass: #FFFFFFB3;
    --site-glass-2: #FFFFFF66;
    --site-glass-line: #E4DFF0;
    --site-glass-tint: #FF6A0026;
    --site-glass-tint-2: #8B5CF61A;
    --site-glass-shade: #1A15301A;
    --site-pill-bg: #FFFFFFE6;
    --site-chrome: #0D0820;
    --site-chrome-2: #150E2D;
    --site-chrome-3: #1F1640;
    --site-chrome-line: #2C2252;
    --site-chrome-ink: #FFFFFF;
    --site-chrome-ink-2: #DCD4F7;
    --site-chrome-muted: #ADA3D1;
    --site-chrome-accent: #FF6A00;
    --site-shadow-nav: 0 2px 6px #1A15300F, 0 18px 40px -16px #1A153033;
    --site-shadow-card: 0 1px 2px #1A15300D, 0 24px 48px -32px #1A153040;
    --site-shadow-lift: 0 2px 4px #1A153014, 0 32px 60px -28px #1A153059;
    --site-glow: #FF6A0040;
    --site-glow-soft: #FF6A001A;
    --site-glow-line: #FF8F4280;
    --site-glow-ink-1: #C2410C;
    --site-glow-ink-2: #FF6A00;
    --site-grid-line: #1A15300D;
    --site-grad-text: linear-gradient(100deg, #1A1530 0%, #1A1530 45%, #E07A00 65%, #FF6A00 80%, #E63D7F 100%);
    --site-chip-bg: #1A15300D;
    --site-dot: #1A153014;
    --site-wash-1: #FF6A0014;
    --site-wash-2: #8B5CF614;
    --site-wash-3: #4F86F714;
    --site-aurora-1: #FF6A0026;
    --site-aurora-2: #FF4D8D1F;
    --site-aurora-3: #8B5CF626;
    --site-aurora-4: #4F86F71A;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site { --site-t-lift: 0ms; }
}

/* ============================================================ Console theme (WP-6T)
   Scoped to body.console only: the public site and focus shells keep the tokens above.
   Navy collapsible sidebar, white topbar, blue primary, 14/10px radii, soft card shadow. */
.console {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-3: #F1F4F9;
  --surface-sel: #EAF1FF;
  --line: #E6E9F0;
  --line-strong: #CBD2DE;
  --line-input: #8592A6;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6B80;   /* WP-15 (A1): 4.8:1 or better on every console surface incl. --bg, --surface-3, --surface-sel */
  --brand-btn: #2563EB;          /* primary buttons are blue in the console; coral stays on the logo */
  --brand-btn-hover: #1D4ED8;
  --brand-btn-ink: #FFFFFF;
  --link: #2563EB;
  --link-hover: #1E40AF;
  --focus: #2563EB;
  --selection: #CFE0FF;
  --info: #0369A1;     --info-bg: #EFF8FF;     --info-line: #A9D6F5;
  --success: #15803D;  --success-bg: #ECFDF3;  --success-line: #A6E3BC;
  --warning: #B45309;  --warning-bg: #FFF7E8;  --warning-line: #F3CD8C;
  --error: #DC2626;    --error-bg: #FEF2F2;    --error-line: #F5B5B5;
  --data-1: #2563EB;
  --data-1-soft: #DCE7FD;
  --data-2: #7C3AED;
  --data-grid: #EDF0F5;
  --shadow-card: 0 1px 2px #0F172A0A, 0 4px 16px #0F172A0A;
  --shadow-pop: 0 2px 4px #0F172A0F, 0 16px 40px -8px #0F172A33;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --topbar-h: 64px;
  --side-w: 256px;
  --side-w-rail: 72px;
  --control-h: 36px;
  --control-h-sm: 30px;
  --content-max: 1360px;
  --primary-soft: #EAF1FF;
  --accent: #7C3AED;
  --accent-soft: #F1EAFE;
  /* Sidebar */
  --side-bg: #F3F4F6;             /* WP-21: light grey sidebar (owner 13 Oct) */
  --side-line: #E5E7EB;
  --side-ink: #111827;
  --side-ink-2: #374151;
  --side-muted: #6B7280;
  --side-hover: #E5E7EB;
  --side-active: #2563EB;
  --side-active-ink: #FFFFFF;
  --side-label: #6B7280;          /* section labels */
  --primary-glow: #2563EB33;      /* WP-21: soft shadow under primary buttons */
  /* Topbar */
  --top-bg: #FFFFFF;
  --top-field: #F1F4F9;
  /* KPI icon tiles (ink + soft background) */
  --tile-blue: #2563EB;    --tile-blue-bg: #EAF1FF;
  --tile-violet: #7C3AED;  --tile-violet-bg: #F1EAFE;
  --tile-green: #15803D;   --tile-green-bg: #E7F8EE;
  --tile-amber: #B45309;   --tile-amber-bg: #FFF3E0;
  --tile-red: #DC2626;     --tile-red-bg: #FDECEC;
  --tile-cyan: #0369A1;    --tile-cyan-bg: #E3F4FC;
}
[data-theme="dark"] .console, .console[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #111A2E;
  --surface-2: #142038;
  --surface-3: #1A2740;
  --surface-sel: #172554;
  --line: #1F2A44;
  --line-strong: #33415F;
  --line-input: #5B6B8A;
  --ink: #E6EBF5;
  --ink-2: #C1CADB;
  --muted: #94A3B8;
  --ink-inverse: #0B1220;
  --brand-btn: #2563EB;
  --brand-btn-hover: #3B82F6;
  --link: #6EA2FF;
  --link-hover: #A5C4FF;
  --focus: #6EA2FF;
  --selection: #1E3A8A;
  --info: #5BB8EE;     --info-bg: #0C2236;     --info-line: #1D4A6B;
  --success: #4ADE80;  --success-bg: #0D2618;  --success-line: #1F5233;
  --warning: #F5B54A;  --warning-bg: #2A1E0B;  --warning-line: #5C421A;
  --error: #F87171;    --error-bg: #2D1215;    --error-line: #63272C;
  --data-1: #6EA2FF;
  --data-1-soft: #1A2C55;
  --data-2: #A78BFA;
  --data-grid: #1C2740;
  --shadow-card: 0 1px 2px #0000004D;
  --shadow-pop: 0 2px 4px #00000066, 0 16px 40px -8px #000000A6;
  --primary-soft: #172554;
  --accent: #A78BFA;
  --accent-soft: #261A47;
  --side-bg: #111827;
  --side-line: #1F2937;
  --side-hover: #1F2937;
  --side-ink: #F9FAFB;
  --side-ink-2: #D1D5DB;
  --side-muted: #9CA3AF;
  --side-label: #9CA3AF;
  --top-bg: #111A2E;
  --top-field: #0B1220;
  --tile-blue: #6EA2FF;    --tile-blue-bg: #172554;
  --tile-violet: #A78BFA;  --tile-violet-bg: #261A47;
  --tile-green: #4ADE80;   --tile-green-bg: #0D2618;
  --tile-amber: #F5B54A;   --tile-amber-bg: #2A1E0B;
  --tile-red: #F87171;     --tile-red-bg: #2D1215;
  --tile-cyan: #5BB8EE;    --tile-cyan-bg: #0C2236;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .console {
    --bg: #0B1220;
    --surface: #111A2E;
    --surface-2: #142038;
    --surface-3: #1A2740;
    --surface-sel: #172554;
    --line: #1F2A44;
    --line-strong: #33415F;
    --line-input: #5B6B8A;
    --ink: #E6EBF5;
    --ink-2: #C1CADB;
    --muted: #94A3B8;
    --ink-inverse: #0B1220;
    --brand-btn: #2563EB;
    --brand-btn-hover: #3B82F6;
    --link: #6EA2FF;
    --link-hover: #A5C4FF;
    --focus: #6EA2FF;
    --selection: #1E3A8A;
    --info: #5BB8EE;     --info-bg: #0C2236;     --info-line: #1D4A6B;
    --success: #4ADE80;  --success-bg: #0D2618;  --success-line: #1F5233;
    --warning: #F5B54A;  --warning-bg: #2A1E0B;  --warning-line: #5C421A;
    --error: #F87171;    --error-bg: #2D1215;    --error-line: #63272C;
    --data-1: #6EA2FF;
    --data-1-soft: #1A2C55;
    --data-2: #A78BFA;
    --data-grid: #1C2740;
    --shadow-card: 0 1px 2px #0000004D;
    --shadow-pop: 0 2px 4px #00000066, 0 16px 40px -8px #000000A6;
    --primary-soft: #172554;
    --accent: #A78BFA;
    --accent-soft: #261A47;
    --side-bg: #111827;
    --side-line: #1F2937;
    --side-hover: #1F2937;
    --side-ink: #F9FAFB;
    --side-ink-2: #D1D5DB;
    --side-muted: #9CA3AF;
    --side-label: #9CA3AF;
    --top-bg: #111A2E;
    --top-field: #0B1220;
    --tile-blue: #6EA2FF;    --tile-blue-bg: #172554;
    --tile-violet: #A78BFA;  --tile-violet-bg: #261A47;
    --tile-green: #4ADE80;   --tile-green-bg: #0D2618;
    --tile-amber: #F5B54A;   --tile-amber-bg: #2A1E0B;
    --tile-red: #F87171;     --tile-red-bg: #2D1215;
    --tile-cyan: #5BB8EE;    --tile-cyan-bg: #0C2236;
  }
}

/* Auth shell side panel (WP-6A). Brand ink-black in both themes (marketiism.com, 15 Oct); text values pass AA on --auth-side-bg. */
.auth-shell {
  --auth-side-bg: #10110F;
  --auth-side-bg-2: #23251F;
  --auth-side-ink: #FFFFFF;
  --auth-side-muted: #D8D6CF;
  --auth-side-check: #FF6A00;
  --auth-side-check-bg: #2B1A0C;
  --auth-side-line: #FFFFFF26;
  --auth-card-w: 420px;
}

/* ============================================================================ Storefront (WP-11D)
   Online stores on store domains: body.store + .store--<theme> + .store--d-<density>. Five themes, light only
   (the store shell renders data-theme="light"; a merchant dark background flips color-scheme via store_style).
   ui/storefront.py parses the `.store--<theme>` colour blocks below to validate merchant overrides, so keep one
   `--st-name: #rrggbb;` per declaration. Every value here passes WCAG AA (ui/test_wp11d.py checks it). */
.store {
  --st-ff-system: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st-ff-inter: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st-ff-poppins: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st-ff-nunito: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --st-ff-mukta: "Mukta", "Noto Sans Devanagari", system-ui, sans-serif;
  --st-ff-hind: "Hind", "Noto Sans Devanagari", system-ui, sans-serif;
  --st-ff-lora: "Lora", Georgia, "Times New Roman", serif;
  --st-ff-playfair: "Playfair Display", Georgia, "Times New Roman", serif;
  --st-ff-merriweather: "Merriweather", Georgia, "Times New Roman", serif;

  --st-r-none: 0px; --st-r-sm: 4px; --st-r-md: 8px; --st-r-lg: 14px; --st-r-full: 999px;
  --st-wrap: 1280px;
  --st-wrap-wide: 1600px;
  --st-header-h: 64px;
  --st-header-h-sm: 56px;
  --st-logo-h: 36px;
  --st-search-w: 560px;
  --st-thumb: 64px;
  --st-swatch: 32px;
  --st-drawer-w: 420px;
  --st-filters-w: 264px;
  --st-card-min: 220px;
  --st-card-min-sm: 150px;
  --st-line-img: 72px;
  --st-map-h: 220px;
  --st-zoom: 1.8;
  --st-head-weight: 700;
  --st-head-track: -0.01em;
  --st-head-case: none;
  --st-nav-track: 0;
  --st-img-ratio: 1 / 1;
  --st-scrim: #0B1220A6;

  /* density (regular) */
  --st-gap: 16px;
  --st-pad: 12px;
  --st-section: 48px;
}
.store--d-compact { --st-gap: 10px; --st-pad: 8px; --st-section: 32px; --st-card-min: 180px; }
.store--d-airy { --st-gap: 28px; --st-pad: 16px; --st-section: 72px; --st-card-min: 240px; }

.store--shop {
  --st-bg: #F5F6F8;
  --st-surface: #FFFFFF;
  --st-surface-2: #F0F2F5;
  --st-surface-3: #E7EAEE;
  --st-header-bg: #FFFFFF;
  --st-ink: #14181F;
  --st-ink-2: #3D4654;
  --st-muted: #596271;
  --st-line: #DDE1E7;
  --st-line-input: #858E9C;
  --st-primary: #0B57D0;
  --st-primary-hover: #0842A0;
  --st-primary-ink: #FFFFFF;
  --st-accent: #A54B07;
  --st-accent-ink: #FFFFFF;
  --st-link: #0B57D0;
  --st-focus: #0B57D0;
  --st-sale: #B42318;
  --st-sale-ink: #FFFFFF;
  --st-ok: #11723A;
  --st-low: #8A5A00;
  --st-out: #B42318;
  --st-star: #C26A05;
  --st-announce-bg: #14181F;
  --st-announce-ink: #FFFFFF;
  --st-foot-bg: #14181F;
  --st-foot-ink: #E7EAEE;
  --st-foot-muted: #A5ADB9;
  --st-font-head: var(--st-ff-inter);
  --st-font-body: var(--st-ff-inter);
  --st-r: var(--st-r-md); --st-r-card: var(--st-r-md); --st-r-btn: var(--st-r-md);
}
.store--fashion {
  --st-bg: #FFFFFF;
  --st-surface: #FFFFFF;
  --st-surface-2: #F7F5F2;
  --st-surface-3: #EFEBE6;
  --st-header-bg: #FFFFFF;
  --st-ink: #111111;
  --st-ink-2: #3A3A3A;
  --st-muted: #66625E;
  --st-line: #E6E2DD;
  --st-line-input: #8C8781;
  --st-primary: #111111;
  --st-primary-hover: #333333;
  --st-primary-ink: #FFFFFF;
  --st-accent: #A3214F;
  --st-accent-ink: #FFFFFF;
  --st-link: #111111;
  --st-focus: #A3214F;
  --st-sale: #A3214F;
  --st-sale-ink: #FFFFFF;
  --st-ok: #2F6B3A;
  --st-low: #8A5A00;
  --st-out: #A3214F;
  --st-star: #111111;
  --st-announce-bg: #111111;
  --st-announce-ink: #FFFFFF;
  --st-foot-bg: #F7F5F2;
  --st-foot-ink: #111111;
  --st-foot-muted: #5E5A55;
  --st-font-head: var(--st-ff-playfair);
  --st-font-body: var(--st-ff-inter);
  --st-r: var(--st-r-none); --st-r-card: var(--st-r-none); --st-r-btn: var(--st-r-none);
  --st-img-ratio: 3 / 4;
  --st-head-weight: 500;
  --st-head-track: 0;
  --st-nav-track: 0.08em;
}
.store--grocery {
  --st-bg: #F3F7F1;
  --st-surface: #FFFFFF;
  --st-surface-2: #ECF3E8;
  --st-surface-3: #E1EBDC;
  --st-header-bg: #FFFFFF;
  --st-ink: #17221A;
  --st-ink-2: #3A493D;
  --st-muted: #56665A;
  --st-line: #D7E2D2;
  --st-line-input: #7F8E7A;
  --st-primary: #137333;
  --st-primary-hover: #0E5A27;
  --st-primary-ink: #FFFFFF;
  --st-accent: #C2410C;
  --st-accent-ink: #FFFFFF;
  --st-link: #137333;
  --st-focus: #137333;
  --st-sale: #C2410C;
  --st-sale-ink: #FFFFFF;
  --st-ok: #137333;
  --st-low: #8A5A00;
  --st-out: #B42318;
  --st-star: #B45309;
  --st-announce-bg: #137333;
  --st-announce-ink: #FFFFFF;
  --st-foot-bg: #10261A;
  --st-foot-ink: #E8F1EA;
  --st-foot-muted: #A9BFAE;
  --st-font-head: var(--st-ff-nunito);
  --st-font-body: var(--st-ff-nunito);
  --st-r: var(--st-r-lg); --st-r-card: var(--st-r-lg); --st-r-btn: var(--st-r-full);
  --st-head-weight: 800;
}
.store--canvas {
  --st-bg: #FBF8F3;
  --st-surface: #FFFFFF;
  --st-surface-2: #F4EFE6;
  --st-surface-3: #EBE3D6;
  --st-header-bg: #FBF8F3;
  --st-ink: #2A2420;
  --st-ink-2: #4D443D;
  --st-muted: #6A5F56;
  --st-line: #E5DDD1;
  --st-line-input: #93877A;
  --st-primary: #9C3D1E;
  --st-primary-hover: #7E3017;
  --st-primary-ink: #FFFFFF;
  --st-accent: #3F5F4A;
  --st-accent-ink: #FFFFFF;
  --st-link: #9C3D1E;
  --st-focus: #9C3D1E;
  --st-sale: #9C3D1E;
  --st-sale-ink: #FFFFFF;
  --st-ok: #3F5F4A;
  --st-low: #8A5A00;
  --st-out: #9C3D1E;
  --st-star: #A16207;
  --st-announce-bg: #F4EFE6;
  --st-announce-ink: #2A2420;
  --st-foot-bg: #2A2420;
  --st-foot-ink: #F4EFE6;
  --st-foot-muted: #BDB1A3;
  --st-font-head: var(--st-ff-lora);
  --st-font-body: var(--st-ff-inter);
  --st-r: var(--st-r-sm); --st-r-card: var(--st-r-sm); --st-r-btn: var(--st-r-sm);
  --st-img-ratio: 4 / 5;
  --st-head-weight: 600;
}
.store--elite {
  --st-bg: #FAFAF7;
  --st-surface: #FFFFFF;
  --st-surface-2: #F3F1EA;
  --st-surface-3: #EAE7DC;
  --st-header-bg: #FFFFFF;
  --st-ink: #0E1726;
  --st-ink-2: #36404F;
  --st-muted: #5A6170;
  --st-line: #E3E0D6;
  --st-line-input: #8D8A80;
  --st-primary: #0E1726;
  --st-primary-hover: #23314A;
  --st-primary-ink: #FFFFFF;
  --st-accent: #7A5C12;
  --st-accent-ink: #FFFFFF;
  --st-link: #0E1726;
  --st-focus: #7A5C12;
  --st-sale: #7A5C12;
  --st-sale-ink: #FFFFFF;
  --st-ok: #2F6B3A;
  --st-low: #7A5C12;
  --st-out: #9B1C1C;
  --st-star: #8A6A16;
  --st-announce-bg: #0E1726;
  --st-announce-ink: #E9DFC4;
  --st-foot-bg: #0E1726;
  --st-foot-ink: #EDEAE0;
  --st-foot-muted: #A9AFBB;
  --st-font-head: var(--st-ff-playfair);
  --st-font-body: var(--st-ff-lora);
  --st-r: var(--st-r-none); --st-r-card: var(--st-r-none); --st-r-btn: var(--st-r-none);
  --st-img-ratio: 4 / 5;
  --st-head-weight: 500;
  --st-head-track: 0.01em;
  --st-head-case: none;
  --st-nav-track: 0.12em;
}

.console {
  /* 14 Nov (owner): light by choice again, in the same indigo family as the dark console (direction A). Soft lavender
     page, white cards, indigo ink, orange-to-pink main buttons, orange active row. Dark values are further down. */
  --bg: #F5F3FB;
  --surface: #FFFFFF;
  --surface-2: #FAF9FD;
  --surface-3: #EFEBF8;
  --surface-sel: #FFF1E6;
  --line: #E4DFF0;
  --line-strong: #C9C1DE;
  --line-input: #857DA3;
  --ink: #1A1530;
  --ink-2: #3D3658;
  --muted: #5F5878;
  --ink-inverse: #FFFFFF;
  --brand-btn: #C2410C; --brand-btn-hover: #A8380A; --brand-btn-ink: #FFFFFF;   /* 17 Nov (owner, final: "Deeper orange, white"): deeper orange behind white text, AA 5.2:1; #FF6A00 stays for logos and accents */
  --btn-grad: linear-gradient(100deg, #C2410C 0%, #BE185D 100%);
  --btn-grad-hover: linear-gradient(100deg, #A8380A 0%, #9D174D 100%);
  --console-glow: radial-gradient(900px 480px at 88% -12%, #8B5CF61F, #8B5CF600 62%), radial-gradient(720px 420px at 18% -8%, #FF4D8D14, #FF4D8D00 60%);
  --link: #4338CA;
  --link-hover: #312E81;
  --focus: #4338CA;
  --selection: #FFD9BD;
  --primary-soft: #EEEBFC;
  --primary-glow: #FF6A0040;
  --accent: #C2410C;
  --accent-soft: #FFF1E6;
  --data-1: #4F46E5;
  --data-1-soft: #E0DEFB;
  --data-2: #FF6A00;
  --data-grid: #ECE8F5;
  --shadow-card: 0 1px 2px #1A15300A, 0 8px 24px -6px #1A153014;
  --shadow-pop: 0 2px 6px #1A153012, 0 18px 44px -10px #1A153033;
  --r: 12px;
  --r-lg: 18px;
  --card-pad: 24px;
  --side-bg: #FFFFFF;
  --side-line: #E9E5F3;
  --side-hover: #F3F0FA;
  --side-ink: #1A1530;
  --side-ink-2: #3D3658;
  --side-muted: #5F5878;
  --side-label: #6B6488;
  --side-active: #FF6A001A;
  --side-active-ink: #C2410C;
  --top-bg: transparent;
  --top-field: #FFFFFF;
  --tile-blue: #2563EB;    --tile-blue-bg: #E6EEFE;
  --tile-violet: #7C3AED;  --tile-violet-bg: #F0E9FE;
  --tile-green: #15803D;   --tile-green-bg: #E5F6EC;
  --tile-amber: #B45309;   --tile-amber-bg: #FDF1E0;
  --tile-red: #D61F5B;     --tile-red-bg: #FDE8EF;
  --tile-cyan: #0E7490;    --tile-cyan-bg: #E0F4F8;
  --promo-bg: linear-gradient(150deg, #2A2350 0%, #1B1636 100%);
  --promo-ink: #FFFFFF; --promo-muted: #D9D4F0; --promo-btn: #FF6A00; --promo-btn-hover: #FF8F42; --promo-btn-ink: #10110F;
}
[data-theme="dark"] .console, .console[data-theme="dark"] {
  /* 13 Nov (owner pick, direction A "Indigo glass"): the console matches marketiism.com direction B: deep indigo/plum
     page with violet and plum glows, near-black indigo sidebar, orange-to-pink main buttons, orange accent. Dark only. */
  --bg: #120E26;
  --surface: #1B1636;
  --surface-2: #211B40;
  --surface-3: #2A234E;
  --surface-sel: #36203A;
  --line: #2D2652;
  --line-strong: #463E75;
  --line-input: #6C64A0;
  --ink: #F5F2FF;
  --ink-2: #DAD5F2;
  --muted: #A79FCB;
  --ink-inverse: #120E26;
  --brand-btn: #C2410C; --brand-btn-hover: #A8380A; --brand-btn-ink: #FFFFFF;   /* 17 Nov (owner, final: "Deeper orange, white"): deeper orange behind white text, AA 5.2:1; #FF6A00 stays for logos and accents */
  --btn-grad: linear-gradient(100deg, #C2410C 0%, #BE185D 100%);
  --btn-grad-hover: linear-gradient(100deg, #A8380A 0%, #9D174D 100%);
  --console-glow: radial-gradient(900px 480px at 88% -12%, #6A35D640, #6A35D600 62%), radial-gradient(720px 420px at 18% -8%, #B8336A2E, #B8336A00 60%);
  --link: #9DB6FF; --link-hover: #C3D2FF; --focus: #9DB6FF;
  --selection: #5A2E0C;
  --data-1: #8BA4FF; --data-1-soft: #262C5A; --data-2: #FF8F42; --data-grid: #2A2450;
  --primary-soft: #262C5A;
  --primary-glow: #FF6A0059;
  --accent: #FF8F42; --accent-soft: #3A2030;
  --side-bg: #0C0919; --side-line: #221C40; --side-hover: #1C1636;
  --side-ink: #F5F2FF; --side-ink-2: #D3CDEB; --side-muted: #A39CC6; --side-label: #8E87B4;
  --side-active: #FF6A0029; --side-active-ink: #FFB27A;
  --top-bg: #120E26CC; --top-field: #1B1636;
  --tile-blue: #8BA4FF; --tile-blue-bg: #232A5A;
  --tile-violet: #B49BFF; --tile-violet-bg: #2E2252;
  --tile-green: #4ADE80; --tile-green-bg: #143127;
  --tile-amber: #FFB547; --tile-amber-bg: #3A2A1C;
  --tile-red: #FF7A8A; --tile-red-bg: #3A1A2C;
  --tile-cyan: #2DD4BF; --tile-cyan-bg: #12333A;
  --shadow-card: 0 1px 2px #0000004D;
  --shadow-pop: 0 2px 4px #00000066, 0 16px 40px -8px #000000A6;
  --promo-bg: linear-gradient(150deg, #2A2350 0%, #1B1636 100%);
  --promo-btn: #FF6A00; --promo-btn-hover: #FF8F42; --promo-btn-ink: #10110F;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .console {
    /* 13 Nov (owner pick, direction A "Indigo glass"): the console matches marketiism.com direction B: deep indigo/plum
       page with violet and plum glows, near-black indigo sidebar, orange-to-pink main buttons, orange accent. Dark only. */
    --bg: #120E26;
    --surface: #1B1636;
    --surface-2: #211B40;
    --surface-3: #2A234E;
    --surface-sel: #36203A;
    --line: #2D2652;
    --line-strong: #463E75;
    --line-input: #6C64A0;
    --ink: #F5F2FF;
    --ink-2: #DAD5F2;
    --muted: #A79FCB;
    --ink-inverse: #120E26;
    --brand-btn: #C2410C; --brand-btn-hover: #A8380A; --brand-btn-ink: #FFFFFF;   /* 17 Nov (owner, final: "Deeper orange, white"): deeper orange behind white text, AA 5.2:1; #FF6A00 stays for logos and accents */
    --btn-grad: linear-gradient(100deg, #C2410C 0%, #BE185D 100%);
    --btn-grad-hover: linear-gradient(100deg, #A8380A 0%, #9D174D 100%);
    --console-glow: radial-gradient(900px 480px at 88% -12%, #6A35D640, #6A35D600 62%), radial-gradient(720px 420px at 18% -8%, #B8336A2E, #B8336A00 60%);
    --link: #9DB6FF; --link-hover: #C3D2FF; --focus: #9DB6FF;
    --selection: #5A2E0C;
    --data-1: #8BA4FF; --data-1-soft: #262C5A; --data-2: #FF8F42; --data-grid: #2A2450;
    --primary-soft: #262C5A;
    --primary-glow: #FF6A0059;
    --accent: #FF8F42; --accent-soft: #3A2030;
    --side-bg: #0C0919; --side-line: #221C40; --side-hover: #1C1636;
    --side-ink: #F5F2FF; --side-ink-2: #D3CDEB; --side-muted: #A39CC6; --side-label: #8E87B4;
    --side-active: #FF6A0029; --side-active-ink: #FFB27A;
    --top-bg: #120E26CC; --top-field: #1B1636;
    --tile-blue: #8BA4FF; --tile-blue-bg: #232A5A;
    --tile-violet: #B49BFF; --tile-violet-bg: #2E2252;
    --tile-green: #4ADE80; --tile-green-bg: #143127;
    --tile-amber: #FFB547; --tile-amber-bg: #3A2A1C;
    --tile-red: #FF7A8A; --tile-red-bg: #3A1A2C;
    --tile-cyan: #2DD4BF; --tile-cyan-bg: #12333A;
    --shadow-card: 0 1px 2px #0000004D;
    --shadow-pop: 0 2px 4px #00000066, 0 16px 40px -8px #000000A6;
    --promo-bg: linear-gradient(150deg, #2A2350 0%, #1B1636 100%);
    --promo-btn: #FF6A00; --promo-btn-hover: #FF8F42; --promo-btn-ink: #10110F;
  }
}

/* 14 Nov (light theme): the console top bar and logo strip stay the dark brand bar in both themes, so they carry
   their own dark-ink tokens (used by console-easy.css). */
.console .c-top, .console .c-side__brand {
  color-scheme: dark;
  --ink: #F5F2FF; --ink-2: #DAD5F2; --muted: #A79FCB; --line: #2D2652; --line-strong: #463E75;
  --surface: #1B1636; --surface-2: #211B40; --surface-3: #2A234E; --top-field: #1B1636; --link: #9DB6FF;
}

/* 15 Nov (owner: "improve this login page"): sign-in left panel in the marketiism.com direction B look, following the
   theme (light lavender by default, deep indigo/plum in dark). Used by auth-panel.css. */
.auth-shell {
  --ap-bg: linear-gradient(160deg, #F4EFFF 0%, #FBE9F1 55%, #FFF1E6 100%);
  --ap-glow-1: #8B5CF640; --ap-glow-2: #FF4D8D33; --ap-glow-3: #FF6A0026;
  --ap-ink: #1A1530; --ap-muted: #4F4870; --ap-line: #1A15301A;
  --ap-glass: #FFFFFFB8; --ap-glass-line: #FFFFFF; --ap-shadow: 0 24px 60px -24px #3B2A7A40;
  --ap-check: #C2410C; --ap-check-bg: #FFE4D1;
  --ap-in: #FFFFFF; --ap-out: #DCF8C6; --ap-out-ink: #12301A; --ap-paid: #15803D;
}
[data-theme="dark"] .auth-shell, .auth-shell[data-theme="dark"] {
  --ap-bg: linear-gradient(160deg, #1A1036 0%, #2A1240 55%, #120C26 100%);
  --ap-glow-1: #6A35D6B3; --ap-glow-2: #B8336A8C; --ap-glow-3: #FF6A0040;
  --ap-ink: #F6F3FF; --ap-muted: #CFC6EE; --ap-line: #FFFFFF26;
  --ap-glass: #FFFFFF14; --ap-glass-line: #FFFFFF33; --ap-shadow: 0 24px 60px -24px #000000B3;
  --ap-check: #FF9A52; --ap-check-bg: #3B1E33;
  --ap-in: #1F2C34; --ap-out: #005C4B; --ap-out-ink: #E9EDEF; --ap-paid: #4ADE80;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-shell {
    --ap-bg: linear-gradient(160deg, #1A1036 0%, #2A1240 55%, #120C26 100%);
    --ap-glow-1: #6A35D6B3; --ap-glow-2: #B8336A8C; --ap-glow-3: #FF6A0040;
    --ap-ink: #F6F3FF; --ap-muted: #CFC6EE; --ap-line: #FFFFFF26;
    --ap-glass: #FFFFFF14; --ap-glass-line: #FFFFFF33; --ap-shadow: 0 24px 60px -24px #000000B3;
    --ap-check: #FF9A52; --ap-check-bg: #3B1E33;
    --ap-in: #1F2C34; --ap-out: #005C4B; --ap-out-ink: #E9EDEF; --ap-paid: #4ADE80;
  }
}

/* 16 Nov (owner bug): marketiism.com's header, utility strip, in-page product bar, footer and mobile menu stay the dark
   brand bar in BOTH themes. Site colours are resolved once on .site, so in light mode these bars inherited dark text
   (unreadable on black). They restate the dark set here; menus inside them are dark too. */
.site .s-util, .site .s-hdr, .site .lnav, .site .s-foot, .site .s-drawer {
  color-scheme: dark;
  --site-ink: #F6F3FF; --site-ink-2: #DCD4F7; --site-muted: #ADA3D1;
  --site-line: #33285A; --site-line-strong: #4A3D7A;
  --site-surface: #1C1438; --site-surface-2: #271C4A;
  --site-accent-ink: #FF9A52; --site-accent-soft: #3B1E33;
  --site-btn: #FFFFFF; --site-btn-hover: #EFEAFF; --site-btn-ink: #160F2E;
  --site-glass: #FFFFFF1A; --site-glass-2: #FFFFFF0D; --site-glass-line: #FFFFFF33; --site-chip-bg: #FFFFFF14;
  --site-pill-bg: #1C1438E6; --site-grid-line: #FFFFFF0D; --site-dot: #FFFFFF14;
  --ink: #F6F3FF; --ink-2: #DCD4F7; --muted: #ADA3D1;
  --line: #33285A; --line-strong: #4A3D7A;
  --surface: #1C1438; --surface-2: #271C4A; --surface-3: #3B1E33; --surface-sel: #3B1E33;
  --brand-ink: #FF9A52; --brand-soft: #3B1E33; --link: #FF9A52; --link-hover: #FFB27A;
  --brand-btn: #FFFFFF; --brand-btn-hover: #EFEAFF; --brand-btn-ink: #160F2E;
  color: var(--ink);
}

/* 16 Nov: neutral channel colour ("Other") for donuts and channel dots, readable in both themes. */
.console { --tile-grey: #8A84A3; --tile-grey-bg: #8A84A31F; }

/* 17 Nov (owner: dark text on orange): orange used AS TEXT (links on sign-in pages, "Forgot password?") needs its own
   shade per theme to pass AA: darker on light pages, lighter on dark ones. Brand orange stays for fills and accents. */
.console { --brand-text: #C2410C; }
[data-theme="dark"] .console, .console[data-theme="dark"] { --brand-text: #FF9A52; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .console { --brand-text: #FF9A52; } }

/* 19 Nov (owner): WhatsApp chats in the inbox use WhatsApp's own palette (screens-ux.css .chat__thread--whatsapp). */
:root { --wa-bg: #EFEAE2; --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-ink: #111B21; --wa-meta: #667781; --wa-tick: #53BDEB; --wa-day: #FFFFFF; --wa-day-ink: #54656F; --wa-shadow: 0 1px 0.5px #0B141A21; --wa-link: #027EB5; }
[data-theme="dark"] { --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-ink: #E9EDEF; --wa-meta: #8696A0; --wa-day: #182229; --wa-day-ink: #8696A0; --wa-shadow: 0 1px 0.5px #0000004D; --wa-link: #53BDEB; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-ink: #E9EDEF; --wa-meta: #8696A0; --wa-day: #182229; --wa-day-ink: #8696A0; --wa-shadow: 0 1px 0.5px #0000004D; --wa-link: #53BDEB; }
}
