/* JT THEME TOKENS — light mode is a first-class option, not a filter */
:root{color-scheme:dark}
html[data-jt-theme="light"]{color-scheme:light;--jtp-bg:#f5f7ff;--jtp-panel:#fff;--jtp-panel-2:#edf0fb;--jtp-text:#17182b;--jtp-muted:#59617a;--jtp-line:rgba(70,78,125,.18)}
html[data-jt-theme="light"] body:not(.jtw-home){background:radial-gradient(ellipse at 8% 0%,rgba(133,120,255,.12),transparent 35%),radial-gradient(ellipse at 96% 10%,rgba(61,193,208,.10),transparent 30%),#f5f7ff!important;color:#17182b!important}
html[data-jt-theme="light"] body:not(.jtw-home) .site-header{background:rgba(255,255,255,.86)!important;border-bottom-color:#e3e7f2!important}
html[data-jt-theme="light"] body:not(.jtw-home) .brand-copy strong{color:#20233a!important}
html[data-jt-theme="light"] body:not(.jtw-home) .brand-copy small{color:#69718b!important}
html[data-jt-theme="light"] body:not(.jtw-home) .nav-links a{color:#555d76!important}
html[data-jt-theme="light"] body:not(.jtw-home) .nav-links a:hover,html[data-jt-theme="light"] body:not(.jtw-home) .nav-links a.active{color:#242642!important}
html[data-jt-theme="light"] body:not(.jtw-home) .page-hero{border-bottom-color:#e4e8f3!important}
html[data-jt-theme="light"] body:not(.jtw-home) .page-hero p,html[data-jt-theme="light"] body:not(.jtw-home) .card p,html[data-jt-theme="light"] body:not(.jtw-home) .jt-card p,html[data-jt-theme="light"] body:not(.jtw-home) .page-content p{color:#5e667f!important}
html[data-jt-theme="light"] body:not(.jtw-home) .card,html[data-jt-theme="light"] body:not(.jtw-home) .jt-card,html[data-jt-theme="light"] body:not(.jtw-home) .download-product-card,html[data-jt-theme="light"] body:not(.jtw-home) .signin-box,html[data-jt-theme="light"] body:not(.jtw-home) .sandbox-sidebar,html[data-jt-theme="light"] body:not(.jtw-home) .sandbox-stage{background:linear-gradient(145deg,#fff,#f7f8ff)!important;border-color:#e0e5f2!important;box-shadow:0 16px 44px rgba(45,55,100,.07)!important;color:#20233a!important}
html[data-jt-theme="light"] body:not(.jtw-home) .btn-ghost{background:#fff!important;border-color:#dce1ef!important;color:#323751!important}
html[data-jt-theme="light"] body:not(.jtw-home) .site-footer,html[data-jt-theme="light"] body:not(.jtw-home) footer{background:rgba(255,255,255,.85)!important;border-top-color:#e1e5f1!important;color:#4e5671!important}
html[data-jt-theme="light"] body:not(.jtw-home) .footer-links a,html[data-jt-theme="light"] body:not(.jtw-home) footer a{color:#505875!important}
html[data-jt-theme="light"] body:not(.jtw-home) input,html[data-jt-theme="light"] body:not(.jtw-home) textarea,html[data-jt-theme="light"] body:not(.jtw-home) select{background:#fff!important;color:#20233a!important;border-color:#d8deed!important}
html[data-jt-theme="light"] body:not(.jtw-home) .jeff-chat{background:#fff!important;color:#20233a!important}
html[data-jt-theme="light"] body.jtw-home{background:#f6f7ff!important;color:#1b1d35!important;--jtw-bg:#f6f7ff;--jtw-panel:#fff;--jtw-text:#1b1d35;--jtw-muted:#626a83;--jtw-line:rgba(70,78,125,.16)}
html[data-jt-theme="light"] .jtw-header{background:rgba(255,255,255,.88)!important;border-bottom-color:#e3e7f2!important}
html[data-jt-theme="light"] .jtw-brand strong{color:#20233a}
html[data-jt-theme="light"] .jtw-brand small,html[data-jt-theme="light"] .jtw-nav a,html[data-jt-theme="light"] .jtw-login{color:#59617a!important}
html[data-jt-theme="light"] .jtw-nav a:hover{color:#20233a!important}
html[data-jt-theme="light"] .jtw-hero,html[data-jt-theme="light"] .jtw-platform-section,html[data-jt-theme="light"] .jtw-workflow-section,html[data-jt-theme="light"] .jtw-ai-section{background:transparent!important}
html[data-jt-theme="light"] .jtw-preview-top,html[data-jt-theme="light"] .jtw-preview-main,html[data-jt-theme="light"] .jtw-preview-sidebar{background:#fff!important;color:#20233a!important}
html[data-jt-theme="light"] .jtw-preview-sidebar{border-right:1px solid #e6e9f3}
html[data-jt-theme="light"] .jtw-preview-main p,html[data-jt-theme="light"] .jtw-preview-main small,html[data-jt-theme="light"] .jtw-preview-cards small,html[data-jt-theme="light"] .jtw-prompt-copy span{color:#68708a!important}
html[data-jt-theme="light"] .jtw-preview-cards>a,html[data-jt-theme="light"] .jtw-prompt-card,html[data-jt-theme="light"] .jtw-floating-badge{background:#f5f6fc!important;border-color:#e1e5f0!important;color:#272a46!important}
html[data-jt-theme="light"] .jtw-hero h1,html[data-jt-theme="light"] .jtw-section-head h2,html[data-jt-theme="light"] .jtw-product h3,html[data-jt-theme="light"] .jtw-workflow-grid h3,html[data-jt-theme="light"] .jtw-ai-copy h2,html[data-jt-theme="light"] .jtw-final-cta h2{color:#1d1f37!important}
html[data-jt-theme="light"] .jtw-hero-copy>p,html[data-jt-theme="light"] .jtw-section-head>p,html[data-jt-theme="light"] .jtw-product>p,html[data-jt-theme="light"] .jtw-workflow-grid p,html[data-jt-theme="light"] .jtw-ai-copy>p,html[data-jt-theme="light"] .jtw-final-cta p{color:#606984!important}
html[data-jt-theme="light"] .jtw-product{background:linear-gradient(150deg,#fff,#f8f9ff)!important;border-color:#e2e6f2!important;box-shadow:0 16px 50px rgba(45,55,100,.06)}
html[data-jt-theme="light"] .jtw-ai-glass{background:rgba(255,255,255,.9)!important;border-color:#e1e5f1!important;color:#20233a!important;box-shadow:0 24px 80px rgba(45,55,100,.1)}
html[data-jt-theme="light"] .jtw-ai-message,html[data-jt-theme="light"] .jtw-ai-response{color:#20233a!important}
html[data-jt-theme="light"] .jtw-ai-message p,html[data-jt-theme="light"] .jtw-ai-response p{color:#606984!important}
html[data-jt-theme="light"] .jtw-footer{background:#fff!important;border-top-color:#e2e6f2!important;color:#4d5570!important}
html[data-jt-theme="light"] .jtw-footer nav a{color:#555d76!important}
html[data-jt-theme="light"] .jtw-trust-line,html[data-jt-theme="light"] .jtw-hero-foot{color:#68708a!important}
html[data-jt-theme="light"] .jtw-final-cta{background:linear-gradient(120deg,#f0efff,#e8fbfc)!important;border-color:#e1e4f3!important}
html[data-jt-theme="light"] .jtw-code-window{background:#f5f6fc!important;color:#333753!important;border-color:#e0e4f0}
html[data-jt-theme="light"] .jtw-preview-label,html[data-jt-theme="light"] .jtw-product-label{color:#747c96!important}
.jt-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 12px;border:1px solid rgba(130,140,180,.28);border-radius:12px;background:rgba(130,140,180,.09);color:inherit;font:700 12px/1 inherit;white-space:nowrap;cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.jt-theme-toggle:hover{transform:translateY(-1px);border-color:#8b83ff;background:rgba(139,131,255,.14)}
.jt-theme-toggle .jt-theme-icon{font-size:15px}
.jtw-header .jt-theme-toggle{margin-left:0}
.app-top .jt-theme-toggle{margin-left:auto}
@media(max-width:640px){.jt-theme-toggle{min-height:35px;padding:7px 9px;font-size:11px}.app-top .jt-theme-toggle{margin-left:0}.jtw-header .jt-theme-toggle{order:5}}
/* App shell theme tokens */
html[data-jt-theme="light"] body:has(.app-top){background:#f4f6ff!important;color:#1e2139!important}
html[data-jt-theme="light"] body:has(.app-top) .app-top{background:rgba(255,255,255,.92)!important;border-color:#e0e5f1!important;color:#20233a!important}
html[data-jt-theme="light"] body:has(.app-top) .app-brand strong{color:#20233a!important}
html[data-jt-theme="light"] body:has(.app-top) .app-brand small,html[data-jt-theme="light"] body:has(.app-top) .app-nav a{color:#5e6680!important}
html[data-jt-theme="light"] body:has(.app-top) .app-nav a:hover{color:#222541!important}
html[data-jt-theme="light"] body:has(.app-top) .app-main{color:#20233a!important}
html[data-jt-theme="light"] body:has(.app-top) .app-hero p,html[data-jt-theme="light"] body:has(.app-top) .app-tile p,html[data-jt-theme="light"] body:has(.app-top) .app-main .muted{color:#5e6680!important}
html[data-jt-theme="light"] body:has(.app-top) .app-art,html[data-jt-theme="light"] body:has(.app-top) .app-tile{background:linear-gradient(145deg,#fff,#f7f8ff)!important;border-color:#e0e5f1!important;color:#20233a!important;box-shadow:0 14px 42px rgba(45,55,100,.07)}
html[data-jt-theme="light"] body:has(.app-top) .app-button.secondary{background:#fff!important;border-color:#dce1ef!important;color:#343954!important}
html[data-jt-theme="light"] body:has(.app-top) .app-section,html[data-jt-theme="light"] body:has(.app-top) .app-feature{border-color:#e0e5f1!important}
html[data-jt-theme="light"] body:has(.app-top) .app-footer{border-color:#e0e5f1!important;color:#5e6680!important}

/* JT AI Agent workspace — readable Copilot-inspired day mode */
html[data-jt-theme="light"] body:has(.app-shell){background:#f5f7fd!important;color:#25283f!important}
html[data-jt-theme="light"] .app-shell{background:#f5f7fd!important;color:#25283f!important}
html[data-jt-theme="light"] .sidebar{background:#fff!important;border-right-color:#e4e7f1!important}
html[data-jt-theme="light"] .brand{color:#242740!important}
html[data-jt-theme="light"] .brand small,html[data-jt-theme="light"] .side-label,html[data-jt-theme="light"] .recent-head,html[data-jt-theme="light"] .empty-recent{color:#7a829b!important}
html[data-jt-theme="light"] .new-chat{background:#f6f7fc!important;color:#333751!important;border-color:#dfe3ef!important}
html[data-jt-theme="light"] .new-chat kbd{color:#737b95!important;border-color:#d7dceb!important}
html[data-jt-theme="light"] .side-link{color:#555d78!important}
html[data-jt-theme="light"] .side-link.active,html[data-jt-theme="light"] .side-link:hover{background:#eeefff!important;color:#37315e!important}
html[data-jt-theme="light"] .model-pill,html[data-jt-theme="light"] .profile-link{color:#353954!important}
html[data-jt-theme="light"] .model-pill small,html[data-jt-theme="light"] .profile-link small{color:#737b95!important}
html[data-jt-theme="light"] .main{background:#f8f9fe!important;color:#25283f!important}
html[data-jt-theme="light"] .topbar{background:rgba(255,255,255,.9)!important;border-bottom-color:#e4e7f1!important;color:#343752!important}
html[data-jt-theme="light"] .breadcrumb{color:#666e88!important}
html[data-jt-theme="light"] .secure-label{color:#63718a!important}
html[data-jt-theme="light"] .conversation{background:radial-gradient(ellipse at 50% 15%,rgba(157,143,255,.10),transparent 52%),#f8f9fe!important}
html[data-jt-theme="light"] .welcome h1{color:#22243d!important}
html[data-jt-theme="light"] .welcome>p{color:#636b85!important}
html[data-jt-theme="light"] .welcome-eyebrow{color:#6b648d!important}
html[data-jt-theme="light"] .suggestions button{background:linear-gradient(140deg,#fff,#f8f9ff)!important;border-color:#e1e5f1!important;color:#30334f!important;box-shadow:0 8px 25px rgba(48,55,105,.045)}
html[data-jt-theme="light"] .suggestions button:hover{border-color:#b5a9ff!important;background:#fff!important;box-shadow:0 12px 28px rgba(80,71,160,.09)}
html[data-jt-theme="light"] .suggestions small{color:#727a93!important}
html[data-jt-theme="light"] .composer-wrap{background:linear-gradient(180deg,rgba(248,249,254,0),#f8f9fe 28%)!important}
html[data-jt-theme="light"] .composer{background:#fff!important;border-color:#dfe4f0!important;box-shadow:0 14px 45px rgba(45,55,100,.09)!important}
html[data-jt-theme="light"] .composer textarea{color:#272a44!important}
html[data-jt-theme="light"] .composer textarea::placeholder{color:#8a91a8!important}
html[data-jt-theme="light"] .tool-button{color:#606984!important}
html[data-jt-theme="light"] .tool-button:hover{background:#f0efff!important;color:#4b4284!important}
html[data-jt-theme="light"] .composer-disclaimer,html[data-jt-theme="light"] #composerHint{color:#7b839b!important}
html[data-jt-theme="light"] .message.assistant{background:#fff!important;border:1px solid #e3e7f1!important;color:#30334d!important;box-shadow:0 8px 26px rgba(45,55,100,.04)}
html[data-jt-theme="light"] .message.user{background:#e9e8ff!important;color:#29274d!important}
html[data-jt-theme="light"] .settings-button{background:#f3f4fb!important;color:#515a75!important;border-color:#e0e4f0!important}
html[data-jt-theme="light"] .jt-theme-toggle{color:#3e4260!important;background:#f2f3fb!important;border-color:#dfe3ef!important}
html[data-jt-theme="light"] .top-actions .jt-theme-toggle{min-height:34px;padding:7px 9px}
@media(max-width:700px){html[data-jt-theme="light"] .sidebar{box-shadow:12px 0 36px rgba(45,55,100,.10)}}


/* Jeff AI light-mode response visibility fix */
html[data-jt-theme="light"] body:has(.app-shell) .messages{color:#25283f!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-row{color:#25283f!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-content{color:#25283f!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-row.assistant .message-content{background:#fff!important;border:1px solid #e3e7f1!important;border-radius:14px;padding:13px 16px;box-shadow:0 8px 26px rgba(45,55,100,.045)}
html[data-jt-theme="light"] body:has(.app-shell) .message-row.user .message-content{background:#e9e8ff!important;border:1px solid #dcd9ff!important;color:#29274d!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-label{color:#69718b!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-avatar{background:#eeefff!important;color:#51478e!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-row.user .message-avatar{background:#e3e6f3!important;color:#414965!important}
html[data-jt-theme="light"] body:has(.app-shell) .message-actions button{color:#5c6380!important;border-color:#dfe3ef!important;background:#f7f8fd!important}
html[data-jt-theme="light"] body:has(.app-shell) .typing{color:#6655ad!important}
html[data-jt-theme="light"] body:has(.app-shell) .project-panel{background:#fff!important;color:#292d49!important;border-color:#dfe4f0!important;box-shadow:0 20px 60px rgba(40,48,90,.15)!important}
html[data-jt-theme="light"] body:has(.app-shell) .project-panel p,
html[data-jt-theme="light"] body:has(.app-shell) .project-panel-actions span{color:#69718b!important}
html[data-jt-theme="light"] body:has(.app-shell) .provider-picker select{color:#525a76!important;background:#f7f8fd!important}
html[data-jt-theme="light"] body:has(.app-shell) .toast{background:#fff!important;color:#292d49!important;border-color:#dfe4f0!important;box-shadow:0 12px 35px rgba(40,48,90,.12)!important}

/* Keep the JT app directory in its signature dark workspace treatment in either site theme. */
html[data-jt-theme="light"] .jtw-platform-section .jtw-product,
html[data-jt-theme="light"] .app-grid .app-tile{
  background:linear-gradient(145deg,rgba(23,32,52,.98),rgba(12,18,31,.99))!important;
  border-color:rgba(165,181,224,.2)!important;
  color:#f4f6ff!important;
  box-shadow:0 18px 48px rgba(0,0,0,.2)!important;
}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product h3,
html[data-jt-theme="light"] .app-grid .app-tile h3{color:#f5f7ff!important}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product p,
html[data-jt-theme="light"] .app-grid .app-tile p{color:#aeb8cd!important}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product-link,
html[data-jt-theme="light"] .app-grid .tile-open{color:#e8eaff!important;border-color:rgba(165,181,224,.16)!important}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product-label{color:var(--app-b,#77dfe1)!important}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product-arrow{color:#c3cce0!important}
html[data-jt-theme="light"] .jtw-platform-section .jtw-product-icon,
html[data-jt-theme="light"] .app-grid .tile-icon{color:#fff!important}

/* Dark-mode counterpart for the JT AI Agent's light-first workspace styles */
html[data-jt-theme="dark"] body:has(.app-shell),html[data-jt-theme="dark"] .app-shell{background:#0d0f17!important;color:#e8eaf2!important}
html[data-jt-theme="dark"] .sidebar{background:#11131c!important;border-right-color:#252837!important;color:#e8eaf2!important}
html[data-jt-theme="dark"] .brand,html[data-jt-theme="dark"] .model-pill,html[data-jt-theme="dark"] .profile-link{color:#e8eaf2!important}
html[data-jt-theme="dark"] .brand small,html[data-jt-theme="dark"] .side-label,html[data-jt-theme="dark"] .recent-head,html[data-jt-theme="dark"] .empty-recent,html[data-jt-theme="dark"] .model-pill small,html[data-jt-theme="dark"] .profile-link small{color:#9299ad!important}
html[data-jt-theme="dark"] .new-chat{background:#191c28!important;border-color:#303448!important;color:#f0f1f8!important}
html[data-jt-theme="dark"] .side-link{color:#b2b7c8!important}
html[data-jt-theme="dark"] .side-link.active,html[data-jt-theme="dark"] .side-link:hover,html[data-jt-theme="dark"] .recent-item.active,html[data-jt-theme="dark"] .recent-item:hover{background:#222438!important;color:#f2f0ff!important}
html[data-jt-theme="dark"] .main,html[data-jt-theme="dark"] .conversation{background:#0d0f17!important;color:#e8eaf2!important}
html[data-jt-theme="dark"] .topbar{background:rgba(17,19,28,.96)!important;border-bottom-color:#272a39!important;color:#e8eaf2!important}
html[data-jt-theme="dark"] .breadcrumb,html[data-jt-theme="dark"] .secure-label,html[data-jt-theme="dark"] .welcome>p{color:#a1a7b8!important}
html[data-jt-theme="dark"] .breadcrumb b,html[data-jt-theme="dark"] .welcome h1{color:#f1f2f8!important}
html[data-jt-theme="dark"] .suggestions button{background:#171a25!important;border-color:#2b3041!important;color:#e8eaf2!important;box-shadow:none!important}
html[data-jt-theme="dark"] .suggestions b{color:#f0f1f7!important}
html[data-jt-theme="dark"] .suggestions small{color:#a1a7b8!important}
html[data-jt-theme="dark"] .suggestions button:hover{background:#202337!important;border-color:#6f68c8!important}
html[data-jt-theme="dark"] .composer-wrap{background:linear-gradient(180deg,rgba(13,15,23,0),#0d0f17 28%)!important}
html[data-jt-theme="dark"] .composer{background:#171a25!important;border-color:#303448!important;box-shadow:0 12px 40px #0005!important}
html[data-jt-theme="dark"] .composer textarea,html[data-jt-theme="dark"] .tool-button,html[data-jt-theme="dark"] .provider-picker select{background:transparent!important;color:#e7e9f2!important}
html[data-jt-theme="dark"] .composer textarea::placeholder,html[data-jt-theme="dark"] .composer-disclaimer,html[data-jt-theme="dark"] #composerHint{color:#969db0!important}
html[data-jt-theme="dark"] .message-content{color:#e7e9f2!important}
html[data-jt-theme="dark"] .message-row.assistant .message-content{background:#171a25!important;border:1px solid #2b3040!important;border-radius:13px;padding:13px 16px}
html[data-jt-theme="dark"] .message-row.user .message-content{background:#292640!important;border:1px solid #3b365f!important;color:#f0efff!important}
html[data-jt-theme="dark"] .message-body h1,html[data-jt-theme="dark"] .message-body h2,html[data-jt-theme="dark"] .message-body h3{color:#f0f1f7!important}
html[data-jt-theme="dark"] .message-body code{background:#252938!important;border-color:#363b4d!important;color:#e6e4ff!important}
html[data-jt-theme="dark"] .message-body blockquote{background:#1a1d2a!important;color:#b3b8c8!important}
html[data-jt-theme="dark"] .message-actions button,html[data-jt-theme="dark"] .message-followup{background:#191c29!important;border-color:#34394b!important;color:#c3c7d5!important}
html[data-jt-theme="dark"] .jt-ai-tools-drawer{background:#151823!important;border-color:#303448!important;color:#e8eaf2!important}
html[data-jt-theme="dark"] .jt-ai-tools-drawer>summary{color:#e8eaf2!important}
html[data-jt-theme="dark"] .jt-ai-tools-hint{color:#a1a7b8!important}
html[data-jt-theme="dark"] .jt-ai-tools-content{border-top-color:#303448!important}
html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power{background:#11141e!important;color:#e8eaf2!important;border-color:#303448!important}
html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-card{background:#171a25!important;border-color:#303448!important}
html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-card h3,html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-field{color:#e1e4ef!important}
html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-field input,html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-field textarea,html[data-jt-theme="dark"] .jt-ai-tools-content .jt-power-field select{background:#10131d!important;color:#edf0f8!important;border-color:#34394b!important}
html[data-jt-theme="dark"] .jt-theme-toggle{background:#202438!important;border-color:#3b4056!important;color:#f0efff!important}
html[data-jt-theme="dark"] .project-panel{background:#171a25!important;color:#e8eaf2!important;border-color:#303448!important}
@media(prefers-reduced-motion:reduce){.jt-theme-toggle{transition:none!important;transform:none!important}}
