/* gcf-theme.css - the ONE token sheet for the signed-in app (console-dark-20261111).
   Loads before gcf-app.css on every app-shell page and the login page. Light values are the
   shipped Secure Slate set (accent #1B6CA8 as built, not DESIGN.md's #2563EB). Dark values are the
   same world at night: cool slate grounds, ink lifted to off-white, the signal blue lightened so
   it still reads as text, tints as translucent blue. Scope: tokens live on :root (light) and are
   overridden ONLY under html[data-theme="dark"] on app pages (body.gcf-app) and the login page,
   so the marketing site never changes. Every gcf-*.css reads these names; no stylesheet
   hard-codes a colour any more. REVERT: delete this file + restore the .bak-theme-20261111 copies.

   Theme half (Agent T) additions, 2026-11-11:
   - new tokens past the contract (names below, light value = the exact colour each replaced, so light
     renders pixel-stable): navy panels, active/button fills, status fills + pale status lines, glass,
     translucent ink shades, scrim, focus ring, accent glow/line/soft, sequential pipeline colours, the
     skeleton/loading sweeps and the ambient "stage" gradient.
   - the contract values are repeated on body.gcf-app / body.page-login: gcf-site.css (printed after
     this file) also sets --gcf-line/--gcf-shadow/--gcf-shadow-lg/--gcf-mist at :root for the
     marketing pages, and the body scope (0,1,1) keeps the app on the contract values.
   - legacy names the marketing sheet still uses on app pages (--gcf-mist, --gcf-navy, --ff-accent...)
     are aliased to the contract in dark so the shared gcf-site.css rules follow the theme.
   - dark overrides for the Logisco chrome the app pages keep (top bar, header, nav, search, logo) and
     the page builder's inline-styled title bands; the Settings > Appearance theme control; browser surfaces. */
