:root {
    --lexi-primary: #2F5F9C;
    --lexi-primary-hover: #1E3F6D;
    --lexi-bg: #f4f7fb;
    --lexi-surface: #ffffff;
    --lexi-output: #ffffff;
    --lexi-text: #1f2937;
    --lexi-text-soft: #4b5563;
    --lexi-text-muted: #6b7280;
    --lexi-border: #d8e0ea;
    --lexi-radius: 16px;
    --lexi-radius-sm: 10px;
    --lexi-pill: 999px;
    --lexi-shadow: none;
    --lexi-max: 1180px;
    --lexi-font: "Google Sans", sans-serif;
}

.nav-logo-img {
    width: clamp(236px, 19vw, 308px) !important;
    max-height: 60px !important;
    height: auto !important;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-logo-img {
        width: clamp(222px, 25vw, 274px) !important;
        max-height: 56px !important;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        width: clamp(222px, 60vw, 266px) !important;
        max-height: 54px !important;
    }
}

/* Final reference layout for tablet and mobile: one unified vertical tool. */
@media (max-width: 1024px) {
    .translator-card.tool-unified-active {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #d6dce4 !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    }

    .translator-card.tool-unified-active .tool-unified-header {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        align-items: center !important;
        min-height: 58px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
    }

    .translator-card.tool-unified-active .tool-unified-header::before {
        content: none !important;
    }

    .translator-card.tool-unified-active .tool-unified-label {
        display: block !important;
        text-align: center !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.15 !important;
        color: #374151 !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
        position: static !important;
        display: inline-flex !important;
        width: 40px !important;
        height: 36px !important;
        min-width: 40px !important;
        min-height: 36px !important;
        max-width: 40px !important;
        max-height: 36px !important;
        margin: 0 !important;
        border-radius: 7px !important;
        transform: none !important;
        box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08) !important;
    }

    .translator-card.tool-unified-active > .swap-btn,
    .translator-card.tool-unified-active > .swap-btn.btn,
    .translator-card.tool-unified-active > button.swap-btn,
    .translator-card.tool-unified-active .box-bar {
        display: none !important;
    }

    .translator-card.tool-unified-active > .translator-box,
    .translator-card.tool-unified-active > .translator-box.is-input,
    .translator-card.tool-unified-active > .translator-box.is-output {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .translator-card.tool-unified-active > .translator-box.is-output {
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card.tool-unified-active .box-body {
        min-height: 255px !important;
    }

    .translator-card.tool-unified-active > .translator-box.is-input .box-body {
        background: #ffffff !important;
    }

    .translator-card.tool-unified-active > .translator-box.is-output .box-body,
    .translator-card.tool-unified-active > .translator-box.is-output .lexi-output-wrap,
    .translator-card.tool-unified-active > .translator-box.is-output .lexi-output {
        background: #ffffff !important;
    }

    .translator-card.tool-unified-active .box-footer {
        min-height: 62px !important;
        height: 62px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        padding: 22px 18px 14px !important;
        font-size: 20px !important;
        line-height: 1.45 !important;
    }

    .translator-card.tool-unified-active .lexi-input {
        min-height: 255px !important;
        resize: none !important;
        background: #ffffff !important;
        color: #374151 !important;
    }

    .translator-card.tool-unified-active .lexi-input::placeholder,
    .translator-card.tool-unified-active .lexi-output.is-empty {
        color: #98a2b3 !important;
        opacity: 1 !important;
    }

    .translator-card.tool-unified-active .translate-btn,
    .translator-card.tool-unified-active .btn-primary.translate-btn {
        min-height: 44px !important;
        padding: 10px 22px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
    }

    .translator-card.tool-unified-active .icon-btn {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 8px !important;
    }
}

/* Absolute final theme pill: reference-style day/night mode button. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 158px !important;
    min-width: 158px !important;
    height: 54px !important;
    padding: 5px 9px 5px 18px !important;
    display: inline-flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #e9e9eb !important;
    color: #0b0b0c !important;
    -webkit-text-fill-color: #0b0b0c !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
    overflow: hidden !important;
}

html body .theme-toggle::before {
    content: none !important;
    display: none !important;
}

html body .theme-toggle-orb {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #0b0b0c !important;
    -webkit-text-fill-color: #0b0b0c !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2), 0 2px 8px rgba(15, 23, 42, 0.1) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-icon-moon {
    display: none !important;
}

html body .theme-toggle-icon-sun {
    display: inline-flex !important;
}

html body .theme-toggle svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    stroke: currentColor !important;
}

html body .theme-toggle-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-switch,
html body .theme-toggle-knob {
    display: none !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    outline: none !important;
    background: #f0f1f3 !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 20px rgba(15, 23, 42, 0.11) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    flex-direction: row !important;
    padding: 5px 18px 5px 5px !important;
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: #ffffff !important;
    color: #0b0b0c !important;
    -webkit-text-fill-color: #0b0b0c !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.96), 0 2px 8px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon {
    display: inline-flex !important;
}

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun {
    display: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: #050505 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.28) !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -6px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 132px !important;
        min-width: 132px !important;
        height: 44px !important;
        padding: 4px 7px 4px 14px !important;
        gap: 7px !important;
        margin-left: auto !important;
        margin-right: 9px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 14px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 36px !important;
        height: 36px !important;
    }

    html body .theme-toggle-icon {
        width: 25px !important;
        height: 25px !important;
    }

    html body .theme-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-label {
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }
}

@media (max-width: 420px) {
    html body .theme-toggle {
        width: 116px !important;
        min-width: 116px !important;
        height: 40px !important;
        padding: 4px 7px 4px 12px !important;
        margin-right: 8px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 12px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 32px !important;
        height: 32px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 22px !important;
        height: 22px !important;
    }

    html body .theme-toggle-label {
        font-size: 11px !important;
    }
}

/* Absolute final theme switch polish: keep this after all nav overrides. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 38px !important;
    padding: 0 8px !important;
    display: inline-grid !important;
    grid-template-columns: 22px 38px 22px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid rgba(47, 95, 156, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: 0 6px 16px rgba(23, 58, 99, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    opacity: 0.95 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle svg {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    stroke: currentColor !important;
}

html body .theme-toggle-switch {
    position: relative !important;
    display: inline-flex !important;
    width: 38px !important;
    height: 23px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    border: 1px solid rgba(47, 95, 156, 0.3) !important;
    box-shadow: inset 0 1px 3px rgba(23, 58, 99, 0.14) !important;
}

html body .theme-toggle-knob {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 999px !important;
    background: #173a63 !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.26) !important;
    transition: transform 0.22s ease, background 0.22s ease !important;
}

html body .theme-toggle-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    border-color: rgba(103, 216, 255, 0.24) !important;
    background: rgba(9, 14, 20, 0.88) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(103, 216, 255, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle-switch,
html.theme-dark body .theme-toggle-switch,
body[data-theme="dark"] .theme-toggle-switch,
body.theme-dark .theme-toggle-switch {
    background: #0f1822 !important;
    border-color: rgba(103, 216, 255, 0.46) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body .theme-toggle-knob,
html.theme-dark body .theme-toggle-knob,
body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
    transform: translateX(15px) !important;
    background: #79B8F4 !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    border-color: rgba(47, 95, 156, 0.34) !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(23, 58, 99, 0.11), 0 0 0 3px rgba(47, 95, 156, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    border-color: rgba(103, 216, 255, 0.44) !important;
    background: rgba(12, 20, 29, 0.96) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(103, 216, 255, 0.08) !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -10px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 86px !important;
        min-width: 86px !important;
        height: 36px !important;
        padding: 0 7px !important;
        grid-template-columns: 20px 36px 20px !important;
        gap: 1px !important;
        margin-left: auto !important;
        margin-right: 10px !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }

    html body .theme-toggle-icon {
        width: 20px !important;
        height: 20px !important;
    }

    html body .theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    html body .theme-toggle-switch {
        width: 36px !important;
        height: 22px !important;
    }

    html body .theme-toggle-knob {
        width: 16px !important;
        height: 16px !important;
    }

    html[data-theme="dark"] body .theme-toggle-knob,
    html.theme-dark body .theme-toggle-knob,
    body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
        transform: translateX(14px) !important;
    }
}

/* Absolute final 3D theme pill: clear day/night button with solid icons. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 166px !important;
    min-width: 166px !important;
    height: 56px !important;
    padding: 5px 8px 5px 20px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.95),
        inset 0 -3px 7px rgba(15, 23, 42, 0.10),
        0 10px 20px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle::before,
html body .theme-toggle-switch,
html body .theme-toggle-knob {
    content: none !important;
    display: none !important;
}

html body .theme-toggle-orb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.95),
        inset 0 -2px 5px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(15, 23, 42, 0.22),
        0 4px 9px rgba(15, 23, 42, 0.14) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-icon-moon {
    display: none !important;
}

html body .theme-toggle-icon-sun {
    display: flex !important;
}

html body .theme-toggle svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body .theme-toggle-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    outline: none !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eceef1 52%, #dfe1e5 100%) !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.98),
        inset 0 -3px 7px rgba(15, 23, 42, 0.11),
        0 12px 24px rgba(15, 23, 42, 0.15) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    flex-direction: row !important;
    padding: 5px 20px 5px 5px !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, #151515 0%, #050505 52%, #000000 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.12),
        inset 0 -4px 8px rgba(0, 0, 0, 0.48),
        0 12px 24px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.95),
        inset 0 -2px 5px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 5px 10px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon {
    display: flex !important;
}

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun {
    display: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: linear-gradient(180deg, #1d1d1d 0%, #090909 52%, #000000 100%) !important;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.14),
        inset 0 -4px 8px rgba(0, 0, 0, 0.52),
        0 14px 28px rgba(0, 0, 0, 0.4) !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -4px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 138px !important;
        min-width: 138px !important;
        height: 46px !important;
        padding: 4px 7px 4px 15px !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 9px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 15px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 38px !important;
        height: 38px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-label {
        font-size: 12px !important;
        font-weight: 800 !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }
}

/* Final theme switch polish: cleaner capsule and balanced icon spacing. */
html body .theme-toggle {
    width: 92px !important;
    min-width: 92px !important;
    height: 38px !important;
    padding: 0 8px !important;
    grid-template-columns: 22px 38px 22px !important;
    gap: 2px !important;
    border: 1px solid rgba(47, 95, 156, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: 0 6px 16px rgba(23, 58, 99, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

html body .theme-toggle-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    opacity: 0.95 !important;
}

html body .theme-toggle svg {
    width: 17px !important;
    height: 17px !important;
}

html body .theme-toggle-switch {
    width: 38px !important;
    height: 23px !important;
    background: #eef6ff !important;
    border-color: rgba(47, 95, 156, 0.3) !important;
    box-shadow: inset 0 1px 3px rgba(23, 58, 99, 0.14) !important;
}

html body .theme-toggle-knob {
    top: 3px !important;
    left: 3px !important;
    width: 17px !important;
    height: 17px !important;
    background: #173a63 !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.26) !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    border-color: rgba(47, 95, 156, 0.34) !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(23, 58, 99, 0.11), 0 0 0 3px rgba(47, 95, 156, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    border-color: rgba(103, 216, 255, 0.24) !important;
    background: rgba(9, 14, 20, 0.88) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(103, 216, 255, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle-switch,
html.theme-dark body .theme-toggle-switch,
body[data-theme="dark"] .theme-toggle-switch,
body.theme-dark .theme-toggle-switch {
    background: #0f1822 !important;
    border-color: rgba(103, 216, 255, 0.46) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body .theme-toggle-knob,
html.theme-dark body .theme-toggle-knob,
body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
    transform: translateX(15px) !important;
    background: #79B8F4 !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    border-color: rgba(103, 216, 255, 0.44) !important;
    background: rgba(12, 20, 29, 0.96) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(103, 216, 255, 0.08) !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -10px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 86px !important;
        min-width: 86px !important;
        height: 36px !important;
        padding: 0 7px !important;
        grid-template-columns: 20px 36px 20px !important;
        gap: 1px !important;
        margin-left: auto !important;
        margin-right: 10px !important;
    }

    html body .theme-toggle-icon {
        width: 20px !important;
        height: 20px !important;
    }

    html body .theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    html body .theme-toggle-switch {
        width: 36px !important;
        height: 22px !important;
    }

    html body .theme-toggle-knob {
        width: 16px !important;
        height: 16px !important;
    }

    html[data-theme="dark"] body .theme-toggle-knob,
    html.theme-dark body .theme-toggle-knob,
    body[data-theme="dark"] .theme-toggle-knob,
    body.theme-dark .theme-toggle-knob {
        transform: translateX(14px) !important;
    }
}

/* End lock: 3D day/night theme pill with visible label and solid icon. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 166px !important;
    min-width: 166px !important;
    height: 56px !important;
    padding: 5px 8px 5px 20px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -3px 7px rgba(15, 23, 42, 0.10), 0 10px 20px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle::before,
html body .theme-toggle-switch,
html body .theme-toggle-knob {
    content: none !important;
    display: none !important;
}

html body .theme-toggle-orb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.22), 0 4px 9px rgba(15, 23, 42, 0.14) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-icon-moon {
    display: none !important;
}

html body .theme-toggle-icon-sun {
    display: flex !important;
}

html body .theme-toggle svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body .theme-toggle-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    outline: none !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eceef1 52%, #dfe1e5 100%) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    flex-direction: row !important;
    padding: 5px 20px 5px 5px !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, #151515 0%, #050505 52%, #000000 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.12), inset 0 -4px 8px rgba(0, 0, 0, 0.48), 0 12px 24px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon {
    display: flex !important;
}

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun {
    display: none !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 138px !important;
        min-width: 138px !important;
        height: 46px !important;
        padding: 4px 7px 4px 15px !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 9px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 15px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 38px !important;
        height: 38px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-label {
        font-size: 12px !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active {
        border-radius: 10px !important;
    }

    .translator-card.tool-unified-active .tool-unified-header {
        min-height: 56px !important;
        padding: 0 10px !important;
        grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) !important;
    }

    .translator-card.tool-unified-active .tool-unified-label {
        font-size: 14px !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
        width: 38px !important;
        height: 34px !important;
        min-width: 38px !important;
        min-height: 34px !important;
        max-width: 38px !important;
        max-height: 34px !important;
    }

    .translator-card.tool-unified-active .box-body {
        min-height: 215px !important;
    }

    .translator-card.tool-unified-active .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 12px !important;
    }

    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        padding: 18px 16px 12px !important;
        font-size: 18px !important;
    }

    .translator-card.tool-unified-active .lexi-input {
        min-height: 215px !important;
    }

    .translator-card.tool-unified-active .translate-btn,
    .translator-card.tool-unified-active .btn-primary.translate-btn {
        min-height: 40px !important;
        padding: 9px 18px !important;
        font-size: 15px !important;
    }

    .translator-card.tool-unified-active .icon-btn {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

/* Absolute final AnythingTranslate-style mobile/tablet tool lock */
@media (max-width: 760px) {
    .translator-card {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        align-items: stretch !important;
        padding-top: 18px !important;
        overflow: hidden !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        width: 100% !important;
        min-width: 0 !important;
        box-shadow: none !important;
    }

    .translator-box.is-input {
        order: initial !important;
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        order: initial !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
        border-top: 1px solid #9cb2cb !important;
    }

    .translator-box .box-bar {
        min-height: 50px !important;
        height: 50px !important;
        padding: 0 12px !important;
    }

    .translator-box .box-body {
        min-height: 185px !important;
    }

    .translator-box .box-footer {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
    }

    .translator-box.is-output .box-body,
    .translator-box.is-output .lexi-output-wrap,
    .translator-box.is-output .lexi-output {
        background: #f3f7fc !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 14px 12px 10px !important;
        font-size: 14px !important;
    }

    .translate-btn,
    .btn-primary.translate-btn {
        min-height: 34px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .icon-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 50px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 4 !important;
        align-self: auto !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

@media (min-width: 761px) {
    .swap-btn {
        top: 0 !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Final exact swap placement for split tool layout */
@media (min-width: 481px) {
    .translator-card {
        padding-top: 0 !important;
    }

    .translator-card .swap-btn,
    .translator-card .swap-btn.btn,
    button.swap-btn {
        position: absolute !important;
        top: 31px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .translator-card .swap-btn:hover,
    .translator-card .swap-btn:hover:not(:disabled),
    .translator-card .swap-btn:focus-visible,
    .translator-card .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Ultimate responsive tool header lock */
@media (max-width: 1024px) {
    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .mobile-tool-header {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        align-items: center !important;
        min-height: 58px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        position: relative !important;
        z-index: 3 !important;
    }

    .mobile-tool-header::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 1px !important;
        background: #dbe4ee !important;
        transform: translateX(-0.5px) !important;
        z-index: 0 !important;
    }

    .mobile-lang-label {
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.15 !important;
        color: #374151 !important;
    }

    .mobile-swap-slot {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .mobile-swap-slot .mobile-swap-proxy,
    .mobile-swap-slot .swap-btn,
    .mobile-swap-slot button.swap-btn {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
    }

    .mobile-swap-slot .mobile-swap-proxy:hover,
    .mobile-swap-slot .mobile-swap-proxy:hover:not(:disabled),
    .mobile-swap-slot .mobile-swap-proxy:focus-visible,
    .mobile-swap-slot .mobile-swap-proxy:active,
    .mobile-swap-slot .swap-btn:hover,
    .mobile-swap-slot .swap-btn:hover:not(:disabled),
    .mobile-swap-slot .swap-btn:focus-visible,
    .mobile-swap-slot .swap-btn:active {
        transform: none !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        display: none !important;
    }

    .translator-card .translator-box,
    .translator-card .translator-box.is-input,
    .translator-card .translator-box.is-output {
        display: block !important;
        width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        border: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-bottom: 0 !important;
    }

    .translator-card .translator-box .box-bar,
    .translator-card .translator-box.is-input .box-bar,
    .translator-card .translator-box.is-output .box-bar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .translator-card .translator-box.is-input .box-body {
        min-height: 220px !important;
        background: #ffffff !important;
    }

    .translator-card .translator-box.is-input .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card .translator-box.is-output {
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card .translator-box.is-output .box-body,
    .translator-card .translator-box.is-output .lexi-output-wrap,
    .translator-card .translator-box.is-output .lexi-output {
        min-height: 220px !important;
        background: #f3f7fc !important;
    }

    .translator-card .translator-box.is-output .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

/* ========================================================================== */
/* Final unified tool layout                                                   */
/* ========================================================================== */

.mobile-tool-header {
    display: none !important;
}

.tool-unified-header {
    display: grid !important;
    grid-template-columns: 1fr 44px 1fr !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dbe4ee !important;
    position: relative !important;
    z-index: 2 !important;
    grid-column: 1 / -1 !important;
}

#lexi-tool.tool-unified-active .translator-card .box-bar,
.tool-unified-active .translator-card .box-bar,
.translator-card.tool-unified-active .box-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.tool-unified-header::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 1px !important;
    background: #dbe4ee !important;
    transform: translateX(-0.5px) !important;
    z-index: 0 !important;
}

.tool-unified-label {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    color: #374151 !important;
}

.tool-unified-swap-slot {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tool-unified-swap-slot .swap-btn,
.tool-unified-swap-slot .swap-btn.btn,
.tool-unified-swap-slot button.swap-btn {
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    width: 44px !important;
    height: 36px !important;
    min-width: 44px !important;
    min-height: 36px !important;
    max-width: 44px !important;
    max-height: 36px !important;
    border-radius: 9px !important;
}

.tool-unified-swap-slot .swap-btn:hover,
.tool-unified-swap-slot .swap-btn:hover:not(:disabled),
.tool-unified-swap-slot .swap-btn:focus-visible,
.tool-unified-swap-slot .swap-btn:active {
    transform: none !important;
}

.translator-card {
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #9cb2cb !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

.translator-card > .swap-btn,
.translator-card > .swap-btn.btn,
.translator-card > button.swap-btn,
.translator-card .translator-box .box-bar {
    display: none !important;
}

.translator-card > .translator-box,
.translator-card > .translator-box.is-input,
.translator-card > .translator-box.is-output {
    background: transparent !important;
    box-shadow: none !important;
}

.translator-card > .translator-box.is-output .box-body,
.translator-card > .translator-box.is-output .lexi-output-wrap,
.translator-card > .translator-box.is-output .lexi-output {
    background: #f3f7fc !important;
}

.translator-card > .translator-box .box-footer {
    border-top: 1px solid #dbe4ee !important;
}

@media (min-width: 761px) {
    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-left: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 220px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 14px !important;
    }
}

@media (min-width: 481px) and (max-width: 760px) {
    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-left: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 190px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 14px 14px 10px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: 100% !important;
        border-radius: 0 !important;
        border: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 220px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .translator-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding-top: 58px !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
    }

    .translator-card::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: auto !important;
        left: 50% !important;
        width: 1px !important;
        height: 58px !important;
        background: #dbe4ee !important;
        transform: translateX(-0.5px) !important;
        z-index: 1 !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .translator-box.is-input {
        order: 1 !important;
    }

    .translator-box.is-output {
        order: 2 !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-box.is-input .box-bar,
    .translator-box.is-output .box-bar {
        position: absolute !important;
        top: 0 !important;
        height: 58px !important;
        min-height: 58px !important;
        width: calc(50% - 22px) !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        z-index: 2 !important;
    }

    .translator-box.is-input .box-bar {
        left: 0 !important;
    }

    .translator-box.is-output .box-bar {
        right: 0 !important;
    }

    .translator-box.is-input .lang-label,
    .translator-box.is-output .lang-label {
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .translator-card .swap-btn,
    .translator-card .swap-btn.btn,
    button.swap-btn {
        position: absolute !important;
        top: 29px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 3 !important;
        align-self: auto !important;
    }

    .translator-card .swap-btn:hover,
    .translator-card .swap-btn:hover:not(:disabled),
    .translator-card .swap-btn:focus-visible,
    .translator-card .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }

    .translator-box.is-input .box-body {
        min-height: 220px !important;
        background: #ffffff !important;
    }

    .translator-box.is-input .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-box.is-output .box-body {
        min-height: 220px !important;
        background: #f3f7fc !important;
    }

    .translator-box.is-output .lexi-output,
    .translator-box.is-output .lexi-output-wrap {
        background: #f3f7fc !important;
    }

    .translator-box.is-output .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

/* Absolute final mobile translator layout */
@media (max-width: 760px) {
    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        grid-template-areas:
            "inputbar swap outputbar"
            "inputbody inputbody inputbody"
            "inputfooter inputfooter inputfooter"
            "outputbody outputbody outputbody"
            "outputfooter outputfooter outputfooter" !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
        position: relative !important;
    }

    .translator-card::before {
        content: none !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: contents !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .translator-card > .translator-box.is-input .box-bar {
        grid-area: inputbar !important;
    }

    .translator-card > .translator-box.is-output .box-bar {
        grid-area: outputbar !important;
    }

    .translator-card > .translator-box.is-input .box-body {
        grid-area: inputbody !important;
    }

    .translator-card > .translator-box.is-input .box-footer {
        grid-area: inputfooter !important;
    }

    .translator-card > .translator-box.is-output .box-body {
        grid-area: outputbody !important;
    }

    .translator-card > .translator-box.is-output .box-footer {
        grid-area: outputfooter !important;
    }

    .translator-card > .translator-box .box-bar {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box.is-input .box-bar {
        border-right: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box.is-input .lang-label,
    .translator-card > .translator-box.is-output .lang-label {
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        grid-area: swap !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        align-self: center !important;
        justify-self: center !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .translator-card > .swap-btn:hover,
    .translator-card > .swap-btn:hover:not(:disabled),
    .translator-card > .swap-btn:focus-visible,
    .translator-card > .swap-btn:active {
        transform: none !important;
    }

    .translator-card > .translator-box.is-input .box-body {
        min-height: 220px !important;
        background: #ffffff !important;
    }

    .translator-card > .translator-box.is-output .box-body,
    .translator-card > .translator-box.is-output .lexi-output-wrap,
    .translator-card > .translator-box.is-output .lexi-output {
        min-height: 220px !important;
        background: #f3f7fc !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box.is-output .box-body {
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

.mobile-tool-header {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-tool-header {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        align-items: center !important;
        min-height: 58px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .mobile-tool-header::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 1px !important;
        background: #dbe4ee !important;
        transform: translateX(-0.5px) !important;
        z-index: 0 !important;
    }

    .mobile-lang-label {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.15 !important;
        color: #374151 !important;
    }

    .mobile-swap-slot {
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .translator-card .mobile-swap-slot .swap-btn,
    .translator-card .mobile-swap-slot .swap-btn.btn,
    .translator-card .mobile-swap-slot button.swap-btn {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        align-self: auto !important;
    }

    .translator-card .mobile-swap-slot .swap-btn:hover,
    .translator-card .mobile-swap-slot .swap-btn:hover:not(:disabled),
    .translator-card .mobile-swap-slot .swap-btn:focus-visible,
    .translator-card .mobile-swap-slot .swap-btn:active {
        transform: none !important;
    }

    .translator-card .translator-box .box-bar,
    .translator-card .translator-box.is-input .box-bar,
    .translator-card .translator-box.is-output .box-bar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }
}

/* Final small-landscape / fold lock */
@media (min-width: 481px) and (max-width: 760px) {
    .mobile-tool-header {
        display: none !important;
    }

    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .translator-card > .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
        border-top: 0 !important;
    }

    .translator-card > .translator-box .box-bar,
    .translator-card > .translator-box.is-input .box-bar,
    .translator-card > .translator-box.is-output .box-bar {
        display: flex !important;
        height: 56px !important;
        min-height: 56px !important;
        padding: 0 16px !important;
        border-bottom: 1px solid #dbe4ee !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 200px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 12px !important;
    }

    .translator-card > .translator-box.is-output .box-body,
    .translator-card > .translator-box.is-output .lexi-output-wrap,
    .translator-card > .translator-box.is-output .lexi-output {
        background: #f3f7fc !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        position: absolute !important;
        top: 28px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .translator-card > .swap-btn:hover,
    .translator-card > .swap-btn:hover:not(:disabled),
    .translator-card > .swap-btn:focus-visible,
    .translator-card > .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* ========================================================================== */
/* Final authoritative tool responsiveness lock                               */
/* ========================================================================== */

.translator-card,
.translator-card > .translator-box,
.translator-card > .translator-box.is-input,
.translator-card > .translator-box.is-output,
.translator-card .box-bar,
.translator-card .box-body,
.translator-card .box-footer,
.translator-card .swap-btn {
    box-sizing: border-box !important;
}

.translator-card .swap-btn,
.translator-card .swap-btn.btn,
.translator-card > button.swap-btn {
    width: 44px !important;
    height: 36px !important;
    min-width: 44px !important;
    min-height: 36px !important;
    max-width: 44px !important;
    max-height: 36px !important;
    border-radius: 9px !important;
    aspect-ratio: auto !important;
}

.mobile-tool-header {
    display: none !important;
}

/* Desktop + tablet */
@media (min-width: 761px) {
    .mobile-tool-header {
        display: none !important;
    }

    .translator-card {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .translator-card > .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
        border-top: 0 !important;
    }

    .translator-card > .translator-box .box-bar {
        display: flex !important;
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        overflow: visible !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 220px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 14px !important;
    }

    .translator-card > .translator-box.is-output .box-body,
    .translator-card > .translator-box.is-output .lexi-output-wrap,
    .translator-card > .translator-box.is-output .lexi-output {
        background: #f3f7fc !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        position: absolute !important;
        top: 28px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .translator-card > .swap-btn:hover,
    .translator-card > .swap-btn:hover:not(:disabled),
    .translator-card > .swap-btn:focus-visible,
    .translator-card > .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Small landscape / fold / mini-tablet */
@media (min-width: 481px) and (max-width: 760px) {
    .mobile-tool-header {
        display: none !important;
    }

    .translator-card {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .translator-card > .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-card > .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
        border-top: 0 !important;
    }

    .translator-card > .translator-box .box-bar {
        display: flex !important;
        min-height: 52px !important;
        height: 52px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        overflow: visible !important;
    }

    .translator-card > .translator-box .box-body {
        min-height: 185px !important;
    }

    .translator-card > .translator-box .box-footer {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
    }

    .translator-card > .translator-box.is-output .box-body,
    .translator-card > .translator-box.is-output .lexi-output-wrap,
    .translator-card > .translator-box.is-output .lexi-output {
        background: #f3f7fc !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        position: absolute !important;
        top: 26px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .translator-card > .swap-btn:hover,
    .translator-card > .swap-btn:hover:not(:disabled),
    .translator-card > .swap-btn:focus-visible,
    .translator-card > .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 14px 14px 10px !important;
        font-size: 14px !important;
    }
}

/* True mobile unified card with header row */
@media (max-width: 480px) {
    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
        position: relative !important;
    }

    .mobile-tool-header {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        align-items: center !important;
        min-height: 58px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .mobile-tool-header::before {
        content: "" !important;
        position: absolute !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 1px !important;
        background: #dbe4ee !important;
        transform: translateX(-0.5px) !important;
        z-index: 0 !important;
    }

    .mobile-lang-label {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        text-align: center !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.15 !important;
        color: #374151 !important;
    }

    .mobile-swap-slot {
        position: relative !important;
        z-index: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .translator-card .mobile-swap-slot .swap-btn,
    .translator-card .mobile-swap-slot .swap-btn.btn,
    .translator-card .mobile-swap-slot button.swap-btn {
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        align-self: auto !important;
    }

    .translator-card .mobile-swap-slot .swap-btn:hover,
    .translator-card .mobile-swap-slot .swap-btn:hover:not(:disabled),
    .translator-card .mobile-swap-slot .swap-btn:focus-visible,
    .translator-card .mobile-swap-slot .swap-btn:active {
        transform: none !important;
    }

    .translator-card > .translator-box,
    .translator-card > .translator-box.is-input,
    .translator-card > .translator-box.is-output {
        display: block !important;
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .translator-card > .translator-box .box-bar {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .translator-card > .swap-btn,
    .translator-card > .swap-btn.btn,
    .translator-card > button.swap-btn {
        display: none !important;
    }

    .translator-card > .translator-box.is-input .box-body {
        min-height: 220px !important;
        background: #ffffff !important;
    }

    .translator-card > .translator-box.is-input .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box.is-output .box-body,
    .translator-card > .translator-box.is-output .lexi-output-wrap,
    .translator-card > .translator-box.is-output .lexi-output {
        min-height: 220px !important;
        background: #f3f7fc !important;
    }

    .translator-card > .translator-box.is-output .box-body {
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card > .translator-box.is-output .box-footer {
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card .lexi-input,
    .translator-card .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 44px 1fr !important;
        grid-template-areas:
            "label-left swap label-right"
            "input-body input-body input-body"
            "input-footer input-footer input-footer"
            "output-body output-body output-body"
            "output-footer output-footer output-footer" !important;
        gap: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        display: contents !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .translator-box.is-input .box-bar,
    .translator-box.is-output .box-bar {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 12px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
    }

    .translator-box.is-input .box-bar {
        grid-area: label-left !important;
        border-right: 0 !important;
    }

    .translator-box.is-output .box-bar {
        grid-area: label-right !important;
        border-left: 0 !important;
    }

    .translator-box.is-input .lang-label,
    .translator-box.is-output .lang-label {
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .swap-btn {
        grid-area: swap !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        align-self: center !important;
        justify-self: center !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: none !important;
    }

    .translator-box.is-input .box-body {
        grid-area: input-body !important;
        min-height: 220px !important;
        background: #ffffff !important;
    }

    .translator-box.is-input .box-footer {
        grid-area: input-footer !important;
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-box.is-output .box-body {
        grid-area: output-body !important;
        min-height: 220px !important;
        background: #f3f7fc !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-box.is-output .lexi-output,
    .translator-box.is-output .lexi-output-wrap {
        background: #f3f7fc !important;
    }

    .translator-box.is-output .box-footer {
        grid-area: output-footer !important;
        min-height: 56px !important;
        height: 56px !important;
        padding: 0 14px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 16px 18px 12px !important;
        font-size: 14px !important;
    }
}

@media (min-width: 761px) and (max-width: 1099px) {
    .hamburger-btn {
        display: none !important;
    }

    .nav-inner {
        gap: 10px !important;
        padding: 12px 18px !important;
    }

    .nav-logo {
        font-size: 0.98rem !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 2px !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: auto !important;
        min-height: 36px !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        justify-content: center !important;
        border-radius: 10px !important;
        gap: 6px !important;
    }

    .nav-btn-icon {
        width: 15px !important;
        height: 15px !important;
    }

    .nav-dropdown-btn svg:last-child {
        width: 10px !important;
        height: 10px !important;
    }

    .nav-simple-dropdown {
        min-width: min(760px, calc(100vw - 32px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .page-shell {
        padding: 18px 16px 36px !important;
    }

    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .translator-box {
        min-width: 0 !important;
    }

    .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        order: initial !important;
        z-index: 3 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Final swap button lock across all devices */
.swap-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 10px !important;
    aspect-ratio: 1 / 1 !important;
}

.swap-btn svg {
    width: 18px !important;
    height: 18px !important;
}

@media (min-width: 761px) {
    .swap-btn {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 3 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 760px) {
    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .translator-box.is-input {
        order: 1 !important;
    }

    .swap-btn {
        position: relative !important;
        order: 2 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        align-self: center !important;
        margin: 4px 0 !important;
        z-index: 3 !important;
        border-radius: 10px !important;
    }

    .translator-box.is-output {
        order: 3 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: none !important;
    }
}

/* Absolute final swap button shape lock */
.translator-card .swap-btn,
.translator-card .swap-btn.btn,
button.swap-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    border-radius: 10px !important;
    aspect-ratio: 1 / 1 !important;
}

@media (min-width: 481px) and (max-width: 760px) {
    .translator-card {
        position: relative !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        padding-top: 30px !important;
    }

    .translator-box {
        min-width: 0 !important;
    }

    .translator-box.is-input {
        order: initial !important;
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        order: initial !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
    }

    .translator-box .box-bar {
        min-height: 50px !important;
        height: 50px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
    }

    .translator-box .box-body {
        min-height: 180px !important;
    }

    .translator-box.is-output .box-body,
    .translator-box.is-output .lexi-output,
    .translator-box.is-output .lexi-output-wrap {
        background: #f3f7fc !important;
    }

    .translator-box .box-footer {
        border-top: 1px solid #dbe4ee !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 9px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 4 !important;
        background: #ffffff !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 480px) {
    .translator-card {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding-top: 30px !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        width: 100% !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .translator-box.is-input {
        order: 1 !important;
    }

    .translator-box.is-output {
        order: 2 !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-box .box-bar {
        min-height: 50px !important;
        height: 50px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
    }

    .translator-box .box-body {
        min-height: 180px !important;
    }

    .translator-box.is-output .box-body,
    .translator-box.is-output .lexi-output,
    .translator-box.is-output .lexi-output-wrap {
        background: #f3f7fc !important;
    }

    .translator-box .box-footer {
        border-top: 1px solid #dbe4ee !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 9px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        z-index: 4 !important;
        background: #ffffff !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translateX(-50%) !important;
    }
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Google Sans", sans-serif;
    font-weight: 400;
    color: var(--lexi-text);
    background: #ffffff;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.content-card a {
    color: #2F5F9C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-card a:hover {
    color: #1e40af;
}

.content-card a {
    color: #2F5F9C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-card a:hover {
    color: #1e40af;
}

h1 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; color: #06294e; letter-spacing: 0; font-family: "Google Sans", sans-serif; }
h2 { font-size: 1.5rem; font-weight: 500; line-height: 1.2; color: #06294e; letter-spacing: 0; font-family: "Google Sans", sans-serif; }
h3 { font-size: 1rem; font-weight: 500; line-height: 1.35; color: #06294e; letter-spacing: 0; font-family: "Google Sans", sans-serif; }

.page-shell {
    max-width: var(--lexi-max);
    margin: 0 auto;
    padding: 28px 24px 48px;
}

@keyframes flashBg {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow:
            inset 0 -1px 0 rgba(255, 255, 255, 0.12),
            0 3px 10px rgba(26, 115, 232, 0.14);
    }
    50% {
        background-position: 100% 50%;
        box-shadow:
            inset 0 -1px 0 rgba(255, 255, 255, 0.18),
            0 8px 20px rgba(26, 115, 232, 0.2);
    }
}

.announcement-bar {
    background: #1E3F6D;
    text-align: center;
    padding: 9px 16px;
    font-size: 12.75px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

.announcement-bar a {
    color: #bfdbfe;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tool-policy-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    color: #1f2937;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: none;
}

.tool-policy-bolt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #eaf2ff, #dbeafe);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2F5F9C;
    font-size: 11px;
    box-shadow: 0 1px 2px rgba(30, 64, 175, 0.15);
}

.tool-policy-usage {
    font-size: 14px;
    letter-spacing: -0.015em;
    color: #334155;
}

.tool-policy-usage strong {
    font-weight: 500;
    color: #374151;
}

.tool-policy-reset-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, 0.28);
    background: #ffffff;
    color: #475569;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.tool-policy-reset-icon {
    color: #2563eb;
    font-size: 13px;
    line-height: 1;
}

.tool-policy-provider {
    display: none !important;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.08);
    color: #1e40af;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.tool-policy-provider[hidden] {
    display: none !important;
}

.tool-detect-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 14px;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    background: #ffffff;
    color: #334155;
    box-shadow: none;
    text-align: center;
}

.tool-detect-hint[hidden] {
    display: none !important;
}

.tool-detect-copy {
    font-size: 13px;
    line-height: 1.45;
}

.tool-related-links {
    margin: 16px auto 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}

.tool-related-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 10px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tool-related-label-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.12);
    color: #2F5F9C;
    font-size: 10px;
    line-height: 1;
}

.tool-related-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.tool-related-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--lexi-border);
    background: #ffffff;
    color: #374151;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
    box-shadow: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tool-related-chip:hover {
    border-color: rgba(29, 78, 216, 0.3);
    color: #2F5F9C;
    background: #f8fbff;
}

.tool-action-toast {
    width: fit-content;
    margin: 12px 0 0 auto;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96)),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 38%);
    color: #374151;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tool-action-toast[data-variant="error"] {
    border-color: rgba(220, 38, 38, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(254, 242, 242, 0.96)),
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.08), transparent 38%);
    color: #991b1b;
}

.tool-action-toast[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .tool-policy-banner {
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        margin-bottom: 12px;
        font-size: 12px;
        padding: 6px 8px;
        gap: 4px 6px;
        border-radius: 9px;
    }

    .tool-policy-usage {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tool-policy-reset-pill {
        width: auto;
        max-width: 52%;
        font-size: 10.5px;
        padding: 4px 7px;
        white-space: nowrap;
        flex-shrink: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tool-policy-provider {
        font-size: 10.5px;
        padding: 4px 8px;
    }

    .tool-detect-hint {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }

    .tool-related-list {
        gap: 8px;
        justify-content: flex-start;
    }

    .tool-related-chip {
        font-size: 12px;
        min-height: 30px;
        padding: 6px 11px;
    }

    .tool-related-label {
        font-size: 11px;
        min-height: 26px;
        padding: 4px 9px;
    }

    .tool-action-toast {
        margin-top: 10px;
        margin-left: 0;
        font-size: 12px;
        padding: 7px 10px;
    }

}

.site-header,
.site-footer {
    max-width: var(--lexi-max);
    margin: 0 auto;
    padding: 18px 24px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--lexi-border);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.brand-badge {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--lexi-primary);
    color: #fff;
    box-shadow: none;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy span:first-child {
    font-size: 18px;
}

.brand-copy small {
    color: var(--lexi-text-soft);
    font-size: 12px;
    font-weight: 500;
}

/* Global Layout Components */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #1f1f1f;
    backdrop-filter: none;
    border-bottom: 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links > a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.nav-links > a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.nav-mobile-only {
    display: none;
}

/* Dropdown trigger */
.nav-has-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.12s, color 0.12s;
}

.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.nav-dropdown-btn svg {
    transition: transform 0.2s;
}

.nav-has-dropdown.is-open .nav-dropdown-btn svg {
    transform: rotate(180deg);
}

/* Mega Menu */
.nav-mega-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    padding: 24px 28px;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    min-width: 1020px;
    z-index: 200;
}

.nav-has-dropdown.is-open .nav-mega-menu {
    display: grid;
}

/* Simple single-column dropdown */
.nav-simple-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: #1f1f1f;
    border: 1px solid #333333;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    padding: 16px;
    min-width: 360px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 200;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.nav-has-dropdown.is-open .nav-simple-dropdown {
    display: grid;
}

.nav-simple-dropdown a {
    text-decoration: none;
    color: #f3f3f3;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}

.nav-simple-dropdown a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.mega-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-heading {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--lexi-text-muted);
    padding: 0 8px 10px;
    border-bottom: 1px solid var(--lexi-border);
    margin-bottom: 6px;
}

.mega-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.mega-links a {
    text-decoration: none;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 7px;
    transition: background 0.1s, color 0.1s;
    white-space: nowrap;
}

.mega-links a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: 1px solid var(--lexi-border);
    border-radius: 8px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .hamburger-btn span {
        background: #ffffff;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f1f1f;
        border-bottom: 1px solid #333333;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px 20px;
        gap: 4px;
        box-shadow: 0 12px 24px rgba(0,0,0,0.25);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a {
        padding: 10px 12px;
    }

    .nav-mobile-only {
        display: block;
    }

    .nav-has-dropdown {
        position: static;
    }

    .nav-dropdown-btn {
        width: 100%;
        justify-content: space-between;
        padding: 10px 12px;
    }

    .nav-mega-menu {
        position: static;
        transform: none;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #333333;
        border-radius: 10px;
        background: #141414;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 4px;
    }

    .mega-links {
        grid-template-columns: 1fr 1fr;
    }

    .nav-simple-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: 1px solid #333333;
        border-radius: 10px;
        background: #141414;
        padding: 8px;
        margin-top: 4px;
    }
}

/* Absolute final announcement fix: no overlay, text always visible. */
.announcement-bar {
    background-image: linear-gradient(90deg, #173a63 0%, #173a63 18%, #2F5F9C 36%, #9bd0ff 50%, #2F5F9C 64%, #173a63 82%, #173a63 100%) !important;
    background-size: 220% 100% !important;
    animation: announcementBarMoveFinal 2.2s linear infinite !important;
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.28) !important;
}

.announcement-bar::before,
.announcement-bar::after {
    content: none !important;
    display: none !important;
}

@keyframes announcementBarMoveFinal {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 220% 50%;
    }
}

/* JS-backed announcement animation: moving layer behind readable text. */
.announcement-bar {
    background: #173a63 !important;
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    color: #ffffff !important;
}

.announcement-bar::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: linear-gradient(90deg, #173a63 0%, #214f86 22%, #2F5F9C 42%, #9bd0ff 50%, #2F5F9C 58%, #214f86 78%, #173a63 100%) !important;
    background-size: 260% 100% !important;
    animation: announcementLayerMove 2.4s linear infinite !important;
    pointer-events: none !important;
}

.announcement-bar::after {
    content: none !important;
    display: none !important;
}

.announcement-bar-text {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
}

@keyframes announcementLayerMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 260% 50%;
    }
}

.hero {
    text-align: center;
    padding: 28px 0 18px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 500;
    color: #1E3F6D;
}

.hero p {
    margin: 0 auto;
    max-width: 780px;
    color: var(--lexi-text-soft);
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.002em;
}

.translator-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-top: 16px;
}

.translator-box {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: none;
    transition: border-color 0.18s ease;
}

.translator-box.is-input {
    border-right: 1px solid var(--lexi-border);
}

.translator-box.is-output {
    background: #ffffff;
}

.translator-box:hover {
    transform: none;
    box-shadow: none;
}

.box-bar {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    border-bottom: 1px solid var(--lexi-border);
    background: #ffffff;
    min-height: 52px;
}

.lang-tab {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--lexi-text-muted);
    border-bottom: 3px solid transparent;
    cursor: default;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
    user-select: none;
}

.lang-tab.is-active {
    color: #2F5F9C;
    border-bottom-color: #2F5F9C;
    font-weight: 500;
}

.lang-label {
    /* managed by lang-tab styles when combined */
}

.box-body {
    min-height: 170px;
}

.lexi-input,
.lexi-output {
    width: 100%;
    border: 0;
    outline: 0;
    resize: none;
    background: transparent;
    padding: 18px 18px 14px;
    font-family: "Google Sans", sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--lexi-text);
}

.lexi-input::placeholder {
    color: var(--lexi-text-muted);
}

.lexi-input {
    display: block;
    min-height: 170px;
    height: 170px;
}

.lexi-input:focus {
    background: transparent;
}

.lexi-output {
    display: block;
    min-height: 170px;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: auto;
}

.lexi-output.is-empty {
    color: var(--lexi-text-muted);
    display: block;
}

.box-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--lexi-border);
    background: #ffffff;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.char-count {
    font-size: 12px;
    color: var(--lexi-text-muted);
    font-variant-numeric: tabular-nums;
}

.char-count.is-over {
    color: #d93025;
}

.char-count.is-near-limit {
    color: #b45309;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: var(--lexi-radius-sm);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none !important;
    box-shadow: none !important;
}

.btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary {
    appearance: none !important;
    border: 1px solid var(--lexi-primary) !important;
    background: #2F5F9C !important;
    color: #ffffff !important;
    padding: 10px 18px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.1s, border-color 0.1s !important;
    box-shadow: none !important;
    letter-spacing: 0.01em !important;
}

.btn-primary:hover:not(:disabled) {
    background: #1E3F6D !important;
    border-color: #1E3F6D !important;
    box-shadow: none !important;
    color: #ffffff !important;
}


.btn-primary:active:not(:disabled) {
    background: #1e3a8a !important;
    transform: scale(0.98) !important;
    color: #ffffff !important;
}

.icon-btn {
    appearance: none;
    border: 1px solid var(--lexi-border);
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    padding: 9px 13px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: none;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.icon-btn:hover {
    background: #f8fbff;
    border-color: rgba(37, 99, 235, 0.24);
}

.icon-btn:active {
    transform: scale(0.96);
}

.icon-btn.is-success {
    border-color: rgba(22, 163, 74, 0.22);
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.icon-btn.is-copying {
    pointer-events: none;
    opacity: 0.86;
}

.clear-btn.is-cleared {
    border-color: rgba(245, 158, 11, 0.34);
    background: #fff7ed;
    color: #9a3412;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

.icon-btn:disabled,
.btn-primary:disabled {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #94a3b8 !important;
}

.listen-btn.is-active {
    border-color: rgba(29, 78, 216, 0.34);
    background: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.listen-btn.is-active:hover {
    background: #1e40af;
    color: #ffffff;
}

.listen-btn.is-active svg {
    fill: currentColor;
    stroke: none;
}

.listen-btn.is-active svg rect {
    fill: #1d4ed8;
}

.icon-btn svg,
.btn-primary svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    display: block !important;
    stroke-width: 2.5;
}

.swap-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--lexi-border);
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow: none;
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: #f5f9ff;
    color: var(--lexi-primary);
    border-color: rgba(29, 78, 216, 0.4);
    transform: translate(-50%, -50%) !important;
}

.swap-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.tool-status-note {
    width: fit-content;
    margin: 10px 0 0 auto;
    padding: 7px 11px;
    border-radius: 10px;
    border: 1px solid var(--lexi-border);
    background: #ffffff;
    color: #334155;
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: none;
}

.tool-status-note[data-variant="success"] {
    border-color: rgba(22, 163, 74, 0.18);
    background: rgba(240, 253, 244, 0.96);
    color: #166534;
}

.tool-status-note[data-variant="error"] {
    border-color: rgba(220, 38, 38, 0.16);
    background: rgba(254, 242, 242, 0.96);
    color: #991b1b;
}

.tool-status-note[hidden] {
    display: none !important;
}

.lexi-output.is-error {
    background: #fff1f2;
    border-color: rgba(220, 38, 38, 0.22);
    color: #991b1b;
}

.lexi-output.is-loading {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    color: var(--lexi-text-muted);
}

.output-loading-shell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 0;
    width: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
}

.output-loading-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(26, 115, 232, 0.08);
    color: #2F5F9C;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.output-loading-shimmer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.output-loading-line {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dbeafe 0%, #eaf2ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.output-loading-line.short {
    width: 72%;
}

.output-loading-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.98) 50%, transparent 100%);
    animation: lexiShimmer 0.95s ease-in-out infinite;
}

html[data-theme="dark"] .output-loading-label,
body[data-theme="dark"] .output-loading-label,
body.theme-dark .output-loading-label {
    background: rgba(103, 216, 255, 0.10);
    color: #d6e0ece0;
}

html[data-theme="dark"] .output-loading-line,
body[data-theme="dark"] .output-loading-line,
body.theme-dark .output-loading-line {
    background: linear-gradient(90deg, rgba(51, 65, 85, 0.28) 0%, rgba(103, 216, 255, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(214, 224, 236, 0.08);
}

html[data-theme="dark"] .output-loading-line::after,
body[data-theme="dark"] .output-loading-line::after,
body.theme-dark .output-loading-line::after {
    background: linear-gradient(90deg, transparent 0%, rgba(103, 216, 255, 0.20) 50%, transparent 100%);
}

@keyframes lexiShimmer {
    100% {
        transform: translateX(100%);
    }
}

.lexi-output::-webkit-scrollbar {
    width: 10px;
}

.lexi-output::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.5);
    border-radius: 999px;
}

.lexi-output::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.24);
    border-radius: 999px;
}

.lexi-output::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.34);
}

.examples {
    margin-top: 28px;
}

.examples h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--lexi-text-soft);
    font-weight: 500;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    border: 1px solid var(--lexi-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--lexi-text-soft);
    border-radius: var(--lexi-pill);
    padding: 10px 14px;
    font-weight: 500;
}

.chip:hover {
    border-color: rgba(29, 78, 216, 0.45);
    color: var(--lexi-primary);
}

.content-block {
    margin-top: 72px;
}

.content-block h2 {
    text-align: left;
    margin: 0;
    padding: 18px 20px 8px;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #06294e;
    letter-spacing: 0;
    font-family: "Google Sans", sans-serif;
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

/* This will be the box container */
.content-card {
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    padding: 0 20px 18px;
    box-shadow: none;
}

.content-block > h2 + .content-card {
    margin-bottom: 18px;
}

.content-block > h2 + .faq-list {
    margin-bottom: 18px;
}

.content-block > h2:not(:first-child) {
    margin-top: 6px;
}


.content-card p {
    margin: 0 0 16px;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 15px;
    letter-spacing: 0.002em;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.content-card table {
    width: 100% !important;
    margin: 20px 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid var(--lexi-border) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: none;
    font-size: 15px;
}

.content-card thead tr {
    background: #eef3f8 !important;
    border-bottom: 1px solid var(--lexi-border) !important;
}

.content-card th,
.content-card td {
    padding: 13px 16px !important;
    font-size: 15px;
    text-align: left !important;
    border-right: 1px solid #e5e7eb !important;
}

.content-card th {
    color: #0f3d91;
    font-weight: 500;
}

.content-card td {
    color: #1f2937;
    background: #ffffff;
}

.content-card tbody tr {
    border-bottom: 1px solid #e5e7eb !important;
}

.content-card tbody tr:nth-child(even) td {
    background: #f9fbfd !important;
}

.content-card tbody tr:hover td {
    background: #f2f6fa !important;
}

.content-card tr:last-child {
    border-bottom: none !important;
}

.content-card th:last-child,
.content-card td:last-child {
    border-right: none !important;
}

.content-card ul,
.content-card ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.content-card ul li::marker {
    color: #2F5F9C;
    font-weight: 500;
}

.content-card ol {
    list-style: none;
    padding-left: 0;
    counter-reset: lexi-counter;
}

.content-card ol li {
    counter-increment: lexi-counter;
    display: block;
    position: relative;
    padding-left: 42px;
    min-height: 30px;
}

.content-card ol li::before {
    content: counter(lexi-counter);
    width: 26px;
    height: 26px;
    background: #2F5F9C;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
}

.content-card ul li:last-child,
.content-card ol li:last-child {
    margin-bottom: 0;
}

.content-card ul,
.content-card ol {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.7;
}

.content-card ul li,
.content-card ol li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.content-card ul li::marker {
    color: #2F5F9C;
    font-weight: 500;
}

.content-card ol {
    list-style: none;
    padding-left: 0;
    counter-reset: lexi-counter;
}

.content-card ol li {
    counter-increment: lexi-counter;
    display: block;
    position: relative;
    padding-left: 42px;
    min-height: 30px;
}

.content-card ol li::before {
    content: counter(lexi-counter);
    width: 26px;
    height: 26px;
    background: #2F5F9C;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    top: 2px;
}

.content-card ul li:last-child,
.content-card ol li:last-child {
    margin-bottom: 0;
}

/* Related Tools Grid */
.related-tools {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

.related-tool-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 90px;
}

.related-tool-card:hover {
    box-shadow: none;
    transform: none;
    border-color: rgba(47, 95, 156, 0.38);
}

.related-tool-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
    padding-right: 36px;
}

.related-tool-card-cta {
    font-size: 13px;
    color: var(--lexi-text-muted);
    font-weight: 500;
}

.related-tool-card-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 0 13px 0 13px;
}

@media (max-width: 600px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

/* Related Tools Grid */
.related-tools {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 700px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

.related-tool-card {
    position: relative;
    background: #ffffff;
    border: 1.5px solid #111827;
    border-radius: 14px;
    padding: 18px 20px 16px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
    height: 90px;
}

.related-tool-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.related-tool-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.3;
    padding-right: 36px;
}

.related-tool-card-cta {
    font-size: 13px;
    color: var(--lexi-text-muted);
    font-weight: 500;
}

.related-tool-card-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 0 13px 0 13px;
}

@media (max-width: 600px) {
    .related-tools {
        grid-template-columns: 1fr 1fr;
    }
}

/* Content + Sidebar Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-card-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lexi-text-muted);
    margin: 0 0 14px;
}

.sidebar-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--lexi-text);
    transition: background 0.12s, color 0.12s;
}

.sidebar-link-list a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.sidebar-link-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lexi-border);
    flex-shrink: 0;
    transition: background 0.12s;
}

.sidebar-link-list a:hover::before {
    background: var(--lexi-primary);
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

/* Content + Sidebar Layout */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
    margin-top: 0;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 12px;
    padding: 20px;
}

.sidebar-card-title {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lexi-text-muted);
    margin: 0 0 14px;
}

.sidebar-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--lexi-text);
    transition: background 0.12s, color 0.12s;
}

.sidebar-link-list a:hover {
    background: #f0f4ff;
    color: var(--lexi-primary);
}

.sidebar-link-list a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lexi-border);
    flex-shrink: 0;
    transition: background 0.12s;
}

.sidebar-link-list a:hover::before {
    background: var(--lexi-primary);
}

@media (max-width: 900px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
    }
}

/* Global FAQ Styling (Home Page Style) */
.faq-list {
    margin-top: 32px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--lexi-border);
    border-radius: 14px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: none;
}


.faq-question {
    width: 100%;
    padding: 15px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #374151;
}

.faq-question::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 3px solid #111827;
    border-bottom: 3px solid #111827;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-right: 4px;
}

.faq-item.is-active .faq-question::after {
    transform: rotate(-135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 20px;
    color: #4d4d4d;
    line-height: 1.7;
    font-size: 15px;
    opacity: 0;
}
.faq-item.is-active .faq-answer { 
    padding-top: 10px;
    padding-bottom: 24px; 
    max-height: 500px; 
    opacity: 1;
}

/* Global Footer Styling */
.footer {
    border-top: 1px solid var(--lexi-border);
    border-bottom: 1px solid var(--lexi-border);
    padding: 28px 24px;
    background: #ffffff;
    margin-top: 72px;
}


.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* ConvertCase-inspired translator page overrides */
:root {
    --lexi-primary: #0a315b;
    --lexi-primary-hover: #06294e;
    --lexi-bg: #ffffff;
    --lexi-surface: #ffffff;
    --lexi-output: #ffffff;
    --lexi-text: #06294e;
    --lexi-text-soft: #3f5b7a;
    --lexi-text-muted: #5d748d;
    --lexi-border: #e0e3e5;
    --lexi-radius: 4px;
    --lexi-radius-sm: 4px;
    --lexi-max: 1200px;
}

body {
    background: #000000;
    color: var(--lexi-text);
    font-family: "Google Sans", sans-serif;
    line-height: 1.5;
}

h1,
h2,
h3 {
    color: var(--lexi-text);
}

.page-shell {
    max-width: var(--lexi-max);
    padding: 24px 24px 40px;
    background: #000000;
}

.hero {
    text-align: center;
    padding: 84px 24px 72px;
    margin: 0 0 28px;
    background: #000000;
    border-radius: 0;
}

.hero h1 {
    font-size: 3.125rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0;
    color: #ffffff;
    margin-bottom: 18px;
    font-family: "Google Sans", sans-serif;
}

.hero p {
    max-width: 760px;
    color: #b4b4b4;
    font-size: 1.125rem;
    line-height: 1.55;
    letter-spacing: 0;
}

.tool-policy-banner,
.tool-detect-hint,
.tool-status-note {
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-radius: 4px;
    box-shadow: none;
    color: var(--lexi-text);
}

.tool-policy-usage,
.tool-detect-copy,
.tool-status-note {
    color: var(--lexi-text-soft);
}

.tool-policy-bolt,
.tool-related-label-icon {
    background: #e7eef6;
    border: 1px solid #d7e1ea;
    color: var(--lexi-primary);
    box-shadow: none;
}

.translator-card {
    gap: 20px;
    margin-top: 14px;
}

.translator-box {
    background: #303030;
    border: 1px solid #2f2f2f;
    border-radius: 24px;
    overflow: hidden;
}

.box-bar {
    min-height: 54px;
    padding: 0 18px;
    background: #303030;
    border-bottom: 1px solid #2a2a2a;
}

.lang-tab {
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    border-bottom-width: 0;
}

.lang-tab.is-active {
    color: #ffffff;
    border-bottom-color: transparent;
}

.box-body,
.lexi-input,
.lexi-output {
    min-height: 160px;
}

.lexi-input,
.lexi-output {
    padding: 18px;
    font-size: 16px;
    line-height: 1.55;
    color: #ffffff;
    background: #303030;
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #8f8f8f;
}

.box-footer {
    padding: 14px 16px;
    background: #303030;
    border-top: 1px solid #2a2a2a;
}

.char-count {
    font-size: 13px;
    color: #8f8f8f;
}

.btn,
.btn:hover:not(:disabled),
.btn:active:not(:disabled) {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background: #444444 !important;
    border: 1px solid #444444 !important;
    color: #f1f4f8 !important;
    border-radius: 24px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled),
.btn-primary:active:not(:disabled) {
    background: #535353 !important;
    border-color: #535353 !important;
    color: #f1f4f8 !important;
}

.icon-btn {
    background: #000000;
    border: 1px solid #2f2f2f;
    color: #d4d4d4;
    border-radius: 14px;
    padding: 9px 13px;
    font-size: 14px;
    font-weight: 500;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.icon-btn:active {
    background: #111111;
    border-color: #454545;
    color: #ffffff;
}

.listen-btn.is-active,
.listen-btn.is-active:hover {
    background: #222222;
    border-color: #4b4b4b;
    color: #f1f4f8;
}

.swap-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid #2f2f2f;
    background: #000000;
    color: #bdbdbd;
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: #111111;
    border-color: #4b4b4b;
    color: #ffffff;
}

.content-card {
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-top: 0;
    border-radius: 0 0 4px 4px;
    padding: 0 20px 18px;
}

.content-block {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card td {
    color: var(--lexi-text);
    font-size: 0.875rem;
    line-height: 1.5;
}

.content-card table {
    margin: 18px 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: 1px solid var(--lexi-border) !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    font-size: 15px;
}

.content-card thead tr {
    background: #f5f9f9 !important;
}

.content-card th,
.content-card td {
    border-right: 1px solid var(--lexi-border) !important;
    border-bottom: 1px solid var(--lexi-border) !important;
    padding: 12px 14px !important;
}

.content-card th {
    color: var(--lexi-text);
    font-weight: 500;
    font-size: 0.875rem;
}

.content-card td {
    background: #ffffff !important;
}

.content-card tbody tr:nth-child(even) td,
.content-card tbody tr:hover td {
    background: #ffffff !important;
}

.content-card ul li::marker {
    color: var(--lexi-primary);
}

.content-card ol li::before {
    background: #e7eef6;
    color: var(--lexi-primary);
    border-radius: 999px;
}

.related-tools {
    gap: 10px;
    margin-top: 18px;
}

.related-tool-card {
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-radius: 4px;
    padding: 14px 16px;
    min-height: 80px;
    height: auto;
}

.related-tool-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #c8d5e1;
}

.related-tool-card-title {
    color: var(--lexi-text);
    font-size: 14px;
}

.related-tool-card-cta {
    color: var(--lexi-text-soft);
    font-size: 13px;
}

.related-tool-card-dot {
    display: none;
}

.faq-list {
    margin-top: 24px;
}

.faq-item {
    background: #f5f9f9;
    border: 1px solid var(--lexi-border);
    border-radius: 4px;
    margin-bottom: 12px;
}

.faq-question {
    font-family: "Google Sans", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--lexi-text);
    padding: 14px 16px;
}

.faq-question::after {
    border-right-color: var(--lexi-text);
    border-bottom-color: var(--lexi-text);
}

.faq-answer {
    color: var(--lexi-text-soft);
    font-size: 0.875rem;
    line-height: 1.5;
    padding: 0 16px;
}

.faq-item.is-active .faq-answer {
    padding-top: 6px;
    padding-bottom: 18px;
}

.footer {
    border-top: 1px solid var(--lexi-border);
    border-bottom: 0;
    background: #ffffff;
}

@media (max-width: 900px) {
    .translator-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .swap-btn {
        left: 50%;
        top: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding: 18px 16px 32px;
    }

    .hero {
        text-align: left;
        padding: 52px 20px 44px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .box-footer {
        align-items: flex-start;
    }
}

.footer-logo {
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #374151;
}

.footer-copy {
    font-size: 13px;
    color: #4d4d4d;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    font-size: 13px;
    color: #4d4d4d;
}

.loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lexi-primary);
    animation: lexi-bounce 1.1s infinite ease-in-out both;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.14s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes lexi-bounce {
    0%, 80%, 100% {
        transform: scale(0.72);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .translator-card {
        grid-template-columns: 1fr;
    }

    .translator-box.is-input {
        border-right: 1px solid var(--lexi-border);
    }

    .swap-btn {
        left: 50%;
        top: calc(50% - 7px);
        transform: translate(-50%, -50%);
    }

    .swap-btn:active {
        transform: translate(-50%, -50%) scale(0.92);
    }
}

@media (max-width: 700px) {
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }

    .page-shell,
    .site-header,
    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .translator-card {
        gap: 12px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
    text-align: left;
    padding: 24px 0 20px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 500;
    color: #1E3F6D;
}

.hero p {
        margin-left: 0;
    }
}

/* Revert baseline: simple light translator template */
body {
    background: #ffffff;
    color: #06294e;
    font-family: "Google Sans", sans-serif;
}

.page-shell {
    background: transparent;
    max-width: 1200px;
}

.navbar {
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e3e5;
}

.nav-inner {
    padding: 14px 24px;
}

.nav-logo,
.nav-links > a,
.nav-dropdown-btn {
    color: #374151;
}

.nav-links > a:hover,
.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    background: #f0f4ff;
    color: #0a315b;
}

.nav-simple-dropdown {
    background: #ffffff;
    border: 1px solid #e0e3e5;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

.nav-simple-dropdown a {
    color: #374151;
}

.nav-simple-dropdown a:hover {
    background: #f0f4ff;
    color: #0a315b;
}

.hamburger-btn {
    border-color: #e0e3e5;
}

.hamburger-btn span {
    background: #111827;
}

.hero {
    text-align: center;
    padding: 28px 0 18px;
    margin: 0;
    background: transparent;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0;
    font-weight: 500;
    color: #06294e;
    font-family: "Google Sans", sans-serif;
}

.hero p {
    margin: 0 auto;
    max-width: 780px;
    color: #3f5b7a;
    font-size: 1.125rem;
    line-height: 1.35;
}

.tool-policy-banner,
.tool-detect-hint,
.tool-status-note {
    background: #ffffff;
    border: 1px solid #e0e3e5;
    border-radius: 10px;
    color: #06294e;
}

.translator-card {
    gap: 16px;
    margin-top: 16px;
}

.translator-box {
    background: #ffffff;
    border: 1px solid #e0e3e5;
    border-radius: 14px;
}

.box-bar {
    min-height: 52px;
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #e0e3e5;
}

.lang-tab {
    color: #5d748d;
    border-bottom-width: 2px;
}

.lang-tab.is-active {
    color: #06294e;
    border-bottom-color: #0a315b;
}

.lexi-input,
.lexi-output {
    min-height: 170px;
    padding: 18px 18px 14px;
    font-size: 16px;
    line-height: 1.55;
    color: #06294e;
    background: #ffffff;
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #5d748d;
}

.box-footer {
    padding: 14px 16px 16px;
    background: #ffffff;
    border-top: 1px solid #e0e3e5;
}

.char-count {
    color: #5d748d;
}

.btn-primary {
    background: #0a315b !important;
    border: 1px solid #0a315b !important;
    color: #f1f4f8 !important;
    border-radius: 4px !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled),
.btn-primary:active:not(:disabled) {
    background: #06294e !important;
    border-color: #06294e !important;
}

.icon-btn {
    background: #e7eef6;
    border: 1px solid #d7e1ea;
    color: #06294e;
    border-radius: 4px;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.icon-btn:active {
    background: #dfe9f3;
    border-color: #c8d5e1;
    color: #06294e;
}

.listen-btn.is-active,
.listen-btn.is-active:hover {
    background: #0a315b;
    border-color: #0a315b;
    color: #f1f4f8;
}

.swap-btn {
    border: 1px solid #e0e3e5;
    background: #ffffff;
    color: #0a315b;
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: #e7eef6;
    border-color: #c8d5e1;
    color: #0a315b;
}

.content-block {
    margin-top: 72px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.content-block h2 {
    text-align: left;
    margin: 0 0 14px;
    padding: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #06294e;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-family: "Google Sans", sans-serif;
}

.content-card {
    background: #f5f9f9;
    border: 1px solid #e0e3e5;
    border-radius: 4px;
    padding: 20px 22px;
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card td {
    color: #06294e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.content-card table {
    border: 1px solid #e0e3e5 !important;
    border-radius: 4px !important;
    background: #ffffff !important;
}

.content-card thead tr {
    background: #f5f9f9 !important;
}

.content-card th,
.content-card td {
    border-right: 1px solid #e0e3e5 !important;
    border-bottom: 1px solid #e0e3e5 !important;
}

.content-card th {
    color: #06294e;
    font-size: 0.875rem;
}

.content-card td,
.content-card tbody tr:nth-child(even) td,
.content-card tbody tr:hover td {
    background: #ffffff !important;
}

.content-card ul li::marker {
    color: #0a315b;
}

.content-card ol li::before {
    background: #e7eef6;
    color: #0a315b;
}

.related-tool-card,
.faq-item {
    background: #f5f9f9;
    border: 1px solid #e0e3e5;
    border-radius: 4px;
}

.related-tool-card:hover {
    border-color: #c8d5e1;
}

.faq-question {
    color: #06294e;
}

.faq-answer {
    color: #3f5b7a;
}

.footer {
    background: #ffffff;
    border-top: 1px solid #e0e3e5;
}

@media (max-width: 768px) {
    .nav-drawer-overlay {
        position: fixed !important;
        inset: 0 !important;
        z-index: 998 !important;
        display: block !important;
        border: 0 !important;
        background: rgba(15, 23, 42, 0.34) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.2s ease, visibility 0.2s ease !important;
    }

    body.nav-drawer-open .nav-drawer-overlay {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .nav-links {
        background: #ffffff;
        border-bottom: 1px solid #e0e3e5;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .nav-mega-menu,
    .nav-simple-dropdown {
        background: #f8f9fb;
        border: none;
        box-shadow: none;
    }
}

/* Final preview: ChatGPT Translate inspired tool template */
body {
    background: #000000;
    color: #ffffff;
    font-family: "Google Sans", sans-serif;
}

.navbar {
    background: #1f1f1f;
    border-bottom: 0;
    backdrop-filter: none;
}

.nav-inner {
    max-width: 1280px;
    padding: 18px 24px;
}

.nav-logo,
.nav-links > a,
.nav-dropdown-btn {
    color: #ffffff;
}

.nav-links > a:hover,
.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.nav-simple-dropdown {
    background: #1f1f1f;
    border: 1px solid #343434;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.nav-simple-dropdown a {
    color: #f3f4f6;
}

.nav-simple-dropdown a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
}

.page-shell {
    max-width: 1280px;
    background: transparent;
    padding: 26px 24px 56px;
}

#lexi-tool {
    max-width: 1120px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 88px 0 42px;
    margin: 0;
    background: transparent;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 500;
    color: #0a315b;
    font-family: "Google Sans", sans-serif;
}

.hero p {
    max-width: 780px;
    margin: 0 auto;
    color: #a3a3a3;
    font-size: 1.05rem;
    line-height: 1.6;
}

.tool-policy-banner,
.tool-detect-hint,
.tool-status-note {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #d4d4d4;
}

.tool-policy-usage,
.tool-detect-copy,
.char-count {
    color: #9ca3af;
}

.translator-card {
    gap: 28px;
    margin-top: 10px;
}

.translator-box {
    background: #171717;
    border: 1px solid #2f2f2f;
    border-radius: 28px;
    box-shadow: none;
}

.box-bar {
    min-height: 52px;
    padding: 0 18px;
    background: transparent;
    border-bottom: 1px solid #2a2a2a;
}

.lang-tab {
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    border-bottom-width: 0;
}

.lang-tab.is-active {
    color: #ffffff;
    border-bottom-color: transparent;
}

.box-body,
.lexi-input,
.lexi-output {
    min-height: 194px;
}

.lexi-input,
.lexi-output {
    background: transparent;
    color: #ffffff;
    padding: 22px;
    font-size: 1rem;
    line-height: 1.65;
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #8f8f8f;
}

.lexi-output {
    background: #3d3d3d;
}

.box-footer {
    background: transparent;
    border-top: 1px solid #2a2a2a;
    padding: 14px 18px 18px;
}

.btn-primary {
    background: #4a4a4a !important;
    border: 1px solid #4a4a4a !important;
    color: #f9fafb !important;
    border-radius: 14px !important;
    padding: 11px 18px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled),
.btn-primary:active:not(:disabled) {
    background: #5a5a5a !important;
    border-color: #5a5a5a !important;
}

.icon-btn {
    background: transparent;
    border: 1px solid #3a3a3a;
    color: #d4d4d4;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 13.5px;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.icon-btn:active {
    background: rgba(255,255,255,0.06);
    border-color: #4b4b4b;
    color: #ffffff;
}

.listen-btn.is-active,
.listen-btn.is-active:hover {
    background: rgba(255,255,255,0.08);
    border-color: #4f4f4f;
    color: #ffffff;
}

.swap-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid #3a3a3a;
    background: #111111;
    color: #d4d4d4;
    box-shadow: none;
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: rgba(255,255,255,0.06);
    border-color: #4b4b4b;
    color: #ffffff;
}

.tool-related-links {
    margin-top: 18px;
}

.tool-related-label {
    padding: 0;
    min-height: 0;
    background: transparent;
    color: #9ca3af;
}

.tool-related-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: #f3f4f6;
}

.tool-related-chip:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
}

.content-block {
    margin-top: 56px;
}

.content-block h2 {
    color: #374151;
    font-family: "Google Sans", sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.content-block {
    text-align: center;
}

.content-card,
.faq-list,
.related-tools {
    text-align: left;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: none;
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card td {
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.7;
}

.content-card th {
    color: #374151;
    font-size: 0.9rem;
}

.content-card table {
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

.content-card thead tr {
    background: #f8fafc !important;
}

.content-card th,
.content-card td {
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.content-card td,
.content-card tbody tr:nth-child(even) td,
.content-card tbody tr:hover td {
    background: #ffffff !important;
}

.related-tool-card,
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: none;
}

.related-tool-card-title,
.faq-question {
    color: #374151;
}

.related-tool-card-cta,
.faq-answer {
    color: #4b5563;
}

.footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer,
.footer a,
.footer-logo,
.footer-text,
.footer-links a {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .nav-links {
        background: #1f1f1f;
        border-bottom: 1px solid #333333;
        box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    }

    .nav-mega-menu,
    .nav-simple-dropdown {
        background: #141414;
        border: 1px solid #333333;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding: 16px 14px 42px;
    }

    .hero {
        text-align: left;
        padding: 52px 0 28px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }

    .hero p {
        font-size: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .translator-card {
        gap: 14px;
    }

    .translator-box,
    .content-card,
    .related-tool-card,
    .faq-item {
        border-radius: 16px;
    }

    .box-body,
    .lexi-input,
    .lexi-output {
        min-height: 170px;
    }

    .content-block h2 {
        font-size: 1.45rem;
    }
}

/* Web-app style pass */
body {
    font-family: "Google Sans", sans-serif;
background: #ffffff;
    color: #374151;
}

.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: saturate(180%) blur(12px);
}

.nav-inner {
    max-width: 1280px;
    padding: 14px 20px;
}

.nav-logo,
.nav-links > a,
.nav-dropdown-btn {
    font-family: "Google Sans", sans-serif;
    color: #374151;
}

.nav-links > a,
.nav-dropdown-btn {
    font-size: 13.5px;
    font-weight: 500;
}

.page-shell {
    max-width: 1280px;
    padding: 22px 20px 48px;
    background: transparent;
}

#lexi-tool {
    max-width: 1180px;
    margin: 0 auto;
}

.hero {
    text-align: left;
    padding: 8px 0 14px;
    margin: 0 0 12px;
}

.hero h1 {
    font-family: "Google Sans", sans-serif;
color: #2F5F9C;
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 10px;
}

.hero p {
    max-width: none;
    margin: 0;
    color: #667085;
    font-family: "Google Sans", sans-serif;
font-size: 15px;
    line-height: 1.6;
}

.tool-policy-banner,
.tool-detect-hint {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.translator-card {
    gap: 18px;
    margin-top: 16px;
}

.translator-box {
    background: #ffffff;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.box-bar {
    min-height: 48px;
    padding: 0 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #edf1f5;
}

.lang-tab {
    font-family: "Google Sans", sans-serif;
font-size: 13px;
    font-weight: 500;
    color: #667085;
}

.lang-tab.is-active {
    color: #374151;
}

.box-body,
.lexi-input,
.lexi-output {
    min-height: 200px;
}

.lexi-input,
.lexi-output {
    padding: 18px 18px 16px;
    font-family: "Google Sans", sans-serif;
font-size: 15px;
    line-height: 1.65;
    color: #374151;
    background: #ffffff;
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #98a2b3;
}

.lexi-output {
    background: linear-gradient(180deg, #fafbfd 0%, #f1f5f9 100%);
}

.box-footer {
    padding: 12px 16px 16px;
    background: #ffffff;
    border-top: 1px solid #edf1f5;
}

.char-count {
    font-family: "Google Sans", sans-serif;
font-size: 12px;
    color: #667085;
}

.btn-primary {
    background: #2F5F9C !important;
    border: 1px solid #2F5F9C !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    font-family: "Google Sans", sans-serif;
font-size: 13.5px !important;
    font-weight: 500 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12) !important;
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus-visible:not(:disabled),
.btn-primary:active:not(:disabled) {
    background: #1E3F6D !important;
    border-color: #1E3F6D !important;
}

.icon-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d0d5dd;
    color: #344054;
    border-radius: 12px;
    min-height: 42px;
    min-width: 42px;
    padding: 10px;
    font-family: "Google Sans", sans-serif;
font-size: 13px;
    font-weight: 500;
    box-shadow:
        0 6px 14px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.icon-btn span {
    display: none;
}

.icon-btn:hover,
.icon-btn:focus-visible,
.icon-btn:active {
    background: #f9fafb;
    border-color: #c7ced8;
    color: #374151;
}

.listen-btn.is-active,
.listen-btn.is-active:hover {
    background: #f3f4f6;
    border-color: #d0d5dd;
    color: #374151;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d0d5dd;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #667085;
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.swap-btn:hover,
.swap-btn:hover:not(:disabled),
.swap-btn:focus-visible,
.swap-btn:active {
    background: #f9fafb;
    border-color: #c7ced8;
    color: #374151;
}

.tool-related-label {
    color: #667085;
    font-family: "Google Sans", sans-serif;
font-size: 12px;
}

.tool-related-chip {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    color: #374151;
    font-family: "Google Sans", sans-serif;
font-size: 12.5px;
    font-weight: 500;
    padding: 8px 13px;
}

.content-block {
    margin-top: 44px;
}

.content-block h2 {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 16px;
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(47, 95, 156, 0.18) 0%, rgba(47, 95, 156, 0.1) 28%, #ffffff 72%, #ffffff 100%);
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    color: #374151;
    font-family: "Google Sans", sans-serif;
font-size: 24.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-align: left;
}

.content-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.025);
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card td {
    color: #344054;
    font-family: "Google Sans", sans-serif;
font-size: 15px;
    line-height: 1.7;
}

.content-card th {
    color: #374151;
    font-family: "Google Sans", sans-serif;
font-size: 13.5px;
    font-weight: 500;
}

.content-card table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.content-card thead tr {
    background: #f8fafc !important;
}

.content-card th,
.content-card td {
    border-right: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.content-card td,
.content-card tbody tr:nth-child(even) td,
.content-card tbody tr:hover td {
    background: #ffffff !important;
}

.content-card th:last-child,
.content-card td:last-child {
    border-right: 0 !important;
}

.content-card tbody tr:last-child td {
    border-bottom: 0 !important;
}

.content-card ul li::marker {
    color: #374151;
}

.content-card ol li::before {
    background: #eef2f6;
    color: #374151;
}

.related-tool-card,
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.025);
}

.related-tool-card-title,
.faq-question {
    color: #374151;
    font-family: "Google Sans", sans-serif;
}

.related-tool-card-cta,
.faq-answer {
    color: #667085;
    font-family: "Google Sans", sans-serif;
}

.faq-question {
    font-size: 15px;
}

.footer {
    background: transparent;
    border-top: 1px solid #e5e7eb;
}

.footer,
.footer a,
.footer-logo,
.footer-text,
.footer-links a {
    color: #475467;
    font-family: "Google Sans", sans-serif;
}

@media (max-width: 768px) {
    .nav-links {
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .nav-simple-dropdown,
    .nav-mega-menu {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: none;
    }
}

@media (max-width: 600px) {
    .page-shell {
        padding: 16px 14px 38px;
    }

    .hero {
        padding: 6px 0 10px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 15px;
    }

    .translator-box,
    .content-card,
    .related-tool-card,
    .faq-item {
        border-radius: 16px;
    }

    .content-block h2 {
        font-size: 24.5px;
        padding: 9px 14px;
    }
}

/* Tool page preview pass */
body {
    background: #f6f8fb;
}

.page-shell {
    padding-top: 20px;
    padding-bottom: 48px;
}

.hero {
    padding: 18px 0 10px;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.6;
    color: #52657c;
}

.tool-policy-banner,
.tool-detect-hint {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
}

.tool-policy-banner {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    margin: 0 auto 14px;
}

.tool-policy-usage {
    font-family: "Google Sans", sans-serif;
font-size: 13px;
    font-weight: 500;
    color: #475467;
}

.tool-policy-usage strong {
    color: #374151;
    font-weight: 500;
}

.tool-policy-reset-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    color: #667085;
    font-family: "Google Sans", sans-serif;
font-size: 12px;
    font-weight: 500;
}

.tool-policy-reset-icon {
    color: #2F5F9C;
}

@media (max-width: 600px) {
    .tool-policy-banner {
        width: 100%;
        max-width: none;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .tool-policy-usage {
        font-size: 12px;
        white-space: nowrap;
        flex: 1 1 auto;
        min-width: 0;
    }

    .tool-policy-reset-pill {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        font-size: 11.5px;
        white-space: nowrap;
    }
}

.translator-card {
    gap: 18px;
    margin-top: 18px;
}

.translator-box {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.box-bar {
    min-height: 50px;
    padding: 0 18px;
    border-bottom: 1px solid #e5eaf0;
}

.lang-tab {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
}

.lang-tab.is-active {
    color: #374151;
}

.box-body,
.lexi-input,
.lexi-output {
    min-height: 190px;
}

.lexi-input,
.lexi-output {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.65;
}

.lexi-output {
    background: linear-gradient(180deg, #fafbfd 0%, #f5f7fb 100%);
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #7b8794;
}

.box-footer {
    padding: 14px 18px 18px;
}

.char-count {
    font-size: 12.5px;
    color: #6b7a90;
}

.btn-primary {
    padding: 11px 18px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.icon-btn {
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13.5px;
}

.swap-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.tool-related-links {
    margin-top: 18px;
}

.tool-related-label {
    padding: 0;
    min-height: 0;
    background: transparent;
    font-size: 12px;
    color: #475569;
}

.tool-related-list {
    gap: 8px;
}

.tool-related-chip {
    background: #ffffff;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 14px;
}

.content-block {
    margin-top: 56px;
}

.content-block h2 {
    margin-bottom: 12px;
    font-size: 1.65rem;
    line-height: 1.15;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.03);
}

.content-card p,
.content-card ul,
.content-card ol,
.content-card td {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e293b;
}

.content-card th {
    color: #374151;
    font-size: 0.9rem;
}

.content-card table {
    margin: 18px 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.content-card thead tr {
    background: #f8fafc !important;
}

.related-tools {
    gap: 12px;
}

.related-tool-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    min-height: 88px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.related-tool-card-title {
    color: #374151;
}

.related-tool-card-cta {
    color: #64748b;
}

.faq-list {
    margin-top: 24px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.faq-question {
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}

.faq-answer {
    color: #475569;
}

@media (max-width: 900px) {
    .translator-card {
        gap: 14px;
    }

    .content-card {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    body {
        background: #ffffff;
    }

    .page-shell {
        padding: 16px 14px 36px;
    }

    .hero {
        text-align: left;
        padding: 10px 0 6px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .translator-box {
        border-radius: 16px;
    }

    .box-body,
    .lexi-input,
    .lexi-output {
        min-height: 170px;
    }

    .content-block {
        margin-top: 42px;
    }

    .content-block h2 {
        font-size: 1.42rem;
    }

    .content-card,
    .faq-item,
    .related-tool-card {
        border-radius: 14px;
    }
}

/* Final typography lock */
.hero h1 {
    font-size: clamp(22px, 3vw, 28px) !important;
}

.hero p,
.lexi-input,
.lexi-output,
.content-card p,
.content-card ul,
.content-card ol,
.content-card td,
.faq-question,
.faq-answer {
    font-size: clamp(14px, 1.35vw, 15px) !important;
}

.content-block h2 {
    font-size: clamp(18px, 2.25vw, 22px) !important;
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 8px 14px;
}

body {
    background: #ffffff !important;
}

/* Final policy strip lock */
.tool-policy-banner {
    width: max-content !important;
    max-width: none !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 14px !important;
    padding: 9px 12px !important;
    white-space: nowrap !important;
}

.tool-policy-usage {
    flex: 0 0 auto !important;
    min-width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 12.5px !important;
}

.tool-policy-reset-pill {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
    padding: 4px 8px !important;
}

@media (max-width: 600px) {
    .tool-policy-banner {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: space-between !important;
        gap: 6px !important;
        margin: 0 auto 14px !important;
        padding: 8px 10px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .tool-policy-usage {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    .tool-policy-reset-pill {
        flex: 0 0 auto !important;
        font-size: 10px !important;
        padding: 4px 6px !important;
        max-width: 50% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Final related chips lock */
.tool-related-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 18px !important;
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid #dbe5f0 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.tool-related-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Google Sans", sans-serif;
font-size: 13px !important;
    font-weight: 500 !important;
    color: #2F5F9C !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.tool-related-label-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: rgba(47, 95, 156, 0.10) !important;
    font-size: 12px !important;
}

.tool-related-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
}

.tool-related-chip {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 9px 14px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid #d8e2ee !important;
    color: #1f2937 !important;
    font-family: "Google Sans", sans-serif;
font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
}

.tool-related-chip:hover {
    background: #ffffff !important;
    border-color: #9cb2cb !important;
    color: #2F5F9C !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 600px) {
    .tool-related-links {
        gap: 10px !important;
        padding: 12px !important;
    }

    .tool-related-list {
        flex-wrap: wrap !important;
        gap: 6px !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .tool-related-chip {
        flex: 0 1 auto !important;
        min-height: 34px !important;
        padding: 6px 10px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }

    .tool-related-label {
        font-size: 12px !important;
    }

    .content-block h2 {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }

    .content-card p,
    .content-card ul,
    .content-card ol,
    .content-card td,
    .faq-question,
    .faq-answer {
        font-size: 15px !important;
    }
}

/* Attached card heading style */
.content-block h2 {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 -1px 0 !important;
    padding: 14px 18px !important;
    background: #2F5F9C !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    color: #ffffff !important;
    font-family: "Google Sans", sans-serif;
font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
}

.content-block h2::after {
    content: none !important;
}

.content-block h2::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0) 100%);
}

.content-block .content-card,
.content-block .faq-list {
    margin-top: 0 !important;
}

@media (max-width: 600px) {
    .content-block h2 {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
}

.content-block .content-card {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.content-block .faq-list {
    background: transparent;
    border: 0;
    border-top: 0;
    border-radius: 0;
    padding: 10px 0 0;
}

.content-block .faq-item {
    border-radius: 10px;
    box-shadow: none;
    background: transparent !important;
    border: 0 !important;
}

.faq-question {
    background: #f6f9fc !important;
    border: 1px solid #dfe7f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
}

.faq-answer {
    background: transparent !important;
}

@media (max-width: 600px) {
    .hero p,
    .content-card p,
    .content-card ul,
    .content-card ol,
    .content-card td,
    .faq-question,
    .faq-answer {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }
}

.faq-question,
.faq-answer {
    font-size: 13px !important;
    font-weight: 500 !important;
}

.content-card,
.related-tool-card,
.faq-item {
    border-radius: 10px !important;
}

.translator-card,
.translator-panel,
.translator-box,
.box-body,
.box-header,
.lexi-output-wrap,
.lexi-output,
.lexi-input,
.translator-toolbar,
.swap-btn,
.btn-primary,
.icon-btn {
    border-radius: 10px !important;
}

/* Final tool visibility + 3D pass */
.translator-box {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
    border: 1px solid #c7d4e2 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(199, 212, 226, 0.32) !important;
}

.box-bar {
    background: linear-gradient(180deg, #ffffff 0%, #edf3f9 100%) !important;
    border-bottom: 1px solid #d6e0ea !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.box-body,
.lexi-input {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

.lexi-output-wrap,
.lexi-output {
    background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%) !important;
}

.swap-btn {
    border: 1px solid #c9d5e2 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(201, 213, 226, 0.4) !important;
}

.btn-primary.translate-btn {
    background: linear-gradient(180deg, #3a6cae 0%, #2F5F9C 62%, #254d80 100%) !important;
    border: 1px solid #274f82 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -2px 0 rgba(18, 39, 66, 0.24) !important;
}

.icon-btn {
    border: 1px solid #d0d9e3 !important;
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(208, 217, 227, 0.42) !important;
}

.translator-box,
.translator-box.is-input,
.translator-box.is-output {
    box-shadow: none !important;
}

.translator-box.is-output .box-bar,
.translator-box.is-output .box-body,
.translator-box.is-output .lexi-output-wrap,
.translator-box.is-output .lexi-output,
.translator-box.is-output .box-footer {
    border-radius: 0 !important;
}

.translator-box.is-output {
    border-radius: 10px !important;
}

.translator-box .box-footer {
    min-height: 74px !important;
    padding: 14px 18px 18px !important;
    align-items: center !important;
}

.translator-box {
    background: #ffffff !important;
    border: 1px solid #8eafcf !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.98),
        inset 0 -1px 0 rgba(195, 210, 227, 0.52),
        inset 1px 0 0 rgba(255, 255, 255, 0.72),
        inset -1px 0 0 rgba(195, 210, 227, 0.3) !important;
}

.box-bar {
    background: #f8fbff !important;
    border-bottom: 1px solid #d3e1ef !important;
    min-height: 50px !important;
    padding: 0 18px !important;
    display: flex !important;
    align-items: center !important;
}

.box-body,
.lexi-input,
.lexi-output,
.lexi-output-wrap,
.translator-toolbar {
    background-color: #ffffff !important;
}

.lexi-output-wrap {
    background: #f4f8fd !important;
    border-top: 1px solid #d6e2ef !important;
}

.box-body {
    padding: 0 !important;
}

.lexi-input,
.lexi-output {
    padding: 20px 20px 18px !important;
    line-height: 1.6 !important;
}

.translator-box .footer-left,
.translator-box .footer-right {
    align-items: center !important;
    gap: 10px !important;
}

.char-count {
    font-size: 12px !important;
    color: #6b7a90 !important;
}

.lang-tab.lang-label {
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
    color: #173b61 !important;
}

.btn-primary.translate-btn {
    min-width: 130px !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    background: #2F5F9C !important;
    border: 1px solid #274f82 !important;
}

.icon-btn {
    min-width: 44px !important;
    min-height: 42px !important;
    border: 1px solid #d7e2ee !important;
    background: #fbfdff !important;
    color: #55708f !important;
}

.translator-box.is-output .icon-btn,
.translator-box.is-output .char-count {
    color: #5f7792 !important;
}

.tool-hero-wrap {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 28px !important;
    padding: 18px 22px 22px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    isolation: isolate !important;
}

.tool-hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    left: 50%;
    right: auto;
    width: 100dvw;
    max-width: 100dvw;
    transform: translateX(-50%);
    background: #f5f9fd !important;
    border-top: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    z-index: -1;
}

.tool-hero-wrap::after {
    content: none;
}

.tool-breadcrumb-strip {
    width: 100dvw;
    max-width: 100dvw;
    margin: -22px 0 0 calc(50% - 50dvw);
    padding: 12px 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #f7faff 0%, #fbfdff 100%) !important;
    border-bottom: 1px solid #dde7f2;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

html,
body {
    overflow-x: clip;
}

.tool-breadcrumb-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 42px;
    font-family: "Google Sans", sans-serif;
font-size: 12px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
}

.tool-breadcrumb-inner a {
    color: #2F5F9C;
    text-decoration: none;
}

.tool-breadcrumb-inner .is-current {
    color: #374151;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-hero-wrap .hero {
    margin: 10px 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.tool-hero-wrap .tool-policy-banner,
.tool-hero-wrap .tool-detect-hint {
    margin-bottom: 14px !important;
}

.tool-hero-wrap .translator-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tool-hero-wrap .tool-related-links,
.tool-hero-wrap .tool-status-note {
    margin-top: 18px !important;
    margin-bottom: 14px !important;
}

.tool-hero-wrap + .content-block {
    margin-top: 34px !important;
}

@media (min-width: 701px) {
    .swap-btn {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 6 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

@media (min-width: 701px) and (max-width: 1024px) {
    .page-shell {
        max-width: 100% !important;
        padding: 20px 18px 42px !important;
    }

    .nav-inner {
        min-height: 70px !important;
        padding: 0 18px !important;
        gap: 12px !important;
    }

    .nav-logo {
        font-size: 1.12rem !important;
    }

    .nav-links {
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 38px !important;
        padding: 9px 10px !important;
        font-size: 12.5px !important;
        border-radius: 10px !important;
    }

    .nav-btn-icon {
        margin-right: 6px !important;
    }

    .nav-btn-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .nav-simple-dropdown {
        width: min(820px, calc(100vw - 36px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 16px !important;
        padding: 18px !important;
    }

    .nav-simple-dropdown a {
        min-height: 50px !important;
        padding: 9px 10px !important;
        font-size: 14px !important;
    }

    .hero {
        padding: 6px 0 12px !important;
    }

    .hero h1 {
        font-size: clamp(26px, 4vw, 32px) !important;
    }

    .hero p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }

    .tool-hero-wrap {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    .translator-card {
        gap: 14px !important;
    }

    .translator-box {
        min-width: 0 !important;
    }

    .box-bar {
        min-height: 44px !important;
        padding: 0 14px !important;
    }

    .lang-tab {
        font-size: 12.5px !important;
    }

    .box-body {
        min-height: 220px !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 16px 16px 12px !important;
        font-size: 14px !important;
    }

    .translator-box .box-footer {
        height: 44px !important;
        padding: 0 12px !important;
    }

    .translate-btn,
    .btn-primary.translate-btn {
        min-height: 36px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    .icon-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }

    .tool-policy-banner {
        width: auto !important;
        max-width: 100% !important;
        padding: 7px 10px !important;
        gap: 6px !important;
    }

    .tool-related-links {
        gap: 10px !important;
    }

    .tool-related-list {
        gap: 8px !important;
    }

    .tool-related-chip {
        min-height: 34px !important;
        padding: 7px 14px !important;
        font-size: 13px !important;
    }

    .footer-inner {
        padding: 22px 18px !important;
        gap: 12px 18px !important;
    }
}

/* Final adaptive scaling across devices */
.nav-logo {
    font-size: clamp(1.02rem, 0.92rem + 0.4vw, 1.2rem) !important;
}

.nav-links > a,
.nav-dropdown-btn {
    font-size: clamp(12px, 11px + 0.22vw, 14px) !important;
}

.nav-simple-dropdown {
    width: min(980px, calc(100vw - 40px)) !important;
}

.nav-simple-dropdown a {
    font-size: clamp(13px, 12px + 0.18vw, 15px) !important;
}

.hero h1 {
    font-size: clamp(24px, 1.2rem + 1.5vw, 32px) !important;
}

.hero p {
    font-size: clamp(14px, 13px + 0.22vw, 15px) !important;
}

.lexi-input,
.lexi-output {
    font-size: clamp(14px, 13px + 0.14vw, 15px) !important;
}

.tool-related-chip {
    font-size: clamp(12px, 11px + 0.16vw, 13.5px) !important;
}

@media (min-width: 1200px) {
    .nav-inner {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .nav-simple-dropdown {
        width: min(1040px, calc(100vw - 56px)) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1025px) and (max-width: 1199px) {
    .nav-inner {
        padding-left: 22px !important;
        padding-right: 22px !important;
    }

    .nav-links {
        gap: 8px !important;
    }

    .nav-simple-dropdown {
        width: min(920px, calc(100vw - 42px)) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: 20px !important;
    }

    .translator-card {
        gap: 16px !important;
    }
}

@media (min-width: 821px) and (max-width: 1024px) {
    .nav-inner {
        min-height: 68px !important;
    }

    .nav-simple-dropdown {
        width: min(800px, calc(100vw - 34px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .translator-card {
        gap: 14px !important;
    }

    .box-body {
        min-height: 210px !important;
    }
}

@media (min-width: 701px) and (max-width: 820px) {
    .page-shell {
        padding: 18px 16px 36px !important;
    }

    .nav-inner {
        min-height: 66px !important;
        padding: 0 14px !important;
        gap: 8px !important;
    }

    .nav-links {
        gap: 4px !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 36px !important;
        padding: 8px 8px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
    }

    .nav-btn-icon {
        margin-right: 5px !important;
    }

    .nav-btn-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .nav-simple-dropdown {
        width: min(720px, calc(100vw - 28px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 16px !important;
        gap: 8px 14px !important;
    }

    .nav-simple-dropdown a {
        min-height: 46px !important;
        padding: 8px 9px !important;
        font-size: 13px !important;
    }

    .nav-link-emoji {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
    }

    .nav-link-emoji svg {
        width: 15px !important;
        height: 15px !important;
    }

    .tool-hero-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .translator-card {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        align-self: auto !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }

    .box-body {
        min-height: 180px !important;
    }

    .translator-box .box-footer {
        height: 42px !important;
    }
}

@media (max-width: 700px) {
    .nav-logo {
        font-size: 1rem !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        font-size: 13px !important;
    }
}

@media (max-width: 760px) {
    .hamburger-btn {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.985) !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
        max-height: 78vh !important;
        overflow-y: auto !important;
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links:not(.is-open) {
        display: none !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .nav-simple-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }
}

@media (max-width: 600px) {
    .tool-breadcrumb-strip {
        width: 100dvw;
        max-width: 100dvw;
        margin: -16px 0 0 calc(50% - 50dvw);
        padding: 10px 14px;
    }

    .tool-breadcrumb-inner {
        font-size: 12px;
        gap: 6px;
    }

    .tool-hero-wrap {
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 22px !important;
        padding: 14px !important;
    }

    .tool-hero-wrap .hero {
        padding: 0 !important;
        border-radius: 0 !important;
    }

    .tool-hero-wrap + .content-block {
        margin-top: 24px !important;
    }
}


/* Clean split translator layout */
.translator-card {
    gap: 0 !important;
    margin-top: 18px !important;
    align-items: stretch !important;
}

.translator-box {
    background: #ffffff !important;
    border: 1px solid #9cb2cb !important;
    border-radius: 20px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10), 0 3px 10px rgba(47, 95, 156, 0.08) !important;
    overflow: hidden !important;
}

.translator-box.is-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.translator-box.is-output {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.box-bar {
    padding: 0 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e3e8ef !important;
}

.lang-tab.lang-label {
    color: #1f2937 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.box-body {
    min-height: 260px !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.lexi-input,
.lexi-output {
    padding: 26px 20px 18px !important;
    font-size: clamp(15px, 0.24vw + 14px, 16px) !important;
    line-height: 1.6 !important;
    background: transparent !important;
    color: #334155 !important;
}

.lexi-input::placeholder,
.lexi-output.is-empty {
    color: #94a3b8 !important;
}

.lexi-output-wrap {
    background: #f8fbff !important;
    border-top: 0 !important;
}

.translator-box .box-footer {
    padding: 0 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #e3e8ef !important;
    align-items: center !important;
}

.translator-box .footer-left,
.translator-box .footer-right {
    gap: 10px !important;
    align-items: center !important;
}

.char-count,
.output-count {
    color: #64748b !important;
    font-size: 12px !important;
}

.btn-primary.translate-btn {
    min-width: 136px !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    border: 1px solid #274f82 !important;
    background: linear-gradient(180deg, #3a6dac 0%, #2F5F9C 58%, #274f82 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(20, 44, 76, 0.28) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.btn-primary.translate-btn svg {
    width: 16px !important;
    height: 16px !important;
}

.icon-btn {
    min-width: 34px !important;
    min-height: 34px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border: 1px solid #c8d7e8 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8fd 100%) !important;
    color: #2F5F9C !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), inset 0 -1px 0 rgba(180, 198, 220, 0.42) !important;
}

.icon-btn svg {
    width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
}

.icon-btn svg path,
.icon-btn svg circle,
.icon-btn svg rect,
.icon-btn svg line,
.icon-btn svg polyline,
.icon-btn svg polygon {
    stroke: currentColor !important;
    fill: none !important;
}

.clear-btn span,
.listen-btn span,
.share-btn span,
.copy-btn span {
    display: none !important;
}

.swap-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    border: 1px solid #9cb2cb !important;
    background: #ffffff !important;
    color: #4b5563 !important;
    box-shadow: none !important;
    z-index: 7 !important;
}

.swap-btn svg {
    width: 18px !important;
    height: 18px !important;
}

@media (min-width: 701px) {
    .swap-btn {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

@media (max-width: 700px) {
    .tool-hero-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        border-radius: 16px !important;
        width: 100% !important;
    }

    .translator-box.is-input {
        order: 1 !important;
    }

    .swap-btn {
        position: relative !important;
        order: 2 !important;
        top: auto !important;
        left: auto !important;
        align-self: center !important;
        transform: none !important;
        margin: 4px 0 6px !important;
        z-index: 2 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 999px !important;
        border: 1px solid #9cb2cb !important;
        background: #ffffff !important;
        color: #2F5F9C !important;
        box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06) !important;
    }

    .translator-box.is-output {
        order: 3 !important;
    }

    .box-bar {
        padding: 0 16px !important;
    }

    .box-body {
        min-height: 220px !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 20px 16px 14px !important;
    }

    .translator-box .box-footer {
        padding: 0 10px !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: none !important;
    }
}

/* Final compact height */
.box-body {
    min-height: 240px !important;
}

.lexi-input,
.lexi-output {
    padding: 16px 18px 12px !important;
}

.translator-box .box-footer {
    padding: 0 14px !important;
}

@media (max-width: 700px) {
    .box-body {
        min-height: 165px !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 14px 14px 10px !important;
    }

    .translator-box .box-footer {
        padding: 0 12px !important;
    }
}

.translate-btn,
.btn-primary.translate-btn {
    background: #2F5F9C !important;
    border-color: #274f82 !important;
}

.translator-box .box-footer {
    min-height: unset !important;
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 1 !important;
}

.icon-btn {
    min-width: 36px !important;
    min-height: 36px !important;
    width: 36px !important;
    height: 36px !important;
}

.btn-primary.translate-btn {
    min-height: 36px !important;
}

.translator-box.is-input {
    border-top-left-radius: 20px !important;
    border-bottom-left-radius: 20px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.translator-box.is-output {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
}

.translator-box.is-output .box-body,
.translator-box.is-output .lexi-output-wrap,
.translator-box.is-output .lexi-output {
    background: #f3f7fc !important;
}

.translator-box.is-output .icon-btn,
.translator-box.is-output .icon-btn svg,
.translator-box.is-output .icon-btn svg path,
.translator-box.is-output .icon-btn svg circle,
.translator-box.is-output .icon-btn svg rect,
.translator-box.is-output .icon-btn svg line,
.translator-box.is-output .icon-btn svg polyline,
.translator-box.is-output .icon-btn svg polygon,
.translator-box .clear-btn,
.translator-box .clear-btn svg,
.translator-box .clear-btn svg path,
.translator-box .clear-btn svg circle,
.translator-box .clear-btn svg rect,
.translator-box .clear-btn svg line,
.translator-box .clear-btn svg polyline,
.translator-box .clear-btn svg polygon {
    color: #2F5F9C !important;
    stroke: currentColor !important;
}

@media (min-width: 701px) {
    .translator-box.is-input {
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        border-left: 1px solid #9cb2cb !important;
    }
}

@media (max-width: 700px) {
    .translator-box .box-footer {
        height: 42px !important;
        padding: 0 10px !important;
    }

    .translator-box.is-input,
    .translator-box.is-output {
        border-radius: 16px !important;
    }
}

/* Final shared header + footer polish */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid #dbe4ee !important;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04) !important;
}

.nav-inner {
    max-width: 1240px !important;
    margin: 0 auto !important;
    min-height: 74px !important;
    padding: 0 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

.nav-logo {
    color: #374151 !important;
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    text-decoration: none !important;
}

.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.nav-links > a,
.nav-dropdown-btn {
    min-height: 42px !important;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.nav-links > a:hover,
.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    background: #f6f9fc !important;
    color: #374151 !important;
    border-color: #dbe4ee !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.nav-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 8px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.nav-has-dropdown {
    position: relative !important;
}

.nav-simple-dropdown {
    width: min(560px, calc(100vw - 32px)) !important;
    padding: 14px !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
    backdrop-filter: blur(12px) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

.nav-simple-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}

.nav-simple-dropdown a:hover {
    background: #f7fbff !important;
    color: #1e3a5f !important;
    border-color: #d8e6f5 !important;
}

.nav-link-emoji {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    flex: 0 0 18px !important;
    font-size: 14px !important;
    line-height: 1 !important;
}

.hamburger-btn {
    border: 1px solid #dbe4ee !important;
    border-radius: 12px !important;
    background: #ffffff !important;
}

.hamburger-btn:hover {
    background: #f8fafc !important;
    border-color: #cfd9e5 !important;
}

.hamburger-btn span {
    background: #1f2937 !important;
}

.footer {
    margin-top: 48px !important;
    border-top: 1px solid #dbe4ee !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.footer-inner {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 26px 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px 24px !important;
}

.footer .footer-inner > div:first-child,
.footer .footer-inner > div:last-child {
    flex: 1 1 auto !important;
}

.footer .footer-inner > div:first-child div {
    color: #334155 !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-align: left !important;
}

.footer .footer-inner > div:last-child {
    text-align: right !important;
}

.footer .footer-inner > div:last-child > div {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 12px 18px !important;
    font-size: 13.5px !important;
}

.footer .footer-inner a {
    margin-left: 0 !important;
    color: #475569 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: color 0.18s ease !important;
}

.footer .footer-inner a:hover {
    color: #2F5F9C !important;
}

@media (max-width: 980px) {
    .nav-simple-dropdown {
        width: min(480px, calc(100vw - 28px)) !important;
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 700px) {
    .nav-inner {
        min-height: 68px !important;
        padding: 0 16px !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 16px !important;
        right: 16px !important;
        width: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
        gap: 8px !important;
        max-height: 78vh !important;
        overflow-y: auto !important;
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
        min-height: 44px !important;
        padding: 12px 14px !important;
    }

    .nav-simple-dropdown {
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        background: #f8fbff !important;
        border-color: #e3ebf4 !important;
        grid-template-columns: 1fr !important;
    }

    .nav-simple-dropdown a {
        min-height: 38px !important;
        font-size: 13px !important;
        padding: 9px 10px !important;
    }

    .footer {
        margin-top: 36px !important;
    }

    .footer-inner {
        padding: 22px 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .footer .footer-inner > div:first-child,
    .footer .footer-inner > div:last-child {
        width: 100% !important;
        text-align: center !important;
    }

    .footer .footer-inner > div:first-child {
        order: 2 !important;
    }

    .footer .footer-inner > div:last-child {
        order: 1 !important;
    }

    .footer .footer-inner > div:first-child div {
        text-align: center !important;
    }

    .footer .footer-inner > div:last-child > div {
        justify-content: center !important;
        gap: 10px 14px !important;
    }

    .nav-has-dropdown {
        position: static !important;
    }

    .nav-simple-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    .nav-simple-dropdown a {
        min-height: 40px !important;
        padding: 10px 12px !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
    }

    .nav-link-emoji {
        width: 20px !important;
        height: 20px !important;
        flex: 0 0 20px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-link-emoji svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (min-width: 701px) {
    .nav-has-dropdown {
        position: relative !important;
    }

    .nav-inner {
        position: relative !important;
    }

    .nav-simple-dropdown {
        position: absolute !important;
        top: calc(100% + 12px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(8px) !important;
        width: min(980px, calc(100vw - 64px)) !important;
        padding: 24px 26px !important;
        border-radius: 18px !important;
        border: 1px solid #d9e3ee !important;
        background: rgba(255, 255, 255, 0.985) !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12) !important;
        backdrop-filter: blur(16px) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 24px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
        z-index: 120 !important;
    }

    .nav-has-dropdown:hover .nav-simple-dropdown,
    .nav-has-dropdown.is-open .nav-simple-dropdown {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .nav-links > .nav-has-dropdown:nth-last-child(2) .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child .nav-simple-dropdown {
        left: auto !important;
        right: 0 !important;
        transform: translateY(8px) !important;
    }

    .nav-links > .nav-has-dropdown:nth-last-child(2):hover .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:nth-last-child(2).is-open .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child:hover .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child.is-open .nav-simple-dropdown {
        transform: translateY(0) !important;
    }

    .nav-simple-dropdown a {
        min-height: 58px !important;
        padding: 8px 10px !important;
        border-radius: 12px !important;
        align-items: center !important;
        gap: 14px !important;
        color: #12385d !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.35 !important;
        white-space: normal !important;
    }

    .nav-simple-dropdown a:hover {
        background: #f8fbff !important;
        border-color: #e0e8f2 !important;
        color: #0f2f4c !important;
    }

    .nav-link-emoji {
        width: 24px !important;
        height: 24px !important;
        flex: 0 0 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 0 !important;
        background: transparent !important;
        border: 0 !important;
        color: #64748b !important;
        opacity: 1 !important;
    }

    .nav-btn-icon svg,
    .nav-link-emoji svg {
        width: 18px !important;
        height: 18px !important;
        display: block !important;
    }

    .nav-btn-icon svg path,
    .nav-btn-icon svg circle,
    .nav-btn-icon svg rect,
    .nav-btn-icon svg line,
    .nav-btn-icon svg polyline,
    .nav-btn-icon svg polygon,
    .nav-link-emoji svg path,
    .nav-link-emoji svg circle,
    .nav-link-emoji svg rect,
    .nav-link-emoji svg line,
    .nav-link-emoji svg polyline,
    .nav-link-emoji svg polygon {
        stroke: currentColor !important;
        fill: none !important;
    }
}

/* Final tool chrome balance: header and footer same visual height */
.box-bar {
    min-height: 54px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.translator-box .box-footer {
    min-height: 54px !important;
    height: 54px !important;
    display: flex !important;
    align-items: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

@media (min-width: 701px) and (max-width: 1024px) {
    .box-bar {
        min-height: 52px !important;
        height: 52px !important;
    }

    .translator-box .box-footer {
        min-height: 52px !important;
        height: 52px !important;
    }
}

@media (max-width: 700px) {
    .box-bar {
        min-height: 50px !important;
        height: 50px !important;
    }

    .translator-box .box-footer {
        min-height: 50px !important;
        height: 50px !important;
    }
}

/* Final medium-screen lock: keep nav readable and tool properly split */
@media (min-width: 760px) and (max-width: 980px) {
    .nav-inner {
        min-height: 64px !important;
        padding: 0 14px !important;
        gap: 8px !important;
    }

    .nav-logo {
        font-size: 0.92rem !important;
    }

    .nav-links {
        gap: 2px !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 34px !important;
        padding: 6px 7px !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    .nav-btn-icon {
        margin-right: 4px !important;
    }

    .nav-btn-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .page-shell {
        padding: 16px 14px 34px !important;
    }

    .tool-hero-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .tool-policy-banner {
        width: fit-content !important;
        max-width: 100% !important;
        padding: 6px 9px !important;
        gap: 6px !important;
    }

    .tool-policy-usage {
        font-size: 13px !important;
    }

    .tool-policy-reset-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
    }

    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .translator-box {
        min-width: 0 !important;
    }

    .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 8 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }

    .box-body {
        min-height: 180px !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 14px 14px 10px !important;
        font-size: 14px !important;
    }

    .box-bar {
        min-height: 48px !important;
        height: 48px !important;
    }

    .translator-box .box-footer {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
    }

    .translate-btn,
    .btn-primary.translate-btn {
        min-height: 34px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .icon-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}

/* ===== Final canonical adaptive system ===== */

/* Large desktop */
@media (min-width: 1280px) {
    .page-shell {
        padding: 22px 24px 48px !important;
    }

    .nav-inner {
        min-height: 72px !important;
        padding: 0 24px !important;
    }

    .nav-links {
        gap: 8px !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 40px !important;
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    .nav-simple-dropdown {
        width: min(1040px, calc(100vw - 56px)) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .translator-card {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
    }

    .box-body {
        min-height: 240px !important;
    }
}

/* Desktop / laptop */
@media (min-width: 1025px) and (max-width: 1279px) {
    .page-shell {
        padding: 20px 18px 42px !important;
    }

    .nav-inner {
        min-height: 70px !important;
        padding: 0 18px !important;
        gap: 10px !important;
    }

    .nav-links {
        gap: 4px !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 38px !important;
        padding: 8px 9px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .nav-simple-dropdown {
        width: min(920px, calc(100vw - 42px)) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        padding: 18px !important;
    }

    .translator-card {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
    }

    .box-body {
        min-height: 210px !important;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .hamburger-btn {
        display: none !important;
    }

    .nav-inner {
        min-height: 66px !important;
        padding: 0 14px !important;
        gap: 8px !important;
    }

    .nav-logo {
        font-size: 0.98rem !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 2px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 34px !important;
        padding: 6px 7px !important;
        font-size: 11px !important;
        line-height: 1.05 !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
    }

    .nav-btn-icon {
        margin-right: 4px !important;
    }

    .nav-btn-icon svg {
        width: 13px !important;
        height: 13px !important;
    }

    .nav-has-dropdown {
        position: relative !important;
    }

    .nav-simple-dropdown {
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) translateY(8px) !important;
        width: min(760px, calc(100vw - 28px)) !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 16px !important;
        gap: 8px 14px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    .nav-has-dropdown:hover .nav-simple-dropdown,
    .nav-has-dropdown.is-open .nav-simple-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }

    .nav-links > .nav-has-dropdown:nth-last-child(2) .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child .nav-simple-dropdown {
        left: auto !important;
        right: 0 !important;
        transform: translateY(8px) !important;
    }

    .nav-links > .nav-has-dropdown:nth-last-child(2):hover .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:nth-last-child(2).is-open .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child:hover .nav-simple-dropdown,
    .nav-links > .nav-has-dropdown:last-child.is-open .nav-simple-dropdown {
        transform: translateY(0) !important;
    }

    .nav-simple-dropdown a {
        min-height: 46px !important;
        padding: 8px 9px !important;
        font-size: 13px !important;
    }

    .page-shell {
        padding: 16px 14px 34px !important;
    }

    .tool-hero-wrap {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .tool-policy-banner {
        width: fit-content !important;
        max-width: 100% !important;
    }

    .translator-card {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0 !important;
        align-items: stretch !important;
    }

    .translator-box.is-input {
        border-top-left-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right-width: 0 !important;
    }

    .translator-box.is-output {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 16px !important;
        border-bottom-right-radius: 16px !important;
        border-left: 1px solid #9cb2cb !important;
    }

    .swap-btn {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }

    .box-bar {
        min-height: 48px !important;
        height: 48px !important;
    }

    .box-body {
        min-height: 180px !important;
    }

    .lexi-input,
    .lexi-output {
        padding: 14px 14px 10px !important;
        font-size: 14px !important;
    }

    .translator-box .box-footer {
        min-height: 48px !important;
        height: 48px !important;
        padding: 0 10px !important;
    }

    .translate-btn,
    .btn-primary.translate-btn {
        min-height: 34px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    .icon-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hamburger-btn {
        display: flex !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        top: calc(100% + 10px) !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 14px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.985) !important;
        border: 1px solid #dbe4ee !important;
        border-radius: 18px !important;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12) !important;
        max-height: 78vh !important;
        overflow-y: auto !important;
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
        font-size: 13px !important;
    }

    .nav-simple-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        margin-top: 8px !important;
        padding: 8px !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        max-height: none !important;
        overflow: visible !important;
        border-radius: 14px !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    .translator-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .translator-box,
    .translator-box.is-input,
    .translator-box.is-output {
        border-radius: 16px !important;
    }

    .swap-btn {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        align-self: center !important;
        transform: none !important;
        margin: 4px 0 6px !important;
    }

    .swap-btn:hover,
    .swap-btn:hover:not(:disabled),
    .swap-btn:focus-visible,
    .swap-btn:active {
        transform: none !important;
    }
}

/* Final swap button rectangle + alignment lock */
.translator-card .swap-btn,
.translator-card .swap-btn.btn,
button.swap-btn {
    width: 44px !important;
    height: 36px !important;
    min-width: 44px !important;
    min-height: 36px !important;
    max-width: 44px !important;
    max-height: 36px !important;
    border-radius: 9px !important;
    aspect-ratio: auto !important;
}

@media (min-width: 481px) {
    .translator-card {
        padding-top: 0 !important;
    }

    .translator-card .swap-btn,
    .translator-card .swap-btn.btn,
    button.swap-btn {
        position: absolute !important;
        top: 30px !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        margin: 0 !important;
        z-index: 5 !important;
        align-self: auto !important;
    }

    .translator-card .swap-btn:hover,
    .translator-card .swap-btn:hover:not(:disabled),
    .translator-card .swap-btn:focus-visible,
    .translator-card .swap-btn:active {
        transform: translate(-50%, -50%) !important;
    }
}

/* Stable translator tool override: single border, unified language header. */
.translator-card.tool-unified-active {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #9cb2cb !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 28px rgba(47, 95, 156, 0.08) !important;
}

.translator-card.tool-unified-active .tool-unified-header {
    display: grid !important;
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr 44px 1fr !important;
    align-items: center !important;
    min-height: 58px !important;
    padding: 0 12px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dbe4ee !important;
    position: relative !important;
    z-index: 4 !important;
}

.translator-card.tool-unified-active .tool-unified-header::before {
    content: none !important;
}

.translator-card.tool-unified-active .tool-unified-label {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    color: #374151 !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot::before {
    content: "" !important;
    position: absolute !important;
    width: 56px !important;
    height: 44px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    z-index: 0 !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
    position: static !important;
    display: inline-flex !important;
    width: 48px !important;
    height: 36px !important;
    min-width: 48px !important;
    min-height: 36px !important;
    max-width: 48px !important;
    max-height: 36px !important;
    margin: 0 !important;
    border-radius: 8px !important;
    transform: none !important;
    aspect-ratio: auto !important;
    z-index: 1 !important;
}

.translator-card.tool-unified-active > .swap-btn {
    display: none !important;
}

.translator-card.tool-unified-active .box-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.translator-card.tool-unified-active > .translator-box,
.translator-card.tool-unified-active > .translator-box.is-input,
.translator-card.tool-unified-active > .translator-box.is-output {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.translator-card.tool-unified-active > .translator-box.is-output {
    border-left: 1px solid #dbe4ee !important;
}

.translator-card.tool-unified-active .box-body {
    min-height: 220px !important;
}

.translator-card.tool-unified-active .box-footer {
    min-height: 52px !important;
    height: 52px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    border-top: 1px solid #dbe4ee !important;
}

.translator-card.tool-unified-active > .translator-box.is-output .box-body,
.translator-card.tool-unified-active > .translator-box.is-output .lexi-output-wrap,
.translator-card.tool-unified-active > .translator-box.is-output .lexi-output {
    background: #f3f7fc !important;
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active {
        display: flex !important;
        flex-direction: column !important;
    }

    .translator-card.tool-unified-active > .translator-box,
    .translator-card.tool-unified-active > .translator-box.is-input,
    .translator-card.tool-unified-active > .translator-box.is-output {
        width: 100% !important;
    }

    .translator-card.tool-unified-active > .translator-box.is-output {
        border-left: 0 !important;
        border-top: 1px solid #dbe4ee !important;
    }

    .translator-card.tool-unified-active .box-body {
        min-height: 220px !important;
    }

    .translator-card.tool-unified-active .box-footer {
        min-height: 56px !important;
        height: 56px !important;
    }
}

/* Final field polish: match the reference tool shape on tablet/mobile. */
@media (max-width: 1024px) {
    .translator-card.tool-unified-active {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #9cb2cb !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .translator-card.tool-unified-active .tool-unified-header {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) !important;
        min-height: 58px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-bottom: 1px solid #dbe4ee !important;
    }

    .translator-card.tool-unified-active .tool-unified-label {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: #374151 !important;
        white-space: normal !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #ffffff !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot::before {
        content: none !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
        position: static !important;
        display: inline-flex !important;
        width: 42px !important;
        height: 36px !important;
        min-width: 42px !important;
        min-height: 36px !important;
        max-width: 42px !important;
        max-height: 36px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: #ffffff !important;
        border: 1px solid #cbd7e6 !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
        transform: none !important;
    }

    .translator-card.tool-unified-active > .translator-box,
    .translator-card.tool-unified-active > .translator-box.is-input,
    .translator-card.tool-unified-active > .translator-box.is-output {
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden !important;
    }

    .translator-card.tool-unified-active > .translator-box.is-output {
        border-top: 1px solid #dbe4ee !important;
        border-left: 0 !important;
    }

    .translator-card.tool-unified-active .box-bar {
        display: none !important;
    }

    .translator-card.tool-unified-active .box-body,
    .translator-card.tool-unified-active .lexi-input-wrap,
    .translator-card.tool-unified-active .lexi-output-wrap {
        display: block !important;
        min-height: 285px !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 285px !important;
        margin: 0 !important;
        padding: 26px 22px !important;
        background: transparent !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        color: #1f2937 !important;
        font-size: 20px !important;
        line-height: 1.45 !important;
    }

    .translator-card.tool-unified-active .lexi-input::placeholder,
    .translator-card.tool-unified-active .lexi-output.is-empty {
        color: #98a6bd !important;
    }

    .translator-card.tool-unified-active .box-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 64px !important;
        height: 64px !important;
        padding: 0 16px !important;
        background: #ffffff !important;
        border-top: 1px solid #dbe4ee !important;
        border-radius: 0 !important;
    }

    .translator-card.tool-unified-active .footer-left,
    .translator-card.tool-unified-active .footer-right {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active {
        border-radius: 14px !important;
    }

    .translator-card.tool-unified-active .tool-unified-header {
        grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr) !important;
        min-height: 56px !important;
        padding: 0 12px !important;
    }

    .translator-card.tool-unified-active .tool-unified-label {
        font-size: 14px !important;
    }

    .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
        width: 38px !important;
        height: 34px !important;
        min-width: 38px !important;
        min-height: 34px !important;
        max-width: 38px !important;
        max-height: 34px !important;
    }

    .translator-card.tool-unified-active .box-body,
    .translator-card.tool-unified-active .lexi-input-wrap,
    .translator-card.tool-unified-active .lexi-output-wrap {
        min-height: 235px !important;
    }

    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        min-height: 235px !important;
        padding: 24px 18px !important;
        font-size: 18px !important;
        line-height: 1.45 !important;
    }

    .translator-card.tool-unified-active .box-footer {
        min-height: 58px !important;
        height: 58px !important;
        padding: 0 14px !important;
    }
}

/* Final responsive sizing: keep the reference proportions, not oversized text/buttons. */
.translator-card.tool-unified-active .tool-unified-label {
    font-size: clamp(13px, 0.8vw + 8px, 15px) !important;
    line-height: 1.2 !important;
}

.translator-card.tool-unified-active .lexi-input,
.translator-card.tool-unified-active .lexi-output {
    font-size: clamp(15px, 0.7vw + 10px, 18px) !important;
    line-height: 1.45 !important;
}

.translator-card.tool-unified-active .char-count,
.translator-card.tool-unified-active .limit-count,
.translator-card.tool-unified-active .box-footer {
    font-size: clamp(12px, 0.35vw + 10px, 14px) !important;
}

.translator-card.tool-unified-active .translate-btn,
.translator-card.tool-unified-active .btn-primary.translate-btn {
    min-height: clamp(42px, 4.2vw, 48px) !important;
    height: clamp(42px, 4.2vw, 48px) !important;
    min-width: clamp(128px, 16vw, 170px) !important;
    padding: 0 clamp(18px, 2.2vw, 26px) !important;
    border-radius: 11px !important;
    font-size: clamp(14px, 0.45vw + 11px, 16px) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.translator-card.tool-unified-active .action-btn,
.translator-card.tool-unified-active .btn-icon {
    width: clamp(40px, 4vw, 46px) !important;
    height: clamp(40px, 4vw, 46px) !important;
    min-width: clamp(40px, 4vw, 46px) !important;
    min-height: clamp(40px, 4vw, 46px) !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn {
    width: clamp(38px, 4vw, 44px) !important;
    height: clamp(34px, 3.4vw, 38px) !important;
    min-width: clamp(38px, 4vw, 44px) !important;
    min-height: clamp(34px, 3.4vw, 38px) !important;
    max-width: 44px !important;
    max-height: 38px !important;
}

@media (max-width: 768px) {
    .translator-card.tool-unified-active .tool-unified-label {
        font-size: clamp(12.5px, 2.2vw, 14px) !important;
    }

    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        font-size: clamp(15px, 3.5vw, 17px) !important;
    }

    .translator-card.tool-unified-active .translate-btn,
    .translator-card.tool-unified-active .btn-primary.translate-btn {
        min-height: clamp(40px, 8.5vw, 46px) !important;
        height: clamp(40px, 8.5vw, 46px) !important;
        min-width: clamp(120px, 34vw, 160px) !important;
        padding: 0 clamp(16px, 4vw, 22px) !important;
        font-size: clamp(13px, 3.4vw, 15px) !important;
    }

    .translator-card.tool-unified-active .action-btn,
    .translator-card.tool-unified-active .btn-icon {
        width: clamp(38px, 9vw, 44px) !important;
        height: clamp(38px, 9vw, 44px) !important;
        min-width: clamp(38px, 9vw, 44px) !important;
        min-height: clamp(38px, 9vw, 44px) !important;
    }
}

/* Keep translator field text close to body copy size on every screen. */
.translator-card.tool-unified-active .lexi-input,
.translator-card.tool-unified-active .lexi-output {
    font-size: clamp(14px, 0.22vw + 13px, 15px) !important;
    line-height: 1.55 !important;
}

.translator-card.tool-unified-active .lexi-input::placeholder,
.translator-card.tool-unified-active .lexi-output.is-empty {
    font-size: clamp(14px, 0.22vw + 13px, 15px) !important;
    line-height: 1.55 !important;
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output,
    .translator-card.tool-unified-active .lexi-input::placeholder,
    .translator-card.tool-unified-active .lexi-output.is-empty {
        font-size: clamp(13.5px, 3.4vw, 14.5px) !important;
        line-height: 1.55 !important;
    }
}

/* Button sizing should also feel like body UI, not oversized CTA text. */
.translator-card.tool-unified-active .translate-btn,
.translator-card.tool-unified-active .btn-primary.translate-btn {
    min-height: clamp(38px, 2.2vw + 28px, 44px) !important;
    height: clamp(38px, 2.2vw + 28px, 44px) !important;
    min-width: clamp(118px, 8vw + 78px, 150px) !important;
    padding: 0 clamp(14px, 1vw + 10px, 20px) !important;
    font-size: clamp(13px, 0.22vw + 12px, 14px) !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.translator-card.tool-unified-active .translate-btn svg,
.translator-card.tool-unified-active .btn-primary.translate-btn svg {
    width: clamp(18px, 0.7vw + 14px, 22px) !important;
    height: clamp(18px, 0.7vw + 14px, 22px) !important;
}

.translator-card.tool-unified-active .action-btn,
.translator-card.tool-unified-active .btn-icon {
    width: clamp(36px, 1.8vw + 28px, 42px) !important;
    height: clamp(36px, 1.8vw + 28px, 42px) !important;
    min-width: clamp(36px, 1.8vw + 28px, 42px) !important;
    min-height: clamp(36px, 1.8vw + 28px, 42px) !important;
}

.translator-card.tool-unified-active .action-btn svg,
.translator-card.tool-unified-active .btn-icon svg {
    width: clamp(17px, 0.6vw + 14px, 20px) !important;
    height: clamp(17px, 0.6vw + 14px, 20px) !important;
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active .translate-btn,
    .translator-card.tool-unified-active .btn-primary.translate-btn {
        min-height: clamp(38px, 9vw, 42px) !important;
        height: clamp(38px, 9vw, 42px) !important;
        min-width: clamp(112px, 34vw, 138px) !important;
        padding: 0 clamp(13px, 4vw, 18px) !important;
        font-size: clamp(12.5px, 3vw, 13.5px) !important;
    }

    .translator-card.tool-unified-active .action-btn,
    .translator-card.tool-unified-active .btn-icon {
        width: clamp(36px, 9vw, 40px) !important;
        height: clamp(36px, 9vw, 40px) !important;
        min-width: clamp(36px, 9vw, 40px) !important;
        min-height: clamp(36px, 9vw, 40px) !important;
    }
}

/* Swap button: small rectangle in the language header, never circular. */
.translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
.translator-card.tool-unified-active .tool-unified-swap-proxy {
    width: clamp(34px, 2.4vw, 40px) !important;
    height: clamp(30px, 2vw, 34px) !important;
    min-width: clamp(34px, 2.4vw, 40px) !important;
    min-height: clamp(30px, 2vw, 34px) !important;
    max-width: 40px !important;
    max-height: 34px !important;
    aspect-ratio: auto !important;
    border-radius: 7px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #c9d6e6 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn svg,
.translator-card.tool-unified-active .tool-unified-swap-proxy svg {
    width: clamp(15px, 0.6vw + 12px, 18px) !important;
    height: clamp(15px, 0.6vw + 12px, 18px) !important;
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
    .translator-card.tool-unified-active .tool-unified-swap-proxy {
        width: 34px !important;
        height: 30px !important;
        min-width: 34px !important;
        min-height: 30px !important;
        max-width: 34px !important;
        max-height: 30px !important;
        border-radius: 7px !important;
    }
}

/* AnythingTranslate-style responsive tool proportions. */
.translator-card.tool-unified-active {
    --tool-line: #d8dce3;
    --tool-radius: 12px;
}

.translator-card.tool-unified-active .tool-unified-header {
    min-height: clamp(48px, 4.6vw, 54px) !important;
    padding: 0 clamp(12px, 1.4vw, 18px) !important;
    border-bottom: 1px solid var(--tool-line) !important;
}

.translator-card.tool-unified-active .tool-unified-label {
    font-size: clamp(13px, 0.18vw + 12.5px, 14px) !important;
    font-weight: 500 !important;
}

.translator-card.tool-unified-active .box-body,
.translator-card.tool-unified-active .lexi-input-wrap,
.translator-card.tool-unified-active .lexi-output-wrap {
    min-height: clamp(220px, 24vw, 285px) !important;
}

.translator-card.tool-unified-active .lexi-input,
.translator-card.tool-unified-active .lexi-output {
    min-height: clamp(220px, 24vw, 285px) !important;
    padding: clamp(18px, 2vw, 24px) clamp(16px, 1.8vw, 22px) !important;
    font-size: clamp(14px, 0.18vw + 13.4px, 15px) !important;
    line-height: 1.5 !important;
}

.translator-card.tool-unified-active .box-footer {
    min-height: clamp(50px, 4.6vw, 56px) !important;
    height: clamp(50px, 4.6vw, 56px) !important;
    padding: 0 clamp(12px, 1.4vw, 16px) !important;
    border-top: 1px solid var(--tool-line) !important;
}

.translator-card.tool-unified-active .translate-btn,
.translator-card.tool-unified-active .btn-primary.translate-btn {
    min-height: clamp(36px, 3.3vw, 42px) !important;
    height: clamp(36px, 3.3vw, 42px) !important;
    min-width: clamp(108px, 11vw, 138px) !important;
    padding: 0 clamp(13px, 1.2vw, 18px) !important;
    border-radius: 8px !important;
    font-size: clamp(12.5px, 0.25vw + 11.8px, 13.5px) !important;
}

.translator-card.tool-unified-active .action-btn,
.translator-card.tool-unified-active .btn-icon {
    width: clamp(34px, 3.2vw, 40px) !important;
    height: clamp(34px, 3.2vw, 40px) !important;
    min-width: clamp(34px, 3.2vw, 40px) !important;
    min-height: clamp(34px, 3.2vw, 40px) !important;
    border-radius: 9px !important;
}

.translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
.translator-card.tool-unified-active .tool-unified-swap-proxy {
    width: clamp(34px, 3vw, 38px) !important;
    height: clamp(30px, 2.7vw, 34px) !important;
    min-width: clamp(34px, 3vw, 38px) !important;
    min-height: clamp(30px, 2.7vw, 34px) !important;
    max-width: 38px !important;
    max-height: 34px !important;
}

@media (min-width: 1025px) {
    .translator-card.tool-unified-active .box-body,
    .translator-card.tool-unified-active .lexi-input-wrap,
    .translator-card.tool-unified-active .lexi-output-wrap,
    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        min-height: clamp(210px, 17vw, 255px) !important;
    }
}

@media (max-width: 768px) {
    .translator-card.tool-unified-active .box-body,
    .translator-card.tool-unified-active .lexi-input-wrap,
    .translator-card.tool-unified-active .lexi-output-wrap,
    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        min-height: clamp(210px, 48vw, 275px) !important;
    }
}

@media (max-width: 480px) {
    .translator-card.tool-unified-active .tool-unified-header {
        min-height: 52px !important;
        padding: 0 10px !important;
    }

    .translator-card.tool-unified-active .box-body,
    .translator-card.tool-unified-active .lexi-input-wrap,
    .translator-card.tool-unified-active .lexi-output-wrap,
    .translator-card.tool-unified-active .lexi-input,
    .translator-card.tool-unified-active .lexi-output {
        min-height: clamp(190px, 52vw, 235px) !important;
    }

    .translator-card.tool-unified-active .box-footer {
        min-height: 52px !important;
        height: 52px !important;
    }
}

/* Final premium navigation polish. */
.navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(47, 95, 156, 0.14) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    backdrop-filter: blur(18px) saturate(1.25) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
}

.nav-inner {
    max-width: 1180px !important;
    min-height: 72px !important;
    padding: 0 clamp(18px, 3vw, 30px) !important;
    gap: clamp(12px, 2vw, 22px) !important;
}

.nav-logo {
    color: #374151 !important;
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.04em !important;
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
}

.nav-logo-img {
    display: block !important;
    width: clamp(198px, 21vw, 260px) !important;
    height: auto !important;
    max-height: 50px !important;
}

.nav-links {
    gap: clamp(6px, 1vw, 12px) !important;
}

.nav-links > a,
.nav-dropdown-btn {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border-radius: 12px !important;
    color: #1f2937 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-size: clamp(12px, 0.18vw + 11.5px, 14px) !important;
    font-weight: 500 !important;
    line-height: 1.05 !important;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease !important;
}

.nav-links > a:hover,
.nav-dropdown-btn:hover,
.nav-has-dropdown.is-open .nav-dropdown-btn {
    color: #2F5F9C !important;
    background: #f3f7fc !important;
    border-color: #d9e5f4 !important;
    box-shadow: 0 8px 18px rgba(47, 95, 156, 0.08) !important;
}

.nav-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    color: #374151 !important;
}

.nav-dropdown-btn:hover .nav-btn-icon,
.nav-has-dropdown.is-open .nav-btn-icon {
    color: #2F5F9C !important;
}

.nav-btn-icon svg,
.nav-link-emoji svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

.nav-has-dropdown {
    position: relative !important;
}

.nav-has-dropdown::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    height: 14px !important;
}

.nav-simple-dropdown {
    left: 50% !important;
    right: auto !important;
    top: calc(100% + 10px) !important;
    transform: translateX(-50%) translateY(6px) !important;
    width: min(960px, calc(100vw - 36px)) !important;
    min-width: 0 !important;
    max-height: min(72vh, 620px) !important;
    padding: 18px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px 14px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(47, 95, 156, 0.15) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(47, 95, 156, 0.08) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.16s ease, transform 0.16s ease !important;
}

.nav-has-dropdown.is-open .nav-simple-dropdown {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

.nav-links > .nav-has-dropdown:nth-last-child(2) .nav-simple-dropdown {
    left: auto !important;
    right: 0 !important;
    transform: translateY(6px) !important;
}

.nav-links > .nav-has-dropdown:nth-last-child(2).is-open .nav-simple-dropdown {
    transform: translateY(0) !important;
}

.nav-simple-dropdown a {
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    min-height: 44px !important;
    padding: 9px 11px !important;
    color: #16456f !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    font-size: clamp(13px, 0.16vw + 12.3px, 14px) !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}

.nav-simple-dropdown a:hover,
.nav-simple-dropdown a:focus-visible {
    color: #2F5F9C !important;
    background: #f3f7fc !important;
    border-color: #dce8f6 !important;
}

.nav-link-emoji {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    border-radius: 8px !important;
    color: #2F5F9C !important;
    background: #eef5fd !important;
}

.hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    border: 1px solid #cfdbea !important;
    background: #ffffff !important;
    box-shadow: none !important;
    padding: 10px !important;
    gap: 5px !important;
}

.hamburger-btn span {
    background: #0f172a !important;
    width: 22px !important;
    height: 2px !important;
    border-radius: 999px !important;
    transform-origin: center !important;
}

.hamburger-btn:hover,
.hamburger-btn:focus-visible {
    background: #f7fbff !important;
    border-color: #9cb2cb !important;
}

@media (min-width: 1025px) and (max-width: 1160px) {
    .nav-inner {
        max-width: 100% !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 38px !important;
        padding: 7px 9px !important;
        font-size: 12px !important;
    }

    .nav-logo {
        font-size: 1.28rem !important;
    }

    .nav-logo-img {
        width: 196px !important;
        max-height: 46px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-inner {
        max-width: 100% !important;
        min-height: 70px !important;
        padding: 0 16px !important;
        gap: 10px !important;
    }

    .nav-logo {
        font-size: clamp(1.12rem, 2.2vw, 1.35rem) !important;
    }

    .nav-logo-img {
        width: clamp(176px, 25vw, 208px) !important;
        max-height: 46px !important;
    }

    .nav-links {
        gap: 4px !important;
        flex: 1 1 auto !important;
        justify-content: flex-end !important;
        min-width: 0 !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 40px !important;
        padding: 7px 8px !important;
        font-size: clamp(11px, 1.25vw, 12.5px) !important;
        border-radius: 11px !important;
        max-width: 150px !important;
    }

    .nav-btn-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }

    .nav-simple-dropdown {
        width: min(760px, calc(100vw - 28px)) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        padding: 16px !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        background: #ffffff !important;
    }

    .nav-inner {
        min-height: 78px !important;
        padding: 0 18px !important;
    }

    .nav-logo-img {
        width: clamp(184px, 55vw, 232px) !important;
        max-height: 48px !important;
    }

    .nav-links {
        display: none !important;
        position: absolute !important;
        left: 14px !important;
        right: 14px !important;
        top: calc(100% + 10px) !important;
        max-height: calc(100dvh - 104px) !important;
        overflow-y: auto !important;
        padding: 14px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 1px solid #dce8f6 !important;
        border-radius: 20px !important;
        box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18) !important;
    }

    .nav-links.is-open {
        display: flex !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: 100% !important;
        min-height: 48px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding: 12px 13px !important;
        color: #374151 !important;
        background: #f8fbff !important;
        border: 1px solid #e2ebf6 !important;
        border-radius: 14px !important;
        font-size: 14px !important;
    }

    .nav-dropdown-btn svg:last-child {
        margin-left: auto !important;
    }

    .nav-has-dropdown {
        width: 100% !important;
    }

    .nav-has-dropdown::after {
        content: none !important;
    }

    .nav-simple-dropdown {
        position: static !important;
        display: none !important;
        width: 100% !important;
        max-height: none !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        grid-template-columns: 1fr !important;
        margin-top: 8px !important;
        padding: 8px !important;
        gap: 6px !important;
        background: #f7fbff !important;
        border: 1px solid #dce8f6 !important;
        border-radius: 16px !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
        transform: none !important;
    }

    .nav-simple-dropdown a {
        min-height: 42px !important;
        padding: 9px 10px !important;
        font-size: 13.5px !important;
    }
}

/* Premium hero/tool/related surface. */
.tool-hero-wrap {
    margin-bottom: 34px !important;
    padding-top: clamp(18px, 2.4vw, 30px) !important;
    padding-bottom: clamp(26px, 3vw, 40px) !important;
}

.tool-hero-wrap::before {
    background:
        radial-gradient(circle at 12% 0%, rgba(47, 95, 156, 0.12), transparent 34%),
        radial-gradient(circle at 92% 16%, rgba(126, 156, 195, 0.14), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 48%, #f4f8fc 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(214, 226, 242, 0.82) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(255, 255, 255, 0.72) !important;
}

.tool-hero-wrap .hero {
    max-width: 1180px !important;
    margin: 8px auto 18px !important;
}

.tool-hero-wrap .hero h1 {
    color: #214f86 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

.tool-hero-wrap .hero p {
    color: #526783 !important;
}

.tool-hero-wrap .tool-policy-banner,
.tool-hero-wrap .tool-detect-hint {
    background: rgba(255, 255, 255, 0.72) !important;
    border-color: rgba(156, 178, 203, 0.42) !important;
    box-shadow: 0 10px 24px rgba(47, 95, 156, 0.07) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.tool-hero-wrap .translator-card.tool-unified-active,
.tool-hero-wrap .translator-card {
    box-shadow:
        0 18px 40px rgba(31, 63, 109, 0.12),
        0 4px 12px rgba(31, 63, 109, 0.06) !important;
}

.tool-hero-wrap .tool-related-links {
    background: rgba(255, 255, 255, 0.68) !important;
    border: 1px solid rgba(156, 178, 203, 0.36) !important;
    border-radius: 16px !important;
    padding: clamp(14px, 1.8vw, 20px) !important;
    box-shadow: 0 14px 30px rgba(47, 95, 156, 0.08) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

.tool-hero-wrap .tool-related-label {
    color: #214f86 !important;
}

.tool-hero-wrap .tool-related-chip {
    background: #ffffff !important;
    border-color: #d8e5f4 !important;
    color: #173a63 !important;
    box-shadow: 0 4px 10px rgba(47, 95, 156, 0.05) !important;
}

.tool-hero-wrap .tool-related-chip:hover {
    color: #ffffff !important;
    background: #2F5F9C !important;
    border-color: #2F5F9C !important;
    box-shadow: 0 8px 18px rgba(47, 95, 156, 0.18) !important;
}

@media (max-width: 768px) {
    .tool-hero-wrap::before {
        background:
            radial-gradient(circle at 10% 0%, rgba(47, 95, 156, 0.10), transparent 38%),
            linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #f4f8fc 100%) !important;
    }

    .tool-hero-wrap .tool-related-links {
        border-radius: 14px !important;
        padding: 14px !important;
    }
}

/* Mobile spacing: hero/tool should not feel inset like content h2 cards. */
@media (max-width: 600px) {
    .page-shell {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .tool-hero-wrap {
        margin-left: -10px !important;
        margin-right: -10px !important;
        margin-bottom: 22px !important;
        padding: 12px 10px 20px !important;
    }

    .tool-hero-wrap .hero {
        margin: 4px 0 12px !important;
        padding: 0 4px !important;
        text-align: left !important;
    }

    .tool-hero-wrap .hero h1 {
        margin-bottom: 8px !important;
    }

    .tool-hero-wrap .hero p {
        margin: 0 !important;
        max-width: none !important;
        line-height: 1.55 !important;
    }

    .tool-hero-wrap .tool-policy-banner,
    .tool-hero-wrap .tool-detect-hint {
        margin-bottom: 10px !important;
    }

    .tool-hero-wrap .translator-card.tool-unified-active,
    .tool-hero-wrap .translator-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .tool-hero-wrap .tool-related-links {
        margin-top: 14px !important;
        margin-bottom: 0 !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
    }

    .tool-hero-wrap + .content-block {
        margin-top: 26px !important;
    }
}

/* Mobile edge balance: equal left/right breathing room in the premium section. */
@media (max-width: 600px) {
    .tool-hero-wrap {
        width: auto !important;
        max-width: none !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
    }

    .tool-hero-wrap .hero,
    .tool-hero-wrap .tool-policy-banner,
    .tool-hero-wrap .tool-detect-hint,
    .tool-hero-wrap .translator-card,
    .tool-hero-wrap .translator-card.tool-unified-active,
    .tool-hero-wrap .tool-related-links {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .tool-hero-wrap .hero {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .tool-hero-wrap .hero h1,
    .tool-hero-wrap .hero p {
        max-width: none !important;
        width: 100% !important;
    }
}

/* Final premium footer polish. */
.footer {
    margin-top: clamp(18px, 2.4vw, 28px) !important;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%) !important;
    border-top: 1px solid rgba(47, 95, 156, 0.14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.footer-inner {
    max-width: 1180px !important;
    min-height: 80px !important;
    padding: 22px clamp(18px, 3vw, 28px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

.footer .footer-inner > div:first-child div {
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.footer .footer-inner > div:last-child > div {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 6px !important;
}

.footer .footer-inner a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    margin-left: 0 !important;
    padding: 6px 9px !important;
    color: #2F5F9C !important;
    background: rgba(255, 255, 255, 0.56) !important;
    border: 1px solid rgba(217, 229, 244, 0.72) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 540 !important;
    text-decoration: none !important;
    transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease !important;
}

.footer .footer-inner a:hover,
.footer .footer-inner a:focus-visible {
    color: #2F5F9C !important;
    background: #f0f6fd !important;
    border-color: #d9e5f4 !important;
}

@media (max-width: 700px) {
    .footer {
        margin-top: 34px !important;
    }

    .footer-inner {
        min-height: auto !important;
        padding: 20px 16px 22px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .footer .footer-inner > div:first-child,
    .footer .footer-inner > div:last-child {
        width: 100% !important;
        text-align: center !important;
    }

    .footer .footer-inner > div:first-child div {
        text-align: center !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    .footer .footer-inner > div:last-child > div {
        justify-content: center !important;
        gap: 3px !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        white-space: nowrap !important;
    }

    .footer .footer-inner > div:last-child > div::-webkit-scrollbar {
        display: none !important;
    }

    .footer .footer-inner a {
        min-height: 28px !important;
        padding: 3px 5px !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, 0.58) !important;
        font-size: 11.5px !important;
        font-weight: 540 !important;
        color: #2F5F9C !important;
        flex: 0 0 auto !important;
    }
}

/* Important/info pages: match the polished site system without touching tool pages. */
body.info-page {
    font-family: "Google Sans", sans-serif;
background: #ffffff !important;
    color: #374151 !important;
}

body.info-page .page-shell {
    max-width: 960px !important;
    padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 28px) clamp(42px, 5vw, 70px) !important;
}

body.info-page .hero {
    position: relative !important;
    margin: 0 0 28px !important;
    padding: clamp(28px, 4vw, 46px) clamp(20px, 4vw, 42px) !important;
    text-align: left !important;
    overflow: hidden !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(47, 95, 156, 0.12), transparent 36%),
        linear-gradient(135deg, #f8fbff 0%, #eef4fb 52%, #f7fbff 100%) !important;
    border: 1px solid rgba(47, 95, 156, 0.16) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(31, 63, 109, 0.08) !important;
}

body.info-page .hero h1 {
    margin: 0 0 10px !important;
    color: #214f86 !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em !important;
}

body.info-page .hero p {
    margin: 0 !important;
    max-width: 760px !important;
    color: #526783 !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14.5px, 0.3vw + 13.5px, 16px) !important;
    line-height: 1.65 !important;
}

body.info-page .content-block {
    max-width: 900px !important;
    margin: 0 auto !important;
}

body.info-page .content-block h2 {
    display: block !important;
    margin: 34px 0 0 !important;
    padding: 12px 18px !important;
    background: #2F5F9C !important;
    border: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    color: #ffffff !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(18px, 0.65vw + 16px, 22px) !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.025em !important;
}

body.info-page .content-block h2 + .content-card {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

body.info-page .content-card,
body.info-page .contact-info-item {
    background: #ffffff !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 24px rgba(31, 63, 109, 0.055) !important;
}

body.info-page .content-card {
    padding: clamp(18px, 2.4vw, 26px) !important;
    margin-bottom: 18px !important;
}

body.info-page .content-card p,
body.info-page .content-card li,
body.info-page .contact-info-value {
    color: #1f2937 !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14px, 0.22vw + 13px, 15px) !important;
    line-height: 1.72 !important;
    font-weight: 500 !important;
}

body.info-page .content-card p {
    margin-top: 0 !important;
}

body.info-page .content-card p:last-child {
    margin-bottom: 0 !important;
}

body.info-page .content-card a {
    color: #2F5F9C !important;
    font-weight: 500 !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

body.info-page .content-card ul {
    margin: 0 !important;
    padding-left: 22px !important;
}

body.info-page .content-card li + li {
    margin-top: 8px !important;
}

body.info-page .contact-info-grid {
    gap: 14px !important;
    margin-bottom: 22px !important;
}

body.info-page .contact-info-item {
    padding: 18px !important;
}

body.info-page .contact-info-icon {
    color: #2F5F9C !important;
}

body.info-page .contact-info-label,
body.info-page .contact-form label {
    color: #374151 !important;
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 850 !important;
}

body.info-page .contact-form input,
body.info-page .contact-form select,
body.info-page .contact-form textarea {
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #cfdbea !important;
    border-radius: 10px !important;
    color: #374151 !important;
    font-family: "Google Sans", sans-serif;
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
}

body.info-page .contact-form input:focus,
body.info-page .contact-form select:focus,
body.info-page .contact-form textarea:focus {
    border-color: #2F5F9C !important;
    outline: 3px solid rgba(47, 95, 156, 0.12) !important;
}

body.info-page .form-submit {
    background: #2F5F9C !important;
    border-color: #2F5F9C !important;
    border-radius: 10px !important;
    box-shadow: 0 8px 16px rgba(47, 95, 156, 0.18) !important;
}

@media (max-width: 700px) {
    body.info-page .page-shell {
        padding: 18px 12px 42px !important;
    }

    body.info-page .hero {
        padding: 24px 16px !important;
        border-radius: 14px !important;
    }

    body.info-page .hero h1 {
        font-size: clamp(24px, 7vw, 30px) !important;
    }

    body.info-page .hero p {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    body.info-page .content-block h2 {
        margin-top: 28px !important;
        padding: 11px 14px !important;
        border-radius: 9px 9px 0 0 !important;
        font-size: 18px !important;
    }

    body.info-page .content-card {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    body.info-page .content-block h2 + .content-card {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
    }
}

/* Important pages final reset: simple hero, consistent body font. */
body.info-page,
body.info-page *:not(svg):not(path) {
    font-family: "Google Sans", sans-serif;
}

body.info-page .hero {
    margin: 0 0 24px !important;
    padding: 18px 0 8px !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.info-page .hero h1 {
    margin: 0 0 8px !important;
    color: #374151 !important;
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    font-weight: 850 !important;
    letter-spacing: -0.04em !important;
    text-shadow: none !important;
}

body.info-page .hero p {
    margin: 0 !important;
    max-width: 820px !important;
    color: #526783 !important;
    font-size: clamp(14px, 0.28vw + 13px, 15.5px) !important;
    line-height: 1.65 !important;
    font-weight: 500 !important;
}

body.info-page .content-card,
body.info-page .content-card p,
body.info-page .content-card li,
body.info-page .content-card strong,
body.info-page .content-card a,
body.info-page .contact-info-item,
body.info-page .contact-form label,
body.info-page .contact-form input,
body.info-page .contact-form select,
body.info-page .contact-form textarea {
    font-family: "Google Sans", sans-serif;
}

body.info-page .content-card p,
body.info-page .content-card li {
    font-size: clamp(14px, 0.2vw + 13px, 15px) !important;
    line-height: 1.72 !important;
}

@media (max-width: 700px) {
    body.info-page .hero {
        padding: 14px 0 6px !important;
        margin-bottom: 20px !important;
    }

    body.info-page .hero h1 {
        font-size: clamp(24px, 7vw, 30px) !important;
    }

    body.info-page .hero p,
    body.info-page .content-card p,
    body.info-page .content-card li {
        font-size: 14px !important;
    }
}

/* Important pages must use the exact same font stack as tool pages. */
body.info-page,
body.info-page *:not(svg):not(path) {
    font-family: "Google Sans", sans-serif;
}

body.info-page .hero h1,
body.info-page .hero p,
body.info-page .content-block h2,
body.info-page .content-card,
body.info-page .content-card p,
body.info-page .content-card li,
body.info-page .content-card strong,
body.info-page .content-card a,
body.info-page .contact-info-item,
body.info-page .contact-info-label,
body.info-page .contact-info-value,
body.info-page .contact-form label,
body.info-page .contact-form input,
body.info-page .contact-form select,
body.info-page .contact-form textarea,
body.info-page .form-submit {
    font-family: "Google Sans", sans-serif;
}

/* Absolute final font lock for important pages, including header/menu/footer. */
html body.info-page,
html body.info-page :where(
    .announcement-bar,
    .navbar,
    .nav-inner,
    .nav-logo,
    .nav-links,
    .nav-links a,
    .nav-dropdown-btn,
    .nav-simple-dropdown,
    .nav-simple-dropdown a,
    .hamburger-btn,
    .hero,
    .hero h1,
    .hero p,
    .content-block,
    .content-block h1,
    .content-block h2,
    .content-block h3,
    .content-card,
    .content-card p,
    .content-card li,
    .content-card strong,
    .content-card a,
    .contact-info-grid,
    .contact-info-item,
    .contact-info-label,
    .contact-info-value,
    .contact-form,
    .contact-form label,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .btn,
    .form-submit,
    .footer,
    .footer-inner,
    .footer-inner div,
    .footer-inner a
) {
    font-family: "Google Sans", sans-serif;
}

/* Important pages final font: match the current tool-page app font, not old Nunito. */
html body.info-page,
html body.info-page :where(
    .announcement-bar,
    .navbar,
    .nav-inner,
    .nav-logo,
    .nav-links,
    .nav-links a,
    .nav-dropdown-btn,
    .nav-simple-dropdown,
    .nav-simple-dropdown a,
    .hero,
    .hero h1,
    .hero p,
    .content-block,
    .content-block h1,
    .content-block h2,
    .content-block h3,
    .content-card,
    .content-card p,
    .content-card li,
    .content-card strong,
    .content-card a,
    .contact-info-item,
    .contact-info-label,
    .contact-info-value,
    .contact-form,
    .contact-form label,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .btn,
    .form-submit,
    .footer,
    .footer-inner,
    .footer-inner div,
    .footer-inner a
) {
    font-family: "Google Sans", sans-serif;
}

/* Specificity fix: override the earlier Nunito info-page lock. */
html body.info-page.info-page,
html body.info-page.info-page *:not(svg):not(path) {
    font-family: "Google Sans", sans-serif;
}

body.info-page .info-breadcrumb-strip {
    width: 100% !important;
    background: linear-gradient(180deg, #f7faff 0%, #fbfdff 100%) !important;
    border-bottom: 1px solid #dde7f2 !important;
}

body.info-page .info-breadcrumb-inner {
    max-width: 960px !important;
    margin: 0 auto !important;
    padding: 11px clamp(16px, 3vw, 28px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #64748b !important;
    font-family: "Google Sans", sans-serif;
    font-size: 12px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

body.info-page .info-breadcrumb-inner a {
    color: #2F5F9C !important;
    text-decoration: none !important;
}

body.info-page .info-breadcrumb-inner .is-current {
    color: #374151 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

@media (max-width: 700px) {
    body.info-page .info-breadcrumb-inner {
        padding: 10px 12px !important;
        font-size: 11.5px !important;
    }
}

/* Custom site scrollbar and scroll-to-top control. */
@media (min-width: 1025px) {
    html {
        scrollbar-width: thin;
        scrollbar-color: transparent transparent;
    }

    html.is-scrolling,
    html.is-scrollbar-hover {
        scrollbar-color: #2F5F9C #edf4fb;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 10px;
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        background: transparent;
        transition: background 0.18s ease, opacity 0.18s ease;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        background: transparent;
        border-radius: 999px;
        border: 2px solid transparent;
        transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    }

    html.is-scrolling::-webkit-scrollbar-track,
    html.is-scrollbar-hover::-webkit-scrollbar-track,
    html.is-scrolling body::-webkit-scrollbar-track,
    html.is-scrollbar-hover body::-webkit-scrollbar-track {
        background: #edf4fb;
    }

    html.is-scrolling::-webkit-scrollbar-thumb,
    html.is-scrollbar-hover::-webkit-scrollbar-thumb,
    html.is-scrolling body::-webkit-scrollbar-thumb,
    html.is-scrollbar-hover body::-webkit-scrollbar-thumb {
        background: #2F5F9C;
        border-color: #edf4fb;
    }

    html.is-scrolling::-webkit-scrollbar-thumb:hover,
    html.is-scrollbar-hover::-webkit-scrollbar-thumb:hover,
    html.is-scrolling body::-webkit-scrollbar-thumb:hover,
    html.is-scrollbar-hover body::-webkit-scrollbar-thumb:hover {
        background: #1E3F6D;
    }
}

.scroll-top-btn {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 1200;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #2F5F9C;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: #1E3F6D;
}

.scroll-top-btn svg {
    width: 25px;
    height: 25px;
    display: block;
}

@media (max-width: 1024px) {
    .scroll-top-btn {
        width: 54px;
        height: 54px;
        border-radius: 11px;
    }

    .scroll-top-btn svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 700px) {
    .scroll-top-btn {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .scroll-top-btn svg {
        width: 19px;
        height: 19px;
    }
}

/* Final navigation polish: compact desktop menu without broken labels. */
.nav-inner {
    max-width: 1240px !important;
    min-height: 72px !important;
    padding: 0 clamp(18px, 3vw, 32px) !important;
    gap: clamp(14px, 2vw, 28px) !important;
}

.nav-logo {
    flex: 0 0 auto !important;
}

.nav-logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.nav-logo-wordmark {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 3px !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(18px, 1.45vw, 22px) !important;
    letter-spacing: -0.032em !important;
}

.nav-logo-lexi {
    color: #2F5F9C !important;
    font-weight: 500 !important;
}

.nav-logo-translator {
    color: #374151 !important;
    font-weight: 500 !important;
}

.nav-logo-img {
    width: clamp(172px, 15vw, 218px) !important;
    max-height: 46px !important;
}

.nav-links {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    gap: clamp(10px, 1.4vw, 22px) !important;
    min-width: 0 !important;
}

.nav-dropdown-btn,
.nav-links > a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    max-width: none !important;
    white-space: nowrap !important;
    line-height: 1.1 !important;
    text-align: left !important;
}

.nav-dropdown-btn {
    flex-wrap: nowrap !important;
}

.nav-btn-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    flex: 0 0 20px !important;
}

.nav-dropdown-btn svg:last-child {
    width: 12px !important;
    height: 12px !important;
    margin-left: 2px !important;
    flex: 0 0 12px !important;
}

@media (min-width: 769px) and (max-width: 1080px) {
    .nav-inner {
        padding: 0 14px !important;
        gap: 10px !important;
    }

    .nav-logo-img {
        width: clamp(156px, 17vw, 186px) !important;
    }

    .nav-logo-wordmark {
        font-size: clamp(18px, 2vw, 21px) !important;
    }

    .nav-links {
        gap: 5px !important;
    }

    .nav-dropdown-btn,
    .nav-links > a {
        gap: 6px !important;
        padding: 7px 7px !important;
        font-size: 11.5px !important;
    }

    .nav-btn-icon {
        width: 18px !important;
        height: 18px !important;
        flex-basis: 18px !important;
    }
}

@media (max-width: 768px) {
    .nav-logo-wordmark {
        font-size: clamp(17px, 5vw, 20px) !important;
        letter-spacing: -0.05em !important;
    }
}

@media (min-width: 769px) and (max-width: 920px) {
    .nav-logo-img {
        width: 150px !important;
    }

    .nav-btn-icon {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nav-logo-img {
        width: clamp(178px, 52vw, 220px) !important;
        max-height: 46px !important;
    }
}

/* Global polished announcement bar + breadcrumb arrows. */
.announcement-bar {
    background: linear-gradient(90deg, #173a63 0%, #2F5F9C 28%, #6EA8E6 50%, #2F5F9C 72%, #173a63 100%) !important;
    background-size: 220% 100% !important;
    animation: announcementSweep 6s ease-in-out infinite !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 9px 16px !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0.01em !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16) !important;
}

@keyframes announcementSweep {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tool-breadcrumb-inner,
body.info-page .info-breadcrumb-inner {
    gap: 8px !important;
}

.tool-breadcrumb-inner > * + *,
body.info-page .info-breadcrumb-inner > * + * {
    position: relative !important;
}

.tool-breadcrumb-inner > * + *::before,
body.info-page .info-breadcrumb-inner > * + *::before {
    content: "\203A" !important;
    margin-right: 8px !important;
    color: #2F5F9C !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.tool-breadcrumb-inner .separator,
.tool-breadcrumb-inner .breadcrumb-separator,
body.info-page .info-breadcrumb-inner .separator,
body.info-page .info-breadcrumb-inner .breadcrumb-separator {
    display: none !important;
}

/* Tool pages: match the homepage soft premium panel background. */
.tool-hero-wrap {
    background: linear-gradient(180deg, #f7faff 0%, #fbfdff 72%, #ffffff 100%) !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.tool-hero-wrap::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 100vw !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(180deg, #f7faff 0%, #fbfdff 72%, #ffffff 100%) !important;
    z-index: -1 !important;
    pointer-events: none !important;
}

.tool-hero-wrap::after {
    content: none !important;
}

/* Final bar/crumb override. */
.announcement-bar {
    background: #173a63 !important;
    isolation: isolate !important;
    overflow: hidden !important;
    position: relative !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.18) !important;
}

.announcement-bar::before {
    content: none !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    background: linear-gradient(90deg, #173a63 0%, #2F5F9C 34%, #79b8f4 50%, #2F5F9C 66%, #173a63 100%) !important;
    background-size: 260% 100% !important;
    animation: announcementSweepFinal 3.2s ease-in-out infinite alternate !important;
    will-change: background-position !important;
}

@keyframes announcementSweepFinal {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 100% 50%;
    }
}

.tool-breadcrumb-inner > * + *::before,
body.info-page .info-breadcrumb-inner > * + *::before {
    content: none !important;
}

.tool-breadcrumb-inner {
    font-size: 0 !important;
}

.tool-breadcrumb-inner a,
.tool-breadcrumb-inner .is-current,
.tool-breadcrumb-inner span {
    font-size: 12px !important;
    font-weight: 500 !important;
}

.tool-breadcrumb-inner,
body.info-page .info-breadcrumb-inner {
    font-weight: 500 !important;
}

/* Hard final fixes: visible announcement sweep and larger nav SVG icons. */
.announcement-bar {
    background: #173a63 !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    z-index: 0 !important;
    animation: announcementPulseBg 2.4s ease-in-out infinite alternate !important;
}

.announcement-bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background: linear-gradient(90deg, #173a63 0%, #214f86 28%, #2F5F9C 42%, #87c2ff 50%, #2F5F9C 58%, #214f86 72%, #173a63 100%) !important;
    background-size: 300% 100% !important;
    animation: announcementSweepFinal 2.8s ease-in-out infinite alternate !important;
    pointer-events: none !important;
}

.announcement-bar::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -35% !important;
    width: 32% !important;
    z-index: 1 !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.24), transparent) !important;
    animation: announcementShine 2.2s ease-in-out infinite !important;
    pointer-events: none !important;
}

.announcement-bar,
.announcement-bar a {
    color: #ffffff !important;
}

.announcement-bar {
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.28) !important;
}

@keyframes announcementPulseBg {
    from {
        background-color: #173a63;
        box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
    }
    to {
        background-color: #2F5F9C;
        box-shadow: inset 0 -1px 0 rgba(255,255,255,0.22), 0 4px 14px rgba(47,95,156,0.22);
    }
}

@keyframes announcementShine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    18% {
        opacity: 1;
    }
    100% {
        transform: translateX(430%);
        opacity: 0;
    }
}

/* Final announcement style: smoother premium drift instead of harsh shine. */
.announcement-bar {
    background: linear-gradient(90deg, #143454 0%, #1c4775 50%, #143454 100%) !important;
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    color: #ffffff !important;
    text-shadow: 0 1px 1px rgba(9, 18, 32, 0.24) !important;
}

.announcement-bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(126, 189, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.04) 100%) !important;
    animation: announcementSoftPulse 3.8s ease-in-out infinite !important;
    pointer-events: none !important;
}

.announcement-bar::after {
    content: none !important;
}

.announcement-bar,
.announcement-bar a,
.announcement-bar-text {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
}

@keyframes announcementSoftPulse {
    0% {
        opacity: 0.72;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.72;
    }
}


.nav-dropdown-btn .nav-btn-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
}

.nav-dropdown-btn .nav-btn-icon svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
}

@media (min-width: 769px) and (max-width: 1080px) {
    .nav-dropdown-btn .nav-btn-icon {
        width: 21px !important;
        height: 21px !important;
        flex-basis: 21px !important;
    }

    .nav-dropdown-btn .nav-btn-icon svg {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 18px 14px 22px !important;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.06), transparent 120px),
            linear-gradient(180deg, #0f2744 0%, #173a63 52%, #10243d 100%) !important;
        border-radius: 0 !important;
        border-right: 0 !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        transform: translateX(-104%) !important;
        transition: transform 0.24s ease !important;
    }

    .nav-links::before {
        content: none !important;
        display: none !important;
    }

    .nav-links::after {
        content: none !important;
        display: none !important;
    }

    .nav-links.is-open {
        transform: translateX(0) !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        color: #eaf3ff !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border: 1px solid rgba(125, 180, 238, 0.16) !important;
        border-radius: 12px !important;
        padding: 13px 14px !important;
        justify-content: space-between !important;
        font-weight: 500 !important;
    }

    .nav-dropdown-btn:hover,
    .nav-has-dropdown.is-open .nav-dropdown-btn,
    .nav-links > a:hover {
        color: #ffffff !important;
        background: rgba(47, 95, 156, 0.45) !important;
        border-color: rgba(125, 180, 238, 0.34) !important;
    }

    .nav-simple-dropdown {
        background: rgba(255, 255, 255, 0.07) !important;
        border: 1px solid rgba(125, 180, 238, 0.14) !important;
        border-radius: 12px !important;
        padding: 8px !important;
        margin: 7px 0 4px !important;
        grid-template-columns: 1fr !important;
        max-height: 48dvh !important;
        overflow-y: auto !important;
    }

    .nav-simple-dropdown a {
        color: #dbeafe !important;
        border-radius: 10px !important;
        padding: 10px 11px !important;
        font-weight: 500 !important;
        white-space: normal !important;
    }

    .nav-simple-dropdown a:hover {
        background: rgba(125, 180, 238, 0.16) !important;
        color: #ffffff !important;
    }

    .nav-dropdown-btn .nav-btn-icon,
    .nav-link-emoji {
        color: #bfdbfe !important;
    }

    .nav-dropdown-btn .nav-btn-icon svg,
    .nav-link-emoji svg {
        color: #bfdbfe !important;
        stroke: currentColor !important;
    }

    .nav-dropdown-btn .nav-btn-icon svg path,
    .nav-dropdown-btn .nav-btn-icon svg circle,
    .nav-dropdown-btn .nav-btn-icon svg rect,
    .nav-dropdown-btn .nav-btn-icon svg line,
    .nav-dropdown-btn .nav-btn-icon svg polyline,
    .nav-dropdown-btn .nav-btn-icon svg polygon,
    .nav-link-emoji svg path,
    .nav-link-emoji svg circle,
    .nav-link-emoji svg rect,
    .nav-link-emoji svg line,
    .nav-link-emoji svg polyline,
    .nav-link-emoji svg polygon {
        stroke: currentColor !important;
        color: #bfdbfe !important;
    }

    .nav-dropdown-btn svg:last-child {
        color: #eaf3ff !important;
    }

    .hamburger-btn.is-open {
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1002 !important;
        background: #ffffff !important;
        border-color: rgba(47, 95, 156, 0.28) !important;
        box-shadow: none !important;
    }

    .mobile-drawer-brand {
        display: flex !important;
        align-items: center !important;
        min-height: 54px !important;
        margin: 0 70px 14px 2px !important;
    }

    .mobile-drawer-brand img {
        width: 220px !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    body.nav-drawer-open .scroll-top-btn {
        display: none !important;
    }
}

/* Final mobile menu reset: clean white full-screen panel like the original. */
@media (max-width: 768px) {
    .nav-links {
        position: fixed !important;
        top: 44px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100dvh - 44px) !important;
        max-height: calc(100dvh - 44px) !important;
        z-index: 999 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 106px 20px 28px !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        transform: translateX(-100%) !important;
        transition: transform 0.22s ease !important;
    }

    .nav-links.is-open {
        transform: translateX(0) !important;
    }

    .mobile-drawer-brand {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 82px !important;
        margin: 0 !important;
        padding: 0 78px 0 28px !important;
        display: flex !important;
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #eef2f7 !important;
    }

    .mobile-drawer-brand img {
        width: 222px !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        min-height: 55px !important;
        width: 100% !important;
        padding: 0 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        color: #374151 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        font-size: 15.5px !important;
        font-weight: 500 !important;
        box-shadow: none !important;
    }

    .nav-links > a:hover,
    .nav-dropdown-btn:hover,
    .nav-has-dropdown.is-open .nav-dropdown-btn {
        color: #2F5F9C !important;
        background: #f7faff !important;
    }

    .nav-dropdown-btn .nav-btn-icon,
    .nav-link-emoji {
        display: none !important;
    }

    .nav-dropdown-btn svg:last-child {
        color: #374151 !important;
        width: 14px !important;
        height: 14px !important;
    }

    .nav-simple-dropdown {
        position: static !important;
        display: none !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 8px !important;
        padding: 6px 0 8px 16px !important;
        background: #f8fbff !important;
        border: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        grid-template-columns: 1fr !important;
        max-height: 42dvh !important;
        overflow-y: auto !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    .nav-simple-dropdown a {
        min-height: 38px !important;
        padding: 8px 12px !important;
        color: #334155 !important;
        background: transparent !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        white-space: normal !important;
    }

    .nav-simple-dropdown a:hover {
        color: #2F5F9C !important;
        background: #edf5ff !important;
    }

    .hamburger-btn.is-open {
        position: fixed !important;
        top: 64px !important;
        right: 22px !important;
        z-index: 1002 !important;
        width: 56px !important;
        height: 56px !important;
        background: #ffffff !important;
        border: 1px solid #d6e2f0 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    .hamburger-btn.is-open span {
        background: #111827 !important;
        height: 3px !important;
    }

    .nav-drawer-overlay,
    body.nav-drawer-open .nav-drawer-overlay {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Absolute final mobile nav position fix. */
@media (max-width: 768px) {
    body.nav-drawer-open {
        overflow: hidden !important;
    }

    .nav-links,
    .nav-links.is-open {
        inset: 126px 0 auto 0 !important;
        top: 126px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100vw !important;
        height: calc(100dvh - 126px) !important;
        min-height: calc(100dvh - 126px) !important;
        max-height: calc(100dvh - 126px) !important;
        margin: 0 !important;
        padding: 18px 20px 28px !important;
        background: #ffffff !important;
        transform: translateX(-100%) !important;
        border-radius: 0 !important;
        overflow-y: auto !important;
    }

    .nav-links.is-open {
        transform: translateX(0) !important;
    }

    .mobile-drawer-brand {
        display: none !important;
    }

    .hamburger-btn.is-open {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        width: 56px !important;
        height: 56px !important;
        margin: 0 !important;
        align-self: center !important;
    }
}

/* Mobile nav final lock: match the clean live white drawer, not the dark off-canvas experiment. */
@media (max-width: 768px) {
    body.nav-drawer-open {
        overflow: hidden !important;
    }

    .navbar {
        position: relative !important;
        z-index: 1001 !important;
        background: #ffffff !important;
    }

    .nav-inner {
        min-height: 90px !important;
        padding: 0 20px !important;
        align-items: center !important;
    }

    .nav-logo-img {
        width: clamp(190px, 48vw, 226px) !important;
        height: auto !important;
        display: block !important;
    }

    .hamburger-btn,
    .hamburger-btn.is-open {
        position: relative !important;
        inset: auto !important;
        width: 70px !important;
        height: 70px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 70px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        background: #ffffff !important;
        border: 1px solid #d6e2f0 !important;
        border-radius: 14px !important;
        box-shadow: none !important;
        z-index: 1002 !important;
    }

    .hamburger-btn span,
    .hamburger-btn.is-open span {
        width: 30px !important;
        height: 3px !important;
        border-radius: 999px !important;
        background: #111827 !important;
        transform-origin: center !important;
    }

    .hamburger-btn.is-open span:nth-child(1) {
        transform: translateY(10px) rotate(45deg) !important;
    }

    .hamburger-btn.is-open span:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger-btn.is-open span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
    }

    .nav-links,
    .nav-links.is-open {
        position: fixed !important;
        top: 129px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: calc(100dvh - 129px) !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 18px 32px 34px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        background: #ffffff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-100%) !important;
        transition: transform 0.22s ease !important;
    }

    body:has(.tool-breadcrumb-strip) .nav-links,
    body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body:has(.info-breadcrumb-strip) .nav-links,
    body:has(.info-breadcrumb-strip) .nav-links.is-open {
        top: 178px !important;
        height: calc(100dvh - 178px) !important;
    }

    .nav-links.is-open {
        transform: translateX(0) !important;
    }

    .mobile-drawer-brand,
    .nav-links::before,
    .nav-links::after,
    .nav-drawer-overlay,
    body.nav-drawer-open .nav-drawer-overlay {
        content: none !important;
        display: none !important;
    }

    .nav-links > a,
    .nav-dropdown-btn {
        width: 100% !important;
        min-height: 56px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        color: #374151 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em !important;
        text-align: left !important;
    }

    .nav-links > a:hover,
    .nav-dropdown-btn:hover,
    .nav-has-dropdown.is-open .nav-dropdown-btn {
        color: #2F5F9C !important;
        background: transparent !important;
    }

    .nav-dropdown-btn .nav-btn-icon,
    .nav-link-emoji {
        display: none !important;
    }

    .nav-dropdown-btn svg:last-child {
        width: 14px !important;
        height: 14px !important;
        color: currentColor !important;
        flex: 0 0 14px !important;
    }

    .nav-simple-dropdown {
        position: static !important;
        display: none !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: 44dvh !important;
        margin: 0 0 8px !important;
        padding: 4px 0 10px 14px !important;
        overflow-y: auto !important;
        background: #f8fbff !important;
        border: 0 !important;
        border-radius: 12px !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    .nav-simple-dropdown a {
        min-height: 38px !important;
        padding: 8px 10px !important;
        display: flex !important;
        align-items: center !important;
        color: #334155 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    .nav-simple-dropdown a:hover {
        color: #2F5F9C !important;
        background: #edf5ff !important;
    }
}

/* Mobile drawer hard cover: keep page content hidden behind the opened menu. */
@media (max-width: 768px) {
    .nav-links,
    .nav-links.is-open {
        z-index: 99990 !important;
        background: #ffffff !important;
        isolation: isolate !important;
    }

    .nav-links::before {
        content: "" !important;
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        background: #ffffff !important;
        z-index: -1 !important;
        pointer-events: none !important;
    }

    .navbar {
        z-index: 100001 !important;
    }

    .hamburger-btn,
    .hamburger-btn.is-open {
        z-index: 100002 !important;
    }

    .tool-breadcrumb-strip,
    .info-breadcrumb-strip {
        position: relative !important;
        z-index: 100000 !important;
    }

    body.nav-drawer-open .tool-hero-wrap,
    body.nav-drawer-open .page-section,
    body.nav-drawer-open main,
    body.nav-drawer-open .home-hero {
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Mobile menu final behavior: menu only, no breadcrumb or page heading visible behind it. */
@media (max-width: 768px) {
    body.nav-drawer-open > *:not(.navbar) {
        display: none !important;
    }

    body.nav-drawer-open .navbar {
        display: block !important;
        position: fixed !important;
        inset: 0 0 auto 0 !important;
        width: 100vw !important;
        background: #ffffff !important;
        z-index: 100100 !important;
    }

    body.nav-drawer-open .announcement-bar,
    body.nav-drawer-open .tool-breadcrumb-strip,
    body.nav-drawer-open .info-breadcrumb-strip {
        display: none !important;
    }

    .nav-inner {
        min-height: 88px !important;
        padding: 0 18px !important;
    }

    .hamburger-btn,
    .hamburger-btn.is-open {
        width: 46px !important;
        height: 46px !important;
        flex-basis: 46px !important;
        border-radius: 10px !important;
    }

    .hamburger-btn span,
    .hamburger-btn.is-open span {
        width: 20px !important;
        height: 2.5px !important;
    }

    .hamburger-btn.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }

    .hamburger-btn.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }

    .nav-links,
    .nav-links.is-open,
    body:has(.tool-breadcrumb-strip) .nav-links,
    body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body:has(.info-breadcrumb-strip) .nav-links,
    body:has(.info-breadcrumb-strip) .nav-links.is-open {
        top: 88px !important;
        height: calc(100dvh - 88px) !important;
        min-height: calc(100dvh - 88px) !important;
        max-height: calc(100dvh - 88px) !important;
        padding: 14px 28px 30px !important;
        z-index: 100000 !important;
        background: #ffffff !important;
    }

    .nav-links::before,
    .nav-links.is-open::before {
        top: 88px !important;
        height: calc(100dvh - 88px) !important;
        background: #ffffff !important;
    }

    .navbar,
    .hamburger-btn,
    .hamburger-btn.is-open {
        z-index: 100002 !important;
    }

    .nav-links > .nav-has-dropdown {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #eef3f8 !important;
    }

    .nav-dropdown-btn {
        position: relative !important;
        z-index: 2 !important;
        min-height: 56px !important;
        padding: 0 !important;
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        background: #ffffff !important;
        border: 0 !important;
    }

    .nav-simple-dropdown {
        position: static !important;
        display: none !important;
        margin: 0 0 10px !important;
        padding: 4px 0 10px 14px !important;
        max-height: none !important;
        overflow: visible !important;
        background: transparent !important;
        border-left: 2px solid #e7eef8 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: block !important;
    }

    .nav-simple-dropdown a {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        min-height: 36px !important;
        padding: 7px 0 7px 10px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        border-radius: 0 !important;
    }

    body.nav-drawer-open .tool-hero-wrap,
    body.nav-drawer-open .info-page,
    body.nav-drawer-open main {
        z-index: 1 !important;
    }
}

/* Final shared mobile menu: use the homepage nav behavior across the site. */
@media (max-width: 768px) {
    body.nav-drawer-open > *:not(.announcement-bar):not(.navbar) {
        display: revert !important;
    }

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

    .announcement-bar {
        position: relative !important;
        z-index: 1003 !important;
    }

    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1004 !important;
        background: #ffffff !important;
        border-bottom: 1px solid #d6deea !important;
        overflow: visible !important;
    }

    .nav-inner {
        position: relative !important;
        min-height: 60px !important;
        height: 60px !important;
        padding: 0 16px !important;
        gap: 14px !important;
    }

    .nav-logo-img {
        width: auto !important;
        max-width: 220px !important;
        height: 36px !important;
    }

    .hamburger-btn,
    .hamburger-btn.is-open {
        display: inline-flex !important;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
        padding: 8px !important;
        gap: 5px !important;
        border: 1.5px solid #d6deea !important;
        border-radius: 10px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        position: relative !important;
        inset: auto !important;
        margin: 0 !important;
        z-index: 1006 !important;
    }

    .hamburger-btn span,
    .hamburger-btn.is-open span {
        width: 18px !important;
        height: 2px !important;
        border-radius: 2px !important;
        background: #111827 !important;
    }

    .hamburger-btn.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .hamburger-btn.is-open span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }

    .hamburger-btn.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    .nav-links,
    body:has(.tool-breadcrumb-strip) .nav-links,
    body:has(.info-breadcrumb-strip) .nav-links {
        display: none !important;
        position: fixed !important;
        top: var(--mobile-menu-top, 98px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: calc(100dvh - var(--mobile-menu-top, 98px)) !important;
        min-height: calc(100dvh - var(--mobile-menu-top, 98px)) !important;
        max-height: calc(100dvh - var(--mobile-menu-top, 98px)) !important;
        margin: 0 !important;
        padding: 10px 14px 18px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 2px !important;
        background: #ffffff !important;
        border-top: 0 !important;
        border-bottom: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        z-index: 1005 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        isolation: auto !important;
    }

    .nav-links.is-open,
    body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body:has(.info-breadcrumb-strip) .nav-links.is-open {
        display: flex !important;
    }

    .nav-links::before,
    .nav-links::after,
    .nav-drawer-overlay,
    body.nav-drawer-open .nav-drawer-overlay,
    .mobile-drawer-brand {
        content: none !important;
        display: none !important;
    }

    .nav-links > a {
        padding: 11px 14px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
    }

    .nav-has-dropdown {
        position: static !important;
    }

    .nav-dropdown-btn {
        width: 100% !important;
        justify-content: space-between !important;
        padding: 11px 14px !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .nav-btn-icon,
    .nav-link-emoji {
        display: none !important;
    }

    .nav-simple-dropdown {
        display: none !important;
        position: static !important;
        min-width: 0 !important;
        width: 100% !important;
        margin-top: 4px !important;
        padding: 6px !important;
        background: #f5f7fb !important;
        border: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 2px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    .nav-simple-dropdown a {
        display: block !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        white-space: normal !important;
        color: #374151 !important;
        background: transparent !important;
    }

    .nav-simple-dropdown a:hover {
        background: #eaf1fb !important;
        color: #2F5F9C !important;
    }

    body.nav-drawer-open .tool-breadcrumb-strip,
    body.nav-drawer-open .info-breadcrumb-strip {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

@media (max-width: 520px) {
    .nav-simple-dropdown {
        grid-template-columns: 1fr !important;
    }
}

@keyframes announcementBarOverlaySlide {
    0% {
        transform: translateX(-42%);
    }
    100% {
        transform: translateX(42%);
    }
}

.announcement-bar {
    background: #173a63 !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 9px 16px !important;
    font-size: 12.75px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    letter-spacing: 0.01em !important;
    position: relative !important;
    isolation: isolate !important;
}

.announcement-bar::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    width: 220% !important;
    left: -60% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    background-image: linear-gradient(90deg, #173a63 0%, #2F5F9C 22%, #4a7fc1 38%, #6aaee8 50%, #4a7fc1 62%, #2F5F9C 78%, #173a63 100%) !important;
    animation: announcementBarOverlaySlide 3s linear infinite !important;
}

.announcement-bar::after {
    content: none !important;
    display: none !important;
}

.announcement-bar-text {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
}

.announcement-bar a {
    position: relative !important;
    z-index: 2 !important;
    color: #bfdbfe !important;
    text-decoration: underline !important;
    text-underline-offset: 2px !important;
}

/* Absolute final mobile menu fix: no hero bleed, no blank gap, menu starts right under header. */
@media (max-width: 768px) {
    body.nav-drawer-open .announcement-bar,
    body.nav-drawer-open .tool-breadcrumb-strip,
    body.nav-drawer-open .info-breadcrumb-strip,
    body.nav-drawer-open main,
    body.nav-drawer-open .tool-hero-wrap,
    body.nav-drawer-open .info-page,
    body.nav-drawer-open .page-section,
    body.nav-drawer-open .site-footer,
    body.nav-drawer-open footer {
        visibility: hidden !important;
    }

    .navbar {
        z-index: 10020 !important;
    }

    .nav-links,
    .nav-links.is-open,
    body:has(.tool-breadcrumb-strip) .nav-links,
    body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body:has(.info-breadcrumb-strip) .nav-links,
    body:has(.info-breadcrumb-strip) .nav-links.is-open {
        top: 60px !important;
        height: calc(100dvh - 60px) !important;
        min-height: calc(100dvh - 60px) !important;
        max-height: calc(100dvh - 60px) !important;
        padding: 10px 14px 18px !important;
        justify-content: flex-start !important;
        align-content: flex-start !important;
        background: linear-gradient(180deg, #f6f9fe 0%, #eef4fb 100%) !important;
        z-index: 10019 !important;
    }

    .nav-links.is-open::before {
        content: "" !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #244f86 !important;
        z-index: -1 !important;
        display: block !important;
    }

    .nav-links.is-open,
    body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body:has(.info-breadcrumb-strip) .nav-links.is-open {
        background: #244f86 !important;
    }

    .nav-links.is-open::before {
        background: #244f86 !important;
    }

    .nav-dropdown-btn {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) 14px !important;
        align-items: center !important;
        column-gap: 12px !important;
        text-align: left !important;
    }

    .nav-dropdown-btn .nav-btn-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 18px !important;
        height: 18px !important;
        color: #ffffff !important;
        opacity: 1 !important;
    }

    .nav-dropdown-btn .nav-btn-icon svg {
        width: 18px !important;
        height: 18px !important;
        stroke: currentColor !important;
    }

    .nav-dropdown-btn svg:last-child {
        width: 14px !important;
        height: 14px !important;
        color: #eaf3ff !important;
        margin-left: auto !important;
    }

    .nav-simple-dropdown {
        padding: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .nav-simple-dropdown a {
        display: block !important;
        position: relative !important;
        min-height: 38px !important;
        padding: 8px 10px 8px 28px !important;
    }

    .nav-simple-dropdown a::before {
        content: "\2192" !important;
        position: absolute !important;
        left: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        color: currentColor !important;
        opacity: 0.95 !important;
    }

    .nav-link-emoji {
        display: none !important;
    }

    .nav-links.is-open .nav-dropdown-btn {
        color: #ffffff !important;
    }

    .nav-links.is-open .nav-simple-dropdown a {
        color: #ffffff !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .nav-links.is-open .nav-simple-dropdown a:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
    }

    .nav-link-emoji svg {
        display: none !important;
    }

    .nav-links > a:hover,
    .nav-dropdown-btn:hover,
    .nav-has-dropdown.is-open .nav-dropdown-btn {
        background: #2F5F9C !important;
        color: #ffffff !important;
    }

.nav-links > a:hover .nav-btn-icon,
.nav-links > a:hover .nav-link-emoji,
.nav-dropdown-btn:hover .nav-btn-icon,
.nav-has-dropdown.is-open .nav-dropdown-btn .nav-btn-icon,
.nav-dropdown-btn:hover svg,
.nav-has-dropdown.is-open .nav-dropdown-btn svg {
    color: #ffffff !important;
    stroke: currentColor !important;
}
}

.nav-links > a,
.nav-dropdown-btn {
    font-weight: 540 !important;
}

.footer-copy,
.footer .footer-inner > div:first-child div,
.footer .footer-inner > div:last-child > div,
.footer .footer-inner a {
    font-weight: 540 !important;
}

.nav-logo,
.nav-logo-wordmark,
.nav-logo-lexi,
.nav-logo-translator {
    font-family: "Google Sans", sans-serif;
}

.tool-hero-wrap .hero h1,
body.tool-page .hero h1,
body:not(.home-page):not(.info-page) .hero h1 {
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.038em !important;
    font-weight: 500 !important;
    color: #2F5F9C !important;
}

.tool-hero-wrap .hero p,
body.tool-page .hero p,
body:not(.home-page):not(.info-page) .hero p {
    font-size: clamp(14px, 0.22vw + 13px, 15.5px) !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
    color: #546983 !important;
    max-width: none !important;
}

html body,
html body *:not(svg):not(path):not(g):not(use) {
    font-family: "Google Sans", sans-serif;
}

body:not(.home-page):not(.info-page) .content-block h2 {
    font-size: clamp(18px, 0.65vw + 16px, 23px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.026em !important;
    font-weight: 500 !important;
}

body:not(.home-page):not(.info-page) .content-block p,
body:not(.home-page):not(.info-page) .content-block li,
body:not(.home-page):not(.info-page) .faq-answer {
    font-size: clamp(14px, 0.2vw + 13px, 15px) !important;
    line-height: 1.7 !important;
    color: #334155 !important;
}

body:not(.home-page):not(.info-page) .faq-question {
    font-size: clamp(15px, 0.24vw + 14px, 16px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.015em !important;
}

body.home-page .homepage-faq .faq-item {
    border-radius: 10px !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    margin-bottom: 14px !important;
    overflow: visible !important;
}

body.home-page .homepage-faq .faq-question {
    background: #f6f9fc !important;
    border: 1px solid #dfe7f0 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    color: #374151 !important;
    font-size: clamp(15px, 0.24vw + 14px, 16px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.015em !important;
}

body.home-page .homepage-faq .faq-question::after {
    border-right-color: #374151 !important;
    border-bottom-color: #374151 !important;
}

body.home-page .homepage-faq .faq-answer {
    background: #f6f9fc !important;
    border: 1px solid #dfe7f0 !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
    padding: 0 14px !important;
    color: #475569 !important;
    font-size: clamp(14px, 0.2vw + 13px, 15px) !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
}

body.home-page .homepage-faq .faq-item.is-active .faq-answer {
    padding-top: 8px !important;
    padding-bottom: 18px !important;
}

body .faq-question {
    font-weight: 500 !important;
}

body .faq-answer {
    font-weight: 400 !important;
    background: #f8fbff !important;
    border-left: 1px solid #dfe7f0 !important;
    border-right: 1px solid #dfe7f0 !important;
    border-bottom: 1px solid #dfe7f0 !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
}

body .faq-item.is-active .faq-question {
    border-radius: 10px 10px 0 0 !important;
}

body .faq-item:not(.is-active) .faq-question {
    border-radius: 10px !important;
}

@media (max-width: 768px) {
    .tool-hero-wrap .hero h1,
    body.tool-page .hero h1,
    body:not(.home-page):not(.info-page) .hero h1 {
        font-size: clamp(22px, 5.2vw, 26px) !important;
        line-height: 1.14 !important;
        color: #2F5F9C !important;
    }
}

@media (max-width: 640px) {
    body.home-page .homepage-faq .faq-question,
    body:not(.home-page):not(.info-page) .faq-question {
        font-size: 14px !important;
        line-height: 1.55 !important;
        gap: 14px !important;
        align-items: flex-start !important;
        padding-right: 16px !important;
    }

    body.home-page .homepage-faq .faq-question::after,
    body:not(.home-page):not(.info-page) .faq-question::after {
        flex: 0 0 auto !important;
        margin-top: 5px !important;
        margin-left: auto !important;
    }

    body.home-page .homepage-faq .faq-answer,
    body:not(.home-page):not(.info-page) .faq-answer {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
    }
}

/* Related translators: match homepage search suggestion cards */
body:not(.home-page):not(.info-page) .tool-hero-wrap .tool-related-links,
body:not(.home-page):not(.info-page) .tool-related-links {
    width: 100% !important;
    max-width: 1120px !important;
    margin: 28px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body:not(.home-page):not(.info-page) .tool-related-label {
    display: grid !important;
    grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr) !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 auto 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #2F5F9C !important;
    font-family: "Google Sans", sans-serif;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

body:not(.home-page):not(.info-page) .tool-related-label::before,
body:not(.home-page):not(.info-page) .tool-related-label::after {
    content: "" !important;
    display: block !important;
    height: 2px !important;
    border-radius: 999px !important;
}

body:not(.home-page):not(.info-page) .tool-related-label::before {
    background: linear-gradient(90deg, transparent 0%, #2F5F9C 100%) !important;
}

body:not(.home-page):not(.info-page) .tool-related-label::after {
    background: linear-gradient(90deg, #2F5F9C 0%, transparent 100%) !important;
}

body:not(.home-page):not(.info-page) .tool-related-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
}

body:not(.home-page):not(.info-page) .tool-hero-wrap .tool-related-chip,
body:not(.home-page):not(.info-page) .tool-related-chip {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 58px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #c9daf0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #122033 !important;
    font-family: "Google Sans", sans-serif;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    text-decoration: none !important;
    white-space: normal !important;
    box-shadow: none !important;
    transform: none !important;
    transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease !important;
}

body:not(.home-page):not(.info-page) .tool-hero-wrap .tool-related-chip:hover,
body:not(.home-page):not(.info-page) .tool-related-chip:hover {
    background: #f8fbff !important;
    border-color: #2F5F9C !important;
    color: #2F5F9C !important;
    box-shadow: none !important;
    transform: none !important;
}

body:not(.home-page):not(.info-page) .tool-related-chip-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #eef5fc !important;
    border: 1px solid #d7e6f5 !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

body:not(.home-page):not(.info-page) .tool-related-chip-title {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body:not(.home-page):not(.info-page) .tool-related-chip-arrow {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #2F5F9C !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

@media (max-width: 640px) {
    body:not(.home-page):not(.info-page) .tool-related-list {
        gap: 8px !important;
    }

    body:not(.home-page):not(.info-page) .tool-hero-wrap .tool-related-chip,
    body:not(.home-page):not(.info-page) .tool-related-chip {
        grid-template-columns: 32px minmax(0, 1fr) 18px !important;
        gap: 8px !important;
        min-height: 52px !important;
        padding: 8px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
    }

    body:not(.home-page):not(.info-page) .tool-related-chip-icon {
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
        font-size: 15px !important;
    }

    body:not(.home-page):not(.info-page) .tool-related-label {
        font-size: 13px !important;
    }
}

/* Final tool page polish */
body:not(.home-page):not(.info-page) .tool-hero-wrap .translator-card,
body:not(.home-page):not(.info-page) .tool-hero-wrap .translator-card.tool-unified-active,
body:not(.home-page):not(.info-page) .translator-card,
body:not(.home-page):not(.info-page) .translator-card.tool-unified-active {
    box-shadow: none !important;
}

body:not(.home-page):not(.info-page) .tool-breadcrumb-strip {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body:not(.home-page):not(.info-page) .tool-hero-wrap,
body:not(.home-page):not(.info-page) .tool-hero-wrap::before,
body:not(.home-page):not(.info-page) .tool-hero-wrap::after {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body:not(.home-page):not(.info-page) .tool-hero-wrap + .content-block {
    border-top: 0 !important;
    margin-top: 34px !important;
}

html,
body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.nav-drawer-overlay {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Final site-wide font lock: keep important pages on Google Sans too. */
html body.info-page,
html body.info-page *:not(svg):not(path):not(g):not(use),
html body.info-page :where(
    .announcement-bar,
    .navbar,
    .nav-inner,
    .nav-logo,
    .nav-links,
    .nav-links a,
    .nav-dropdown-btn,
    .nav-simple-dropdown,
    .nav-simple-dropdown a,
    .info-breadcrumb-inner,
    .hero,
    .hero h1,
    .hero p,
    .content-block,
    .content-block h1,
    .content-block h2,
    .content-block h3,
    .content-card,
    .content-card p,
    .content-card li,
    .content-card strong,
    .content-card a,
    .contact-info-item,
    .contact-info-label,
    .contact-info-value,
    .contact-form,
    .contact-form label,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .btn,
    .form-submit,
    .footer,
    .footer-inner,
    .footer-inner div,
    .footer-inner a
) {
    font-family: "Google Sans", sans-serif;
}

/* Final important page typography: same lighter Google Sans feel as the site. */
html body.info-page .hero h1 {
    font-family: "Google Sans", sans-serif;
    color: #2F5F9C !important;
    font-weight: 500 !important;
    letter-spacing: -0.035em !important;
}

html body.info-page .hero p {
    font-family: "Google Sans", sans-serif;
    color: #526783 !important;
    font-weight: 500 !important;
}

html body.info-page .content-card,
html body.info-page .content-card p,
html body.info-page .content-card li,
html body.info-page .contact-info-value,
html body.info-page .contact-form input,
html body.info-page .contact-form select,
html body.info-page .contact-form textarea {
    font-family: "Google Sans", sans-serif;
    color: #334155 !important;
    font-weight: 400 !important;
}

html body.info-page .content-card strong,
html body.info-page .content-card b,
html body.info-page .contact-info-label,
html body.info-page .contact-form label {
    font-family: "Google Sans", sans-serif;
    font-weight: 500 !important;
}

html body.info-page .content-block h2,
html body.info-page .content-block h3 {
    font-family: "Google Sans", sans-serif;
    color: #173a63 !important;
    font-weight: 720 !important;
}

/* Absolute final: important pages must visually match tool-page typography. */
html body.info-page,
html body.info-page *:not(svg):not(path):not(g):not(use) {
    font-family: "Google Sans", sans-serif;
}

html body.info-page .nav-logo,
html body.info-page .nav-links > a,
html body.info-page .nav-dropdown-btn,
html body.info-page .nav-simple-dropdown a,
html body.info-page .footer,
html body.info-page .footer * {
    font-family: "Google Sans", sans-serif;
    font-size: 14px !important;
    font-weight: 540 !important;
    letter-spacing: -0.01em !important;
    color: #374151 !important;
}

html body.info-page .nav-links > a:hover,
html body.info-page .nav-dropdown-btn:hover,
html body.info-page .nav-has-dropdown.is-open .nav-dropdown-btn {
    color: #ffffff !important;
}

html body.info-page .hero h1 {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.038em !important;
    font-weight: 500 !important;
    color: #2F5F9C !important;
}

html body.info-page .hero p {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14px, 0.22vw + 13px, 15.5px) !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
    color: #546983 !important;
    max-width: none !important;
}

html body.info-page .content-block h2 {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(18px, 0.65vw + 16px, 23px) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.026em !important;
    font-weight: 500 !important;
    color: #173a63 !important;
}

html body.info-page .content-card,
html body.info-page .content-card *,
html body.info-page .contact-info-item,
html body.info-page .contact-info-item *,
html body.info-page .contact-form,
html body.info-page .contact-form * {
    font-family: "Google Sans", sans-serif;
}

html body.info-page .content-card p,
html body.info-page .content-card li,
html body.info-page .contact-info-value,
html body.info-page .contact-form input,
html body.info-page .contact-form select,
html body.info-page .contact-form textarea {
    font-size: clamp(14px, 0.2vw + 13px, 15px) !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    color: #334155 !important;
}

html body.info-page .content-card strong,
html body.info-page .content-card b,
html body.info-page .contact-info-label,
html body.info-page .contact-form label {
    font-weight: 500 !important;
    color: #374151 !important;
}

html body.info-page .content-card div[style*="font-weight"] {
    font-family: "Google Sans", sans-serif;
}

@media (max-width: 768px) {
    html body.info-page .hero h1 {
        font-size: clamp(22px, 5.2vw, 26px) !important;
        line-height: 1.14 !important;
    }

    html body.info-page .hero p,
    html body.info-page .content-card p,
    html body.info-page .content-card li {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
    }
}

/* Absolute final important-page layout/typography parity with tool pages. */
html body.info-page .page-shell {
    max-width: var(--lexi-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 28px 24px 48px !important;
}

html body.info-page .hero {
    max-width: var(--lexi-max) !important;
    margin: 8px auto 18px !important;
    padding: 0 !important;
    text-align: left !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body.info-page .hero h1 {
    margin: 0 0 10px !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.038em !important;
    font-weight: 500 !important;
    color: #2F5F9C !important;
    text-shadow: none !important;
}

html body.info-page .hero p {
    margin: 0 !important;
    max-width: none !important;
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14px, 0.22vw + 13px, 15.5px) !important;
    line-height: 1.62 !important;
    font-weight: 500 !important;
    color: #546983 !important;
}

html body.info-page .content-block {
    max-width: var(--lexi-max) !important;
    width: 100% !important;
    margin: 0 auto !important;
}

html body.info-page .content-block h2 {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 34px 0 -1px 0 !important;
    padding: 14px 18px !important;
    background: #2F5F9C !important;
    border: 1px solid #e5e7eb !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    color: #ffffff !important;
    font-family: "Google Sans", sans-serif;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    position: relative !important;
}

html body.info-page .content-block h2::before {
    content: "" !important;
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 0 !important;
    height: 1px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.14) 55%, rgba(255, 255, 255, 0) 100%) !important;
}

html body.info-page .content-card,
html body.info-page .contact-info-item {
    background: #ffffff !important;
    border: 1px solid #dbe4ee !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}

html body.info-page .content-block h2 + .content-card {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

html body.info-page .content-card {
    padding: clamp(18px, 2.4vw, 26px) !important;
    margin-bottom: 18px !important;
}

html body.info-page .content-card p,
html body.info-page .content-card li,
html body.info-page .contact-info-value {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14px, 0.2vw + 13px, 15px) !important;
    line-height: 1.7 !important;
    font-weight: 400 !important;
    color: #334155 !important;
}

html body.info-page .content-card p {
    margin: 0 0 16px !important;
}

html body.info-page .content-card p:last-child {
    margin-bottom: 0 !important;
}

html body.info-page .content-card strong,
html body.info-page .content-card b {
    font-weight: 500 !important;
    color: #374151 !important;
}

@media (max-width: 700px) {
    html body.info-page .page-shell {
        padding: 24px 14px 42px !important;
    }

    html body.info-page .hero h1 {
        font-size: clamp(22px, 5.2vw, 26px) !important;
        line-height: 1.14 !important;
    }

    html body.info-page .content-block h2 {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }

    html body.info-page .content-card p,
    html body.info-page .content-card li {
        font-size: 13.5px !important;
        line-height: 1.65 !important;
    }
}

/* One brand system: header, footer, and page typography must stay consistent everywhere. */
html body,
html body *:not(svg):not(path):not(g):not(use) {
    font-family: "Google Sans", sans-serif;
}

html body .navbar,
html body .navbar *,
html body .footer,
html body .footer *,
html body .announcement-bar,
html body .announcement-bar * {
    font-family: "Google Sans", sans-serif;
}

html body .nav-logo {
    font-family: "Google Sans", sans-serif;
    font-weight: 500 !important;
    letter-spacing: -0.032em !important;
    color: #2F5F9C !important;
}

html body .nav-links > a,
html body .nav-dropdown-btn,
html body .nav-simple-dropdown a {
    font-family: "Google Sans", sans-serif;
    font-size: 14px !important;
    font-weight: 540 !important;
    letter-spacing: -0.01em !important;
    color: #374151 !important;
}

html body .nav-links > a:hover,
html body .nav-dropdown-btn:hover,
html body .nav-has-dropdown.is-open .nav-dropdown-btn {
    color: #ffffff !important;
}

html body .footer,
html body .footer *,
html body .footer a,
html body .footer-copy {
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 540 !important;
    letter-spacing: -0.005em !important;
}

html body .footer a {
    color: #2F5F9C !important;
    text-decoration: none !important;
}

html body.info-page .hero h1,
html body:not(.home-page):not(.info-page) .hero h1,
html body:not(.home-page):not(.info-page) .tool-hero-wrap .hero h1 {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(26px, 1.2vw + 16px, 32px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.038em !important;
    font-weight: 500 !important;
    color: #2F5F9C !important;
}

html body.info-page .hero p,
html body:not(.home-page):not(.info-page) .hero p,
html body:not(.home-page):not(.info-page) .tool-hero-wrap .hero p {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(14px, 0.22vw + 13px, 15.5px) !important;
    line-height: 1.62 !important;
    font-weight: 400 !important;
    color: #546983 !important;
    max-width: none !important;
}

/* Final header/footer parity across every page. */
html body .nav-dropdown-btn:hover,
html body .nav-links > a:hover,
html body .nav-has-dropdown.is-open .nav-dropdown-btn {
    background: #2F5F9C !important;
    border-color: #2F5F9C !important;
    color: #ffffff !important;
}

html body .nav-dropdown-btn:hover *,
html body .nav-links > a:hover *,
html body .nav-has-dropdown.is-open .nav-dropdown-btn * {
    color: #ffffff !important;
    stroke: currentColor !important;
}

html body .nav-simple-dropdown {
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(214, 226, 240, 0.82) !important;
    box-shadow: none !important;
}

html body .footer {
    background: #ffffff !important;
    border-top: 1px solid #e5edf6 !important;
    padding: 24px !important;
}

html body .footer-inner {
    max-width: var(--lexi-max) !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

html body .footer-copy,
html body .footer .footer-inner > div:first-child div {
    color: #334155 !important;
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 540 !important;
}

html body .footer .footer-inner > div:last-child > div,
html body .footer-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
}

html body .footer a,
html body .footer .footer-inner a,
html body .footer-links a {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2F5F9C !important;
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 540 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

html body .footer a:hover,
html body .footer .footer-inner a:hover,
html body .footer-links a:hover {
    color: #1E3F6D !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 700px) {
    html body .footer-inner {
        flex-direction: column !important;
        text-align: center !important;
    }

    html body .footer .footer-inner > div:last-child > div,
    html body .footer-links {
        justify-content: center !important;
        gap: 10px 14px !important;
    }
}

/* Footer final lock: use the same important-page footer on the whole website. */
html body .footer,
html body.home-page .footer,
html body.info-page .footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    background: #ffffff !important;
    border-top: 1px solid #e5edf6 !important;
    box-shadow: none !important;
}

html body .footer-inner,
html body.home-page .footer-inner,
html body.info-page .footer-inner {
    max-width: var(--lexi-max, 1180px) !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
}

html body .footer-copy,
html body .footer .footer-inner > div:first-child div,
html body.home-page .footer-copy,
html body.info-page .footer-copy {
    margin: 0 !important;
    padding: 0 !important;
    color: #334155 !important;
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 540 !important;
    line-height: 1.45 !important;
}

html body .footer-links,
html body .footer .footer-inner > div:last-child > div,
html body.home-page .footer-links,
html body.info-page .footer-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: right !important;
}

html body .footer a,
html body .footer .footer-inner a,
html body .footer-links a,
html body.home-page .footer a,
html body.info-page .footer a {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #2F5F9C !important;
    font-family: "Google Sans", sans-serif;
    font-size: 13px !important;
    font-weight: 540 !important;
    line-height: 1.45 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

html body .footer a:hover,
html body .footer .footer-inner a:hover,
html body .footer-links a:hover,
html body.home-page .footer a:hover,
html body.info-page .footer a:hover {
    color: #1E3F6D !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

@media (max-width: 700px) {
    html body .footer,
    html body.home-page .footer,
    html body.info-page .footer {
        padding: 22px 14px !important;
    }

    html body .footer-inner,
    html body.home-page .footer-inner,
    html body.info-page .footer-inner {
        flex-direction: column !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    html body .footer-links,
    html body .footer .footer-inner > div:last-child > div,
    html body.home-page .footer-links,
    html body.info-page .footer-links {
        justify-content: center !important;
        gap: 8px 14px !important;
        text-align: center !important;
    }
}

/* Unified footer socials for tool / SPA pages. */
html body .footer {
    position: relative !important;
    border-top: 0 !important;
}

html body .footer > .footer-top-line,
html body .footer::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 1px !important;
    min-height: 1px !important;
    background: #d8e4f1 !important;
    pointer-events: none !important;
    z-index: 20 !important;
}

html body .footer > .footer-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 18px !important;
}

html body .footer > .footer-inner > .footer-links {
    justify-content: flex-start !important;
    text-align: left !important;
}

html body .footer-copy-wrap {
    justify-self: center !important;
    text-align: center !important;
    white-space: nowrap !important;
}

html body .footer-social-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

html body .footer-social-label {
    color: #31465f !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

html body .footer-socials {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

html body .footer-socials a {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    border: 1px solid rgba(47, 95, 156, 0.16) !important;
    border-radius: 50% !important;
    background: #f3f8ff !important;
    color: #2f5f9c !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

html body .footer-socials a:hover,
html body .footer-socials a:focus-visible {
    background: #2f5f9c !important;
    border-color: #2f5f9c !important;
    color: #ffffff !important;
    outline: none !important;
}

html body .footer-socials svg {
    width: 12px !important;
    height: 12px !important;
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body .footer-socials a[aria-label*="Instagram"] svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

/* Google Sans weight tuning: lighter UI text, stronger headings. */
html body h1,
html body h2,
html body h3,
html body .tool-title,
html body .hero h1,
html body .content-block h2,
html body .section-title,
html body .error-code,
html body .error-heading {
    font-weight: 700 !important;
}

html body .nav-logo,
html body .nav-logo-wordmark {
    font-weight: 700 !important;
}

html body .nav-logo-lexi,
html body .nav-logo-translator {
    font-weight: 700 !important;
}

html body .nav-links > a,
html body .nav-dropdown-btn,
html body .nav-simple-dropdown a,
html body .card-name,
html body .card-btn,
html body .quick-link,
html body .btn-home,
html body .btn-alt,
html body .footer a,
html body .footer-social-label {
    font-weight: 500 !important;
}

html body .footer .footer-inner .footer-socials > a,
html body .footer .footer-socials > a,
html body.tool-page .footer .footer-socials > a,
html body.info-page .footer .footer-socials > a {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    flex: 0 0 24px !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(47, 95, 156, 0.16) !important;
    border-radius: 999px !important;
    background: #f3f8ff !important;
    color: #2f5f9c !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

html body .footer .footer-inner .footer-socials > a > svg,
html body .footer .footer-socials > a > svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px !important;
    min-height: 12px !important;
    flex: 0 0 12px !important;
    margin: 0 !important;
}

/* FAQ polish: softer answer panel and smaller answer text. */
html body .faq-answer,
html body.home-page .homepage-faq .faq-answer,
html body:not(.home-page):not(.info-page) .faq-answer {
    background: #ffffff !important;
    color: #53657a !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    font-weight: 400 !important;
    border-left: 1px solid #e3eaf3 !important;
    border-right: 1px solid #e3eaf3 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    border-top: 0 !important;
    border-radius: 0 0 10px 10px !important;
}

html body .faq-item.is-active .faq-answer,
html body.home-page .homepage-faq .faq-item.is-active .faq-answer {
    padding-top: 7px !important;
    padding-bottom: 14px !important;
}

@media (max-width: 640px) {
    html body .faq-answer,
    html body.home-page .homepage-faq .faq-answer,
    html body:not(.home-page):not(.info-page) .faq-answer {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* Google-like reading rhythm: crisp headings with softer, lighter body copy. */
html body p,
html body li,
html body .content-card p,
html body .content-card li,
html body .hero p,
html body .card-desc,
html body .faq-answer {
    color: #5f6368 !important;
    font-weight: 400 !important;
    line-height: 1.68 !important;
}

html body h1,
html body h2,
html body h3,
html body .hero h1,
html body .tool-title,
html body .section-title {
    color: #202124 !important;
    font-weight: 700 !important;
}

html body a {
    color: #1a73e8;
}

/* Keep the homepage showcase readable on the dark blue panels after global type colors. */
html body.home-page main > section[data-manual-showcase="true"] .section-title,
html body.home-page main > section[data-manual-showcase="true"] .card-name,
html body.home-page main > section[data-manual-showcase="true"] .card-btn,
html body.home-page main > section[data-manual-showcase="true"] .view-all-btn {
    color: #ffffff !important;
}

html body.home-page main > section[data-manual-showcase="true"] .section-kicker {
    color: #dbeafe !important;
}

html body.home-page main > section[data-manual-showcase="true"] .card-desc {
    color: #d6e4f3 !important;
    line-height: 1.5 !important;
}

html body.home-page main > section[data-manual-showcase="true"] .card-emoji {
    color: #ffffff !important;
    opacity: 1 !important;
}

html body.home-page main > section[data-manual-showcase="true"] .view-all-btn svg {
    color: currentColor !important;
    stroke: currentColor !important;
}

/* Soft romanization/pronunciation shown after script-language translations. */
html body .lexi-output .lexi-output-translit {
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(47, 95, 156, 0.22) !important;
    border-radius: 10px !important;
    background: rgba(47, 95, 156, 0.06) !important;
    color: #4b5563 !important;
    font-size: 0.92em !important;
    font-style: italic !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.45 !important;
}

/* Final mobile menu contrast: dropdown items stay readable with visible icons. */
@media (max-width: 768px) {
    html body .nav-links.is-open .nav-simple-dropdown {
        display: none !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px 8px !important;
        background: #f8fbff !important;
        border: 1px solid #dbe7f5 !important;
        box-shadow: none !important;
    }

    html body .nav-links.is-open .nav-has-dropdown.is-open .nav-simple-dropdown,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        min-width: 0 !important;
        min-height: 38px !important;
        padding: 7px 6px !important;
        font-size: 12.5px !important;
        line-height: 1.25 !important;
        color: #173a63 !important;
        -webkit-text-fill-color: #173a63 !important;
        background: transparent !important;
        border: 0 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a::before,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a::before {
        content: none !important;
        display: none !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 999px !important;
        background: #2f5f9c !important;
        border: 1px solid #2f5f9c !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        box-shadow: 0 2px 6px rgba(47, 95, 156, 0.22) !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        stroke: currentColor !important;
        color: currentColor !important;
        fill: none !important;
        opacity: 1 !important;
        stroke-width: 2.25 !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg *,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg * {
        stroke: currentColor !important;
        color: currentColor !important;
        opacity: 1 !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a:hover .nav-link-emoji,
    html body .nav-links.is-open .nav-simple-dropdown a:focus-visible .nav-link-emoji,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a:hover .nav-link-emoji,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a:focus-visible .nav-link-emoji {
        background: #2f5f9c !important;
        border-color: #2f5f9c !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html body .nav-links.is-open .nav-simple-dropdown a:hover,
    html body .nav-links.is-open .nav-simple-dropdown a:focus-visible,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a:hover,
    html body .nav-has-dropdown.is-open .nav-simple-dropdown a:focus-visible {
        color: #0f2f55 !important;
        -webkit-text-fill-color: #0f2f55 !important;
        background: #edf5ff !important;
    }
}

/* Tablet menu lock: keep dropdowns neat, readable, and icon-forward on iPad widths. */
@media (min-width: 769px) and (max-width: 1024px) {
    html body .nav-simple-dropdown {
        width: min(560px, calc(100vw - 32px)) !important;
        min-width: 0 !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px 10px !important;
        padding: 12px !important;
        background: #f8fbff !important;
        border: 1px solid #dbe7f5 !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08) !important;
    }

    html body .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
    }

    html body .nav-simple-dropdown a {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        min-width: 0 !important;
        min-height: 40px !important;
        padding: 8px 9px !important;
        color: #173a63 !important;
        -webkit-text-fill-color: #173a63 !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    html body .nav-simple-dropdown a .nav-link-emoji {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 24px !important;
        width: 24px !important;
        height: 24px !important;
        border-radius: 999px !important;
        background: #2f5f9c !important;
        border: 1px solid #2f5f9c !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
        opacity: 1 !important;
        box-shadow: 0 2px 6px rgba(47, 95, 156, 0.22) !important;
    }

    html body .nav-simple-dropdown a .nav-link-emoji svg {
        display: block !important;
        width: 14px !important;
        height: 14px !important;
        stroke: currentColor !important;
        color: currentColor !important;
        fill: none !important;
        opacity: 1 !important;
        stroke-width: 2.25 !important;
    }

    html body .nav-simple-dropdown a .nav-link-emoji svg * {
        stroke: currentColor !important;
        color: currentColor !important;
        opacity: 1 !important;
    }
}

@media (max-width: 1200px) {
    html body .footer > .footer-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    html body .footer > .footer-inner > .footer-links {
        order: 1 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    html body .footer-copy-wrap {
        order: 2 !important;
        justify-self: center !important;
    }

    html body .footer-social-wrap {
        order: 3 !important;
        justify-content: center !important;
    }
}

/* Dark theme toggle: Chat-style soft black palette without changing layout. */
html[data-theme="dark"] {
    color-scheme: dark;
    --lexi-bg: #07080a4d;
    --lexi-surface: #202224;
    --lexi-surface-2: #25282b;
    --lexi-border: rgba(255, 255, 255, 0.1);
    --lexi-text: #d7dce2;
    --lexi-text-soft: #aeb6c2;
    --lexi-heading: #f1f5f9;
    --lexi-accent: #7ab7ff;
}

html[data-theme="dark"] body {
    background: #07080a4d !important;
    background-color: #07080a4d !important;
    color: var(--lexi-text) !important;
}

html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after {
    opacity: 0.28 !important;
}

html[data-theme="dark"] .announcement-bar {
    background: #121416 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #dbe7f7 !important;
}

html[data-theme="dark"] .navbar {
    background: rgba(24, 26, 27, 0.94) !important;
    border-bottom-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .nav-logo,
html[data-theme="dark"] .nav-logo-lexi,
html[data-theme="dark"] .nav-logo-translator {
    color: #eaf3ff !important;
}

html[data-theme="dark"] .nav-links > a,
html[data-theme="dark"] .nav-dropdown-btn,
html[data-theme="dark"] .nav-simple-dropdown a {
    color: #d7dce2 !important;
    -webkit-text-fill-color: #d7dce2 !important;
}

html[data-theme="dark"] .nav-dropdown-btn:hover,
html[data-theme="dark"] .nav-links > a:hover,
html[data-theme="dark"] .nav-has-dropdown.is-open .nav-dropdown-btn {
    background: #2f5f9c !important;
    border-color: #2f5f9c !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] .nav-simple-dropdown,
html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown {
    background: #202327 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32) !important;
}

html[data-theme="dark"] .nav-simple-dropdown a:hover,
html[data-theme="dark"] .nav-simple-dropdown a:focus-visible {
    background: #2a3038 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 12px !important;
    border: 1px solid #dbe7f5 !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #2f5f9c !important;
    font-family: "Google Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 6px 16px rgba(47, 95, 156, 0.08) !important;
}

.theme-toggle::before {
    content: "" !important;
    position: absolute !important;
    inset: -3px !important;
    border-radius: inherit !important;
    border: 1px solid transparent !important;
    pointer-events: none !important;
}

.theme-toggle svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
}

.theme-toggle .theme-toggle-icon-sun {
    display: none !important;
}

html[data-theme="dark"] .theme-toggle {
    background: #24272a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #dbeafe !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .theme-toggle {
    position: relative !important;
    background: #071018 !important;
    border-color: rgba(103, 216, 255, 0.62) !important;
    color: #79B8F4 !important;
    box-shadow: 0 0 22px rgba(22, 199, 255, 0.24) !important;
}

html[data-theme="dark"] .theme-toggle .theme-toggle-icon-moon {
    display: none !important;
}

html[data-theme="dark"] .theme-toggle .theme-toggle-icon-sun {
    display: inline-flex !important;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    background: #2d333a !important;
    color: #ffffff !important;
    outline: none !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .tool-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .content-block h2 {
    color: var(--lexi-heading) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .content-card li,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .card-desc {
    color: var(--lexi-text-soft) !important;
}

html[data-theme="dark"] a {
    color: var(--lexi-accent) !important;
}

html[data-theme="dark"] .tool-hero-wrap,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .translator-card,
html[data-theme="dark"] .translator-box,
html[data-theme="dark"] .related-tool-card,
html[data-theme="dark"] .popular-chip,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] body.home-page .home-hero-shell,
html[data-theme="dark"] body.home-page .popular-chip {
    background: var(--lexi-surface) !important;
    border-color: var(--lexi-border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .translator-card.tool-unified-active,
html[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-header,
html[data-theme="dark"] .translator-card.tool-unified-active .box-footer,
html[data-theme="dark"] .translator-card.tool-unified-active > .translator-box.is-input .box-body,
html[data-theme="dark"] .translator-card.tool-unified-active > .translator-box.is-output .box-body,
html[data-theme="dark"] .translator-card.tool-unified-active > .translator-box.is-output .lexi-output-wrap,
html[data-theme="dark"] .translator-card.tool-unified-active > .translator-box.is-output .lexi-output,
html[data-theme="dark"] .lexi-input,
html[data-theme="dark"] .lexi-output,
html[data-theme="dark"] .lexi-input-wrap,
html[data-theme="dark"] .lexi-output-wrap {
    background: #202224 !important;
    color: #d7dce2 !important;
    border-color: var(--lexi-border) !important;
}

html[data-theme="dark"] .lexi-input::placeholder,
html[data-theme="dark"] .lexi-output.is-empty {
    color: #7f8996 !important;
}

html[data-theme="dark"] .box-bar,
html[data-theme="dark"] .box-footer,
html[data-theme="dark"] .tool-policy-banner,
html[data-theme="dark"] .tool-detect-hint,
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .tool-related-chip {
    background: #24272a !important;
    border-color: var(--lexi-border) !important;
    color: #d7dce2 !important;
}

html[data-theme="dark"] .translate-btn,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-home,
html[data-theme="dark"] .view-all-btn {
    background: #2f5f9c !important;
    border-color: #2f5f9c !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .copy-btn,
html[data-theme="dark"] .clear-btn,
html[data-theme="dark"] .swap-btn {
    background: #252a30 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #dbeafe !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] body.home-page .footer,
html[data-theme="dark"] body.info-page .footer {
    background: #181a1b !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
}

html[data-theme="dark"] .footer::before,
html[data-theme="dark"] .footer > .footer-top-line {
    background: rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-social-label {
    color: #aeb6c2 !important;
}

html[data-theme="dark"] .footer-socials a {
    background: #24272a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #dbeafe !important;
}

html[data-theme="dark"] .footer-socials a:hover,
html[data-theme="dark"] .footer-socials a:focus-visible {
    background: #2f5f9c !important;
    border-color: #2f5f9c !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .lexi-output .lexi-output-translit {
    border-color: rgba(125, 211, 252, 0.26) !important;
    background: rgba(125, 211, 252, 0.08) !important;
    color: #d6e0ece0 !important;
}

@media (max-width: 768px) {
    .theme-toggle {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    .theme-toggle-label {
        display: none !important;
    }

    html[data-theme="dark"] .nav-links.is-open {
        background: #181a1b !important;
        color: #d7dce2 !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn {
        color: #e5edf7 !important;
        -webkit-text-fill-color: #e5edf7 !important;
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a,
    html[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a {
        color: #d7dce2 !important;
        -webkit-text-fill-color: #d7dce2 !important;
    }
}

/* Absolute dark-theme finish: black UI, white text, neon blue accents, dark tables. */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] main {
    background: #050607 !important;
    color: #eef4fb !important;
}

html[data-theme="dark"] body {
    background:
        radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.08), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(47, 95, 156, 0.16), transparent 32%),
        #050607 !important;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] body.home-page .navbar {
    background: rgba(5, 6, 7, 0.94) !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.16) !important;
    backdrop-filter: blur(18px) !important;
}

html[data-theme="dark"] .announcement-bar,
html[data-theme="dark"] body.home-page .announcement-bar {
    background: #080a0c !important;
    color: #c9f1ff !important;
    border-bottom: 1px solid rgba(125, 211, 252, 0.14) !important;
}

html[data-theme="dark"] .theme-toggle {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.32) !important;
    color: #7dd3fc !important;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.06), 0 0 18px rgba(56, 189, 248, 0.16) !important;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
    background: #10151a !important;
    color: #ffffff !important;
    border-color: rgba(125, 211, 252, 0.6) !important;
}

html[data-theme="dark"] .nav-logo,
html[data-theme="dark"] .nav-logo *,
html[data-theme="dark"] .nav-logo-lexi,
html[data-theme="dark"] .nav-logo-translator {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] .nav-logo-lexi {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
}

html[data-theme="dark"] .nav-links > a,
html[data-theme="dark"] .nav-dropdown-btn,
html[data-theme="dark"] .nav-simple-dropdown a {
    color: #e5edf7 !important;
    -webkit-text-fill-color: #e5edf7 !important;
}

html[data-theme="dark"] .nav-simple-dropdown,
html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown {
    background: #090b0d !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(125, 211, 252, 0.05) !important;
}

html[data-theme="dark"] .nav-dropdown-btn:hover,
html[data-theme="dark"] .nav-links > a:hover,
html[data-theme="dark"] .nav-has-dropdown.is-open .nav-dropdown-btn,
html[data-theme="dark"] .nav-simple-dropdown a:hover,
html[data-theme="dark"] .nav-simple-dropdown a:focus-visible {
    background: rgba(14, 165, 233, 0.16) !important;
    border-color: rgba(125, 211, 252, 0.36) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .content-block h2,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .tool-title,
html[data-theme="dark"] .card-name,
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] strong,
html[data-theme="dark"] b {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .content-card li,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .card-desc,
html[data-theme="dark"] .tool-policy-banner,
html[data-theme="dark"] .tool-detect-hint {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] a,
html[data-theme="dark"] .card-btn,
html[data-theme="dark"] .tool-related-chip,
html[data-theme="dark"] .quick-link {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
}

html[data-theme="dark"] .tool-hero-wrap,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .translator-card,
html[data-theme="dark"] .translator-box,
html[data-theme="dark"] .related-tool-card,
html[data-theme="dark"] .popular-chip,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .tool-related-links,
html[data-theme="dark"] .tool-policy-banner,
html[data-theme="dark"] .tool-detect-hint,
html[data-theme="dark"] body.home-page .home-hero-shell,
html[data-theme="dark"] body.home-page .about-section,
html[data-theme="dark"] body.home-page .homepage-faq,
html[data-theme="dark"] body.home-page .popular-section,
html[data-theme="dark"] body.home-page .popular-card,
html[data-theme="dark"] body.home-page .popular-chip {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
    color: #eef4fb !important;
    box-shadow: 0 0 0 1px rgba(125, 211, 252, 0.04), 0 18px 46px rgba(0, 0, 0, 0.26) !important;
}

html[data-theme="dark"] .tool-hero-wrap,
html[data-theme="dark"] body.home-page .home-hero-shell {
    background:
        linear-gradient(135deg, rgba(10, 13, 18, 0.96), rgba(5, 6, 7, 0.98)),
        radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.18), transparent 34%) !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] {
    background:
        radial-gradient(circle at 18% 8%, rgba(125, 211, 252, 0.18), transparent 28%),
        linear-gradient(135deg, #06080a 0%, #0b1117 58%, #071018 100%) !important;
    border: 1px solid rgba(125, 211, 252, 0.24) !important;
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .card,
html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .manual-top-card {
    background: linear-gradient(180deg, rgba(17, 24, 31, 0.98), rgba(10, 13, 17, 0.98)) !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .section-kicker {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
    border-color: rgba(125, 211, 252, 0.34) !important;
    background: rgba(125, 211, 252, 0.08) !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .section-title,
html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .card-name,
html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .view-all-btn {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .card-desc {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] body.home-page main > section[data-manual-showcase="true"] .card-btn {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
}

html[data-theme="dark"] body.home-page .search-panel,
html[data-theme="dark"] body.home-page .search-shell,
html[data-theme="dark"] body.home-page .search-suggestions,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .search-shell,
html[data-theme="dark"] .search-suggestions {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .search-input,
html[data-theme="dark"] .lexi-input,
html[data-theme="dark"] .lexi-output {
    background: #080a0c !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder,
html[data-theme="dark"] .search-input::placeholder,
html[data-theme="dark"] .lexi-input::placeholder,
html[data-theme="dark"] .lexi-output.is-empty {
    color: #8b98a8 !important;
    -webkit-text-fill-color: #8b98a8 !important;
}

html[data-theme="dark"] .translator-card.tool-unified-active,
html[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-header,
html[data-theme="dark"] .translator-card.tool-unified-active > .translator-box,
html[data-theme="dark"] .translator-card.tool-unified-active .box-bar,
html[data-theme="dark"] .translator-card.tool-unified-active .box-body,
html[data-theme="dark"] .translator-card.tool-unified-active .box-footer,
html[data-theme="dark"] .lexi-input-wrap,
html[data-theme="dark"] .lexi-output-wrap {
    background: #090b0d !important;
    border-color: rgba(125, 211, 252, 0.16) !important;
}

html[data-theme="dark"] .lang-label,
html[data-theme="dark"] .tool-unified-label,
html[data-theme="dark"] .char-counter {
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .translate-btn,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-home,
html[data-theme="dark"] .view-all-btn {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    border-color: rgba(125, 211, 252, 0.58) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.24) !important;
}

html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .copy-btn,
html[data-theme="dark"] .clear-btn,
html[data-theme="dark"] .swap-btn {
    background: #10151a !important;
    border-color: rgba(125, 211, 252, 0.22) !important;
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
}

html[data-theme="dark"] table,
html[data-theme="dark"] .content-card table {
    background: #090b0d !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
    color: #e5edf7 !important;
}

html[data-theme="dark"] th,
html[data-theme="dark"] .content-card th,
html[data-theme="dark"] .content-card thead tr {
    background: #10151a !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
}

html[data-theme="dark"] td,
html[data-theme="dark"] .content-card td,
html[data-theme="dark"] .content-card tbody tr {
    background: #090b0d !important;
    border-color: rgba(125, 211, 252, 0.14) !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] body.home-page .homepage-faq .faq-question,
html[data-theme="dark"] body.home-page .homepage-faq .faq-answer {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
}

html[data-theme="dark"] .faq-question:hover {
    background: #10151a !important;
    border-color: rgba(125, 211, 252, 0.32) !important;
}

html[data-theme="dark"] .tool-related-label,
html[data-theme="dark"] body.home-page .popular-head h2 {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] .tool-related-label::before,
html[data-theme="dark"] .tool-related-label::after,
html[data-theme="dark"] body.home-page .popular-head h2::before,
html[data-theme="dark"] body.home-page .popular-head h2::after {
    background: linear-gradient(90deg, transparent, #38bdf8, transparent) !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] body.home-page .footer,
html[data-theme="dark"] body.info-page .footer {
    background: #050607 !important;
    border-color: rgba(125, 211, 252, 0.14) !important;
}

html[data-theme="dark"] .footer::before,
html[data-theme="dark"] .footer > .footer-top-line {
    background: rgba(125, 211, 252, 0.24) !important;
}

html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-social-label {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] .footer a {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
}

html[data-theme="dark"] .footer-socials a {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.28) !important;
    color: #7dd3fc !important;
}

html[data-theme="dark"] .footer-socials a:hover {
    background: #0ea5e9 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.28) !important;
}

@media (max-width: 768px) {
    html[data-theme="dark"] .nav-links.is-open {
        background: #050607 !important;
        border-color: rgba(125, 211, 252, 0.14) !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn {
        color: #f8fbff !important;
        -webkit-text-fill-color: #f8fbff !important;
        border-bottom-color: rgba(125, 211, 252, 0.18) !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown,
    html[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown {
        background: #090b0d !important;
        border-color: rgba(125, 211, 252, 0.16) !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a,
    html[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a {
        color: #e5edf7 !important;
        -webkit-text-fill-color: #e5edf7 !important;
    }

    html[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    html[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji {
        background: #0ea5e9 !important;
        border-color: #38bdf8 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }
}

/* Dark theme final polish lock: remove leftover light surfaces and make every panel intentional. */
html[data-theme="dark"] {
    --dark-page: #07080a4d;
    --dark-shell: #080b0f;
    --dark-panel: #0c1117;
    --dark-panel-2: #111821;
    --dark-panel-3: #151d27;
    --dark-line: rgba(125, 211, 252, 0.2);
    --dark-line-strong: rgba(125, 211, 252, 0.34);
    --dark-text: #f5f9ff;
    --dark-body: #d6e0ec;
    --dark-muted: #9fb0c3;
    --dark-neon: #79B8F4;
    --dark-blue: #2a7cff;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] main,
html[data-theme="dark"] .page-shell,
html[data-theme="dark"] .page,
html[data-theme="dark"] .page-wrap {
    background: var(--dark-page) !important;
    background-color: var(--dark-page) !important;
}

html[data-theme="dark"] .tool-breadcrumb-strip,
html[data-theme="dark"] .info-breadcrumb-strip,
html[data-theme="dark"] .tool-breadcrumb-inner,
html[data-theme="dark"] .info-breadcrumb-inner {
    background: var(--dark-page) !important;
    border-color: rgba(125, 211, 252, 0.12) !important;
    color: var(--dark-muted) !important;
}

html[data-theme="dark"] .tool-breadcrumb-inner a,
html[data-theme="dark"] .info-breadcrumb-inner a,
html[data-theme="dark"] .tool-breadcrumb-inner span:not(.is-current),
html[data-theme="dark"] .info-breadcrumb-inner span:not(.is-current) {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

html[data-theme="dark"] .tool-breadcrumb-inner .is-current,
html[data-theme="dark"] .info-breadcrumb-inner .is-current,
html.theme-dark .tool-breadcrumb-inner .is-current,
html.theme-dark .info-breadcrumb-inner .is-current,
body[data-theme="dark"] .tool-breadcrumb-inner .is-current,
body[data-theme="dark"] .info-breadcrumb-inner .is-current {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] .tool-hero-wrap,
html[data-theme="dark"] body:not(.home-page):not(.info-page) .tool-hero-wrap,
html[data-theme="dark"] body.info-page .hero,
html[data-theme="dark"] body.home-page .home-hero-shell {
    background:
        radial-gradient(circle at 12% 0%, rgba(103, 216, 255, 0.12), transparent 32%),
        linear-gradient(145deg, #080b0f 0%, #0b1016 54%, #050607 100%) !important;
    border: 1px solid var(--dark-line) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] .content-block,
html[data-theme="dark"] body:not(.home-page):not(.info-page) .tool-hero-wrap + .content-block,
html[data-theme="dark"] body.info-page .content-block,
html[data-theme="dark"] body.home-page .about-section,
html[data-theme="dark"] body.home-page .homepage-faq,
html[data-theme="dark"] body.home-page .popular-section {
    background: transparent !important;
}

html[data-theme="dark"] .content-card,
html[data-theme="dark"] body.info-page .content-card,
html[data-theme="dark"] body.home-page .about-inner,
html[data-theme="dark"] body.home-page .about-section,
html[data-theme="dark"] body.home-page .homepage-faq .faq-item,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .tool-related-links,
html[data-theme="dark"] .tool-related-chip,
html[data-theme="dark"] .related-tool-card,
html[data-theme="dark"] .popular-chip {
    background: linear-gradient(180deg, var(--dark-panel) 0%, #090d12 100%) !important;
    border: 1px solid var(--dark-line) !important;
    color: var(--dark-body) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] .content-card *,
html[data-theme="dark"] body.home-page .about-section *,
html[data-theme="dark"] body.home-page .about-inner *,
html[data-theme="dark"] .faq-item *,
html[data-theme="dark"] .tool-related-chip *,
html[data-theme="dark"] .popular-chip * {
    border-color: var(--dark-line) !important;
}

html[data-theme="dark"] .content-card h2,
html[data-theme="dark"] .content-card h3,
html[data-theme="dark"] .content-card h4,
html[data-theme="dark"] .content-block h2,
html[data-theme="dark"] body.home-page .about-inner h2,
html[data-theme="dark"] body.home-page .homepage-faq h2,
html[data-theme="dark"] .tool-related-label,
html[data-theme="dark"] .faq-question {
    color: var(--dark-text) !important;
    -webkit-text-fill-color: var(--dark-text) !important;
}

html[data-theme="dark"] .content-card p,
html[data-theme="dark"] .content-card li,
html[data-theme="dark"] .content-card td,
html[data-theme="dark"] .content-card div,
html[data-theme="dark"] body.home-page .about-author-block p,
html[data-theme="dark"] body.home-page .about-inner p,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .tool-policy-banner,
html[data-theme="dark"] .tool-detect-hint {
    color: var(--dark-body) !important;
    -webkit-text-fill-color: var(--dark-body) !important;
}

html[data-theme="dark"] .content-card a,
html[data-theme="dark"] .content-block a,
html[data-theme="dark"] .tool-related-chip-title,
html[data-theme="dark"] .tool-related-chip-arrow,
html[data-theme="dark"] .popular-chip,
html[data-theme="dark"] .popular-chip small {
    color: var(--dark-neon) !important;
    -webkit-text-fill-color: var(--dark-neon) !important;
}

html[data-theme="dark"] .content-card table,
html[data-theme="dark"] .content-card table *,
html[data-theme="dark"] table,
html[data-theme="dark"] table * {
    border-color: rgba(125, 211, 252, 0.18) !important;
}

html[data-theme="dark"] .content-card table,
html[data-theme="dark"] table {
    background: #070a0e !important;
    border: 1px solid rgba(125, 211, 252, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] .content-card thead,
html[data-theme="dark"] .content-card thead tr,
html[data-theme="dark"] .content-card th,
html[data-theme="dark"] table thead,
html[data-theme="dark"] table thead tr,
html[data-theme="dark"] table th {
    background: #142033 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] .content-card tbody,
html[data-theme="dark"] .content-card tbody tr,
html[data-theme="dark"] .content-card tbody tr td,
html[data-theme="dark"] .content-card tbody tr:nth-child(odd),
html[data-theme="dark"] .content-card tbody tr:nth-child(odd) td,
html[data-theme="dark"] table tbody,
html[data-theme="dark"] table tbody tr,
html[data-theme="dark"] table tbody tr td,
html[data-theme="dark"] table tbody tr:nth-child(odd),
html[data-theme="dark"] table tbody tr:nth-child(odd) td {
    background: #080b0f !important;
    color: #e6eef8 !important;
    -webkit-text-fill-color: #e6eef8 !important;
}

html[data-theme="dark"] .content-card tbody tr:nth-child(even),
html[data-theme="dark"] .content-card tbody tr:nth-child(even) td,
html[data-theme="dark"] .content-card tbody tr:hover,
html[data-theme="dark"] .content-card tbody tr:hover td,
html[data-theme="dark"] table tbody tr:nth-child(even),
html[data-theme="dark"] table tbody tr:nth-child(even) td,
html[data-theme="dark"] table tbody tr:hover,
html[data-theme="dark"] table tbody tr:hover td {
    background: #0e141c !important;
    color: #e6eef8 !important;
    -webkit-text-fill-color: #e6eef8 !important;
}

html[data-theme="dark"] .translator-card,
html[data-theme="dark"] .translator-card.tool-unified-active,
html[data-theme="dark"] .tool-hero-wrap .translator-card,
html[data-theme="dark"] .tool-hero-wrap .translator-card.tool-unified-active {
    background: #06080b !important;
    border: 1px solid rgba(125, 211, 252, 0.28) !important;
    box-shadow: 0 18px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(103, 216, 255, 0.04) !important;
}

html[data-theme="dark"] .translator-box,
html[data-theme="dark"] .translator-box.is-input,
html[data-theme="dark"] .translator-box.is-output,
html[data-theme="dark"] .translator-card .translator-box,
html[data-theme="dark"] .translator-card .translator-box.is-input,
html[data-theme="dark"] .translator-card .translator-box.is-output {
    background: #070a0e !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
}

html[data-theme="dark"] .translator-box .box-bar,
html[data-theme="dark"] .translator-box .box-footer,
html[data-theme="dark"] .translator-card .box-bar,
html[data-theme="dark"] .translator-card .box-footer,
html[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-header {
    background: #090d12 !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
}

html[data-theme="dark"] .translator-box .box-body,
html[data-theme="dark"] .translator-box.is-input .box-body,
html[data-theme="dark"] .translator-box.is-output .box-body,
html[data-theme="dark"] .lexi-input-wrap,
html[data-theme="dark"] .lexi-output-wrap,
html[data-theme="dark"] .lexi-input,
html[data-theme="dark"] .lexi-output {
    background: #050709 !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] .translator-box.is-output .box-body,
html[data-theme="dark"] .translator-box.is-output .lexi-output-wrap,
html[data-theme="dark"] .translator-box.is-output .lexi-output {
    background: #11161d !important;
}

html[data-theme="dark"] .translator-card .translator-box.is-input .box-body,
html.theme-dark .translator-card .translator-box.is-input .box-body,
body[data-theme="dark"] .translator-card .translator-box.is-input .box-body {
    background: #050709 !important;
    color: #d7dce2 !important;
    -webkit-text-fill-color: #d7dce2 !important;
}

html[data-theme="dark"] .translator-card .translator-box.is-output .box-body,
html[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output-wrap,
html[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output,
html.theme-dark .translator-card .translator-box.is-output .box-body,
html.theme-dark .translator-card .translator-box.is-output .lexi-output-wrap,
html.theme-dark .translator-card .translator-box.is-output .lexi-output,
body[data-theme="dark"] .translator-card .translator-box.is-output .box-body,
body[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output-wrap,
body[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output {
    background: rgb(51 65 85 / 14%) !important;
    color: #d7dce2 !important;
    -webkit-text-fill-color: #d7dce2 !important;
}

html[data-theme="dark"] .translator-card .translator-box,
html.theme-dark .translator-card .translator-box,
body[data-theme="dark"] .translator-card .translator-box {
    background: #070a0e !important;
    border-color: rgba(103, 216, 255, 0.34) !important;
}

html[data-theme="dark"] .translator-card .box-bar,
html[data-theme="dark"] .translator-card .box-footer,
html.theme-dark .translator-card .box-bar,
html.theme-dark .translator-card .box-footer,
body[data-theme="dark"] .translator-card .box-bar,
body[data-theme="dark"] .translator-card .box-footer {
    background: #070a0e !important;
    border-color: rgba(103, 216, 255, 0.24) !important;
}

html[data-theme="dark"] .translate-btn,
html[data-theme="dark"] .btn-primary.translate-btn {
    background: linear-gradient(135deg, #16c7ff 0%, #2d7bff 100%) !important;
    border: 1px solid rgba(151, 225, 255, 0.72) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: 0 0 24px rgba(22, 199, 255, 0.32) !important;
}

html[data-theme="dark"] .action-btn,
html[data-theme="dark"] .btn-icon,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .swap-btn,
html[data-theme="dark"] .tool-unified-swap-proxy {
    background: #0e1520 !important;
    border-color: rgba(103, 216, 255, 0.36) !important;
    color: var(--dark-neon) !important;
    -webkit-text-fill-color: var(--dark-neon) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .action-btn svg,
html[data-theme="dark"] .btn-icon svg,
html[data-theme="dark"] .icon-btn svg,
html[data-theme="dark"] .swap-btn svg,
html[data-theme="dark"] .tool-unified-swap-proxy svg {
    color: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .tool-related-chip,
html[data-theme="dark"] .popular-chip {
    background: #0b1016 !important;
    border-color: rgba(103, 216, 255, 0.28) !important;
}

html[data-theme="dark"] .tool-related-chip:hover,
html[data-theme="dark"] .popular-chip:hover {
    background: #111b26 !important;
    border-color: rgba(103, 216, 255, 0.52) !important;
    box-shadow: 0 0 22px rgba(22, 199, 255, 0.12) !important;
}

html[data-theme="dark"] .tool-related-chip-icon,
html[data-theme="dark"] .card-emoji,
html[data-theme="dark"] .nav-link-emoji {
    background: rgba(103, 216, 255, 0.14) !important;
    border-color: rgba(103, 216, 255, 0.34) !important;
    color: var(--dark-neon) !important;
    -webkit-text-fill-color: var(--dark-neon) !important;
}

html[data-theme="dark"] body.home-page .about-author-block img {
    border: 1px solid rgba(103, 216, 255, 0.3) !important;
    box-shadow: 0 0 22px rgba(103, 216, 255, 0.12) !important;
}

html[data-theme="dark"] .faq-question::after,
html[data-theme="dark"] body.home-page .homepage-faq .faq-question::after {
    border-color: var(--dark-neon) !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer *,
html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-social-label {
    color: var(--dark-body) !important;
    -webkit-text-fill-color: var(--dark-body) !important;
}

html[data-theme="dark"] .footer a,
html[data-theme="dark"] .footer-links a {
    color: var(--dark-neon) !important;
    -webkit-text-fill-color: var(--dark-neon) !important;
}

/* Body-theme mirror for pages/screenshots where the nav script applies the theme after load. */
body[data-theme="dark"],
body[data-theme="dark"] main,
body[data-theme="dark"] .site-main,
body[data-theme="dark"] .page-wrap {
    background: #050607 !important;
    color: #f5f9ff !important;
}

body[data-theme="dark"] .tool-hero-wrap,
body[data-theme="dark"] .content-card,
body[data-theme="dark"] .tool-related-links,
body[data-theme="dark"] .tool-related-chip,
body[data-theme="dark"] .popular-chip,
body[data-theme="dark"] .faq-item,
body[data-theme="dark"] .about-section,
body[data-theme="dark"] .about-inner,
body[data-theme="dark"] .homepage-faq,
body[data-theme="dark"] .translator-card,
body[data-theme="dark"] .translator-box {
    background: linear-gradient(180deg, #0c1117 0%, #080b0f 100%) !important;
    border-color: rgba(125, 211, 252, 0.24) !important;
    color: #d6e0ec !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

body[data-theme="dark"] .tool-breadcrumb-strip,
body[data-theme="dark"] .info-breadcrumb-strip,
body[data-theme="dark"] .tool-breadcrumb-inner,
body[data-theme="dark"] .info-breadcrumb-inner {
    background: #050607 !important;
    color: #9fb0c3 !important;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] .hero h1,
body[data-theme="dark"] .content-block h2,
body[data-theme="dark"] .faq-question,
body[data-theme="dark"] .card-name,
body[data-theme="dark"] .tool-related-label {
    color: #f5f9ff !important;
    -webkit-text-fill-color: #f5f9ff !important;
}

body[data-theme="dark"] p,
body[data-theme="dark"] li,
body[data-theme="dark"] td,
body[data-theme="dark"] .hero p,
body[data-theme="dark"] .content-card p,
body[data-theme="dark"] .content-card li,
body[data-theme="dark"] .faq-answer,
body[data-theme="dark"] .card-desc,
body[data-theme="dark"] .about-author-block p {
    color: #d6e0ec !important;
    -webkit-text-fill-color: #d6e0ec !important;
}

body[data-theme="dark"] a,
body[data-theme="dark"] .tool-related-chip-title,
body[data-theme="dark"] .tool-related-chip-arrow,
body[data-theme="dark"] .popular-chip,
body[data-theme="dark"] .popular-chip small,
body[data-theme="dark"] .card-btn {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

body[data-theme="dark"] table,
body[data-theme="dark"] .content-card table,
body[data-theme="dark"] table tbody,
body[data-theme="dark"] table tbody tr,
body[data-theme="dark"] table tbody tr td,
body[data-theme="dark"] table tbody tr:nth-child(even),
body[data-theme="dark"] table tbody tr:nth-child(even) td,
body[data-theme="dark"] table tbody tr:hover,
body[data-theme="dark"] table tbody tr:hover td,
body[data-theme="dark"] .content-card tbody tr,
body[data-theme="dark"] .content-card tbody tr td,
body[data-theme="dark"] .content-card tbody tr:nth-child(even),
body[data-theme="dark"] .content-card tbody tr:nth-child(even) td,
body[data-theme="dark"] .content-card tbody tr:hover,
body[data-theme="dark"] .content-card tbody tr:hover td {
    background: #080b0f !important;
    border-color: rgba(125, 211, 252, 0.18) !important;
    color: #e6eef8 !important;
    -webkit-text-fill-color: #e6eef8 !important;
}

body[data-theme="dark"] table th,
body[data-theme="dark"] table thead tr,
body[data-theme="dark"] .content-card th,
body[data-theme="dark"] .content-card thead tr {
    background: #142033 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body[data-theme="dark"] .lexi-input,
body[data-theme="dark"] .lexi-output,
body[data-theme="dark"] .lexi-input-wrap,
body[data-theme="dark"] .lexi-output-wrap,
body[data-theme="dark"] .translator-box .box-body,
body[data-theme="dark"] .translator-box .box-bar,
body[data-theme="dark"] .translator-box .box-footer {
    background: #050709 !important;
    border-color: rgba(125, 211, 252, 0.2) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

body[data-theme="dark"] .translator-box.is-output .box-body,
body[data-theme="dark"] .translator-box.is-output .lexi-output-wrap,
body[data-theme="dark"] .translator-box.is-output .lexi-output {
    background: #11161d !important;
}

/* Tool-page dark-mode hard lock: changes the actual outer background behind the tool. */
html.theme-dark,
html.theme-dark body,
html.theme-dark body:not(.home-page):not(.info-page),
html.theme-dark body:not(.home-page):not(.info-page) main,
html.theme-dark body:not(.home-page):not(.info-page) .tool-page,
html.theme-dark body:not(.home-page):not(.info-page) .tool-main,
html.theme-dark body:not(.home-page):not(.info-page) .page-wrap,
html.theme-dark body:not(.home-page):not(.info-page) .tool-breadcrumb-strip,
html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap + .content-block {
    background: #050607 !important;
    background-color: #050607 !important;
    color: #f5f9ff !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap,
html.theme-dark body:not(.home-page):not(.info-page) section.tool-hero-wrap {
    background: #050607 !important;
    background-color: #050607 !important;
    border: 0 !important;
    box-shadow: none !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap::before,
html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap::after {
    background: transparent !important;
    opacity: 0 !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .hero,
html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap .hero,
html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip {
    background: #050607 !important;
    background-color: #050607 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #d6e0ec !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-related-links {
    background: #050607 !important;
    background-color: #050607 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    color: #d6e0ec !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip {
    background: #0b1016 !important;
    background-color: #0b1016 !important;
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    border-radius: 12px !important;
    color: #d6e0ec !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip:hover {
    background: #111b26 !important;
    background-color: #111b26 !important;
    border-color: rgba(103, 216, 255, 0.56) !important;
    box-shadow: 0 0 18px rgba(22, 199, 255, 0.12) !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .hero h1,
html.theme-dark body:not(.home-page):not(.info-page) .tool-hero-wrap .hero h1 {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    text-shadow: none !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .hero p,
html.theme-dark body:not(.home-page):not(.info-page) .tool-related-label,
html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip-title {
    color: #f5f9ff !important;
    -webkit-text-fill-color: #f5f9ff !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .hero p {
    color: #d6e0ec !important;
    -webkit-text-fill-color: #d6e0ec !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip-title,
html.theme-dark body:not(.home-page):not(.info-page) .tool-related-chip-arrow {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

html.theme-dark body:not(.home-page):not(.info-page) .content-block h2,
html.theme-dark body.info-page .content-block h2,
html[data-theme="dark"] body:not(.home-page):not(.info-page) .content-block h2,
body[data-theme="dark"]:not(.home-page):not(.info-page) .content-block h2 {
    background: linear-gradient(135deg, #1fa8dc 0%, #2b73ed 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid rgba(125, 211, 252, 0.42) !important;
    border-bottom: 0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon,
html.theme-dark .nav-dropdown-btn .nav-btn-icon,
body[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon svg,
html.theme-dark .nav-dropdown-btn .nav-btn-icon svg,
body[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon svg {
    color: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon svg *,
html.theme-dark .nav-dropdown-btn .nav-btn-icon svg *,
body[data-theme="dark"] .nav-dropdown-btn .nav-btn-icon svg * {
    stroke: currentColor !important;
    opacity: 1 !important;
}

html[data-theme="dark"] .faq-item,
html.theme-dark .faq-item,
body[data-theme="dark"] .faq-item {
    background: #070a0e !important;
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html[data-theme="dark"] .faq-question,
html.theme-dark .faq-question,
body[data-theme="dark"] .faq-question {
    background: #070a0e !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] .faq-answer,
html.theme-dark .faq-answer,
body[data-theme="dark"] .faq-answer {
    background: #0b1016 !important;
    border: 0 !important;
    border-top: 1px solid rgba(103, 216, 255, 0.22) !important;
    border-radius: 0 !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] .faq-item:not(.is-active) .faq-answer,
html.theme-dark .faq-item:not(.is-active) .faq-answer,
body[data-theme="dark"] .faq-item:not(.is-active) .faq-answer {
    border-top: 0 !important;
}

html[data-theme="dark"] body.home-page .home-hero-shell,
html.theme-dark body.home-page .home-hero-shell,
body[data-theme="dark"].home-page .home-hero-shell {
    background: var(--dark-page, #050607) !important;
    background-color: var(--dark-page, #050607) !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.home-page,
html[data-theme="dark"] body.home-page main,
html[data-theme="dark"] body.home-page .popular-tools,
html.theme-dark body.home-page,
html.theme-dark body.home-page main,
html.theme-dark body.home-page .popular-tools,
body[data-theme="dark"].home-page,
body[data-theme="dark"].home-page main,
body[data-theme="dark"].home-page .popular-tools {
    background: var(--dark-page, #050607) !important;
    background-color: var(--dark-page, #050607) !important;
}

@media (max-width: 640px) {
    body.home-page .home-hero-shell .search-container {
        width: calc(100% - 28px) !important;
        max-width: 520px !important;
        margin-top: 16px !important;
        padding: 0 !important;
    }

    body.home-page .home-hero-shell .search-container::before {
        left: 18px !important;
        width: 16px !important;
        height: 16px !important;
        background-size: 16px 16px !important;
    }

    body.home-page .home-hero-shell .search-input {
        min-height: 48px !important;
        height: 48px !important;
        padding: 12px 16px 12px 44px !important;
        border-radius: 12px !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    html[data-theme="dark"] body.home-page .home-hero-shell .search-input,
    html.theme-dark body.home-page .home-hero-shell .search-input,
    body[data-theme="dark"].home-page .home-hero-shell .search-input {
        background: #080a0c !important;
        border-color: rgba(125, 211, 252, 0.28) !important;
        color: #f8fbff !important;
        -webkit-text-fill-color: #f8fbff !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] body.home-page .home-hero-shell .search-input::placeholder,
    html.theme-dark body.home-page .home-hero-shell .search-input::placeholder,
    body[data-theme="dark"].home-page .home-hero-shell .search-input::placeholder {
        color: #9fb0c3 !important;
        -webkit-text-fill-color: #9fb0c3 !important;
    }
}

html[data-theme="dark"] body .nav-logo .nav-logo-wordmark,
html.theme-dark body .nav-logo .nav-logo-wordmark,
body[data-theme="dark"] .nav-logo .nav-logo-wordmark {
    gap: 3px !important;
    font-weight: 700 !important;
    letter-spacing: -0.032em !important;
}

html[data-theme="dark"] body .nav-logo .nav-logo-lexi,
html.theme-dark body .nav-logo .nav-logo-lexi,
body[data-theme="dark"] .nav-logo .nav-logo-lexi {
    color: #4fbce7 !important;
    background: linear-gradient(135deg, #4fbce7 0%, #6fa8f5 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

html[data-theme="dark"] body .nav-logo .nav-logo-translator,
html.theme-dark body .nav-logo .nav-logo-translator,
body[data-theme="dark"] .nav-logo .nav-logo-translator {
    color: #e6eef8 !important;
    -webkit-text-fill-color: #e6eef8 !important;
}

html[data-theme="dark"] body .footer-social-label,
html.theme-dark body .footer-social-label,
body[data-theme="dark"] .footer-social-label {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body .footer .footer-socials > a,
html[data-theme="dark"] body.home-page .footer .footer-socials > a,
html.theme-dark body .footer .footer-socials > a,
html.theme-dark body.home-page .footer .footer-socials > a,
body[data-theme="dark"] .footer .footer-socials > a,
body[data-theme="dark"].home-page .footer .footer-socials > a {
    background: #0b0d10 !important;
    border-color: rgba(125, 211, 252, 0.34) !important;
    color: #9fb0c3 !important;
    -webkit-text-fill-color: #9fb0c3 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .footer .footer-socials > a:hover,
html[data-theme="dark"] body .footer .footer-socials > a:focus-visible,
html[data-theme="dark"] body.home-page .footer .footer-socials > a:hover,
html[data-theme="dark"] body.home-page .footer .footer-socials > a:focus-visible,
html.theme-dark body .footer .footer-socials > a:hover,
html.theme-dark body .footer .footer-socials > a:focus-visible,
body[data-theme="dark"] .footer .footer-socials > a:hover,
body[data-theme="dark"] .footer .footer-socials > a:focus-visible {
    background: #0ea5e9 !important;
    border-color: #0ea5e9 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body.home-page .about-section,
html.theme-dark body.home-page .about-section,
body[data-theme="dark"].home-page .about-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .faq-item,
html.theme-dark body .faq-item,
body[data-theme="dark"] .faq-item,
html[data-theme="dark"] body.home-page .homepage-faq .faq-item,
html.theme-dark body.home-page .homepage-faq .faq-item,
body[data-theme="dark"].home-page .homepage-faq .faq-item {
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

html[data-theme="dark"] body .faq-question,
html.theme-dark body .faq-question,
body[data-theme="dark"] .faq-question,
html[data-theme="dark"] body.home-page .homepage-faq .faq-question,
html.theme-dark body.home-page .homepage-faq .faq-question,
body[data-theme="dark"].home-page .homepage-faq .faq-question {
    border: 0 !important;
    color: #e6eef8 !important;
    -webkit-text-fill-color: #e6eef8 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .faq-answer,
html[data-theme="dark"] body:not(.home-page):not(.info-page) .faq-answer,
html[data-theme="dark"] body:not(.home-page):not(.info-page) .content-block .faq-answer,
html.theme-dark body .faq-answer,
html.theme-dark body:not(.home-page):not(.info-page) .faq-answer,
html.theme-dark body:not(.home-page):not(.info-page) .content-block .faq-answer,
body[data-theme="dark"] .faq-answer,
body[data-theme="dark"]:not(.home-page):not(.info-page) .faq-answer,
body[data-theme="dark"]:not(.home-page):not(.info-page) .content-block .faq-answer,
html[data-theme="dark"] body.home-page .homepage-faq .faq-answer,
html.theme-dark body.home-page .homepage-faq .faq-answer,
body[data-theme="dark"].home-page .homepage-faq .faq-answer {
    background: #0b1016 !important;
    color: #d6e0ec !important;
    -webkit-text-fill-color: #d6e0ec !important;
    border-top: 1px solid rgba(103, 216, 255, 0.22) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .faq-item:not(.is-active) .faq-answer,
html.theme-dark body .faq-item:not(.is-active) .faq-answer,
body[data-theme="dark"] .faq-item:not(.is-active) .faq-answer,
html[data-theme="dark"] body.home-page .homepage-faq .faq-item:not(.is-active) .faq-answer,
html.theme-dark body.home-page .homepage-faq .faq-item:not(.is-active) .faq-answer,
body[data-theme="dark"].home-page .homepage-faq .faq-item:not(.is-active) .faq-answer {
    border-top: 0 !important;
}

html[data-theme="dark"] body .tool-policy-banner,
html.theme-dark body .tool-policy-banner,
body[data-theme="dark"] .tool-policy-banner {
    background: #070a0e !important;
    border-color: rgba(103, 216, 255, 0.34) !important;
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .tool-policy-usage,
html[data-theme="dark"] body .tool-policy-usage strong,
html.theme-dark body .tool-policy-usage,
html.theme-dark body .tool-policy-usage strong,
body[data-theme="dark"] .tool-policy-usage,
body[data-theme="dark"] .tool-policy-usage strong {
    color: #f8fbff !important;
    -webkit-text-fill-color: #f8fbff !important;
}

html[data-theme="dark"] body .tool-policy-bolt,
html.theme-dark body .tool-policy-bolt,
body[data-theme="dark"] .tool-policy-bolt {
    background: #111b26 !important;
    border-color: rgba(103, 216, 255, 0.44) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

html[data-theme="dark"] body .tool-policy-reset-pill,
html.theme-dark body .tool-policy-reset-pill,
body[data-theme="dark"] .tool-policy-reset-pill {
    background: #111b26 !important;
    border-color: rgba(103, 216, 255, 0.34) !important;
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

html[data-theme="dark"] body .tool-policy-reset-icon,
html.theme-dark body .tool-policy-reset-icon,
body[data-theme="dark"] .tool-policy-reset-icon {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

html[data-theme="dark"] body .translator-card .swap-btn,
html[data-theme="dark"] body .translator-card .swap-btn.btn,
html[data-theme="dark"] body .translator-card button.swap-btn,
html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-proxy,
html.theme-dark body .translator-card .swap-btn,
html.theme-dark body .translator-card .swap-btn.btn,
html.theme-dark body .translator-card button.swap-btn,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-proxy,
body[data-theme="dark"] .translator-card .swap-btn,
body[data-theme="dark"] .translator-card .swap-btn.btn,
body[data-theme="dark"] .translator-card button.swap-btn,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-proxy {
    background: #111b26 !important;
    border-color: rgba(103, 216, 255, 0.42) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.home-page .homepage-faq,
html.theme-dark body.home-page .homepage-faq,
body[data-theme="dark"].home-page .homepage-faq {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .content-card ul li::marker,
html.theme-dark body .content-card ul li::marker,
body[data-theme="dark"] .content-card ul li::marker {
    color: #79B8F4 !important;
}

html[data-theme="dark"] body .content-card ol li::before,
html.theme-dark body .content-card ol li::before,
body[data-theme="dark"] .content-card ol li::before {
    background: #111b26 !important;
    border: 1px solid rgba(103, 216, 255, 0.44) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
}

html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot {
    background: #070a0e !important;
}

html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot::before,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot::before,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot::before {
    background: #070a0e !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot button.swap-btn,
html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot button.swap-btn,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot button.swap-btn,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy {
    background: #111b26 !important;
    border: 1px solid rgba(103, 216, 255, 0.58) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: 0 0 0 1px rgba(103, 216, 255, 0.08) !important;
}

html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn svg,
html[data-theme="dark"] body .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy svg,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn svg,
html.theme-dark body .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy svg,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot .swap-btn svg,
body[data-theme="dark"] .translator-card.tool-unified-active .tool-unified-swap-slot .tool-unified-swap-proxy svg {
    color: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .page,
html[data-theme="dark"] .page-wrap,
html.theme-dark,
html.theme-dark body,
html.theme-dark main,
html.theme-dark .site-main,
html.theme-dark .page,
html.theme-dark .page-wrap,
body[data-theme="dark"],
body[data-theme="dark"] main,
body[data-theme="dark"] .site-main,
body[data-theme="dark"] .page,
body[data-theme="dark"] .page-wrap {
    background: #07080a4d !important;
    background-color: #07080a4d !important;
}

html[data-theme="dark"] body .translator-card .translator-box.is-output .box-body,
html[data-theme="dark"] body .translator-card .translator-box.is-output .lexi-output-wrap,
html[data-theme="dark"] body .translator-card .translator-box.is-output .lexi-output,
html.theme-dark body .translator-card .translator-box.is-output .box-body,
html.theme-dark body .translator-card .translator-box.is-output .lexi-output-wrap,
html.theme-dark body .translator-card .translator-box.is-output .lexi-output,
body[data-theme="dark"] .translator-card .translator-box.is-output .box-body,
body[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output-wrap,
body[data-theme="dark"] .translator-card .translator-box.is-output .lexi-output {
    background: rgb(51 65 85 / 14%) !important;
    background-color: rgb(51 65 85 / 14%) !important;
}

html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-output,
html[data-theme="dark"] body #lexi-tool .translator-card.tool-unified-active > .translator-box.is-output,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-output .box-body,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-output .lexi-output-wrap,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-output .lexi-output,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-output,
html.theme-dark body #lexi-tool .translator-card.tool-unified-active > .translator-box.is-output,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-output .box-body,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-output .lexi-output-wrap,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-output .lexi-output,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-output,
body[data-theme="dark"] #lexi-tool .translator-card.tool-unified-active > .translator-box.is-output,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-output .box-body,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-output .lexi-output-wrap,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-output .lexi-output {
    background: rgb(51 65 85 / 14%) !important;
    background-color: rgb(51 65 85 / 14%) !important;
}

html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-input,
html[data-theme="dark"] body #lexi-tool .translator-card.tool-unified-active > .translator-box.is-input,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-input .box-body,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-input .lexi-input-wrap,
html[data-theme="dark"] body #lexi-tool .translator-card .translator-box.is-input .lexi-input,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-input,
html.theme-dark body #lexi-tool .translator-card.tool-unified-active > .translator-box.is-input,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-input .box-body,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-input .lexi-input-wrap,
html.theme-dark body #lexi-tool .translator-card .translator-box.is-input .lexi-input,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-input,
body[data-theme="dark"] #lexi-tool .translator-card.tool-unified-active > .translator-box.is-input,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-input .box-body,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-input .lexi-input-wrap,
body[data-theme="dark"] #lexi-tool .translator-card .translator-box.is-input .lexi-input {
    background: #07080a4d !important;
    background-color: #07080a4d !important;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after,
html[data-theme="dark"] main,
html[data-theme="dark"] .page-shell,
html.theme-dark,
html.theme-dark body,
html.theme-dark body::before,
html.theme-dark body::after,
html.theme-dark main,
html.theme-dark .page-shell,
body[data-theme="dark"],
body[data-theme="dark"]::before,
body[data-theme="dark"]::after,
body[data-theme="dark"] main,
body[data-theme="dark"] .page-shell,
body.theme-dark,
body.theme-dark::before,
body.theme-dark::after,
body.theme-dark main,
body.theme-dark .page-shell {
    background: #07080a4d !important;
    background-color: #07080a4d !important;
}

html[data-theme="dark"] body section,
html[data-theme="dark"] body .tool-hero-wrap,
html[data-theme="dark"] body .content-block,
html[data-theme="dark"] body .hero,
html[data-theme="dark"] body .faq-list,
html[data-theme="dark"] body .tool-related-links,
html[data-theme="dark"] body.home-page .popular-tools,
html[data-theme="dark"] body.home-page .popular-section,
html[data-theme="dark"] body.home-page .about-section,
html[data-theme="dark"] body.home-page .homepage-faq,
html.theme-dark body section,
html.theme-dark body .tool-hero-wrap,
html.theme-dark body .content-block,
html.theme-dark body .hero,
html.theme-dark body .faq-list,
html.theme-dark body .tool-related-links,
html.theme-dark body.home-page .popular-tools,
html.theme-dark body.home-page .popular-section,
html.theme-dark body.home-page .about-section,
html.theme-dark body.home-page .homepage-faq,
body[data-theme="dark"] section,
body[data-theme="dark"] .tool-hero-wrap,
body[data-theme="dark"] .content-block,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .faq-list,
body[data-theme="dark"] .tool-related-links,
body[data-theme="dark"].home-page .popular-tools,
body[data-theme="dark"].home-page .popular-section,
body[data-theme="dark"].home-page .about-section,
body[data-theme="dark"].home-page .homepage-faq,
body.theme-dark section,
body.theme-dark .tool-hero-wrap,
body.theme-dark .content-block,
body.theme-dark .hero,
body.theme-dark .faq-list,
body.theme-dark .tool-related-links,
body.theme-dark.home-page .popular-tools,
body.theme-dark.home-page .popular-section,
body.theme-dark.home-page .about-section,
body.theme-dark.home-page .homepage-faq {
    background: #07080a4d !important;
    background-color: #07080a4d !important;
}

html[data-theme="dark"] body section,
html[data-theme="dark"] body section::before,
html[data-theme="dark"] body section::after,
html[data-theme="dark"] body .tool-hero-wrap,
html[data-theme="dark"] body .tool-hero-wrap::before,
html[data-theme="dark"] body .tool-hero-wrap::after,
html[data-theme="dark"] body .content-block,
html[data-theme="dark"] body .content-block::before,
html[data-theme="dark"] body .content-block::after,
html[data-theme="dark"] body .hero,
html[data-theme="dark"] body .hero::before,
html[data-theme="dark"] body .hero::after,
html[data-theme="dark"] body .faq-list,
html[data-theme="dark"] body .tool-related-links,
html[data-theme="dark"] body.home-page .popular-tools,
html[data-theme="dark"] body.home-page .popular-section,
html[data-theme="dark"] body.home-page .about-section,
html[data-theme="dark"] body.home-page .homepage-faq,
html.theme-dark body section,
html.theme-dark body section::before,
html.theme-dark body section::after,
html.theme-dark body .tool-hero-wrap,
html.theme-dark body .tool-hero-wrap::before,
html.theme-dark body .tool-hero-wrap::after,
html.theme-dark body .content-block,
html.theme-dark body .content-block::before,
html.theme-dark body .content-block::after,
html.theme-dark body .hero,
html.theme-dark body .hero::before,
html.theme-dark body .hero::after,
html.theme-dark body .faq-list,
html.theme-dark body .tool-related-links,
html.theme-dark body.home-page .popular-tools,
html.theme-dark body.home-page .popular-section,
html.theme-dark body.home-page .about-section,
html.theme-dark body.home-page .homepage-faq,
body[data-theme="dark"] section,
body[data-theme="dark"] section::before,
body[data-theme="dark"] section::after,
body[data-theme="dark"] .tool-hero-wrap,
body[data-theme="dark"] .tool-hero-wrap::before,
body[data-theme="dark"] .tool-hero-wrap::after,
body[data-theme="dark"] .content-block,
body[data-theme="dark"] .content-block::before,
body[data-theme="dark"] .content-block::after,
body[data-theme="dark"] .hero,
body[data-theme="dark"] .hero::before,
body[data-theme="dark"] .hero::after,
body[data-theme="dark"] .faq-list,
body[data-theme="dark"] .tool-related-links,
body[data-theme="dark"].home-page .popular-tools,
body[data-theme="dark"].home-page .popular-section,
body[data-theme="dark"].home-page .about-section,
body[data-theme="dark"].home-page .homepage-faq,
body.theme-dark section,
body.theme-dark section::before,
body.theme-dark section::after,
body.theme-dark .tool-hero-wrap,
body.theme-dark .tool-hero-wrap::before,
body.theme-dark .tool-hero-wrap::after,
body.theme-dark .content-block,
body.theme-dark .content-block::before,
body.theme-dark .content-block::after,
body.theme-dark .hero,
body.theme-dark .hero::before,
body.theme-dark .hero::after,
body.theme-dark .faq-list,
body.theme-dark .tool-related-links,
body.theme-dark.home-page .popular-tools,
body.theme-dark.home-page .popular-section,
body.theme-dark.home-page .about-section,
body.theme-dark.home-page .homepage-faq {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.scroll-top-btn {
    width: 42px !important;
    height: 42px !important;
    inset: auto 18px 18px auto !important;
    right: 18px !important;
    bottom: 18px !important;
    left: auto !important;
    top: auto !important;
    border-radius: 10px !important;
    background: #2F5F9C !important;
    border: 1px solid rgba(47, 95, 156, 0.28) !important;
    box-shadow: none !important;
    transform: translateY(14px) !important;
}

.scroll-top-btn.is-visible {
    transform: translateY(0) !important;
}

.scroll-top-btn svg {
    width: 17px !important;
    height: 17px !important;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: #1E3F6D !important;
    border-color: rgba(47, 95, 156, 0.42) !important;
}

html[data-theme="dark"] .scroll-top-btn,
html.theme-dark .scroll-top-btn,
body[data-theme="dark"] .scroll-top-btn,
body.theme-dark .scroll-top-btn {
    background: #0b0d10 !important;
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    color: #79B8F4 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .scroll-top-btn:hover,
html[data-theme="dark"] .scroll-top-btn:focus-visible,
html.theme-dark .scroll-top-btn:hover,
html.theme-dark .scroll-top-btn:focus-visible,
body[data-theme="dark"] .scroll-top-btn:hover,
body[data-theme="dark"] .scroll-top-btn:focus-visible,
body.theme-dark .scroll-top-btn:hover,
body.theme-dark .scroll-top-btn:focus-visible {
    background: #0f141b !important;
    border-color: rgba(103, 216, 255, 0.52) !important;
    color: #9ed0ff !important;
}

@media (max-width: 1024px) {
    .scroll-top-btn {
        width: 40px !important;
        height: 40px !important;
        inset: auto 16px 16px auto !important;
        right: 16px !important;
        bottom: 16px !important;
        left: auto !important;
        top: auto !important;
    }

    .scroll-top-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}

@media (max-width: 700px) {
    .scroll-top-btn {
        width: 38px !important;
        height: 38px !important;
        inset: auto 12px 12px auto !important;
        right: 12px !important;
        bottom: 12px !important;
        left: auto !important;
        top: auto !important;
        border-radius: 9px !important;
    }

    .scroll-top-btn svg {
        width: 15px !important;
        height: 15px !important;
    }
}

html body .scroll-top-btn,
html body.home-page .scroll-top-btn,
html[data-theme="dark"] body .scroll-top-btn,
html.theme-dark body .scroll-top-btn,
body[data-theme="dark"] .scroll-top-btn,
body.theme-dark .scroll-top-btn {
    position: fixed !important;
    inset-block-start: auto !important;
    inset-block-end: 64px !important;
    inset-inline-start: auto !important;
    inset-inline-end: 18px !important;
    top: auto !important;
    right: 18px !important;
    bottom: 64px !important;
    left: auto !important;
    margin: 0 !important;
    float: none !important;
    translate: none !important;
}

html body .scroll-top-btn.is-visible,
html body.home-page .scroll-top-btn.is-visible,
html[data-theme="dark"] body .scroll-top-btn.is-visible,
html.theme-dark body .scroll-top-btn.is-visible,
body[data-theme="dark"] .scroll-top-btn.is-visible,
body.theme-dark .scroll-top-btn.is-visible {
    transform: translate3d(0, 0, 0) !important;
}

@media (max-width: 1024px) {
    html body .scroll-top-btn,
    html body.home-page .scroll-top-btn,
    html[data-theme="dark"] body .scroll-top-btn,
    html.theme-dark body .scroll-top-btn,
    body[data-theme="dark"] .scroll-top-btn,
    body.theme-dark .scroll-top-btn {
        inset-block-end: 58px !important;
        inset-inline-end: 16px !important;
        right: 16px !important;
        bottom: 58px !important;
    }
}

@media (max-width: 700px) {
    html body .scroll-top-btn,
    html body.home-page .scroll-top-btn,
    html[data-theme="dark"] body .scroll-top-btn,
    html.theme-dark body .scroll-top-btn,
    body[data-theme="dark"] .scroll-top-btn,
    body.theme-dark .scroll-top-btn {
        inset-block-end: 52px !important;
        inset-inline-end: 12px !important;
        right: 12px !important;
        bottom: 52px !important;
    }
}

html[data-theme="dark"] body .translator-card .icon-btn:not(.translate-btn),
html[data-theme="dark"] body .translator-card .clear-btn,
html[data-theme="dark"] body .translator-card .listen-btn,
html[data-theme="dark"] body .translator-card .share-btn,
html[data-theme="dark"] body .translator-card .copy-btn,
html.theme-dark body .translator-card .icon-btn:not(.translate-btn),
html.theme-dark body .translator-card .clear-btn,
html.theme-dark body .translator-card .listen-btn,
html.theme-dark body .translator-card .share-btn,
html.theme-dark body .translator-card .copy-btn,
body[data-theme="dark"] .translator-card .icon-btn:not(.translate-btn),
body[data-theme="dark"] .translator-card .clear-btn,
body[data-theme="dark"] .translator-card .listen-btn,
body[data-theme="dark"] .translator-card .share-btn,
body[data-theme="dark"] .translator-card .copy-btn,
body.theme-dark .translator-card .icon-btn:not(.translate-btn),
body.theme-dark .translator-card .clear-btn,
body.theme-dark .translator-card .listen-btn,
body.theme-dark .translator-card .share-btn,
body.theme-dark .translator-card .copy-btn {
    background: #111b26 !important;
    border: 1px solid rgba(103, 216, 255, 0.58) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: 0 0 0 1px rgba(103, 216, 255, 0.08) !important;
}

html[data-theme="dark"] body .translator-card .copy-btn.is-success,
html.theme-dark body .translator-card .copy-btn.is-success,
body[data-theme="dark"] .translator-card .copy-btn.is-success,
body.theme-dark .translator-card .copy-btn.is-success {
    background: rgba(22, 101, 52, 0.26) !important;
    border-color: rgba(74, 222, 128, 0.52) !important;
    color: #bbf7d0 !important;
    -webkit-text-fill-color: #bbf7d0 !important;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.10) !important;
}

html[data-theme="dark"] body .translator-card .clear-btn.is-cleared,
html.theme-dark body .translator-card .clear-btn.is-cleared,
body[data-theme="dark"] .translator-card .clear-btn.is-cleared,
body.theme-dark .translator-card .clear-btn.is-cleared {
    background: rgba(120, 53, 15, 0.34) !important;
    border-color: rgba(251, 191, 36, 0.54) !important;
    color: #fde68a !important;
    -webkit-text-fill-color: #fde68a !important;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.10) !important;
}

html[data-theme="dark"] body .translator-card .listen-btn.is-active,
html.theme-dark body .translator-card .listen-btn.is-active,
body[data-theme="dark"] .translator-card .listen-btn.is-active,
body.theme-dark .translator-card .listen-btn.is-active {
    background: rgba(37, 99, 235, 0.34) !important;
    border-color: rgba(125, 211, 252, 0.62) !important;
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.10) !important;
}

html[data-theme="dark"] body .translator-card .icon-btn:not(.translate-btn) svg,
html[data-theme="dark"] body .translator-card .icon-btn:not(.translate-btn) svg *,
html[data-theme="dark"] body .translator-card .clear-btn svg,
html[data-theme="dark"] body .translator-card .clear-btn svg *,
html[data-theme="dark"] body .translator-card .listen-btn svg,
html[data-theme="dark"] body .translator-card .listen-btn svg *,
html[data-theme="dark"] body .translator-card .share-btn svg,
html[data-theme="dark"] body .translator-card .share-btn svg *,
html[data-theme="dark"] body .translator-card .copy-btn svg,
html[data-theme="dark"] body .translator-card .copy-btn svg *,
html.theme-dark body .translator-card .icon-btn:not(.translate-btn) svg,
html.theme-dark body .translator-card .icon-btn:not(.translate-btn) svg *,
html.theme-dark body .translator-card .clear-btn svg,
html.theme-dark body .translator-card .clear-btn svg *,
html.theme-dark body .translator-card .listen-btn svg,
html.theme-dark body .translator-card .listen-btn svg *,
html.theme-dark body .translator-card .share-btn svg,
html.theme-dark body .translator-card .share-btn svg *,
html.theme-dark body .translator-card .copy-btn svg,
html.theme-dark body .translator-card .copy-btn svg *,
body[data-theme="dark"] .translator-card .icon-btn:not(.translate-btn) svg,
body[data-theme="dark"] .translator-card .icon-btn:not(.translate-btn) svg *,
body[data-theme="dark"] .translator-card .clear-btn svg,
body[data-theme="dark"] .translator-card .clear-btn svg *,
body[data-theme="dark"] .translator-card .listen-btn svg,
body[data-theme="dark"] .translator-card .listen-btn svg *,
body[data-theme="dark"] .translator-card .share-btn svg,
body[data-theme="dark"] .translator-card .share-btn svg *,
body[data-theme="dark"] .translator-card .copy-btn svg,
body[data-theme="dark"] .translator-card .copy-btn svg *,
body.theme-dark .translator-card .icon-btn:not(.translate-btn) svg,
body.theme-dark .translator-card .icon-btn:not(.translate-btn) svg *,
body.theme-dark .translator-card .clear-btn svg,
body.theme-dark .translator-card .clear-btn svg *,
body.theme-dark .translator-card .listen-btn svg,
body.theme-dark .translator-card .listen-btn svg *,
body.theme-dark .translator-card .share-btn svg,
body.theme-dark .translator-card .share-btn svg *,
body.theme-dark .translator-card .copy-btn svg,
body.theme-dark .translator-card .copy-btn svg * {
    color: currentColor !important;
    stroke: currentColor !important;
    opacity: 1 !important;
}

html[data-theme="dark"],
html.theme-dark {
    --lexi-text: #d6e0ece0 !important;
    --lexi-text-soft: #d6e0ece0 !important;
    --lexi-heading: #d6e0ece0 !important;
    --dark-text: #d6e0ece0 !important;
    --dark-body: #d6e0ece0 !important;
}

html[data-theme="dark"] body,
html.theme-dark body,
body[data-theme="dark"],
body.theme-dark,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th,
html[data-theme="dark"] label,
html[data-theme="dark"] strong,
html[data-theme="dark"] b,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark p,
html.theme-dark li,
html.theme-dark td,
html.theme-dark th,
html.theme-dark label,
html.theme-dark strong,
html.theme-dark b,
body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3,
body[data-theme="dark"] h4,
body[data-theme="dark"] p,
body[data-theme="dark"] li,
body[data-theme="dark"] td,
body[data-theme="dark"] th,
body[data-theme="dark"] label,
body[data-theme="dark"] strong,
body[data-theme="dark"] b,
body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark p,
body.theme-dark li,
body.theme-dark td,
body.theme-dark th,
body.theme-dark label,
body.theme-dark strong,
body.theme-dark b {
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
}

html[data-theme="dark"] body .faq-item,
html.theme-dark body .faq-item,
body[data-theme="dark"] .faq-item,
body.theme-dark .faq-item {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

html[data-theme="dark"] body .faq-question,
html.theme-dark body .faq-question,
body[data-theme="dark"] .faq-question,
body.theme-dark .faq-question {
    background: #0b0d10 !important;
    background-color: #0b0d10 !important;
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    border-radius: 12px !important;
    outline: 0 !important;
    box-shadow: none !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
}

html[data-theme="dark"] body .faq-item.is-active .faq-question,
html.theme-dark body .faq-item.is-active .faq-question,
body[data-theme="dark"] .faq-item.is-active .faq-question,
body.theme-dark .faq-item.is-active .faq-question {
    border-radius: 12px 12px 0 0 !important;
    border-bottom-color: rgba(103, 216, 255, 0.16) !important;
}

html[data-theme="dark"] body .faq-answer,
html.theme-dark body .faq-answer,
body[data-theme="dark"] .faq-answer,
body.theme-dark .faq-answer {
    background: #0b1016 !important;
    background-color: #0b1016 !important;
    border: 1px solid rgba(103, 216, 255, 0.34) !important;
    border-top: 0 !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: none !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
}

html[data-theme="dark"] body .faq-item:not(.is-active) .faq-answer,
html.theme-dark body .faq-item:not(.is-active) .faq-answer,
body[data-theme="dark"] .faq-item:not(.is-active) .faq-answer,
body.theme-dark .faq-item:not(.is-active) .faq-answer {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}

html[data-theme="dark"] body .faq-question:hover,
html.theme-dark body .faq-question:hover,
body[data-theme="dark"] .faq-question:hover,
body.theme-dark .faq-question:hover {
    border-color: rgba(103, 216, 255, 0.52) !important;
    background: #0f141b !important;
    background-color: #0f141b !important;
}

html[data-theme="dark"] body .faq-question::after,
html.theme-dark body .faq-question::after,
body[data-theme="dark"] .faq-question::after,
body.theme-dark .faq-question::after {
    border-right-color: #79B8F4 !important;
    border-bottom-color: #79B8F4 !important;
}

/* Final sober announcement bar: no shine strip, just a calm gradient breath. */
@keyframes announcementSoberGradient {
    0%, 100% {
        background-image: linear-gradient(90deg, #173a63 0%, #2F5F9C 50%, #173a63 100%);
    }

    50% {
        background-image: linear-gradient(90deg, #1b426f 0%, #3a73b5 50%, #1b426f 100%);
    }
}

@keyframes announcementSoberGradientDark {
    0%, 100% {
        background-image: linear-gradient(90deg, #080a0c 0%, #102133 50%, #080a0c 100%);
    }

    50% {
        background-image: linear-gradient(90deg, #0a1017 0%, #17304a 50%, #0a1017 100%);
    }
}

html body .announcement-bar,
html body.home-page .announcement-bar {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background: linear-gradient(90deg, #173a63 0%, #2F5F9C 50%, #173a63 100%) !important;
    background-size: 100% 100% !important;
    animation: announcementSoberGradient 8s ease-in-out infinite !important;
    border-bottom: 1px solid rgba(47, 95, 156, 0.18) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

html body .announcement-bar + .announcement-bar {
    display: none !important;
}

html[data-theme="light"] body .announcement-bar,
html[data-theme="light"] body.home-page .announcement-bar,
html.theme-light body .announcement-bar,
body[data-theme="light"] .announcement-bar,
body.theme-light .announcement-bar {
    background: linear-gradient(90deg, #173a63 0%, #2F5F9C 50%, #173a63 100%) !important;
    background-size: 100% 100% !important;
    animation: announcementSoberGradient 8s ease-in-out infinite !important;
    border-bottom: 1px solid rgba(47, 95, 156, 0.18) !important;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}

html body .announcement-bar::before,
html body .announcement-bar::after,
html body.home-page .announcement-bar::before,
html body.home-page .announcement-bar::after {
    content: none !important;
    display: none !important;
    animation: none !important;
    background: none !important;
    box-shadow: none !important;
}

html body .announcement-bar,
html body .announcement-bar a,
html body .announcement-bar-text,
html body.home-page .announcement-bar,
html body.home-page .announcement-bar a,
html body.home-page .announcement-bar-text {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

html[data-theme="dark"] body .announcement-bar,
html[data-theme="dark"] body.home-page .announcement-bar,
html.theme-dark body .announcement-bar,
body[data-theme="dark"] .announcement-bar,
body.theme-dark .announcement-bar {
    background: linear-gradient(90deg, #080a0c 0%, #102133 50%, #080a0c 100%) !important;
    background-size: 100% 100% !important;
    animation: announcementSoberGradientDark 9s ease-in-out infinite !important;
    border-bottom: 1px solid rgba(103, 216, 255, 0.12) !important;
    box-shadow: inset 0 -1px 0 rgba(103, 216, 255, 0.06) !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
}

html[data-theme="dark"] body .announcement-bar *,
html.theme-dark body .announcement-bar *,
body[data-theme="dark"] .announcement-bar *,
body.theme-dark .announcement-bar * {
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
}

@media (prefers-reduced-motion: reduce) {
    html body .announcement-bar,
    html body.home-page .announcement-bar {
        animation: none !important;
    }
}

/* Final nav theme switch: desktop after menu, mobile before hamburger. */
html body .nav-inner {
    align-items: center !important;
}

html body .nav-links {
    order: 2 !important;
}

html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 78px !important;
    min-width: 78px !important;
    height: 34px !important;
    padding: 0 !important;
    display: inline-grid !important;
    grid-template-columns: 20px 36px 20px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: none !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle::before {
    content: none !important;
    display: none !important;
}

html body .theme-toggle svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: currentColor !important;
}

html body .theme-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-switch {
    position: relative !important;
    display: inline-flex !important;
    width: 36px !important;
    height: 22px !important;
    border-radius: 999px !important;
    background: #f8fbff !important;
    border: 1px solid rgba(47, 95, 156, 0.28) !important;
    box-shadow: inset 0 1px 2px rgba(23, 58, 99, 0.12), 0 3px 8px rgba(47, 95, 156, 0.08) !important;
}

html body .theme-toggle-knob {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 999px !important;
    background: #173a63 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22) !important;
    transition: transform 0.22s ease, background 0.22s ease !important;
}

html body .theme-toggle-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

html body .theme-toggle:hover .theme-toggle-switch,
html body .theme-toggle:focus-visible .theme-toggle-switch {
    border-color: rgba(47, 95, 156, 0.52) !important;
    box-shadow: inset 0 1px 2px rgba(23, 58, 99, 0.12), 0 0 0 3px rgba(47, 95, 156, 0.12) !important;
}

html body .theme-toggle:focus-visible {
    outline: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle-switch,
html.theme-dark body .theme-toggle-switch,
body[data-theme="dark"] .theme-toggle-switch,
body.theme-dark .theme-toggle-switch {
    background: #071018 !important;
    border-color: rgba(103, 216, 255, 0.48) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(103, 216, 255, 0.06) !important;
}

html[data-theme="dark"] body .theme-toggle-knob,
html.theme-dark body .theme-toggle-knob,
body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
    transform: translateX(14px) !important;
    background: #79B8F4 !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -14px !important;
    }
}

@media (max-width: 1024px) {
    html body .nav-inner > :first-child {
        order: 1 !important;
    }

    html body .theme-toggle {
        order: 2 !important;
        margin-left: auto !important;
        margin-right: 8px !important;
        width: 74px !important;
        min-width: 74px !important;
        height: 34px !important;
        grid-template-columns: 19px 34px 19px !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
        flex: 0 0 auto !important;
    }

    html body .nav-links {
        order: 4 !important;
    }

    html body .theme-toggle svg {
        width: 17px !important;
        height: 17px !important;
    }

    html body .theme-toggle-switch {
        width: 34px !important;
        height: 21px !important;
    }

    html body .theme-toggle-knob {
        width: 15px !important;
        height: 15px !important;
    }

    html[data-theme="dark"] body .theme-toggle-knob,
    html.theme-dark body .theme-toggle-knob,
    body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
        transform: translateX(13px) !important;
    }
}

/* Absolute final theme switch polish: keep this after all nav overrides. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 92px !important;
    min-width: 92px !important;
    height: 38px !important;
    padding: 0 8px !important;
    display: inline-grid !important;
    grid-template-columns: 22px 38px 22px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    border: 1px solid rgba(47, 95, 156, 0.18) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: 0 6px 16px rgba(23, 58, 99, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 999px !important;
    opacity: 0.95 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle svg {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    stroke: currentColor !important;
}

html body .theme-toggle-switch {
    position: relative !important;
    display: inline-flex !important;
    width: 38px !important;
    height: 23px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    border: 1px solid rgba(47, 95, 156, 0.3) !important;
    box-shadow: inset 0 1px 3px rgba(23, 58, 99, 0.14) !important;
}

html body .theme-toggle-knob {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 999px !important;
    background: #173a63 !important;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.26) !important;
    transition: transform 0.22s ease, background 0.22s ease !important;
}

html body .theme-toggle-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    border-color: rgba(103, 216, 255, 0.24) !important;
    background: rgba(9, 14, 20, 0.88) !important;
    color: #79B8F4 !important;
    -webkit-text-fill-color: #79B8F4 !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(103, 216, 255, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle-switch,
html.theme-dark body .theme-toggle-switch,
body[data-theme="dark"] .theme-toggle-switch,
body.theme-dark .theme-toggle-switch {
    background: #0f1822 !important;
    border-color: rgba(103, 216, 255, 0.46) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body .theme-toggle-knob,
html.theme-dark body .theme-toggle-knob,
body[data-theme="dark"] .theme-toggle-knob,
body.theme-dark .theme-toggle-knob {
    transform: translateX(15px) !important;
    background: #79B8F4 !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    border-color: rgba(47, 95, 156, 0.34) !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 8px 20px rgba(23, 58, 99, 0.11), 0 0 0 3px rgba(47, 95, 156, 0.08) !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    border-color: rgba(103, 216, 255, 0.44) !important;
    background: rgba(12, 20, 29, 0.96) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(103, 216, 255, 0.08) !important;
}

@media (min-width: 1025px) {
    html body .theme-toggle {
        margin-left: -10px !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 86px !important;
        min-width: 86px !important;
        height: 36px !important;
        padding: 0 7px !important;
        grid-template-columns: 20px 36px 20px !important;
        gap: 1px !important;
        margin-left: auto !important;
        margin-right: 10px !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }

    html body .theme-toggle-icon {
        width: 20px !important;
        height: 20px !important;
    }

    html body .theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    html body .theme-toggle-switch {
        width: 36px !important;
        height: 22px !important;
    }

    html body .theme-toggle-knob {
        width: 16px !important;
        height: 16px !important;
    }

    html[data-theme="dark"] body .theme-toggle-knob,
    html.theme-dark body .theme-toggle-knob,
    body[data-theme="dark"] .theme-toggle-knob,
    body.theme-dark .theme-toggle-knob {
        transform: translateX(14px) !important;
    }
}



/* Tail lock: final 3D day/night theme pill. */
html body .theme-toggle {
    order: 3 !important;
    position: relative !important;
    width: 166px !important;
    min-width: 166px !important;
    height: 56px !important;
    padding: 5px 8px 5px 20px !important;
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -3px 7px rgba(15, 23, 42, 0.10), 0 10px 20px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle::before,
html body .theme-toggle-switch,
html body .theme-toggle-knob {
    content: none !important;
    display: none !important;
}

html body .theme-toggle-orb {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.22), 0 4px 9px rgba(15, 23, 42, 0.14) !important;
    flex: 0 0 auto !important;
}

html body .theme-toggle-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle-icon-moon { display: none !important; }
html body .theme-toggle-icon-sun { display: flex !important; }

html body .theme-toggle svg {
    width: 28px !important;
    height: 28px !important;
    display: block !important;
    fill: currentColor !important;
    stroke: none !important;
}

html body .theme-toggle-label {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: nowrap !important;
    font-family: "Google Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    outline: none !important;
    transform: translateY(-1px) !important;
    background: linear-gradient(180deg, #ffffff 0%, #eceef1 52%, #dfe1e5 100%) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    flex-direction: row !important;
    padding: 5px 20px 5px 5px !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: linear-gradient(180deg, #151515 0%, #050505 52%, #000000 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.12), inset 0 -4px 8px rgba(0, 0, 0, 0.48), 0 12px 24px rgba(0, 0, 0, 0.34) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon { display: flex !important; }

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun { display: none !important; }

@media (max-width: 1024px) {
    html body .theme-toggle {
        order: 2 !important;
        width: 138px !important;
        min-width: 138px !important;
        height: 46px !important;
        padding: 4px 7px 4px 15px !important;
        gap: 8px !important;
        margin-left: auto !important;
        margin-right: 9px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 15px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 38px !important;
        height: 38px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-label {
        font-size: 12px !important;
    }

    html body .hamburger-btn {
        order: 3 !important;
    }
}
/* Tail lock: compact 3D theme pill sizing. */
html body .theme-toggle {
    width: 126px !important;
    min-width: 126px !important;
    height: 42px !important;
    padding: 4px 6px 4px 15px !important;
    gap: 8px !important;
}

html body .theme-toggle-orb {
    width: 34px !important;
    height: 34px !important;
}

html body .theme-toggle-icon,
html body .theme-toggle svg {
    width: 21px !important;
    height: 21px !important;
}

html body .theme-toggle-label {
    font-size: 11.5px !important;
    font-weight: 800 !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    padding: 4px 15px 4px 4px !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 112px !important;
        min-width: 112px !important;
        height: 38px !important;
        padding: 4px 5px 4px 12px !important;
        gap: 6px !important;
        margin-right: 8px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 12px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 30px !important;
        height: 30px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 19px !important;
        height: 19px !important;
    }

    html body .theme-toggle-label {
        font-size: 10px !important;
    }
}

/* Tail lock: smaller pill and visible day/night solid icons. */
html body .theme-toggle {
    width: 108px !important;
    min-width: 108px !important;
    height: 36px !important;
    padding: 4px 5px 4px 12px !important;
    gap: 6px !important;
}

html body .theme-toggle-orb {
    width: 28px !important;
    height: 28px !important;
}

html body .theme-toggle-icon,
html body .theme-toggle svg {
    width: 18px !important;
    height: 18px !important;
}

html body .theme-toggle-label {
    font-size: 9.5px !important;
    font-weight: 800 !important;
}

html:not([data-theme="dark"]) body .theme-toggle-icon-sun,
html.theme-light body .theme-toggle-icon-sun,
body:not([data-theme="dark"]) .theme-toggle-icon-sun,
body.theme-light .theme-toggle-icon-sun {
    display: flex !important;
}

html:not([data-theme="dark"]) body .theme-toggle-icon-moon,
html.theme-light body .theme-toggle-icon-moon,
body:not([data-theme="dark"]) .theme-toggle-icon-moon,
body.theme-light .theme-toggle-icon-moon {
    display: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    padding: 4px 12px 4px 4px !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon {
    display: flex !important;
}

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun {
    display: none !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 96px !important;
        min-width: 96px !important;
        height: 34px !important;
        padding: 4px 5px 4px 10px !important;
        gap: 5px !important;
        margin-right: 7px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 10px 4px 4px !important;
    }

    html body .theme-toggle-orb {
        width: 26px !important;
        height: 26px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    html body .theme-toggle-label {
        font-size: 8.8px !important;
    }
}

/* Tail lock: action-based theme toggle logic and dark border. */
html:not([data-theme="dark"]) body .theme-toggle,
html.theme-light body .theme-toggle,
body:not([data-theme="dark"]) .theme-toggle,
body.theme-light .theme-toggle {
    flex-direction: row !important;
    padding: 4px 12px 4px 4px !important;
    background: linear-gradient(180deg, #151515 0%, #050505 52%, #000000 100%) !important;
    border: 1px solid rgba(0, 0, 0, 0.72) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.12), inset 0 -4px 8px rgba(0, 0, 0, 0.48), 0 10px 18px rgba(15, 23, 42, 0.18) !important;
}

html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 100%) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9), 0 5px 10px rgba(0, 0, 0, 0.24) !important;
}

html:not([data-theme="dark"]) body .theme-toggle-icon-moon,
html.theme-light body .theme-toggle-icon-moon,
body:not([data-theme="dark"]) .theme-toggle-icon-moon,
body.theme-light .theme-toggle-icon-moon {
    display: flex !important;
}

html:not([data-theme="dark"]) body .theme-toggle-icon-sun,
html.theme-light body .theme-toggle-icon-sun,
body:not([data-theme="dark"]) .theme-toggle-icon-sun,
body.theme-light .theme-toggle-icon-sun {
    display: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    flex-direction: row-reverse !important;
    padding: 4px 4px 4px 12px !important;
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    border: 1px solid rgba(203, 213, 225, 0.72) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -3px 7px rgba(15, 23, 42, 0.10), 0 0 0 1px rgba(103, 216, 255, 0.12), 0 10px 20px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: linear-gradient(180deg, #ffffff 0%, #f2f3f5 100%) !important;
    color: #070707 !important;
    -webkit-text-fill-color: #070707 !important;
    box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.95), inset 0 -2px 5px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.22), 0 4px 9px rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="dark"] body .theme-toggle-icon-sun,
html.theme-dark body .theme-toggle-icon-sun,
body[data-theme="dark"] .theme-toggle-icon-sun,
body.theme-dark .theme-toggle-icon-sun {
    display: flex !important;
}

html[data-theme="dark"] body .theme-toggle-icon-moon,
html.theme-dark body .theme-toggle-icon-moon,
body[data-theme="dark"] .theme-toggle-icon-moon,
body.theme-dark .theme-toggle-icon-moon {
    display: none !important;
}

@media (max-width: 1024px) {
    html:not([data-theme="dark"]) body .theme-toggle,
    html.theme-light body .theme-toggle,
    body:not([data-theme="dark"]) .theme-toggle,
    body.theme-light .theme-toggle {
        padding: 4px 10px 4px 4px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 4px 4px 4px 10px !important;
    }
}
/* Tail lock: tighter action theme pill width. */
html body .theme-toggle {
    width: 86px !important;
    min-width: 86px !important;
    height: 34px !important;
    padding: 4px 8px 4px 4px !important;
    gap: 5px !important;
}

html body .theme-toggle-orb {
    width: 26px !important;
    height: 26px !important;
}

html body .theme-toggle-icon,
html body .theme-toggle svg {
    width: 16px !important;
    height: 16px !important;
}

html body .theme-toggle-label {
    font-size: 8.6px !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    padding: 4px 4px 4px 8px !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 78px !important;
        min-width: 78px !important;
        height: 32px !important;
        padding: 3px 7px 3px 3px !important;
        gap: 4px !important;
        margin-right: 7px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 3px 3px 3px 7px !important;
    }

    html body .theme-toggle-orb {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-icon,
    html body .theme-toggle svg {
        width: 15px !important;
        height: 15px !important;
    }

    html body .theme-toggle-label {
        font-size: 8px !important;
    }
}

/* Tail lock: plain action toggle, no card style and no hover color change. */
html body .theme-toggle,
html:not([data-theme="dark"]) body .theme-toggle,
html.theme-light body .theme-toggle,
body:not([data-theme="dark"]) .theme-toggle,
body.theme-light .theme-toggle {
    background: #050505 !important;
    border: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

html body .theme-toggle-orb,
html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    background: transparent !important;
    border: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible,
html:not([data-theme="dark"]) body .theme-toggle:hover,
html:not([data-theme="dark"]) body .theme-toggle:focus-visible,
html.theme-light body .theme-toggle:hover,
html.theme-light body .theme-toggle:focus-visible,
body:not([data-theme="dark"]) .theme-toggle:hover,
body:not([data-theme="dark"]) .theme-toggle:focus-visible,
body.theme-light .theme-toggle:hover,
body.theme-light .theme-toggle:focus-visible {
    background: #050505 !important;
    border: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    background: #ffffff !important;
    border: 0 !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: transparent !important;
    border: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: #ffffff !important;
    border: 0 !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: none !important;
    transform: none !important;
}
/* Tail lock: dark active theme toggle uses site black background. */
html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    background: #07080a !important;
    border: 1px solid rgba(103, 216, 255, 0.38) !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -3px 8px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: #07080a !important;
    border-color: rgba(103, 216, 255, 0.58) !important;
}
/* Tail lock: remove blue border from dark theme toggle. */
html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    border-color: rgba(214, 224, 236, 0.18) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), inset 0 -3px 8px rgba(0, 0, 0, 0.5), 0 8px 18px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    border-color: rgba(214, 224, 236, 0.3) !important;
}
/* Tail lock: only remove dark toggle blue border, keep existing background. */
html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    border-color: rgba(214, 224, 236, 0.34) !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: linear-gradient(180deg, #f7f7f8 0%, #e4e5e8 52%, #d7d9dd 100%) !important;
    border-color: rgba(214, 224, 236, 0.46) !important;
}
/* Tail lock: card-style theme toggle, no 3D button effect. */
html body .theme-toggle {
    width: 88px !important;
    min-width: 88px !important;
    height: 34px !important;
    padding: 4px 8px 4px 4px !important;
    gap: 6px !important;
    background: #ffffff !important;
    border: 1px solid rgba(47, 95, 156, 0.22) !important;
    border-radius: 10px !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: none !important;
    transform: none !important;
}

html body .theme-toggle-orb {
    width: 24px !important;
    height: 24px !important;
    background: #eef6ff !important;
    border: 1px solid rgba(47, 95, 156, 0.18) !important;
    border-radius: 8px !important;
    color: #173a63 !important;
    -webkit-text-fill-color: #173a63 !important;
    box-shadow: none !important;
}

html body .theme-toggle-icon,
html body .theme-toggle svg {
    width: 15px !important;
    height: 15px !important;
}

html body .theme-toggle-label {
    font-size: 8.5px !important;
    font-weight: 800 !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    background: #f8fbff !important;
    border-color: rgba(47, 95, 156, 0.34) !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    background: #0b0d10 !important;
    border: 1px solid rgba(214, 224, 236, 0.18) !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: #111820 !important;
    border: 1px solid rgba(214, 224, 236, 0.16) !important;
    color: #d6e0ece0 !important;
    -webkit-text-fill-color: #d6e0ece0 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: #0f141b !important;
    border-color: rgba(214, 224, 236, 0.28) !important;
    box-shadow: none !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 82px !important;
        min-width: 82px !important;
        height: 32px !important;
        padding: 3px 7px 3px 3px !important;
        gap: 5px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 3px 3px 3px 7px !important;
    }

    html body .theme-toggle-orb {
        width: 24px !important;
        height: 24px !important;
    }

    html body .theme-toggle-label {
        font-size: 8px !important;
    }
}
/* Tail lock: plain action toggle final override. */
html body .theme-toggle,
html:not([data-theme="dark"]) body .theme-toggle,
html.theme-light body .theme-toggle,
body:not([data-theme="dark"]) .theme-toggle,
body.theme-light .theme-toggle {
    background: #050505 !important;
    border: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

html body .theme-toggle-orb,
html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    background: transparent !important;
    border: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible,
html:not([data-theme="dark"]) body .theme-toggle:hover,
html:not([data-theme="dark"]) body .theme-toggle:focus-visible,
html.theme-light body .theme-toggle:hover,
html.theme-light body .theme-toggle:focus-visible,
body:not([data-theme="dark"]) .theme-toggle:hover,
body:not([data-theme="dark"]) .theme-toggle:focus-visible,
body.theme-light .theme-toggle:hover,
body.theme-light .theme-toggle:focus-visible {
    background: #050505 !important;
    border: 0 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    background: #ffffff !important;
    border: 0 !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    background: transparent !important;
    border: 0 !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover,
html[data-theme="dark"] body .theme-toggle:focus-visible,
html.theme-dark body .theme-toggle:hover,
html.theme-dark body .theme-toggle:focus-visible,
body[data-theme="dark"] .theme-toggle:hover,
body[data-theme="dark"] .theme-toggle:focus-visible,
body.theme-dark .theme-toggle:hover,
body.theme-dark .theme-toggle:focus-visible {
    background: #ffffff !important;
    border: 0 !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: none !important;
    transform: none !important;
}
/* Tail lock: circular border around theme icon only. */
html body .theme-toggle-orb,
html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.42) !important;
    background: transparent !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    border-color: rgba(5, 5, 5, 0.38) !important;
    background: transparent !important;
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
}

html body .theme-toggle:hover .theme-toggle-orb,
html body .theme-toggle:focus-visible .theme-toggle-orb {
    background: transparent !important;
    box-shadow: none !important;
}
/* Tail lock: make dark-mode icon read as a switch knob. */
html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #050505 !important;
    border: 1px solid #050505 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body .theme-toggle:hover .theme-toggle-orb,
html[data-theme="dark"] body .theme-toggle:focus-visible .theme-toggle-orb,
html.theme-dark body .theme-toggle:hover .theme-toggle-orb,
html.theme-dark body .theme-toggle:focus-visible .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle:hover .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle:focus-visible .theme-toggle-orb,
body.theme-dark .theme-toggle:hover .theme-toggle-orb,
body.theme-dark .theme-toggle:focus-visible .theme-toggle-orb {
    background: #050505 !important;
    border-color: #050505 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}
/* Tail lock: matching filled icon knobs with subtle inner depth. */
html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.78) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75), inset 0 -2px 4px rgba(0, 0, 0, 0.16) !important;
}

html:not([data-theme="dark"]) body .theme-toggle:hover .theme-toggle-orb,
html:not([data-theme="dark"]) body .theme-toggle:focus-visible .theme-toggle-orb,
html.theme-light body .theme-toggle:hover .theme-toggle-orb,
html.theme-light body .theme-toggle:focus-visible .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle:hover .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle:focus-visible .theme-toggle-orb,
body.theme-light .theme-toggle:hover .theme-toggle-orb,
body.theme-light .theme-toggle:focus-visible .theme-toggle-orb {
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.78) !important;
    color: #050505 !important;
    -webkit-text-fill-color: #050505 !important;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.75), inset 0 -2px 4px rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] body .theme-toggle:hover .theme-toggle-orb,
html[data-theme="dark"] body .theme-toggle:focus-visible .theme-toggle-orb,
html.theme-dark body .theme-toggle:hover .theme-toggle-orb,
html.theme-dark body .theme-toggle:focus-visible .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle:hover .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle:focus-visible .theme-toggle-orb,
body.theme-dark .theme-toggle:hover .theme-toggle-orb,
body.theme-dark .theme-toggle:focus-visible .theme-toggle-orb {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.36) !important;
}
/* Tail lock: tighter radius and smaller icon-label gap. */
html body .theme-toggle {
    width: 76px !important;
    min-width: 76px !important;
    height: 30px !important;
    padding: 3px 8px 3px 3px !important;
    gap: 3px !important;
    border-radius: 999px !important;
}

html body .theme-toggle-orb {
    width: 24px !important;
    height: 24px !important;
    border-radius: 999px !important;
}

html body .theme-toggle-icon,
html body .theme-toggle svg {
    width: 14px !important;
    height: 14px !important;
}

html body .theme-toggle-label {
    font-size: 7.8px !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    padding: 3px 3px 3px 8px !important;
}

@media (max-width: 1024px) {
    html body .theme-toggle {
        width: 72px !important;
        min-width: 72px !important;
        height: 30px !important;
        padding: 3px 7px 3px 3px !important;
        gap: 2px !important;
    }

    html[data-theme="dark"] body .theme-toggle,
    html.theme-dark body .theme-toggle,
    body[data-theme="dark"] .theme-toggle,
    body.theme-dark .theme-toggle {
        padding: 3px 3px 3px 7px !important;
    }
}
/* Tail lock: subtle inner 3D depth for theme toggle. */
html body .theme-toggle,
html:not([data-theme="dark"]) body .theme-toggle,
html.theme-light body .theme-toggle,
body:not([data-theme="dark"]) .theme-toggle,
body.theme-light .theme-toggle {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 -2px 5px rgba(0, 0, 0, 0.42) !important;
}

html body .theme-toggle-orb,
html:not([data-theme="dark"]) body .theme-toggle-orb,
html.theme-light body .theme-toggle-orb,
body:not([data-theme="dark"]) .theme-toggle-orb,
body.theme-light .theme-toggle-orb {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.82), inset 0 -2px 4px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body .theme-toggle,
html.theme-dark body .theme-toggle,
body[data-theme="dark"] .theme-toggle,
body.theme-dark .theme-toggle {
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.82), inset 0 -2px 5px rgba(0, 0, 0, 0.16) !important;
}

html[data-theme="dark"] body .theme-toggle-orb,
html.theme-dark body .theme-toggle-orb,
body[data-theme="dark"] .theme-toggle-orb,
body.theme-dark .theme-toggle-orb {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.14), inset 0 -2px 4px rgba(0, 0, 0, 0.42) !important;
}

html body .theme-toggle:hover,
html body .theme-toggle:focus-visible {
    transform: none !important;
}

/* Tail lock: keep mobile drawer readable in dark theme. */
@media (max-width: 1024px) {
    html[data-theme="dark"] body .nav-links,
    html[data-theme="dark"] body .nav-links.is-open,
    html.theme-dark body .nav-links,
    html.theme-dark body .nav-links.is-open,
    body[data-theme="dark"] .nav-links,
    body[data-theme="dark"] .nav-links.is-open,
    body.theme-dark .nav-links,
    body.theme-dark .nav-links.is-open {
        background: #050607 !important;
        color: #d6e0ece0 !important;
        -webkit-text-fill-color: #d6e0ece0 !important;
        border-color: rgba(125, 211, 252, 0.16) !important;
    }

    html[data-theme="dark"] body .nav-links.is-open::before,
    html.theme-dark body .nav-links.is-open::before,
    body[data-theme="dark"] .nav-links.is-open::before,
    body.theme-dark .nav-links.is-open::before {
        background: #050607 !important;
    }

    html[data-theme="dark"] body .nav-links.is-open > a,
    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn,
    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn *,
    html.theme-dark body .nav-links.is-open > a,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn *,
    body[data-theme="dark"] .nav-links.is-open > a,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn *,
    body.theme-dark .nav-links.is-open > a,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn * {
        color: #d6e0ece0 !important;
        -webkit-text-fill-color: #d6e0ece0 !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn {
        border-bottom-color: rgba(125, 211, 252, 0.18) !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-btn-icon,
    html.theme-dark body .nav-links.is-open .nav-btn-icon,
    body[data-theme="dark"] .nav-links.is-open .nav-btn-icon,
    body.theme-dark .nav-links.is-open .nav-btn-icon {
        background: #244f86 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html[data-theme="dark"] body .nav-has-dropdown.is-open .nav-simple-dropdown,
    html.theme-dark body .nav-has-dropdown.is-open .nav-simple-dropdown,
    body[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown,
    body.theme-dark .nav-has-dropdown.is-open .nav-simple-dropdown {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 14px 24px !important;
        padding: 12px 4px 14px !important;
        background: #050607 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    html.theme-dark body .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    body[data-theme="dark"] .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    body.theme-dark .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown {
        display: none !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-simple-dropdown a,
    html[data-theme="dark"] body .nav-has-dropdown.is-open .nav-simple-dropdown a,
    html.theme-dark body .nav-links.is-open .nav-simple-dropdown a,
    html.theme-dark body .nav-has-dropdown.is-open .nav-simple-dropdown a,
    body[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a,
    body[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a,
    body.theme-dark .nav-links.is-open .nav-simple-dropdown a,
    body.theme-dark .nav-has-dropdown.is-open .nav-simple-dropdown a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        min-height: 28px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #d6e0ece0 !important;
        -webkit-text-fill-color: #d6e0ece0 !important;
        font-weight: 650 !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-simple-dropdown a::before,
    html[data-theme="dark"] body .nav-has-dropdown.is-open .nav-simple-dropdown a::before,
    html.theme-dark body .nav-links.is-open .nav-simple-dropdown a::before,
    html.theme-dark body .nav-has-dropdown.is-open .nav-simple-dropdown a::before,
    body[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a::before,
    body[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a::before,
    body.theme-dark .nav-links.is-open .nav-simple-dropdown a::before,
    body.theme-dark .nav-has-dropdown.is-open .nav-simple-dropdown a::before {
        content: none !important;
        display: none !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    html[data-theme="dark"] body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji,
    html.theme-dark body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    html.theme-dark body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji,
    body[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    body[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji,
    body.theme-dark .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji,
    body.theme-dark .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji {
        display: inline-flex !important;
        flex: 0 0 22px !important;
        width: 22px !important;
        height: 22px !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 7px !important;
        background: #132837 !important;
        color: #7dd3fc !important;
        -webkit-text-fill-color: #7dd3fc !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    html[data-theme="dark"] body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    html.theme-dark body .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    html.theme-dark body .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    body[data-theme="dark"] .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    body[data-theme="dark"] .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    body.theme-dark .nav-links.is-open .nav-simple-dropdown a .nav-link-emoji svg,
    body.theme-dark .nav-has-dropdown.is-open .nav-simple-dropdown a .nav-link-emoji svg {
        width: 14px !important;
        height: 14px !important;
        stroke: currentColor !important;
    }
}
/* Hard tail lock: dark mobile drawer must stay dark on all page types. */
@media (max-width: 1024px) {
    html[data-theme="dark"] body.nav-drawer-open .navbar,
    html.theme-dark body.nav-drawer-open .navbar,
    body[data-theme="dark"].nav-drawer-open .navbar,
    body.theme-dark.nav-drawer-open .navbar {
        background: #050607 !important;
        background-image: none !important;
    }

    html[data-theme="dark"] body .nav-links,
    html[data-theme="dark"] body .nav-links.is-open,
    html[data-theme="dark"] body.nav-drawer-open .nav-links,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open,
    html[data-theme="dark"] body:has(.tool-breadcrumb-strip) .nav-links,
    html[data-theme="dark"] body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    html[data-theme="dark"] body:has(.info-breadcrumb-strip) .nav-links,
    html[data-theme="dark"] body:has(.info-breadcrumb-strip) .nav-links.is-open,
    html.theme-dark body .nav-links,
    html.theme-dark body .nav-links.is-open,
    html.theme-dark body.nav-drawer-open .nav-links,
    html.theme-dark body.nav-drawer-open .nav-links.is-open,
    html.theme-dark body:has(.tool-breadcrumb-strip) .nav-links,
    html.theme-dark body:has(.tool-breadcrumb-strip) .nav-links.is-open,
    html.theme-dark body:has(.info-breadcrumb-strip) .nav-links,
    html.theme-dark body:has(.info-breadcrumb-strip) .nav-links.is-open,
    body[data-theme="dark"] .nav-links,
    body[data-theme="dark"] .nav-links.is-open,
    body[data-theme="dark"].nav-drawer-open .nav-links,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open,
    body[data-theme="dark"]:has(.tool-breadcrumb-strip) .nav-links,
    body[data-theme="dark"]:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body[data-theme="dark"]:has(.info-breadcrumb-strip) .nav-links,
    body[data-theme="dark"]:has(.info-breadcrumb-strip) .nav-links.is-open,
    body.theme-dark .nav-links,
    body.theme-dark .nav-links.is-open,
    body.theme-dark.nav-drawer-open .nav-links,
    body.theme-dark.nav-drawer-open .nav-links.is-open,
    body.theme-dark:has(.tool-breadcrumb-strip) .nav-links,
    body.theme-dark:has(.tool-breadcrumb-strip) .nav-links.is-open,
    body.theme-dark:has(.info-breadcrumb-strip) .nav-links,
    body.theme-dark:has(.info-breadcrumb-strip) .nav-links.is-open {
        background: #050607 !important;
        background-image: none !important;
        color: #f8fbff !important;
        -webkit-text-fill-color: #f8fbff !important;
        border-color: rgba(125, 211, 252, 0.16) !important;
    }

    html[data-theme="dark"] body .nav-links.is-open::before,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open::before,
    html[data-theme="dark"] body:has(.tool-breadcrumb-strip) .nav-links.is-open::before,
    html[data-theme="dark"] body:has(.info-breadcrumb-strip) .nav-links.is-open::before,
    html.theme-dark body .nav-links.is-open::before,
    html.theme-dark body.nav-drawer-open .nav-links.is-open::before,
    html.theme-dark body:has(.tool-breadcrumb-strip) .nav-links.is-open::before,
    html.theme-dark body:has(.info-breadcrumb-strip) .nav-links.is-open::before,
    body[data-theme="dark"] .nav-links.is-open::before,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open::before,
    body[data-theme="dark"]:has(.tool-breadcrumb-strip) .nav-links.is-open::before,
    body[data-theme="dark"]:has(.info-breadcrumb-strip) .nav-links.is-open::before,
    body.theme-dark .nav-links.is-open::before,
    body.theme-dark.nav-drawer-open .nav-links.is-open::before,
    body.theme-dark:has(.tool-breadcrumb-strip) .nav-links.is-open::before,
    body.theme-dark:has(.info-breadcrumb-strip) .nav-links.is-open::before {
        background: #050607 !important;
        background-image: none !important;
    }

    html[data-theme="dark"] body .nav-links.is-open > a,
    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn,
    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn span,
    html[data-theme="dark"] body .nav-links.is-open .nav-dropdown-btn svg,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open > a,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn span,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn svg,
    html.theme-dark body .nav-links.is-open > a,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn span,
    html.theme-dark body .nav-links.is-open .nav-dropdown-btn svg,
    html.theme-dark body.nav-drawer-open .nav-links.is-open > a,
    html.theme-dark body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn,
    html.theme-dark body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn span,
    html.theme-dark body.nav-drawer-open .nav-links.is-open .nav-dropdown-btn svg,
    body[data-theme="dark"] .nav-links.is-open > a,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn span,
    body[data-theme="dark"] .nav-links.is-open .nav-dropdown-btn svg,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open > a,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open .nav-dropdown-btn,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open .nav-dropdown-btn span,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open .nav-dropdown-btn svg,
    body.theme-dark .nav-links.is-open > a,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn span,
    body.theme-dark .nav-links.is-open .nav-dropdown-btn svg,
    body.theme-dark.nav-drawer-open .nav-links.is-open > a,
    body.theme-dark.nav-drawer-open .nav-links.is-open .nav-dropdown-btn,
    body.theme-dark.nav-drawer-open .nav-links.is-open .nav-dropdown-btn span,
    body.theme-dark.nav-drawer-open .nav-links.is-open .nav-dropdown-btn svg {
        color: #f8fbff !important;
        -webkit-text-fill-color: #f8fbff !important;
        opacity: 1 !important;
    }

    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open .nav-btn-icon,
    html.theme-dark body.nav-drawer-open .nav-links.is-open .nav-btn-icon,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open .nav-btn-icon,
    body.theme-dark.nav-drawer-open .nav-links.is-open .nav-btn-icon,
    html[data-theme="dark"] body.nav-drawer-open .nav-links.is-open .nav-link-emoji,
    html.theme-dark body.nav-drawer-open .nav-links.is-open .nav-link-emoji,
    body[data-theme="dark"].nav-drawer-open .nav-links.is-open .nav-link-emoji,
    body.theme-dark.nav-drawer-open .nav-links.is-open .nav-link-emoji {
        border-radius: 999px !important;
        background: #244f86 !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    html[data-theme="dark"] body .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    html.theme-dark body .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    body[data-theme="dark"] .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown,
    body.theme-dark .nav-links.is-open .nav-has-dropdown:not(.is-open) .nav-simple-dropdown {
        display: none !important;
    }
}

/* Dark-mode toast/status visibility lock */
html[data-theme="dark"] .tool-action-toast,
html.theme-dark .tool-action-toast,
body[data-theme="dark"] .tool-action-toast,
body.theme-dark .tool-action-toast,
html[data-theme="dark"] .tool-status-note,
html.theme-dark .tool-status-note,
body[data-theme="dark"] .tool-status-note,
body.theme-dark .tool-status-note {
    background: rgba(7, 15, 28, 0.96) !important;
    border: 1px solid rgba(125, 211, 252, 0.34) !important;
    color: #eaf6ff !important;
    -webkit-text-fill-color: #eaf6ff !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .tool-action-toast[data-variant="success"],
html.theme-dark .tool-action-toast[data-variant="success"],
body[data-theme="dark"] .tool-action-toast[data-variant="success"],
body.theme-dark .tool-action-toast[data-variant="success"],
html[data-theme="dark"] .tool-status-note[data-variant="success"],
html.theme-dark .tool-status-note[data-variant="success"],
body[data-theme="dark"] .tool-status-note[data-variant="success"],
body.theme-dark .tool-status-note[data-variant="success"] {
    background: rgba(3, 45, 35, 0.96) !important;
    border-color: rgba(74, 222, 128, 0.42) !important;
    color: #d7ffe6 !important;
    -webkit-text-fill-color: #d7ffe6 !important;
}

html[data-theme="dark"] .tool-action-toast[data-variant="error"],
html.theme-dark .tool-action-toast[data-variant="error"],
body[data-theme="dark"] .tool-action-toast[data-variant="error"],
body.theme-dark .tool-action-toast[data-variant="error"],
html[data-theme="dark"] .tool-status-note[data-variant="error"],
html.theme-dark .tool-status-note[data-variant="error"],
body[data-theme="dark"] .tool-status-note[data-variant="error"],
body.theme-dark .tool-status-note[data-variant="error"] {
    background: rgba(61, 16, 22, 0.96) !important;
    border-color: rgba(248, 113, 113, 0.46) !important;
    color: #ffe4e6 !important;
    -webkit-text-fill-color: #ffe4e6 !important;
}

html[data-theme="dark"] .tool-action-toast[data-variant="clear"],
html.theme-dark .tool-action-toast[data-variant="clear"],
body[data-theme="dark"] .tool-action-toast[data-variant="clear"],
body.theme-dark .tool-action-toast[data-variant="clear"],
html[data-theme="dark"] .tool-status-note[data-variant="clear"],
html.theme-dark .tool-status-note[data-variant="clear"],
body[data-theme="dark"] .tool-status-note[data-variant="clear"],
body.theme-dark .tool-status-note[data-variant="clear"] {
    background: rgba(9, 38, 58, 0.96) !important;
    border-color: rgba(56, 189, 248, 0.46) !important;
    color: #e0f7ff !important;
    -webkit-text-fill-color: #e0f7ff !important;
}
