/* Theme presets for authenticated and guest pages on configured custom domains. */
html[data-workspace-theme="digital-energy"] {
  --de-cobalt: #0034af;
  --de-cobalt-hover: #002a8c;
  --de-cobalt-active: #001f69;
  --de-volt: #63e234;
  --de-cyan: #16d3f2;
  --de-slate-50: #f8fafc;
  --de-slate-100: #f1f5f9;
  --de-slate-200: #e2e8f0;
  --de-slate-300: #cbd5e1;
  --de-slate-400: #94a3b8;
  --de-slate-500: #64748b;
  --de-slate-600: #475569;
  --de-slate-700: #334155;
  --de-slate-800: #1e293b;
  --de-slate-900: #0f172a;
  --de-error: #dc2626;
  --de-warning: #d97706;
  --de-success: #16a34a;
  --spot-ink: var(--de-slate-900);
  --spot-muted: var(--de-slate-600);
  --spot-line: var(--de-slate-200);
  --spot-surface: #ffffff;
  --spot-hero: #ffffff;
  --spot-brand-primary: var(--de-cobalt);
  --spot-brand-accent: var(--de-volt);
  --pico-font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  --pico-primary: var(--spot-brand-primary);
  --pico-primary-hover: var(--de-cobalt-hover);
  --pico-primary-focus: rgba(0, 52, 175, 0.16);
  --pico-border-radius: 6px;
  color-scheme: light;
}

html[data-workspace-theme="digital-energy"] body {
  color: var(--spot-ink);
  background: var(--de-slate-50);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-workspace-theme="digital-energy"] :is(h1, h2, h3, h4, h5, h6, .brand) {
  color: var(--de-slate-900);
  font-family: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0;
}

html[data-workspace-theme="digital-energy"] :is(.section-kicker, .kicker, .banner__eyebrow) {
  color: var(--spot-brand-primary);
  font-family: "Orbitron", "Saira Semi Condensed", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0;
}

html[data-workspace-theme="digital-energy"] :is(code, pre, kbd, samp, .code-block, .code-preview, .code-input) {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

html[data-workspace-theme="digital-energy"] .shell {
  width: min(1240px, calc(100% - 2rem));
}

html[data-workspace-theme="digital-energy"] .topbar {
  min-height: 72px;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 3px solid var(--spot-brand-primary);
  border-bottom: 1px solid var(--de-slate-200);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-workspace-theme="digital-energy"] .brand-link {
  color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] .brand-link:hover {
  color: var(--de-cobalt-hover);
}

html[data-workspace-theme="digital-energy"] .nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  color: var(--de-slate-600);
  font-weight: 600;
}

html[data-workspace-theme="digital-energy"] .nav-link:hover,
html[data-workspace-theme="digital-energy"] .nav-link[aria-current="page"] {
  border-color: rgba(0, 52, 175, 0.18);
  background: rgba(0, 52, 175, 0.07);
  color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] .user-pill {
  border-color: var(--de-slate-200);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

html[data-workspace-theme="digital-energy"] .user-pill:hover,
html[data-workspace-theme="digital-energy"] .user-pill[aria-current="page"] {
  border-color: var(--de-slate-300);
  background: var(--de-slate-100);
}

html[data-workspace-theme="digital-energy"] .user-pill__avatar {
  background: var(--spot-brand-primary);
  color: #ffffff;
}

html[data-workspace-theme="digital-energy"] :is(.panel, .spot-card, .workspace-list-card, .workspace-link, .member-card, .record-card, .preset-card, .account-summary-card, .brain-source-card) {
  border-color: var(--de-slate-200);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
}

html[data-workspace-theme="digital-energy"] :is(.panel--primary, .panel--secondary, .panel--muted, .panel--summary) {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-workspace-theme="digital-energy"] :is(.panel-tools, .panel-section, .permission-row, .empty-callout, .record-filter-row) {
  border-color: var(--de-slate-200);
  border-radius: 8px;
  background: var(--de-slate-50);
}

html[data-workspace-theme="digital-energy"] :is(.workspace-link, .preset-card):hover,
html[data-workspace-theme="digital-energy"] :is(.workspace-link, .preset-card)[aria-current="page"],
html[data-workspace-theme="digital-energy"] .preset-card--active {
  border-color: rgba(0, 52, 175, 0.3);
  background: rgba(0, 52, 175, 0.05);
}

html[data-workspace-theme="digital-energy"] .auth-mode-tab {
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--de-slate-600);
}

