/* ==========================================================================
   Skillroot Flow - Cyber Intelligence Platform Extensions
   Extends Aigenix Theme for Multi-Tenant Data, ETL & AI Operations
   ========================================================================== */

/* --- Humequity-Style Native Smooth Scrolling --- */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 90px;
}

/* --- Floating Cyber-Glass Navbar Pill --- */
#navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1050 !important;
    min-height: 80px;
}

.nav-shell {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Light mode navbar (Harmonized with Chat Soft Frost) */
body:not(.dark-mode) .nav-shell {
    background: #c5e2f7 !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(2, 132, 199, 0.28) !important;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.12) !important;
}

body.dark-mode .nav-shell {
    background: rgba(3, 35, 42, 0.65) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 119, 0, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Light Mode Global Navbar Controls */
body:not(.dark-mode) .sk-brand-text {
    color: #0f2942 !important;
}

body:not(.dark-mode) .sk-brand-text span {
    color: #0284c7 !important;
}

body:not(.dark-mode) .nav-link {
    color: #1e3a5f !important;
}

body:not(.dark-mode) .menu-item:hover .nav-link,
body:not(.dark-mode) .menu-item.active .nav-link {
    color: #0284c7 !important;
}

body:not(.dark-mode) .dropdown-panel {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 15px 35px rgba(14, 116, 144, 0.15) !important;
}

body:not(.dark-mode) .dropdown-link {
    color: #1e3a5f !important;
}

body:not(.dark-mode) .dropdown-link:hover {
    background: rgba(2, 132, 199, 0.08) !important;
    color: #0284c7 !important;
}

body:not(.dark-mode) #theme-toggle {
    color: #1e3a5f !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body:not(.dark-mode) #theme-toggle:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
}

body:not(.dark-mode) #nav-user-session .sk-badge {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) #settings-menu-btn {
    color: #1e3a5f !important;
}

body:not(.dark-mode) #settings-menu-btn:hover,
body:not(.dark-mode) #settings-menu-btn.active {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
}

/* ==========================================================================
   Full-Bleed Atmospheric Layout (Site-Wide Light / Dark Support)
   ========================================================================== */
