html[data-gk-theme="dark"] { color-scheme: dark; }
html[data-gk-theme="light"] { color-scheme: light; }

.gk-theme-toggle {
  width: 30px;
  height: 26px;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: #dce5ed;
  background: #161922;
  border: 1px solid #2a3040;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gk-theme-toggle:hover { color: #ffffff; border-color: #536176; transform: translateY(-1px); }
.gk-theme-toggle:focus-visible { outline: 2px solid #00b8c4; outline-offset: 2px; }
.gk-theme-toggle i { font-size: 17px; }
.gk-theme-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

html[data-gk-theme="light"] body:has(.gk-page) { background: #eef3f5; }

html[data-gk-theme="light"] .gk-dark-app {
  --gk-chat-bg: #eef3f5;
  --gk-chat-sidebar: #ffffff;
  --gk-chat-surface: #ffffff;
  --gk-chat-card: #f7fafb;
  --gk-chat-border: #dce4e8;
  --gk-chat-border-strong: #cbd7dd;
  --gk-chat-muted: #53616d;
  --gk-chat-soft: #6e7a85;
  --gk-chat-text: #1c2730;
  --gk-chat-white: #15212a;
  --gk-chat-cyan: #007f89;
  --ink: #17242d;
  --muted: #5d6973;
  --line: #d3dde2;
  --paper: #f7fafb;
  --panel: #ffffff;
  color: var(--gk-chat-text);
  background: var(--gk-chat-bg);
}

html[data-gk-theme="light"] .gk-window-titlebar {
  color: #586671;
  background: #f7fafb;
  border-bottom-color: #d8e2e7;
}

html[data-gk-theme="light"] .gk-theme-toggle {
  color: #34434e;
  background: #ffffff;
  border-color: #cbd8de;
  box-shadow: 0 1px 3px rgba(21, 42, 55, 0.08);
}

html[data-gk-theme="light"] .gk-theme-toggle:hover { color: #006d75; background: #edf9f8; border-color: #8bcac6; }
html[data-gk-theme="light"] .gk-live-dot,
html[data-gk-theme="light"] .gk-online-pill { color: #33434e; background: #ffffff; border-color: #d3dee3; }
html[data-gk-theme="light"] .gk-window-meta i { color: #6a7883; }
html[data-gk-theme="light"] .gk-update-flash { color: #08776f; }
html[data-gk-theme="light"] .gk-update-flash b { color: #08423f; background: #bceee8; }
html[data-gk-theme="light"] .gk-whatsapp-button { color: #08754b; background: #ffffff; border-color: #a8d9c2; }
html[data-gk-theme="light"] .gk-community-button { color: #285161; background: #ffffff; border-color: #bfd2da; }

html[data-gk-theme="light"] .gk-app-body,
html[data-gk-theme="light"] .gk-chat-workspace,
html[data-gk-theme="light"] .gk-chat-history { background: #eef3f5; }

html[data-gk-theme="light"] .gk-dark-app .gk-workspace-sidebar { background: #ffffff; border-right-color: #dce4e8; }
html[data-gk-theme="light"] .gk-dark-brand { border-bottom-color: #edf1f3; }
html[data-gk-theme="light"] .gk-dark-brand button { color: #17242d; }
html[data-gk-theme="light"] .gk-dark-brand > i,
html[data-gk-theme="light"] .gk-notification-button { color: #64727d; }
html[data-gk-theme="light"] .gk-dark-nav { scrollbar-color: #bdcbd2 #f4f7f8; }
html[data-gk-theme="light"] .gk-search-trigger { color: #33434e; background: #f5f8f9; border-color: #dce5e9; }
html[data-gk-theme="light"] .gk-search-trigger kbd { color: #596773; background: #e8eef1; border-color: #d1dde2; }
html[data-gk-theme="light"] .gk-tools-label,
html[data-gk-theme="light"] .gk-dark-menu-group .gk-group-label { color: #697782; }
html[data-gk-theme="light"] .gk-dark-nav a,
html[data-gk-theme="light"] .gk-dark-menu-group > summary,
html[data-gk-theme="light"] .gk-workspace-tool { color: #34434e; }
html[data-gk-theme="light"] .gk-dark-nav a:hover,
html[data-gk-theme="light"] .gk-dark-menu-group > summary:hover,
html[data-gk-theme="light"] .gk-workspace-tool:hover { color: #0b625f; background: #edf7f6; }
html[data-gk-theme="light"] .gk-dark-nav a.active,
html[data-gk-theme="light"] .gk-workspace-tool.active { color: #075e59; background: #dff3f0; }
html[data-gk-theme="light"] .gk-dark-nav i { color: #52636e; }
html[data-gk-theme="light"] .gk-dark-nav a.active i { color: #078078; }
html[data-gk-theme="light"] .gk-dark-menu-group > summary b { color: #536671; background: #edf2f4; }
html[data-gk-theme="light"] .gk-sidebar-bottom { color: #52616c; background: #f8fafb; border-top-color: #dfe7ea; }
html[data-gk-theme="light"] .gk-sidebar-legal-links { border-bottom-color: #dde5e9; }
html[data-gk-theme="light"] .gk-sidebar-legal-links a { color: #596873; }

html[data-gk-theme="light"] .gk-chat-header { background: rgba(255,255,255,0.96); border-bottom-color: #dce4e8; }
html[data-gk-theme="light"] .gk-chat-header div { color: #1b2730; }
html[data-gk-theme="light"] .gk-chat-header i { color: #63727d; }
html[data-gk-theme="light"] .gk-chat-header a,
html[data-gk-theme="light"] .gk-chat-header button,
html[data-gk-theme="light"] .gk-sidebar-open { color: #33434e; background: #ffffff; border-color: #d1dde2; }
html[data-gk-theme="light"] .gk-breadcrumb { color: #586671; }
html[data-gk-theme="light"] .gk-breadcrumb strong { color: #17242d; }
html[data-gk-theme="light"] .gk-profile-menu,
html[data-gk-theme="light"] .gk-share-menu,
html[data-gk-theme="light"] .gk-overflow-menu,
html[data-gk-theme="light"] .gk-notification-panel { color: #1c2730; background: #ffffff; border-color: #ccd9df; box-shadow: 0 16px 38px rgba(26, 45, 57, 0.14); }
html[data-gk-theme="light"] .gk-profile-menu button,
html[data-gk-theme="light"] .gk-share-menu a,
html[data-gk-theme="light"] .gk-share-menu button,
html[data-gk-theme="light"] .gk-overflow-menu a,
html[data-gk-theme="light"] .gk-overflow-menu button { color: #263640; }
html[data-gk-theme="light"] .gk-profile-menu button:hover,
html[data-gk-theme="light"] .gk-share-menu a:hover,
html[data-gk-theme="light"] .gk-share-menu button:hover,
html[data-gk-theme="light"] .gk-overflow-menu a:hover,
html[data-gk-theme="light"] .gk-overflow-menu button:hover { background: #edf7f6; }

html[data-gk-theme="light"] .gk-assistant-block,
html[data-gk-theme="light"] .gk-assistant-block > p { color: #24333d; }
html[data-gk-theme="light"] .gk-home-panel,
html[data-gk-theme="light"] .gk-community-panel,
html[data-gk-theme="light"] .gk-game-catalog,
html[data-gk-theme="light"] .gk-user-workspace-panel { color: #1c2730; }
html[data-gk-theme="light"] .gk-home-panel h1 { color: #16222b; }
html[data-gk-theme="light"] .gk-home-panel h1 strong { color: #6a5109; }
html[data-gk-theme="light"] .gk-home-panel > p,
html[data-gk-theme="light"] .gk-home-references > p { color: #53616d; }
html[data-gk-theme="light"] .gk-home-steps article,
html[data-gk-theme="light"] .gk-home-references a,
html[data-gk-theme="light"] .gk-home-partner-grid a { color: #283842; background: #ffffff; border-color: #d2dde2; }
html[data-gk-theme="light"] .gk-home-steps article b { color: #075e59; background: #bfece6; }
html[data-gk-theme="light"] .gk-home-references { border-top-color: #d7e1e5; }

html[data-gk-theme="light"] .gk-inline-tool,
html[data-gk-theme="light"] .gk-inline-pane { color: #1c2730; background: #f7fafb; border-color: #ced9df; }
html[data-gk-theme="light"] .gk-inline-form-pane { background: #ffffff; border-right-color: #d7e1e5; }
html[data-gk-theme="light"] .gk-inline-result-pane { background: #f4f7f8; }
html[data-gk-theme="light"] .gk-inline-tool-head h2,
html[data-gk-theme="light"] .gk-inline-tool h1,
html[data-gk-theme="light"] .gk-inline-tool h2,
html[data-gk-theme="light"] .gk-inline-tool h3,
html[data-gk-theme="light"] .gk-inline-tool h4 { color: #17242d; }
html[data-gk-theme="light"] .gk-inline-tool-head small,
html[data-gk-theme="light"] .gk-inline-guru-form label { color: #5b4a16; }
html[data-gk-theme="light"] .gk-inline-tool-head + p,
html[data-gk-theme="light"] .gk-inline-tool small,
html[data-gk-theme="light"] .guru-result .section-heading span { color: #5f6d78; }

html[data-gk-theme="light"] .gk-dark-app .guru-form input,
html[data-gk-theme="light"] .gk-dark-app .guru-form select,
html[data-gk-theme="light"] .gk-dark-app .guru-form textarea,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields input,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields select,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields textarea {
  color: #17242d;
  background: #ffffff;
  border-color: #bdcbd2;
  color-scheme: light;
}
html[data-gk-theme="light"] .gk-dark-app .guru-form input::placeholder,
html[data-gk-theme="light"] .gk-dark-app .guru-form textarea::placeholder { color: #7a8791; }
html[data-gk-theme="light"] .gk-dark-app .guru-form input:focus,
html[data-gk-theme="light"] .gk-dark-app .guru-form select:focus,
html[data-gk-theme="light"] .gk-dark-app .guru-form textarea:focus { border-color: #168b84; outline-color: rgba(22,139,132,.18); }
html[data-gk-theme="light"] .gk-dark-app .guru-form option { color: #17242d; background: #ffffff; }
html[data-gk-theme="light"] .gk-dark-app .inline-check { color: #34434e; }

html[data-gk-theme="light"] .gk-dark-app .guru-result,
html[data-gk-theme="light"] .gk-dark-app .guru-document,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-box,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-loading-card { color: #1c2730; background: #ffffff; border-color: #ccd8de; }
html[data-gk-theme="light"] .gk-dark-app .guru-document p,
html[data-gk-theme="light"] .gk-dark-app .guru-document li,
html[data-gk-theme="light"] .gk-dark-app .guru-document ul { color: #3d4c56; }
html[data-gk-theme="light"] .gk-dark-app .guru-document-table th,
html[data-gk-theme="light"] .gk-dark-app .guru-document-table td,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table td,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table td { color: #24333d; background: #ffffff; border-color: #bfcdd4; }
html[data-gk-theme="light"] .gk-dark-app .guru-document-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table th { color: #17242d; background: #eaf2f4; }
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-band { color: #173039; background: #dfecef !important; }
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-list li { color: #24333d !important; }
html[data-gk-theme="light"] .gk-dark-app .guru-document-scroll::-webkit-scrollbar-track { background: #e3ebef; }

html[data-gk-theme="light"] .gk-dark-app button:not(.gk-theme-toggle):not(.guru-form-actions button):not(.gk-primary-btn),
html[data-gk-theme="light"] .gk-dark-app .guru-download-menu > summary { border-color: #b8c9d1; }
html[data-gk-theme="light"] .gk-dark-app .guru-download-options,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-choices { color: #1c2730; background: #ffffff; border-color: #c6d3da; box-shadow: 0 14px 34px rgba(22,42,54,.14); }
html[data-gk-theme="light"] .gk-dark-app .guru-download-options button,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-choices button { color: #24333d; }
html[data-gk-theme="light"] .gk-dark-app .guru-download-options button:hover,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-choices button:hover { background: #edf7f6; }

html[data-gk-theme="light"] .gk-account-modal,
html[data-gk-theme="light"] .gk-auth-modal,
html[data-gk-theme="light"] .guru-fullscreen-preview { color-scheme: light; }
html[data-gk-theme="light"] .gk-account-card,
html[data-gk-theme="light"] .gk-auth-card,
html[data-gk-theme="light"] .gk-upgrade-card { color: #1c2730; background: #ffffff; border-color: #cbd8de; }
html[data-gk-theme="light"] .gk-account-card input,
html[data-gk-theme="light"] .gk-auth-card input { color: #17242d; background: #ffffff; border-color: #bdcbd2; color-scheme: light; }

/* The legacy GuruID skin ends with dark !important declarations. Keep this
   final light layer explicit so every workspace surface follows the toggle. */
html[data-gk-theme="light"] .gk-dark-app {
  color: #1c2730 !important;
  background: #eef3f5 !important;
}

html[data-gk-theme="light"] .gk-app-body,
html[data-gk-theme="light"] .gk-chat-workspace,
html[data-gk-theme="light"] .gk-chat-history {
  color: #1c2730 !important;
  background: #eef3f5 !important;
}

html[data-gk-theme="light"] .gk-chat-history {
  border-color: #d4dfe4 !important;
  box-shadow: inset 0 0 0 1px rgba(35, 55, 68, 0.025) !important;
  scrollbar-color: #aabac2 #e6edef !important;
}

html[data-gk-theme="light"] .gk-dark-app .gk-workspace-sidebar {
  color: #263640 !important;
  background: #ffffff !important;
  border-right-color: #dce4e8 !important;
}

html[data-gk-theme="light"] .gk-window-titlebar,
html[data-gk-theme="light"] .gk-chat-header {
  color: #33434e !important;
  background: #f8fafb !important;
  border-color: #d8e2e7 !important;
}

html[data-gk-theme="light"] .gk-window-meta,
html[data-gk-theme="light"] .gk-window-meta span {
  color: #53626d !important;
}

html[data-gk-theme="light"] .gk-dark-brand,
html[data-gk-theme="light"] .gk-dark-brand button,
html[data-gk-theme="light"] .gk-dark-brand button .gk-brand-logo + span {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-breadcrumb,
html[data-gk-theme="light"] .gk-breadcrumb button {
  color: #586671 !important;
}

html[data-gk-theme="light"] .gk-breadcrumb b {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-breadcrumb i {
  color: #75838d !important;
}

html[data-gk-theme="light"] .gk-notification-button {
  color: #536671 !important;
}

html[data-gk-theme="light"] .gk-notification-button b {
  background: #078078 !important;
  box-shadow: 0 0 0 2px #ffffff !important;
}

html[data-gk-theme="light"] .gk-dark-nav a,
html[data-gk-theme="light"] .gk-search-trigger,
html[data-gk-theme="light"] .gk-dark-menu-group > summary,
html[data-gk-theme="light"] .gk-tool-group > summary,
html[data-gk-theme="light"] .gk-dark-app .gk-workspace-tool,
html[data-gk-theme="light"] .gk-mini-list a {
  color: #34434e !important;
}

html[data-gk-theme="light"] .gk-tools-label,
html[data-gk-theme="light"] .gk-tool-group > summary,
html[data-gk-theme="light"] .gk-dark-menu-group .gk-group-label {
  color: #697782 !important;
}

html[data-gk-theme="light"] .gk-dark-nav a:hover,
html[data-gk-theme="light"] .gk-search-trigger:hover,
html[data-gk-theme="light"] .gk-dark-menu-group > summary:hover,
html[data-gk-theme="light"] .gk-tool-group > summary:hover,
html[data-gk-theme="light"] .gk-dark-app .gk-workspace-tool:hover {
  color: #075e59 !important;
  background: #edf7f6 !important;
}

html[data-gk-theme="light"] .gk-dark-app .gk-workspace-tool.active,
html[data-gk-theme="light"] .gk-dark-app .gk-workspace-tool.active b {
  color: #075e59 !important;
  background: #dff3f0 !important;
}

html[data-gk-theme="light"] .gk-tool-search label,
html[data-gk-theme="light"] .gk-tool-search small {
  color: #5b6873 !important;
}

html[data-gk-theme="light"] .gk-tool-search input {
  color: #17242d !important;
  background: #ffffff !important;
  border-color: #bdcbd2 !important;
}

html[data-gk-theme="light"] .gk-sidebar-bottom,
html[data-gk-theme="light"] .gk-sidebar-bottom > span {
  color: #52616c !important;
  background: #f8fafb !important;
  border-color: #dfe7ea !important;
}

html[data-gk-theme="light"] .gk-sidebar-bottom .gk-sidebar-legal-links a {
  color: #596873 !important;
}

html[data-gk-theme="light"] .gk-notification-panel {
  color: #1c2730 !important;
  background: #ffffff !important;
  border-color: #ccd9df !important;
  box-shadow: 0 16px 38px rgba(26, 45, 57, 0.14) !important;
}

html[data-gk-theme="light"] .gk-notification-panel strong,
html[data-gk-theme="light"] .gk-notification-panel p {
  color: #263640 !important;
}

html[data-gk-theme="light"] .gk-dark-app .gk-tool-panel,
html[data-gk-theme="light"] .gk-home-panel,
html[data-gk-theme="light"] .gk-community-panel,
html[data-gk-theme="light"] .gk-user-workspace-panel,
html[data-gk-theme="light"] .gk-game-catalog {
  color: #1c2730 !important;
  background: #f7fafb !important;
  border-color: #d3dde2 !important;
  box-shadow: none !important;
}

html[data-gk-theme="light"] .gk-home-panel h1,
html[data-gk-theme="light"] .gk-home-panel h2,
html[data-gk-theme="light"] .gk-home-panel h3,
html[data-gk-theme="light"] .gk-home-panel strong {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-home-panel h1 strong {
  color: #6a5109 !important;
}

html[data-gk-theme="light"] .gk-home-panel p,
html[data-gk-theme="light"] .gk-home-panel small {
  color: #53616d !important;
}

html[data-gk-theme="light"] .gk-home-steps article,
html[data-gk-theme="light"] .gk-home-references a,
html[data-gk-theme="light"] .gk-home-partner-grid a {
  color: #283842 !important;
  background: #ffffff !important;
  border-color: #d2dde2 !important;
}

html[data-gk-theme="light"] .gk-home-steps span,
html[data-gk-theme="light"] .gk-home-references span {
  color: #34434e !important;
}

html[data-gk-theme="light"] .gk-home-references {
  border-top-color: #d7e1e5 !important;
}

html[data-gk-theme="light"] .gk-home-partners {
  color: #1c2730 !important;
  background: #edf3f5 !important;
  border-color: #cbd8de !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

html[data-gk-theme="light"] .gk-home-partners-head {
  border-color: #cbd8de !important;
}

html[data-gk-theme="light"] .gk-home-partners-head span {
  color: #08776f !important;
}

html[data-gk-theme="light"] .gk-home-partners-head h2 {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-home-partner-grid a,
html[data-gk-theme="light"] .gk-home-partner-grid a strong,
html[data-gk-theme="light"] .gk-home-partner-grid a small,
html[data-gk-theme="light"] .gk-home-partner-grid a i {
  color: #283842 !important;
}

html[data-gk-theme="light"] .gk-inline-tool,
html[data-gk-theme="light"] .gk-inline-pane {
  color: #1c2730 !important;
  background: #f7fafb !important;
  border-color: #ced9df !important;
}

html[data-gk-theme="light"] .gk-inline-form-pane {
  background: #ffffff !important;
  border-right-color: #d7e1e5 !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane {
  background: #f4f7f8 !important;
}

html[data-gk-theme="light"] .gk-inline-tool-head > i,
html[data-gk-theme="light"] .gk-inline-tool-head h2,
html[data-gk-theme="light"] .gk-inline-tool h1,
html[data-gk-theme="light"] .gk-inline-tool h2,
html[data-gk-theme="light"] .gk-inline-tool h3,
html[data-gk-theme="light"] .gk-inline-tool h4,
html[data-gk-theme="light"] .gk-inline-result-pane .section-heading h2 {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-inline-tool-head small,
html[data-gk-theme="light"] .gk-dark-app .guru-form label,
html[data-gk-theme="light"] .gk-dark-app .guru-copy {
  color: #5b4a16 !important;
}

html[data-gk-theme="light"] .gk-inline-form-pane > p,
html[data-gk-theme="light"] .gk-inline-result-pane .section-heading span,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-result-empty p {
  color: #5f6d78 !important;
}

html[data-gk-theme="light"] .gk-dark-app .guru-form input,
html[data-gk-theme="light"] .gk-dark-app .guru-form select,
html[data-gk-theme="light"] .gk-dark-app .guru-form textarea,
html[data-gk-theme="light"] .gk-dark-app .guru-copy textarea,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields input,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields select,
html[data-gk-theme="light"] .gk-dark-app .guru-identity-fields textarea {
  color: #17242d !important;
  background: #ffffff !important;
  border-color: #bdcbd2 !important;
  color-scheme: light !important;
}

html[data-gk-theme="light"] .gk-dark-app .guru-form input::placeholder,
html[data-gk-theme="light"] .gk-dark-app .guru-form textarea::placeholder {
  color: #7a8791 !important;
}

html[data-gk-theme="light"] .gk-dark-app .guru-form .inline-check,
html[data-gk-theme="light"] .gk-dark-app .guru-form option {
  color: #34434e !important;
  background: #ffffff !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-result {
  color: #1c2730 !important;
  background: transparent !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-identity-box,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-loading-card,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-loading-card {
  color: #1c2730 !important;
  background: #ffffff !important;
  border-color: #ccd8de !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document h3,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document h4,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-table-block h5,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-loading-card h3 {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document p,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document li,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-loading-card p {
  color: #3d4c56 !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-table th,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-table td,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-table th,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-table td,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-inner-table th,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-inner-table td,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table td,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table td {
  color: #24333d !important;
  background: #ffffff !important;
  border-color: #bfcdd4 !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-table th,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-table th,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-module-inner-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-print-table th,
html[data-gk-theme="light"] .gk-dark-app .gk-bk-instrument-table th {
  color: #17242d !important;
  background: #eaf2f4 !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen),
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-paper {
  color: #1c2730 !important;
  background: transparent !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) p,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) li,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) td,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-subtitle {
  color: #24333d !important;
}

html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-label,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-subheader,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-activity-main,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-activity-item strong {
  color: #17242d !important;
}

html[data-gk-theme="light"] .gk-result-scroll-top,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-scroll {
  scrollbar-color: #aabac2 #e6edef !important;
}

html[data-gk-theme="light"] .gk-result-scroll-top::-webkit-scrollbar-thumb,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-scroll::-webkit-scrollbar-thumb {
  background: #aabac2 !important;
}

html[data-gk-theme="light"] .gk-result-scroll-top::-webkit-scrollbar-track,
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document-scroll::-webkit-scrollbar-track {
  background: #e6edef !important;
}

html[data-gk-theme="light"] .gk-account-card,
html[data-gk-theme="light"] .gk-auth-card,
html[data-gk-theme="light"] .gk-upgrade-card {
  color: #1c2730 !important;
  background: #ffffff !important;
  border-color: #cbd8de !important;
}

/* Controls and authentication have legacy colors independent of the shell. */
html[data-gk-theme="light"] .gk-dark-app .gk-auth-card :is(h2, label, .gk-auth-brand),
html[data-gk-theme="light"] .gk-auth-card :is(h2, label, .gk-auth-brand) {
  color: #24333d !important;
}
html[data-gk-theme="light"] .gk-auth-card :is(p, small) { color: #53616d !important; }
html[data-gk-theme="light"] .gk-auth-card .gk-auth-form input {
  color: #17242d !important;
  background: #ffffff !important;
  border-color: #a8bac4 !important;
  color-scheme: light !important;
}
html[data-gk-theme="light"] .gk-auth-card input::placeholder { color: #657580 !important; }
html[data-gk-theme="light"] .gk-auth-tabs { background: #e8eff2 !important; border-color: #cad7dd !important; }
html[data-gk-theme="light"] .gk-auth-tabs button { color: #34434e !important; background: transparent !important; }
html[data-gk-theme="light"] .gk-auth-tabs button.active { color: #075e59 !important; background: #cdece7 !important; }
html[data-gk-theme="light"] .gk-auth-close,
html[data-gk-theme="light"] .gk-auth-close i,
html[data-gk-theme="light"] .gk-dark-app .gk-icon-toggle,
html[data-gk-theme="light"] .gk-dark-app .gk-icon-toggle i,
html[data-gk-theme="light"] .gk-dark-app .gk-form-side-toggle,
html[data-gk-theme="light"] .gk-dark-app .gk-form-side-toggle i {
  color: #27606a !important;
  background: transparent !important;
}
html[data-gk-theme="light"] .gk-window-titlebar .gk-whatsapp-button {
  color: #12633f !important;
  background: #e8f5ee !important;
  border-color: #a5ceba !important;
}
html[data-gk-theme="light"] .gk-window-titlebar .gk-community-button {
  color: #285364 !important;
  background: #eaf2f7 !important;
  border-color: #b6cdd9 !important;
}
html[data-gk-theme="light"] .gk-window-titlebar :is(.gk-whatsapp-button, .gk-community-button) :is(i, span) { color: inherit !important; }
html[data-gk-theme="light"] .gk-window-titlebar .gk-whatsapp-button svg { fill: currentColor !important; }

/* Shared surfaces across account, workspace, community and tool dialogs. */
html[data-gk-theme="light"] :is(.gk-profile-menu, .gk-share-menu, .gk-overflow-menu, .gk-account-card, .gk-auth-card, .gk-upgrade-card, .gk-pro-welcome-card, .gk-community-post, .gk-community-composer, .gk-community-side section, .gk-game-card, .guru-master-prompt-editor, .guru-master-prompt-more-menu) {
  color: #24333d !important;
  background: #ffffff !important;
  border-color: #c8d6dd !important;
  box-shadow: 0 12px 30px #18374618 !important;
}
html[data-gk-theme="light"] :is(.gk-profile-menu, .gk-share-menu, .gk-overflow-menu, .gk-account-card, .gk-upgrade-card, .gk-pro-welcome-card, .gk-community-panel, .gk-user-workspace-panel, .gk-game-card, .guru-master-prompt-editor, .guru-master-prompt-summary) :is(h2,h3,h4,strong,b,label,dt) {
  color: #24333d !important;
}
html[data-gk-theme="light"] :is(.gk-profile-menu, .gk-account-card, .gk-upgrade-card, .gk-community-panel, .gk-user-workspace-panel, .gk-game-card, .guru-master-prompt-editor, .guru-master-prompt-summary) :is(p,small,li,dd,pre) {
  color: #52636e !important;
}
html[data-gk-theme="light"] :is(.gk-profile-menu, .gk-share-menu, .gk-overflow-menu) :is(a,button),
html[data-gk-theme="light"] .gk-chat-header .gk-more-wrap .gk-overflow-menu :is(a,button,span,i) {
  color: #285364 !important;
  background: #edf5f6 !important;
}
html[data-gk-theme="light"] :is(.gk-profile-avatar,.gk-account-avatar,.gk-header-plan,.gk-quota-badge,.gk-header-profile strong) {
  color: #285364 !important;
  background: #edf5f6 !important;
  border-color: #bbced6 !important;
}
html[data-gk-theme="light"] :is(.gk-profile-avatar,.gk-account-avatar) i { color: #285364 !important; }
html[data-gk-theme="light"] :is(.gk-account-details div,.gk-dashboard-grid article,.gk-upgrade-profile,.gk-upgrade-plan,.gk-upgrade-payment,.gk-community-hero,.gk-community-answer,.gk-community-comments div,.guru-master-prompt-summary,.guru-master-prompt-editor-head,.guru-master-prompt-tip,.guru-tka-coverage,.guru-tka-coverage article) {
  color: #24333d !important;
  background: #edf4f6 !important;
  border-color: #cad9df !important;
}
html[data-gk-theme="light"] :is(.gk-account-edit-form,.gk-community-composer,.gk-user-workspace-panel) :is(input,select,textarea) {
  color: #24333d !important;
  background: #ffffff !important;
  border-color: #aabfc9 !important;
}
html[data-gk-theme="light"] :is(.gk-account-close,.gk-account-close i,.guru-master-prompt-actions a,.guru-master-prompt-more summary) { color: #285364 !important; background: #edf5f6 !important; }

/* Match the complete legacy module selector, including its :not specificity. */
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-paper :is(table,td,th) {
  color: #24333d !important;
  background: #ffffff !important;
  border-color: #bfcdd4 !important;
}
html[data-gk-theme="light"] .gk-inline-result-pane .guru-document.guru-document-module:not(.guru-document-fullscreen) .guru-module-paper :is(.guru-module-major,.guru-module-subheader) {
  color: #173942 !important;
  background: #e5f0f2 !important;
}

/* Secondary states are mounted lazily by the workspace and generators. */
html[data-gk-theme="light"] :is(.gk-user-workspace-statusbar,.gk-workspace-empty-state,.gk-bk-program-latest,.guru-master-prompt-choice,.gk-payment-panel,.gk-checkout-loading-content,.gk-pro-popup,.gk-workspace-list article,.gk-workspace-guide,.gk-workspace-filter-note,.gk-workspace-stat,.gk-workspace-card) {
  color: #24333d !important;
  background: #ffffff !important;
  border-color: #c8d6dd !important;
}
html[data-gk-theme="light"] :is(.gk-user-workspace-panel,.gk-payment-panel,.gk-checkout-loading-content,.gk-pro-popup,.gk-bk-program-latest,.guru-master-prompt-choice,.guru-reflection-goals,.guru-teaching-goals,.guru-tka-coverage) :is(strong,b,h2,h3,h4,label,span,small,p,li,summary) {
  color: #344b58 !important;
}
html[data-gk-theme="light"] :is(.gk-workspace-mini-form,.gk-payment-panel) :is(input,select,textarea) { color: #24333d !important; background: #ffffff !important; border-color: #aabfc9 !important; }
html[data-gk-theme="light"] .gk-checkout-loading { background: #eaf0f4e8 !important; }

/* Interactive controls must remain legible on the light workspace. */
html[data-gk-theme="light"] .gk-dark-app :is(.gk-inline-tool,.gk-user-workspace-panel,.gk-community-panel) :is(button,summary,a.button,.secondary,.guru-related-card):not(:disabled) {
  color: #174f5b !important;
  border-color: #8eafb9 !important;
}
html[data-gk-theme="light"] .gk-dark-app :is(.gk-inline-tool,.gk-user-workspace-panel,.gk-community-panel) :is(button,summary,a.button,.secondary) :is(i,span,strong) {
  color: inherit !important;
}
html[data-gk-theme="light"] :is(.guru-continuation-actions button,.guru-continuation-menu summary,.guru-related-card,.guru-continuation-menu > div,.guru-related-modal-card,.guru-related-current,.guru-continuation-item,.gk-bk-instrument-choices) {
  color: #174f5b !important;
  background: #ffffff !important;
  border-color: #8eafb9 !important;
}
html[data-gk-theme="light"] :is(.guru-continuation-actions button,.guru-continuation-menu summary)::after { color: #176673 !important; }
html[data-gk-theme="light"] .gk-dark-app :is(button,summary,a.button):focus-visible { outline: 2px solid #087f89 !important; outline-offset: 3px; }
html[data-gk-theme="light"] .gk-dark-app :is(button,input,select,textarea):disabled { color: #64717a !important; border-color: #b8c6cd !important; opacity: 0.75; }
html[data-gk-theme="light"] :is(.guru-continuation-actions button,.guru-continuation-menu summary,.guru-related-card):hover { color: #103d47 !important; background: #e0f0ef !important; border-color: #41838b !important; }

html[data-gk-theme="light"] :is(.gk-bk-privacy,.gk-bk-program-counter),
html[data-gk-theme="light"] :is(.gk-community-panel,.gk-game-catalog,.gk-pro-popup,.gk-pro-welcome-card,.gk-account-card) :is(p,small,span,label) {
  color: #435c69 !important;
}
html[data-gk-theme="light"] :is(.gk-pro-welcome-close,.gk-pro-welcome-close i) { color: #285364 !important; background: #edf5f6 !important; }

/* Fullscreen previews stay paper-white in both themes. */
.guru-fullscreen-preview,
.guru-fullscreen-preview .guru-fullscreen-scroll { color-scheme: light; }
.guru-fullscreen-preview .guru-document.guru-document-fullscreen { color: #111827; background: #ffffff; }
.guru-fullscreen-preview .guru-document.guru-document-fullscreen p,
.guru-fullscreen-preview .guru-document.guru-document-fullscreen li,
.guru-fullscreen-preview .guru-document.guru-document-fullscreen ul { color: #334155; }
.guru-fullscreen-preview .guru-document.guru-document-fullscreen th { color: #172026; background: #eef6f6; }
.guru-fullscreen-preview .guru-document.guru-document-fullscreen td { color: #172026; background: #ffffff; }

@media (max-width: 780px) {
  .gk-theme-toggle { width: 27px; height: 25px; flex-basis: 27px; }
  .gk-window-right .gk-theme-toggle { display: inline-grid; }
}

@media print {
  .gk-theme-toggle { display: none !important; }
}