html[data-workspace-theme="digital-energy"] .auth-mode-tab:hover,
html[data-workspace-theme="digital-energy"] .auth-mode-tab:is(.auth-mode-tab--active, [aria-selected="true"], [aria-pressed="true"]),
html[data-workspace-theme="digital-energy"] .assistant-section-nav--subtle .auth-mode-tab:is(.auth-mode-tab--active, [aria-selected="true"], [aria-pressed="true"]) {
  border-color: rgba(0, 52, 175, 0.18);
  background-color: rgba(0, 52, 175, 0.07);
  background-image: none;
  color: var(--spot-brand-primary);
  box-shadow: none;
}

html[data-workspace-theme="digital-energy"] :is(button, [role="button"], input, select, textarea) {
  border-radius: 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-workspace-theme="digital-energy"] :is(button:not(.secondary):not(.outline):not(.business-project-card__summary):not(.project-file-tree__item):not(.project-file-tree-files__path-segment):not(.project-file-tree-file-list__item--button):not(.project-file-vault-summary-card), [role="button"]:not(.secondary):not(.outline):not(.business-project-card__summary):not(.project-file-tree__item):not(.project-file-tree-files__path-segment):not(.project-file-tree-file-list__item--button):not(.project-file-vault-summary-card)) {
  border-color: var(--spot-brand-primary);
  background: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] :is(button:not(.secondary):not(.outline):not(.business-project-card__summary):not(.project-file-tree__item):not(.project-file-tree-files__path-segment):not(.project-file-tree-file-list__item--button):not(.project-file-vault-summary-card), [role="button"]:not(.secondary):not(.outline):not(.business-project-card__summary):not(.project-file-tree__item):not(.project-file-tree-files__path-segment):not(.project-file-tree-file-list__item--button):not(.project-file-vault-summary-card)):hover {
  border-color: var(--de-cobalt-hover);
  background: var(--de-cobalt-hover);
}

