.theme-login {
  position: fixed;
  z-index: 60;
  top: calc(20px + env(safe-area-inset-top, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
}
.theme-workspace {
  padding: 16px 3px 0;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}
.theme-workspace .theme-segment button {
  flex-direction: column;
  gap: 5px;
  min-height: 48px;
  padding-inline: 2px;
}
.theme-workspace .theme-label {
  font-size: 10px;
}
.customer-workspace .theme-workspace {
  padding-inline: 4px;
  margin-top: 18px;
}
html[data-theme='light'] {
  --bg: #f6f8fc;
  --panel: #fff;
  --line: #dce4f0;
  --text: #24334d;
  --muted: #5e718d;
  --subtle: #74849b;
  --blue: #4866c1;
  --mint: #357760;
  --amber: #936223;
}
html[data-theme='light'] body,
html[data-theme='light'] body.customer-workspace {
  --client-border: #dce4f0;
  --client-surface: #fff;
  background: #f6f8fc;
  color: #24334d;
}
html[data-theme='light'] img[src='/18cat-mark.svg'] {
  content: url('/18cat-mark-light.svg');
}
html[data-theme='light'] :is(.workspace-rail, .section-sidebar) {
  background: #fbfcff;
  border-color: #dce4f0;
}
html[data-theme='light'] .workspace-rail {
  background: #edf2fa;
}
html[data-theme='light'] .section-sidebar::before {
  background: linear-gradient(90deg, transparent, #b8c9e6, transparent);
}
html[data-theme='light']
  :is(
    .rail-group,
    .rail-account,
    #section-navigation button,
    .menu-category summary,
    .section-sidebar .workspace-label,
    .section-nav-heading,
    .section-nav-caption,
    .sidebar-bottom small,
    .sidebar-bottom .text-button,
    .section-brand > span
  ) {
  color: #60738f;
}
html[data-theme='light'] :is(.rail-account, .space-signature, .user-avatar) {
  background: #edf3fc;
  border-color: #d0def1;
  color: #4a6592;
  box-shadow: none;
}
html[data-theme='light'] .rail-group.active,
html[data-theme='light'] #section-navigation button.active,
html[data-theme='light'] .menu-category[open] > summary {
  color: #3d5da7;
  background: #e8eefb;
  border-color: #cfdbf1;
  box-shadow: none;
}
html[data-theme='light']
  :is(.rail-group:hover, #section-navigation button:hover, .menu-category summary:hover) {
  background: #eef3fc;
  color: #36578f;
}
html[data-theme='light'] .menu-category.contains-current .menu-category-label {
  color: #3c5fa6;
}
html[data-theme='light'] .menu-category-items {
  border-color: #d4e0f1;
}
html[data-theme='light'] .menu-category-count {
  color: #778ba9;
}
html[data-theme='light'] .sidebar-bottom,
html[data-theme='light'] .theme-workspace {
  border-color: #d7e1f0;
}
html[data-theme='light'] :is(.sidebar-bottom strong, .section-brand, .brand, .story-brand) {
  color: #2a3d60;
}
html[data-theme='light'] .topbar {
  background: #f6f8fcf5;
  border-color: #dce4f0;
}
html[data-theme='light'] .context-picker {
  background: #fff;
  border-color: #d1ddee;
}
html[data-theme='light'] .context-picker select {
  background-color: transparent;
  border-color: #cbd9ee;
}
html[data-theme='light']
  :is(
    .context-picker label,
    .workspace-date,
    .breadcrumb,
    .breadcrumb > span:first-child,
    .breadcrumb-separator,
    .stage-kicker,
    .metric-scope,
    .focus-meta > span,
    .focus-description,
    .focus-stage-footer,
    .board-kicker,
    .attention-board .board-kicker,
    .notes-board .board-kicker,
    .agenda-date small,
    .agenda-content > small,
    .agenda-due,
    .attention-foot,
    .agenda-empty,
    .agenda-empty p,
    .site-switch-copy > small,
    .note-preview-type,
    .note-preview p,
    .service-dock-title div > span,
    .service-dock-item small,
    .panel-head p,
    .table-wrap th,
    .table-wrap td small,
    .client-row > span:first-child,
    .site-card p,
    .site-card .card-bottom > span,
    .connection-card p,
    .record-meta > span:first-child,
    .record-card p,
    .record-bottom > span,
    .field small,
    .form-footer,
    .security-card p,
    .notification-item p,
    .notification-item time,
    .ai-intro p,
    .ai-scope,
    .file-drop,
    .dialog-head p,
    .dialog-actions > span,
    .mail-channel-head p,
    .mail-channel-state small,
    .mail-stats small,
    .mail-facts dt,
    .mail-detail-note,
    .mail-account-note,
    .mail-message-id,
    .story-brand span,
    .constellation-caption,
    .story-kicker,
    .story-copy p,
    .story-foot,
    .login-eyebrow,
    .login-foot,
    .client-login-footer,
    .google-privacy-note,
    .google-mfa-copy
  ) {
  color: #5c708c;
}
html[data-theme='light']
  :is(
    .context-picker select,
    .page-heading h1,
    .metric-item strong,
    .focus-copy h2,
    .focus-domain,
    .orbit-node strong,
    .board-heading h2,
    .notes-board .board-heading h2,
    .agenda-content > strong,
    .agenda-empty h3,
    .site-switch-copy > strong,
    .note-preview > strong,
    .service-dock-title strong,
    .service-dock-item strong,
    .panel-head h2,
    .panel-title,
    .table-wrap td,
    .table-wrap td strong,
    .site-card h2,
    .connection-card h3,
    .record-card h2,
    .field,
    .check-field,
    .notification-item h3,
    .ai-intro h2,
    .mail-empty h2,
    .mail-channel-head h2,
    .mail-stats strong,
    .mail-facts dd,
    .story-copy h2,
    .login-card h1
  ) {
  color: #2b4063;
}
html[data-theme='light']
  :is(
    .page-heading p,
    .muted,
    .subtle,
    .empty-state,
    .empty-state h3,
    .stat-label,
    .active-site p,
    .preview-note,
    .info-grid dt,
    .info-grid dd,
    .flow-card p,
    .architecture-copy p,
    .architecture-list,
    .entity-flow span
  ) {
  color: #5f7491;
}
html[data-theme='light']
  :is(
    .panel,
    .workspace-metrics,
    .focus-stage,
    .attention-board,
    .sites-board,
    .notes-board,
    .service-dock,
    .security-card,
    .mail-channel-hero,
    .mail-stats,
    .mail-empty
  ) {
  background: #fff;
  border-color: #d7e2f1;
  box-shadow: 0 5px 20px #2c456b06;
}
html[data-theme='light'] :is(.panel::before, .focus-stage::before, .notes-board::before) {
  opacity: 0.2;
}
html[data-theme='light']
  :is(
    .metric-item,
    .metric-item + .metric-item,
    .panel-head,
    .panel-foot,
    .focus-stage-footer,
    .attention-foot,
    .agenda-item,
    .note-preview,
    .site-switch-item,
    .service-dock-title,
    .service-dock-item,
    .mail-facts > div,
    .mail-stats > div,
    .mail-account-note
  ) {
  border-color: #dce6f4;
}
html[data-theme='light'] .metric-item:hover,
html[data-theme='light'] .agenda-item:hover,
html[data-theme='light'] .site-switch-item:hover {
  background: #f3f7fd;
}
html[data-theme='light'] .focus-stage-footer {
  background: #f2f6fc;
}
html[data-theme='light'] .site-monogram {
  border-color: #cfdbed;
  box-shadow: inset 0 1px 0 #fff;
}
html[data-theme='light'] .site-monogram.tone-0 {
  color: #49658f;
  background: linear-gradient(140deg, #edf3fd, #dce7f8);
}
html[data-theme='light'] .site-monogram.tone-1 {
  color: #497465;
  background: linear-gradient(140deg, #edf7f1, #dcebe4);
}
html[data-theme='light'] .site-monogram.tone-2 {
  color: #896d45;
  background: linear-gradient(140deg, #faf5eb, #eee4d4);
}
html[data-theme='light'] .button,
html[data-theme='light'] .is-overview .heading-actions .button {
  background: linear-gradient(150deg, #fff, #f0f4fb);
  color: #3c557d;
  border-color: #cad8eb;
  box-shadow:
    inset 0 1px #fff,
    0 1px 3px #334f7a09;
}
html[data-theme='light'] .button:hover {
  background: #eaf0fc;
  border-color: #b7cae8;
}
html[data-theme='light'] .button-primary,
html[data-theme='light'].client-portal .login-card .button-primary {
  background: linear-gradient(145deg, #536bd0, #4e64d3);
  border-color: #536bd9;
  color: #fff;
  box-shadow:
    inset 0 1px #ffffff42,
    0 5px 15px #526ed51a;
}
html[data-theme='light'] .button-primary:hover {
  background: #536edc;
  color: #fff;
}
html[data-theme='light'] .button-quiet,
html[data-theme='light'] .text-button,
html[data-theme='light'] .subtle-link,
html[data-theme='light'] .attention-foot button {
  color: #4b66a4;
  background: transparent;
  box-shadow: none;
}
html[data-theme='light']
  :is(
    .badge,
    .current-site-tag,
    .mode-chip,
    .asset-symbol,
    .service-provider-mark,
    .prompt-grid button,
    .site-avatar
  ) {
  color: #55709d;
  border-color: #cedcf0;
  background: #f0f5fd;
}
html[data-theme='light'] .badge.warn,
html[data-theme='light'] .badge.error,
html[data-theme='light'] .due-soon {
  color: #99652d;
  background: #fcf4e9;
  border-color: #e9d5b9;
}
html[data-theme='light'] .badge.good {
  color: #39775f;
  background: #edf7f1;
  border-color: #cae3d5;
}
html[data-theme='light']
  :is(
    .filter-tabs button,
    .search,
    .field input,
    .field select,
    .field textarea,
    .ai-composer textarea,
    .credentials-value
  ) {
  color: #314b73;
  background: #fbfcff;
  border-color: #cbd9ee;
  box-shadow: none;
}
html[data-theme='light'] :is(.field input, .field select, .field textarea, .search):focus {
  border-color: #819cdc;
  box-shadow: 0 0 0 3px #6486e212;
}
html[data-theme='light'] :is(input, textarea)::placeholder {
  color: #65758d;
}
html[data-theme='light'] .filter-tabs button.selected {
  color: #3e5ca4;
  background: #e7eefc;
  border-color: #becfeb;
}
html[data-theme='light'] .filter-tabs {
  background: #eaf0fa;
  border-color: #d2def0;
}
html[data-theme='light'] :is(thead, .admin-table th) {
  background: #f0f5fc;
  color: #556f96;
}
html[data-theme='light'] :is(td, th, .pager, .notification-item) {
  border-color: #e0e8f4;
}
html[data-theme='light'] .notice-block {
  background: #edf3fd;
  color: #5c739a;
  border-color: #ceddf3;
}
html[data-theme='light'] :is(.new-note-button, .file-drop, .site-switch-item.is-current) {
  background: #f0f5fd;
  color: #49639b;
  border-color: #c5d7f2;
}
html[data-theme='light'] .site-artwork {
  background: radial-gradient(ellipse at 45% 20%, #e6edfd, #c7d7f0);
}
html[data-theme='light'] .site-artwork-name {
  color: #3c5791;
}
html[data-theme='light'] .site-artwork-domain {
  color: #647fa6;
}
html[data-theme='light'] :is(.orbit-node, .orbit-core) {
  background: #f0f5fd;
  border-color: #c8d8f0;
  color: #607caa;
  box-shadow: 0 6px 22px #3c5f9c12;
}
html[data-theme='light'] .orbit-plane,
html[data-theme='light'] .orbit-cross {
  border-color: #bacce555;
}
html[data-theme='light'] .orbit-center > span,
html[data-theme='light'] .orbit-coordinate {
  color: #8a9fbd;
}
html[data-theme='light'] .site-orbit {
  background: radial-gradient(ellipse at center, #e2edfd80, transparent 70%);
}
html[data-theme='light'] dialog,
html[data-theme='light'] #editor-form {
  background: #fff;
  color: #2c4268;
  border-color: #c5d6ef;
  box-shadow: 0 20px 80px #203e6429;
}
html[data-theme='light'] :is(.dialog-head, .dialog-actions) {
  background: #f7faff;
  border-color: #dce6f4;
}
html[data-theme='light'] dialog::backdrop {
  background: #2b41684d;
}
html[data-theme='light'] :is(.form-error, .mail-error, .job-error) {
  color: #af4356;
}
html[data-theme='light'] .toast {
  background: #f9fbff;
  color: #37547f;
  border-color: #c2d5ef;
  box-shadow: 0 8px 30px #2b4a7820;
}
html[data-theme='light'] :is(.menu-button, .drawer-close) {
  background: #f6f9ff;
  color: #4b6694;
  border-color: #cfddf1;
}
html[data-theme='light'] .drawer-open .drawer-overlay {
  background: #304a764d;
}
html[data-theme='light'] .login-screen,
html[data-theme='light'].client-portal .login-screen {
  background:
    radial-gradient(ellipse 750px 650px at 15% 10%, #e4edfc99, transparent 75%),
    radial-gradient(ellipse 900px 700px at 90% 90%, #e0eaff99, transparent 75%), #f6f8fc;
}
html[data-theme='light'] .login-screen::before,
html[data-theme='light'] .login-screen::after {
  opacity: 0.12;
}
html[data-theme='light'] .login-story {
  background: linear-gradient(150deg, #edf3fc, #f8faff);
  border-color: #dae5f4;
}
html[data-theme='light'] .login-card,
html[data-theme='light'].client-portal .login-card {
  background: #ffffffed;
  border-color: #d0ddf0;
  box-shadow:
    0 18px 60px #2b477414,
    inset 0 1px #fff;
}
html[data-theme='light'].client-portal .login-card h1,
html[data-theme='light'].client-portal .login-card .field,
html[data-theme='light'] .login-card .field {
  color: #344c71;
}
html[data-theme='light'].client-portal .login-card .field input {
  background: #f8faff;
  color: #2d456d;
  border-color: #cbd9ee;
}
html[data-theme='light'].client-portal .client-login-support {
  background: #f2f6fc;
  border-color: #d7e2f3;
  color: #6a7d98;
}
html[data-theme='light'].client-portal .client-login-home,
html[data-theme='light'].client-portal .client-login-footer a,
html[data-theme='light'].client-portal .login-password-help summary,
html[data-theme='light'].client-portal .login-verification summary,
html[data-theme='light'] .login-verification summary {
  color: #526e9e;
}
html[data-theme='light'].client-portal .login-password-help p {
  background: #fff;
  color: #5c7191;
  border-color: #cbdcf2;
  box-shadow: 0 10px 30px #2b497e1a;
}
html[data-theme='light'] .login-card .google-button,
html[data-theme='light'].client-portal .login-card .google-button {
  color: #3a527b;
  background: #fff;
  border-color: #cbd9ee;
}
html[data-theme='light'] .login-divider::before,
html[data-theme='light'] .login-divider::after {
  background: #d8e3f3;
}
html[data-theme='light'] .login-verification {
  border-color: #dbe4f2;
}
html[data-theme='light'] .login-orbit-plane {
  opacity: 0.35;
}
html[data-theme='light'] .constellation-core {
  background: #e2ebfc;
  border-color: #bacde9;
  box-shadow: 0 0 50px #6689d322;
}
html[data-theme='light'] .customer-workspace .section-sidebar {
  background: #fff;
  border-color: #dce4f0;
}
html[data-theme='light'] .customer-workspace .topbar {
  background: #f6f8fcf5;
  border-color: #dce4f0;
}
html[data-theme='light'] .customer-workspace .context-picker {
  background: transparent;
}
html[data-theme='light'] .customer-workspace .context-picker select {
  color: #3c557b;
  background-color: #f5f8fd;
  border-color: #d3dff0;
}
html[data-theme='light'] .customer-workspace #section-navigation .client-nav-item {
  color: #607591;
}
html[data-theme='light'] .customer-workspace #section-navigation .client-nav-item svg {
  color: #6c81a1;
}
html[data-theme='light'] .customer-workspace #section-navigation .client-nav-item.active,
html[data-theme='light'] .customer-workspace #section-navigation .client-nav-item.active svg {
  color: #4967b5;
  background: #edf2fd;
}
html[data-theme='light'] .customer-workspace #section-navigation .client-nav-item:hover {
  color: #3d5d94;
  background: #f0f5fc;
}
html[data-theme='light']
  :is(
    .client-metrics span,
    .client-metrics small,
    .client-current-site p,
    .client-site-row p,
    .client-record small,
    .client-record time,
    .client-empty p,
    .client-service-summary p,
    .client-section-note,
    .client-service-row small,
    .client-search > span
  ) {
  color: #5c708c;
}
html[data-theme='light']
  :is(
    .client-metrics strong,
    .client-current-site h2,
    .client-site-row h2,
    .client-panel-heading h2,
    .client-record strong,
    .client-empty h2,
    .client-empty h3,
    .client-service-row strong,
    .client-service-summary strong
  ) {
  color: #2c4369;
}
html[data-theme='light'] :is(.client-text-link, .client-back-link) {
  color: #4d6db8;
}
html[data-theme='light'] .client-site-symbol {
  color: #5a79af;
  background: #eef4fd;
  border-color: #d4e0f2;
}
html[data-theme='light'] .client-search input {
  background: #fff;
  color: #345079;
  border-color: #cad9ee;
}
html[data-theme='light'] .customer-workspace .badge {
  color: #57719a;
  background: #f0f5fd;
  border-color: #d2dff2;
}
html[data-theme='light'] .customer-workspace .button-primary {
  color: #fff;
  background: #536bd0;
  border-color: #526bd5;
}
html[data-theme='light'] .account-policy-page {
  background: radial-gradient(ellipse 900px 500px at 40% 0, #e2ecfc99, transparent), #f6f8fc;
}
html[data-theme='light'] .account-policy-content {
  background: #fff;
  border-color: #d6e2f2;
  box-shadow: 0 10px 40px #2a47720b;
}
html[data-theme='light']
  :is(.account-policy-content h1, .account-policy-content h2, .account-policy-content strong) {
  color: #2d466e;
}
html[data-theme='light']
  :is(
    .account-policy-lead,
    .account-policy-content section p,
    .account-policy-date,
    .account-policy-footer,
    .account-policy-header > a:last-child
  ) {
  color: #5c708c;
}
@media (max-width: 680px) {
  .theme-login {
    top: 12px;
    right: 12px;
  }
  html[data-theme='light'] .responsive-ledger tr {
    background: #fff;
    border-color: #d0dff2;
    box-shadow: none;
  }
  html[data-theme='light'] .responsive-ledger td,
  html[data-theme='light'] .responsive-ledger td[data-label]::before {
    color: #5a7497;
  }
}
@media (max-width: 600px) {
  html[data-theme='light'] .topbar .context-picker {
    background: transparent;
  }
  html[data-theme='light'] .topbar .context-picker select {
    background-color: #f5f8fd;
  }
}
html[data-theme='light'] .context-picker { background: #faf9fc; border-color: #e6e0ed; box-shadow: inset 0 1px 0 #fff; }
html[data-theme='light'] .context-picker label { color: #84768f; }
html[data-theme='light'] .context-picker select { background-color: #fff; color: #4c3d60; border-color: #ddd4e7; }
html[data-theme='light'] .context-picker select:hover { border-color: #b9a8cb; background-color: #fdfbff; }
