/* Presentation only: shared theme tokens and existing authenticated theme guards.
   Do not add padding, dimensions, typography or radius changes here. */
html[data-crm-ui][data-workspace-quality] {
  --ui-canvas:#f0f7ff;
  --ui-surface:#fff;
  --ui-surface-well:color-mix(in srgb,var(--ui-canvas) 64%,var(--ui-surface));
  --ui-presswall-ink:#e5effb;
  --ui-field:#fff;
  --ui-text:#13334f;
  --ui-secondary:#005479;
  --ui-border:#6b9fbb;
  --ui-brand:#087fc4;
  --ui-brand-hover:#0669a3;
  --ui-brand-ink:#005479;
  --ui-on-brand:#fff;
  --ui-control-border:#6b9fbb;
  --ui-focus:#005479;
  --ui-sidebar:#087fc4;
  --ui-sidebar-hover:#0669a3;
  --ui-gold:#fdda27;
  --ui-notification:#e8554e;
  --ui-warm-white:#faf5f0;
  --ui-selected:#e2f5ff;
  --ui-presswall:url('./ldpr-presswall-20261026.svg?ui=compact-20261027-r2');
  --ui-presswall-size:200px 140px;
  --color-tg-chat-bg:var(--ui-canvas);
  --color-tg-gray-text:var(--ui-secondary);
  --color-tg-bubble-out:#d9edff;
  --color-iosBackground:var(--ui-canvas);
  --color-tg-bg:var(--ui-surface);
  --color-ldprLightBlue:var(--ui-selected);
  --color-tg-blue:var(--ui-brand);
  --color-tg-blue-hover:var(--ui-brand-hover);
  --color-ldprBlue:var(--ui-brand);
  --color-ldprGold:var(--ui-gold);
  color-scheme:light;
}
@media(max-width:767px){html[data-crm-ui][data-workspace-quality]{--ui-brand:#29b5fb;--ui-brand-hover:#17a8ef;--ui-presswall-size:120px 84px}}
html[data-crm-ui][data-workspace-quality][data-svishchev-theme] {
  --svishchev-reference:#4679ca;
  --ui-brand:#4275c6;
  --ui-brand-hover:#355f9f;
  --ui-brand-ink:#204b86;
  --ui-sidebar:#4275c6;
  --ui-sidebar-hover:#355f9f;
  --ui-secondary:#245183;
  --ui-border:#7e9bc0;
  --ui-control-border:#7e9bc0;
  --ui-focus:#285999;
  --ui-selected:#e8f0fc;
}
html[data-crm-ui][data-workspace-quality][data-svishchev-theme] [data-form-preview-viewport] {
  --ui-brand:#087fc4;
  --ui-brand-hover:#0669a3;
  --ui-brand-ink:#005479;
  --ui-secondary:#005479;
  --ui-border:#6b9fbb;
  --ui-control-border:#6b9fbb;
  --ui-focus:#005479;
  --ui-selected:#e2f5ff;
}
@media(max-width:767px){html[data-crm-ui][data-workspace-quality][data-svishchev-theme] [data-form-preview-viewport] {
    --ui-brand:#29b5fb;
    --ui-brand-hover:#17a8ef;
  }}
html[data-crm-ui][data-workspace-quality][data-svishchev-loading-theme] #root .crm-skeleton:not([data-form-preview-viewport] *) {
  --svishchev-reference:#4679ca;
  --ui-brand:#4275c6;
  --ui-brand-hover:#355f9f;
  --ui-brand-ink:#204b86;
  --ui-sidebar:#4275c6;
  --ui-sidebar-hover:#355f9f;
  --ui-secondary:#245183;
  --ui-border:#7e9bc0;
  --ui-control-border:#7e9bc0;
  --ui-focus:#285999;
  --ui-selected:#e8f0fc;
}
html[data-crm-ui][data-workspace-quality] #root [data-workspace-auth][data-workspace-login] {
  --ui-brand: #4275c6;
  --ui-brand-hover: #355f9f;
  --ui-focus: #285999;
  --ui-control-border: #6580a2;
}
/* The neutral sign-in screen must not inherit a department's presswall. */
html[data-crm-ui][data-workspace-quality] #root:has([data-workspace-auth-unbranded]) {
  --ui-presswall:none;
}

html[data-crm-ui][data-workspace-quality],
[data-public-form-page] {
  --crm-pearl-background:
    radial-gradient(ellipse at 86% 8%,rgba(241,249,255,.58),transparent 46%) center / 100vw 100vh no-repeat fixed,
    radial-gradient(ellipse at 12% 78%,rgba(189,207,231,.5),transparent 53%) center / 100vw 100vh no-repeat fixed,
    radial-gradient(ellipse at 68% 86%,rgba(224,233,246,.54),transparent 48%) center / 100vw 100vh no-repeat fixed,
    linear-gradient(118deg,rgba(196,207,223,.55) 0%,rgba(189,203,223,.55) 44%,rgba(213,224,238,.55) 100%) center / 100vw 100vh no-repeat fixed;
  --ui-canvas:#cbd6e6;
}

/* Public forms share the backdrop assets without inheriting CRM control styles. */
[data-public-form-page] {
  --ui-presswall:url('./ldpr-presswall-20261026.svg?ui=compact-20261027-r2');
  --ui-presswall-size:200px 140px;
}
@media(max-width:767px){[data-public-form-page]{--ui-presswall-size:120px 84px}}

/* Forms reproduce the homepage's white base, light gradients and 30% presswall.
   A white veil over the original SVG is equivalent to its homepage layer opacity. */
[data-public-form-page],
[data-form-canvas] {
  --ui-form-canvas:#fff;
  --ui-form-backdrop:
    linear-gradient(to top right,rgba(219,234,254,.92),rgba(239,246,255,.5),transparent) center / 100vw 100dvh no-repeat fixed,
    linear-gradient(to bottom left,rgba(191,219,254,.88),rgba(239,246,255,.5),transparent) center / 100vw 100dvh no-repeat fixed,
    linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.7)) center / 100vw 100dvh no-repeat fixed;
  --ui-form-presswall:url('./form-home-presswall.svg');
  --ui-form-presswall-size:200px 140px;
  --ui-form-title:#000;
  --ui-form-muted:#0f172a;
  --ui-form-check:#00529b;
}
[data-public-form-heading] {--ui-focus:var(--ui-form-title,#000)}