:root{
  --gcf-canvas:#F8FAFC; --gcf-card:#FFFFFF; --gcf-alt:#F4F6F9; --gcf-raised:#FFFFFF;
  --gcf-line:#E3E7EC; --gcf-hair:#EEF2F6; --gcf-field:#D5DBE3;
  --gcf-ink:#141821; --gcf-body:#3D4553; --gcf-mute:#586071; --gcf-cap:#666F7E; /* cap was #6B7585 (4.30:1 on alt, 4.45:1 on canvas); #666F7E clears 4.5:1 on card/canvas/alt/hair - the one deliberate light change past SPEC.md's rules */
  --gcf-accent:#1B6CA8; --gcf-accent-deep:#14568A;
  --gcf-accent-bg:#1B6CA8; --gcf-accent-bg-hover:#14568A; --gcf-on-accent:#FFFFFF;
  --gcf-tint:#E9F1F8; --gcf-tint-2:#D9E7F3;
  --gcf-green:#047857; --gcf-green-tint:#ECFDF5;
  --gcf-amber:#8A5A14; --gcf-amber-tint:#FAF3E3;
  --gcf-red:#B3261E; --gcf-red-tint:#FDEDEC; --gcf-red-line:#F3C9C5;
  --gcf-chrome:#1E2530; --gcf-chrome-2:#171D26; --gcf-on-chrome:#E7EBF2; --gcf-on-chrome-mute:#98A2B3; --gcf-on-chrome-link:#BCD3FB;
  --gcf-shadow:0 1px 3px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.03);
  --gcf-shadow-lg:0 12px 32px rgba(10,37,64,.10);
  --gcf-focus:#1B6CA8; --gcf-selection:#D9E7F3; --gcf-scroll:#C9D2DC; --gcf-scroll-track:transparent;
  --gcf-skeleton:#EEF2F6; --gcf-skeleton-2:#F6F8FB;
  --gcf-r:14px; --gcf-r-sm:10px; --gcf-t:170ms; --gcf-ease:cubic-bezier(.22,1,.36,1);
  --gcf-mono:'IBM Plex Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --gcf-disp:'Manrope','Inter',system-ui,sans-serif;
  --gcf-sans:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;
  /* ---- theme-half additions (light value = the colour each replaced) ---- */
  --gcf-panel:#0A2540; --gcf-panel-2:#0E3358; --gcf-on-panel:#FFFFFF; --gcf-on-panel-mute:#C7D3E2;
  --gcf-active:#0A2540; --gcf-btn:#1E2530; --gcf-btn-hover:#143865; --gcf-on-btn:#FFFFFF;
  --gcf-green-bg:#047857; --gcf-amber-bg:#8A5A14; --gcf-red-bg:#B3261E; --gcf-red-bg-hover:#8F1E18;
  --gcf-green-line:#BFE6CD; --gcf-amber-line:#EBD2A4;
  --gcf-accent-soft:#4A85C2; --gcf-accent-line:rgba(27,108,168,.4); --gcf-accent-glow:rgba(27,108,168,.25); --gcf-focus-ring:rgba(27,108,168,.22);
  --gcf-glass:rgba(255,255,255,.72); --gcf-glass-strong:rgba(255,255,255,.92); --gcf-glass-line:rgba(255,255,255,.85); --gcf-glass-hi:rgba(255,255,255,.9);
  --gcf-shade:rgba(10,37,64,.09); --gcf-shade-2:rgba(10,37,64,.18); --gcf-shadow-color:rgba(10,37,64,.12); --gcf-shadow-color-2:rgba(6,24,43,.4);
  --gcf-scrim:rgba(10,20,35,.55); --gcf-chrome-line:rgba(255,255,255,.08); --gcf-chrome-fill:rgba(255,255,255,.08); --gcf-on-accent-mute:rgba(255,255,255,.35);
  --gcf-seq-1:#C5D8EA; --gcf-seq-2:#8FB6D9; --gcf-seq-3:#4F8DC0; --gcf-seq-mute:#B4BCC6;
  --gcf-chart-1:#1B6CA8; --gcf-chart-2:#4F8DC0; --gcf-chart-other:#C5D8EA; /* metrics-20261111: charts sage -> signal blue (accent fill, seq-3, seq-1) */
  --gcf-skeleton-sweep:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.65) 50%,rgba(255,255,255,0) 100%);
  --gcf-loading-sweep:linear-gradient(90deg,transparent,var(--gcf-accent),transparent);
  --gcf-stage:radial-gradient(720px 340px at 6% -12%, rgba(10,37,64,.11), transparent 62%),radial-gradient(560px 300px at 97% 4%, rgba(217,169,58,.16), transparent 56%),radial-gradient(680px 380px at 52% 118%, rgba(27,108,168,.12), transparent 62%),linear-gradient(158deg,#F0F5FA 0%,#E9F0F7 55%,#EEF3F9 100%);
}
/* gcf-site.css redefines these four at :root for the marketing pages; the app stays on the contract. */
body.gcf-app, body.page-login{
  --gcf-line:#E3E7EC; --gcf-shadow:0 1px 3px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.03); --gcf-shadow-lg:0 12px 32px rgba(10,37,64,.10); --gcf-mist:#F4F6F9;
}
/* dark: app pages + login only. Values pass AA on their own grounds (audit-contrast.py):
   body #C9D0DA on card #161C24 = 10.9:1, cap #8792A2 on card = 5.6:1, accent text #6CA6DD on card = 6.1:1,
   white on accent-bg #2577BF = 4.6:1, green #4ADE9A / amber #E8B45C / red #F28B82 on card >= 7:1. */
