        :root {
            /* -- TYPOGRAPHY -- */
            --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            --font-display: 'Manrope', sans-serif;

            /* -- THEME PALETTE (Based on Admin Dossier) -- */
            --bg-color: #121212;
            --panel-bg: #1a1a1a;
            --panel-border: rgba(255, 255, 255, 0.08);

            --primary-color: #3fc6bf;
            /* Emerald Teal */
            --secondary-color: #3fc6bf;
            /* Cyan Teal */

            --text-main: #f7f7f7;
            --text-muted: #a0a0a0;

            /* -- UI ELEVATION -- */
            --glass-blur: blur(20px);
            --surface-glass: rgba(30, 30, 30, 0.70);

            /* -- STATUS COLORS -- */
            --error-color: #ef4444;
            --success-color: #10b981;
            --warn-color: #f59e0b;
            --info-color: #3b82f6;

            /* -- SHADOWS (No more Neon) -- */
            --neon-glow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --neon-glow-active: 0 0 0 2px rgba(32, 203, 134, 0.2);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        .ui-language-boot-loader {
            display: none;
        }

        html.i18n-pending body {
            overflow: hidden !important;
            background: #121214;
        }

        html.i18n-pending body > :not(.ui-language-boot-loader) {
            visibility: hidden !important;
        }

        html.i18n-pending .ui-language-boot-loader {
            position: fixed;
            inset: 0;
            z-index: 2147483647;
            display: grid;
            place-content: center;
            justify-items: center;
            gap: 18px;
            visibility: visible !important;
            background:
                radial-gradient(circle at 50% 46%, rgba(192, 193, 255, 0.12), transparent 28%),
                radial-gradient(circle at 30% 70%, rgba(63, 198, 191, 0.05), transparent 34%),
                #121214;
        }

        .ui-language-boot-mark {
            width: 52px;
            height: 52px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(192, 193, 255, 0.28);
            border-radius: 15px;
            background: linear-gradient(145deg, rgba(192, 193, 255, 0.16), rgba(63, 198, 191, 0.07));
            color: rgba(238, 238, 255, 0.94);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(192, 193, 255, 0.08);
            font: 700 14px/1 'Manrope', sans-serif;
            letter-spacing: 0.08em;
            animation: uiLanguageBootPulse 1.35s ease-in-out infinite;
        }

        .ui-language-boot-track {
            width: 112px;
            height: 3px;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.1);
        }

        .ui-language-boot-track span {
            display: block;
            width: 44%;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #8c8eff, #3fc6bf);
            box-shadow: 0 0 14px rgba(140, 142, 255, 0.32);
            animation: uiLanguageBootSlide 1s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
        }

        @keyframes uiLanguageBootPulse {
            0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34), 0 0 0 0 rgba(192, 193, 255, 0.08); }
            50% { transform: translateY(-3px) scale(1.025); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4), 0 0 0 7px rgba(192, 193, 255, 0.035); }
        }

        @keyframes uiLanguageBootSlide {
            from { transform: translateX(-12%); }
            to { transform: translateX(140%); }
        }

        @media (prefers-reduced-motion: reduce) {
            .ui-language-boot-mark,
            .ui-language-boot-track span {
                animation: none;
            }
        }

        /* --- MISSION AUTH MODAL STYLES --- */
        .mission-modal-wrap {
            width: 100%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin: 0 auto;
        }

        /* Override legacy modal container for this specific modal */
        #forgotModal .modal-content {
            background: transparent !important;
            box-shadow: none !important;
            border: none !important;
            padding: 0 !important;
            max-width: 100% !important;
        }

        .mission-card {
            background: rgba(13, 13, 15, 0.9);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        #forgotModal .mission-card,
        #forgotModal .mission-card p,
        #forgotModal .mission-input-label,
        #forgotModal .mission-input,
        #forgotModal .btn-verif-submit {
            font-family: var(--font-main);
        }

        #forgotModal .mission-card h2 {
            font-family: var(--font-main) !important;
        }

        .mission-card:hover {
            border-color: rgba(255, 255, 255, 0.15);
        }

        .mission-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: rgba(0, 243, 255, 0.5);
            transition: background 0.3s ease;
        }

        .mission-card:hover::before {
            background: var(--primary-color);
        }

        .mission-input-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 4px;
        }

        .mission-input {
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid #374151;
            color: white;
            border-radius: 4px;
            padding: 12px;
            width: 100%;
            font-family: var(--font-main);
            transition: all 0.2s;
            outline: none;
        }

        .mission-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 1px var(--primary-color);
        }

        .mission-btn {
            background: var(--primary-color);
            color: #000;
            font-weight: 600;
            padding: 12px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
            border: none;
            cursor: pointer;
            width: 100%;
            margin-top: 8px;
        }

        .mission-btn:hover {
            background: #fff;
            box-shadow: 0 0 25px rgba(0, 243, 255, 0.5);
        }

        .mission-btn span.material-symbols-outlined {
            transition: transform 0.2s;
        }

        .mission-btn:hover span.material-symbols-outlined {
            transform: translateX(4px);
        }

        .otp-group {
            display: flex;
            gap: 8px;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .otp-input {
            width: 100%;
            aspect-ratio: 1;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid #374151;
            color: white;
            text-align: center;
            font-size: 1.25rem;
            font-family: monospace;
            border-radius: 4px;
            outline: none;
            transition: all 0.2s;
        }

        .otp-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 1px var(--primary-color);
        }

        .auth-back-link {
            font-size: 0.875rem;
            font-weight: 500;
            color: #9ca3af;
            text-decoration: none;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            transition: color 0.2s;
            margin-top: 20px;
            cursor: pointer;
        }

        .auth-back-link:hover {
            color: white;
        }

        .auth-back-link span {
            transition: transform 0.2s;
        }

        .auth-back-link:hover span {
            transform: translateX(-4px);
        }

        /* Security Code Section Animation */
        #forgotFormStep2 {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            display: none;
            /* Initially hidden */
        }

        #forgotFormStep2.active-step {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        /* --- TOAST NOTIFICATIONS --- */
        #toast-container {
            position: fixed;
            bottom: 24px;
            right: 24px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        @keyframes toastIn {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes toastOut {
            to {
                opacity: 0;
                transform: translateX(20px);
            }
        }

        body {
            font-family: var(--font-main);
            background-color: var(--bg-color);
            color: var(--text-main);
            height: 100vh;
            overflow: hidden;
            /* Subtle noise or gradient if desired, but keeping it flat/clean for the 'Admin' look */
            background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 40%, #020617 100%);
        }

        /* Custom Scrollbar for Sidebar & Global */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-color);
        }

        /* Header */

        /* Unified Header Controls */
        .header-btn {
            box-sizing: border-box;
            height: 40px;
            min-width: 40px;
            padding: 0 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--panel-border);
            border-radius: 8px;
            color: var(--text-muted);
            font-family: var(--font-main);
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            user-select: none;
        }

        .header-btn:hover,
        .header-btn.active {
            border-color: var(--primary-color);
            color: #fff;
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }

        .header-btn.icon-only {
            padding: 0;
            width: 40px;
            min-width: 40px;
            max-width: 40px;
            aspect-ratio: 1 / 1;
        }

        .user-initial-display {
            display: grid;
            place-items: center;
            width: 100%;
            height: 100%;
            color: var(--primary-color);
            font-family: var(--font-main);
            font-size: 1rem;
            font-weight: 800;
            line-height: 1;
            text-transform: uppercase;
            text-align: center;
        }

        /* Badge Positioning */
        .header-btn .cart-badge,
        .header-btn .notif-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--primary-color);
            color: #000;
            font-size: 0.7rem;
            font-weight: 700;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 5px var(--primary-color);
            pointer-events: none;
            z-index: 10;
        }

        .header-btn .notif-badge {
            background-color: var(--error-color);
            box-shadow: 0 0 5px var(--error-color);
            width: 8px;
            height: 8px;
            top: 2px;
            right: 2px;
        }

        /* Logged In State */
        .header-btn.logged-in {
            border-color: rgba(255, 255, 255, 0.2);
            color: var(--primary-color);
        }

        .header-btn.icon-only.logged-in {
            width: 40px;
            min-width: 40px;
            max-width: 40px;
            height: 40px;
            padding: 0;
        }

        .header-btn.logged-in:hover {
            border-color: var(--primary-color);
        }

        .header-btn.logged-in .dropdown-chevron {
            transform: translateY(1px);
            color: var(--primary-color);
        }

        /* Guest Status Text */
        .guest-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 500;
            padding: 0 12px;
            height: 40px;
        }

        .login-indicator.logged-in:hover .dropdown-chevron {
            transform: translateY(1px);
            color: var(--primary-color);
        }

        /* --- User Dropdown (Noir Glass Redesign) --- */
        .user-dropdown {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            width: 260px;
            background: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            display: none;
            flex-direction: column;
            z-index: 200;
            transform-origin: top right;
            transition: all 0.2s ease;
            opacity: 0;
            transform: translateY(10px);
        }

        .header-btn.logged-in:hover .user-dropdown,
        .user-dropdown.active,
        .user-dropdown:hover {
            display: flex;
            opacity: 1;
            transform: translateY(0);
            animation: dropdownFadeIn 0.2s forwards;
        }

        @keyframes dropdownFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Bridge Fix */
        .user-dropdown::before {
            content: '';
            position: absolute;
            top: -20px;
            left: 0;
            right: 0;
            height: 20px;
        }

        /* Header */
        .dropdown-header {
            padding: 12px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .dropdown-label {
            font-size: 0.7rem;
            color: #737373;
            /* neutral-500 */
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 4px;
            font-family: var(--font-main);
        }

        .dropdown-user-email {
            font-size: 0.85rem;
            color: #fff;
            font-family: var(--font-display);
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Menu List */
        .dropdown-menu-list {
            padding: 4px 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .dropdown-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
            margin: 0 4px;
            border-radius: 4px;
            cursor: pointer;
            color: #d4d4d4;
            /* neutral-300 */
            font-family: var(--font-main);
            font-size: 0.85rem;
            transition: all 0.2s;
            text-decoration: none;
        }

        .dropdown-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .dropdown-item-content {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .dropdown-icon {
            font-size: 20px;
            color: #737373;
            /* neutral-500 */
            transition: color 0.2s;
        }

        .dropdown-item:hover .dropdown-icon {
            color: var(--primary-color);
        }

        /* Active State */
        .dropdown-item.active {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border-left: 2px solid var(--primary-color);
            border-radius: 0 4px 4px 0;
            margin-left: 0;
        }

        .dropdown-item.active .dropdown-icon {
            color: var(--primary-color);
        }

        /* Wallet Badge */
        .wallet-badge {
            font-size: 10px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            font-family: var(--font-main);
        }

        .plan-badge {
            font-size: 10px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.72);
            padding: 2px 7px;
            border-radius: 4px;
            border: 1px solid rgba(255, 255, 255, 0.06);
            font-family: var(--font-main);
            font-weight: 800;
            letter-spacing: 0.08em;
        }

        .plan-badge.pro {
            background: rgba(63, 198, 191, 0.14);
            border-color: rgba(63, 198, 191, 0.4);
            color: var(--primary-color);
        }

        /* Footer */
        .dropdown-footer {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            margin-top: 4px;
            padding: 4px 0;
        }

        /* Logout Specifics */
        .dropdown-item.logout {
            color: #f87171;
            /* red-400 */
        }

        .dropdown-item.logout .dropdown-icon {
            color: #f87171;
        }

        .dropdown-item.logout:hover {
            background: rgba(239, 68, 68, 0.1);
            color: #fca5a5;
            /* red-300 */
        }

                /* Main Layout */
        main {
            display: grid;
            grid-template-columns: 1fr 550px;
            height: 100vh;
            width: 100vw;
            position: relative;
            overflow: hidden;
        }

        /* Sidebar Resizer */
        .resize-handle {
            position: absolute;
            right: 0;
            top: 0;
            bottom: 0;
            width: 8px;
            cursor: col-resize;
            z-index: 2000;
            transition: background 0.2s ease;
            background: transparent;
        }

        .resize-handle:hover,
        .resize-handle.active {
            background: var(--primary-color);
            box-shadow: -2px 0 15px rgba(63, 198, 191, 0.4);
        }

        /* Preview Area */
        .preview-area {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            flex-direction: column;
            background-color: #050505;
            background-image:
                linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.9);
        }

        @keyframes float {
            0% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-15px);
            }

            100% {
                transform: translateY(0px);
            }
        }

        /* Controls Section */
        .controls {
            background: var(--panel-bg);
            backdrop-filter: var(--glass-blur);
            border-left: 1px solid var(--panel-border);
            padding: 2rem;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        @keyframes pulse {
            0% {
                transform: scale(1);
                opacity: 1;
            }

            100% {
                transform: scale(1.3);
                opacity: 0;
            }
        }

        @keyframes sync-scan {
            0% {
                opacity: 0.4;
                text-shadow: 0 0 2px var(--primary-color);
            }

            50% {
                opacity: 1;
                text-shadow: 0 0 10px var(--primary-color);
            }

            100% {
                opacity: 0.4;
                text-shadow: 0 0 2px var(--primary-color);
            }
        }

        /* --- NOTIFICATIONS --- */
        .notification-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 2147483647 !important;
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: min(360px, calc(100vw - 32px));
            pointer-events: none;
            isolation: isolate;
        }

        .notification-toast {
            --toast-accent: var(--primary-color);
            position: relative;
            overflow: hidden;
            width: 100%;
            background: rgba(11, 13, 16, 0.985);
            border: 1px solid rgba(255, 255, 255, 0.13);
            border-left: 3px solid var(--toast-accent);
            border-radius: 8px;
            color: var(--text-main);
            padding: 12px 14px;
            font-family: var(--font-main);
            box-shadow: 0 18px 55px rgba(0, 0, 0, 0.58);
            animation: slideIn 0.3s ease-out forwards;
            display: flex;
            align-items: center;
            gap: 12px;
            pointer-events: auto;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .notification-toast::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, color-mix(in srgb, var(--toast-accent) 9%, transparent), transparent 45%);
            opacity: 0.62;
            pointer-events: none;
        }

        .notification-icon,
        .notification-copy {
            position: relative;
            z-index: 1;
        }

        .notification-icon {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border-radius: 8px;
            background: color-mix(in srgb, var(--toast-accent) 14%, transparent);
            border: 1px solid color-mix(in srgb, var(--toast-accent) 28%, transparent);
            color: var(--toast-accent);
            font-size: 20px;
        }

        .notification-copy {
            min-width: 0;
            display: grid;
            gap: 2px;
        }

        .notification-title {
            color: var(--text-main);
            font-size: 0.72rem;
            font-weight: 900;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            line-height: 1.2;
        }

        .notification-message {
            color: var(--text-muted);
            font-size: 0.86rem;
            font-weight: 600;
            line-height: 1.35;
            overflow-wrap: anywhere;
        }

        .notification-toast.error {
            --toast-accent: var(--error-color);
        }

        .notification-toast.success {
            --toast-accent: var(--primary-color);
        }

        .notification-toast.warning {
            --toast-accent: var(--warn-color);
        }

        @keyframes slideIn {
            from {
                transform: translateX(18px);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            to {
                transform: translateX(18px);
                opacity: 0;
            }
        }

        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--primary-color);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            letter-spacing: 2px;
            animation: pulse-loader 1.5s infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes pulse-loader {
            0% {
                opacity: 0.4;
                text-shadow: 0 0 5px var(--primary-color);
            }

            50% {
                opacity: 1;
                text-shadow: 0 0 20px var(--primary-color);
            }

            100% {
                opacity: 0.4;
                text-shadow: 0 0 5px var(--primary-color);
            }
        }

        /* Button Disabled State */
        button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            filter: grayscale(1);
        }

        /* --- MODAL STYLES --- */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(5px);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .modal-content {
            background: #18181b;
            border: 1px solid var(--panel-border);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            padding: 2rem;
            transform: scale(0.95);
            transition: all 0.3s ease;
            max-height: 90vh;
            overflow-y: auto;
        }

        .modal-overlay.active .modal-content {
            transform: scale(1);

        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
            border-bottom: 1px solid var(--panel-border);
            padding-bottom: 1rem;
        }

        .modal-header h2 {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--primary-color);
            font-size: 1.5rem;
            text-transform: none;
            letter-spacing: normal;
            text-shadow: none;
        }

        .close-modal {
            background: none;
            border: none;
            color: var(--text-muted);
            font-size: 2rem;
            cursor: pointer;
            line-height: 1;
        }

        .close-modal:hover {
            color: var(--secondary-color);
        }

        /* --- Enhanced Modal Close Button --- */

        /* --- LEDGER CART STYLES (New Design) --- */
        /* Modal Container Override */

        /* Header */

        /* Main Split View */

        /* Left Spine (Item List) */

        .text-primary-sm {
            color: var(--primary-color);
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        /* The Vertical Line */

        /* Ledger Item Card */

        /* Timeline Node */

        /* Container: Clean, card-like look */

        /* Typography Grouping */

        /* Label: Uppercase, tracking, minimal */
        .wallet-label {
            font-family: 'Manrope', sans-serif;
            font-size: 0.7rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #888;
            /* Neutral gray */
        }

        /* The Number: Bold, Sans-Serif, No Glow */

        /* Button: Solid, Pill-shaped or soft rect */

        /* Right Summary Panel */

        /* Shimmer Button */

        /* Address Card Styles */

        .address-card.selected {

            border-color: var(--panel-border);

        }

        /* --- INLINE CHECKOUT SECTION --- */

        @keyframes fadeSlideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .pay-method-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--panel-border);
            cursor: pointer;
            transition: all 0.2s;
            border-radius: 6px;
            color: var(--text-muted);
        }

        .pay-method-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            border-color: #fff;
            color: #fff;
        }

        .pay-method-btn.active {

            border-color: rgba(63, 198, 191, 0.45) !important;
            background: var(--primary-color);

            color: #071312;
            box-shadow: 0 0 16px rgba(63, 198, 191, 0.14);
        }

        /* Orders Modal Styles */
        #ordersModal .modal-content {
            max-width: 1200px;
            height: 85vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .tab-btn.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

        /* Status: Shipped (Blue) */

        /* Pagination Styles */
        .pagination-controls {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px solid var(--panel-border);
        }

        .page-btn {
            background: transparent;
            border: 1px solid var(--panel-border);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-family: var(--font-main);
            font-weight: 600;
            transition: all 0.2s;
        }

        .page-btn:hover {
            border-color: var(--primary-color);
            color: #fff;
        }

        .page-btn.active {
            background: var(--primary-color);
            color: #000;
            border-color: var(--primary-color);
        }

        .page-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            border-color: transparent;
        }

        /* Order Details View (Inside Modal) */

        /* Success Receipt */

        #forgotExpiryTimer {
            color: var(--primary-color);
            font-family: monospace;
            text-decoration: none !important;
            display: inline-block;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-group label {
            display: block;
            color: var(--text-muted);
            font-size: 0.8rem;
            text-transform: uppercase;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }

        .form-control {
            width: 100%;
            background: #09090b;
            border: 1px solid #27272a;
            border-radius: 6px;
            color: #fff;
            padding: 0.75rem 1rem;
            font-family: var(--font-main);
            font-size: 0.95rem;
            transition: all 0.2s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-color);
            background: #09090b;
            box-shadow: 0 0 0 2px rgba(32, 203, 134, 0.1);
        }

        .modal-actions {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .btn-cancel {
            flex: 1;
            background: transparent;
            border: 1px solid var(--text-muted);
            color: var(--text-muted);
            padding: 1rem;
            font-family: var(--font-main);
            cursor: pointer;
            text-transform: none;
            transition: all 0.3s;
        }

        .btn-cancel:hover {
            border-color: #fff;
            color: #fff;
        }

        .btn-confirm {
            flex: 2;
            background: var(--secondary-color);
            border: none;
            color: #fff;
            padding: 1rem;
            font-family: var(--font-main);
            font-weight: 700;
            cursor: pointer;
            text-transform: none;
            letter-spacing: normal;
            box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
        }

        .btn-confirm:hover {
            background: #d966ff;
            box-shadow: 0 0 25px rgba(188, 19, 254, 0.6);
        }

        /* Disabled state */
        .btn-confirm:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            filter: grayscale(1);
            box-shadow: none;
        }

        #stripePaymentForm {
            display: none;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--panel-border);
            padding: 15px;
            border-radius: 4px;
            margin-bottom: 24px;
        }

        #stripePaymentForm {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--panel-border);
            padding: 15px;
            border-radius: 4px;
            margin-bottom: 24px;
        }

        /* Auth Links */

        #activityModal .modal-content {
            height: 85vh;
        }

        /* Error/Success Messages */
        .status-msg {
            margin-top: 1rem;
            font-size: 0.9rem;
            text-align: center;
            /* Fix: Collapse space when empty */
            display: none;
        }

        .status-msg:not(:empty) {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        .status-msg.error {
            color: var(--error-color);
        }

        .status-msg.success {
            color: var(--success-color);
        }

        .zoom-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 3000;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: zoom-out;
        }

        .zoom-overlay img {
            max-width: 90%;
            max-height: 90%;
            border: 1px solid var(--primary-color);
            box-shadow: var(--neon-glow);
        }

        /* Stepper & Avatar Styles */

        .step-item.active .step-dot {
            border-color: var(--primary-color);
            color: var(--primary-color);
            box-shadow: 0 0 10px var(--primary-color);
            background: #000;
        }

        .step-item.active .step-label {
            color: var(--primary-color);
        }

        /* Skeleton Loading */

        /* Payment Shake Animation */
        @keyframes shake {

            10%,
            90% {
                transform: translate3d(-1px, 0, 0);
            }

            20%,
            80% {
                transform: translate3d(2px, 0, 0);
            }

            30%,
            50%,
            70% {
                transform: translate3d(-4px, 0, 0);
            }

            40%,
            60% {
                transform: translate3d(4px, 0, 0);
            }
        }

        @keyframes de-materialize {
            0% {
                filter: brightness(1) contrast(1) blur(0);
                opacity: 1;
                transform: scale(1);
            }

            20% {
                filter: brightness(2) contrast(0.5) blur(2px);
                opacity: 0.8;
                transform: scale(1.05) skewX(10deg);
            }

            100% {
                filter: brightness(5) contrast(0) blur(20px);
                opacity: 0;
                transform: scale(0.8) translateY(-20px);
            }
        }

        /* Drag & Drop Active State */

        /* Upload List */

        /* Folders & Batch UI */

        .folder-tab.active {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: rgba(0, 243, 255, 0.1);
        }

        /* Responsive */
        @media (max-width: 900px) {
            main {
                grid-template-columns: 1fr;
                grid-template-rows: 400px 1fr;
                height: auto;
                overflow-y: auto;
            }

            .controls {
                border-left: none;
                border-top: 1px solid var(--panel-border);
                padding-bottom: 4rem;
            }
        }

        /* Top Up Grid */

        .topup-card.popular {
            border-color: #000;
            background: #fdfdfd;
        }

        /* Clean Table */

        /* --- Profile Avatar --- */

        /* Edit Overlay (Hidden by default, appears on hover) */

        /* Online Status Dot */

        /* --- Form Improvements --- */

        .form-control.with-icon {
            padding-left: 40px;
            /* Space for icon */
        }

        /* --- Storage Section --- */

        /* --- Footer --- */

        /* --- Premium Profile Modal (Replacement) --- */

        /* 1. The Glass Panel Container */
        .profile-glass-panel {
            background: rgba(10, 10, 10, 0.85);
            /* Deep dark background */
            backdrop-filter: blur(20px);
            /* Heavy blur for glass effect */
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            width: 100%;
            max-width: 460px;
            /* Slimmer, mobile-app feel */
            padding: 0;
            /* We handle padding internally */
            overflow: hidden;
            /* For rounding corners */
            display: flex;
            flex-direction: column;
            max-height: 85vh;
        }

        /* 2. Header Area */
        .profile-header-center {
            padding: 2.5rem 2rem 1.5rem;
            text-align: center;
        }

        .profile-header-center h2 {
            font-family: 'Playfair Display', serif;
            /* Optional: Adds that "Fashion" feel */
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .separator-line {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            opacity: 0.5;
        }

        .separator-line::before,
        .separator-line::after {
            content: '';
            height: 1px;
            width: 24px;
            background: rgba(255, 255, 255, 0.5);
        }

        .separator-text {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.25em;
            text-transform: uppercase;
            color: #fff;
        }

        /* 3. Avatar Section */
        .profile-avatar-section {
            display: flex;
            justify-content: center;
            padding-bottom: 2rem;
        }

        .avatar-ring-group {
            position: relative;
            width: 112px;
            height: 112px;
            border-radius: 50%;
            /* The "Ring" effect */
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
            padding: 4px;
            /* Space between ring and image */
        }

        .avatar-large {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
            transition: filter 0.5s ease;
        }

        .avatar-initial {
            display: flex;
            align-items: center;
            justify-content: center;
            background: radial-gradient(circle at 30% 20%, rgba(63, 198, 191, 0.28), rgba(63, 198, 191, 0.08) 42%, rgba(0, 0, 0, 0.45) 100%);
            border: 1px solid rgba(63, 198, 191, 0.45);
            color: #fff;
            font-family: var(--font-display);
            font-size: 3rem;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
            box-shadow: inset 0 0 28px rgba(63, 198, 191, 0.16);
            user-select: none;
        }

        .avatar-ring-group:hover .avatar-large {
            filter: grayscale(0%);
            /* Color on hover */
        }

        .avatar-change-btn {
            position: absolute;
            inset: 4px;
            /* Matches padding of ring */
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(2px);
            border: none;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #fff;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: pointer;
        }

        .avatar-ring-group:hover .avatar-change-btn {
            opacity: 1;
        }

        .avatar-change-btn span:last-child {
            font-size: 0.55rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            margin-top: 4px;
        }

        .status-indicator-dot {
            position: absolute;
            bottom: 5px;
            right: 5px;
            width: 16px;
            height: 16px;
            background: #000;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .status-indicator-dot::after {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--primary-color);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--primary-color);
        }

        /* 4. Body Content */
        .profile-body-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 0 2rem 2rem;
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        /* Inputs */
        .premium-input-group label {
            display: block;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 0.5rem;
            margin-top: 0.5rem;
            padding-left: 4px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-wrapper .icon {
            position: absolute;
            left: 1rem;
            color: rgba(255, 255, 255, 0.4);
            font-size: 1.1rem;
            pointer-events: none;
        }

        .input-wrapper input {
            width: 100%;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 6px;
            padding: 0.8rem 1rem 0.8rem 2.8rem;
            /* Left padding for icon */
            color: #fff;
            font-family: 'Manrope', sans-serif;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .input-wrapper input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: rgba(255, 255, 255, 0.02);
        }

        /* Wallet Card (Noir Gradient) */
        .premium-wallet-card {
            position: relative;
            background: linear-gradient(180deg, rgba(30, 30, 30, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 1.5rem;
            overflow: hidden;
        }

        .wallet-bg-icon {
            position: absolute;
            top: -10px;
            right: -10px;
            opacity: 0.03;
            pointer-events: none;
        }

        .wallet-bg-icon span {
            font-size: 8rem;
            color: #fff;
        }

        .wallet-content {
            position: relative;
            z-index: 2;
        }

        .wallet-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1.5rem;
        }

        .wallet-label {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            color: rgba(255, 255, 255, 0.5);
            margin-bottom: 0.2rem;
            text-transform: uppercase;
        }

        .wallet-balance {
            font-family: 'Manrope', sans-serif;
            font-size: 2.2rem;
            font-weight: 300;
            /* Light weight looks more elegant */
            color: #fff;
            letter-spacing: -0.02em;
        }

        .card-icon-circle {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Storage Bar */

        /* Footer */
        .profile-footer {
            padding: 1rem 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            justify-content: center;
        }

        .close-text-btn {
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.15em;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: color 0.2s;
        }

        .close-text-btn:hover {
            color: #fff;
        }

        /* --- Noir Wallet Modal --- */

        /* 1. Glass Container */
        .wallet-glass-panel {
            display: flex;
            flex-direction: column;
            background: rgba(18, 18, 18, 0.90);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            width: 100%;
            max-width: 900px;

            /* --- FIXED HEIGHT UPDATE --- */
            height: 80vh;

            /* Prevents cutting off on small screens */
            /* --------------------------- */

            display: flex;
            flex-direction: column;
            overflow: hidden;
            color: #fff;
        }

        .wallet-layout {
            padding: 3rem;
            padding-top: 1.5rem;
            /* Reduced top padding since we're adding margin */
            margin-top: 2.5rem;
            /* Pushes the entire scrollable area down */
            overflow-y: auto;
            flex: 1;
            /* Ensures it takes up the remaining space */
        }

        .modal-overlay.active .wallet-glass-panel,
        .modal-overlay.active .wallet-glass-panel .wallet-layout {
            scrollbar-width: thin;
            scrollbar-color: rgba(63, 198, 191, 0.35) rgba(0, 0, 0, 0.35);
        }

        .modal-overlay.active .wallet-glass-panel::-webkit-scrollbar,
        .modal-overlay.active .wallet-glass-panel .wallet-layout::-webkit-scrollbar {
            width: 5px;
            height: 5px;
        }

        .modal-overlay.active .wallet-glass-panel::-webkit-scrollbar-track,
        .modal-overlay.active .wallet-glass-panel .wallet-layout::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.35);
            border-radius: 999px;
        }

        .modal-overlay.active .wallet-glass-panel::-webkit-scrollbar-thumb,
        .modal-overlay.active .wallet-glass-panel .wallet-layout::-webkit-scrollbar-thumb {
            background: rgba(63, 198, 191, 0.35);
            border-radius: 999px;
        }

        .modal-overlay.active .wallet-glass-panel::-webkit-scrollbar-thumb:hover,
        .modal-overlay.active .wallet-glass-panel .wallet-layout::-webkit-scrollbar-thumb:hover {
            background: rgba(63, 198, 191, 0.58);
        }

        .wallet-checkout-summary {
            display: grid;
            gap: 4px;
            max-width: 380px;
            margin: 14px auto 22px;
            padding: 14px 16px;
            text-align: center;
            background: rgba(63, 198, 191, 0.07);
            border: 1px solid rgba(63, 198, 191, 0.2);
            border-radius: 8px;
        }

        .wallet-checkout-label {
            color: var(--text-main);
            font-size: 1rem;
            font-weight: 800;
            line-height: 1.3;
        }

        .wallet-checkout-price {
            color: var(--primary-color);
            font-size: 1.35rem;
            font-weight: 900;
            line-height: 1.1;
        }

        /* Close Button Position */
        .close-icon-btn {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            background: transparent;
            border: none;
            color: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: color 0.2s;
            z-index: 10;
        }

        .close-icon-btn:hover {
            color: #fff;
        }

        /* 2. Header & Balance */
        .wallet-header {
            text-align: center;
            margin-bottom: 2.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .wallet-header h1 {
            font-family: 'Playfair Display', serif;
            /* Matches Profile Modal */
            font-size: 3rem;
            font-weight: 300;
            font-style: italic;
            margin-bottom: 0.5rem;
            letter-spacing: -0.02em;
        }

        .wallet-header p {
            font-family: 'Manrope', sans-serif;
            color: rgba(255, 255, 255, 0.5);
            font-size: 1rem;
            margin-bottom: 2rem;
        }

        /* Balance Card */
        .balance-card-noir {
            position: relative;
            width: 100%;
            max-width: 420px;
            background: #141414;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 2rem;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .balance-glow-effect {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.5));
            pointer-events: none;
        }

        .balance-content {
            position: relative;
            z-index: 2;
            text-align: center;
        }

        .balance-label {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.2em;
            color: rgba(255, 255, 255, 0.4);
            margin-bottom: 0.5rem;
        }

        .balance-value-group {
            display: flex;
            align-items: baseline;
            justify-content: center;
            gap: 8px;
        }

        .balance-number {
            font-family: 'Manrope', sans-serif;
            font-size: 3.5rem;
            font-weight: 500;
            letter-spacing: -0.05em;
            color: #fff;
        }

        .balance-unit {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            color: var(--primary-color);
            font-size: 1.25rem;
            opacity: 0.8;
        }

        /* 3. Tabs */
        .wallet-tabs-container {
            display: flex;
            justify-content: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            margin-bottom: 2.5rem;
        }

        .wallet-tabs {
            display: flex;
            gap: 3rem;
        }

        .tab-btn-noir {
            background: none;
            border: none;
            padding-bottom: 1rem;
            color: rgba(255, 255, 255, 0.4);
            font-family: 'Manrope', sans-serif;
            font-size: 1.1rem;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            transition: color 0.3s;
        }

        .tab-btn-noir:hover {
            color: rgba(255, 255, 255, 0.8);
        }

        .tab-btn-noir.active {
            color: #fff !important;
        }

        .tab-btn-noir .tab-indicator {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: var(--primary-color);
            transition: width 0.3s ease;
            border-radius: 3px 3px 0 0;
            box-shadow: 0 0 10px var(--primary-color);
        }

        .tab-btn-noir.active .tab-indicator {
            width: 100%;
        }

        /* 4. Pricing Grid */
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .pricing-card {
            background: #181818;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            transition: transform 0.2s, background 0.2s;
            cursor: pointer;
            position: relative;
        }

        .pricing-card:hover {
            background: #1c1c1c;
            transform: translateY(-4px);
            border-color: rgba(255, 255, 255, 0.15);
        }

        .pricing-card.selected {
            border-color: var(--primary-color) !important;
            background: rgba(63, 198, 191, 0.08) !important;
            box-shadow: 0 0 20px rgba(63, 198, 191, 0.15);
        }

        .pricing-card.active-plan {
            border-color: var(--info-color) !important;
            background: rgba(59, 130, 246, 0.05) !important;
            cursor: default;
            transform: none !important;
            opacity: 0.8;
        }

        /* Popular Card Style */
        .pricing-card.popular {
            background: #161616;
            border: 1px solid var(--primary-color);
            /* Uses primary color var fallback */
            box-shadow: 0 0 30px rgba(32, 203, 134, 0.05);
            z-index: 2;
        }

        .popular-badge {
            position: absolute;
            top: -10px;
            right: -10px;
            background: var(--primary-color);
            color: #000;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 20px;
            letter-spacing: 0.1em;
        }

        /* Card Content */
        .pricing-header {
            margin-bottom: 1.5rem;
        }

        .pricing-header h3 {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .pricing-cost {
            font-size: 2rem;
            font-weight: 700;
            color: #fff;
            margin-top: 0.5rem;
        }

        .pricing-credits {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--primary-color);
            margin-top: 0.25rem;
        }

        .pricing-features {
            list-style: none;
            padding: 0;

            color: rgba(255, 255, 255, 0.5);
            font-size: 0.85rem;
            flex-grow: 1;
        }

        .pricing-features li {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 0.8rem;
        }

        .pricing-features .material-symbols-outlined {
            font-size: 1rem;
        }

        .text-primary {
            color: var(--primary-color);
        }

        /* Buttons inside cards */

        .btn-select-noir.filled {
            background: var(--primary-color);
            color: #000;
            border: none;
        }

        .btn-select-noir.filled:hover {
            background: #fff;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
        }

        /* 5. Shimmer Payment Button */
        .wallet-footer-action {
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .btn-shimmer-payment {
            position: relative;
            overflow: hidden;
            background: var(--primary-color);
            color: #000;
            border: none;
            padding: 1rem 3rem;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            width: 100%;
            max-width: 320px;
            transition: transform 0.1s;
        }

        .btn-shimmer-payment:active {
            transform: scale(0.98);
        }

        .btn-content {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .shimmer-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.4), transparent);
            transform: translateX(-100%);
        }

        .btn-shimmer-payment:hover .shimmer-overlay {
            animation: shimmerEffect 1.5s infinite;
        }

        @keyframes shimmerEffect {
            100% {
                transform: translateX(100%);
            }
        }

        /* 6. History Hint & Table */
        .history-hint-row {
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1.5rem;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .history-hint-row:hover {
            opacity: 0.8;
        }

        .hint-left {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.8rem;
        }

        .hint-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: rgba(255, 255, 255, 0.3);
        }

        .hint-link {
            font-family: 'Playfair Display', serif;
            font-style: italic;
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .hint-data {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(255, 255, 255, 0.02);
            padding: 1rem;
            border: 1px dashed rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

        .hint-date {
            font-family: monospace;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.75rem;
        }

        .hint-desc {
            font-style: italic;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            margin-left: 1rem;
            flex: 1;
        }

        .hint-amount {
            font-weight: 700;
            font-size: 0.9rem;
        }

        /* History Table */
        .noir-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        .noir-table th {
            text-align: left;
            color: rgba(255, 255, 255, 0.3);
            font-size: 0.7rem;
            letter-spacing: 0.1em;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .noir-table td {
            padding: 1.2rem 0;

            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
        }

        .text-right {
            text-align: right;
        }

        .text-success {
            color: #10b981;
        }

        .text-error {
            color: #ef4444;
        }

        .modal-overlay.active {
            z-index: 10000 !important;
            pointer-events: auto !important;
        }

        .modal-overlay.active .modal-content {
            z-index: 10001 !important;
        }

        /* --- SHARE MODAL PREMIUM --- */
        .share-glass-panel {
            background: rgba(18, 18, 18, 0.75) !important;
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            border-radius: 20px !important;
            padding: 0 !important;
            max-width: 520px !important;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
        }

        .share-header {
            padding: 2.5rem 2rem 1rem;
            text-align: center;
        }

        .share-label-sm {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.3em;
            color: var(--primary-color);
            opacity: 0.8;
            margin-bottom: 0.75rem;
        }

        .share-header h1 {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: #fff;
            font-weight: 400;
            letter-spacing: -0.01em;
        }

        .share-subtitle {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 0.5rem;
        }

        /* Preview Box */
        .share-preview-wrapper {
            padding: 1rem 2rem;
            display: flex;
            justify-content: center;
        }

        .share-preview-box {
            width: 100%;
            aspect-ratio: 1/1;
            max-width: 360px;
            background: #000;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .corner-accent {
            position: absolute;
            width: 12px;
            height: 12px;
            border: 1px solid var(--primary-color);
            opacity: 0.5;
            z-index: 10;
        }

        .meta-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.75rem;
        }

        .meta-key {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.65rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 0.1em;
        }

        .meta-key .material-symbols-outlined {
            font-size: 1rem;
            color: var(--primary-color);
            opacity: 0.5;
        }

        .meta-value {
            font-size: 0.85rem;
            font-weight: 500;
            color: #fff;
        }

        .meta-value.mono {
            font-family: monospace;
        }

        /* Footer */
        .share-footer {
            background: rgba(0, 0, 0, 0.2);
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            padding: 1.5rem 2.5rem;
            display: flex;
            gap: 1rem;
        }

        .btn-share-cancel {
            flex: 1;
            height: 48px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-share-cancel:hover {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
        }

        .btn-share-download {
            flex: 2;
            height: 48px;
            background: var(--primary-color);
            color: #000;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 0 20px rgba(32, 203, 134, 0.2);
        }

        .btn-share-download:hover {
            background: #fff;
            transform: translateY(-1px);
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
        }

        /* -- NOTIFICATIONS -- */

        .notification-dropdown.active {
            display: flex;
            animation: dropdownSlideIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        @keyframes dropdownSlideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* -- ACTIVITY TOOLBAR & CALENDAR -- */

        .date-trigger.active {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .calendar-popup.active {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        /* --- NEW CONTROLS STYLING (PURE CSS REFACTOR) --- */

        /* Reset & Scoping */
        .controls {
            background: #000;
            /* Deep black bg */
            border-left: 1px solid rgba(255, 255, 255, 0.08);
            padding: 2rem;
            overflow-y: auto;
            font-family: var(--font-main);
            color: var(--text-main);
        }

        /* Typography Utilities */
        .text-primary {
            color: var(--primary-color) !important;
        }

        /* Spacing Utilities */

        /* Flex Utilities */
        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .flex-align-center {
            display: flex;
            align-items: center;
        }

        .section-header .material-symbols-outlined {
            color: rgba(255, 255, 255, 0.2);
            font-size: 1.2rem;
        }

        /* -- Glass Panels -- */

        /* reset old styling */

        /* Since the columns are now narrower, we force the inner button grids 
   to stack (1 column) instead of 2 columns, making them look like proper dropdown lists.
*/

        /* Responsive: Stack them back up on very small screens */
        @media (max-width: 400px) {}

        /* --- Form Elements --- */
        select {
            background-color: var(--panel-bg);
            color: var(--text-main);
            border: 1px solid var(--panel-border);
            padding: 4px 8px;
            border-radius: 4px;
            outline: none;
        }

        option {
            background-color: var(--panel-bg);
            color: var(--text-main);
        }

        /* --- Label Text --- */

        #positionSelector .pos-btn:hover .pos-label,
        #positionSelector .pos-btn.active .pos-label {
            color: #fff;
        }

        /* --- DOT POSITIONING LOGIC --- */
        /* Center the dot horizontally by default */

        /* TOP Positions */

        /* CENTER Positions */

        /* CHEST Logic (Left/Right viewed from wearer perspective usually, but visual needs to match UI) */
        /* Right Chest (User's right side of screen) */

        /* Left Chest (User's left side of screen) */

        /* --- New Order Success Modal Styles --- */

        @keyframes slideUpFade {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* --- Custom Dropdown Styles --- */

        .dropdown-options.active {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        .dropdown-option.selected {
            color: var(--primary-color);
            background: rgba(32, 203, 134, 0.1);
        }

        /* --- Activity Toolbar & Calendar --- */

        /* --- NOIR LOGIN MODAL --- */
        .modal-glass-panel {
            background: rgba(18, 18, 18, 0.95);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            padding: 3rem;
            width: 100%;
            max-width: 450px;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            transform: scale(0.95);
            transition: transform 0.3s ease, opacity 0.3s ease;
            opacity: 0;
        }

        .modal-overlay.active .modal-glass-panel {
            transform: scale(1);
            opacity: 1;
        }

        .login-header {
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .login-title {
            font-family: 'Playfair Display', serif;
            font-size: 2.5rem;
            color: #fff;
            font-weight: 500;
            letter-spacing: 0.02em;
        }

        .login-subtitle {
            font-family: 'Manrope', sans-serif;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.95rem;
            font-weight: 300;
            line-height: 1.6;
        }

        .login-form {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .login-field-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .login-label {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            color: rgba(255, 255, 255, 0.4);
            font-weight: 600;
            margin-left: 4px;
            margin-top: 20px;
        }

        .input-wrapper {
            position: relative;
        }

        .noir-input {
            width: 100%;
            background: rgba(18, 18, 18, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            padding: 14px 16px;
            color: #fff;
            font-family: 'Manrope', sans-serif;
            font-weight: 300;
            font-size: 1rem;
            outline: none;
            transition: all 0.3s ease;
        }

        /* FORCE DARK AUTOFILL BACKGROUND */
        .noir-input:-webkit-autofill,
        .noir-input:-webkit-autofill:hover,
        .noir-input:-webkit-autofill:focus,
        .noir-input:-webkit-autofill:active {
            -webkit-box-shadow: 0 0 0 30px #121212 inset !important;
            -webkit-text-fill-color: white !important;
            transition: background-color 5000s ease-in-out 0s;
        }

        .noir-input:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .noir-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 1px rgba(32, 203, 134, 0.3);
            background: rgba(18, 18, 18, 0.8);
        }

        .noir-input::placeholder {
            color: rgba(255, 255, 255, 0.2);
        }

        .input-icon-right {
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.2);
            pointer-events: none;
            transition: color 0.3s ease;
            font-size: 20px;
        }

        .input-wrapper:focus-within .input-icon-right {
            color: var(--primary-color);
        }

        .btn-noir-primary {
            position: relative;
            width: 100%;
            height: 50px;
            background: var(--primary-color);
            color: #000;
            border: none;
            border-radius: 8px;
            font-family: 'Manrope', sans-serif;
            font-weight: 700;
            font-size: 1rem;
            letter-spacing: 0.05em;
            cursor: pointer;
            overflow: hidden;
            transition: all 0.3s ease;
            margin-top: 0.5rem;
            box-shadow: 0 4px 15px rgba(32, 203, 134, 0.2);
        }

        .btn-noir-primary:hover {
            background: #fff;
            transform: translateY(-1px);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
        }

        .btn-text-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-text-wrapper .material-symbols-outlined {
            font-size: 18px;
        }

        .login-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            margin-top: 0.5rem;
        }

        .footer-link {
            font-size: 0.85rem;
            color: rgba(255, 255, 255, 0.4);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
            letter-spacing: 0.02em;
        }

        .footer-link:hover {
            color: #fff;
        }

        /* --- Register Modal (Noir Redesign) --- */

        .modal-overlay.active .register-panel {
            transform: scale(1);
            opacity: 1;
        }

        .register-form {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .password-toggle-icon {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            color: rgba(255, 255, 255, 0.3);
            cursor: pointer;
            transition: color 0.2s;
        }

        .password-toggle-icon:hover {
            color: #fff;
        }

        /* Complexity Meter */
        .complexity-meter {
            margin-top: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .complexity-bars {
            display: flex;
            gap: 6px;
            height: 4px;
            padding: 0 4px;
        }

        .bar {
            flex: 1;
            height: 100%;
            border-radius: 2px;
            background: rgba(255, 255, 255, 0.05);
        }

        .bar.filled {
            background: var(--primary-color);
            box-shadow: 0 0 10px rgba(63, 198, 191, 0.5);
        }

        .bar.opacity-40 {
            opacity: 0.4;
        }

        .complexity-text {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 4px;
        }

        .complexity-text span {
            font-size: 0.65rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.3);
        }

        .strength-val {
            color: var(--primary-color) !important;
            font-weight: 700 !important;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        /* Action Button */
        .btn-register-primary {
            width: 100%;
            height: 3rem;
            background: var(--primary-color);
            color: #000;
            font-weight: 700;
            font-size: 0.875rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 1rem;
            box-shadow: 0 0 25px rgba(63, 198, 191, 0.25);
            transition: all 0.3s;
        }

        .btn-register-primary:hover {
            background: #33ead4;
            box-shadow: 0 0 35px rgba(63, 198, 191, 0.4);
            transform: scale(0.98);
        }

        /* Footer Links */
        .register-footer-links {
            text-align: center;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.4);
            margin-top: 1rem;
        }

        .footer-link-highlight {
            color: #fff;
            font-weight: 600;
            cursor: pointer;
            margin-left: 4px;
            text-decoration: underline;
            text-decoration-color: transparent;
            text-underline-offset: 4px;
            transition: all 0.2s;
        }

        .footer-link-highlight:hover {
            text-decoration-color: #fff;
        }

        .register-meta-footer {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 2rem;
            opacity: 0.3;
        }

        .register-meta-footer span {
            font-size: 0.65rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            cursor: pointer;
            transition: opacity 0.2s;
        }

        .register-meta-footer span:hover {
            opacity: 1;
            color: #fff;
        }

        /* --- Verification Modal Styles (Redesign) --- */
        .glass-card-verif {
            position: relative;
            padding: 2.5rem;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.5s ease;
            margin-top: 20px;
        }

        .glass-card-verif:hover {
            box-shadow: 0 0 50px -10px rgba(63, 198, 191, 0.15);
        }

        .glass-card-glow {
            position: absolute;
            inset: 0;
            border-radius: 12px;
            border: 1px solid transparent;
            pointer-events: none;
            transition: border-color 0.5s;
        }

        .glass-card-verif:hover .glass-card-glow {
            border-color: rgba(63, 198, 191, 0.2);
        }

        .verif-header {
            text-align: center;
            margin-bottom: 2rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .verif-icon-box {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: rgba(63, 198, 191, 0.1);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 15px -3px rgba(63, 198, 191, 0.3);
            border: 1px solid rgba(63, 198, 191, 0.3);
        }

        .verif-title {
            font-family: 'Playfair Display', serif;
            font-size: 2rem;
            color: #fff;
            letter-spacing: 0.025em;
            font-weight: 400;
        }

        .verif-subtitle {
            color: #9ca3af;
            font-size: 0.875rem;
            font-weight: 300;
            line-height: 1.6;
            padding: 0 1rem;
        }

        .verif-timer-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin-bottom: 2rem;
            gap: 0.5rem;
        }

        .verif-timer-label {
            font-size: 0.65rem;
            letter-spacing: 0.2em;
            color: rgba(63, 198, 191, 0.8);
            text-transform: uppercase;
            font-weight: 600;
        }

        .verif-timer-val {
            font-family: 'Manrope', sans-serif;
            font-size: 1.5rem;
            font-weight: 300;
            color: #fff;
            letter-spacing: 0.1em;
            font-variant-numeric: tabular-nums;
        }

        .verif-input-group {
            position: relative;
            margin-bottom: 2rem;
        }

        .verif-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            font-size: 1.5rem;
            padding: 1rem;
            text-align: center;
            letter-spacing: 0.5em;
            border-radius: 8px;
            outline: none;
            transition: all 0.3s;
            font-family: monospace;
        }

        .verif-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 20px -5px rgba(63, 198, 191, 0.4);
        }

        .verif-input-border {
            position: absolute;
            inset: 0;
            border-radius: 8px;
            pointer-events: none;
            border: 1px solid transparent;
            transition: border-color 0.3s;
        }

        .verif-input-group:hover .verif-input-border {
            border-color: rgba(255, 255, 255, 0.1);
        }

        .verif-actions {
            padding-top: 0.5rem;
        }

        .btn-verif-submit {
            width: 100%;
            min-height: 50px;
            background: var(--primary-color);
            color: #000;
            font-weight: 600;
            padding: 0 1.5rem;
            border-radius: 8px;
            border: none;
            box-shadow: 0 0 10px rgba(63, 198, 191, 0.5);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            text-transform: uppercase;
            font-size: 0.875rem;
            letter-spacing: 0.05em;
            line-height: 1;
            box-sizing: border-box;
        }

        .btn-verif-submit .material-symbols-outlined {
            font-size: 18px;
            line-height: 1;
        }

        .btn-verif-submit:hover {
            box-shadow: 0 0 20px rgba(63, 198, 191, 0.8);
            transform: translateY(-2px);
            background: #fff;
        }

        .btn-verif-submit.secondary {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-muted);
            border-color: rgba(255, 255, 255, 0.12);
            box-shadow: none;
        }

        .btn-verif-submit.secondary:hover {
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            border-color: rgba(63, 198, 191, 0.45);
            box-shadow: none;
        }

        .btn-verif-submit:disabled {
            opacity: 0.65;
            cursor: not-allowed;
            transform: none;
            background: var(--primary-color);
            box-shadow: 0 0 10px rgba(63, 198, 191, 0.25);
        }

        .verif-resend {
            margin-top: 1.5rem;
            text-align: center;
        }

        .btn-text-resend {
            background: none;
            border: none;
            font-size: 0.75rem;
            color: #6b7280;
            cursor: pointer;
            text-decoration: underline;
            text-decoration-color: #374151;
            text-underline-offset: 4px;
            transition: all 0.3s;
        }

        .btn-text-resend:hover {
            color: var(--primary-color);
            text-decoration-color: var(--primary-color);
        }

        /* --- SKELETON LOADING --- */
        .skeleton-card {
            background: #181818;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.5rem;
            height: 280px;
            position: relative;
            overflow: hidden;
        }

        .skeleton-shimmer {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
            animation: skeleton-shimmer 1.5s infinite;
        }

        .skeleton-block {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            margin-bottom: 1rem;
        }

        .skeleton-feature {
            width: 80%;
            height: 12px;
            margin-top: 20px;
        }

        /* Table Skeleton Styles */
        .skeleton-row td {
            padding: 1.2rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .skeleton-bar {
            height: 12px;
            width: 80%;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            position: relative;
            overflow: hidden;
        }

        .skeleton-bar::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
            animation: skeleton-shimmer 1.5s infinite;
        }

        @keyframes skeleton-shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* Specific skeleton elements to mimic the pricing card structure */
        .skeleton-title {
            width: 40%;
            height: 20px;
        }

        .skeleton-price {
            width: 60%;
            height: 40px;
            margin-top: 10px;
        }

        .skeleton-feature {
            width: 80%;
            height: 12px;
            margin-top: 20px;
        }

        /* --- PAGINATION CONTROLS --- */
        .pagination-controls {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .page-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #fff;
            width: 32px;
            height: 32px;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .page-btn:hover:not(:disabled) {
            background: rgba(255, 255, 255, 0.1);
            border-color: var(--primary-color);
        }

        .page-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
            border-color: transparent;
        }

        .page-info {
            font-family: 'Manrope', sans-serif;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 0.05em;
        }

        /* --- Empty State Ledger --- */
        .empty-state-ledger {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 2rem;
            text-align: center;
            gap: 1.5rem;
        }

        .empty-ledger-svg {
            width: 120px;
            height: 120px;
            filter: drop-shadow(0 0 10px rgba(63, 198, 191, 0.2));
        }

        .empty-text-meta h3 {
            font-family: 'Manrope', sans-serif;
            font-size: 0.9rem;
            letter-spacing: 0.2em;
            color: #fff;
            margin-bottom: 0.5rem;
        }

        .empty-text-meta p {
            font-size: 0.8rem;
            color: var(--text-muted);
            max-width: 240px;
            margin: 0 auto;
            line-height: 1.5;
        }

        .btn-topup-trigger {
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            padding: 0.75rem 1.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            transition: all 0.3s;
            margin: 0 auto;
        }

        .btn-topup-trigger:hover {
            background: var(--primary-color);
            color: #000;
            box-shadow: 0 0 20px rgba(63, 198, 191, 0.4);
        }

        .btn-topup-trigger span {
            font-size: 18px;
        }

        /* --- ADMIN DASHBOARD --- */
        .admin-dashboard-panel {
            width: min(1180px, calc(100vw - 32px));
            height: min(820px, calc(100vh - 32px));
            background: #0b0d10;
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 10px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .admin-topbar {
            height: 54px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: #111418;
        }

        .admin-topbar h2 {
            font-size: 1rem;
            letter-spacing: 0.02em;
        }

        .admin-icon-btn,
        .admin-btn,
        .admin-tab,
        .admin-page-btn {
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(255, 255, 255, 0.04);
            color: #d7dde4;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .admin-icon-btn {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
        }

        .admin-dashboard-mark {
            pointer-events: none;
            color: var(--primary-color);
            background: rgba(63, 198, 191, 0.08);
            border-color: rgba(63, 198, 191, 0.25);
        }

        .admin-close-btn {
            margin-left: auto;
        }

        .admin-tabs {
            display: flex;
            gap: 6px;
            padding: 10px 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: #0f1216;
        }

        .admin-tab {
            height: 32px;
            padding: 0 12px;
            font-size: 0.78rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .admin-tab.active,
        .admin-btn.primary {
            background: var(--primary-color);
            color: #04100f;
            border-color: var(--primary-color);
        }

        .admin-status {
            min-height: 28px;
            padding: 7px 16px;
            color: var(--text-muted);
            font-size: 0.78rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .admin-status.success { color: var(--primary-color); }
        .admin-status.error { color: var(--error-color); }

        .admin-content {
            flex: 1;
            overflow: auto;
            padding: 16px;
            scrollbar-width: thin;
            scrollbar-color: rgba(63, 198, 191, 0.35) rgba(0, 0, 0, 0.35);
        }

        .admin-stats-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
        }

        .admin-stat-card,
        .admin-maint-card {
            background: #11151a;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            padding: 14px;
        }

        .admin-stat-card {
            cursor: pointer;
        }

        .admin-stat-card:hover,
        .admin-btn:hover,
        .admin-icon-btn:hover,
        .admin-tab:hover,
        .admin-page-btn:hover:not(:disabled) {
            border-color: rgba(63, 198, 191, 0.45);
            background: rgba(63, 198, 191, 0.08);
        }

        .admin-stat-label,
        .admin-filter-label {
            font-size: 0.66rem;
            color: #788391;
            text-transform: uppercase;
            letter-spacing: 0.12em;
            font-weight: 800;
        }

        .admin-stat-value {
            margin-top: 8px;
            color: #fff;
            font-size: 1.7rem;
            font-weight: 800;
        }

        .admin-filters {
            display: grid;
            grid-template-columns: minmax(220px, 1fr) 150px 150px;
            gap: 10px;
            margin-bottom: 12px;
        }

        .admin-search,
        .admin-select {
            height: 36px;
            width: 100%;
            background: #0b0d10;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: #fff;
            padding: 0 10px;
            font-size: 0.82rem;
            outline: none;
        }

        .admin-table {
            width: 100%;
            border-collapse: collapse;
            background: #101318;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            overflow: hidden;
        }

        .admin-table th,
        .admin-table td {
            padding: 9px 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            text-align: left;
            font-size: 0.8rem;
            vertical-align: middle;
        }

        .admin-table th {
            color: #7f8a98;
            font-size: 0.66rem;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            background: #0c0f13;
        }

        .admin-primary-text { color: #fff; font-weight: 800; }
        .admin-secondary-text { color: #7f8a98; font-size: 0.74rem; margin-top: 2px; }

        .admin-badge {
            display: inline-flex;
            align-items: center;
            height: 22px;
            padding: 0 8px;
            border-radius: 999px;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.06em;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #aeb7c2;
            background: rgba(255, 255, 255, 0.06);
        }

        .admin-badge.success { color: #9ff5d9; border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.1); }
        .admin-badge.warning { color: #facc15; border-color: rgba(250,204,21,0.3); background: rgba(250,204,21,0.08); }
        .admin-badge.vip { color: var(--primary-color); border-color: rgba(63,198,191,0.38); background: rgba(63,198,191,0.1); }

        .admin-credit-balance {
            color: #dce9e7;
            font-variant-numeric: tabular-nums;
            white-space: nowrap;
        }

        .admin-vip-dropdown {
            position: relative;
            width: 104px;
        }

        .admin-vip-trigger {
            width: 100%;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 0 8px 0 11px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 7px;
            outline: none;
            background: #0b0d10;
            color: #b9c2cd;
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 700;
            cursor: pointer;
            transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
        }

        .admin-vip-trigger .material-symbols-outlined {
            color: #788390;
            font-size: 18px;
            transition: transform 0.14s ease;
        }

        .admin-vip-dropdown.is-vip .admin-vip-trigger {
            border-color: rgba(63,198,191,0.38);
            color: #bffbf5;
            background: rgba(63,198,191,0.08);
        }

        .admin-vip-dropdown.is-open .admin-vip-trigger {
            border-color: rgba(63,198,191,0.55);
            box-shadow: 0 0 0 3px rgba(63,198,191,0.08);
        }

        .admin-vip-dropdown.is-open .admin-vip-trigger .material-symbols-outlined {
            transform: rotate(180deg);
        }

        .admin-vip-menu {
            position: fixed;
            z-index: 10020;
            display: grid;
            gap: 3px;
            padding: 5px;
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 8px;
            background: rgba(12, 15, 19, 0.98);
            box-shadow: 0 16px 42px rgba(0,0,0,0.52);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-4px);
            transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
        }

        .admin-vip-dropdown.is-open .admin-vip-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

        .admin-vip-menu button {
            min-height: 31px;
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 0 9px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #aeb7c2;
            font-family: inherit;
            font-size: 0.78rem;
            font-weight: 700;
            text-align: left;
            cursor: pointer;
        }

        .admin-vip-menu button:hover,
        .admin-vip-menu button[aria-selected="true"] {
            background: rgba(63,198,191,0.1);
            color: #d8fffa;
        }

        .admin-vip-option-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #69737f;
        }

        .admin-vip-menu [data-admin-vip-option="vip"] .admin-vip-option-dot {
            background: var(--primary-color);
            box-shadow: 0 0 9px rgba(63,198,191,0.48);
        }

        .admin-btn {
            min-height: 30px;
            padding: 0 10px;
            font-size: 0.74rem;
            font-weight: 800;
        }

        .admin-btn.danger {
            color: #fecaca;
            border-color: rgba(239,68,68,0.35);
            background: rgba(239,68,68,0.1);
        }

        .admin-btn:disabled,
        .admin-page-btn:disabled,
        .admin-select:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .admin-pagination {
            display: flex;
            justify-content: flex-end;
            align-items: center;
            gap: 10px;
            margin-top: 12px;
            color: #8a95a3;
            font-size: 0.78rem;
        }

        .admin-page-btn {
            width: 30px;
            height: 30px;
        }

        .admin-maint-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .admin-maint-card h3 {
            font-size: 0.95rem;
            margin-bottom: 8px;
        }

        .admin-maint-card p {
            color: #8a95a3;
            font-size: 0.8rem;
            line-height: 1.5;
            margin-bottom: 14px;
        }

        .admin-confirm-panel {
            width: min(420px, calc(100vw - 32px));
            background: #11151a;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            padding: 18px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.65);
        }

        .admin-confirm-eyebrow {
            color: var(--primary-color);
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.14em;
            font-weight: 900;
            margin-bottom: 8px;
        }

        .admin-confirm-panel h2 {
            color: #fff;
            font-size: 1.1rem;
            margin-bottom: 8px;
        }

        .admin-confirm-panel p {
            color: #9aa5b2;
            font-size: 0.84rem;
            line-height: 1.5;
        }

        .admin-confirm-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 18px;
        }

        @media (max-width: 760px) {
            .admin-stats-grid,
            .admin-maint-grid,
            .admin-filters {
                grid-template-columns: 1fr;
            }
        }

        /* --- ADMIN PARSER EXPERIENCE --- */
        .experience-page {
            position: fixed;
            inset: 0;
            z-index: 9200;
            display: none;
            grid-template-rows: auto auto auto minmax(0, 1fr);
            background: #090b0e;
            color: #e8edf3;
            font-family: var(--font-main);
        }

        .experience-page.active {
            display: grid;
        }

        .experience-header {
            min-height: 66px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
            background: #111418;
        }

        .experience-heading {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .experience-heading > .material-symbols-outlined {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(63, 198, 191, 0.28);
            border-radius: 8px;
            color: var(--primary-color);
            background: rgba(63, 198, 191, 0.08);
        }

        .experience-eyebrow {
            display: block;
            color: #788391;
            font-size: 0.65rem;
            font-weight: 800;
            letter-spacing: 0.13em;
            text-transform: uppercase;
        }

        .experience-heading h2,
        .experience-json-header h3 {
            margin: 2px 0 0;
            color: #f7f9fb;
        }

        .experience-heading h2 { font-size: 1rem; }
        .experience-json-header h3 { font-size: 0.9rem; }

        .experience-close,
        .experience-json-header button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.04);
            color: #cdd5df;
            cursor: pointer;
        }

        .experience-close { width: 36px; height: 36px; }

        .experience-controls {
            display: grid;
            grid-template-columns: minmax(260px, 1fr) 160px 190px auto;
            gap: 12px;
            align-items: end;
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            background: #0d1014;
        }

        .experience-input-field,
        .experience-language-field {
            display: grid;
            gap: 6px;
            color: #8994a2;
            font-size: 0.7rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .experience-input-field textarea,
        .experience-language-trigger {
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.11);
            border-radius: 7px;
            outline: none;
            background: #080a0d;
            color: #f0f3f7;
            font: 400 0.86rem/1.45 var(--font-main);
        }

        .experience-input-field textarea {
            min-height: 74px;
            resize: vertical;
            padding: 10px 11px;
        }

        .experience-native-select {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .experience-language-select {
            position: relative;
        }

        .experience-language-trigger {
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 8px 0 11px;
            text-align: left;
            text-transform: none;
            letter-spacing: 0;
            cursor: pointer;
        }

        .experience-language-trigger .material-symbols-outlined {
            color: #7f8b98;
            font-size: 19px;
            transition: transform 0.14s ease;
        }

        .experience-language-select.is-open .experience-language-trigger .material-symbols-outlined {
            transform: rotate(180deg);
        }

        .experience-language-menu {
            position: absolute;
            top: calc(100% + 6px);
            left: 0;
            right: 0;
            z-index: 40;
            max-height: 248px;
            display: grid;
            gap: 2px;
            overflow-y: auto;
            padding: 5px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 8px;
            background: #11151a;
            box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-4px);
            transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
        }

        .experience-language-select.is-open .experience-language-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0);
        }

        .experience-language-menu button {
            min-height: 32px;
            padding: 0 9px;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: #aeb8c4;
            font: 500 0.78rem/1 var(--font-main);
            text-align: left;
            text-transform: none;
            letter-spacing: 0;
            cursor: pointer;
        }

        .experience-language-menu button:hover,
        .experience-language-menu button[aria-selected="true"] {
            background: rgba(63, 198, 191, 0.1);
            color: #d8fffa;
        }

        .experience-input-field textarea:focus,
        .experience-language-trigger:focus-visible,
        .experience-language-select.is-open .experience-language-trigger {
            border-color: rgba(63, 198, 191, 0.58);
            box-shadow: 0 0 0 3px rgba(63, 198, 191, 0.08);
        }

        .experience-run {
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            padding: 0 16px;
            border: 1px solid var(--primary-color);
            border-radius: 7px;
            background: var(--primary-color);
            color: #04100f;
            font-weight: 800;
            cursor: pointer;
        }

        .experience-run:disabled,
        .experience-json-header button:disabled {
            opacity: 0.48;
            cursor: not-allowed;
        }

        .experience-status {
            min-height: 32px;
            padding: 8px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            color: #8793a0;
            font-size: 0.78rem;
        }

        .experience-status.success { color: var(--primary-color); }
        .experience-status.error { color: var(--error-color); }

        .experience-layout {
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(300px, 34vw);
        }

        .experience-output-panel {
            min-width: 0;
            min-height: 0;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            border-right: 1px solid rgba(255, 255, 255, 0.08);
        }

        .experience-view-tabs {
            display: flex;
            gap: 6px;
            padding: 10px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
            background: #0d1014;
        }

        .experience-view-tabs button {
            height: 32px;
            padding: 0 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.035);
            color: #9ca7b4;
            font-size: 0.75rem;
            font-weight: 700;
            cursor: pointer;
        }

        .experience-view-tabs button.active {
            border-color: rgba(63, 198, 191, 0.48);
            background: rgba(63, 198, 191, 0.1);
            color: #c9fff9;
        }

        .experience-output {
            min-height: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            padding: 24px;
            background-color: #131314;
            background-image: radial-gradient(circle, rgba(199, 196, 215, 0.2) 1px, transparent 1.25px);
            background-size: 28px 28px;
        }

        .experience-output .parser-config-strip {
            position: sticky;
            top: 0;
            z-index: 3;
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            align-items: center;
            width: max-content;
            max-width: 100%;
            margin: 0 auto 16px;
            padding: 5px;
            border: 1px solid rgba(229, 226, 227, 0.08);
            border-radius: 10px;
            background: rgba(18, 18, 20, 0.94);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .experience-output .parser-config-title {
            margin: 0 2px 0 3px;
            color: rgba(229, 226, 227, 0.58);
            font-size: 11px;
            font-weight: 650;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .experience-output .parser-config-toggle {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-height: 20px;
            padding: 2px 6px 2px 3px;
            border: 1px solid rgba(229, 226, 227, 0.09);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.035);
            color: rgba(229, 226, 227, 0.68);
            font-size: 10px;
            line-height: 1.1;
            cursor: pointer;
            user-select: none;
            transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
        }

        .experience-output .parser-config-toggle:hover {
            border-color: rgba(192, 193, 255, 0.32);
            background: rgba(192, 193, 255, 0.08);
            color: rgba(229, 226, 227, 0.88);
        }

        .experience-output .parser-config-toggle input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .experience-output .parser-config-switch {
            position: relative;
            width: 22px;
            height: 12px;
            flex: 0 0 auto;
            border-radius: 999px;
            background: rgba(82, 81, 96, 0.58);
            box-shadow: inset 0 0 0 1px rgba(229, 226, 227, 0.09);
            transition: background 0.16s ease, box-shadow 0.16s ease;
        }

        .experience-output .parser-config-switch::after {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: rgba(229, 226, 227, 0.9);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.38);
            transition: transform 0.16s ease, background 0.16s ease;
        }

        .experience-output .parser-config-toggle:has(input:checked) {
            border-color: rgba(192, 193, 255, 0.36);
            background: rgba(192, 193, 255, 0.12);
            color: rgba(245, 243, 255, 0.94);
        }

        .experience-output .parser-config-toggle input:checked + .parser-config-switch {
            background: rgba(192, 193, 255, 0.86);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 0 14px rgba(192, 193, 255, 0.16);
        }

        .experience-output .parser-config-toggle input:checked + .parser-config-switch::after {
            transform: translateX(10px);
            background: #141416;
        }

        .experience-output .parser-config-label { white-space: nowrap; }

        .experience-chart {
            position: relative;
            flex: 1 1 auto;
            width: 100%;
            min-width: 0;
            min-height: 260px;
            overflow: hidden;
            border: 1px solid rgba(255,255,255,0.055);
            border-radius: 10px;
            cursor: grab;
            touch-action: none;
            user-select: none;
        }

        .experience-chart.is-panning { cursor: grabbing; }

        .experience-chart-transform {
            position: absolute;
            top: 0;
            left: 0;
            width: max-content;
            height: max-content;
            transform-origin: 0 0;
        }

        .experience-chart svg {
            display: block;
            max-width: none;
            height: auto;
        }

        .experience-chart-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 4;
            display: flex;
            align-items: center;
            gap: 3px;
            padding: 4px;
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            background: rgba(12,15,18,0.92);
            box-shadow: 0 10px 28px rgba(0,0,0,0.34);
            backdrop-filter: blur(10px);
        }

        .experience-chart-controls button {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 0;
            border-radius: 5px;
            background: transparent;
            color: #aeb8c4;
            cursor: pointer;
        }

        .experience-chart-controls button:hover {
            background: rgba(63,198,191,0.1);
            color: #d8fffa;
        }

        .experience-chart-controls .material-symbols-outlined { font-size: 17px; }
        .experience-chart-controls [data-experience-zoom-label] {
            min-width: 42px;
            color: #8f9aa7;
            font-size: 10px;
            font-variant-numeric: tabular-nums;
            text-align: center;
        }

        .experience-chart [data-path] { cursor: pointer; }
        .experience-chart .experience-word-selected {
            filter: drop-shadow(0 0 5px rgba(63,198,191,0.92));
        }

        .experience-empty-state {
            min-height: 100%;
            display: grid;
            place-content: center;
            justify-items: center;
            gap: 6px;
            color: #798592;
            text-align: center;
        }

        .experience-empty-state .material-symbols-outlined { font-size: 34px; color: var(--primary-color); }
        .experience-empty-state strong { color: #d8dee6; }
        .experience-empty-state p { margin: 0; font-size: 0.8rem; }

        .experience-json-panel {
            min-width: 0;
            min-height: 0;
            display: grid;
            grid-template-rows: auto minmax(0, 1fr);
            background: #080a0d;
        }

        .experience-json-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.07);
        }

        .experience-json-header button {
            height: 32px;
            padding: 0 10px;
            font-size: 0.72rem;
        }

        .experience-json-header button .material-symbols-outlined { font-size: 16px; }

        #adminExperienceJson {
            min-height: 0;
            margin: 0;
            overflow: auto;
            padding: 16px;
            color: #b8e6df;
            font: 500 0.72rem/1.55 "JetBrains Mono", monospace;
            white-space: pre;
            tab-size: 2;
        }

        .experience-info-panel {
            position: absolute;
            top: 220px;
            right: calc(34vw + 18px);
            z-index: 60;
            width: min(350px, calc(100vw - 36px));
            min-width: 280px;
            min-height: 180px;
            max-width: calc(100vw - 24px);
            max-height: min(540px, calc(100vh - 244px));
            display: none;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(70,69,84,0.65);
            border-radius: 12px;
            background: linear-gradient(180deg, rgba(31,32,36,0.98), rgba(18,19,22,0.99));
            box-shadow: 0 24px 64px rgba(0,0,0,0.55);
            color: #e5e8ec;
            backdrop-filter: blur(20px);
        }

        .experience-info-panel.active { display: flex; }

        .experience-info-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 11px 12px;
            border-bottom: 1px solid rgba(255,255,255,0.08);
            background: rgba(255,255,255,0.025);
            cursor: move;
            user-select: none;
            touch-action: none;
        }

        .experience-info-header h3 {
            max-width: 270px;
            margin: 2px 0 0;
            overflow: hidden;
            color: #f4f7fa;
            font-size: 0.9rem;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .experience-info-header button {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            padding: 0;
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 6px;
            background: rgba(255,255,255,0.035);
            color: #aeb8c4;
            cursor: pointer;
        }

        .experience-info-header .material-symbols-outlined { font-size: 17px; }

        .experience-info-content {
            flex: 1 1 auto;
            min-height: 0;
            overflow: auto;
            padding: 10px 12px 12px;
            scrollbar-width: thin;
            scrollbar-color: rgba(63,198,191,0.32) rgba(8,10,13,0.24);
        }

        .experience-info-content::-webkit-scrollbar,
        .experience-info-result-scroll::-webkit-scrollbar { width: 7px; height: 7px; }
        .experience-info-content::-webkit-scrollbar-track,
        .experience-info-result-scroll::-webkit-scrollbar-track {
            background: rgba(8,10,13,0.24);
            border-radius: 999px;
        }
        .experience-info-content::-webkit-scrollbar-thumb,
        .experience-info-result-scroll::-webkit-scrollbar-thumb {
            border: 1px solid rgba(8,10,13,0.72);
            border-radius: 999px;
            background: rgba(63,198,191,0.28);
        }
        .experience-info-content::-webkit-scrollbar-thumb:hover,
        .experience-info-result-scroll::-webkit-scrollbar-thumb:hover { background: rgba(63,198,191,0.5); }

        .experience-info-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }

        .experience-info-actions button {
            min-height: 30px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 0 9px;
            border: 1px solid rgba(63,198,191,0.28);
            border-radius: 7px;
            background: rgba(63,198,191,0.09);
            color: #cffdf7;
            font: 400 0.72rem/1 var(--font-main);
            cursor: pointer;
        }

        .experience-info-actions button:disabled { opacity: 0.6; cursor: wait; }
        .experience-info-actions .material-symbols-outlined { font-size: 15px; }

        .experience-info-table {
            width: 100%;
            border-collapse: collapse;
        }

        .experience-info-table th,
        .experience-info-table td {
            padding: 7px 0;
            border-bottom: 1px solid rgba(255,255,255,0.065);
            vertical-align: top;
            font-size: 0.74rem;
            line-height: 1.45;
            overflow-wrap: anywhere;
        }

        .experience-info-table th {
            width: 38%;
            padding-right: 10px;
            color: #8995a3;
            font-weight: 700;
            text-align: left;
        }

        .experience-info-table td { color: #d7dde4; }
        .experience-info-chip-list { display: flex; flex-wrap: wrap; gap: 4px; }
        .experience-info-chip-list > span {
            padding: 2px 5px;
            border: 1px solid rgba(192,193,255,0.15);
            border-radius: 5px;
            background: rgba(192,193,255,0.06);
        }

        .experience-info-nested { display: grid; gap: 5px; }
        .experience-info-nested > div { display: grid; grid-template-columns: minmax(72px, 0.7fr) 1fr; gap: 6px; }
        .experience-info-nested b { color: #929dac; font-weight: 700; }
        .experience-info-more {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.09);
        }
        .experience-info-more h4 {
            margin: 0 0 7px;
            color: #bffbf5;
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }
        .experience-info-empty { margin: 0; color: #8793a0; font-size: 0.75rem; }

        .experience-info-result {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(255,255,255,0.09);
        }
        .experience-info-result h4 {
            margin: 0 0 8px;
            color: #bffbf5;
            font-size: 0.7rem;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }
        .experience-info-result-scroll {
            max-width: 100%;
            overflow: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(63,198,191,0.32) rgba(8,10,13,0.24);
        }
        .experience-info-result .verb-parser-app,
        .experience-info-result .parser-verb-forms { max-width: 100%; overflow: auto; }
        .experience-info-result .parser-verb-forms {
            padding: 9px;
            border: 1px solid rgba(63,198,191,0.13);
            border-radius: 9px;
            background: rgba(8,10,13,0.34);
        }
        .experience-info-result .parser-verb-forms svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
        .experience-info-content { --parser-info-content-font-size: 12px; }
        .experience-info-content .parser-info-section {
            margin-top: 12px;
            padding-top: 10px;
            border-top: 1px solid rgba(229,226,227,0.08);
        }
        .experience-info-content > .parser-info-section:first-of-type { margin-top: 12px; }
        .experience-info-content .parser-info-section h4 {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin: 0 0 8px;
            color: rgba(192,193,255,0.9);
            font-size: calc(var(--parser-info-content-font-size) - 1px);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }
        .experience-info-content .parser-info-section-icon {
            width: 16px;
            height: 16px;
            display: inline-grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(192,193,255,0.18);
            border-radius: 6px;
            background: rgba(192,193,255,0.08);
            color: rgba(192,193,255,0.92);
        }
        .experience-info-content .parser-info-section-icon svg {
            width: 10px;
            height: 10px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .experience-info-content .parser-info-table { width: 100%; border-collapse: collapse; }
        .experience-info-content .parser-info-table th,
        .experience-info-content .parser-info-table td {
            padding: 6px 0;
            border-bottom: 1px solid rgba(229,226,227,0.07);
            vertical-align: top;
            text-align: left;
        }
        .experience-info-content .parser-info-table th {
            width: 34%;
            padding-right: 10px;
            color: rgba(192,193,255,0.86);
            font-weight: 400;
            overflow-wrap: anywhere;
        }
        .experience-info-content .parser-info-table td {
            color: rgba(229,226,227,0.82);
            overflow-wrap: anywhere;
            white-space: pre-wrap;
        }
        .experience-info-content .parser-concordance-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0 6px;
            table-layout: fixed;
        }
        .experience-info-content .parser-concordance-table td {
            padding: 5px 6px;
            border: 0;
            background: rgba(19,19,20,0.34);
            color: rgba(229,226,227,0.72);
            font-size: calc(var(--parser-info-content-font-size) - 1px);
            line-height: 1.4;
            vertical-align: middle;
            overflow-wrap: anywhere;
        }
        .experience-info-content .parser-concordance-left { text-align: right; border-radius: 8px 0 0 8px; }
        .experience-info-content .parser-concordance-keyword {
            width: 72px;
            overflow: hidden;
            color: rgba(245,243,255,0.95) !important;
            background: rgba(192,193,255,0.11) !important;
            font-weight: 500;
            text-align: center;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .experience-info-content .parser-concordance-right { text-align: left; border-radius: 0 8px 8px 0; }
        .experience-info-content .parser-concordance-translation {
            display: block;
            margin-top: 3px;
            color: rgba(229,226,227,0.5);
            font-size: calc(var(--parser-info-content-font-size) - 2px);
        }
        .experience-info-content .parser-verb-card-list { display: grid; gap: 8px; }
        .experience-info-content .parser-verb-card {
            padding: 9px 10px;
            border: 1px solid rgba(229,226,227,0.08);
            border-radius: 10px;
            background: rgba(19,19,20,0.36);
        }
        .experience-info-content .parser-verb-card-title {
            margin: 0 0 4px;
            color: rgba(245,243,255,0.94);
            font-size: var(--parser-info-content-font-size);
            font-weight: 800;
        }
        .experience-info-content .parser-verb-card p {
            margin: 0;
            color: rgba(229,226,227,0.72);
            font-size: calc(var(--parser-info-content-font-size) - 1px);
            line-height: 1.45;
        }
        .experience-info-content .parser-verb-pattern {
            display: inline-flex;
            margin: 6px 0 0;
            padding: 3px 6px;
            border: 1px solid rgba(192,193,255,0.16);
            border-radius: 999px;
            background: rgba(192,193,255,0.07);
            color: rgba(192,193,255,0.9);
            font: 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
        }
        .experience-info-content .parser-verb-notes {
            margin: 6px 0 0;
            padding-left: 16px;
            color: rgba(229,226,227,0.58);
            font-size: 10px;
        }
        .experience-info-content .parser-verb-example { display: grid; gap: 4px; }
        .experience-info-content .parser-verb-example-sentence {
            color: rgba(245,243,255,0.92) !important;
            font-size: var(--parser-info-content-font-size) !important;
        }
        .experience-info-content .parser-info-muted {
            display: inline-block;
            margin-left: 6px;
            color: rgba(229,226,227,0.56) !important;
            font-size: 11px !important;
            font-weight: 400;
        }
        .experience-info-content .parser-verb-forms,
        .experience-info-content .parser-verb-tenses {
            border: 1px solid rgba(192,193,255,0.13);
            border-radius: 11px;
            background: linear-gradient(180deg, rgba(245,243,255,0.045), rgba(19,19,20,0.26)), rgba(12,13,16,0.44);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
        }
        .experience-info-content .parser-verb-forms { overflow-x: auto; overflow-y: hidden; padding: 10px; }
        .experience-info-content .parser-verb-forms svg { display: block; max-width: 100%; height: auto; margin: 0 auto; }
        .experience-info-content .parser-verb-tenses.verb-parser-output {
            --ink: #eef2f6;
            --muted: #aab5c0;
            --line: #48525e;
            --panel: #2d333b;
            --accent: #2dd4bf;
            --accent-dark: #14b8a6;
            overflow: hidden;
            background: #20242a;
        }
        .experience-info-content .parser-verb-tenses .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 8px;
        }
        .experience-info-content .parser-verb-tenses .tab-button {
            padding: 5px 8px;
            border: 1px solid rgba(170,181,192,0.2);
            border-radius: 6px;
            background: rgba(255,255,255,0.035);
            color: #aab5c0;
            font: 500 10px/1.2 var(--font-main);
            cursor: pointer;
        }
        .experience-info-content .parser-verb-tenses .tab-button.active {
            border-color: rgba(45,212,191,0.42);
            background: rgba(20,184,166,0.13);
            color: #d8fffa;
        }
        .experience-info-content .parser-verb-tenses .output { padding: 0; overflow: auto; }
        .experience-info-content .parser-verb-table-panel { display: none; padding: 8px; }
        .experience-info-content .parser-verb-table-panel.is-active { display: block; }
        .experience-info-content .parser-verb-tenses table {
            width: 100% !important;
            margin: 0 !important;
            border-collapse: collapse !important;
            color: var(--ink) !important;
            background: transparent !important;
        }
        .experience-info-content .parser-verb-tenses th,
        .experience-info-content .parser-verb-tenses td {
            padding: 8px 10px !important;
            border: 1px solid var(--line) !important;
            background: var(--panel) !important;
            color: var(--ink) !important;
            vertical-align: top !important;
        }
        .experience-info-content .parser-verb-tenses th {
            background: #263d3b !important;
            color: #d8fffa !important;
            font-weight: 500 !important;
        }
        .experience-info-content .parser-verb-tenses tbody tr:nth-child(even) td { background: #272d35 !important; }
        .experience-info-content .parser-verb-tenses tr:hover td { background: #303842 !important; }
        .experience-info-content .parser-verb-tenses .verb-column {
            border-color: rgba(45,212,191,0.35) !important;
            background: rgba(20,184,166,0.1) !important;
            color: var(--accent-dark) !important;
            font-weight: 400 !important;
            white-space: nowrap;
        }
        .experience-info-content .parser-verb-tense-notes { padding: 0 10px 10px; line-height: 1.45; }
        .experience-info-content .tense-tooltip,
        .experience-info-content .tab-tooltip { display: none !important; }

        .experience-info-resize {
            position: absolute;
            bottom: 0;
            z-index: 3;
            width: 20px;
            height: 20px;
            opacity: 0.5;
        }
        .experience-info-resize::before,
        .experience-info-resize::after {
            content: "";
            position: absolute;
            bottom: 5px;
            width: 10px;
            height: 1px;
            border-radius: 999px;
            background: rgba(63,198,191,0.8);
        }
        .experience-info-resize::after { bottom: 9px; width: 6px; }
        .experience-info-resize.is-left { left: 0; cursor: nesw-resize; }
        .experience-info-resize.is-right { right: 0; cursor: nwse-resize; }
        .experience-info-resize.is-left::before,
        .experience-info-resize.is-left::after { left: 4px; transform: rotate(45deg); transform-origin: left center; }
        .experience-info-resize.is-right::before,
        .experience-info-resize.is-right::after { right: 4px; transform: rotate(-45deg); transform-origin: right center; }
        .experience-info-resize-edge {
            position: absolute;
            left: -3px;
            top: 48px;
            bottom: 22px;
            z-index: 3;
            width: 8px;
            cursor: ew-resize;
        }
        .experience-info-resize-edge:hover { background: linear-gradient(90deg, transparent 3px, rgba(63,198,191,0.55) 3px, rgba(63,198,191,0.55) 4px, transparent 4px); }

        @media (max-width: 860px) {
            .experience-controls { grid-template-columns: 1fr 1fr; }
            .experience-input-field { grid-column: 1 / -1; }
            .experience-layout { grid-template-columns: 1fr; grid-template-rows: minmax(340px, 1fr) minmax(240px, 42vh); }
            .experience-output-panel { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
            .experience-info-panel { right: 18px; top: 210px; }
        }

        /* --- HUD USER CONTROLS --- */
        .hud-user-controls {
            position: fixed;
            top: 24px;
            right: 24px;
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 16px;
            pointer-events: none;
            /* Allows clicks to pass to canvas beneath */
        }

        .hud-user-controls>* {
            pointer-events: auto;
            /* Re-enables clicks for buttons/dropdowns */
        }

        /* Floating Button Aesthetic */
        .hud-user-controls .header-btn {
            background: rgba(13, 13, 15, 0.85);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .hud-user-controls .header-btn:hover {
            border-color: var(--primary-color);
            transform: translateY(-2px);
            background: rgba(20, 20, 22, 0.95);
        }

        /* Dropdown Logic: Base State */
        .user-dropdown {
            position: absolute;
            top: calc(100% + 12px);
            right: 0;
            display: none;
            /* Hidden by default */
            opacity: 0;
            transform: translateY(10px);
            transition: all 0.2s ease;
        }

        /* Dropdown Logic: Hover State */
        .header-btn.logged-in:hover .user-dropdown {
            display: flex;
            opacity: 1;
            transform: translateY(0);
        }

        /* Guest Status Badge */
        .guest-status {
            background: rgba(0, 0, 0, 0.4);
            padding: 0 16px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(4px);
            height: 40px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- Shared Account Modal Language --- */
        #profileModal .profile-glass-panel,
        #walletModal .wallet-glass-panel,
        #adminDashboardModal .admin-dashboard-panel {
            font-family: var(--font-main);
            background: rgba(11, 13, 16, 0.96);
            border: 1px solid rgba(255, 255, 255, 0.09);
            border-radius: 10px;
            box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
            color: var(--text-main);
        }

        #profileModal .profile-header-center h2,
        #walletModal .wallet-header h1,
        #adminDashboardModal .admin-topbar h2 {
            font-family: var(--font-display);
            font-style: normal;
            font-weight: 800;
            letter-spacing: 0.02em;
            color: var(--text-main);
        }

        #profileModal .profile-header-center h2 {
            font-size: 1.25rem;
        }

        #walletModal .wallet-header h1 {
            font-size: 1.45rem;
            margin-bottom: 0.35rem;
        }

        #walletModal .wallet-header p {
            font-family: var(--font-main);
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        #walletModal .balance-card-noir,
        #profileModal .premium-wallet-card {
            background: #11151a;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            box-shadow: none;
        }

        #walletModal .balance-unit,
        #profileModal .wallet-balance {
            font-family: var(--font-main);
            font-style: normal;
            font-weight: 800;
        }

        #profileModal .profile-footer,
        #adminDashboardModal .admin-topbar {
            background: #111418;
            border-color: rgba(255, 255, 255, 0.08);
        }

        #profileModal .close-text-btn,
        #walletModal .close-icon-btn,
        #adminDashboardModal .admin-icon-btn {
            border-radius: 6px;
            color: #d7dde4;
        }

        #profileModal .close-text-btn:hover,
        #walletModal .close-icon-btn:hover,
        #adminDashboardModal .admin-icon-btn:hover {
            color: var(--text-main);
            border-color: rgba(63, 198, 191, 0.45);
            background: rgba(63, 198, 191, 0.08);
        }

        /* --- Stitch-Inspired Main Dashboard Shell --- */
        :root {
            --dashboard-bg: #131314;
            --dashboard-surface: #201f20;
            --dashboard-surface-low: #1c1b1c;
            --dashboard-surface-high: #2a2a2b;
            --dashboard-surface-highest: #353436;
            --dashboard-text: #e5e2e3;
            --dashboard-muted: #c7c4d7;
            --dashboard-outline: #464554;
            --dashboard-primary: #c0c1ff;
            --dashboard-secondary: #4edea3;
            --font-dashboard: 'Hanken Grotesk', var(--font-main);
            --font-mono-ui: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
        }

        body {
            background:
                radial-gradient(#2a2a2b 1px, transparent 1px),
                var(--dashboard-bg);
            background-size: 20px 20px;
            color: var(--dashboard-text);
            font-family: 'Inter', var(--font-main);
        }

        .app-topbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 64px;
            z-index: 800;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 24px;
            background: rgba(19, 19, 20, 0.72);
            border-bottom: 1px solid rgba(70, 69, 84, 0.35);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
        }

        .topbar-brand-group {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }

        .topbar-brand {
            font-family: var(--font-dashboard);
            font-size: 30px;
            line-height: 1;
            font-weight: 700;
            color: var(--dashboard-text);
            white-space: nowrap;
        }

        .topbar-plan {
            display: inline-flex;
            align-items: center;
            height: 24px;
            padding: 0 10px;
            border: 1px solid var(--dashboard-outline);
            border-radius: 999px;
            color: var(--dashboard-muted);
            font-family: var(--font-mono-ui);
            font-size: 11px;
            letter-spacing: 0.05em;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-right: 150px;
        }

        body.is-authenticated .topbar-actions {
            margin-right: 58px;
        }

        .ui-language-picker {
            position: relative;
        }

        .ui-language-trigger {
            min-width: 132px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 0 12px;
            border: 1px solid var(--dashboard-outline);
            border-radius: 14px;
            background: var(--dashboard-surface-highest);
            color: var(--dashboard-text);
            font: 500 13px/1 var(--font-dashboard);
            cursor: pointer;
            transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
        }

        .ui-language-trigger:hover,
        .ui-language-picker.is-open .ui-language-trigger {
            border-color: var(--dashboard-primary);
            background: var(--dashboard-surface-highest);
            box-shadow: 0 0 0 3px rgba(192, 193, 255, 0.07);
        }

        .ui-language-trigger:focus-visible {
            outline: 2px solid var(--accent-color);
            outline-offset: 2px;
        }

        .ui-language-trigger > .material-symbols-outlined {
            color: var(--dashboard-muted);
            font-size: 19px;
        }

        .ui-language-value {
            flex: 1;
            overflow: hidden;
            text-align: left;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .ui-language-trigger > .ui-language-chevron {
            color: var(--dashboard-muted);
            font-size: 18px;
            transition: transform 0.18s ease;
        }

        .ui-language-picker.is-open .ui-language-chevron {
            transform: rotate(180deg);
        }

        .ui-language-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            z-index: 1200;
            width: 190px;
            max-height: min(430px, calc(100vh - 88px));
            overflow-y: auto;
            padding: 7px;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 14px;
            background: rgba(24, 24, 28, 0.98);
            box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-5px) scale(0.98);
            transform-origin: top right;
            transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.38) transparent;
        }

        .ui-language-picker.is-open .ui-language-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }

        .ui-language-menu-title {
            padding: 8px 10px 7px;
            color: var(--dashboard-muted);
            font: 600 10px/1 var(--font-mono-ui);
            letter-spacing: 0.09em;
            text-transform: uppercase;
        }

        .ui-language-menu button {
            width: 100%;
            min-height: 36px;
            padding: 0 10px;
            border: 0;
            border-radius: 9px;
            background: transparent;
            color: var(--dashboard-text);
            text-align: left;
            font: 500 13px/1.2 var(--font-dashboard);
            cursor: pointer;
        }

        .ui-language-menu button:hover,
        .ui-language-menu button.is-selected {
            color: #fff;
            background: rgba(192, 193, 255, 0.13);
        }

        .ui-language-menu button.is-selected::after {
            content: 'check';
            float: right;
            color: var(--accent-color);
            font: 18px/1 'Material Symbols Outlined';
        }

        .topbar-icon-btn,
        .prompt-icon-btn {
            border: 0;
            background: transparent;
            color: var(--dashboard-muted);
            cursor: pointer;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }

        .topbar-icon-btn {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 999px;
            line-height: 1;
            padding: 0;
        }

        .topbar-icon-btn .material-symbols-outlined,
        #loginHeaderBtn .material-symbols-outlined {
            display: block;
            font-size: 22px;
            line-height: 1;
        }

        .topbar-icon-btn:hover,
        .prompt-icon-btn:hover {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.58);
        }

        .sentence-gen-modal {
            position: fixed;
            inset: 0;
            z-index: 2400;
            display: none;
            color: rgba(245, 243, 255, 0.94);
            background:
                radial-gradient(circle at 18% 4%, rgba(192, 193, 255, 0.16), transparent 34%),
                radial-gradient(circle at 82% 18%, rgba(78, 222, 163, 0.1), transparent 30%),
                rgba(8, 9, 12, 0.9);
            backdrop-filter: blur(24px) saturate(1.12);
            -webkit-backdrop-filter: blur(24px) saturate(1.12);
        }

        .sentence-gen-modal.is-open {
            display: grid;
            place-items: center;
            padding: 28px;
        }

        .sentence-gen-shell {
            width: min(1080px, 100%);
            max-height: min(780px, calc(100vh - 56px));
            display: grid;
            grid-template-rows: auto 1fr;
            overflow: hidden;
            border: 1px solid rgba(229, 226, 227, 0.1);
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(31, 32, 36, 0.96), rgba(18, 19, 22, 0.98));
            box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.055);
        }

        .sentence-gen-header,
        .sentence-gen-result {
            display: flex;
            gap: 12px;
        }

        .sentence-gen-header {
            justify-content: space-between;
            padding: 20px 22px;
            border-bottom: 1px solid rgba(229, 226, 227, 0.08);
            background: linear-gradient(90deg, rgba(192, 193, 255, 0.07), rgba(78, 222, 163, 0.035), transparent);
        }

        .sentence-gen-title {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            margin: 0;
            font-size: 18px;
            line-height: 1.2;
            font-weight: 850;
        }

        .sentence-gen-title-icon {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(78, 222, 163, 0.24);
            border-radius: 10px;
            background: rgba(78, 222, 163, 0.09);
            color: rgba(213, 255, 240, 0.94);
        }

        .sentence-gen-title-icon svg,
        .sentence-gen-close svg {
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .sentence-gen-title-icon svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
        }

        .sentence-gen-subtitle {
            margin: 6px 0 0;
            color: rgba(229, 226, 227, 0.58);
            font-size: 12px;
        }

        .sentence-gen-close {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(229, 226, 227, 0.08);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.035);
            color: rgba(229, 226, 227, 0.72);
            cursor: pointer;
        }

        .sentence-gen-close svg {
            width: 16px;
            height: 16px;
            stroke-width: 2;
        }

        .sentence-gen-body {
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(280px, 360px) 1fr;
            overflow: hidden;
        }

        .sentence-gen-controls {
            display: grid;
            align-content: start;
            gap: 16px;
            padding: 18px;
            border-right: 1px solid rgba(229, 226, 227, 0.08);
            overflow: auto;
        }

        .sentence-gen-field {
            display: grid;
            gap: 8px;
        }

        .sentence-gen-field label {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: rgba(229, 226, 227, 0.62);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .sentence-gen-input,
        .sentence-gen-select {
            width: 100%;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 10px;
            background: rgba(8, 9, 12, 0.42);
            color: rgba(245, 243, 255, 0.94);
            padding: 10px 11px;
            font: inherit;
            font-size: 12px;
            outline: none;
        }

        .sentence-gen-native-select {
            display: none;
        }

        .sentence-gen-lang-select {
            position: relative;
            width: 100%;
        }

        .sentence-gen-lang-btn {
            position: relative;
            width: 100%;
            min-height: 32px;
            display: flex;
            align-items: center;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 9px;
            background: rgba(8, 9, 12, 0.42);
            color: rgba(245, 243, 255, 0.9);
            padding: 8px 28px 8px 10px;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.2;
            text-align: left;
            cursor: pointer;
            outline: none;
        }

        .sentence-gen-lang-btn::after {
            content: "";
            position: absolute;
            top: 11px;
            right: 11px;
            width: 6px;
            height: 6px;
            border-right: 1px solid rgba(229, 226, 227, 0.66);
            border-bottom: 1px solid rgba(229, 226, 227, 0.66);
            transform: rotate(45deg);
            transition: transform 0.14s ease;
        }

        .sentence-gen-lang-select.is-open .sentence-gen-lang-btn::after {
            transform: translateY(3px) rotate(225deg);
        }

        .sentence-gen-lang-btn:focus-visible {
            border-color: rgba(192, 193, 255, 0.36);
            box-shadow: 0 0 0 2px rgba(192, 193, 255, 0.14);
        }

        .sentence-gen-lang-menu {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            z-index: 4;
            display: grid;
            gap: 2px;
            max-height: 188px;
            overflow: auto;
            padding: 4px;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 9px;
            background: rgba(15, 15, 18, 0.98);
            box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36);
            opacity: 0;
            pointer-events: none;
            transform: translateY(-4px);
            visibility: hidden;
            transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
        }

        .sentence-gen-lang-select.is-open .sentence-gen-lang-menu {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(0);
            visibility: visible;
        }

        .sentence-gen-lang-menu button {
            width: 100%;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(245, 243, 255, 0.84);
            padding: 6px 7px;
            font-size: 12px;
            font-weight: 500;
            line-height: 1.2;
            text-align: left;
            cursor: pointer;
        }

        .sentence-gen-lang-menu button:hover,
        .sentence-gen-lang-menu button[aria-selected="true"] {
            background: rgba(192, 193, 255, 0.12);
            color: rgba(245, 243, 255, 0.96);
        }

        .sentence-gen-option-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .sentence-gen-option {
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.055);
            color: rgba(229, 226, 227, 0.74);
            padding: 6px 9px;
            font-size: 11px;
            cursor: pointer;
        }

        .sentence-gen-option.is-active {
            border-color: rgba(78, 222, 163, 0.36);
            background: rgba(78, 222, 163, 0.12);
            color: rgba(213, 255, 240, 0.95);
        }

        .sentence-gen-submit {
            min-height: 38px;
            border: 0;
            border-radius: 11px;
            background: linear-gradient(135deg, rgba(78, 222, 163, 0.95), rgba(192, 193, 255, 0.9));
            color: #101114;
            font-weight: 850;
            cursor: pointer;
        }

        .sentence-gen-submit:disabled {
            opacity: 0.58;
            cursor: wait;
        }

        .sentence-gen-results {
            min-height: 0;
            display: grid;
            gap: 10px;
            align-content: start;
            padding: 18px;
            overflow: auto;
        }

        .sentence-gen-empty {
            margin: 0;
            color: rgba(229, 226, 227, 0.52);
            font-size: 13px;
        }

        .sentence-gen-result {
            align-items: flex-start;
            padding: 12px;
            border: 1px solid rgba(229, 226, 227, 0.08);
            border-radius: 12px;
            background: rgba(19, 19, 20, 0.42);
        }

        .sentence-gen-result span {
            flex: 1 1 auto;
            color: rgba(245, 243, 255, 0.9);
            font-size: 13px;
            line-height: 1.45;
        }

        .sentence-gen-use {
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.07);
            color: rgba(229, 226, 227, 0.8);
            padding: 5px 8px;
            font-size: 10px;
            cursor: pointer;
        }

        .project-rail {
            position: fixed;
            top: 64px;
            left: 0;
            bottom: 0;
            z-index: 700;
            width: 330px;
            padding: 32px 24px;
            overflow-y: auto;
            background: var(--dashboard-bg);
            border-right: 1px solid rgba(70, 69, 84, 0.26);
        }

        .project-search {
            position: relative;
            margin-bottom: 10px;
        }

        .project-search .material-symbols-outlined {
            position: absolute;
            left: 12px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--dashboard-muted);
            font-size: 18px;
        }

        .project-search input {
            width: 100%;
            height: 40px;
            border: 0;
            border-radius: 8px;
            background: var(--dashboard-surface-high);
            color: var(--dashboard-text);
            padding: 0 14px 0 40px;
            font-size: 14px;
            outline: none;
        }

        .project-search input::placeholder {
            color: rgba(199, 196, 215, 0.7);
        }

        .project-search input:focus {
            box-shadow: none;
        }

        .project-rail-actions {
            margin-bottom: 24px;
        }

        .project-add-btn {
            width: 100%;
            min-height: 36px;
            display: grid;
            grid-template-columns: 22px minmax(0, 1fr);
            align-items: center;
            column-gap: 8px;
            border: 1px solid rgba(70, 69, 84, 0.36);
            border-radius: 8px;
            background: rgba(42, 42, 43, 0.42);
            color: var(--dashboard-muted);
            font: 700 12px/1 var(--font-dashboard);
            padding: 0 14px 0 18px;
            cursor: pointer;
            transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
        }

        .project-add-btn:hover {
            color: var(--dashboard-text);
            border-color: rgba(192, 193, 255, 0.38);
            background: rgba(53, 52, 54, 0.58);
        }

        .project-add-btn .material-symbols-outlined {
            grid-column: 1;
            width: 22px;
            height: 22px;
            display: grid;
            place-items: center;
            font-size: 19px;
            line-height: 1;
        }

        .project-action-label {
            grid-column: 2;
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .project-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
            margin-bottom: 28px;
        }

        #guestExampleGroup[hidden] {
            display: none;
        }

        .project-empty-state {
            display: none;
            margin: 6px 10px 0;
            color: var(--dashboard-muted);
            font-size: 12px;
            line-height: 1.5;
        }

        .project-group.empty,
        .project-group.search-hidden,
        .project-item.search-hidden,
        #workspaceNotesContent [data-workspace-text-item].search-hidden {
            display: none;
        }

        #todayProjectGroup.empty.show-empty-state {
            display: flex;
        }

        #todayProjectGroup.empty.show-empty-state .project-empty-state {
            display: block;
        }

        .project-list {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .project-group h3 {
            margin: 0 0 8px;
            color: var(--dashboard-muted);
            font-family: var(--font-mono-ui);
            font-size: 12px;
            line-height: 1;
            font-weight: 500;
            letter-spacing: 0.05em;
        }

        .guest-example-group {
            gap: 10px;
        }

        .guest-example-group h3 {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0;
            color: rgba(229, 226, 227, 0.92);
        }

        .guest-example-badge {
            border: 1px solid rgba(192, 193, 255, 0.24);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.08);
            color: rgba(205, 206, 255, 0.82);
            padding: 4px 7px;
            font: 600 9px/1 var(--font-dashboard);
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .project-item {
            position: relative;
            width: 100%;
            min-height: 52px;
            border: 0;
            border-radius: 8px;
            padding: 8px 34px 8px 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: left;
            background: transparent;
            color: var(--dashboard-text);
            cursor: pointer;
            transition: background 0.18s ease;
        }

        .project-item:hover,
        .project-item.active {
            background: rgba(53, 52, 54, 0.58);
        }

        .guest-example-card {
            min-height: 112px;
            align-items: flex-start;
            overflow: hidden;
            border: 1px solid rgba(192, 193, 255, 0.24);
            border-radius: 12px;
            padding: 15px;
            background:
                radial-gradient(circle at 90% 10%, rgba(192, 193, 255, 0.14), transparent 42%),
                linear-gradient(145deg, rgba(53, 52, 64, 0.72), rgba(37, 36, 40, 0.92));
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.025);
            transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .guest-example-card::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(110deg, transparent 30%, rgba(224, 225, 255, 0.13) 48%, transparent 66%);
            pointer-events: none;
            transform: translateX(-140%);
            animation: guestExampleCardSheen 1.15s 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        .guest-example-card:hover,
        .guest-example-card:focus-visible {
            transform: translateY(-2px);
            border-color: rgba(192, 193, 255, 0.52);
            background:
                radial-gradient(circle at 90% 10%, rgba(192, 193, 255, 0.2), transparent 44%),
                linear-gradient(145deg, rgba(58, 57, 72, 0.82), rgba(39, 38, 43, 0.96));
            box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(192, 193, 255, 0.08);
            outline: none;
        }

        .guest-example-card .project-icon {
            width: 40px;
            height: 40px;
            flex-basis: 40px;
            border-color: rgba(192, 193, 255, 0.3);
            border-radius: 10px;
            background: rgba(192, 193, 255, 0.11);
            color: #cfd0ff;
            font-size: 20px;
            animation: guestExampleIconPulse 8s ease-in-out infinite;
        }

        @keyframes guestExampleCardSheen {
            from { transform: translateX(-140%); }
            to { transform: translateX(140%); }
        }

        @keyframes guestExampleIconPulse {
            0%, 14%, 100% {
                transform: scale(1);
                border-color: rgba(192, 193, 255, 0.3);
                box-shadow: 0 0 0 rgba(159, 161, 255, 0);
            }
            5% {
                transform: scale(1.08) rotate(-3deg);
                border-color: rgba(205, 206, 255, 0.62);
                box-shadow: 0 0 18px rgba(159, 161, 255, 0.24);
            }
            9% {
                transform: scale(1.03) rotate(2deg);
                box-shadow: 0 0 10px rgba(159, 161, 255, 0.14);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .guest-example-card::after,
            .guest-example-card .project-icon {
                animation: none;
            }
        }

        .guest-example-card .project-copy {
            flex: 1;
            gap: 7px;
        }

        .guest-example-card .project-title {
            overflow: visible;
            color: #f2f0f1;
            font-size: 12.5px;
            line-height: 1.4;
            font-weight: 400;
            text-overflow: clip;
            white-space: normal;
        }

        .guest-example-card .project-date {
            line-height: 1.3;
        }

        .guest-example-language {
            width: max-content;
            max-width: 100%;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.07);
            padding: 5px 7px;
            font: inherit;
            cursor: pointer;
            transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
        }

        .guest-example-language:hover,
        .guest-example-language[aria-expanded="true"] {
            color: #d7d8ff;
            border-color: rgba(192, 193, 255, 0.42);
            background: rgba(192, 193, 255, 0.13);
        }

        .guest-example-language-label {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .guest-example-language-chevron {
            transition: transform 0.16s ease;
        }

        .guest-example-language[aria-expanded="true"] .guest-example-language-chevron {
            transform: rotate(180deg);
        }

        .guest-example-language.is-static {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            cursor: default;
        }

        .guest-example-language.is-static:hover {
            color: inherit;
            border-color: rgba(192, 193, 255, 0.2);
            background: rgba(192, 193, 255, 0.07);
        }

        .guest-example-cta {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            width: max-content;
            border: 0;
            background: transparent;
            color: #cfd0ff;
            padding: 0;
            font-size: 11px;
            font-weight: 400;
            cursor: pointer;
        }

        .guest-example-cta .material-symbols-outlined {
            font-size: 14px;
            transition: transform 0.18s ease;
        }

        .guest-example-card:hover .guest-example-cta .material-symbols-outlined {
            transform: translateX(3px);
        }

        .project-item-skeleton {
            pointer-events: none;
            cursor: default;
        }

        .project-item-skeleton:hover {
            background: transparent;
        }

        .project-skeleton-icon,
        .project-skeleton-line {
            position: relative;
            overflow: hidden;
            border-radius: 999px;
            background: rgba(82, 81, 96, 0.26);
        }

        .project-skeleton-icon {
            width: 30px;
            height: 30px;
            flex: 0 0 auto;
            border-radius: 8px;
        }

        .project-skeleton-line {
            display: block;
            height: 10px;
        }

        .project-skeleton-line.title {
            width: 72%;
            margin-bottom: 8px;
        }

        .project-skeleton-line.meta {
            width: 46%;
            height: 8px;
        }

        .project-skeleton-icon::after,
        .project-skeleton-line::after {
            content: '';
            position: absolute;
            inset: 0;
            transform: translateX(-100%);
            background: linear-gradient(90deg, transparent, rgba(229, 226, 227, 0.12), transparent);
            animation: project-skeleton-shimmer 1.35s infinite;
        }

        @keyframes project-skeleton-shimmer {
            100% {
                transform: translateX(100%);
            }
        }

        .project-item-action {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 24px;
            height: 24px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(199, 196, 215, 0.42);
            padding: 0;
            opacity: 0;
            cursor: pointer;
            transition: opacity 0.16s ease, color 0.16s ease, background 0.16s ease;
        }

        .project-item:hover .project-item-action,
        .project-item-action:focus-visible {
            opacity: 1;
            color: rgba(199, 196, 215, 0.78);
            background: rgba(32, 31, 32, 0.72);
        }

        .project-item-action .material-symbols-outlined {
            font-size: 18px;
        }

        .project-context-menu,
        .prompt-context-menu {
            position: fixed;
            z-index: 1250;
            min-width: 132px;
            display: grid;
            gap: 3px;
            padding: 6px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 9px;
            background: rgba(28, 27, 28, 0.98);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .project-context-menu.hidden,
        .prompt-context-menu.hidden {
            display: none;
        }

        .project-context-menu button,
        .prompt-context-menu button {
            min-height: 32px;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--dashboard-muted);
            padding: 0 9px;
            font: 700 12px/1 var(--font-dashboard);
            text-align: left;
            cursor: pointer;
        }

        .project-context-menu button:hover,
        .prompt-context-menu button:hover {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.72);
        }

        .guest-example-language-menu {
            min-width: 164px;
            max-height: min(420px, calc(100vh - 24px));
            overflow-y: auto;
        }

        .guest-example-language-menu button[aria-checked="true"] {
            color: #d7d8ff;
            background: rgba(192, 193, 255, 0.12);
        }

        .guest-example-language-check {
            opacity: 0;
        }

        .guest-example-language-menu button[aria-checked="true"] .guest-example-language-check {
            opacity: 1;
        }

        .project-context-menu .material-symbols-outlined,
        .prompt-context-menu .material-symbols-outlined {
            font-size: 17px;
        }

        .project-icon {
            width: 32px;
            height: 32px;
            flex: 0 0 32px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(70, 69, 84, 0.36);
            border-radius: 4px;
            background: var(--dashboard-surface-high);
            color: var(--dashboard-muted);
            font-size: 16px;
        }

        .project-copy {
            display: grid;
            gap: 4px;
            min-width: 0;
        }

        .project-title {
            color: var(--dashboard-text);
            font-size: 13px;
            line-height: 1;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .project-date {
            display: flex;
            align-items: center;
            gap: 4px;
            color: var(--dashboard-muted);
            font-size: 11px;
            line-height: 1;
        }

        .project-date .material-symbols-outlined {
            font-size: 12px;
        }

        .hud-user-controls {
            top: 12px;
            right: 24px;
            z-index: 900;
            gap: 10px;
        }

        .guest-status {
            height: 40px;
            border-radius: 14px;
            background: var(--dashboard-surface-highest);
            border-color: var(--dashboard-outline);
            box-shadow: none;
        }

        .hud-user-controls .header-btn {
            width: 40px;
            height: 40px;
            min-width: 40px;
            max-width: 40px;
            padding: 0;
            border-radius: 14px;
            display: grid;
            place-items: center;
            background: var(--dashboard-surface-highest);
            border-color: var(--dashboard-outline);
            box-shadow: none;
            line-height: 1;
        }

        .hud-user-controls .header-btn:hover {
            transform: none;
            border-color: var(--dashboard-primary);
            background: var(--dashboard-surface-highest);
            box-shadow: 0 0 0 3px rgba(192, 193, 255, 0.07);
        }

        .user-initial-display {
            font-family: var(--font-dashboard);
            font-weight: 700;
            font-size: 0.95rem;
        }

        .dashboard-main {
            display: grid;
            grid-template-columns: 1fr;
            width: calc(100vw - 330px);
            min-height: calc(100vh - 64px);
            height: auto;
            margin-top: 64px;
            margin-left: 330px;
            overflow-y: auto;
            overflow-x: hidden;
            background: transparent;
        }

        .dashboard-main:has(.controls > *) {
            grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
            height: calc(100vh - 64px);
            overflow: hidden;
        }

        .dashboard-main .resize-handle {
            display: none;
        }

        .dashboard-main:has(.controls > *) .resize-handle {
            display: block;
        }

        .dashboard-main .preview-area {
            min-height: calc(100vh - 64px);
            padding: 32px;
            justify-content: center;
            align-items: center;
            background: transparent;
            background-image: none;
            box-shadow: none;
        }

        .dashboard-main .controls {
            display: none;
            background: rgba(28, 27, 28, 0.92);
            border-left: 1px solid rgba(70, 69, 84, 0.35);
        }

        .dashboard-main .controls:has(*) {
            display: flex;
        }

        .dashboard-workspace {
            width: min(800px, 100%);
            display: flex;
            flex-direction: column;
            gap: 40px;
        }

        .dashboard-hero {
            display: grid;
            grid-template-columns: minmax(250px, 0.9fr) minmax(330px, 1.1fr);
            align-items: center;
            gap: 20px;
        }

        .dashboard-prompt-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .dashboard-entry-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            padding-left: 2px;
        }

        .dashboard-entry-btn {
            min-height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 999px;
            background: rgba(42, 42, 47, 0.72);
            color: rgba(229, 226, 227, 0.78);
            padding: 7px 13px;
            font: 500 12px/1 'Inter', var(--font-main);
            box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
            cursor: pointer;
            transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
        }

        .dashboard-entry-btn:hover,
        .dashboard-entry-btn:focus-visible {
            transform: translateY(-1px);
            color: #f4f2f3;
            border-color: rgba(192, 193, 255, 0.4);
            background: rgba(53, 52, 61, 0.92);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.04);
            outline: none;
        }

        .dashboard-entry-btn .material-symbols-outlined {
            color: #bfc0ff;
            font-size: 17px;
        }

        .dashboard-parse-text-btn {
            border-color: rgba(192, 193, 255, 0.3);
            background: linear-gradient(135deg, rgba(88, 88, 114, 0.76), rgba(48, 47, 57, 0.84));
            color: rgba(247, 246, 255, 0.94);
        }

        .dashboard-entry-btn[hidden] {
            display: none;
        }

        .dashboard-workspace h1 {
            margin: 0;
            color: var(--dashboard-text);
            font-family: var(--font-dashboard);
            font-size: clamp(36px, 6vw, 48px);
            line-height: 1.1;
            font-weight: 600;
            letter-spacing: 0;
        }

        .sentence-flow-visual {
            position: relative;
            min-width: 0;
            border-radius: 28px;
            background: radial-gradient(circle at 50% 48%, rgba(142, 144, 255, 0.1), transparent 62%);
            isolation: isolate;
        }

        .sentence-flow-visual::before {
            content: '';
            position: absolute;
            inset: 12% 10%;
            z-index: -1;
            border-radius: 50%;
            background: rgba(142, 144, 255, 0.09);
            filter: blur(30px);
        }

        .sentence-flow-visual svg {
            display: block;
            width: 100%;
            height: auto;
            overflow: visible;
        }

        .sentence-flow-orbit {
            fill: none;
            stroke: rgba(192, 193, 255, 0.12);
            stroke-width: 1;
            stroke-dasharray: 3 8;
            transform-box: fill-box;
            transform-origin: center;
            animation: sentenceOrbitSpin 28s linear infinite;
        }

        .sentence-flow-track,
        .sentence-flow-energy {
            fill: none;
            stroke-linecap: round;
        }

        .sentence-flow-track {
            stroke: rgba(192, 193, 255, 0.14);
            stroke-width: 2;
        }

        .sentence-flow-energy {
            stroke: url(#sentenceFlowLine);
            stroke-width: 2.5;
            stroke-dasharray: 34 270;
            animation: sentenceEnergyFlow 3.8s linear infinite;
        }

        .sentence-flow-node rect {
            fill: url(#sentenceFlowNode);
            stroke: rgba(192, 193, 255, 0.26);
            stroke-width: 1;
            filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.28));
        }

        .sentence-flow-node circle {
            fill: #9fa1ff;
            filter: drop-shadow(0 0 5px rgba(159, 161, 255, 0.75));
        }

        .sentence-flow-node-type {
            fill: rgba(199, 196, 215, 0.66);
            font: 600 8px/1 'JetBrains Mono', monospace;
            letter-spacing: 0.14em;
        }

        .sentence-flow-node-copy {
            fill: rgba(242, 240, 241, 0.94);
            font: 500 12px/1 'Inter', sans-serif;
        }

        .sentence-flow-node-one { animation: sentenceNodeFloat 4.8s ease-in-out infinite; }
        .sentence-flow-node-two { animation: sentenceNodeFloat 4.8s 0.7s ease-in-out infinite; }
        .sentence-flow-node-three { animation: sentenceNodeFloat 4.8s 1.4s ease-in-out infinite; }

        .sentence-flow-core-ring {
            fill: rgba(142, 144, 255, 0.08);
            stroke: rgba(192, 193, 255, 0.52);
            stroke-width: 1;
            transform-origin: center;
            animation: sentenceCorePulse 2.6s ease-out infinite;
        }

        .sentence-flow-particle {
            fill: #82ded8;
            filter: drop-shadow(0 0 5px rgba(63, 198, 191, 0.8));
            transform-box: fill-box;
            transform-origin: center;
            animation: sentenceParticlePulse 2.4s ease-in-out infinite;
        }

        .sentence-flow-particle-two { animation-delay: 1.1s; }

        .sentence-flow-spark {
            fill: none;
            stroke: rgba(213, 214, 255, 0.64);
            stroke-width: 1.5;
            stroke-linecap: round;
            transform-box: fill-box;
            transform-origin: center;
            animation: sentenceSpark 5s ease-in-out infinite;
        }

        @keyframes sentenceEnergyFlow {
            to { stroke-dashoffset: -304; }
        }

        @keyframes sentenceOrbitSpin {
            to { transform: rotate(360deg); }
        }

        @keyframes sentenceNodeFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-6px); }
        }

        @keyframes sentenceCorePulse {
            0% { opacity: 0.9; transform: scale(0.65); }
            75%, 100% { opacity: 0; transform: scale(1.65); }
        }

        @keyframes sentenceParticlePulse {
            0%, 100% { opacity: 0.25; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.35); }
        }

        @keyframes sentenceSpark {
            0%, 100% { opacity: 0.28; transform: rotate(0deg) scale(0.8); }
            50% { opacity: 0.9; transform: rotate(90deg) scale(1.1); }
        }

        .prompt-card {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 32px;
            padding: 24px;
            border: 1px solid rgba(192, 193, 255, 0.16);
            border-radius: 18px;
            background: linear-gradient(145deg, rgba(43, 42, 48, 0.96), rgba(30, 29, 33, 0.98));
            box-shadow: 0 22px 58px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.025);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .prompt-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background: linear-gradient(90deg, transparent, rgba(205, 206, 255, 0.5), transparent) top center / 72% 1px no-repeat;
            pointer-events: none;
            opacity: 0.48;
        }

        .prompt-card:focus-within {
            border-color: rgba(192, 193, 255, 0.3);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(142, 144, 255, 0.055), inset 0 1px rgba(255, 255, 255, 0.035);
        }

        .prompt-card.prompt-card-attention {
            border-color: rgba(205, 206, 255, 0.72);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(159, 161, 255, 0.1), 0 0 30px rgba(142, 144, 255, 0.14);
        }

        .prompt-card.prompt-card-attention::before {
            opacity: 0.72;
        }

        .prompt-card.is-validating {
            border-color: rgba(142, 144, 255, 0.64);
            box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38), 0 0 0 3px rgba(142, 144, 255, 0.09);
        }

        .prompt-card.is-validating::before {
            opacity: 0.9;
            background: linear-gradient(90deg, transparent, #8e90ff, #3fc6bf, transparent);
            background-position: top center;
            background-repeat: no-repeat;
            background-size: 220% 2px;
            animation: promptValidationSweep 1.25s linear infinite;
        }

        .prompt-card.is-validating::after {
            content: 'Checking format & language…';
            position: absolute;
            top: 10px;
            right: 14px;
            color: rgba(199, 196, 215, 0.74);
            font: 600 11px/1 'Inter', var(--font-main);
            letter-spacing: 0.04em;
            pointer-events: none;
            animation: promptValidationPulse 1.1s ease-in-out infinite;
        }

        @keyframes promptValidationSweep {
            to { background-position: -220% 0; }
        }

        @keyframes promptValidationPulse {
            0%, 100% { opacity: 0.48; }
            50% { opacity: 1; }
        }

        .prompt-card.is-validating::after {
            content: none;
        }

        .prompt-validation-status {
            position: absolute;
            top: 0;
            left: 16px;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 6px;
            min-height: 24px;
            padding: 3px 9px 3px 7px;
            border: 1px solid rgba(142, 144, 255, 0.24);
            border-radius: 999px;
            background: rgba(22, 21, 25, 0.94);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26);
            color: rgba(215, 213, 238, 0.82);
            font: 600 10px/1 'Inter', var(--font-main);
            letter-spacing: 0.025em;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(-50%) scale(0.96);
            transform-origin: left center;
            transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
        }

        .prompt-validation-status .material-symbols-outlined {
            color: #aeb0ff;
            font-size: 14px;
        }

        .prompt-card.is-validating .prompt-validation-status {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) scale(1);
        }

        .prompt-card.is-validating .prompt-validation-status .material-symbols-outlined {
            animation: promptValidationSpin 0.85s linear infinite;
        }

        .prompt-input {
            width: 100%;
            min-height: 140px;
            resize: vertical;
            border: 0;
            outline: none;
            background: transparent;
            color: var(--dashboard-text);
            font: 400 20px/1.5 'Inter', var(--font-main);
        }

        .prompt-input::placeholder {
            color: rgba(199, 196, 215, 0.6);
        }

        .prompt-input.prompt-input-guided {
            animation: promptInputGuide 1.05s cubic-bezier(0.22, 1, 0.36, 1);
        }

        @keyframes promptInputGuide {
            0%, 100% {
                transform: translateY(0);
                border-radius: 10px;
                background: transparent;
                box-shadow: inset 0 0 0 rgba(142, 144, 255, 0);
            }
            38% {
                transform: translateY(-2px);
                border-radius: 10px;
                background: rgba(142, 144, 255, 0.055);
                box-shadow: inset 0 0 0 1px rgba(192, 193, 255, 0.2), 0 0 24px rgba(142, 144, 255, 0.08);
            }
        }

        .prompt-actions,
        .prompt-left-actions,
        .prompt-right-actions {
            display: flex;
            align-items: center;
        }

        .prompt-actions {
            justify-content: space-between;
            gap: 16px;
        }

        .prompt-left-actions,
        .prompt-right-actions {
            gap: 12px;
        }

        .prompt-icon-btn {
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            border-radius: 999px;
        }

        .prompt-icon-btn.submit {
            background: rgba(53, 52, 54, 0.52);
        }

        .prompt-icon-btn.submit.is-validating {
            color: #c0c1ff;
            cursor: wait;
        }

        .prompt-icon-btn.submit.is-validating .material-symbols-outlined {
            animation: promptValidationSpin 0.85s linear infinite;
        }

        @keyframes promptValidationSpin {
            to { transform: rotate(360deg); }
        }

        @media (prefers-reduced-motion: reduce) {
            .prompt-card.is-validating::before,
            .prompt-card.is-validating .prompt-validation-status .material-symbols-outlined,
            .prompt-icon-btn.submit.is-validating .material-symbols-outlined,
            .sentence-flow-orbit,
            .sentence-flow-energy,
            .sentence-flow-node,
            .sentence-flow-core-ring,
            .sentence-flow-particle,
            .sentence-flow-spark {
                animation: none;
            }
        }

        .mode-switch {
            position: relative;
            display: flex;
            gap: 4px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(42, 42, 43, 0.5);
        }

        .mode-switch-examples {
            position: absolute;
            left: 0;
            bottom: calc(100% + 10px);
            z-index: 70;
            width: min(360px, calc(100vw - 32px));
            display: grid;
            gap: 9px;
            border: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 10px;
            background: rgba(35, 34, 38, 0.98);
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
            color: rgba(238, 236, 242, 0.94);
            padding: 11px 12px;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(4px);
            transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
        }

        .mode-switch-examples::after {
            content: '';
            position: absolute;
            left: 24px;
            top: 100%;
            border: 6px solid transparent;
            border-top-color: rgba(35, 34, 38, 0.98);
        }

        .mode-switch-examples div {
            display: grid;
            gap: 3px;
        }

        .mode-switch-examples .mode-switch-examples-title {
            display: flex;
            align-items: center;
            gap: 7px;
            margin: -11px -12px 2px;
            border-bottom: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 10px 10px 0 0;
            background: linear-gradient(90deg, rgba(192, 193, 255, 0.13), rgba(192, 193, 255, 0.03));
            color: rgba(244, 243, 255, 0.98);
            padding: 10px 12px;
            font: 650 12px/1.2 'Inter', var(--font-main);
            letter-spacing: 0.02em;
        }

        .mode-switch-examples .mode-switch-examples-title .material-symbols-outlined {
            color: #c0c1ff;
            font-family: 'Material Symbols Outlined';
            font-size: 16px;
            font-weight: 400;
            line-height: 1;
        }

        .mode-switch-examples .mode-switch-examples-title span {
            color: inherit;
            font: inherit;
            letter-spacing: inherit;
        }

        .mode-switch-examples strong {
            color: #d7d8ff;
            font: 650 11px/1.2 'Inter', var(--font-main);
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .mode-switch-examples span {
            color: rgba(220, 218, 226, 0.84);
            font: 400 12px/1.45 'Inter', var(--font-main);
        }

        .mode-switch:hover .mode-switch-examples,
        .mode-switch:focus-within .mode-switch-examples {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mode-switch button,
        .language-pill {
            border: 0;
            min-height: 32px;
            border-radius: 999px;
            padding: 0 16px;
            color: var(--dashboard-muted);
            background: transparent;
            font: 500 14px/1 'Inter', var(--font-main);
            cursor: pointer;
            transition: color 0.18s ease, background 0.18s ease;
        }

        .mode-switch button.active,
        .mode-switch button:hover,
        .language-pill:hover {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.6);
        }

        .language-picker {
            position: relative;
        }

        .language-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid rgba(70, 69, 84, 0.16);
            background: rgba(42, 42, 43, 0.5);
            position: relative;
        }

        .source-language-static-pill {
            cursor: default;
            user-select: none;
        }

        .source-language-static-pill:hover {
            color: var(--dashboard-muted);
            background: rgba(42, 42, 43, 0.5);
        }

        .sentence-gen-language-static {
            min-height: 42px;
            display: flex;
            align-items: center;
            gap: 9px;
            border: 1px solid rgba(229, 226, 227, 0.16);
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.035);
            color: rgba(244, 243, 247, 0.86);
            padding: 0 12px;
            font: 500 13px/1 'Inter', var(--font-main);
        }

        .sentence-gen-language-static .material-symbols-outlined {
            color: rgba(192, 193, 255, 0.78);
            font-size: 18px;
        }

        .language-pill[aria-expanded="true"] {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.6);
            border-color: rgba(192, 193, 255, 0.35);
        }

        .language-menu {
            position: absolute;
            right: 0;
            bottom: calc(100% + 10px);
            z-index: 1200;
            width: 190px;
            display: none;
            grid-template-columns: 1fr;
            gap: 3px;
            padding: 8px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 10px;
            background: rgba(28, 27, 28, 0.98);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transform-origin: bottom right;
            animation: languageMenuIn 0.16s ease;
        }

        .language-picker.open .language-menu {
            display: grid;
        }

        .language-menu-header {
            display: grid;
            grid-template-columns: 22px minmax(0, 1fr);
            align-items: center;
            gap: 8px;
            margin: 0 2px 5px;
            padding: 4px 7px 10px;
            border-bottom: 1px solid rgba(192, 193, 255, 0.12);
            color: rgba(229, 226, 227, 0.9);
        }

        .language-menu-header > .material-symbols-outlined {
            color: #bfc0ff;
            font-size: 18px;
        }

        .language-menu-header > span:last-child {
            display: grid;
            gap: 3px;
        }

        .language-menu-header strong {
            font: 600 11px/1.2 'Inter', var(--font-main);
        }

        .language-menu-header small {
            color: rgba(199, 196, 215, 0.62);
            font: 400 10px/1.3 'Inter', var(--font-main);
        }

        .language-menu button {
            width: 100%;
            min-height: 34px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--dashboard-muted);
            padding: 0 10px;
            text-align: left;
            font: 500 14px/1 'Inter', var(--font-main);
            cursor: pointer;
            transition: color 0.16s ease, background 0.16s ease;
        }

        .language-menu button:hover,
        .language-menu button[aria-selected="true"] {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.72);
        }

        @keyframes languageMenuIn {
            from {
                opacity: 0;
                transform: translateY(4px) scale(0.98);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        .language-pill .material-symbols-outlined:first-child {
            color: var(--dashboard-primary);
            font-size: 20px;
        }

        .language-pill .material-symbols-outlined:last-child {
            font-size: 16px;
        }

        .ai-note {
            width: min(680px, calc(100% - 24px));
            margin: 2px auto 0;
            color: rgba(199, 196, 215, 0.6);
            text-align: center;
            font-size: 12px;
            line-height: 1.4;
            font-weight: 500;
        }

        .guest-example-card.guest-example-card-guided {
            animation: guestExampleCardGuide 1.35s cubic-bezier(0.22, 1, 0.36, 1);
        }

        @keyframes guestExampleCardGuide {
            0%, 100% {
                transform: translateY(0) scale(1);
            }
            32% {
                transform: translateY(-4px) scale(1.018);
                border-color: rgba(205, 206, 255, 0.72);
                box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 0 4px rgba(159, 161, 255, 0.1), 0 0 30px rgba(142, 144, 255, 0.14);
            }
            68% {
                transform: translateY(-1px) scale(1.006);
                border-color: rgba(192, 193, 255, 0.44);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .prompt-input.prompt-input-guided,
            .guest-example-card.guest-example-card-guided {
                animation: none;
            }
        }

        /* --- Workspace View --- */
        .workspace-view {
            position: fixed;
            inset: 0;
            z-index: 760;
            display: none;
            flex-direction: column;
            overflow: hidden;
            background: var(--dashboard-bg);
            color: var(--dashboard-text);
            font-family: 'Inter', var(--font-main);
        }

        body.workspace-open .app-topbar,
        body.workspace-open .project-rail,
        body.workspace-open .dashboard-main,
        body.workspace-open .hud-user-controls {
            display: none !important;
        }

        body.workspace-open .workspace-view {
            display: flex;
        }

        .workspace-header {
            position: relative;
            height: 57px;
            flex: 0 0 57px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 16px;
            background: var(--dashboard-bg);
            border-bottom: 1px solid var(--dashboard-outline);
            z-index: 20;
        }

        .workspace-header-left,
        .workspace-header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .workspace-account {
            position: relative;
            display: grid;
            place-items: center;
        }

        .workspace-title {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            min-width: 0;
            color: var(--dashboard-text);
            font-size: 14px;
            line-height: 1;
            font-weight: 500;
        }

        .workspace-title-name {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .workspace-header-btn,
        .workspace-mini-btn,
        .workspace-editor-toolbar button,
        .workspace-utility button {
            border: 0;
            background: transparent;
            color: var(--dashboard-muted);
            cursor: pointer;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }

        .workspace-header-actions .workspace-header-btn[data-tooltip] {
            position: relative;
        }

        .workspace-header-actions .workspace-header-btn[data-tooltip]::before,
        .workspace-header-actions .workspace-header-btn[data-tooltip]::after {
            position: absolute;
            left: 50%;
            z-index: 80;
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -3px);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }

        .workspace-header-actions .workspace-header-btn[data-tooltip]::before {
            content: '';
            top: calc(100% + 5px);
            border-right: 5px solid transparent;
            border-bottom: 5px solid rgba(35, 34, 38, 0.98);
            border-left: 5px solid transparent;
        }

        .workspace-header-actions .workspace-header-btn[data-tooltip]::after {
            content: attr(data-tooltip);
            top: calc(100% + 10px);
            width: max-content;
            max-width: 170px;
            border: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 7px;
            background: rgba(35, 34, 38, 0.98);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
            color: rgba(238, 236, 242, 0.94);
            padding: 7px 9px;
            font: 500 11px/1 var(--font-dashboard);
            white-space: nowrap;
        }

        .workspace-header-actions .workspace-header-btn[data-tooltip]:hover::before,
        .workspace-header-actions .workspace-header-btn[data-tooltip]:hover::after,
        .workspace-header-actions .workspace-header-btn[data-tooltip]:focus-visible::before,
        .workspace-header-actions .workspace-header-btn[data-tooltip]:focus-visible::after {
            opacity: 1;
            transform: translate(-50%, 0);
        }

        .workspace-header-btn {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            border-radius: 6px;
        }

        .workspace-header-btn .material-symbols-outlined {
            font-size: 20px;
        }

        .workspace-resize-connect-icon {
            width: 21px;
            height: 21px;
            overflow: visible;
            fill: none;
            stroke: currentColor;
            stroke-width: 1.55;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .workspace-resize-connect-frame {
            opacity: 0.72;
        }

        .workspace-resize-connect-handle {
            fill: currentColor;
            stroke: none;
        }

        .workspace-resize-connect-link {
            opacity: 0.84;
        }

        .workspace-resize-connect-node {
            fill: var(--dashboard-surface-highest, #222225);
            stroke-width: 1.7;
        }

        .workspace-resize-toggle[aria-pressed="true"] .workspace-resize-connect-frame,
        .workspace-resize-toggle[aria-pressed="true"] .workspace-resize-connect-link {
            opacity: 1;
        }

        .workspace-resize-toggle[aria-pressed="true"] .workspace-resize-connect-node {
            fill: rgba(192, 193, 255, 0.18);
        }

        .workspace-header-btn:hover,
        .workspace-mini-btn:hover,
        .workspace-editor-toolbar button:hover,
        .workspace-utility button:hover {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.58);
        }

        .workspace-save-vocabulary:disabled {
            cursor: wait;
            opacity: 0.62;
        }

        .workspace-header-actions .workspace-save-vocabulary {
            width: auto;
            min-width: 28px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 0 9px;
            border: 1px solid rgba(192, 193, 255, 0.24);
            background: rgba(192, 193, 255, 0.08);
            color: rgba(221, 222, 255, 0.9);
            white-space: nowrap;
        }

        .workspace-header-actions .workspace-save-vocabulary:hover {
            border-color: rgba(192, 193, 255, 0.48);
            background: rgba(192, 193, 255, 0.14);
            color: #f1f1ff;
        }

        .workspace-save-vocabulary-label {
            font-size: 11px;
            font-weight: 500;
            line-height: 1;
        }

        .vocab-batch-preview {
            max-height: min(300px, 42vh);
            margin-top: 14px;
            padding: 5px;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 5px;
            border: 1px solid rgba(192, 193, 255, 0.13);
            border-radius: 9px;
            background: rgba(12, 12, 15, 0.32);
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.28) transparent;
        }

        .vocab-batch-preview-item {
            min-width: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 7px 8px;
            border-radius: 6px;
            background: rgba(192, 193, 255, 0.055);
            color: rgba(242, 240, 246, 0.92);
            text-align: left;
        }

        .vocab-batch-preview-item > span {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 12px;
        }

        .vocab-batch-preview-item > small {
            flex: 0 0 auto;
            color: rgba(199, 196, 215, 0.62);
            font-size: 9px;
            text-transform: uppercase;
        }

        .workspace-save-vocabulary.is-busy .material-symbols-outlined {
            animation: spin 0.9s linear infinite;
        }

        @media (max-width: 620px) {
            .workspace-header-actions .workspace-save-vocabulary {
                width: 28px;
                padding: 0;
                justify-content: center;
            }

            .workspace-save-vocabulary-label {
                display: none;
            }
        }

        .workspace-assistant-toggle[aria-pressed="true"],
        .workspace-output-mode-toggle[aria-pressed="true"],
        .workspace-resize-toggle[aria-pressed="true"] {
            color: #d7d8ff;
            background: rgba(192, 193, 255, 0.14);
            box-shadow: inset 0 0 0 1px rgba(192, 193, 255, 0.2);
        }

        .workspace-avatar {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            margin-left: 4px;
            border: 1px solid var(--dashboard-outline);
            border-radius: 999px;
            background: var(--dashboard-surface-highest);
            color: var(--dashboard-text);
            font-family: var(--font-dashboard);
            font-size: 14px;
            font-weight: 700;
            line-height: 1;
            cursor: pointer;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
        }

        .workspace-avatar:hover,
        .workspace-account.open .workspace-avatar {
            color: var(--primary-color);
            border-color: rgba(63, 198, 191, 0.45);
            background: rgba(53, 52, 54, 0.72);
        }

        .workspace-user-dropdown {
            top: calc(100% + 10px);
            right: 0;
            z-index: 40;
        }

        .workspace-account.logged-in:hover .workspace-user-dropdown,
        .workspace-account.open .workspace-user-dropdown {
            display: flex;
            opacity: 1;
            transform: translateY(0);
            animation: dropdownFadeIn 0.2s forwards;
        }

        .workspace-shell {
            --workspace-notes-width: 320px;
            position: relative;
            flex: 1;
            min-height: 0;
            display: grid;
            grid-template-columns: var(--workspace-notes-width) minmax(0, 1fr);
            overflow: hidden;
            background:
                radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
                var(--dashboard-bg);
            background-size: 20px 20px;
        }

        .workspace-shell.notes-collapsed {
            grid-template-columns: 48px minmax(0, 1fr);
        }

        .workspace-notes {
            position: relative;
            grid-column: 1;
            grid-row: 1;
            width: auto;
            height: 100%;
            z-index: 4;
            display: flex;
            flex-direction: column;
            min-width: 0;
            margin: 0;
            overflow: hidden;
            border: 0;
            border-right: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 0;
            background:
                linear-gradient(180deg, rgba(38, 37, 40, 0.94), rgba(25, 24, 26, 0.92)),
                rgba(28, 27, 28, 0.9);
            box-shadow: 8px 0 28px rgba(0, 0, 0, 0.18), inset -1px 0 0 rgba(255, 255, 255, 0.025);
            transform: translateX(0) scale(1);
            transform-origin: top left;
            opacity: 1;
            transition:
                width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                height 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                margin 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-radius 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
                opacity 0.2s ease;
        }

        .workspace-shell.notes-collapsed .workspace-notes {
            width: 48px;
            height: 100%;
            border-right: 1px solid rgba(82, 81, 96, 0.42);
            border-radius: 0;
            background: rgba(26, 25, 27, 0.94);
            overflow: hidden;
            box-shadow: none;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            transform: none;
            opacity: 1;
            pointer-events: auto;
        }

        .workspace-shell.notes-collapsed .workspace-notes:hover {
            background: rgba(26, 25, 27, 0.94);
            box-shadow: none;
            opacity: 1;
        }

        .workspace-shell.notes-pinned .workspace-notes {
            border-color: rgba(192, 193, 255, 0.48);
        }

        .workspace-notes-scroll,
        .workspace-quick-note {
            transition: opacity 0.16s ease, transform 0.22s ease, visibility 0s linear 0s;
        }

        .workspace-shell.notes-collapsed .workspace-notes-scroll,
        .workspace-shell.notes-collapsed .workspace-quick-note,
        .workspace-shell.notes-collapsing .workspace-notes-scroll,
        .workspace-shell.notes-collapsing .workspace-quick-note {
            opacity: 0;
            visibility: hidden;
            transform: translateY(4px);
            pointer-events: none;
            transition: opacity 0.1s ease, transform 0.16s ease, visibility 0s linear 0.16s;
        }

        .workspace-shell.notes-expanding .workspace-notes-scroll {
            opacity: 1;
            visibility: visible;
            transform: none;
            pointer-events: auto;
        }

        .workspace-shell.notes-expanding .workspace-quick-note {
            opacity: 1;
            visibility: visible;
            transform: none;
            pointer-events: auto;
        }

        .workspace-shell.notes-collapsed .workspace-notes-scroll,
        .workspace-shell.notes-collapsed .workspace-quick-note,
        .workspace-shell.notes-collapsing .workspace-notes-scroll,
        .workspace-shell.notes-collapsing .workspace-quick-note {
            display: none;
        }

        .workspace-shell.notes-collapsed .workspace-panel-toolbar {
            position: absolute;
            inset: 8px 6px auto;
            justify-content: center;
            padding: 0;
            border-bottom: 0;
            width: auto;
            height: auto;
            border-radius: 8px;
            background: transparent;
            box-shadow: none;
            pointer-events: auto;
        }

        .workspace-shell.notes-collapsed .workspace-panel-actions {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }

        .workspace-shell.notes-collapsed .workspace-notes .panel-collapse-toggle {
            position: absolute;
            inset: 0;
            width: 36px;
            height: 36px;
            border: 1px solid rgba(112, 110, 130, 0.34);
            border-radius: 8px;
            background: rgba(31, 30, 33, 0.86) !important;
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
            color: rgba(211, 209, 224, 0.76);
        }

        .workspace-shell.notes-collapsed .workspace-notes .panel-collapse-toggle:hover {
            border-color: rgba(192, 193, 255, 0.38);
            background: rgba(43, 42, 47, 0.94) !important;
            color: #c0c1ff;
        }

        .workspace-shell.notes-collapsed .workspace-notes .panel-collapse-toggle:focus-visible {
            border-color: rgba(192, 193, 255, 0.48);
            outline: 2px solid rgba(192, 193, 255, 0.55);
            outline-offset: 2px;
            background: rgba(43, 42, 47, 0.94) !important;
        }

        .workspace-shell.notes-collapsed .workspace-notes .panel-collapse-toggle .material-symbols-outlined {
            display: block;
            width: 20px;
            height: 20px;
            line-height: 20px;
            text-align: center;
        }

        .workspace-notes-resizer {
            position: absolute;
            top: 0;
            right: -4px;
            bottom: 0;
            z-index: 10;
            width: 8px;
            cursor: col-resize;
            touch-action: none;
        }

        .workspace-notes-resizer::after {
            content: "";
            position: absolute;
            top: 0;
            right: 3px;
            bottom: 0;
            width: 1px;
            background: transparent;
            transition: background 0.16s ease;
        }

        .workspace-notes-resizer:hover::after,
        .workspace-notes-resizer.is-resizing::after {
            background: rgba(192, 193, 255, 0.62);
        }

        .workspace-shell.notes-collapsed .workspace-notes-resizer {
            display: none;
        }

        .workspace-shell.notes-collapsed .workspace-panel-title,
        .workspace-shell.notes-collapsed .workspace-pin-btn {
            display: none;
        }

        .workspace-shell.notes-collapsed .workspace-panel-actions > :not(.panel-collapse-toggle),
        .workspace-shell.notes-collapsing .workspace-panel-actions > :not(.panel-collapse-toggle) {
            display: none;
        }

        .workspace-shell.notes-collapsed .workspace-notes .panel-collapse-toggle .material-symbols-outlined {
            transform: rotate(180deg);
        }

        .workspace-panel-toolbar {
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 0 10px 0 14px;
            border-bottom: 1px solid rgba(199, 196, 215, 0.1);
            background:
                linear-gradient(90deg, rgba(192, 193, 255, 0.14), rgba(78, 222, 163, 0.055), rgba(28, 27, 28, 0.16)),
                rgba(32, 31, 32, 0.76);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        .workspace-panel-toolbar .panel-collapse-toggle {
            transition: opacity 0.14s ease, background 0.18s ease, color 0.18s ease;
        }

        .workspace-panel-title,
        .workspace-panel-actions {
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .workspace-panel-title {
            gap: 8px;
            color: var(--dashboard-text);
            font-size: 13px;
            font-weight: 700;
            line-height: 1;
        }

        .workspace-panel-title .material-symbols-outlined {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(192, 193, 255, 0.22);
            border-radius: 8px;
            background: rgba(192, 193, 255, 0.1);
            color: rgba(192, 193, 255, 0.95);
            font-size: 19px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
        }

        .workspace-panel-actions {
            gap: 4px;
            flex: 0 0 auto;
        }

        .workspace-mini-btn {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            border: 1px solid transparent;
            border-radius: 7px;
        }

        .workspace-mini-btn .material-symbols-outlined {
            font-size: 18px;
        }

        .panel-collapse-toggle {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            padding: 0;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: var(--dashboard-muted);
            cursor: pointer;
            transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
        }

        .panel-collapse-toggle .material-symbols-outlined {
            font-size: 20px;
            line-height: 1;
            transition: transform 0.2s ease;
        }

        .panel-collapse-toggle:hover,
        .panel-collapse-toggle:focus-visible {
            color: var(--dashboard-text);
            border-color: rgba(192, 193, 255, 0.18);
            background: rgba(53, 52, 54, 0.58);
            outline: none;
        }

        .workspace-pin-btn[aria-pressed="true"] {
            color: var(--dashboard-primary);
            border-color: rgba(192, 193, 255, 0.36);
            background: rgba(192, 193, 255, 0.12);
        }

        .workspace-pin-btn[aria-pressed="true"] .material-symbols-outlined {
            font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 20;
            transform: rotate(-28deg);
        }

        .vocab-review-launch,
        .vocab-library-launch {
            margin-top: 8px;
        }

        .tts-settings-modal {
            z-index: 5600;
            align-items: center;
            justify-content: center;
            padding: 18px;
        }

        .tts-settings-modal.active {
            display: flex;
        }

        .tts-settings-shell {
            width: min(680px, calc(100vw - 36px));
            max-height: min(760px, calc(100vh - 36px));
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(31, 31, 36, 0.99), rgba(17, 18, 21, 0.99));
            color: var(--dashboard-text);
            box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
        }

        .tts-settings-header {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 13px;
            padding: 18px 20px;
            border-bottom: 1px solid rgba(229, 226, 227, 0.09);
        }

        .tts-settings-header h2,
        .tts-settings-header p {
            margin: 0;
        }

        .tts-settings-header h2 {
            font-size: 1rem;
            font-weight: 700;
            color: rgba(245, 243, 255, 0.96);
        }

        .tts-settings-header p {
            margin-top: 4px;
            font-size: 0.77rem;
            line-height: 1.4;
            color: rgba(229, 226, 227, 0.58);
        }

        .tts-settings-icon,
        .tts-settings-close {
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            border-radius: 10px;
        }

        .tts-settings-icon {
            color: #c8c8ff;
            background: rgba(192, 193, 255, 0.12);
            box-shadow: inset 0 0 0 1px rgba(192, 193, 255, 0.16);
        }

        .tts-settings-close {
            padding: 0;
            border: 0;
            background: transparent;
            color: rgba(229, 226, 227, 0.62);
            cursor: pointer;
        }

        .tts-settings-close:hover {
            color: #f5f3ff;
            background: rgba(229, 226, 227, 0.08);
        }

        .tts-settings-body {
            display: grid;
            gap: 10px;
            padding: 16px 20px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.32) transparent;
        }

        .tts-settings-voice-list {
            display: grid;
            gap: 10px;
        }

        .tts-hover-toggle {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 16px;
            padding: 12px 13px;
            border: 1px solid rgba(192, 193, 255, 0.16);
            border-radius: 10px;
            background: rgba(192, 193, 255, 0.055);
            cursor: pointer;
        }

        .tts-hover-toggle-copy {
            display: grid;
            gap: 3px;
        }

        .tts-hover-toggle-copy strong {
            font-size: 0.83rem;
            font-weight: 600;
            color: rgba(245, 243, 255, 0.92);
        }

        .tts-hover-toggle-copy small {
            font-size: 0.72rem;
            line-height: 1.4;
            color: rgba(229, 226, 227, 0.56);
        }

        .tts-hover-toggle input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .tts-hover-switch {
            position: relative;
            width: 42px;
            height: 23px;
            border-radius: 999px;
            background: rgba(229, 226, 227, 0.14);
            box-shadow: inset 0 0 0 1px rgba(229, 226, 227, 0.1);
            transition: background 0.16s ease, box-shadow 0.16s ease;
        }

        .tts-hover-switch::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 17px;
            height: 17px;
            border-radius: 50%;
            background: rgba(245, 243, 255, 0.82);
            box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
            transition: transform 0.16s ease, background 0.16s ease;
        }

        .tts-hover-toggle input:checked + .tts-hover-switch {
            background: rgba(104, 205, 187, 0.5);
            box-shadow: inset 0 0 0 1px rgba(104, 225, 202, 0.45), 0 0 12px rgba(63, 198, 191, 0.12);
        }

        .tts-hover-toggle input:checked + .tts-hover-switch::after {
            transform: translateX(19px);
            background: #eafffb;
        }

        .tts-hover-toggle input:focus-visible + .tts-hover-switch {
            outline: 2px solid rgba(192, 193, 255, 0.52);
            outline-offset: 2px;
        }

        .tts-speed-control {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(190px, 0.65fr);
            align-items: center;
            gap: 16px;
            padding: 12px 13px;
            border: 1px solid rgba(229, 226, 227, 0.09);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.025);
        }

        .tts-speed-copy {
            display: grid;
            gap: 3px;
        }

        .tts-speed-copy strong {
            color: rgba(245, 243, 255, 0.92);
            font-size: 0.83rem;
            font-weight: 600;
        }

        .tts-speed-copy small {
            color: rgba(229, 226, 227, 0.56);
            font-size: 0.72rem;
            line-height: 1.4;
        }

        .tts-speed-input-wrap {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 48px;
            align-items: center;
            gap: 10px;
        }

        .tts-speed-input-wrap input[type="range"] {
            width: 100%;
            accent-color: #8f91ff;
            cursor: pointer;
        }

        .tts-speed-input-wrap output {
            min-width: 48px;
            padding: 5px 6px;
            border-radius: 6px;
            background: rgba(192, 193, 255, 0.09);
            color: rgba(226, 226, 255, 0.9);
            font: 600 0.72rem/1 var(--font-mono-ui);
            text-align: center;
        }

        .tts-voice-row {
            display: grid;
            grid-template-columns: minmax(118px, 0.38fr) minmax(0, 1fr);
            align-items: center;
            gap: 14px;
            min-height: 54px;
            padding: 9px 11px;
            border: 1px solid rgba(229, 226, 227, 0.08);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.025);
        }

        .tts-voice-language {
            display: flex;
            align-items: center;
            gap: 9px;
            min-width: 0;
            font-size: 0.84rem;
            color: rgba(245, 243, 255, 0.9);
        }

        .tts-voice-language-code {
            min-width: 30px;
            padding: 4px 5px;
            border-radius: 6px;
            background: rgba(192, 193, 255, 0.1);
            color: rgba(211, 212, 255, 0.88);
            font-size: 0.64rem;
            line-height: 1;
            letter-spacing: 0.08em;
            text-align: center;
        }

        .tts-voice-select {
            width: 100%;
            min-width: 0;
            height: 38px;
            padding: 0 36px 0 11px;
            border: 1px solid rgba(192, 193, 255, 0.16);
            border-radius: 8px;
            outline: none;
            background: #19191d;
            color: rgba(245, 243, 255, 0.88);
            font: inherit;
            font-size: 0.78rem;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
        }

        .tts-voice-controls {
            position: relative;
            display: grid;
            grid-template-columns: minmax(0, 1fr) 38px;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .tts-voice-controls::after {
            content: 'expand_more';
            position: absolute;
            top: 50%;
            right: 56px;
            z-index: 1;
            color: rgba(229, 226, 227, 0.5);
            font: 18px/1 'Material Symbols Outlined';
            transform: translateY(-50%);
            pointer-events: none;
        }

        .tts-voice-preview {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 8px;
            background: rgba(192, 193, 255, 0.08);
            color: rgba(220, 221, 255, 0.9);
            cursor: pointer;
            transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
        }

        .tts-voice-preview:hover {
            color: #fff;
            border-color: rgba(192, 193, 255, 0.42);
            background: rgba(192, 193, 255, 0.15);
            transform: translateY(-1px);
        }

        .tts-voice-preview:focus-visible {
            outline: 2px solid rgba(192, 193, 255, 0.52);
            outline-offset: 2px;
        }

        .tts-voice-preview .material-symbols-outlined {
            font-size: 20px;
        }

        .tts-voice-select:focus-visible {
            border-color: rgba(192, 193, 255, 0.48);
            box-shadow: 0 0 0 2px rgba(192, 193, 255, 0.1);
        }

        .tts-settings-footer {
            display: flex;
            justify-content: flex-end;
            gap: 9px;
            padding: 14px 20px 18px;
            border-top: 1px solid rgba(229, 226, 227, 0.08);
        }

        .tts-settings-cancel,
        .tts-settings-save {
            min-height: 38px;
            padding: 0 16px;
            border-radius: 9px;
            font: inherit;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
        }

        .tts-settings-cancel {
            border: 1px solid rgba(229, 226, 227, 0.12);
            background: rgba(255, 255, 255, 0.025);
            color: rgba(229, 226, 227, 0.72);
        }

        .tts-settings-save {
            border: 1px solid rgba(192, 193, 255, 0.42);
            background: linear-gradient(135deg, rgba(139, 140, 245, 0.9), rgba(103, 104, 205, 0.9));
            color: #fff;
        }

        @media (max-width: 620px) {
            .tts-voice-row {
                grid-template-columns: 1fr;
                gap: 8px;
            }
            .tts-speed-control {
                grid-template-columns: 1fr;
                gap: 10px;
            }
        }

        .vocab-review-modal,
        .vocab-library-modal {
            z-index: 5200;
            align-items: center;
            justify-content: center;
            padding: 18px;
        }

        .vocab-review-modal.active,
        .vocab-library-modal.active {
            display: flex;
        }

        .vocab-review-shell,
        .vocab-library-shell {
            width: min(780px, calc(100vw - 36px));
            max-height: min(760px, calc(100vh - 36px));
            display: flex;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 10px;
            background: linear-gradient(180deg, rgba(31, 31, 35, 0.98), rgba(17, 18, 21, 0.98));
            color: var(--dashboard-text);
            box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
        }

        .vocab-review-shell {
            width: min(980px, calc(100vw - 36px));
            height: min(720px, calc(100vh - 36px));
            min-height: min(720px, calc(100vh - 36px));
            max-height: min(720px, calc(100vh - 36px));
        }

        .vocab-library-shell {
            width: min(1060px, calc(100vw - 36px));
            height: min(85vh, calc(100vh - 36px));
            max-height: min(85vh, calc(100vh - 36px));
            transition: width 0.18s ease, height 0.18s ease, max-height 0.18s ease, border-radius 0.18s ease;
        }

        .vocab-library-modal.is-fullscreen {
            padding: 0;
        }

        .vocab-library-modal.is-fullscreen .vocab-library-shell {
            width: 100vw;
            height: 100vh;
            max-height: 100vh;
            border-width: 0;
            border-radius: 0;
        }

        .vocab-review-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
            padding: 18px 20px;
            border-bottom: 1px solid rgba(229, 226, 227, 0.08);
        }

        .vocab-header-icon {
            width: 36px;
            height: 36px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(78, 222, 163, 0.24);
            border-radius: 8px;
            background: rgba(78, 222, 163, 0.08);
            color: rgba(78, 222, 163, 0.96);
        }

        .vocab-header-icon .material-symbols-outlined {
            font-size: 21px;
        }

        .vocab-review-header > div {
            min-width: 0;
            flex: 1;
        }

        .vocab-review-header h2 {
            margin: 0;
            font-size: 18px;
            letter-spacing: 0;
        }

        .vocab-review-header p {
            margin: 5px 0 0;
            color: var(--dashboard-muted);
            font-size: 13px;
        }

        .vocab-review-icon-btn {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(229, 226, 227, 0.1);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            color: var(--dashboard-muted);
            cursor: pointer;
        }

        .vocab-review-icon-btn:hover,
        .vocab-review-icon-btn.is-active {
            color: rgba(245, 243, 255, 0.96);
            border-color: rgba(78, 222, 163, 0.32);
            background: rgba(78, 222, 163, 0.1);
        }

        .vocab-review-icon-btn .material-symbols-outlined {
            font-size: 20px;
        }

        .vocab-review-setup {
            flex: 1 1 auto;
            min-height: 0;
            display: grid;
            grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr);
            gap: 14px;
            width: 100%;
            box-sizing: border-box;
            padding: 18px 20px 20px;
            overflow: auto;
        }

        .vocab-review-section {
            display: grid;
            gap: 12px;
            min-width: 0;
            padding: 12px;
            border: 1px solid rgba(192, 193, 255, 0.12);
            border-radius: 10px;
            background: rgba(19, 19, 20, 0.34);
        }

        .vocab-review-section h3 {
            margin: 0;
            color: rgba(245, 243, 255, 0.88);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0;
            text-transform: uppercase;
        }

        .vocab-review-section-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
        }

        .vocab-review-section-mode {
            grid-row: span 2;
            border-color: rgba(78, 222, 163, 0.22);
            background:
                linear-gradient(180deg, rgba(78, 222, 163, 0.07), rgba(19, 19, 20, 0.34)),
                rgba(19, 19, 20, 0.34);
        }

        .vocab-review-section-mode .vocab-review-section-grid,
        .vocab-review-section-voice .vocab-review-section-grid {
            grid-template-columns: 1fr;
        }

        .vocab-review-section-voice {
            grid-column: 2;
        }

        .vocab-review-mode-field .vocab-custom-select .vocab-custom-select-btn {
            height: 44px;
            border-color: rgba(78, 222, 163, 0.32);
            background: rgba(78, 222, 163, 0.08);
            font-weight: 800;
        }

        .vocab-review-field {
            display: grid;
            gap: 6px;
            min-width: 0;
        }

        .vocab-review-field label {
            color: var(--dashboard-muted);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .vocab-review-field input,
        .vocab-library-filters > input {
            height: 36px;
            min-width: 0;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 8px;
            background: rgba(10, 11, 13, 0.68);
            color: var(--dashboard-text);
            padding: 0 10px;
            font-size: 13px;
        }

        #vocabLibrarySearch:focus,
        #vocabLibrarySearch:focus-visible {
            outline: none;
            border-color: rgba(192, 193, 255, 0.18);
            background: rgba(10, 11, 13, 0.68);
            box-shadow: none;
        }

        #vocabReviewSetup .vocab-review-field input:focus,
        #vocabReviewSetup .vocab-custom-select .vocab-custom-select-btn:focus-visible {
            outline: none;
            border-color: rgba(78, 222, 163, 0.34);
            background: rgba(18, 20, 20, 0.82);
            box-shadow: none;
        }

        .vocab-native-select {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .vocab-custom-select {
            position: relative;
            min-width: 0;
        }

        .vocab-project-picker {
            position: relative;
            min-width: 0;
        }

        .vocab-project-picker-trigger {
            width: 100%;
            height: 36px;
            min-width: 0;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 7px;
            padding: 0 9px;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 8px;
            background: rgba(10, 11, 13, 0.68);
            color: var(--dashboard-text);
            font: 500 12px/1 var(--font-dashboard);
            text-align: left;
            cursor: pointer;
        }

        .vocab-project-picker-trigger:hover,
        .vocab-project-picker.is-open .vocab-project-picker-trigger {
            border-color: rgba(78, 222, 163, 0.34);
            background: rgba(18, 20, 20, 0.82);
        }

        .vocab-project-picker-trigger .material-symbols-outlined {
            color: rgba(192, 193, 255, 0.76);
            font-size: 17px;
        }

        .vocab-project-picker-label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .vocab-project-picker-menu {
            position: fixed;
            top: var(--vocab-project-menu-top, 0);
            left: var(--vocab-project-menu-left, 0);
            width: var(--vocab-project-menu-width, 300px);
            display: none;
            gap: 8px;
            padding: 8px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 10px;
            background: rgba(15, 16, 19, 0.985);
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.52);
            z-index: 10010;
        }

        .vocab-project-picker.is-open .vocab-project-picker-menu {
            display: grid;
        }

        .vocab-project-picker-search {
            height: 34px;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            align-items: center;
            gap: 7px;
            padding: 0 9px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.035);
        }

        .vocab-project-picker-search .material-symbols-outlined {
            color: rgba(229, 226, 227, 0.42);
            font-size: 16px;
        }

        .vocab-project-picker-search input {
            width: 100%;
            min-width: 0;
            height: 30px;
            padding: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--dashboard-text);
            font: 400 12px/1 var(--font-dashboard);
        }

        .vocab-project-picker-options {
            display: grid;
            gap: 4px;
            max-height: min(320px, 42vh);
            overflow: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.26) transparent;
        }

        .vocab-project-option {
            width: 100%;
            min-width: 0;
            display: grid;
            grid-template-columns: auto minmax(0, 1fr) auto;
            align-items: center;
            gap: 9px;
            padding: 8px 9px;
            border: 1px solid transparent;
            border-radius: 8px;
            background: transparent;
            color: rgba(229, 226, 227, 0.82);
            font: 400 12px/1.2 var(--font-dashboard);
            text-align: left;
            cursor: pointer;
        }

        .vocab-project-option:hover,
        .vocab-project-option[aria-selected="true"] {
            border-color: rgba(78, 222, 163, 0.2);
            background: rgba(78, 222, 163, 0.08);
        }

        .vocab-project-option > .material-symbols-outlined {
            color: rgba(192, 193, 255, 0.72);
            font-size: 18px;
        }

        .vocab-project-option-copy {
            min-width: 0;
            display: grid;
            gap: 3px;
        }

        .vocab-project-option-copy strong {
            overflow: hidden;
            color: rgba(245, 243, 255, 0.94);
            font-size: 12px;
            font-weight: 600;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .vocab-project-option-copy small {
            color: rgba(229, 226, 227, 0.46);
            font-size: 10px;
        }

        .vocab-project-option-badge {
            padding: 3px 6px;
            border-radius: 999px;
            background: rgba(78, 222, 163, 0.1);
            color: rgba(78, 222, 163, 0.92);
            font-size: 9px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .vocab-project-picker-empty {
            margin: 0;
            padding: 14px 10px;
            color: var(--dashboard-muted);
            font-size: 12px;
            text-align: center;
        }

        .vocab-custom-select .vocab-custom-select-btn {
            width: 100%;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            min-width: 0;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 8px;
            background: rgba(10, 11, 13, 0.68);
            color: var(--dashboard-text);
            padding: 0 9px 0 10px;
            font-size: 13px;
            text-align: left;
            cursor: pointer;
        }

        .vocab-custom-select .vocab-custom-select-btn:hover,
        .vocab-custom-select.open .vocab-custom-select-btn {
            border-color: rgba(78, 222, 163, 0.34);
            background: rgba(18, 20, 20, 0.82);
        }

        .vocab-custom-select-label {
            min-width: 0;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .vocab-custom-select-btn .material-symbols-outlined {
            flex: 0 0 auto;
            color: var(--dashboard-muted);
            font-size: 18px;
            transition: transform 0.16s ease;
        }

        .vocab-custom-select.open .vocab-custom-select-btn .material-symbols-outlined {
            transform: rotate(180deg);
        }

        .vocab-custom-select-menu {
            position: absolute;
            top: calc(100% + 5px);
            left: 0;
            right: 0;
            z-index: 5400;
            display: none;
            max-height: 220px;
            overflow: auto;
            padding: 5px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 8px;
            background: rgba(15, 16, 19, 0.98);
            box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
        }

        .vocab-custom-select.open .vocab-custom-select-menu {
            display: grid;
            gap: 3px;
        }

        .vocab-custom-select-menu.is-portaled {
            position: fixed;
            top: var(--vocab-menu-top, 0);
            left: var(--vocab-menu-left, 0);
            right: auto;
            width: var(--vocab-menu-width, 220px);
            max-height: var(--vocab-menu-max-height, 220px);
            z-index: 10002 !important;
        }

        .vocab-custom-select-menu.is-open {
            display: grid;
            gap: 3px;
        }

        .vocab-custom-select .vocab-custom-option,
        .vocab-custom-select-menu .vocab-custom-option {
            min-height: 30px;
            width: 100%;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(229, 226, 227, 0.82);
            padding: 0 8px;
            font-size: 13px;
            text-align: left;
            cursor: pointer;
        }

        .vocab-custom-select .vocab-custom-option:hover,
        .vocab-custom-select .vocab-custom-option[aria-selected="true"],
        .vocab-custom-select-menu .vocab-custom-option:hover,
        .vocab-custom-select-menu .vocab-custom-option[aria-selected="true"] {
            background: rgba(78, 222, 163, 0.1);
            color: rgba(245, 243, 255, 0.96);
        }

        .vocab-review-check {
            align-self: end;
            min-height: 36px;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--dashboard-text);
            font-size: 13px;
        }

        .vocab-review-start {
            grid-column: 1 / -1;
            align-self: end;
            min-height: 36px;
            border: 0;
            border-radius: 8px;
            background: linear-gradient(135deg, rgba(78, 222, 163, 0.95), rgba(192, 193, 255, 0.88));
            color: #101114;
            font-weight: 800;
            cursor: pointer;
        }

        .vocab-review-session {
            flex: 1 1 auto;
            min-height: 0;
            display: grid;
            gap: 14px;
            padding: 18px 20px 20px;
            overflow: auto;
        }

        .vocab-review-session.hidden,
        .vocab-review-setup.hidden {
            display: none;
        }

        .vocab-review-progress {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            color: var(--dashboard-muted);
            font-size: 12px;
            font-weight: 700;
        }

        #vocabReviewMeta {
            margin-left: auto;
        }

        .vocab-review-navigation {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .vocab-review-navigation button {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 7px;
            background: rgba(255, 255, 255, 0.035);
            color: rgba(229, 226, 227, 0.72);
            cursor: pointer;
        }

        .vocab-review-navigation button:hover:not(:disabled) {
            border-color: rgba(78, 222, 163, 0.3);
            background: rgba(78, 222, 163, 0.08);
            color: rgba(245, 243, 255, 0.96);
        }

        .vocab-review-navigation button:disabled {
            opacity: 0.3;
            cursor: default;
        }

        .vocab-review-navigation .material-symbols-outlined {
            font-size: 18px;
        }

        .vocab-card {
            position: relative;
            min-height: 320px;
            display: grid;
            align-content: center;
            justify-items: center;
            gap: 10px;
            padding: 24px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 10px;
            background:
                linear-gradient(135deg, rgba(192, 193, 255, 0.08), rgba(78, 222, 163, 0.045)),
                rgba(19, 19, 20, 0.58);
        }

        .vocab-card-toolbar {
            position: absolute;
            top: 14px;
            right: 14px;
            display: flex;
            gap: 6px;
        }

        .vocab-card-kicker {
            margin: 0;
            color: rgba(192, 193, 255, 0.88);
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .vocab-card h3 {
            max-width: 100%;
            margin: 0;
            color: rgba(245, 243, 255, 0.98);
            font-size: 34px;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .vocab-card-phonetic {
            min-height: 20px;
            margin: 0;
            color: var(--dashboard-muted);
            font-size: 14px;
        }

        .vocab-card-context {
            max-width: min(100%, 560px);
            min-height: 20px;
            margin: 0;
            color: rgba(229, 226, 227, 0.66);
            font-size: 13px;
            line-height: 1.45;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .vocab-card-answer {
            display: grid;
            gap: 8px;
            width: min(100%, 560px);
            margin-top: 8px;
            padding: 14px;
            border: 1px solid rgba(229, 226, 227, 0.08);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.035);
        }

        .vocab-card-answer.is-hidden {
            filter: blur(7px);
            user-select: none;
            pointer-events: none;
        }

        .vocab-card-answer p {
            margin: 0;
            color: rgba(229, 226, 227, 0.86);
            font-size: 14px;
            line-height: 1.5;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .vocab-reveal-btn {
            min-height: 34px;
            margin-top: 4px;
            padding: 0 14px;
            border: 1px solid rgba(192, 193, 255, 0.22);
            border-radius: 8px;
            background: rgba(192, 193, 255, 0.08);
            color: rgba(245, 243, 255, 0.92);
            font-weight: 400;
            cursor: pointer;
        }

        .vocab-rating-row {
            display: flex;
            justify-content: center;
            gap: 4px;
            min-height: 28px;
        }

        .vocab-rating-row button {
            width: 26px;
            height: 26px;
            border: 0;
            background: transparent;
            color: rgba(229, 226, 227, 0.36);
            cursor: pointer;
        }

        .vocab-rating-row button.is-active,
        .vocab-rating-row button:hover {
            color: #facc15;
        }

        .vocab-review-grades {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
        }

        .vocab-review-grades button {
            min-height: 38px;
            border: 1px solid rgba(192, 193, 255, 0.16);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.04);
            color: var(--dashboard-text);
            font-weight: 500;
            cursor: pointer;
        }

        .vocab-review-grades button:hover {
            border-color: rgba(78, 222, 163, 0.36);
            background: rgba(78, 222, 163, 0.1);
        }

        .vocab-library-filters {
            display: grid;
            grid-template-columns: minmax(165px, 1fr) repeat(6, minmax(94px, 0.54fr)) auto;
            gap: 8px;
            padding: 14px 16px;
            border-bottom: 1px solid rgba(229, 226, 227, 0.08);
        }

        .vocab-library-status-tabs {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 8px 16px;
            overflow-x: auto;
            border-bottom: 1px solid rgba(229, 226, 227, 0.08);
            background: rgba(8, 9, 11, 0.2);
            scrollbar-width: none;
        }

        .vocab-library-status-tabs::-webkit-scrollbar {
            display: none;
        }

        .vocab-library-status-tabs button {
            min-height: 29px;
            flex: 0 0 auto;
            padding: 0 11px;
            border: 1px solid transparent;
            border-radius: 999px;
            background: transparent;
            color: rgba(229, 226, 227, 0.56);
            font: 550 11px/1 var(--font-dashboard);
            cursor: pointer;
            transition: color 0.14s ease, border-color 0.14s ease, background 0.14s ease;
        }

        .vocab-library-status-tabs button:hover {
            color: rgba(245, 243, 255, 0.9);
            background: rgba(192, 193, 255, 0.06);
        }

        .vocab-library-status-tabs button.is-active {
            border-color: rgba(78, 222, 163, 0.25);
            background: rgba(78, 222, 163, 0.1);
            color: rgba(78, 222, 163, 0.96);
        }

        .vocab-library-filters > button {
            min-height: 36px;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 8px;
            background: rgba(192, 193, 255, 0.08);
            color: var(--dashboard-text);
            font-weight: 800;
            cursor: pointer;
        }

        .vocab-library-filters .vocab-custom-select .vocab-custom-select-btn,
        .vocab-library-filters .vocab-custom-select .vocab-custom-select-label {
            font-weight: 400;
        }

        .vocab-library-filters .vocab-library-refresh-btn {
            position: relative;
            width: 36px;
            min-width: 36px;
            display: grid;
            place-items: center;
            padding: 0;
        }

        .vocab-library-refresh-btn .material-symbols-outlined {
            font-size: 20px;
        }

        .vocab-library-refresh-btn::before,
        .vocab-library-refresh-btn::after {
            position: absolute;
            opacity: 0;
            pointer-events: none;
            transform: translateY(6px);
            transition: opacity 0.14s ease, transform 0.14s ease;
        }

        .vocab-library-refresh-btn::before {
            content: attr(data-tooltip);
            top: calc(100% + 9px);
            right: 0;
            width: max-content;
            max-width: 180px;
            padding: 6px 8px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 7px;
            background: rgba(15, 16, 19, 0.98);
            color: var(--dashboard-text);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
            font-weight: 400;
            font-size: 12px;
            line-height: 1.2;
            white-space: nowrap;
            z-index: 10003;
        }

        .vocab-library-refresh-btn::after {
            content: "";
            top: calc(100% + 4px);
            right: 13px;
            border: 5px solid transparent;
            border-bottom-color: rgba(15, 16, 19, 0.98);
            z-index: 10002;
        }

        .vocab-library-refresh-btn:hover::before,
        .vocab-library-refresh-btn:focus-visible::before,
        .vocab-library-refresh-btn:hover::after,
        .vocab-library-refresh-btn:focus-visible::after {
            opacity: 1;
            transform: translateY(0);
        }

        .vocab-library-body {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
            flex: 1;
            min-height: 0;
            overflow: hidden;
        }

        .vocab-library-list {
            display: grid;
            align-content: start;
            gap: 8px;
            padding: 14px;
            overflow: auto;
            border-right: 1px solid rgba(229, 226, 227, 0.08);
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.28) rgba(255, 255, 255, 0.04);
        }

        .vocab-library-list::-webkit-scrollbar,
        .vocab-library-detail::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        .vocab-library-list::-webkit-scrollbar-track,
        .vocab-library-detail::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.04);
        }

        .vocab-library-list::-webkit-scrollbar-thumb,
        .vocab-library-detail::-webkit-scrollbar-thumb {
            border: 2px solid transparent;
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.28);
            background-clip: padding-box;
        }

        .vocab-library-list::-webkit-scrollbar-thumb:hover,
        .vocab-library-detail::-webkit-scrollbar-thumb:hover {
            background: rgba(78, 222, 163, 0.42);
            background-clip: padding-box;
        }

        .vocab-library-item {
            position: relative;
            display: grid;
            gap: 10px;
            width: 100%;
            padding: 13px 14px 12px;
            overflow: hidden;
            border: 1px solid rgba(192, 193, 255, 0.12);
            border-radius: 10px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.022));
            color: var(--dashboard-text);
            font: inherit;
            text-align: left;
            cursor: pointer;
            transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
        }

        .vocab-library-item::before {
            content: "";
            position: absolute;
            top: 10px;
            bottom: 10px;
            left: 0;
            width: 2px;
            border-radius: 0 999px 999px 0;
            background: rgba(78, 222, 163, 0.9);
            opacity: 0;
            transform: scaleY(0.4);
            transition: opacity 0.15s ease, transform 0.15s ease;
        }

        .vocab-library-item:hover {
            border-color: rgba(192, 193, 255, 0.25);
            background: linear-gradient(145deg, rgba(192, 193, 255, 0.075), rgba(255, 255, 255, 0.026));
            transform: translateY(-1px);
        }

        .vocab-library-item.is-active {
            border-color: rgba(78, 222, 163, 0.34);
            background:
                radial-gradient(circle at 0 50%, rgba(78, 222, 163, 0.1), transparent 48%),
                linear-gradient(145deg, rgba(78, 222, 163, 0.055), rgba(255, 255, 255, 0.025));
        }

        .vocab-library-item.is-active::before {
            opacity: 1;
            transform: scaleY(1);
        }

        .vocab-library-item-heading {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
        }

        .vocab-library-item strong {
            color: rgba(249, 248, 255, 0.96);
            font-size: 15px;
            font-weight: 650;
            line-height: 1.25;
            overflow-wrap: anywhere;
        }

        .vocab-library-item-states {
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
            gap: 5px;
        }

        .vocab-library-item-states > .material-symbols-outlined {
            font-size: 16px;
        }

        .vocab-library-item-states > .is-favorite {
            color: #f7a8bc;
            font-variation-settings: 'FILL' 1, 'wght' 450, 'GRAD' 0, 'opsz' 18;
        }

        .vocab-library-item-states > .is-mastered {
            color: rgba(78, 222, 163, 0.92);
            font-variation-settings: 'FILL' 1, 'wght' 450, 'GRAD' 0, 'opsz' 18;
        }

        .vocab-library-item-arrow {
            color: rgba(229, 226, 227, 0.3);
            transition: color 0.15s ease, transform 0.15s ease;
        }

        .vocab-library-item:hover .vocab-library-item-arrow,
        .vocab-library-item.is-active .vocab-library-item-arrow {
            color: rgba(78, 222, 163, 0.9);
            transform: translateX(2px);
        }

        .vocab-library-item-meta {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            min-height: 28px;
            overflow: hidden;
            border: 1px solid rgba(192, 193, 255, 0.11);
            border-radius: 7px;
            background: rgba(7, 8, 11, 0.25);
        }

        .vocab-library-item-meta > span {
            min-width: 0;
            min-height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 3px 8px;
            overflow: hidden;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: rgba(229, 226, 227, 0.58);
            font-size: 9px;
            font-weight: 400;
            letter-spacing: 0.05em;
            line-height: 1;
            text-align: center;
            text-overflow: ellipsis;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .vocab-library-item-meta > span + span {
            border-left: 1px solid rgba(192, 193, 255, 0.1);
        }

        .vocab-library-item-meta > .vocab-library-item-language {
            color: rgba(192, 193, 255, 0.72);
            letter-spacing: 0;
            text-transform: none;
        }

        .vocab-library-item-meta > .vocab-upos-badge,
        .vocab-detail-meta > .vocab-upos-badge {
            --upos-rgb: 148, 163, 184;
            background: rgba(var(--upos-rgb), 0.12);
            color: rgb(var(--upos-rgb));
        }

        .vocab-detail-meta > .vocab-upos-badge {
            border-color: rgba(var(--upos-rgb), 0.25);
        }

        .vocab-upos-badge[data-upos="NOUN"] { --upos-rgb: 96, 165, 250; }
        .vocab-upos-badge[data-upos="PROPN"] { --upos-rgb: 167, 139, 250; }
        .vocab-upos-badge[data-upos="VERB"] { --upos-rgb: 244, 114, 182; }
        .vocab-upos-badge[data-upos="AUX"] { --upos-rgb: 216, 180, 254; }
        .vocab-upos-badge[data-upos="ADJ"] { --upos-rgb: 251, 191, 36; }
        .vocab-upos-badge[data-upos="ADV"] { --upos-rgb: 34, 211, 238; }
        .vocab-upos-badge[data-upos="PRON"] { --upos-rgb: 129, 140, 248; }
        .vocab-upos-badge[data-upos="DET"] { --upos-rgb: 148, 163, 184; }
        .vocab-upos-badge[data-upos="ADP"] { --upos-rgb: 45, 212, 191; }
        .vocab-upos-badge[data-upos="CCONJ"],
        .vocab-upos-badge[data-upos="SCONJ"] { --upos-rgb: 74, 222, 163; }
        .vocab-upos-badge[data-upos="NUM"] { --upos-rgb: 251, 146, 60; }
        .vocab-upos-badge[data-upos="PART"] { --upos-rgb: 163, 230, 53; }
        .vocab-upos-badge[data-upos="INTJ"] { --upos-rgb: 248, 113, 113; }
        .vocab-upos-badge[data-upos="PUNCT"],
        .vocab-upos-badge[data-upos="SYM"],
        .vocab-upos-badge[data-upos="X"] { --upos-rgb: 156, 163, 175; }

        .vocab-library-item-language .material-symbols-outlined {
            font-size: 12px;
        }

        .vocab-library-item-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-top: 9px;
            border-top: 1px solid rgba(229, 226, 227, 0.065);
            color: rgba(229, 226, 227, 0.45);
            font-size: 10px;
        }

        .vocab-library-item-footer > span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .vocab-library-item-footer .material-symbols-outlined {
            font-size: 14px;
        }

        .vocab-library-item-footer > .vocab-library-item-rating {
            color: rgba(250, 204, 21, 0.7);
        }

        .vocab-library-item-rating .material-symbols-outlined {
            font-variation-settings: 'FILL' 1, 'wght' 420, 'GRAD' 0, 'opsz' 16;
        }

        .vocab-library-empty,
        .vocab-detail-meta {
            color: var(--dashboard-muted);
            font-size: 12px;
        }

        .vocab-library-load-more {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            justify-self: center;
            min-height: 32px;
            border: 0;
            background: transparent;
            color: rgba(78, 222, 163, 0.92);
            font: 700 12px/1 var(--font-dashboard);
            cursor: pointer;
        }

        .vocab-library-load-more span {
            color: var(--dashboard-muted);
            font-weight: 500;
        }

        .vocab-library-load-more:hover,
        .vocab-library-load-more:focus-visible {
            color: rgba(245, 243, 255, 0.96);
            outline: none;
        }

        .vocab-library-load-more:disabled {
            opacity: 0.55;
            cursor: wait;
        }

        .vocab-library-detail {
            display: grid;
            align-content: start;
            gap: 14px;
            padding: 18px;
            overflow: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.28) rgba(255, 255, 255, 0.04);
        }

        .vocab-detail-hero {
            display: grid;
            gap: 15px;
            padding: 16px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 12px;
            background:
                radial-gradient(circle at 0 0, rgba(78, 222, 163, 0.1), transparent 48%),
                linear-gradient(145deg, rgba(192, 193, 255, 0.075), rgba(255, 255, 255, 0.025));
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
        }

        .vocab-detail-heading {
            display: grid;
            gap: 7px;
            min-width: 0;
        }

        .vocab-detail-title-row {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .vocab-detail-title {
            margin: 0;
            color: rgba(250, 249, 255, 0.98);
            font-size: clamp(22px, 2vw, 30px);
            font-weight: 680;
            line-height: 1.12;
            overflow-wrap: anywhere;
        }

        .vocab-detail-phonetic {
            margin: 0;
            color: rgba(192, 193, 255, 0.82);
            font-size: 13px;
        }

        .vocab-detail-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .vocab-detail-meta span,
        .vocab-detail-state {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-height: 23px;
            padding: 2px 8px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 999px;
            background: rgba(10, 11, 14, 0.3);
            color: rgba(229, 226, 227, 0.68);
            font-size: 10px;
            font-weight: 600;
            letter-spacing: 0.055em;
            line-height: 1;
            text-transform: uppercase;
        }

        .vocab-detail-state .material-symbols-outlined {
            font-size: 13px;
        }

        .vocab-detail-state.is-favorite {
            color: #f7a8bc;
            border-color: rgba(247, 168, 188, 0.2);
            background: rgba(247, 168, 188, 0.08);
        }

        .vocab-detail-state.is-mastered {
            color: rgba(78, 222, 163, 0.95);
            border-color: rgba(78, 222, 163, 0.22);
            background: rgba(78, 222, 163, 0.08);
        }

        .vocab-detail-language-control {
            display: grid;
            gap: 7px;
            min-width: 0;
        }

        .vocab-detail-language-control > span {
            display: flex;
            align-items: center;
            gap: 6px;
            color: rgba(229, 226, 227, 0.76);
            font-size: 11px;
            font-weight: 650;
            letter-spacing: 0.02em;
        }

        .vocab-detail-language-control > span .material-symbols-outlined {
            color: rgba(78, 222, 163, 0.9);
            font-size: 16px;
        }

        .vocab-detail-language-control > small {
            color: rgba(229, 226, 227, 0.42);
            font-size: 10px;
        }

        .vocab-detail-language-control .vocab-custom-select,
        .vocab-detail-language-control .vocab-custom-select-btn {
            width: 100%;
        }

        .vocab-detail-language-control .vocab-custom-select-btn {
            min-height: 38px;
            border-color: rgba(192, 193, 255, 0.18);
            background: rgba(8, 9, 12, 0.38);
            font-weight: 500;
        }

        .vocab-detail-rating {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding-top: 12px;
            border-top: 1px solid rgba(229, 226, 227, 0.08);
        }

        .vocab-detail-rating > span {
            color: rgba(229, 226, 227, 0.58);
            font-size: 11px;
        }

        .vocab-detail-stars {
            display: flex;
            align-items: center;
            gap: 1px;
        }

        .vocab-detail-stars button {
            width: 27px;
            height: 27px;
            display: grid;
            place-items: center;
            padding: 0;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(229, 226, 227, 0.24);
            cursor: pointer;
        }

        .vocab-detail-stars button:hover {
            color: rgba(250, 204, 21, 0.68);
            background: rgba(250, 204, 21, 0.08);
        }

        .vocab-detail-stars button.is-active {
            color: #facc15;
        }

        .vocab-detail-stars .material-symbols-outlined {
            font-size: 20px;
            font-variation-settings: 'FILL' 1, 'wght' 420, 'GRAD' 0, 'opsz' 20;
        }

        .vocab-detail-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 7px;
        }

        .vocab-detail-actions button {
            min-width: 0;
            min-height: 36px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 7px;
            padding: 7px 10px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.035);
            color: rgba(229, 226, 227, 0.8);
            font-size: 11px;
            font-weight: 500;
            text-align: left;
            cursor: pointer;
        }

        .vocab-detail-actions button:hover {
            border-color: rgba(78, 222, 163, 0.28);
            background: rgba(78, 222, 163, 0.075);
            color: rgba(245, 243, 255, 0.96);
        }

        .vocab-detail-actions button .material-symbols-outlined {
            flex: 0 0 auto;
            color: rgba(192, 193, 255, 0.8);
            font-size: 17px;
        }

        .vocab-detail-actions button.is-danger {
            color: rgba(255, 180, 187, 0.88);
            border-color: rgba(255, 116, 132, 0.12);
        }

        .vocab-detail-actions button.is-danger .material-symbols-outlined {
            color: rgba(255, 139, 152, 0.86);
        }

        .vocab-detail-section {
            display: grid;
            gap: 6px;
            padding-top: 10px;
            border-top: 1px solid rgba(229, 226, 227, 0.08);
        }

        .vocab-detail-section h3 {
            margin: 0;
            color: rgba(192, 193, 255, 0.9);
            font-size: 12px;
            text-transform: uppercase;
        }

        .vocab-detail-section p {
            margin: 0;
            color: rgba(229, 226, 227, 0.82);
            font-size: 13px;
            line-height: 1.5;
            white-space: pre-line;
            overflow-wrap: anywhere;
        }

        @media (max-width: 760px) {
            .sentence-gen-modal.is-open {
                padding: 12px;
            }
            .sentence-gen-body {
                grid-template-columns: 1fr;
            }
            .sentence-gen-controls {
                border-right: 0;
                border-bottom: 1px solid rgba(229, 226, 227, 0.08);
            }
            .vocab-review-setup,
            .vocab-review-grades,
            .vocab-library-filters,
            .vocab-library-body {
                grid-template-columns: 1fr;
            }
            .vocab-review-section-mode,
            .vocab-review-section-voice {
                grid-column: auto;
                grid-row: auto;
            }
            .vocab-review-section-grid,
            .vocab-review-section-mode .vocab-review-section-grid,
            .vocab-review-section-voice .vocab-review-section-grid {
                grid-template-columns: 1fr;
            }
            .vocab-card h3 {
                font-size: 26px;
            }
        }

        .workspace-notes-scroll {
            position: relative;
            isolation: isolate;
            flex: 1;
            min-height: 0;
            overflow-y: auto;
            padding: 14px;
            background:
                radial-gradient(circle at 18% 6%, rgba(192, 193, 255, 0.12), transparent 34%),
                radial-gradient(circle at 88% 32%, rgba(78, 222, 163, 0.055), transparent 30%),
                linear-gradient(180deg, rgba(9, 9, 10, 0.3), rgba(38, 37, 40, 0.09) 42%, rgba(9, 9, 10, 0.22)),
                rgba(18, 18, 19, 0.24);
            color: var(--dashboard-muted);
            font-size: 13px;
            line-height: 1.55;
        }

        .workspace-notes-scroll::before,
        .workspace-notes-scroll::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            pointer-events: none;
        }

        .workspace-notes-scroll::before {
            background:
                radial-gradient(circle at 18% 12%, rgba(192, 193, 255, 0.1), transparent 38%),
                radial-gradient(circle at 82% 68%, rgba(78, 222, 163, 0.045), transparent 34%),
                linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 46%);
            background-size: 120% 120%, 125% 125%, 100% 100%;
            background-position: 0% 0%, 100% 100%, 0 0;
            opacity: 0.42;
            animation: workspaceNotesAmbient 16s ease-in-out infinite alternate;
        }

        .workspace-notes-scroll::after {
            background-image:
                radial-gradient(circle, rgba(199, 196, 215, 0.08) 1px, transparent 1.2px);
            background-size: 18px 18px;
            opacity: 0.14;
            mask-image: linear-gradient(180deg, transparent, #000 16%, #000 82%, transparent);
        }

        @keyframes workspaceNotesAmbient {
            0% {
                background-position: 0% 0%, 100% 100%, 0 0;
                opacity: 0.34;
            }
            100% {
                background-position: 14% 10%, 86% 82%, 0 0;
                opacity: 0.48;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .workspace-notes-scroll::before,
            .assistant-card::before,
            .workspace-presentation-hint::before {
                animation: none;
                transform: none;
            }
        }

        .workspace-notes-scroll::-webkit-scrollbar {
            width: 8px;
        }

        .workspace-notes-scroll::-webkit-scrollbar-track {
            background: rgba(19, 19, 20, 0.2);
        }

        .workspace-notes-scroll::-webkit-scrollbar-thumb {
            border: 2px solid rgba(19, 19, 20, 0.5);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.2);
        }

        .workspace-search {
            position: relative;
            display: block;
            margin-bottom: 14px;
        }

        .workspace-search .material-symbols-outlined {
            position: absolute;
            left: 11px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(199, 196, 215, 0.5);
            font-size: 17px;
        }

        .workspace-search input {
            width: 100%;
            height: 36px;
            border: 1px solid rgba(82, 81, 96, 0.42);
            border-radius: 8px;
            background: rgba(20, 20, 21, 0.78);
            color: var(--dashboard-text);
            padding: 0 12px 0 38px;
            font-size: 13px;
            outline: none;
        }

        .workspace-search input:focus {
            border-color: rgba(82, 81, 96, 0.42);
            box-shadow: none;
        }

        .workspace-note-list {
            display: grid;
            gap: 8px;
            list-style: none;
            padding: 0;
            margin: 0 0 14px;
        }

        .workspace-note-list.generated {
            margin-bottom: 0;
        }

        .workspace-notes-loading {
            position: relative;
            min-height: 170px;
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr);
            align-content: center;
            gap: 10px 12px;
            padding: 22px 18px;
            border: 1px solid rgba(82, 81, 96, 0.4);
            border-radius: 8px;
            background: linear-gradient(145deg, rgba(31, 30, 33, 0.72), rgba(24, 24, 25, 0.46));
            overflow: hidden;
            animation: workspaceNotesLoadingEnter 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }

        .workspace-notes-loading::after {
            content: '';
            position: absolute;
            inset: 0;
            pointer-events: none;
            background: linear-gradient(105deg, transparent 20%, rgba(192, 193, 255, 0.08) 46%, transparent 72%);
            transform: translateX(-110%);
            animation: workspaceNotesLoadingSweep 1.35s ease-in-out infinite;
        }

        .workspace-notes-loading-icon {
            grid-row: 1;
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 9px;
            background: rgba(192, 193, 255, 0.09);
            color: rgba(205, 206, 255, 0.88);
            font-size: 18px;
            animation: workspaceNotesLoadingPulse 1.2s ease-in-out infinite;
        }

        .workspace-notes-loading-label {
            grid-row: 1;
            align-self: center;
            color: rgba(221, 219, 234, 0.72);
            font: 600 12px/1.35 'Inter', var(--font-main);
        }

        .workspace-notes-loading-row {
            grid-column: 1 / -1;
            height: 9px;
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.1);
            animation: workspaceNotesLoadingBar 1.15s ease-in-out infinite alternate;
        }

        .workspace-notes-loading-row--long {
            width: 92%;
        }

        .workspace-notes-loading-row--medium {
            width: 74%;
            animation-delay: 100ms;
        }

        .workspace-notes-loading-row--short {
            width: 55%;
            animation-delay: 200ms;
        }

        .workspace-notes > .workspace-notes-loading--reveal {
            position: absolute;
            z-index: 12;
            top: 116px;
            left: 12px;
            width: calc(var(--workspace-notes-width) - 24px);
            min-width: 220px;
            pointer-events: none;
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
        }

        .workspace-notes.is-content-revealing #workspaceNotesContent {
            visibility: hidden;
        }

        #workspaceNotesContent.has-just-revealed > * {
            animation: workspaceNotesContentReveal 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
        }

        @keyframes workspaceNotesLoadingEnter {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes workspaceNotesLoadingSweep {
            0% { transform: translateX(-110%); }
            65%, 100% { transform: translateX(110%); }
        }

        @keyframes workspaceNotesLoadingPulse {
            0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192, 193, 255, 0); }
            50% { transform: scale(1.04); box-shadow: 0 0 0 5px rgba(192, 193, 255, 0.045); }
        }

        @keyframes workspaceNotesLoadingBar {
            from { opacity: 0.5; transform: scaleX(0.96); transform-origin: left; }
            to { opacity: 1; transform: scaleX(1); transform-origin: left; }
        }

        @keyframes workspaceNotesContentReveal {
            from { opacity: 0; transform: translateY(5px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .workspace-notes-empty {
            position: relative;
            isolation: isolate;
            min-height: 150px;
            display: grid;
            justify-items: center;
            align-content: center;
            gap: 8px;
            padding: 22px 18px;
            border: 1px dashed rgba(82, 81, 96, 0.52);
            border-radius: 8px;
            background: rgba(24, 24, 25, 0.42);
            color: rgba(199, 196, 215, 0.74);
            text-align: center;
            overflow: hidden;
            animation: workspaceEmptyEnter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
        }

        .workspace-notes-empty::before {
            content: "";
            position: absolute;
            z-index: -1;
            width: 130px;
            height: 130px;
            top: -58px;
            left: 50%;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(192, 193, 255, 0.13), transparent 68%);
            transform: translateX(-50%);
            opacity: 0.5;
            animation: workspaceEmptyGlow 3.8s ease-in-out infinite;
        }

        .workspace-notes-empty .material-symbols-outlined {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border-radius: 8px;
            color: rgba(192, 193, 255, 0.88);
            background: rgba(192, 193, 255, 0.1);
            font-size: 20px;
            box-shadow: 0 0 0 0 rgba(192, 193, 255, 0);
            animation: workspaceEmptyIcon 3.2s ease-in-out 0.5s infinite;
        }

        .workspace-notes-empty strong {
            color: var(--dashboard-text);
            font-size: 13px;
            font-weight: 700;
        }

        .workspace-notes-empty p {
            max-width: 190px;
            margin: 0;
            color: rgba(199, 196, 215, 0.62);
            font-size: 12px;
            line-height: 1.45;
        }

        @keyframes workspaceEmptyEnter {
            from {
                opacity: 0;
                transform: translateY(7px) scale(0.985);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes workspaceEmptyGlow {
            0%, 100% {
                opacity: 0.34;
                transform: translateX(-50%) scale(0.92);
            }
            50% {
                opacity: 0.62;
                transform: translateX(-50%) scale(1.08);
            }
        }

        @keyframes workspaceEmptyIcon {
            0%, 100% {
                transform: translateY(0);
                box-shadow: 0 0 0 0 rgba(192, 193, 255, 0);
            }
            50% {
                transform: translateY(-3px);
                box-shadow: 0 8px 20px rgba(192, 193, 255, 0.1);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .workspace-notes-loading,
            .workspace-notes-loading::after,
            .workspace-notes-loading-icon,
            .workspace-notes-loading-row,
            #workspaceNotesContent.has-just-revealed > *,
            .workspace-notes-empty,
            .workspace-notes-empty::before,
            .workspace-notes-empty .material-symbols-outlined {
                animation: none;
            }
        }

        .workspace-note-list li {
            position: relative;
            display: flex;
            align-items: flex-start;
            gap: 8px;
            padding: 10px 34px 10px 28px;
            border: 1px solid rgba(70, 69, 84, 0.28);
            border-radius: 8px;
            background: rgba(24, 24, 25, 0.58);
            transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
        }

        .workspace-note-list li:hover {
            border-color: rgba(192, 193, 255, 0.38);
            background: rgba(42, 42, 43, 0.62);
            transform: translateY(-1px);
        }

        .workspace-note-list li.selected,
        .workspace-notes-scroll #workspaceNotesContent .workspace-note-copy.selected {
            border-color: rgba(192, 193, 255, 0.68);
            background: rgba(192, 193, 255, 0.12);
            box-shadow: inset 0 0 0 1px rgba(192, 193, 255, 0.18);
        }

        .workspace-note-list li::before {
            content: '';
            position: absolute;
            left: 13px;
            top: 17px;
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: var(--dashboard-secondary);
            box-shadow: 0 0 0 3px rgba(78, 222, 163, 0.1);
        }

        .workspace-note-list li::after,
        .workspace-notes-scroll #workspaceNotesContent .workspace-note-copy::after {
            content: none;
        }

        .workspace-text-body {
            flex: 1;
            min-width: 0;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        .workspace-note-validation {
            position: absolute;
            left: 9px;
            top: 0;
            z-index: 2;
            display: none;
            align-items: center;
            gap: 4px;
            min-height: 18px;
            padding: 1px 6px 1px 4px;
            border: 1px solid rgba(142, 144, 255, 0.2);
            border-radius: 999px;
            background: rgba(22, 21, 25, 0.94);
            color: rgba(210, 209, 230, 0.74);
            font-size: 8px;
            font-weight: 650;
            line-height: 1;
            pointer-events: auto;
            transform: translateY(-50%);
        }

        [data-workspace-text-item][data-validation-status]:not([data-validation-status=""]) .workspace-note-validation {
            display: flex;
        }

        .workspace-note-validation .material-symbols-outlined {
            font-size: 11px;
        }

        [data-validation-status="pending"] .workspace-note-validation {
            color: #c0c1ff;
        }

        [data-validation-status="pending"] .workspace-note-validation .material-symbols-outlined {
            animation: promptValidationSpin 0.85s linear infinite;
        }

        [data-validation-status="valid"] .workspace-note-validation {
            border-color: rgba(78, 222, 163, 0.24);
            color: rgba(111, 232, 179, 0.86);
        }

        [data-validation-status="valid"] .workspace-note-validation.has-parsing-warning,
        [data-validation-status="warning"] .workspace-note-validation,
        [data-validation-status="invalid"] .workspace-note-validation {
            border-color: rgba(251, 191, 36, 0.28);
            color: rgba(252, 211, 77, 0.9);
        }

        .workspace-text-action {
            position: absolute;
            right: 8px;
            top: 8px;
            width: 22px;
            height: 22px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(199, 196, 215, 0.42);
            padding: 0;
            opacity: 0;
            cursor: pointer;
            transition: opacity 0.16s ease, color 0.16s ease, background 0.16s ease;
        }

        .workspace-text-action .material-symbols-outlined {
            font-size: 18px;
            line-height: 1;
        }

        .workspace-note-list li:hover .workspace-text-action,
        .workspace-note-copy:hover .workspace-text-action,
        .workspace-text-action:focus-visible {
            opacity: 1;
            color: rgba(199, 196, 215, 0.78);
            background: rgba(53, 52, 54, 0.5);
        }

        .workspace-note-list strong {
            color: var(--dashboard-text);
            font-weight: 700;
        }

        .workspace-note-copy {
            position: relative;
            margin: 0;
            padding: 11px 34px 11px 12px;
            border: 1px solid rgba(70, 69, 84, 0.25);
            border-radius: 8px;
            background: rgba(24, 24, 25, 0.45);
            transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
        }

        .workspace-notes-scroll #workspaceNotesContent .workspace-note-copy:hover {
            border-color: rgba(192, 193, 255, 0.38);
            background: rgba(42, 42, 43, 0.62);
            transform: translateY(-1px);
        }

        .workspace-note-copy.generated-sentence {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.32);
            border-color: rgba(82, 81, 96, 0.42);
        }

        .workspace-note-copy.generated-sentence.has-example-language-control {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
        }

        .workspace-note-example-language {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            min-height: 25px;
            max-width: calc(100% - 28px);
            border: 1px solid rgba(192, 193, 255, 0.28);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.1);
            color: rgba(226, 226, 255, 0.92);
            padding: 3px 7px 3px 6px;
            font: 650 10px/1 'Inter', var(--font-main);
            cursor: pointer;
            transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
        }

        .workspace-note-example-language:hover,
        .workspace-note-example-language:focus-visible,
        .workspace-note-example-language[aria-expanded="true"] {
            border-color: rgba(192, 193, 255, 0.52);
            background: rgba(192, 193, 255, 0.18);
            color: #f2f2ff;
            outline: none;
        }

        .workspace-note-example-language .material-symbols-outlined {
            flex: 0 0 auto;
            font-size: 14px;
        }

        .workspace-note-example-language .workspace-note-language-chevron {
            transition: transform 150ms ease;
        }

        .workspace-note-example-language[aria-expanded="true"] .workspace-note-language-chevron {
            transform: rotate(180deg);
        }

        .language-control-tooltip[data-tooltip] {
            position: relative;
        }

        .language-control-tooltip[data-tooltip]::before,
        .language-control-tooltip[data-tooltip]::after {
            position: absolute;
            z-index: 160;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
        }

        .language-control-tooltip[data-tooltip]::before {
            content: attr(data-tooltip);
            right: 0;
            bottom: calc(100% + 9px);
            width: max-content;
            max-width: 240px;
            padding: 7px 9px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 8px;
            background: rgba(17, 17, 20, 0.98);
            color: rgba(244, 243, 255, 0.94);
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
            font: 500 11px/1.35 'Inter', var(--font-main);
            text-align: left;
            white-space: normal;
            transform: translateY(4px);
        }

        .language-control-tooltip[data-tooltip]::after {
            content: '';
            right: 18px;
            bottom: calc(100% + 5px);
            width: 8px;
            height: 8px;
            border-right: 1px solid rgba(192, 193, 255, 0.2);
            border-bottom: 1px solid rgba(192, 193, 255, 0.2);
            background: rgba(17, 17, 20, 0.98);
            transform: translateY(4px) rotate(45deg);
        }

        .workspace-note-example-language.language-control-tooltip[data-tooltip]::before {
            right: auto;
            left: 0;
            max-width: min(220px, calc(100vw - 32px));
        }

        .workspace-note-example-language.language-control-tooltip[data-tooltip]::after {
            right: auto;
            left: 18px;
        }

        .guest-example-language.language-control-tooltip[data-tooltip]::before {
            right: auto;
            left: 0;
            max-width: min(220px, calc(100vw - 32px));
        }

        .guest-example-language.language-control-tooltip[data-tooltip]::after {
            right: auto;
            left: 18px;
        }

        #uiLanguageTrigger.language-control-tooltip[data-tooltip]::before {
            top: calc(100% + 9px);
            bottom: auto;
            transform: translateY(-4px);
        }

        #uiLanguageTrigger.language-control-tooltip[data-tooltip]::after {
            top: calc(100% + 5px);
            bottom: auto;
            border: 0;
            border-top: 1px solid rgba(192, 193, 255, 0.2);
            border-left: 1px solid rgba(192, 193, 255, 0.2);
            transform: translateY(-4px) rotate(45deg);
        }

        #uiLanguageTrigger.language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::before,
        #uiLanguageTrigger.language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::before {
            transform: translateY(0);
        }

        #uiLanguageTrigger.language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::after,
        #uiLanguageTrigger.language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::after {
            transform: translateY(0) rotate(45deg);
        }

        .language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::before,
        .language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::after,
        .language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::before,
        .language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }

        .language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::before,
        .language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::before {
            transform: translateY(0);
        }

        .language-control-tooltip[data-tooltip][aria-expanded="false"]:hover::after,
        .language-control-tooltip[data-tooltip][aria-expanded="false"]:focus-visible::after {
            transform: translateY(0) rotate(45deg);
        }

        .workspace-quick-note {
            position: relative;
            padding: 12px 14px 14px;
            border-top: 1px solid rgba(70, 69, 84, 0.44);
            background:
                radial-gradient(circle at 12% 0%, rgba(192, 193, 255, 0.09), transparent 44%),
                rgba(21, 20, 22, 0.82);
        }

        .workspace-quick-note-composer {
            position: relative;
            overflow: visible;
            border: 1px solid rgba(192, 193, 255, 0.18);
            border-radius: 13px;
            background:
                linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
                rgba(14, 14, 16, 0.86);
            box-shadow:
                0 12px 30px rgba(0, 0, 0, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.035);
            transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .workspace-quick-note-composer:focus-within {
            border-color: rgba(192, 193, 255, 0.46);
            background:
                linear-gradient(145deg, rgba(192, 193, 255, 0.055), transparent 45%),
                rgba(14, 14, 16, 0.94);
            box-shadow:
                0 16px 38px rgba(0, 0, 0, 0.3),
                0 0 0 3px rgba(192, 193, 255, 0.07),
                inset 0 1px 0 rgba(255, 255, 255, 0.045);
        }

        .workspace-quick-note textarea {
            width: 100%;
            min-height: 76px;
            resize: none;
            border: 0;
            border-radius: 13px 13px 0 0;
            background: transparent;
            color: var(--dashboard-text);
            padding: 13px 13px 8px;
            font: 500 12px/1.5 'Inter', var(--font-main);
            outline: none;
        }

        .workspace-quick-note textarea::placeholder {
            color: rgba(199, 196, 215, 0.42);
        }

        .workspace-quick-note textarea:focus {
            box-shadow: none;
        }

        .workspace-quick-note-footer {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 7px 8px 8px;
            border-top: 1px solid rgba(199, 196, 215, 0.08);
        }

        .workspace-quick-note-language {
            position: relative;
            min-width: 0;
        }

        .workspace-quick-note-language-btn {
            position: relative;
            min-height: 28px;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            border: 1px solid rgba(192, 193, 255, 0.14);
            border-radius: 999px;
            background: rgba(192, 193, 255, 0.065);
            color: rgba(226, 225, 240, 0.78);
            padding: 4px 8px 4px 7px;
            font: 650 10px/1 'Inter', var(--font-main);
            cursor: pointer;
            transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
        }

        .workspace-quick-note-language-btn.is-static {
            cursor: default;
            user-select: none;
        }

        .workspace-quick-note-language-btn.is-static::before,
        .workspace-quick-note-language-btn.is-static::after {
            display: none !important;
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn::before,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn::after {
            position: absolute;
            z-index: 30;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn::before {
            content: attr(data-tooltip);
            left: 0;
            bottom: calc(100% + 9px);
            width: max-content;
            max-width: 220px;
            padding: 7px 9px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 8px;
            background: rgba(17, 17, 20, 0.98);
            color: rgba(244, 243, 255, 0.94);
            box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
            font: 500 11px/1.35 'Inter', var(--font-main);
            text-align: left;
            white-space: normal;
            transform: translateY(4px);
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn::after {
            content: '';
            left: 18px;
            bottom: calc(100% + 5px);
            width: 8px;
            height: 8px;
            border-right: 1px solid rgba(192, 193, 255, 0.2);
            border-bottom: 1px solid rgba(192, 193, 255, 0.2);
            background: rgba(17, 17, 20, 0.98);
            transform: translateY(4px) rotate(45deg);
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:hover::before,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:hover::after,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:focus-visible::before,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:hover::before,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:focus-visible::before {
            transform: translateY(0);
        }

        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:hover::after,
        .workspace-quick-note-language:not(.open) .workspace-quick-note-language-btn:focus-visible::after {
            transform: translateY(0) rotate(45deg);
        }

        .workspace-quick-note-language-btn:hover,
        .workspace-quick-note-language-btn:focus-visible,
        .workspace-quick-note-language.open .workspace-quick-note-language-btn {
            border-color: rgba(192, 193, 255, 0.4);
            background: rgba(192, 193, 255, 0.13);
            color: rgba(244, 243, 255, 0.96);
            outline: none;
        }

        .workspace-quick-note-language-chevron {
            transition: transform 150ms ease;
        }

        .workspace-quick-note-language.open .workspace-quick-note-language-chevron {
            transform: rotate(180deg);
        }

        .workspace-quick-note-language-menu {
            position: absolute;
            left: 0;
            bottom: calc(100% + 7px);
            z-index: 20;
            width: 168px;
            max-height: 238px;
            display: grid;
            gap: 2px;
            overflow-y: auto;
            padding: 5px;
            border: 1px solid rgba(192, 193, 255, 0.2);
            border-radius: 11px;
            background: rgba(17, 16, 20, 0.98);
            box-shadow: 0 20px 46px rgba(0, 0, 0, 0.48);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateY(5px) scale(0.98);
            transform-origin: bottom left;
            transition: opacity 130ms ease, transform 130ms ease, visibility 130ms ease;
        }

        .workspace-quick-note-language.open .workspace-quick-note-language-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateY(0) scale(1);
        }

        .workspace-quick-note-language-menu button {
            width: 100%;
            min-height: 30px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: rgba(229, 226, 227, 0.76);
            padding: 6px 9px;
            font: 550 11px/1.2 'Inter', var(--font-main);
            text-align: left;
            cursor: pointer;
        }

        .workspace-quick-note-language-menu button:hover,
        .workspace-quick-note-language-menu button[aria-selected="true"] {
            background: rgba(192, 193, 255, 0.11);
            color: rgba(247, 246, 255, 0.96);
        }

        .workspace-quick-note-submit {
            min-width: 76px;
            min-height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            border: 1px solid rgba(216, 217, 255, 0.66);
            border-radius: 10px;
            background: linear-gradient(135deg, #d2d3ff 0%, #aaaaff 55%, #9294ef 100%);
            color: #111219;
            padding: 5px 7px 5px 13px;
            font: 750 12px/1 'Inter', var(--font-main);
            box-shadow: 0 8px 20px rgba(117, 119, 224, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
        }

        .workspace-quick-note-submit:hover,
        .workspace-quick-note-submit:focus-visible {
            transform: translateY(-1px) scale(1.01);
            box-shadow: 0 11px 26px rgba(117, 119, 224, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.58);
            filter: brightness(1.05) saturate(1.04);
            outline: none;
        }

        .workspace-quick-note-submit:active {
            transform: translateY(0) scale(0.98);
            box-shadow: 0 5px 13px rgba(117, 119, 224, 0.22);
        }

        .workspace-quick-note .workspace-quick-note-submit .material-symbols-outlined {
            width: 23px;
            height: 23px;
            display: grid;
            place-items: center;
            border-radius: 7px;
            background: rgba(17, 18, 25, 0.1);
            font-size: 16px;
            transition: transform 150ms ease, background 150ms ease;
        }

        .workspace-quick-note .workspace-quick-note-submit:hover .material-symbols-outlined,
        .workspace-quick-note .workspace-quick-note-submit:focus-visible .material-symbols-outlined {
            background: rgba(17, 18, 25, 0.15);
            transform: translateY(-1px);
        }

        .workspace-quick-note .material-symbols-outlined {
            font-size: 14px;
        }

        .workspace-center {
            position: relative;
            grid-column: 2;
            grid-row: 1;
            z-index: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            padding: 0;
            overflow: hidden;
        }

        .workspace-canvas-frame {
            width: 100%;
            height: 100%;
            min-height: 0;
            flex: 1;
            display: block;
            border: 0;
            border-radius: 0;
            background: var(--dashboard-surface-low);
            box-shadow: none;
        }

        .workspace-document-stats {
            width: min(760px, 100%);
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            margin-bottom: 14px;
            color: rgba(199, 196, 215, 0.7);
            font-size: 12px;
            font-weight: 500;
        }

        .workspace-document-stats span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 30px;
            padding: 0 10px;
            border: 1px solid rgba(70, 69, 84, 0.3);
            border-radius: 999px;
            background: rgba(32, 31, 32, 0.68);
        }

        .workspace-document-stats .material-symbols-outlined {
            font-size: 15px;
        }

        .workspace-editor {
            width: min(760px, 100%);
            overflow: hidden;
            border: 1px solid rgba(70, 69, 84, 0.45);
            border-radius: 12px;
            background: rgba(32, 31, 32, 0.94);
            box-shadow: 0 26px 72px rgba(0, 0, 0, 0.42);
        }

        .workspace-editor-toolbar {
            height: 44px;
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 0 12px;
            border-bottom: 1px solid rgba(70, 69, 84, 0.38);
        }

        .workspace-editor-toolbar button {
            width: 30px;
            height: 30px;
            display: grid;
            place-items: center;
            border-radius: 6px;
        }

        .workspace-editor-toolbar .material-symbols-outlined {
            font-size: 18px;
        }

        .workspace-editor-input {
            width: 100%;
            min-height: 220px;
            max-height: 42vh;
            resize: vertical;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--dashboard-text);
            padding: 22px;
            font: 400 20px/1.55 'Inter', var(--font-main);
        }

        .workspace-assistant {
            position: absolute;
            top: 16px;
            right: 16px;
            width: auto;
            z-index: 4;
            display: none;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
            margin: 0;
        }

        .workspace-shell.assistant-panel-visible .workspace-assistant {
            display: flex;
        }

        .assistant-card {
            position: relative;
            isolation: isolate;
            width: 320px;
            border: 1px solid rgba(70, 69, 84, 0.42);
            border-radius: 12px;
            background:
                radial-gradient(circle at 14% 8%, rgba(192, 193, 255, 0.13), transparent 38%),
                radial-gradient(circle at 92% 72%, rgba(78, 222, 163, 0.055), transparent 34%),
                linear-gradient(180deg, rgba(34, 33, 36, 0.94), rgba(24, 23, 25, 0.91)),
                rgba(28, 27, 28, 0.9);
            box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            padding: 12px;
            overflow: visible;
        }

        .assistant-card::before,
        .assistant-card::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            border-radius: inherit;
        }

        .assistant-card::before {
            background:
                linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.045) 38%, transparent 58%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%);
            background-size: 220% 100%, 100% 100%;
            background-position: 140% 0, 0 0;
            opacity: 0.48;
            animation: assistantCardSheen 18s ease-in-out infinite;
        }

        @keyframes assistantCardSheen {
            0%, 100% {
                background-position: 140% 0, 0 0;
            }
            50% {
                background-position: -110% 0, 0 0;
            }
        }

        .assistant-card::after {
            background-image: radial-gradient(circle, rgba(199, 196, 215, 0.08) 1px, transparent 1.2px);
            background-size: 18px 18px;
            opacity: 0.16;
            mask-image: linear-gradient(180deg, #000, transparent 90%);
        }

        .assistant-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 9px;
            margin: 0 0 10px;
            padding: 9px 10px;
            border: 1px solid rgba(199, 196, 215, 0.09);
            border-radius: 10px;
            background: linear-gradient(90deg, rgba(192, 193, 255, 0.12), rgba(78, 222, 163, 0.05), rgba(28, 27, 28, 0.1));
            color: var(--dashboard-text);
            font-size: 14px;
            font-weight: 800;
            white-space: nowrap;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
        }

        .assistant-card-title {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            min-width: 0;
        }

        .assistant-card-title > span:last-child {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .assistant-card-title .material-symbols-outlined {
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            border: 1px solid rgba(192, 193, 255, 0.24);
            border-radius: 9px;
            background: rgba(192, 193, 255, 0.1);
            color: rgba(192, 193, 255, 0.95);
            font-size: 18px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
        }

        .assistant-roll-toggle {
            width: 28px;
            height: 28px;
            border-radius: 8px;
            color: rgba(199, 196, 215, 0.62);
        }

        .assistant-roll-toggle .material-symbols-outlined {
            font-size: 20px;
        }

        .assistant-roll-toggle:hover,
        .assistant-roll-toggle:focus-visible {
            color: rgba(245, 243, 255, 0.94);
            border-color: rgba(192, 193, 255, 0.18);
            background: rgba(192, 193, 255, 0.1);
        }

        .assistant-card-body {
            max-height: 150px;
            overflow: visible;
            transition: max-height 0.24s ease, opacity 0.16s ease, transform 0.22s ease;
        }

        .assistant-card.is-rolled .assistant-card-header {
            margin-bottom: 0;
        }

        .assistant-card.is-rolled .assistant-card-body {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-4px);
            pointer-events: none;
        }

        .assistant-card.is-rolled .assistant-roll-toggle .material-symbols-outlined {
            transform: rotate(180deg);
        }

        .assistant-language-row {
            position: relative;
            z-index: 20;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 10px;
        }

        .assistant-language-label {
            color: rgba(199, 196, 215, 0.68);
            font-size: 12px;
            font-weight: 700;
        }

        .assistant-language-copy {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }

        .assistant-info-btn {
            position: relative;
            width: 20px;
            height: 20px;
            display: grid;
            place-items: center;
            border: 0;
            border-radius: 6px;
            background: transparent;
            color: rgba(199, 196, 215, 0.52);
            padding: 0;
            cursor: pointer;
        }

        .assistant-info-btn:hover,
        .assistant-info-btn:focus-visible {
            color: var(--dashboard-primary);
            background: rgba(192, 193, 255, 0.1);
            outline: none;
        }

        .assistant-info-btn .material-symbols-outlined {
            font-size: 16px;
            line-height: 1;
        }

        .assistant-info-btn::before,
        .assistant-info-btn::after {
            position: absolute;
            left: 50%;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
        }

        .assistant-info-btn::before {
            content: attr(data-info);
            bottom: calc(100% + 9px);
            transform: translate(-50%, 4px);
            width: 190px;
            padding: 8px 9px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 8px;
            background: rgba(17, 17, 18, 0.96);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
            color: var(--dashboard-text);
            font: 700 11px/1.25 var(--font-dashboard);
            text-align: center;
            white-space: normal;
            z-index: 20;
        }

        .assistant-info-btn::after {
            content: '';
            bottom: calc(100% + 5px);
            transform: translate(-50%, 4px) rotate(45deg);
            width: 8px;
            height: 8px;
            background: rgba(17, 17, 18, 0.96);
            border-right: 1px solid rgba(70, 69, 84, 0.55);
            border-bottom: 1px solid rgba(70, 69, 84, 0.55);
            z-index: 19;
        }

        .assistant-info-btn:hover::before,
        .assistant-info-btn:hover::after,
        .assistant-info-btn:focus-visible::before,
        .assistant-info-btn:focus-visible::after {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, 0);
        }

        .assistant-info-btn:hover::after,
        .assistant-info-btn:focus-visible::after {
            transform: translate(-50%, 0) rotate(45deg);
        }

        .assistant-language-pill {
            min-height: 30px;
            padding: 0 9px;
            font-size: 12px;
        }

        .assistant-language-pill .material-symbols-outlined:first-child {
            font-size: 17px;
        }

        .assistant-language-picker {
            position: static;
        }

        .assistant-language-menu {
            top: 0;
            right: calc(100% + 12px);
            bottom: auto;
            z-index: 5000;
            width: 196px;
            max-height: min(390px, calc(100vh - 150px));
            overflow-y: auto;
            overscroll-behavior: contain;
            border-color: rgba(192, 193, 255, 0.26);
            background: rgba(24, 24, 28, 0.99);
            transform-origin: top right;
            scrollbar-width: thin;
            scrollbar-color: rgba(192, 193, 255, 0.36) transparent;
        }

        .assistant-language-picker.open {
            z-index: 5000;
        }

        .assistant-language-menu button {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex: 0 0 auto;
            color: rgba(232, 230, 238, 0.88);
            opacity: 1;
            visibility: visible;
        }

        .assistant-language-menu button:hover,
        .assistant-language-menu button[aria-selected="true"] {
            color: #fff;
            background: rgba(192, 193, 255, 0.13);
        }

        .assistant-language-menu button[aria-selected="true"]::after {
            content: 'check';
            color: #c0c1ff;
            font: 18px/1 'Material Symbols Outlined';
        }

        .assistant-actions {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            overflow: visible;
        }

        .assistant-actions button {
            position: relative;
            width: 100%;
            height: 32px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(70, 69, 84, 0.35);
            border-radius: 8px;
            background: rgba(53, 52, 54, 0.35);
            color: var(--dashboard-text);
            padding: 0;
            cursor: pointer;
        }

        .assistant-actions button:hover {
            border-color: rgba(192, 193, 255, 0.55);
            background: rgba(192, 193, 255, 0.12);
        }

        .assistant-actions button.has-existing-view {
            border-color: color-mix(in srgb, #c0c1ff 62%, rgba(82, 81, 96, 0.42));
            background:
                linear-gradient(90deg, color-mix(in srgb, #c0c1ff 18%, transparent), transparent 72%),
                rgba(31, 30, 35, 0.9);
            color: rgba(247, 246, 253, 0.96);
            box-shadow:
                inset 3px 0 0 color-mix(in srgb, #c0c1ff 72%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.03);
        }

        .assistant-actions button.has-existing-view .material-symbols-outlined {
            font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }

        .assistant-actions.is-busy button,
        .assistant-actions button:disabled {
            cursor: wait;
            opacity: 0.45;
            filter: saturate(0.65);
        }

        .assistant-actions.is-busy button:hover,
        .assistant-actions button:disabled:hover {
            border-color: rgba(70, 69, 84, 0.35);
            background: rgba(53, 52, 54, 0.35);
        }

        .assistant-actions button::before,
        .assistant-actions button::after {
            position: absolute;
            right: calc(100% + 10px);
            top: 50%;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
        }

        .assistant-actions button::before {
            content: attr(data-tooltip);
            transform: translate(4px, -50%);
            min-width: max-content;
            max-width: 180px;
            padding: 7px 9px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 8px;
            background: rgba(17, 17, 18, 0.96);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
            color: var(--dashboard-text);
            font: 400 11px/1 var(--font-dashboard);
            letter-spacing: 0.02em;
            text-align: center;
            white-space: nowrap;
            z-index: 20;
        }

        .assistant-actions button::after {
            content: '';
            width: 8px;
            height: 8px;
            transform: translate(0, -50%) rotate(45deg);
            background: rgba(17, 17, 18, 0.96);
            border-top: 1px solid rgba(70, 69, 84, 0.55);
            border-right: 1px solid rgba(70, 69, 84, 0.55);
            z-index: 19;
        }

        .assistant-actions button:hover::before,
        .assistant-actions button:hover::after,
        .assistant-actions button:focus-visible::before,
        .assistant-actions button:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }

        .assistant-actions button:hover::before,
        .assistant-actions button:focus-visible::before {
            transform: translate(0, -50%);
        }

        .assistant-actions .material-symbols-outlined {
            font-size: 18px;
            line-height: 1;
        }

        .workspace-utility {
            position: absolute;
            right: 24px;
            bottom: 24px;
            z-index: 30;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--dashboard-muted);
            font-size: 12px;
            font-weight: 500;
        }

        .workspace-utility button {
            position: relative;
            width: 28px;
            height: 28px;
            display: grid;
            place-items: center;
            border: 1px solid transparent;
            border-radius: 999px;
        }

        #workspacePresentationBtn::before,
        #workspacePresentationBtn::after {
            position: absolute;
            left: 50%;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
        }

        #workspacePresentationBtn::before {
            content: attr(data-tooltip);
            bottom: calc(100% + 9px);
            transform: translate(-50%, 4px);
            min-width: max-content;
            padding: 7px 9px;
            border: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 8px;
            background: rgba(17, 17, 18, 0.96);
            box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
            color: var(--dashboard-text);
            font: 700 11px/1 var(--font-dashboard);
            letter-spacing: 0.02em;
            white-space: nowrap;
        }

        #workspacePresentationBtn::after {
            content: "";
            bottom: calc(100% + 4px);
            width: 8px;
            height: 8px;
            transform: translate(-50%, 4px) rotate(45deg);
            background: rgba(17, 17, 18, 0.96);
            border-right: 1px solid rgba(82, 81, 96, 0.58);
            border-bottom: 1px solid rgba(82, 81, 96, 0.58);
        }

        #workspacePresentationBtn:hover::before,
        #workspacePresentationBtn:hover::after,
        #workspacePresentationBtn:focus-visible::before,
        #workspacePresentationBtn:focus-visible::after {
            opacity: 1;
            visibility: visible;
        }

        #workspacePresentationBtn:hover::before,
        #workspacePresentationBtn:focus-visible::before {
            transform: translate(-50%, 0);
        }

        #workspacePresentationBtn:hover::after,
        #workspacePresentationBtn:focus-visible::after {
            transform: translate(-50%, 0) rotate(45deg);
        }

        .workspace-utility button:last-child {
            border-color: var(--dashboard-outline);
        }

        .workspace-utility .material-symbols-outlined {
            font-size: 18px;
        }

        .workspace-help-popover {
            position: absolute;
            right: 0;
            bottom: calc(100% + 12px);
            width: min(330px, calc(100vw - 48px));
            padding: 14px 15px;
            border: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 12px;
            background: rgba(24, 23, 25, 0.96);
            box-shadow: 0 22px 54px rgba(0, 0, 0, 0.44);
            color: var(--dashboard-text);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .workspace-help-popover.hidden {
            display: none;
        }

        .workspace-help-popover::after {
            content: "";
            position: absolute;
            right: 16px;
            bottom: -6px;
            width: 10px;
            height: 10px;
            transform: rotate(45deg);
            background: rgba(24, 23, 25, 0.96);
            border-right: 1px solid rgba(82, 81, 96, 0.58);
            border-bottom: 1px solid rgba(82, 81, 96, 0.58);
        }

        .workspace-help-popover strong {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 9px;
            color: var(--dashboard-text);
            font-size: 13px;
            letter-spacing: 0.02em;
        }

        .workspace-help-popover strong .material-symbols-outlined {
            width: 26px;
            height: 26px;
            display: grid;
            place-items: center;
            border: 1px solid rgba(192, 193, 255, 0.24);
            border-radius: 9px;
            background: rgba(192, 193, 255, 0.1);
            color: rgba(192, 193, 255, 0.95);
            font-size: 16px;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
        }

        .workspace-help-popover ol {
            display: grid;
            gap: 8px;
            margin: 0;
            padding-left: 18px;
        }

        .workspace-help-popover li {
            color: rgba(229, 226, 227, 0.84);
            font-size: 12px;
            line-height: 1.45;
        }

        .workspace-help-popover p {
            margin: 11px 0 0;
            padding-top: 10px;
            border-top: 1px solid rgba(229, 226, 227, 0.08);
            color: rgba(199, 196, 215, 0.74);
            font-size: 12px;
            line-height: 1.45;
        }

        .workspace-presentation-hint {
            position: fixed;
            left: 50%;
            top: 50%;
            z-index: 2000;
            transform: translate(-50%, -50%) scale(0.96);
            padding: 22px 34px;
            border: 1px solid rgba(229, 226, 227, 0.16);
            border-radius: 18px;
            background:
                radial-gradient(circle at 16% 10%, rgba(192, 193, 255, 0.16), transparent 38%),
                radial-gradient(circle at 88% 78%, rgba(78, 222, 163, 0.07), transparent 34%),
                linear-gradient(180deg, rgba(34, 33, 36, 0.86), rgba(18, 18, 20, 0.74)),
                rgba(18, 18, 20, 0.62);
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
            color: rgba(245, 243, 255, 0.94);
            font: 800 34px/1.1 var(--font-dashboard);
            letter-spacing: 0.02em;
            isolation: isolate;
            overflow: hidden;
            opacity: 0;
            pointer-events: none;
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            transition: opacity 0.22s ease, transform 0.22s ease;
        }

        .workspace-presentation-hint::before,
        .workspace-presentation-hint::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            pointer-events: none;
        }

        .workspace-presentation-hint::before {
            background:
                linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.05) 38%, transparent 58%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%);
            opacity: 0.5;
            transform: translateX(-42%);
            animation: workspaceNotesSheen 18s ease-in-out infinite;
        }

        .workspace-presentation-hint::after {
            background-image: radial-gradient(circle, rgba(199, 196, 215, 0.1) 1px, transparent 1.2px);
            background-size: 18px 18px;
            opacity: 0.14;
            mask-image: linear-gradient(180deg, #000, transparent 90%);
        }

        .workspace-presentation-hint.show {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .workspace-presentation-exit {
            position: fixed;
            right: 18px;
            bottom: 18px;
            z-index: 2001;
            display: grid;
            width: 34px;
            height: 34px;
            padding: 0;
            place-items: center;
            border: 1px solid rgba(229, 226, 227, 0.1);
            border-radius: 10px;
            background: rgba(24, 23, 26, 0.46);
            color: rgba(229, 226, 227, 0.48);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            cursor: pointer;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition:
                opacity 0.2s ease,
                color 0.2s ease,
                background 0.2s ease,
                border-color 0.2s ease,
                transform 0.2s ease;
        }

        .workspace-presentation-exit .material-symbols-outlined {
            font-size: 18px;
        }

        body.workspace-presentation .workspace-presentation-exit {
            opacity: 0.68;
            visibility: visible;
            pointer-events: auto;
        }

        .workspace-presentation-exit:hover,
        .workspace-presentation-exit:focus-visible {
            color: rgba(245, 243, 255, 0.92);
            background: rgba(35, 34, 39, 0.78);
            border-color: rgba(192, 193, 255, 0.3);
            opacity: 1;
            transform: translateY(-1px);
            outline: none;
        }

        body.workspace-presentation .workspace-header,
        body.workspace-presentation .workspace-notes,
        body.workspace-presentation .workspace-assistant,
        body.workspace-presentation .workspace-utility,
        body.workspace-presentation .workspace-text-menu {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        body.workspace-presentation .workspace-header {
            display: none;
            height: 0;
            flex-basis: 0;
            border-bottom: 0;
        }

        body.workspace-presentation .workspace-shell {
            flex: 1 1 auto;
            grid-template-columns: 1fr;
        }

        body.workspace-presentation .workspace-center {
            grid-column: 1;
        }

        .workspace-text-menu {
            position: fixed;
            z-index: 30;
            min-width: 132px;
            display: grid;
            gap: 3px;
            padding: 6px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 9px;
            background: rgba(28, 27, 28, 0.98);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
        }

        .workspace-text-menu > [hidden] {
            display: none !important;
        }

        .workspace-text-menu.hidden {
            display: none;
        }

        .workspace-text-menu button {
            min-height: 32px;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 0;
            border-radius: 7px;
            background: transparent;
            color: var(--dashboard-muted);
            padding: 0 9px;
            font: 500 12px/1 var(--font-dashboard);
            text-align: left;
            cursor: pointer;
        }

        .workspace-text-menu button:hover {
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.72);
        }

        .workspace-text-menu .material-symbols-outlined {
            font-size: 17px;
        }

        .workspace-text-submenu {
            position: relative;
        }

        .workspace-text-menu .workspace-text-submenu-trigger {
            width: 100%;
        }

        .workspace-text-submenu-arrow {
            margin-left: auto;
            color: rgba(199, 196, 215, 0.5);
        }

        .workspace-text-submenu-menu {
            position: absolute;
            top: -6px;
            left: calc(100% + 6px);
            min-width: 174px;
            display: none;
            gap: 3px;
            padding: 6px;
            border: 1px solid rgba(70, 69, 84, 0.55);
            border-radius: 9px;
            background: rgba(28, 27, 28, 0.98);
            box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(18px);
        }

        .workspace-text-submenu:hover .workspace-text-submenu-menu,
        .workspace-text-submenu:focus-within .workspace-text-submenu-menu {
            display: grid;
        }

        .workspace-text-submenu-menu button {
            white-space: nowrap;
        }

        .workspace-text-submenu-menu button > .material-symbols-outlined {
            color: rgba(205, 206, 255, 0.76);
            font-size: 16px;
        }

        .workspace-text-submenu-menu button:hover > .material-symbols-outlined {
            color: #d7d8ff;
        }

        .workspace-modal-overlay {
            background: rgba(7, 7, 8, 0.72);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .workspace-modal-content {
            border: 1px solid rgba(82, 81, 96, 0.58);
            border-radius: 10px;
            background:
                linear-gradient(180deg, rgba(38, 37, 40, 0.96), rgba(25, 24, 26, 0.96)),
                rgba(28, 27, 28, 0.96);
            box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
            color: var(--dashboard-text);
            padding: 18px;
        }

        .workspace-modal-content.workspace-choice-modal {
            max-width: 520px !important;
            border-radius: 12px;
            padding: 20px 22px 22px;
        }

        .workspace-modal-content .modal-header {
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(70, 69, 84, 0.44);
        }

        .workspace-modal-content h2 {
            margin: 0;
            color: var(--dashboard-text);
            font: 700 14px/1 var(--font-dashboard);
            letter-spacing: 0;
        }

        .workspace-modal-content #customConfirmMessage,
        .workspace-modal-content #customPromptMessage {
            color: rgba(199, 196, 215, 0.72) !important;
            font: 500 13px/1.45 'Inter', var(--font-main) !important;
        }

        .workspace-choice-modal #customConfirmMessage {
            margin-bottom: 18px !important;
            max-width: 390px;
        }

        .workspace-modal-content:has(.validation-summary) {
            max-width: 500px !important;
        }

        .validation-summary {
            display: grid;
            gap: 12px;
            color: rgba(224, 222, 236, 0.86);
        }

        .validation-summary-intro {
            margin: 0 0 2px;
            color: rgba(199, 196, 215, 0.78);
            font-size: 13px;
            line-height: 1.55;
        }

        .validation-issue {
            display: grid;
            grid-template-columns: 32px minmax(0, 1fr);
            gap: 11px;
            align-items: start;
            padding: 13px;
            border: 1px solid rgba(103, 101, 121, 0.28);
            border-radius: 10px;
            background: rgba(13, 13, 15, 0.38);
        }

        .validation-issue-icon {
            width: 32px;
            height: 32px;
            display: grid;
            place-items: center;
            border-radius: 8px;
            background: rgba(192, 193, 255, 0.1);
            color: #c0c1ff;
            font-size: 18px !important;
        }

        .validation-issue-label {
            display: block;
            margin: 1px 0 5px;
            color: rgba(244, 243, 250, 0.94);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .validation-issue p {
            margin: 0;
            color: rgba(199, 196, 215, 0.72);
            font-size: 12px;
            line-height: 1.5;
        }

        .validation-language-flow {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .validation-language-chip {
            display: inline-flex;
            flex-direction: column;
            gap: 2px;
            min-width: 92px;
            padding: 7px 10px;
            border: 1px solid rgba(103, 101, 121, 0.3);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.025);
            color: rgba(224, 222, 236, 0.86);
            font-size: 12px;
            font-weight: 650;
        }

        .validation-language-chip small {
            color: rgba(199, 196, 215, 0.5);
            font-size: 9px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .validation-language-chip.detected {
            border-color: rgba(63, 198, 191, 0.34);
            background: rgba(63, 198, 191, 0.07);
        }

        .validation-language-arrow {
            color: rgba(199, 196, 215, 0.42);
            font-size: 17px !important;
        }

        .validation-summary-hint {
            display: flex;
            align-items: center;
            gap: 7px;
            margin: 2px 2px 0;
            color: rgba(199, 196, 215, 0.58);
            font-size: 11px;
            line-height: 1.45;
        }

        .validation-summary-hint .material-symbols-outlined {
            color: rgba(239, 196, 100, 0.78);
            font-size: 16px;
        }

        .workspace-modal-content:has(.validation-summary) .modal-actions {
            grid-template-columns: minmax(130px, 1.2fr) minmax(100px, 0.8fr);
            max-width: 300px;
        }

        .workspace-modal-input {
            width: 100%;
            min-height: 104px;
            resize: vertical;
            border: 1px solid rgba(82, 81, 96, 0.42) !important;
            border-radius: 8px;
            background: rgba(18, 18, 19, 0.86);
            color: var(--dashboard-text);
            padding: 10px 12px;
            font: 500 13px/1.45 'Inter', var(--font-main);
            outline: none;
        }

        .workspace-modal-input:focus {
            border-color: rgba(82, 81, 96, 0.42) !important;
            box-shadow: none;
        }

        .workspace-modal-select {
            width: 100%;
            margin-top: 8px;
            padding: 11px 38px 11px 12px;
            border: 1px solid rgba(82, 81, 96, 0.42);
            border-radius: 8px;
            background: rgba(18, 18, 19, 0.86);
            color: var(--dashboard-text);
            font: 500 13px/1.45 'Inter', var(--font-main);
            cursor: pointer;
            outline: none;
        }

        .workspace-modal-field {
            display: block;
            margin-top: 16px;
            color: rgba(224, 222, 236, 0.88);
            font: 600 12px/1.3 'Inter', var(--font-main);
        }

        .workspace-modal-select:focus {
            border-color: rgba(142, 144, 255, 0.7);
            box-shadow: 0 0 0 3px rgba(142, 144, 255, 0.12);
        }

        .workspace-modal-content .modal-actions {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }

        .workspace-choice-modal .modal-actions {
            display: grid;
            grid-template-columns: 1.24fr 1fr 1.12fr 0.78fr;
            gap: 10px;
            align-items: stretch;
            margin-top: 18px;
        }

        .workspace-modal-content .btn-cancel,
        .workspace-modal-content .btn-confirm {
            min-height: 36px;
            border-radius: 8px;
            padding: 0 14px;
            font: 700 12px/1 var(--font-dashboard);
            box-shadow: none;
        }

        .workspace-choice-modal .btn-cancel,
        .workspace-choice-modal .btn-confirm {
            min-height: 42px;
            padding: 0 12px;
            white-space: nowrap;
            line-height: 1.1;
        }

        .workspace-sign-in-choice-modal {
            position: relative;
            max-width: 430px !important;
            overflow: hidden;
            border-color: rgba(192, 193, 255, 0.34);
            background:
                radial-gradient(circle at 90% 0%, rgba(192, 193, 255, 0.14), transparent 42%),
                linear-gradient(145deg, rgba(39, 38, 44, 0.98), rgba(25, 24, 27, 0.99));
            box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.035);
        }

        .workspace-sign-in-choice-modal::before {
            content: '';
            position: absolute;
            inset: 0 0 auto;
            height: 2px;
            background: linear-gradient(90deg, transparent 4%, #aeb0ff 50%, transparent 96%);
            opacity: 0.8;
        }

        .workspace-sign-in-choice-modal .modal-header {
            display: grid;
            grid-template-columns: 42px minmax(0, 1fr);
            column-gap: 14px;
            align-items: center;
            margin-bottom: 18px;
            padding: 0 0 18px;
            border-bottom-color: rgba(192, 193, 255, 0.13);
        }

        .workspace-sign-in-choice-modal .modal-header::before {
            content: 'lock_open';
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            align-self: center;
            border: 1px solid rgba(192, 193, 255, 0.28);
            border-radius: 12px;
            background: rgba(192, 193, 255, 0.1);
            color: #d7d8ff;
            font: 400 21px/1 'Material Symbols Outlined';
            font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
        }

        .workspace-sign-in-choice-modal .modal-header h2 {
            margin: 0;
            color: #f2f0f1;
            font: 650 19px/1.2 var(--font-dashboard);
            letter-spacing: -0.02em;
        }

        .workspace-sign-in-choice-modal #customConfirmMessage {
            margin: 0 !important;
            color: rgba(199, 196, 215, 0.82) !important;
            font: 500 13px/1.55 var(--font-dashboard) !important;
        }

        .workspace-sign-in-choice-modal .sign-in-choice-kicker {
            display: block;
            margin-bottom: 6px;
            color: #d7d8ff;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.055em;
            text-transform: uppercase;
        }

        .workspace-sign-in-choice-modal .modal-actions {
            grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
            gap: 10px;
            margin-top: 24px;
        }

        .workspace-sign-in-choice-modal .btn-confirm,
        .workspace-sign-in-choice-modal .btn-cancel {
            min-height: 44px;
            font-weight: 600;
        }

        .workspace-sign-in-choice-modal .btn-confirm {
            border-color: rgba(192, 193, 255, 0.58);
            background: linear-gradient(135deg, rgba(192, 193, 255, 0.3), rgba(144, 146, 230, 0.2));
        }

        .workspace-sign-in-choice-modal .btn-confirm:hover {
            transform: translateY(-1px);
            background: linear-gradient(135deg, rgba(192, 193, 255, 0.4), rgba(144, 146, 230, 0.28));
            box-shadow: 0 10px 24px rgba(110, 112, 210, 0.16);
        }

        .workspace-modal-content .btn-cancel {
            border: 1px solid rgba(82, 81, 96, 0.48);
            color: var(--dashboard-muted);
            background: transparent;
        }

        .workspace-modal-content .btn-cancel:hover {
            border-color: rgba(192, 193, 255, 0.38);
            color: var(--dashboard-text);
            background: rgba(53, 52, 54, 0.46);
        }

        .workspace-modal-content .btn-confirm {
            border: 1px solid rgba(192, 193, 255, 0.4);
            color: var(--dashboard-text);
            background: rgba(192, 193, 255, 0.16);
        }

        .workspace-modal-content .btn-confirm:hover {
            background: rgba(192, 193, 255, 0.24);
            box-shadow: none;
        }

        @media (max-width: 620px) {
            .workspace-modal-content.workspace-choice-modal {
                max-width: min(420px, calc(100vw - 28px)) !important;
            }

            .workspace-choice-modal .modal-actions {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 1050px) and (min-width: 901px) {
            .dashboard-hero {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .sentence-flow-visual {
                width: min(520px, 100%);
                margin: -10px auto -14px;
            }
        }

        @media (max-width: 900px) {
            .app-topbar {
                padding: 0 16px;
            }

            .topbar-brand {
                font-size: 24px;
            }

            .topbar-plan,
            .project-rail {
                display: none;
            }

            .topbar-actions {
                display: flex;
                margin-right: 104px;
            }

            body.is-authenticated .topbar-actions {
                margin-right: 56px;
            }

            .guest-status {
                width: 34px;
                min-width: 34px;
                justify-content: center;
                padding: 0;
            }

            .guest-status > span:last-child {
                display: none;
            }

            .ui-language-trigger {
                width: 40px;
                min-width: 40px;
                padding: 0;
            }

            .ui-language-value,
            .ui-language-chevron {
                display: none;
            }

            .hud-user-controls {
                right: 16px;
            }

            .dashboard-main {
                width: 100vw;
                margin-left: 0;
            }

            .dashboard-main,
            .dashboard-main:has(.controls > *) {
                grid-template-columns: 1fr;
                height: auto;
                overflow-y: auto;
            }

            .dashboard-main .preview-area {
                padding: 24px 16px;
            }

            .dashboard-workspace {
                gap: 40px;
            }

            .dashboard-hero {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .sentence-flow-visual {
                width: min(520px, 100%);
                margin: -8px auto -12px;
            }

            .prompt-actions {
                align-items: stretch;
                flex-direction: column;
            }

            .prompt-left-actions,
            .prompt-right-actions {
                justify-content: space-between;
            }

            .dashboard-main .controls:has(*) {
                display: flex;
                border-left: 0;
                border-top: 1px solid rgba(70, 69, 84, 0.35);
            }

            .workspace-shell {
                grid-template-columns: 1fr;
                overflow: hidden;
            }

            .workspace-assistant {
                display: none;
            }

            .workspace-notes {
                position: absolute;
                top: 12px;
                left: 12px;
                bottom: 12px;
                width: min(320px, calc(100vw - 24px));
                height: auto;
                border: 1px solid rgba(82, 81, 96, 0.58);
                border-radius: 10px;
                box-shadow: 0 18px 46px rgba(0, 0, 0, 0.4);
            }

            .workspace-shell.notes-collapsed .workspace-notes {
                width: 36px;
                height: 36px;
                border: 0;
                border-radius: 8px;
                background: transparent;
                box-shadow: none;
            }

            .workspace-notes-resizer {
                display: none;
            }

            .workspace-center {
                grid-column: 1;
                min-height: calc(100vh - 57px);
                padding: 0;
            }

            .workspace-header-actions {
                gap: 6px;
            }

            .workspace-title {
                max-width: 42vw;
            }
        }
