/* Shared floating navbar + upper-page gradient across all non-home pages.
   H1, hero, breadcrumbs, and page content remain 100% as originally styled. */
html:has(body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme)) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) {
    --reference-surface: #ffffff;
    --reference-wash: linear-gradient(180deg, #0d1f36 0%, #2f5f9c 34%, #adc9e8 68%, #edf4fb 88%, #ffffff 100%);
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 18px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
    background: var(--reference-wash) top / 100% 148px no-repeat var(--reference-surface) !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme),
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme),
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme)[data-theme="dark"] {
    --reference-surface: #070b12;
    --reference-wash: linear-gradient(180deg, #10233c 0%, #244b7d 34%, #14283f 70%, #070b12 100%);
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar {
    position: relative !important;
    top: 0 !important;
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    height: 64px !important;
    margin: 0 auto !important;
    border: 1px solid rgba(47, 95, 156, .16) !important;
    border-radius: 6px !important;
    background: var(--reference-surface) !important;
    box-shadow: 0 6px 26px rgba(13, 31, 54, .16) !important;
    overflow: visible !important;
    z-index: 1000 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar::before,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar::after,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar .nav-inner,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar .nav-inner::before,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar .nav-inner::after {
    border-radius: 6px !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-inner {
    width: 100% !important;
    max-width: none !important;
    padding: 0 22px !important;
    gap: 20px !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .desktop-nav-links {
    margin: 0 0 0 auto !important;
    justify-content: flex-end !important;
    gap: 4px !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-actions-right {
    margin-left: 0 !important;
    flex-shrink: 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .page-shell {
    width: 100% !important;
    max-width: 1228px !important;
    margin: 0 auto !important;
    padding: 56px 24px 52px !important;
    background: transparent !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(#lexi-tool, .studio-beam-container, .studio-3d, .workbench-grid-3d, .workbench-card-3d, .content-block, .content-card) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .page-404 {
    padding-top: 56px !important;
    background: transparent !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.tool-breadcrumb-strip, .info-breadcrumb-strip, .page-breadcrumbs) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 14px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .tool-breadcrumb-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero, #lexi-tool > .hero, .tool-hero-wrap, .tool-hero-wrap .hero) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.tool-hero-wrap::before, .tool-hero-wrap::after) {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.lexi-tool-feedback__intro, .lexi-tool-feedback__intro > div) {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero p, #lexi-tool > .hero p, .tool-hero-wrap .hero p, .page-shell .hero p, .info-page .hero p) {
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #495f7a !important;
    -webkit-text-fill-color: #495f7a !important;
    max-width: 100% !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero p, #lexi-tool > .hero p, .tool-hero-wrap .hero p, .page-shell .hero p, .info-page .hero p),
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero p, #lexi-tool > .hero p, .tool-hero-wrap .hero p, .page-shell .hero p, .info-page .hero p) {
    color: #94a7be !important;
    -webkit-text-fill-color: #94a7be !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .lexi-ad-tool-top:not(:has(iframe)):not(:has(ins)) {
    margin: 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .page-404::before {
    display: none !important;
}

/* Unified 6px outer-layer border-radius across all non-home pages (Tool + Info + FAQ).
   Table outer wrapper (.table-scroll) gets 6px; inner table cells and unnecessary inner layers remain 0px. */
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.content-unified:not(.content-unified--faq):not(:has(> .faq-list)),
    .content-block > .content-card:not(h2 + .content-card),
    .table-scroll,
    .faq-item,
    .content-unified--faq > h2,
    h2.faq-section-heading,
    .content-unified:has(> .faq-list) > h2,
    .content-block > h2:has(+ .faq-list),
    .content-block h2:has(+ .faq-list),
    .page-shell h2:has(+ .faq-list),
    .lexi-tool-feedback,
    .related-grid .lang-item-pill,
    .lang-modal-card,
    .service-card,
    .service-path-card,
    .service-founder-card,
    .support-card,
    .service-price,
    .service-alert,
    .service-human-note,
    .footer-pro .f-socials a,
    .footer-pro .f-contact-cta,
    .f-socials a,
    .f-contact-cta) {
    border-radius: 6px !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.table-scroll, .faq-item, .content-unified:not(.content-unified--faq):not(:has(> .faq-list)), .lang-modal-card) {
    overflow: hidden !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.content-unified:not(.content-unified--faq):not(:has(> .faq-list)) > h2:not(.faq-section-heading),
    .content-block > h2:has(+ .content-card)) {
    border-radius: 6px 6px 0 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.content-unified > .content-card,
    .content-block > h2 + .content-card) {
    border-radius: 0 0 6px 6px !important;
    margin: 0 0 22px 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.content-unified:last-child > .content-card,
    .content-block > .content-card:last-child) {
    margin-bottom: 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.table-scroll table,
    .table-scroll thead,
    .table-scroll tbody,
    .table-scroll tr,
    .table-scroll th,
    .table-scroll td,
    .content-card table,
    .content-card table *,
    .faq-question,
    .faq-answer) {
    border-radius: 0 !important;
}

/* Unified Dark Mode FAQ parity across all non-home pages (Tool + Info pages) */
html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item,
html.theme-dark body:not(.home-page):not(#_x):not(#_z):not(#_y):not(#_theme) .faq-item {
    background: #101a2a !important;
    background-color: #101a2a !important;
    border: 1px solid rgba(103, 216, 255, 0.15) !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.faq-answer, .faq-item.is-active .faq-answer, .faq-item.open .faq-answer),
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.faq-answer, .faq-item.is-active .faq-answer, .faq-item.open .faq-answer) {
    background: #101a2a !important;
    background-color: #101a2a !important;
    border-top-color: rgba(103, 216, 255, 0.15) !important;
    color: #e8eef7 !important;
    -webkit-text-fill-color: #e8eef7 !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-answer a,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-answer a {
    color: #8fd8ff !important;
    -webkit-text-fill-color: #8fd8ff !important;
}

/* Theme Switch: Original layout (Sun on left, SVG Crescent Moon on right) + Same SVG Crescent Moon in Dark Mode */
html[data-theme="dark"] body:not(#_x):not(#_y):not(#_z):not(#_theme) .lx-theme-switch__knob::after,
html.theme-dark body:not(#_x):not(#_y):not(#_z):not(#_theme) .lx-theme-switch__knob::after {
    content: none !important;
    display: none !important;
}

html[data-theme="dark"] body:not(#_x):not(#_y):not(#_z):not(#_theme) .lx-theme-switch__track-moon,
html.theme-dark body:not(#_x):not(#_y):not(#_z):not(#_theme) .lx-theme-switch__track-moon {
    display: none !important;
}

@media (max-width: 1024px) {
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .desktop-nav-links {
        display: none !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-actions-right {
        margin-left: auto !important;
    }
}

@media (max-width: 760px) {
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin: 0 auto !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .page-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding: 36px 16px 40px !important;
    }
}

@media (max-width: 640px) {
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) {
        padding-top: 12px !important;
        background-size: 100% 124px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .navbar {
        top: 0 !important;
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
        height: 58px !important;
        margin: 0 auto !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .page-shell {
        width: 100% !important;
        max-width: 100% !important;
        padding: 28px 12px 36px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-inner {
        padding: 0 12px !important;
        gap: 8px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-actions-right {
        gap: 8px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.nav-logo, .nav-logo-wordmark) {
        font-size: 17.5px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero h1, #lexi-tool > .hero h1, .tool-hero-wrap .hero h1, .page-shell h1) {
        font-size: clamp(1.35rem, 5.6vw, 1.75rem) !important;
        line-height: 1.22 !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hero p, #lexi-tool > .hero p, .tool-hero-wrap .hero p) {
        font-size: clamp(13.5px, 3.6vw, 14.8px) !important;
        line-height: 1.58 !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.content-unified > h2, .content-block > h2, h2.faq-section-heading, .page-shell h2) {
        font-size: clamp(1rem, 4.3vw, 1.15rem) !important;
        padding: 12px 16px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .content-card {
        padding: 16px 15px !important;
        font-size: clamp(13.5px, 3.6vw, 14.8px) !important;
        line-height: 1.68 !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question {
        font-size: clamp(13.5px, 3.7vw, 15px) !important;
        padding: 13px 16px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.faq-item.is-active .faq-answer, .faq-item.open .faq-answer) {
        font-size: clamp(13.2px, 3.5vw, 14.5px) !important;
        padding: 14px 16px !important;
        line-height: 1.65 !important;
    }
}

@media (max-width: 380px) {
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-logo-wordmark {
        font-size: 15px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .nav-logo img {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }
}

/* Sitewide FAQ Uniform Design Lock (100% Identical to Homepage FAQ) */
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-list {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 14px !important;
    margin-bottom: 24px !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border: 1px solid #4A7BBA !important;
    border-radius: 6px !important;
    margin: 0 0 12px 0 !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:last-child {
    margin-bottom: 0 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.is-active .faq-question,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.open .faq-question {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 22px !important;
    background: #4A7BBA !important;
    background-color: #4A7BBA !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: "Noto Sans", sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.16s ease !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question:hover {
    background: #3A6AA8 !important;
    background-color: #3A6AA8 !important;
    background-image: none !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question::after,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.is-active .faq-question::after,
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.open .faq-question::after {
    content: '' !important;
    width: 9px !important;
    height: 9px !important;
    border-right: 2px solid #ffffff !important;
    border-bottom: 2px solid #ffffff !important;
    border-top: 0 !important;
    border-left: 0 !important;
    transform: rotate(45deg) !important;
    transition: transform 0.3s ease !important;
    margin-right: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:is(.is-active, .open) .faq-question::after {
    transform: rotate(-135deg) !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:is(.is-active, .open) .faq-answer {
    max-height: 1200px !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 16px 22px 18px 22px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
    font-family: "Noto Sans", sans-serif !important;
    border-top: 1px solid #4A7BBA !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:not(.is-active):not(.open) .faq-answer {
    max-height: 0 !important;
    padding: 0 22px !important;
    overflow: hidden !important;
    border-top: 0 !important;
    opacity: 0 !important;
}

/* Dark Mode FAQ Parity Across All Pages */
html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item {
    background: #101a2a !important;
    background-color: #101a2a !important;
    border: 1px solid rgba(103, 216, 255, 0.15) !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question,
html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.is-active .faq-question,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.is-active .faq-question,
html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.open .faq-question,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.open .faq-question {
    background: #2F5F9C !important;
    background-color: #2F5F9C !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question:hover,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question:hover {
    background: #244b7d !important;
    background-color: #244b7d !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:is(.is-active, .open) .faq-answer,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:is(.is-active, .open) .faq-answer {
    background: #101a2a !important;
    background-color: #101a2a !important;
    border-top: 1px solid rgba(103, 216, 255, 0.15) !important;
    color: #e8eef7 !important;
    -webkit-text-fill-color: #e8eef7 !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-answer a,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-answer a {
    color: #8fd8ff !important;
    -webkit-text-fill-color: #8fd8ff !important;
}

/* Mobile responsive scaling */
@media (max-width: 640px) {

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-question,
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.is-active .faq-question,
    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item.open .faq-question {
        font-size: clamp(13.5px, 3.7vw, 15px) !important;
        padding: 13px 16px !important;
    }

    html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) .faq-item:is(.is-active, .open) .faq-answer {
        font-size: clamp(13.2px, 3.5vw, 14.5px) !important;
        padding: 14px 16px !important;
        line-height: 1.65 !important;
    }
}

/* Outer Tool Dual-Color Rotating Beam across all tool pages (Exact Match to Homepage 'Why LexiTranslator Exists' About Section) */
@keyframes rotateBioBeam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container {
    position: relative !important;
    border: 1px solid rgba(47, 95, 156, 0.25) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: #ffffff !important;
    box-shadow: 0 10px 30px rgba(47, 95, 156, 0.08) !important;
    padding: 2px !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container {
    border-color: rgba(103, 216, 255, 0.22) !important;
    background: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -200% !important;
    width: auto !important;
    height: auto !important;
    top: -200% !important;
    right: -200% !important;
    bottom: -200% !important;
    left: -200% !important;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 35deg, #2F5F9C 60deg, #38bdf8 84deg, #ffffff 90deg, transparent 96deg, transparent 215deg, #2F5F9C 240deg, #38bdf8 264deg, #ffffff 270deg, transparent 276deg, transparent 360deg) !important;
    animation: rotateBioBeam 3.8s linear infinite !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container::after {
    display: none !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-beam-container > * {
    position: relative !important;
    z-index: 1 !important;
}

html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-3d {
    position: relative !important;
    z-index: 1 !important;
    border: 0 !important;
    outline: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-3d,
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) #lexi-tool .studio-3d {
    background: #0f172a !important;
}

/* Circular Profile Photo on all info pages: Static Theme Border + Internal Glitch */
html body:not(#_x):not(#_y):not(#_z) .service-founder-media {
    position: relative !important;
    width: 170px !important;
    height: 170px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: block !important;
    isolation: isolate !important;
    background: #ffffff !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
    border: 2.5px solid #2F5F9C !important;
    box-sizing: border-box !important;
    box-shadow: 0 4px 16px rgba(47, 95, 156, 0.16) !important;
}

html body:not(#_x):not(#_y):not(#_z) .service-founder-media::before {
    display: none !important;
    content: none !important;
}

html body:not(#_x):not(#_y):not(#_z) .service-founder-media::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 2 !important;
    opacity: 0 !important;
    animation: lainVhsScanline 4.2s ease-in-out infinite !important;
}

html body:not(#_x):not(#_y):not(#_z) .service-founder-media .service-founder-photo {
    position: relative !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    object-fit: cover !important;
    object-position: center 34% !important;
    display: block !important;
    animation: lainDatabendGlitch 4.2s steps(1, end) infinite !important;
}

@keyframes lainDatabendGlitch {
    0%, 72%, 100% { transform: translate(0, 0); filter: none; clip-path: none; }
    73% { transform: translate(-5px, 1px); filter: drop-shadow(5px 0 0 #00f2fe) drop-shadow(-5px 0 0 #ff0055); clip-path: polygon(0 0, 100% 0, 100% 28%, 0 28%, 0 36%, 100% 36%, 100% 68%, 0 68%, 0 76%, 100% 76%, 100% 100%, 0 100%); }
    75% { transform: translate(9px, -2px); filter: contrast(180%) brightness(1.2) drop-shadow(-8px 0 0 #00f2fe) drop-shadow(8px 0 0 #ff0055); clip-path: polygon(0 0, 100% 0, 100% 20%, 0 20%, 0 45%, 100% 45%, 100% 55%, 0 55%, 0 82%, 100% 82%, 100% 100%, 0 100%); }
    77% { transform: translate(-11px, 3px); filter: contrast(220%) drop-shadow(10px 0 0 #00f2fe) drop-shadow(-10px 0 0 #ff0055); clip-path: polygon(0 15%, 100% 15%, 100% 38%, 0 38%, 0 62%, 100% 62%, 100% 85%, 0 85%); }
    79% { transform: translate(6px, -1px); filter: contrast(160%) brightness(1.3) grayscale(50%) drop-shadow(-6px 0 0 #00f2fe); clip-path: polygon(0 5%, 100% 5%, 100% 25%, 0 25%, 0 50%, 100% 50%, 100% 75%, 0 75%, 0 95%, 100% 95%); }
    81% { transform: translate(-2px, 1px); filter: drop-shadow(3px 0 0 #ff0055); clip-path: none; }
    83% { transform: translate(0, 0); filter: none; clip-path: none; }
}

@keyframes lainVhsScanline {
    0%, 72%, 100% { opacity: 0; transform: translateY(-100%); }
    73% { opacity: 0.85; transform: translateY(15%); background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0px, rgba(0, 0, 0, 0.6) 1.5px, rgba(0, 242, 254, 0.5) 2px, rgba(255, 0, 85, 0.5) 3.5px); }
    75% { opacity: 1; transform: translateY(48%); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.85) 0px, rgba(255, 255, 255, 0.85) 2px, rgba(0, 0, 0, 0.7) 2.5px, rgba(0, 0, 0, 0.7) 4px); }
    78% { opacity: 0.9; transform: translateY(78%); background: repeating-linear-gradient(0deg, rgba(0, 242, 254, 0.8) 0px, rgba(0, 242, 254, 0.8) 2px, rgba(255, 0, 85, 0.8) 3px, transparent 4px); }
    81% { opacity: 0.4; transform: translateY(110%); }
    83% { opacity: 0; }
}

html[data-theme="dark"] body:not(#_x):not(#_y):not(#_z) .service-founder-media {
    border-color: #4fbce7 !important;
    box-shadow: 0 4px 20px rgba(79, 188, 231, 0.22) !important;
    background: #0f172a !important;
}

html[data-theme="dark"] body:not(#_x):not(#_y):not(#_z) .service-founder-media .service-founder-photo,
html.theme-dark body:not(#_x):not(#_y):not(#_z) .service-founder-media .service-founder-photo {
    background: #0f172a !important;
}

@media (max-width: 700px) {
    html body:not(#_x):not(#_y):not(#_z) .service-founder-media {
        width: 156px !important;
        height: 156px !important;
        border-width: 2px !important;
    }
}

@keyframes rotateBioBeam {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dark Mode High-Contrast Crisp Light Text Lock for ALL Tool Content */
html[data-theme="dark"] body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(
    p, li, td, th,
    .content-block, .content-block p, .content-block li, .content-block td, .content-block strong,
    .content-card, .content-card p, .content-card li, .content-card td, .content-card strong,
    .content-unified, .content-unified p, .content-unified li,
    .faq-answer, .tool-note, .hero p, .author-desc
),
html.theme-dark body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(
    p, li, td, th,
    .content-block, .content-block p, .content-block li, .content-block td, .content-block strong,
    .content-card, .content-card p, .content-card li, .content-card td, .content-card strong,
    .content-unified, .content-unified p, .content-unified li,
    .faq-answer, .tool-note, .hero p, .author-desc
) {
    color: #f1f5f9 !important;
    -webkit-text-fill-color: #f1f5f9 !important;
}

/* Master Mobile Drawer & Brand 6px Lock */
html body:not(.home-page):not(#_x):not(#_y):not(#_z):not(#_theme) :is(.hamburger-btn-3d, .btn-close-mobile, .mobile-search-input, .m-cat-card, .m-cat-count, .m-tool-link, .m-tool-icon, .nav-logo img, .search-suggestion-card, .search-suggestion-icon, .search-box-input),
html body#top.home-page:not(#_x):not(#_y):not(#_z) :is(.hamburger-btn-3d, .btn-close-mobile, .mobile-search-input, .m-cat-card, .m-cat-count, .m-tool-link, .m-tool-icon, .nav-logo img, .search-suggestion-card, .search-suggestion-icon, .search-box-input) {
    border-radius: 6px !important;
}