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

        :root {
            --bg: #f9fafb;
            --surface: #ffffff;
            --surface-raised: #ffffff;
            --border: rgba(0,0,0,0.08);
            --border-strong: rgba(0,0,0,0.14);
            --text-primary: #0d1117;
            --text-secondary: #586069;
            --text-muted: #8b949e;
            --accent: #2563eb;
            --accent-hover: #1d4ed8;
            --accent-light: #eff6ff;
            --accent-light-border: #bfdbfe;
            --green: #059669;
            --green-light: #ecfdf5;
            --red: #dc2626;
            --red-light: #fef2f2;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
            --shadow-lg: 0 10px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
            --radius-sm: 6px;
            --radius: 10px;
            --radius-lg: 14px;
            --radius-xl: 20px;
        }

        html.dark {
            --bg: #0d1117;
            --surface: #161b22;
            --surface-raised: #1c2128;
            --border: rgba(255,255,255,0.06);
            --border-strong: rgba(255,255,255,0.12);
            --text-primary: #e6edf3;
            --text-secondary: #8b949e;
            --text-muted: #6e7681;
            --accent: #3b82f6;
            --accent-hover: #60a5fa;
            --accent-light: rgba(59,130,246,0.08);
            --accent-light-border: rgba(59,130,246,0.2);
            --green: #10b981;
            --green-light: rgba(16,185,129,0.08);
            --red: #f87171;
            --red-light: rgba(248,113,113,0.08);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 1px 3px rgba(0,0,0,0.2);
            --shadow-lg: 0 10px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.2);
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            background: var(--bg);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            transition: background 0.2s, color 0.2s;
            -webkit-font-smoothing: antialiased;
            /* ADD THESE TWO LINES FOR EXTRA PROTECTION */
            width: 100%;
            overflow-x: hidden;
        }

        /* ── Global Header Architecture ── */
        header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(249,250,251,0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 0px solid var(--border);
            transition: background 0.2s;
        }
        html.dark header { background: rgba(13,17,23,0.88); }

        .header-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            height: 65px;
            padding-top: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 5px;
            text-decoration: none;
        }

        .logo-mark {
            width: 30px;
            height: 34px;
            flex-shrink: 0;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
                .logo-mark::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--accent);
            border-radius: 0 0 0 0;
            clip-path: polygon(0% 0%, calc(100% - 8px) 0%, 100% 8px, 100% 100%, 0% 100%);
            z-index: 1; /* Sits below the inner SVG document lines */
        }

        /* 2. The Page Fold Flap (Stays assigned to the background boundary layer) */
        .logo-mark::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 8px;
            height: 8px;
            background: rgba(255, 255, 255, 0.4); 
            border-bottom-left-radius: 3px; 
            clip-path: polygon(0 0, 100% 100%, 0 100%);
            z-index: 2;
        }
        .logo-mark svg { display: block; z-index: 3;}
        .logo-dot {
            position: absolute;
            bottom: -2px;
            right: -2px;
            width: 10px;
            height: 10px;
            background-color: #3fb950;
            border-radius: 50%;
            border: 2px solid var(--surface);
            z-index: 4; 
            transition: background-color 0.3s ease;
        }
        .logo-dot.is-offline {
            background-color: #f85149; /* Bright red color matching modern UI kits */
        }


        .logo-text { line-height: 1.2; }
        .logo-name {
            font-size: 30px;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }
        .logo-name span { color: var(--accent); font-weight: 700; }
        .logo-sub {
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
            font-family: 'SF Mono', 'Fira Code', monospace;
        }

        nav { display: flex; align-items: center; gap: 4px; }
        .hamburger-btn { margin-left: auto; }
        .hamburger-btn {
            display: none;
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            color: var(--text-primary);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, color 0.15s;
        }
        .hamburger-btn:hover { background: var(--border); }
        .hamburger-btn svg { transition: transform 0.2s; }

        .nav-scrim {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.4);
            z-index: 199;
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        .nav-scrim.open { opacity: 1; }

        .nav-drawer { display: none; }
        body.drawer-open { overflow: hidden; }

        .nav-link {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            padding: 6px 12px;
            border-radius: var(--radius-sm);
            transition: color 0.15s, background 0.15s;
        }
        .nav-link:hover { color: var(--text-primary); background: var(--border); }

        /* Tools Dropdown Elements */
        .nav-dropdown { position: relative; }
        .nav-dropdown-btn {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            padding: 8px 14px;
            border-radius: var(--radius-sm);
            border: none;
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: color 0.15s, background 0.15s;
        }
        /* Fix navigation stretching on mobile screens */
        @media (max-width: 600px) {
            .header-inner {
                padding: 0 12px; /* Reduce side padding of header */
                gap: 8px;        /* Bring logo and navigation closer */
            }
            .logo-name {
                font-size: 20px; /* Marginally scale down logo text size on phones */
            }

            /* Hide the entire desktop nav, show the hamburger instead */
            nav { display: none; }
            .hamburger-btn { display: flex; margin-left: auto; }

            .nav-scrim { display: block; pointer-events: none; }
            .nav-scrim.open { pointer-events: auto; }

            /* Full-height drawer sliding from the right */
            .nav-drawer {
                position: fixed;
                top: 0;
                right: 0;
                bottom: 0;
                width: min(82vw, 320px);
                max-width: 100vw;
                box-sizing: border-box;
                background: var(--surface);
                border-left: 1px solid var(--border);
                box-shadow: var(--shadow-lg);
                z-index: 200;
                display: flex;
                flex-direction: column;
                gap: 4px;
                padding: 20px 16px;
                transform: translateX(100%);
                transition: transform 0.3s ease;
                overflow-y: auto;
                overflow-x: hidden;
            }
            .nav-drawer.open { transform: translateX(0); }

            .nav-drawer-close {
                align-self: flex-end;
                width: 32px;
                height: 32px;
                border: none;
                background: transparent;
                border-radius: 50%;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: 8px;
                transition: background 0.15s;
            }
            .nav-drawer-close:hover { background: var(--border); }

            .nav-drawer .nav-link,
            .nav-drawer .theme-btn-mobile {
                width: 100%;
                justify-content: flex-start;
                padding: 12px 10px;
                border-radius: var(--radius-sm);
                font-size: 14px;
            }
            .theme-btn-mobile {
                display: flex;
                align-items: center;
                gap: 10px;
                background: none;
                border: none;
                color: var(--text-secondary);
                cursor: pointer;
                width: 100%;
                text-align: left;
                transition: background 0.15s;
            }
            .theme-btn-mobile:hover { background: var(--border); }

            /* Mobile dropdown becomes an accordion inside the drawer */
            .nav-drawer .nav-dropdown-btn {
                width: 100%;
                justify-content: space-between;
                padding: 12px 10px;
            }
            .nav-drawer .dropdown-menu {
                position: static;
                left: auto;
                display: none;
                grid-template-columns: 1fr;
                min-width: 0;
                width: 100%;
                border: none;
                box-shadow: none;
                background: var(--bg);
                border-radius: var(--radius);
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: none;
                padding: 8px;
                margin-top: 4px;
            }
            .nav-drawer .dropdown-menu.open {
                display: grid;
                transform: none;
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
            }
            .nav-drawer .dropdown-column + .dropdown-column {
                margin-top: 6px;
            }
        }
        .nav-dropdown-btn:hover { color: var(--text-primary); background: var(--border); }
        .nav-dropdown-btn svg { transition: transform 0.2s; }
        .nav-dropdown-btn.open svg { transform: rotate(180deg); }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 10px);
            left: 50%;
            min-width: 460px;
            max-width: min(460px, 92vw);
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            padding: 10px;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translate(-50%, -8px);
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
            z-index: 50;
        }
        .dropdown-menu.open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translate(-50%, 0);
        }
        .dropdown-column {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .dropdown-column-title {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--text-muted);
            padding: 6px 10px 8px;
        }
        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 10px;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            border-radius: var(--radius-sm);
            transition: background 0.12s;
        }
        .dropdown-item:hover { background: var(--bg); }
        .dropdown-icon {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            background: var(--accent-light);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .theme-btn {
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            border: none;
            background: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: background 0.15s, border-color 0.15s;
        }
        .theme-btn:hover { background: var(--bg); }
        .nav-divider { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }

        /* ── Main Content Area ── */
        main {
            max-width: 1100px;
            margin: 0 auto;
            padding: 33px 24px 80px;
            width: 100%;
            flex-grow: 1;
        }

        /* Split-Pane Hero Workspace Configuration (image_3be719.png) */
        .hero-workspace {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            margin-bottom: 100px;
        }
        .hero-title {
            font-size: clamp(32px, 5vw, 52px);
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.1;
            color: var(--text-primary);
            margin-bottom: 16px;
        }


        @media (max-width: 800px) {
            .hero-workspace {
                grid-template-columns: 1fr;
                gap: 48px;
                margin-bottom: 64px;
            }
        }

        /* Left Side Content Styles */
        .tool-info-pane {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
        }
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-light);
            border: 1px solid var(--accent-light-border);
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 11.5px;
            font-weight: 600;
            letter-spacing: 0.06em;
            color: var(--accent);
            text-transform: uppercase;
            margin-bottom: 20px;
        }
        .badge::before {
            content: "";
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
        }
        .tool-info-pane h1 {
            font-size: clamp(32px, 5vw, 52px);
            font-weight: 800;
            letter-spacing: -0.035em;
            line-height: 1.1;
            margin-bottom: 16px;
            color: var(--text-primary);
        }
        .tool-info-pane h1 span {
            color: var(--accent);
        }
        .tool-info-pane p {
            color: var(--text-secondary);
            font-size: 15.5px;
            line-height: 1.65;
            margin-bottom: 32px;
            max-width: 420px;
        }
        .feature-checklist {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .feature-item {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13.5px;
            font-weight: 500;
            color: var(--text-secondary);
        }
        .check-icon {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--green-light);
            border: 1px solid rgba(5,150,105,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }
        html.dark .check-icon { border-color: rgba(16,185,129,0.2); }
        .check-icon svg { display: block; }

        /* Right Side Workspace Pane Wrapper */
        .tool-interactive-pane {
            width: 100%;
        }

        /* Drag-and-drop workspace dropzone container */
        .dropzone-outer {
            background: var(--surface);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-xl);
            padding: 28px;
            box-shadow: var(--shadow-md);
            position: relative;
        }
        .dropzone-container {
            border: 1.5px dashed var(--border-strong);
            border-radius: var(--radius-lg);
            padding: 36px 24px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            cursor: pointer;
            position: relative;
            background: var(--surface);
            transition: border-color 0.2s, background 0.2s;
        }
        .dropzone-container:hover, .dropzone-container.dragover {
            border-color: var(--accent);
            background: var(--accent-light);
        }
        .dropzone-container input[type="file"] {
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            opacity: 0; cursor: pointer;
        }
        .dropzone-icon-box {
            width: 52px;
            height: 64px;
            margin-bottom: 18px;
            background: var(--surface-raised);
            border: 1.5px solid var(--border-strong);
            border-radius: var(--radius-sm);
            position: relative;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 5px;
            box-shadow: var(--shadow-sm);
        }
        .dropzone-icon-box svg {
            color: var(--red);
            width: 44px;
            height: 56px;
        }
        .dropzone-text {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }
        .dropzone-subtext {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-bottom: 18px;
        }
        .select-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent);
            color: #ffffff;
            font-size: 12.5px;
            font-weight: 600;
            padding: 9px 18px;
            border-radius: var(--radius-sm);
            text-decoration: none;
            pointer-events: none;
        }

        /* Options settings control row array layout panel */
        .config-panel {
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-lg);
            padding: 24px;
            display: none;
            flex-direction: column;
            gap: 20px;
            box-shadow: var(--shadow-md);
        }
        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            padding-bottom: 12px;
        }
        .panel-filename {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            word-break: break-all;
        }
        .panel-pagecount {
            font-size: 13px;
            color: var(--text-secondary);
            font-weight: 500;
        }
        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
        }
        .input-wrapper {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        .input-wrapper label {
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        .input-wrapper select, .input-wrapper input {
            background: var(--surface);
            border: 1px solid var(--border-strong);
            color: var(--text-primary);
            padding: 10px 12px;
            border-radius: var(--radius-sm);
            font-size: 14px;
            outline: none;
            width: 100%;
            transition: border-color 0.15s;
        }
        .input-wrapper select:focus, .input-wrapper input:focus {
            border-color: var(--accent);
        }

        /* Dashboard button matrix components */
        .btn-matrix {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }
        .action-btn {
            padding: 12px 20px;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: background 0.15s, opacity 0.15s;
        }
        .btn-exec {
            background: var(--accent);
            color: #ffffff;
            flex-grow: 1;
        }
        .btn-exec:hover { background: var(--accent-hover); }
        .btn-exec:disabled { opacity: 0.5; cursor: not-allowed; }
        .btn-clear {
            background: var(--red-light);
            border: 1px solid var(--red);
            color: var(--red);
            padding: 12px 16px;
        }
        .btn-clear:hover { background: var(--red); color: #ffffff; }

        .status-banner {
            margin-top: 16px;
            font-size: 14px;
            color: var(--accent);
            text-align: center;
            font-weight: 600;
        }

        /* Converted card gallery target component grids */
        .gallery-workspace {
            margin-top: 32px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 20px;
        }
        .gallery-card {
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius);
            padding: 12px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            box-shadow: var(--shadow-sm);
        }
        .gallery-card img {
            width: 100%;
            height: auto;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            background: #ffffff;
        }
        .gallery-dl-btn {
            background: var(--surface);
            border: 1px solid var(--border-strong);
            color: var(--text-primary);
            padding: 8px;
            border-radius: var(--radius-sm);
            text-align: center;
            text-decoration: none;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.12s;
        }
        .gallery-dl-btn:hover {
            background: var(--bg);
            border-color: var(--text-secondary);
        }

        .bulk-download-actions {
            margin-top: 20px;
            display: flex;
            justify-content: flex-end;
        }
        .bulk-download-actions .action-btn {
            width: auto;
            min-width: 220px;
        }

        #hidden-canvas { display: none; }

        /* How It Works Separator Line Group */
        .scroll-cue {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            margin-top: 64px;
            margin-bottom: 0;
        }
        .scroll-cue-label {
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
        .scroll-cue-arrow {
            color: var(--text-muted);
            animation: bounce 2s ease-in-out infinite;
        }
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(4px); }
        }

        .scroll-arrow-link {
            display: inline-flex;
            cursor: pointer;
            color: inherit;
            text-decoration: none;
        }
        .scroll-arrow-link:hover .scroll-cue-arrow {
            color: var(--accent);
        }

        /* ── Info Features Marketing Section (image_3be75a.png) ── */
        .info-section {
            padding-bottom: 40px;
        }
        .info-section-tag {
            font-size: 11px;
            font-weight: 700;
            color: var(--accent);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 12px;
        }
        .info-section h2 {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 36px;
            max-width: 600px;
        }
        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }
        .info-card {
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-lg);
            padding: 24px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }
        .info-card-icon {
            width: 36px;
            height: 36px;
            background: var(--accent-light);
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: var(--accent);
        }
        .info-card h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }
        .info-card p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* ── Global Footer Architecture ── */
        footer {
            border-top: 1px solid var(--border);
            background: var(--bg);
            transition: background 0.2s;
        }
        .footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 24px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
        }
        .footer-copy {
            font-size: 12.5px;
            color: var(--text-muted);
        }
        .footer-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .footer-link {
            font-size: 12.5px;
            font-weight: 500;
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.15s;
        }
        .footer-link:hover {
            color: var(--text-primary);
        }

        .scroll-arrow-link {
            display: inline-flex;
            cursor: pointer;
            color: inherit;
            text-decoration: none;
        }

        /* Language Switcher Elements */
        .lang-container {
            position: relative;
        }

        .lang-btn {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-muted);
            padding: 5px 10px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-strong);
            background: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.15s, background 0.15s, border-color 0.15s;
        }

        .lang-btn:hover {
            color: var(--text-primary);
            background: var(--bg);
        }

        .lang-menu {
            position: absolute;
            bottom: calc(100% + 6px);
            right: 0;
            background: var(--surface-raised);
            border: 1px solid var(--border-strong);
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            min-width: 130px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(4px);
            transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
            z-index: 50;
        }
        .lang-menu.open {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
        .lang-item {
            width: 100%;
            border: none;
            background: none;
            padding: 8px 12px;
            text-align: left;
            font-size: 12.5px;
            font-weight: 500;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .lang-item:hover { background: var(--bg); }
        .lang-item.active { color: var(--accent); font-weight: 600; }

        @media (max-width: 868px) {
            .hero-workspace { grid-template-columns: 1fr; gap: 32px; }
            .tool-info-pane { text-align: center; align-items: center; }
            .tool-info-pane p { max-width: 100%; }
        }

        @media (max-width: 640px) {
            /* .header-inner, .footer-inner { padding: 0 16px; flex-direction: column; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; } */
            .header-inner { padding: 0 16px; flex-direction: row; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
            .footer-inner { padding: 0 16px; flex-direction: column; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
            .btn-matrix { flex-direction: column; }
            .btn-clear { order: 2; }
            .tool-info-pane h1 { font-size: 32px; }
        }