html[data-theme="dark"] body.gcf-app, html[data-theme="dark"] body.page-login, html[data-theme="dark"] body.gcf-auth{
  --gcf-canvas:#0F1419; --gcf-card:#161C24; --gcf-alt:#1C232D; --gcf-raised:#1F2732;
  --gcf-line:#2A3341; --gcf-hair:#222A35; --gcf-field:#3A4452;
  --gcf-ink:#E6EAF0; --gcf-body:#C9D0DA; --gcf-mute:#9AA5B4; --gcf-cap:#8792A2;
  --gcf-accent:#6CA6DD; --gcf-accent-deep:#8FBCE8;
  --gcf-accent-bg:#2577BF; --gcf-accent-bg-hover:#1F6AAE; --gcf-on-accent:#FFFFFF;
  --gcf-tint:rgba(108,166,221,.14); --gcf-tint-2:rgba(108,166,221,.26);
  --gcf-green:#4ADE9A; --gcf-green-tint:rgba(74,222,154,.14);
  --gcf-amber:#E8B45C; --gcf-amber-tint:rgba(232,180,92,.14);
  --gcf-red:#F28B82; --gcf-red-tint:rgba(242,139,130,.14); --gcf-red-line:rgba(242,139,130,.35);
  --gcf-chrome:#0B0F14; --gcf-chrome-2:#07090D; --gcf-on-chrome:#E6EAF0; --gcf-on-chrome-mute:#8792A2; --gcf-on-chrome-link:#9DBDF7;
  --gcf-shadow:0 1px 2px rgba(0,0,0,.5),0 1px 1px rgba(0,0,0,.3);
  --gcf-shadow-lg:0 16px 40px rgba(0,0,0,.55);
  --gcf-focus:#8FBCE8; --gcf-selection:rgba(108,166,221,.35); --gcf-scroll:#3A4452;
  --gcf-skeleton:#1F2732; --gcf-skeleton-2:#263040;
  --gcf-mist:#1C232D;
  /* theme-half additions */
  --gcf-panel:#1F2732; --gcf-panel-2:#263040; --gcf-on-panel:#E6EAF0; --gcf-on-panel-mute:#9AA5B4;
  --gcf-active:#2577BF; --gcf-btn:#2577BF; --gcf-btn-hover:#1F6AAE; --gcf-on-btn:#FFFFFF;
  --gcf-green-bg:#0F7A57; --gcf-amber-bg:#8A5A14; --gcf-red-bg:#B3261E; --gcf-red-bg-hover:#8F1E18;
  --gcf-green-line:rgba(74,222,154,.35); --gcf-amber-line:rgba(232,180,92,.35);
  --gcf-accent-soft:#8FBCE8; --gcf-accent-line:rgba(108,166,221,.5); --gcf-accent-glow:rgba(0,0,0,.5); --gcf-focus-ring:rgba(143,188,232,.45);
  --gcf-glass:rgba(22,28,36,.8); --gcf-glass-strong:rgba(22,28,36,.94); --gcf-glass-line:rgba(255,255,255,.08); --gcf-glass-hi:rgba(255,255,255,.04);
  --gcf-shade:rgba(255,255,255,.08); --gcf-shade-2:rgba(255,255,255,.16); --gcf-shadow-color:rgba(0,0,0,.55); --gcf-shadow-color-2:rgba(0,0,0,.7);
  --gcf-scrim:rgba(0,0,0,.66); --gcf-chrome-line:rgba(255,255,255,.08); --gcf-chrome-fill:rgba(255,255,255,.08); --gcf-on-accent-mute:rgba(255,255,255,.35);
  --gcf-seq-1:#2F4A66; --gcf-seq-2:#4F7FAE; --gcf-seq-3:#6CA6DD; --gcf-seq-mute:#4A5564;
  --gcf-chart-1:#6CA6DD; --gcf-chart-2:#4F7FAE; --gcf-chart-other:#2F4A66; /* metrics-20261111: charts in the dark blue world (accent text, seq-2, seq-1) */
  --gcf-skeleton-sweep:linear-gradient(90deg,rgba(255,255,255,0) 0,rgba(255,255,255,.06) 50%,rgba(255,255,255,0) 100%);
  --gcf-stage:linear-gradient(158deg,#131922 0%,#161C24 55%,#141A22 100%);
  /* legacy names the marketing sheet (gcf-site.css) still reads on app pages (text-safe aliases: every fill use of
     these names that reaches an app page is overridden later in gcf-site.css by a rule the remap re-pointed at --gcf-btn) */
  --gcf-navy:var(--gcf-ink); --gcf-navy-deep:var(--gcf-ink); --gcf-steel:var(--gcf-accent); --gcf-sky:var(--gcf-accent-soft);
  --gcf-gold:var(--gcf-accent); --gcf-gold-deep:var(--gcf-accent-deep); --gcf-slate:var(--gcf-ink); --gcf-muted:var(--gcf-mute);
  --gcf-white:var(--gcf-card); --gcf-ink2:var(--gcf-mute); --gcf-gold-tint:var(--gcf-tint); --gcf-gold-ink:var(--gcf-accent-deep);
  --gcf-signal:var(--gcf-accent); --gcf-gold-soft:var(--gcf-tint);
  --ff-accent:var(--gcf-accent); --ff-accent-deep:var(--gcf-accent-deep); --ff-accent-tint:var(--gcf-tint); --ff-green:var(--gcf-green);
  --ff-green-tint:var(--gcf-green-tint); --ff-ink:var(--gcf-ink); --ff-ink2:var(--gcf-mute); --ff-sage-light:var(--gcf-accent-soft);
  --fiq-ink:var(--gcf-chrome); --fiq-ink-2:var(--gcf-chrome-2); --fiq-accent:var(--gcf-accent); --fiq-accent-hover:var(--gcf-accent-deep); --fiq-accent-active:var(--gcf-accent-deep);
  --fiq-tint:var(--gcf-tint); --fiq-line:var(--gcf-line); --fiq-text:var(--gcf-ink); --fiq-muted:var(--gcf-mute);
  color-scheme:dark;
}
/* the root carries the scheme too, so an OS-dark device with the Light preference gets a light UA canvas and
   scrollbar (the <meta name=color-scheme> declares both; html[data-theme] decides) */
html:not([data-theme="dark"]){ color-scheme:light; }
html[data-theme="dark"]{ color-scheme:dark; }
body.gcf-app, body.page-login, body.gcf-auth{ color-scheme:light; }
html[data-theme="dark"] body.gcf-app, html[data-theme="dark"] body.page-login, html[data-theme="dark"] body.gcf-auth{ color-scheme:dark; background:var(--gcf-canvas); }
/* browser surfaces carry the palette too */
body.gcf-app ::selection, body.page-login ::selection{ background:var(--gcf-selection); color:var(--gcf-ink); }
body.gcf-app, body.page-login{ scrollbar-color:var(--gcf-scroll) var(--gcf-scroll-track); caret-color:var(--gcf-accent); accent-color:var(--gcf-accent-bg); }
body.gcf-app :focus-visible, body.page-login :focus-visible{ outline:2px solid var(--gcf-focus); outline-offset:2px; }
body.gcf-app ::-webkit-scrollbar, body.page-login ::-webkit-scrollbar{ width:10px; height:10px; }
body.gcf-app ::-webkit-scrollbar-thumb, body.page-login ::-webkit-scrollbar-thumb{ background:var(--gcf-scroll); border-radius:999px; border:2px solid transparent; background-clip:padding-box; }
body.gcf-app ::-webkit-scrollbar-track, body.page-login ::-webkit-scrollbar-track{ background:var(--gcf-scroll-track); }
body.gcf-app input::placeholder, body.gcf-app textarea::placeholder, body.page-login input::placeholder{ color:var(--gcf-cap); opacity:1; }
body.gcf-app a:focus-visible, body.gcf-app button:focus-visible{ border-radius:6px; }
/* (tabular numerals were tried here and dropped: they widen the forecast table's numeric columns and re-wrap titles, so light would not be pixel-stable) */
@media (prefers-reduced-motion:reduce){ body.gcf-app *{ transition-duration:0ms!important; animation-duration:0ms!important; } }

/* =====================================================================================
   Theme control: the three-way System / Light / Dark segmented radiogroup rendered by
   gcf_theme_control() under Settings > Appearance (--set) - the only placement (Finn, 2026-11-11:
   not in the sidebar). 40px visible, 48px hit area (::after), roving tabindex, aria-checked. */
.gcf-theme-ctl{ display:flex; gap:2px; padding:3px; border:1px solid var(--gcf-line); border-radius:10px; background:var(--gcf-alt); }
.gcf-theme-ctl__opt{ position:relative; flex:1 1 0; min-width:0; display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:36px; padding:0 6px; border:0; border-radius:8px; background:transparent; color:var(--gcf-mute); font:600 11.5px/1 var(--gcf-sans); letter-spacing:.01em; cursor:pointer; -webkit-appearance:none; appearance:none; transition:background-color var(--gcf-t) var(--gcf-ease),color var(--gcf-t) var(--gcf-ease),box-shadow var(--gcf-t) var(--gcf-ease); }
.gcf-theme-ctl__opt::after{ content:""; position:absolute; left:0; right:0; top:-4px; bottom:-4px; }
.gcf-theme-ctl__opt svg{ width:16px; height:16px; flex:0 0 16px; }
.gcf-theme-ctl__opt span{ white-space:nowrap; }
.gcf-theme-ctl__opt:hover{ color:var(--gcf-ink); }
.gcf-theme-ctl__opt.is-on, .gcf-theme-ctl__opt[aria-checked="true"]{ background:var(--gcf-card); color:var(--gcf-ink); box-shadow:var(--gcf-shadow); }
.gcf-theme-ctl__opt.is-on svg, .gcf-theme-ctl__opt[aria-checked="true"] svg{ color:var(--gcf-accent); }
.gcf-theme-ctl__opt:focus-visible{ outline:2px solid var(--gcf-focus); outline-offset:1px; z-index:1; }
.gcf-theme-ctl--set{ max-width:380px; font-size:12.5px; }
.gcf-theme-ctl--set .gcf-theme-ctl__opt{ min-height:40px; font-size:13px; }
html[data-theme="dark"] body.gcf-app .gcf-theme-ctl__opt.is-on, html[data-theme="dark"] body.gcf-app .gcf-theme-ctl__opt[aria-checked="true"]{ background:var(--gcf-raised); }

/* =====================================================================================
   Dark: the Logisco chrome that still renders on app pages + the login page, and the page
   builder's inline-styled bands. Scoped (0,3,x) overrides, !important where the theme's
   customizer sheet or an inline style attribute would otherwise win. Never a page edit. */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-body-outer-wrapper,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-body-wrapper,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-page-wrapper,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-header-side-content{ background:var(--gcf-canvas)!important; background-image:none!important; }
/* top bar (LinkedIn strip) */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar{ color:var(--gcf-mute)!important; border-bottom:1px solid var(--gcf-line)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar-background{ background-color:var(--gcf-card)!important; opacity:1!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar a{ color:var(--gcf-body)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar a:hover{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar .fa-linkedin[style]{ color:var(--gcf-accent)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-bar a.logisco-top-bar-right-button{ background:var(--gcf-accent-bg)!important; color:var(--gcf-on-accent)!important; }
/* header + primary nav */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-header-background{ background-color:var(--gcf-card)!important; border-bottom:1px solid var(--gcf-line)!important; box-shadow:none!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-header-wrap.logisco-header-style-plain{ border-color:var(--gcf-line)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-sticky-menu-placeholder,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-fixed-navigation{ background-color:var(--gcf-card)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > a{ color:var(--gcf-body)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > a:hover,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li.current-menu-item > a,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li.current-menu-ancestor > a{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-navigation .logisco-navigation-slide-bar{ border-color:var(--gcf-accent)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-navigation .logisco-navigation-slide-bar:before{ border-bottom-color:var(--gcf-accent)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > ul,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > ul li,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > .logisco-normal-menu li{ background:var(--gcf-raised)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > ul{ border-color:var(--gcf-line)!important; box-shadow:var(--gcf-shadow-lg)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > ul li a,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > .sub-menu a{ color:var(--gcf-body)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > ul li a:hover,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > .sub-menu a:hover,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .sf-menu > li > .sub-menu .current-menu-item > a{ color:var(--gcf-ink)!important; background:var(--gcf-alt)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-main-menu-search i,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-main-menu-cart i{ color:var(--gcf-mute)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-main-menu-search:hover i{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-search-wrap{ background-color:var(--gcf-scrim)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-top-search-wrap input.search-field{ color:var(--gcf-ink)!important; border-color:var(--gcf-line)!important; }
/* the header wordmark is a JPEG with a baked white ground: invert + hue-rotate keeps the blue bars blue
   and lifts the ink to off-white; screen blending drops the (now black) ground into the card. */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-logo img,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-mobile-header .logisco-logo img{ filter:invert(1) hue-rotate(180deg); mix-blend-mode:screen; }
html[data-theme="dark"] body.gcf-app .gcf-sb__brand img{ filter:invert(1) hue-rotate(180deg); }
/* mobile drawer (login page below 1024px keeps the theme's mm-menu) */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-mobile-header.logisco-header-background{ background-color:var(--gcf-card)!important; border-bottom-color:var(--gcf-line)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-mobile-menu-button span,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-mobile-menu-button span:before,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-mobile-menu-button span:after{ background:var(--gcf-ink)!important; }
/* page-builder title bands: the builder prints the colours inline, so match on the inline value */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#f3f7fb"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#F3F7FB"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#f4f6f9"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#F4F6F9"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-page-title-wrap{ background:var(--gcf-alt)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#ffffff"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#fff "],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#FFFFFF"]{ background-color:var(--gcf-canvas)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#0a2540"],
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-background-wrap[style*="#0A2540"]{ background-color:var(--gcf-panel)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-title-item-title[style]{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-title-item-caption[style]{ color:var(--gcf-accent)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-text-box-item-content[style]{ color:var(--gcf-mute)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) [data-skin="White Text"] .gdlr-core-title-item-title[style]{ color:var(--gcf-on-panel)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) [data-skin="White Text"] .gdlr-core-text-box-item-content[style]{ color:var(--gcf-on-panel-mute)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-title-item-title-divider{ border-color:var(--gcf-accent)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-page-title-wrap .logisco-page-title{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-page-title-wrap .logisco-page-caption{ color:var(--gcf-mute)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-hero{ background:var(--gcf-alt)!important; color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-hero .gcf-hero-title, html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-hero-title{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-hero-sub{ color:var(--gcf-mute)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-hero:after{ background:linear-gradient(90deg,transparent,var(--gcf-accent-line) 20%,var(--gcf-accent-line) 80%,transparent); }
/* builder buttons printed inside app pages (the members gate on /forecasts/, /contracts/) */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-button.gdlr-core-button-gradient,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-button.gdlr-core-button-solid{ background:var(--gcf-accent-bg)!important; color:var(--gcf-on-accent)!important; border-color:transparent!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-button.gdlr-core-button-gradient:hover,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-button.gdlr-core-button-solid:hover{ background:var(--gcf-accent-bg-hover)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-button.gdlr-core-button-transparent{ color:var(--gcf-ink)!important; border-color:var(--gcf-line)!important; background:var(--gcf-card)!important; }
/* the customizer sheet paints every table with zebra rows (#f9f9f9/#f3f3f3, #949494 text) and a navy th;
   the gcf sheets override th/td colours but not the row fills, so in dark the rows stayed white */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) table tr:nth-child(odd){ background-color:var(--gcf-card); color:inherit; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) table tr:nth-child(even){ background-color:var(--gcf-alt); color:inherit; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) table tr th{ background-color:var(--gcf-alt); color:var(--gcf-ink); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-body table tr th a{ color:var(--gcf-ink); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gcf-fc__table tr:hover td{ background:var(--gcf-tint); }
/* theme content area + generic content on app pages that no gcf sheet styles */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-content-area,
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-page-wrapper{ color:var(--gcf-body); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .logisco-content-area :is(h1,h2,h3,h4,h5,h6),
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-page-builder-body :is(h1,h2,h3,h4,h5,h6){ color:var(--gcf-ink); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) hr{ border-color:var(--gcf-line); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) :is(pre, code, kbd, samp){ background:var(--gcf-alt); color:var(--gcf-ink); }
/* native controls no gcf sheet styles (the matrix textarea, file inputs, stray selects): the theme's own
   white field rules would otherwise survive. Low specificity on the element so every tokenised gcf rule
   (which already resolves to a dark field) still wins where it exists. */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) :is(input, select, textarea){ color-scheme:dark; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]), textarea, select){ background-color:var(--gcf-card); color:var(--gcf-ink); border-color:var(--gcf-field); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) input[type="file"]{ color:var(--gcf-mute); }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) input[type="file"]::file-selector-button{ background:var(--gcf-alt); color:var(--gcf-ink); border:1px solid var(--gcf-line); border-radius:8px; padding:6px 12px; margin-right:10px; font:inherit; }
/* login page: the marketing footer stays on /login/ and follows the theme there */
html[data-theme="dark"] body.page-login .logisco-footer-wrapper{ background:var(--gcf-card)!important; border-top:1px solid var(--gcf-line)!important; color:var(--gcf-mute)!important; }
html[data-theme="dark"] body.page-login .logisco-footer-wrapper :is(a, .logisco-widget-title, h3){ color:var(--gcf-body)!important; }
html[data-theme="dark"] body.page-login .logisco-footer-wrapper a:hover{ color:var(--gcf-ink)!important; }
html[data-theme="dark"] body.page-login .logisco-copyright-wrapper{ background:var(--gcf-canvas)!important; color:var(--gcf-cap)!important; border-top:1px solid var(--gcf-line)!important; }
html[data-theme="dark"] body.page-login .logisco-copyright-wrapper a{ color:var(--gcf-body)!important; }
html[data-theme="dark"] body.page-login .logisco-footer-wrapper img[src*="logo"]{ filter:invert(1) hue-rotate(180deg); mix-blend-mode:screen; }
/* overlays the apps append to <body> (save-search modal, detail drawer, keyboard help, multiselect panels,
   toasts): their heading rules sit at (0,1,0) and lose to the customizer's `.logisco-body h3{color:#141821}`,
   invisible on a dark card (scan hit: div.gcf-sm > h3.gcf-sm__title, 1.02:1) */
html[data-theme="dark"] body.gcf-app :is(.gcf-sm, .gcf-dt, .gcf-ks, .gcf-cl, .gcf-advf, .gcf-ms__panel, .gcf-advmenu, .gcf-toasts, .gcf-sv__modal, .gcf-pipe__edit, .gcf-x__modal) :is(h1, h2, h3, h4, h5, h6){ color:var(--gcf-ink); }
html[data-theme="dark"] body.gcf-app :is(.gcf-sm, .gcf-dt, .gcf-ks) :is(label, .gcf-sm__field){ color:var(--gcf-ink); }
/* images that are not UI (avatars, logos in content) keep their colour; decorative builder shadows go */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) .gdlr-core-pbf-wrapper[style*="box-shadow"]{ box-shadow:none!important; }

/* signin-dark-20261113: back-to-top button on the dark sign-in / reset pages (it read as a pale disc
   with a white arrow). REVERT: delete this block. */
html[data-theme="dark"] :is(body.gcf-app, body.page-login) #logisco-footer-back-to-top-button{ background-color:var(--gcf-card)!important; color:var(--gcf-ink)!important; border:1px solid var(--gcf-line)!important; box-shadow:0 8px 20px rgba(0,0,0,.45)!important; }
html[data-theme="dark"] :is(body.gcf-app, body.page-login) #logisco-footer-back-to-top-button:hover{ background-color:#2477C4!important; color:#fff!important; }