html[data-workspace-theme="digital-energy"] :is(
  button.project-file-tree__item,
  button.project-file-tree-files__path-segment,
  button.project-file-tree-file-list__item--button
) {
  border-color: transparent;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

html[data-workspace-theme="digital-energy"] :is(
  button.project-file-tree__item,
  button.project-file-tree-files__path-segment,
  button.project-file-tree-file-list__item--button
):is(:hover, :focus-visible, :active) {
  border-color: transparent;
  background: transparent;
}

html[data-workspace-theme="digital-energy"] .business-project-card {
  border-color: var(--de-slate-200);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-workspace-theme="digital-energy"] .business-project-card--expanded {
  border-color: rgba(0, 52, 175, 0.38);
  box-shadow: 0 4px 14px rgba(0, 52, 175, 0.08);
}

html[data-workspace-theme="digital-energy"] .business-project-card__summary {
  border-color: transparent;
  background: transparent;
  color: var(--de-slate-900);
}

html[data-workspace-theme="digital-energy"] .business-project-card__summary:is(:hover, :focus-visible, :active) {
  border-color: transparent;
  background: var(--de-slate-50);
  color: var(--de-slate-900);
}

html[data-workspace-theme="digital-energy"] .business-project-card__code {
  background: rgba(0, 52, 175, 0.07);
  color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] .project-file-organization-stats > div,
html[data-workspace-theme="digital-energy"] .project-file-vault-summary-card {
  border-color: var(--de-slate-200);
  background: #ffffff;
  color: var(--de-slate-900);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

html[data-workspace-theme="digital-energy"] .project-file-vault-summary-card:is(:hover, :focus-visible) {
  border-color: rgba(0, 52, 175, 0.3);
  background: var(--de-slate-50);
  color: var(--de-slate-900);
}

html[data-workspace-theme="digital-energy"] .scroll-to-top-button {
  border-color: var(--spot-brand-primary);
  background: var(--spot-brand-primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 31, 105, 0.22);
}

html[data-workspace-theme="digital-energy"] .scroll-to-top-button:is(:hover, :focus-visible) {
  border-color: var(--de-cobalt-hover);
  background: var(--de-cobalt-hover);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 31, 105, 0.28);
}

html[data-workspace-theme="digital-energy"] .scroll-to-top-button:focus-visible {
  outline: 3px solid rgba(22, 211, 242, 0.48);
  outline-offset: 3px;
}

html[data-workspace-theme="digital-energy"] :is(button.secondary, [role="button"].secondary, button.outline, [role="button"].outline) {
  border-color: var(--de-slate-300);
  background: #ffffff;
  color: var(--de-slate-700);
}

html[data-workspace-theme="digital-energy"] :is(button.secondary, [role="button"].secondary, button.outline, [role="button"].outline):hover {
  border-color: var(--spot-brand-primary);
  background: rgba(0, 52, 175, 0.06);
  color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] .member-role-button:is(.is-active, [aria-pressed="true"]),
html[data-workspace-theme="digital-energy"] .member-role-button:is(.is-active, [aria-pressed="true"]):is(:hover, :focus-visible) {
  border-color: var(--spot-brand-primary);
  background: var(--spot-brand-primary);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  opacity: 1;
}

html[data-workspace-theme="digital-energy"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: var(--de-slate-300);
  background: #ffffff;
  color: var(--de-slate-900);
}

html[data-workspace-theme="digital-energy"] input:is([type="checkbox"], [type="radio"]):checked {
  border-color: var(--spot-brand-primary);
  background-color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--spot-brand-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(0, 52, 175, 0.15);
}

html[data-workspace-theme="digital-energy"] .banner {
  border-color: rgba(2, 132, 199, 0.24);
  border-radius: 8px;
  background: rgba(2, 132, 199, 0.06);
  box-shadow: none;
}

html[data-workspace-theme="digital-energy"] .banner--error {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
}

html[data-workspace-theme="digital-energy"] .workflow-pill--success {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

html[data-workspace-theme="digital-energy"] .workflow-pill--info {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
}

html[data-workspace-theme="digital-energy"] .workflow-pill--warning {
  background: rgba(217, 119, 6, 0.12);
  color: #92400e;
}

html[data-workspace-theme="digital-energy"] .workflow-pill--danger {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

html[data-workspace-theme="digital-energy"] .workflow-pill--muted {
  background: var(--de-slate-100);
  color: var(--de-slate-600);
}

html[data-workspace-theme="digital-energy"] :is(.public-home__intro h1, .public-home__details h2) {
  color: var(--de-slate-900);
  font-family: "Saira Semi Condensed", "Arial Narrow", sans-serif;
}

html[data-workspace-theme="digital-energy"] :is(.public-home__lead, .public-home__details p) {
  color: var(--de-slate-600);
}

html[data-workspace-theme="digital-energy"] .public-home__signals strong,
html[data-workspace-theme="digital-energy"] .public-home__details a {
  color: var(--spot-brand-primary);
}

html[data-workspace-theme="digital-energy"] .public-home__access {
  border-top: 4px solid var(--spot-brand-primary);
  border-color: var(--de-slate-200);
  border-top-color: var(--spot-brand-primary);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

html[data-workspace-theme="digital-energy"] .public-home__google {
  border-left-color: var(--spot-brand-accent);
}

html[data-workspace-theme="digital-energy"] .page-help-popover__trigger,
html[data-workspace-theme="digital-energy"] .page-help-popover__content {
  border-color: var(--de-slate-200);
  background: #ffffff;
  color: var(--de-slate-600);
}

html[data-workspace-theme="digital-energy"] .app-footer {
  border-top-color: var(--de-slate-200);
  color: var(--de-slate-600);
}

@media (prefers-reduced-motion: reduce) {
  html[data-workspace-theme="digital-energy"] *,
  html[data-workspace-theme="digital-energy"] *::before,
  html[data-workspace-theme="digital-energy"] *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 720px) {
  html[data-workspace-theme="digital-energy"] .shell {
    width: min(100% - 1rem, 1240px);
  }

  html[data-workspace-theme="digital-energy"] .topbar {
    align-items: flex-start;
  }
}