html,
body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:not(.dark-mode) {
    background: linear-gradient(180deg, #c5e2f7 0%, #dceefb 30%, #eaf4fc 65%, #d5eaf9 100%) !important;
    background-attachment: fixed !important;
    color: #0f2942;
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background: linear-gradient(180deg, #034651 0%, #02333c 22%, #022026 50%, #021015 78%, #02070a 100%) !important;
    background-attachment: fixed !important;
    color: #e2e8f0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Force full-bleed zero-radius on all page sections so corners never expose dark/black backdrops */
section.inner-hero,
section.aig-section,
section.radius-25,
section.mlr-40,
.inner-hero.radius-25,
.aig-section.radius-25 {
    border-radius: 0 !important;
    -webkit-border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 1. Global Hero (Compact Header Across All Pages) */
body:not(.dark-mode) .inner-hero,
body.dark-mode .inner-hero {
    background: transparent !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    padding-top: 124px !important;
    padding-bottom: 14px !important;
    position: relative;
    overflow: hidden;
}

.inner-hero .container,
.inner-hero .container.ptb-80 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.inner-hero .aig-badge {
    margin-bottom: 6px !important;
    padding: 3px 10px !important;
    font-size: 0.68rem !important;
}

.inner-hero .inner-hero-title {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
}

.inner-hero p {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

.inner-hero-glow {
    width: 240px !important;
    height: 140px !important;
}

/* 2. Global Main Content Sections & Sticky-Bottom Footer Flex Layout */
body:not(.login-page) {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

body:not(.dark-mode):not(.v2-seamless-layout) .aig-section,
body:not(.dark-mode):not(.v2-seamless-layout) .aig-section.bg-dark,
body:not(.dark-mode):not(.v2-seamless-layout) section.bg-dark,
body.dark-mode:not(.v2-seamless-layout) .aig-section,
body.dark-mode:not(.v2-seamless-layout) .aig-section.bg-dark,
body.dark-mode:not(.v2-seamless-layout) section.bg-dark {
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    width: 100% !important;
    flex: 1 0 auto !important;
    padding-top: 108px !important;
    padding-bottom: 70px !important;
    position: relative;
}

/* 3. Global Footer */
body:not(.dark-mode) #cyber-footer {
    background: #c5e2f7 !important;
    border-top: 1px solid rgba(2, 132, 199, 0.25) !important;
    border-radius: 0 !important;
    color: #1e3a5f !important;
    margin: auto 0 0 0 !important;
    width: 100% !important;
    padding: 2rem 0 !important;
    flex-shrink: 0 !important;
}

body:not(.dark-mode) #cyber-footer a {
    color: #0284c7 !important;
}

body:not(.dark-mode) #cyber-footer p,
body:not(.dark-mode) #cyber-footer span {
    color: #53748d !important;
}

body.dark-mode #cyber-footer {
    background: #02070a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 0 !important;
    margin: auto 0 0 0 !important;
    width: 100% !important;
    padding: 2rem 0 !important;
    flex-shrink: 0 !important;
}

/* 4. Overview Page Developer Cockpit (Compact Header) */
body:not(.dark-mode) .overview-modules,
body.dark-mode .overview-modules {
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    flex: 1 0 auto !important;
    padding-top: 108px !important;
    padding-bottom: 70px !important;
    position: relative;
}

.overview-modules .section-header-cyber {
    margin-bottom: 1.25rem !important;
}

.overview-modules .section-header-cyber .aig-badge {
    margin-bottom: 6px !important;
    padding: 3px 10px !important;
    font-size: 0.68rem !important;
}

.overview-modules .section-header-cyber .aig-section-title {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 4px !important;
}

.overview-modules .section-header-cyber p {
    font-size: 0.86rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

/* 5. Login Gateway */
body.login-page {
    height: 100vh !important;
    overflow: hidden !important;
}

body:not(.dark-mode) .login-section {
    background: linear-gradient(135deg, #dceefb 0%, #eaf4fc 50%, #d5eaf9 100%) !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 1rem 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

body.dark-mode .login-section {
    background: linear-gradient(180deg, #034651 0%, #02333c 20%, #022026 45%, #021015 70%, #02070a 100%) !important;
    margin: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    min-height: 100vh !important;
    padding: 1rem 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-section .auth-card {
    padding: 2.25rem 2.25rem !important;
    max-height: 94vh;
}

.login-section .auth-header {
    margin-bottom: 1.25rem !important;
}

.login-section .auth-icon-shield {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 0.75rem !important;
}

.login-section .auth-divider {
    margin: 1rem 0 !important;
}

/* --- Custom Layout & Containers --- */
.sk-card {
    background: #081116;
    border: 1px solid rgba(255, 119, 0, 0.15);
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sk-card:hover {
    border-color: rgba(255, 119, 0, 0.4);
}

.sk-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

/* --- Metric Cards --- */
.sk-metric-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.sk-metric-val {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 12px 0 6px 0;
}

.sk-metric-lbl {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8da4a8;
}

.sk-trend-up {
    color: var(--primary, #ff7700);
    font-size: 0.85rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.sk-trend-down {
    color: #ff5e62;
    font-size: 0.85rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* --- Cyber Data Tables --- */
.sk-table-container {
    background: rgba(8, 14, 18, 0.85);
    border: 1px solid rgba(255, 119, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.sk-table {
    width: 100%;
    margin-bottom: 0;
    color: #d1e2e4;
    border-collapse: collapse;
}

.sk-table th {
    background: rgba(3, 70, 81, 0.35);
    color: var(--primary, #ff7700);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 119, 0, 0.2);
    white-space: nowrap;
}

.sk-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    vertical-align: middle;
}

.sk-table tr:hover td {
    background: rgba(255, 119, 0, 0.04);
}

.sk-cell-mono {
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.82rem;
    color: #a4c2cb;
}

/* --- Badges & Status Tags --- */
.sk-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.sk-badge-success {
    background: rgba(255, 119, 0, 0.12);
    color: #ff7700;
    border: 1px solid rgba(255, 119, 0, 0.35);
}

.sk-badge-info {
    background: rgba(3, 70, 81, 0.4);
    color: #38ef7d;
    border: 1px solid rgba(56, 239, 125, 0.3);
}

.sk-badge-warning {
    background: rgba(255, 179, 0, 0.12);
    color: #ffb300;
    border: 1px solid rgba(255, 179, 0, 0.3);
}

.sk-badge-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #8da4a8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sk-badge-teal {
    background: rgba(3, 70, 81, 0.5);
    color: #ff7700;
    border: 1px solid rgba(255, 119, 0, 0.25);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* --- Filter & Action Bar --- */
.sk-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(13, 20, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
}

.sk-search-input {
    background: rgba(2, 6, 8, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    padding: 8px 14px 8px 36px;
    font-size: 0.88rem;
    min-width: 240px;
    outline: none;
    transition: all 0.25s ease;
}

.sk-search-input:focus {
    border-color: var(--primary, #ff7700);
    box-shadow: 0 0 10px rgba(255, 119, 0, 0.2);
}

.sk-select {
    background: rgba(2, 6, 8, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #d1e2e4;
    padding: 8px 14px;
    font-size: 0.88rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    outline: none;
    cursor: pointer;
}

.sk-select:focus {
    border-color: var(--primary, #ff7700);
}

/* --- Code & SQL Editors --- */
.sk-console {
    background: #020608;
    border: 1px solid rgba(255, 119, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.sk-console-topbar {
    background: #071217;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #8da4a8;
}

.sk-console-body {
    padding: 16px;
    color: #c9e8ea;
    font-size: 0.9rem;
    min-height: 180px;
    line-height: 1.6;
    background: transparent;
    width: 100%;
    border: none;
    outline: none;
    resize: vertical;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* --- Onboarding Stepper --- */
.sk-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.sk-stepper::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.sk-step-item {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    cursor: pointer;
}

.sk-step-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #081115;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #8da4a8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    transition: all 0.3s ease;
}

.sk-step-item.active .sk-step-circle {
    background: var(--primary, #ff7700);
    color: #000;
    border-color: var(--primary, #ff7700);
    box-shadow: 0 0 16px rgba(255, 119, 0, 0.5);
}

.sk-step-item.completed .sk-step-circle {
    background: #034651;
    color: var(--primary, #ff7700);
    border-color: var(--primary, #ff7700);
}

.sk-step-label {
    font-size: 0.82rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    color: #8da4a8;
}

.sk-step-item.active .sk-step-label {
    color: #ffffff;
    font-weight: 600;
}

/* --- Brand Logo text --- */
.sk-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sk-brand-text {
    font-family: var(--font-display, 'Space Grotesk', sans-serif);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 1px;
    color: #fff;
}

.sk-brand-text span {
    color: var(--primary, #ff7700);
}

/* ==========================================================================
   OPTIONAL DARK MODE (Only activates when explicitly toggled on)
   ========================================================================== */

body.dark-mode {
    background: linear-gradient(180deg, #034651 0%, #02333c 22%, #022026 50%, #021015 78%, #02070a 100%) !important;
    background-attachment: fixed !important;
}

body.dark-mode .nav-shell {
    background: rgba(3, 14, 18, 0.92) !important;
    border: 1px solid rgba(255, 119, 0, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode #cyber-footer {
    background: #020507 !important;
    border-top: 1px solid rgba(255, 119, 0, 0.15) !important;
}

/* ==========================================================================
   AI AGENT V2 - FULL-BLEED SEAMLESS ATMOSPHERIC LAYOUT
   Harmonizes v2 with Overview and Platform Cockpit layout
   ========================================================================== */

body.v2-seamless-layout {
    background-color: #02070a !important;
    overflow-anchor: none !important;
}

html {
    overflow-anchor: none !important;
}

/* Stable Headline Height: Prevents Typed.js Layout Shifts & Idle Scroll Bouncing */
body.v2-seamless-layout .hero-title .line.accent {
    display: block;
    min-height: 2.35em;
    width: 100%;
}

/* Atmospheric Marquee Ribbon: Seamless Floating Bridge with Cyber Glow */
body.v2-seamless-layout .cyber-ticker-ribbon {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 40px 0 !important;
    background: linear-gradient(90deg, rgba(2, 26, 32, 0.95) 0%, rgba(3, 54, 63, 0.90) 50%, rgba(2, 26, 32, 0.95) 100%) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 119, 0, 0.22) !important;
    border-bottom: 1px solid rgba(255, 119, 0, 0.22) !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: 0 0 35px rgba(3, 70, 81, 0.35), 0 0 15px rgba(255, 119, 0, 0.08) !important;
    overflow: hidden !important;
}

/* Feathered Hero Overlay & Canvas Handoff (eliminates hard cut at bottom of hero) */
body.v2-seamless-layout #hero {
    background: linear-gradient(180deg, #034651 0%, #03363f 55%, #022026 100%) !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-top: none !important;
    border-bottom: none !important;
    padding-top: 130px;
    padding-bottom: 70px;
}

body.v2-seamless-layout .hero-overlay {
    background:
        radial-gradient(ellipse 55% 50% at 30% 50%, rgba(255, 119, 0, 0.06) 0%, transparent 65%),
        linear-gradient(180deg, transparent 40%, rgba(2, 32, 38, 0.6) 75%, #022026 100%) !important;
}

body.v2-seamless-layout .hero-grid-bg {
    mask-image: linear-gradient(180deg, black 50%, transparent 100%) !important;
    -webkit-mask-image: linear-gradient(180deg, black 50%, transparent 100%) !important;
}

/* Soft Vertical Feather Masks on All Background Grid Patterns (no hard ceiling or floor) */
body.v2-seamless-layout .dark-bg-pattern,
body.v2-seamless-layout .features-grid-bg,
body.v2-seamless-layout .pricing-grid-bg {
    mask-image: linear-gradient(180deg, transparent 0%, black 140px, black calc(100% - 140px), transparent 100%) !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 140px, black calc(100% - 140px), transparent 100%) !important;
}

body.v2-seamless-layout .footer-matrix-bg {
    mask-image: linear-gradient(180deg, transparent 0%, black 120px) !important;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 120px) !important;
}

/* Diffused Cyber Horizon on Footer (eliminates sharp 2px dividing seam) */
body.v2-seamless-layout .footer-neon-line {
    height: 1px !important;
    background: linear-gradient(90deg, transparent 15%, rgba(255, 119, 0, 0.45) 50%, transparent 85%) !important;
    filter: drop-shadow(0 0 10px rgba(255, 119, 0, 0.35)) !important;
    opacity: 0.6 !important;
}

body.v2-seamless-layout .aig-section {
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 60px;
    padding-bottom: 90px;
}

/* Remove all harsh section dividing borders */
body.v2-seamless-layout #hero,
body.v2-seamless-layout #bento-premium-light,
body.v2-seamless-layout #features-matrix,
body.v2-seamless-layout #pricing-section,
body.v2-seamless-layout #faq-section,
body.v2-seamless-layout #cyber-footer {
    border-top: none !important;
    border-bottom: none !important;
}

/* 1. Bento Box Section: Handoff from Hero (#022026) down to #021419 */
body.v2-seamless-layout #bento-premium-light {
    background: linear-gradient(180deg, #022026 0%, #021a20 40%, #021419 100%) !important;
}

/* 2. Features Matrix Section: Smooth transition bridge from Bento (#021419) into #090e11, then down to Pricing (#06090a) */
body.v2-seamless-layout #features-matrix {
    background: linear-gradient(180deg, #021419 0%, #090e11 160px, #090e11 calc(100% - 160px), #06090a 100%) !important;
}

/* 3. Pricing Section: Keeps #06090a core, smooth transition bridge down to FAQ (#021015) */
body.v2-seamless-layout #pricing-section {
    background: linear-gradient(180deg, #06090a 0%, #06090a calc(100% - 160px), #021015 100%) !important;
}

/* 4. Cyber Footer: Continuous with FAQ (#02070a) */
body.v2-seamless-layout #cyber-footer {
    background: #02070a !important;
    margin: 0 !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

body.v2-seamless-layout .bp-light-card {
    background: rgba(13, 20, 24, 0.75) !important;
    border: 1px solid rgba(255, 119, 0, 0.15) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.v2-seamless-layout .bp-light-card:hover {
    border-color: rgba(255, 119, 0, 0.4) !important;
    box-shadow: 0 12px 36px -8px rgba(255, 119, 0, 0.15);
}

body.v2-seamless-layout .bp-light-title {
    color: #ffffff !important;
}

body.v2-seamless-layout .bp-light-desc {
    color: rgba(255, 255, 255, 0.65) !important;
}

body.v2-seamless-layout .bp-light-highlight {
    color: var(--primary) !important;
}

body.v2-seamless-layout .bp-mock-chart {
    background: rgba(8, 14, 18, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.v2-seamless-layout .bp-chart-y span {
    color: rgba(255, 255, 255, 0.4) !important;
}

body.v2-seamless-layout .bp-grid-line {
    background: rgba(255, 255, 255, 0.06) !important;
}

body.v2-seamless-layout .bp-mock-security {
    background: rgba(8, 14, 18, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.v2-seamless-layout .bp-float-node {
    background: rgba(3, 70, 81, 0.35) !important;
    border: 1px solid rgba(255, 119, 0, 0.2) !important;
    color: var(--primary) !important;
}

body.v2-seamless-layout .bp-sec-wrapper::before {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.v2-seamless-layout .bp-radial-inner .bp-radial-val {
    color: #ffffff !important;
}

body.v2-seamless-layout .bp-radial-inner .bp-radial-label {
    color: rgba(255, 255, 255, 0.55) !important;
}

body.v2-seamless-layout .bp-metric-box {
    background: rgba(8, 14, 18, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.v2-seamless-layout .bp-metric-item .bp-metric-val {
    color: #ffffff !important;
}

body.v2-seamless-layout .bp-metric-item .bp-metric-lbl {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* FAQ Cyber Dark Styling */
body.v2-seamless-layout #faq-section {
    background: linear-gradient(180deg, #021015 0%, #020c10 50%, #02070a 100%) !important;
    border-bottom: none !important;
}

body.v2-seamless-layout .faq-item {
    background: rgba(13, 20, 24, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.v2-seamless-layout .faq-item:hover {
    border-color: rgba(255, 119, 0, 0.3) !important;
}

body.v2-seamless-layout .faq-item.active {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 119, 0, 0.08) !important;
}

body.v2-seamless-layout .faq-question {
    color: #ffffff !important;
}

body.v2-seamless-layout .faq-item.active .faq-question {
    color: var(--primary) !important;
}

body.v2-seamless-layout .faq-answer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ==========================================================================
   ETL Prompt Engineering Hub & Bento Matrix Styles
   ========================================================================== */

.phase-filter-pills {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phase-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #8da4a8;
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phase-pill .pill-icon {
    font-size: 1.05rem;
    color: #38bdf8;
    transition: color 0.2s ease;
}

.phase-pill .pill-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #8da4a8;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.phase-pill:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #ffffff;
}

.phase-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border-color: #38bdf8;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.phase-pill.active .pill-icon {
    color: #ffffff;
}

.phase-pill.active .pill-badge {
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.etl-hub-bento-shell {
    background: rgba(8, 14, 18, 0.7);
    border: 1px solid rgba(255, 119, 0, 0.15);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    width: 100%;
}

/* Master-Detail Studio Layout */
.etl-studio-sidebar {
    background: #081116;
    border: 1px solid rgba(255, 119, 0, 0.15);
    border-radius: 20px;
    height: 720px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.etl-directory-list {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 119, 0, 0.3) rgba(4, 9, 12, 0.6);
}

.etl-directory-list::-webkit-scrollbar {
    width: 6px;
}

.etl-directory-list::-webkit-scrollbar-track {
    background: rgba(4, 9, 12, 0.6);
}

.etl-directory-list::-webkit-scrollbar-thumb {
    background: rgba(255, 119, 0, 0.25);
    border-radius: 4px;
}

.etl-dir-item {
    display: flex;
    flex-direction: column;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.18s ease;
    position: relative;
    user-select: none;
}

.etl-dir-item:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(2px);
}

.etl-dir-item.active {
    background: rgba(255, 119, 0, 0.08) !important;
    border-color: var(--primary, #ff7700) !important;
    box-shadow: 0 4px 16px rgba(255, 119, 0, 0.12);
}

.etl-dir-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--primary, #ff7700);
    border-radius: 0 4px 4px 0;
}

.etl-dir-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 4px;
}

.etl-dir-item.active .etl-dir-title {
    color: var(--primary, #ff7700);
}

.etl-dir-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #8da4a8;
}

.etl-active-workspace {
    background: #081116;
    border: 1px solid rgba(255, 119, 0, 0.15);
    border-radius: 20px;
    height: 720px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    padding: 28px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 119, 0, 0.3) rgba(4, 9, 12, 0.6);
}

.etl-workspace-code-pane {
    background: #02070a;
    border: 1px solid rgba(78, 132, 230, 0.25);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.etl-workspace-code-pane pre {
    flex: 1;
    margin: 0;
    padding: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #bfdbfe;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.65;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.etl-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.bento-card.glass-dark {
    background: #081116 !important;
    border: 1px solid rgba(255, 119, 0, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: auto 580px;
}

.bento-card.glass-dark:hover {
    border-color: rgba(255, 119, 0, 0.4) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(255, 119, 0, 0.08) !important;
}

.bento-card pre {
    overscroll-behavior: contain;
    contain: paint;
}

.btn-edit-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(78, 132, 230, 0.15) !important;
    border: 1px solid rgba(78, 132, 230, 0.4) !important;
    color: #60a5fa !important;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit-prompt:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

.btn-copy-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 119, 0, 0.1) !important;
    border: 1px solid rgba(255, 119, 0, 0.3) !important;
    color: var(--primary, #ff7700) !important;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-prompt:hover {
    background: var(--primary, #ff7700) !important;
    color: #02070a !important;
}

.btn-copy-prompt.copied {
    background: rgba(34, 197, 94, 0.2) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
    color: #4ade80 !important;
}

.btn-history-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(168, 85, 247, 0.12) !important;
    border: 1px solid rgba(168, 85, 247, 0.35) !important;
    color: #c084fc !important;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-history-prompt:hover {
    background: #a855f7 !important;
    color: #ffffff !important;
    border-color: #a855f7 !important;
}

/* Modals & Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 7, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

body.modal-open {
    overflow: hidden !important;
}

.modal-backdrop.hidden {
    display: none !important;
}

.auth-card-wrapper {
    width: 100%;
    position: relative;
}

.auth-card.glass-dark {
    background: rgba(10, 18, 22, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 119, 0, 0.25) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 50px rgba(255, 119, 0, 0.08) !important;
    border-radius: 24px !important;
}

.auth-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #a4c2cb;
    margin-bottom: 0.4rem;
}

.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #8da4a8;
    font-size: 0.95rem;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(4, 9, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.9rem;
    transition: border-color 0.18s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary, #ff7700);
    box-shadow: 0 0 12px rgba(255, 119, 0, 0.2);
}

.auth-error-banner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.auth-error-banner.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.auth-error-banner.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Phase Badges */
.phase-badge {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    display: inline-block;
}

.phase-badge-p1 {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.phase-badge-p2 {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.phase-badge-p3 {
    background: rgba(192, 132, 252, 0.15);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.35);
}

/* Revision History Cards & Timeline */
.history-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
    padding: 0.5rem 0.25rem;
}

.revision-card {
    background: rgba(4, 9, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: border-color 0.15s ease;
}

.revision-card.active-version {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.04);
}

.rev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.version-badge {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
}

.rev-status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
}

.rev-status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.rev-status-archived {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.revision-code-box {
    background: #02070a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    max-height: 220px;
    overflow-y: auto;
}

/* ==========================================================================
   SITE-WIDE LIGHT MODE HARMONIZATION
   Applies clean soft frost styling matching the Chat interface
   across cards, typography, tables, badges, form controls, and modals.
   Dark mode (body.dark-mode) remains 100% untouched.
   ========================================================================== */

/* --- 1. Cards, Bento Tiles & Containers --- */
body:not(.dark-mode) .sk-card,
body:not(.dark-mode) .auth-card,
body:not(.dark-mode) .ais-wdo-tile,
body:not(.dark-mode) .bento-box,
body:not(.dark-mode) .td-card-cyber,
body:not(.dark-mode) .card-surface,
body:not(.dark-mode) .modal-content,
body:not(.dark-mode) .saas-features_tile,
body:not(.dark-mode) .ais-cs-card,
body:not(.dark-mode) .gold-kpi-card,
body:not(.dark-mode) .etl-step-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.08) !important;
    color: #0f2942 !important;
}

body:not(.dark-mode) .sk-card:hover,
body:not(.dark-mode) .ais-wdo-tile:hover,
body:not(.dark-mode) .bento-box:hover,
body:not(.dark-mode) .saas-features_tile:hover,
body:not(.dark-mode) .gold-kpi-card:hover {
    border-color: rgba(2, 132, 199, 0.5) !important;
}

body:not(.dark-mode) .sk-card-header {
    border-bottom: 1px solid rgba(2, 132, 199, 0.15) !important;
}

/* --- 2. Typography & Contrast Safeguards --- */
body:not(.dark-mode) h1,
body:not(.dark-mode) h2,
body:not(.dark-mode) h3,
body:not(.dark-mode) h4,
body:not(.dark-mode) h5,
body:not(.dark-mode) h6,
body:not(.dark-mode) .inner-hero-title,
body:not(.dark-mode) .aig-section-title,
body:not(.dark-mode) .sk-metric-val,
body:not(.dark-mode) .auth-title,
body:not(.dark-mode) .card-title,
body:not(.dark-mode) .module-title {
    color: #0a2540 !important;
}

body:not(.dark-mode) .text-white:not(.btn):not(.badge):not(.sk-badge-active) {
    color: #0a2540 !important;
}

body:not(.dark-mode) .text-white-50 {
    color: #53748d !important;
}

body:not(.dark-mode) .text-highlight-primary {
    color: #0284c7 !important;
}

body:not(.dark-mode) .aig-section-desc,
body:not(.dark-mode) .sk-metric-lbl,
body:not(.dark-mode) .auth-subtitle,
body:not(.dark-mode) .module-desc,
body:not(.dark-mode) .text-muted {
    color: #53748d !important;
}

body:not(.dark-mode) .aig-section.bg-dark,
body:not(.dark-mode) section.bg-dark {
    background-color: transparent !important;
}

/* --- 3. Cyber Data Tables & Grids --- */
body:not(.dark-mode) .sk-table-container {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 4px 20px rgba(14, 116, 144, 0.06) !important;
}

body:not(.dark-mode) .sk-table {
    color: #0f2942 !important;
}

body:not(.dark-mode) .sk-table th {
    background: #b9dcf5 !important;
    color: #0369a1 !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.25) !important;
    font-weight: 600;
}

body:not(.dark-mode) .sk-table td {
    color: #0f2942 !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.12) !important;
}

body:not(.dark-mode) .sk-table tr:hover td {
    background: rgba(2, 132, 199, 0.05) !important;
}

/* --- 4. Badges, Indicators & Pills --- */
body:not(.dark-mode) .aig-badge,
body:not(.dark-mode) .sk-badge {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) .aig-badge .dot {
    background: #0284c7 !important;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.6) !important;
}

body:not(.dark-mode) .sk-badge-success {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}

body:not(.dark-mode) .sk-badge-info {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0284c7 !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) .sk-badge-warning {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #d97706 !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

/* --- 5. Toolbars, Matrix Shells & Search --- */
body:not(.dark-mode) .sk-toolbar {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 25px rgba(14, 116, 144, 0.06) !important;
}

body:not(.dark-mode) .sk-search-input {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
    color: #0f2942 !important;
}

body:not(.dark-mode) .matrix-icon-shell {
    background: rgba(2, 132, 199, 0.1) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

body:not(.dark-mode) .sk-card:hover .matrix-icon-shell,
body:not(.dark-mode) .matrix-card:hover .matrix-icon-shell {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
}

/* --- 6. Form Controls & Inputs --- */
body:not(.dark-mode) .form-control,
body:not(.dark-mode) .form-select,
body:not(.dark-mode) .sk-input,
body:not(.dark-mode) input[type="text"],
body:not(.dark-mode) input[type="email"],
body:not(.dark-mode) input[type="password"],
body:not(.dark-mode) select,
body:not(.dark-mode) textarea {
    background: #ffffff !important;
    color: #0f2942 !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) .form-control::placeholder,
body:not(.dark-mode) input::placeholder,
body:not(.dark-mode) textarea::placeholder {
    color: #8fa6b8 !important;
}

body:not(.dark-mode) .form-control:focus,
body:not(.dark-mode) .form-select:focus,
body:not(.dark-mode) input:focus,
body:not(.dark-mode) select:focus,
body:not(.dark-mode) textarea:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18) !important;
}

/* --- 6. Code Terminals & Consoles --- */
body:not(.dark-mode) .revision-code-box,
body:not(.dark-mode) .sk-console-body {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #0f2942 !important;
}

/* --- 7. Modals & Dialogs --- */
body:not(.dark-mode) .modal-content {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(2, 132, 199, 0.28) !important;
    box-shadow: 0 20px 45px rgba(14, 116, 144, 0.2) !important;
}

body:not(.dark-mode) .modal-header {
    border-bottom: 1px solid rgba(2, 132, 199, 0.18) !important;
}

body:not(.dark-mode) .modal-footer {
    border-top: 1px solid rgba(2, 132, 199, 0.18) !important;
}

/* --- 8. Subtle Atmospheric Overlays --- */
body:not(.dark-mode) .dark-bg-pattern {
    opacity: 0.12 !important;
}

body:not(.dark-mode) .auth-aurora {
    opacity: 0.25 !important;
}

/* --- 9. Ghost Buttons --- */
body:not(.dark-mode) .btn-ghost {
    color: #1e3a5f !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body:not(.dark-mode) .btn-ghost:hover {
    color: #0284c7 !important;
    background: rgba(2, 132, 199, 0.1) !important;
}

/* --- 10. ETL Prompts Studio Harmonization --- */
body:not(.dark-mode) .etl-studio-sidebar,
body:not(.dark-mode) .etl-active-workspace {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    box-shadow: 0 10px 30px rgba(14, 116, 144, 0.08) !important;
}

body:not(.dark-mode) .etl-workspace-code-pane {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.28) !important;
    box-shadow: 0 4px 16px rgba(14, 116, 144, 0.06) !important;
}

body:not(.dark-mode) .etl-workspace-code-pane > div:first-child {
    background: #b9dcf5 !important;
    border-bottom: 1px solid rgba(2, 132, 199, 0.25) !important;
}

body:not(.dark-mode) .etl-workspace-code-pane > div:first-child span {
    color: #0369a1 !important;
}

body:not(.dark-mode) .etl-workspace-code-pane pre {
    background: #ffffff !important;
    color: #0f2942 !important;
}

body:not(.dark-mode) .etl-workspace-code-pane pre code {
    background: transparent !important;
    color: #0f2942 !important;
}

body:not(.dark-mode) .etl-active-workspace span.font-mono.rounded-pill {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    color: #0369a1 !important;
}

body:not(.dark-mode) .etl-active-workspace span.font-mono.rounded-pill span {
    color: #0369a1 !important;
}

body:not(.dark-mode) .etl-active-workspace span.font-mono.rounded {
    background: rgba(2, 132, 199, 0.12) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
    color: #0284c7 !important;
}

body:not(.dark-mode) .etl-dir-item {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.18) !important;
}

body:not(.dark-mode) .etl-dir-item:hover {
    background: rgba(2, 132, 199, 0.08) !important;
    border-color: rgba(2, 132, 199, 0.4) !important;
}

body:not(.dark-mode) .etl-dir-item.active {
    background: rgba(2, 132, 199, 0.14) !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.15) !important;
}

body:not(.dark-mode) .etl-dir-item.active::before {
    background: #0284c7 !important;
}

body:not(.dark-mode) .etl-dir-title {
    color: #0f2942 !important;
}

body:not(.dark-mode) .etl-dir-item.active .etl-dir-title {
    color: #0284c7 !important;
}

body:not(.dark-mode) .phase-pill {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    color: #1e3a5f !important;
}

body:not(.dark-mode) .phase-pill:hover {
    background: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.45) !important;
    color: #0284c7 !important;
}

body:not(.dark-mode) .phase-pill.active {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.25) !important;
}

body:not(.dark-mode) .phase-pill .pill-badge {
    background: rgba(2, 132, 199, 0.12) !important;
    color: #0369a1 !important;
}

body:not(.dark-mode) .phase-pill.active .pill-badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

body:not(.dark-mode) .auth-input-wrapper {
    background: #ffffff !important;
    border: 1px solid rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) .auth-input {
    background: #ffffff !important;
    color: #0f2942 !important;
}

body:not(.dark-mode) .auth-input::placeholder {
    color: #8fa6b8 !important;
}

body:not(.dark-mode) .glass-dark {
    background: rgba(255, 255, 255, 0.95) !important;
}

/* ==========================================================================
   DATA & TABLE VIEWER — COMPACT HIGH-DENSITY DATA GRID
   Prevents long/multiline text columns from stretching rows into giant boxes,
   adds sticky table headers, and provides a contained 2D scroll viewport.
   ========================================================================== */

.sk-data-explorer-grid .table-responsive {
    max-height: calc(100vh - 280px);
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 119, 0, 0.35) rgba(4, 9, 12, 0.7);
}

.sk-data-explorer-grid .sk-table th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #072229 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 119, 0, 0.3) !important;
    padding: 11px 14px;
    white-space: nowrap;
}

.sk-data-explorer-grid .sk-table td {
    padding: 10px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    white-space: nowrap;
}

.sk-data-explorer-grid .sk-table th:last-child,
.sk-data-explorer-grid .sk-table td:last-child {
    border-right: none;
}

.sk-cell-content {
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.sk-cell-content.sk-cell-expandable {
    cursor: pointer;
}

.sk-cell-content.is-expanded {
    max-width: 460px;
    max-height: 180px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 119, 0, 0.25);
}

.sk-cell-null {
    color: rgba(255, 255, 255, 0.25);
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    user-select: none;
}

/* Light Mode Overrides for Data Explorer Grid */
body:not(.dark-mode) .sk-data-explorer-grid .table-responsive {
    scrollbar-color: rgba(2, 132, 199, 0.35) rgba(226, 240, 251, 0.6);
}

body:not(.dark-mode) .sk-data-explorer-grid .sk-table th {
    background: #b9dcf5 !important;
    border-right: 1px solid rgba(2, 132, 199, 0.18);
    border-bottom: 1px solid rgba(2, 132, 199, 0.3) !important;
}

body:not(.dark-mode) .sk-data-explorer-grid .sk-table td {
    border-right: 1px solid rgba(2, 132, 199, 0.1);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

body:not(.dark-mode) .sk-cell-content.is-expanded {
    background: rgba(2, 132, 199, 0.06);
    border: 1px solid rgba(2, 132, 199, 0.25);
}

body:not(.dark-mode) .sk-cell-null {
    color: rgba(15, 41, 66, 0.3);
}

/* ==========================================
   VISUAL VIEW BUILDER (CONNECTABLE TABLE BOXES)
   ========================================== */
.sk-visual-canvas {
    position: relative;
    width: 100%;
    height: 640px;
    min-height: 640px;
    background-color: #070b14;
    background-image:
        radial-gradient(rgba(56, 189, 248, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 14px;
    overflow: auto;
    user-select: none;
}

.sk-visual-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 2400px;
    height: 1400px;
    pointer-events: none;
    z-index: 1;
}

.sk-table-node-box {
    position: absolute;
    width: 310px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.sk-table-node-box.is-dragging {
    border-color: #38bdf8;
    box-shadow: 0 16px 36px rgba(2, 132, 199, 0.4);
    z-index: 10;
}

.sk-table-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.32), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 11px 11px 0 0;
    cursor: grab;
}

.sk-table-node-header:active {
    cursor: grabbing;
}

.sk-table-node-cols {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px 0;
}

.sk-col-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.8rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sk-col-row:hover {
    background: rgba(56, 189, 248, 0.12);
}

.sk-col-row.is-linked {
    background: rgba(16, 185, 129, 0.16);
}

.sk-col-row.is-active-source-row {
    background: rgba(245, 158, 11, 0.22) !important;
    outline: 1px dashed rgba(251, 191, 36, 0.7);
}

.sk-visual-canvas.is-connecting {
    cursor: crosshair;
}

.sk-visual-canvas.is-connecting .sk-col-row:hover {
    background: rgba(16, 185, 129, 0.26) !important;
    outline: 1px solid rgba(52, 211, 153, 0.65);
    cursor: crosshair;
}

.sk-col-port {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid #38bdf8;
    cursor: crosshair;
    flex-shrink: 0;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

.sk-col-port:hover {
    background: #38bdf8;
    transform: scale(1.3);
}

.sk-col-port.is-active-source {
    background: #f59e0b;
    border-color: #fbbf24;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.85);
    transform: scale(1.35);
}

.sk-col-port.is-connected {
    background: #10b981;
    border-color: #34d399;
}

.sk-join-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 8px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.78rem;
    color: #e2e8f0;
}

.sk-palette-list {
    max-height: 495px;
    overflow-y: auto;
    padding-right: 4px;
}

.sk-palette-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sk-palette-item:hover {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(2, 132, 199, 0.14);
}

.sk-palette-item.is-on-canvas {
    border-color: rgba(16, 185, 129, 0.55);
    background: rgba(16, 185, 129, 0.1);
}

.sk-join-pill.is-inspected {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
    background: rgba(2, 132, 199, 0.18);
}

.sk-chain-key-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 5px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.74rem;
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.sk-chain-target-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.sk-lineage-grid .sk-table th {
    padding: 13px 18px !important;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.sk-lineage-grid .sk-table td {
    padding: 14px 18px !important;
    white-space: normal !important;
    line-height: 1.55;
    vertical-align: middle;
}

/* ==========================================
   SKILLROOT TRAINING TRANSLATOR MATRIX GRID
   Overrides .sk-data-explorer-grid nowrap so all 7 columns fit in viewport
   ========================================== */
.sk-translator-grid .sk-table {
    table-layout: fixed;
    width: 100%;
}

.sk-translator-grid .sk-table th {
    white-space: normal !important;
    padding: 10px 10px !important;
    font-size: 0.72rem !important;
    line-height: 1.25;
    vertical-align: middle !important;
}

.sk-translator-grid .sk-table td {
    white-space: normal !important;
    word-break: break-word;
    padding: 10px 10px !important;
    vertical-align: top !important;
}

.sk-translator-grid .sk-select {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sk-translator-grid .btn-st-row-approve,
.sk-translator-grid .btn-st-row-deep-boost,
.sk-translator-grid .btn-st-row-ai,
.sk-translator-grid .btn-st-view-completions {
    white-space: nowrap !important;
    word-break: keep-all !important;
}
