    <style>
        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            overflow: hidden;
            height: 100vh;
            width: 100vw;
            background-color: #1a1a1a; /* Almost black background */
            color: #555;
            position: relative;
        }

        #canvas-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            background-color: #1a1a1a; /* Initial canvas wrapper background */
            transition: background-color 0.3s ease-in-out; /* Smooth transition for background */
        }

        canvas {
            display: block;
            width: 100%;
            height: 100%;
        }

        .panel {
            background-color: rgba(0, 0, 0, 0.95);
            border-radius: 10px;
            padding: 1rem;
            margin: 1.25rem;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            overflow-y: auto;
            position: absolute;
            z-index: 10;
        }
        .panel-header {
            font-weight: 600;
            margin-bottom: 0.6rem;
            color: #888;
            border-bottom: 1px solid #333;
            padding-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .input-group {
            margin-bottom: 0.4rem;
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        .input-group label {
            margin-bottom: 0;
            font-size: 0.7rem;
            color: #888;
            flex-shrink: 0;
        }
        .input-group input[type="range"],
        .input-group input[type="number"],
        .input-group input[type="text"],
        .input-group input[type="color"],
        .input-group select {
            flex-grow: 1;
            background-color: #333;
            border: 1px solid #444;
            border-radius: 4px;
            padding: 0.3rem 0.5rem;
            color: #888;
            font-size: 0.8rem;
        }
        .input-group input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #6366f1;
            cursor: pointer;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        }
        .input-group input[type="range"]::-moz-range-thumb {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #6366f1;
            cursor: pointer;
            box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
        }
        .btn {
            background-color: #4f46e5;
            color: white;
            padding: 0.5rem .5rem;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        .btn:hover {
            background-color: #4338ca;
        }
        .btn-secondary {
            background-color: black !important;
            color: #e0e0e0;
        }
        .btn-secondary:hover {
            background-color: #27272a;
        }
        .object-list-item {
            padding: 0.4rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            margin-bottom: 0.25rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .object-list-item:hover {
            background-color: #333;
        }
        .object-list-item.selected {
            background-color: #4f46e5;
            color: white;
        }
        .object-list-item.selected:hover {
            background-color: #4338ca;
        }
        .delete-btn {
            background-color: #dc2626;
            color: white;
            padding: 0.1rem 0.4rem; /* Adjusted padding for icon */
            border-radius: 4px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            line-height: 1; /* Ensure icon is centered vertically */
        }
        .delete-btn:hover {
            background-color: #b91c1c;
        }
        .progress-circle {
            position: relative;
            width: 78px;
            height: 98px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        .progress-circle svg {
            transform: rotate(-90deg);
            width: 78px;
            height: 78px;
            margin-bottom: 10px;
        }
        .progress-circle .circle-bg {
            stroke: #444;
            stroke-width: 6;
            fill: none;
        }
        .progress-circle .circle-progress {
            stroke-width: 6;
            fill: none;
            stroke-linecap: round;
            transition: stroke-dashoffset 0.3s ease-out;
        }
        .progress-circle .progress-text {
            position: absolute;
            top: 39px;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 1rem;
            font-weight: 500;
            color: #888;
            text-align: center;
        }
        .progress-circle .node-label {
            font-size: 0.8rem;
            color: #444;
            margin-top: 5px;
        }

        .node-link-indicator {
            width: 12px;
            height: 12px;
            background-color: #9ca3af;
            border-radius: 50%;
            display: inline-block;
            margin-right: 0.25rem;
            flex-shrink: 0;
            cursor: pointer;
            border: 1px solid transparent;
            transition: border-color 0.1s ease-in-out;
        }
        .node-link-indicator:hover {
            border-color: #6366f1;
        }

        #node-selector-overlay {
            background-color: rgba(0, 0, 0, 0.9);
            border-radius: 8px;
            padding: 0.75rem;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
            z-index: 9999;
            position: absolute;
            flex-direction: column;
            gap: 0.5rem;
        }
        #node-selector-overlay.hidden {
            display: none;
        }
        .node-selector-option {
            display: flex;
            align-items: center;
            padding: 0.5rem;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
        }
        .node-selector-option:hover {
            background-color: #333;
        }
        .node-selector-option .node-label {
            margin-left: 0.5rem;
            font-size: 0.9rem;
            color: #888;
        }
        .node-selector-option .node-circle-preview {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background-color: #6366f1;
            flex-shrink: 0;
        }
        .node-selector-option.unlink-option {
            background-color: #dc2626;
            color: white;
            justify-content: center;
            font-weight: 500;
        }
        .node-selector-option.unlink-option:hover {
            background-color: #b91c1c;
        }


        #mxr-logo-wrapper {
            top: 2.75rem;
            left: 2.9rem;
            /* Adjust width/height if needed */
            display: flex;
            align-items: center;
            background-color: rgba(0, 0, 0, 0);
        }

        #left-panel {
            width: 250px;
            border-radius: 12px;
            top: .8rem;
            left: .8rem; /* Adjusted left position */
            bottom: .8rem;
        }

        #right-panel {
            width: 300px;
            border-radius: 12px;
            top: .8rem;
            right: .8rem;
            bottom: .8rem;
            display: flex;
            flex-direction: row-reverse; /* Changed from row to row-reverse */
            padding: 0;
        }

        #right-panel-tabs {
            width: 60px;
            flex-shrink: 0;
            background-color: rgba(0, 0, 0, 0.8);
            border-top-left-radius: 10px; /* Changed from 0 to 10px */
            border-bottom-left-radius: 10px; /* Changed from 0 to 10px */
            border-top-right-radius: 0; /* Changed from 10px to 0 */
            border-bottom-right-radius: 0; /* Changed from 10px to 0 */
            padding-top: 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            overflow-y: auto;
        }

        .tab-button {
            width: 100%;
            padding: 0.75rem 0.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #c0c0c0;
            font-size: 0.75rem;
            text-align: center;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
            border-left: 3px solid transparent;
            border-right: 3px solid transparent;
        }
        .tab-button:hover {
            background-color: #222;
            color: #e0e0e0;
        }
        .tab-button.active {
            background-color: rgba(0, 0, 0, 0.95);
            color: white;
            border-left-color: transparent; /* Changed from #6366f1 to transparent */
            border-right-color: #6366f1; /* Changed from transparent to #6366f1 */
        }
        .tab-button .tab-icon {
            font-size: 1.5rem;
            margin-bottom: 0.25rem;
        }

        #right-panel-content-wrapper {
            flex-grow: 1;
            padding: 1rem;
            overflow-y: auto;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            background-color: rgba(0, 0, 0, 0.95);
        }

        #properties-section,
        #asset-library-section,
        #environment-lighting-section,
        #shader-effects-section,
        #fluid-simulation-section,
        #camera-section { /* Removed scene-section */
            display: none;
        }
        #properties-section.active,
        #asset-library-section.active,
        #environment-lighting-section.active,
        #shader-effects-section.active,
        #fluid-simulation-section.active,
        #camera-section.active { /* Removed scene-section */
            display: block;
        }


        .duration-input {
            width: 80px !important;
        }

        .collapsible-section {
            margin-bottom: 0.25rem;
        }
        .collapsible-header {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            cursor: pointer;
            padding: 0.25rem;
            border-bottom: 1px solid #333;
            transition: background-color 0.2s ease-in-out;
        }
        .collapsible-header:hover {
            background-color: rgba(51, 51, 51, 0.5);
            border-radius: 4px;
        }

        .collapsible-header .progress-circle-inline {
            position: relative;
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .collapsible-header .progress-circle-inline svg {
            width: 40px;
            height: 40px;
            transform: rotate(-90deg);
        }
        .collapsible-header .progress-circle-inline .circle-bg,
        .collapsible-header .progress-circle-inline .circle-progress {
            stroke-width: 4;
        }
        .collapsible-header .progress-circle-inline .progress-text-inline {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 0.7rem;
            font-weight: 500;
            color: #e0e0e0;
        }
        .collapsible-header .progress-circle-inline .node-label {
            display: none;
        }

        .collapsible-header .collapse-icon {
            margin-left: auto;
            transition: transform 0.2s ease-in-out;
        }
        .collapsible-header .collapse-icon.rotated {
            transform: rotate(-90deg);
        }

        .collapsible-content.hidden {
            display: none;
        }

        #material-presets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(60px, 1fR));
            gap: 10px;
            padding: 10px 0;
            border-top: 1px solid #333;
            margin-top: 10px;
        }

        .material-preset-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 5px;
            border-radius: 8px;
            background-color: #222;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .material-preset-item:hover {
            background-color: #333;
            transform: translateY(-2px);
        }

        .material-preset-item canvas {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 1px solid #555;
            margin-bottom: 5px;
            background-color: #1a1a1a;
        }

        .material-preset-item span {
            font-size: 0.7rem;
            color: #c0c0c0;
            text-align: center;
            word-break: break-word;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: black;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background: #555;
            border-radius: 10px;
            border: 2px solid black;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #777;
        }

        #vertex-shader-input, #fragment-shader-input {
            background-color: #0a0a0a; /* Almost black */
            color: #ffffff; /* White text */
            height: 120px; /* Increased height */
            min-height: 120px; /* Ensure minimum height */
            resize: vertical; /* Allow vertical resizing */
        }

        #info-icon {
            cursor: pointer;
            font-size: 1.5rem;
            font-weight: bold;
            color: #9ca3af; /* Flat gray color */
            transition: color 0.2s ease-in-out;
        }
        #info-icon:hover {
            color: #ffffff;
        }

        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        .modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        .modal-content {
            background-color: #1a1a1a;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            max-width: 500px;
            width: 90%;
            position: relative;
            color: #e0e0e0;
            text-align: center;
        }
        .modal-close-btn {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #9ca3af;
            cursor: pointer;
            transition: color 0.2s ease-in-out;
        }
        .modal-close-btn:hover {
            color: #ffffff;
        }
        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #f0f0f0;
        }
        .modal-body {
            font-size: 0.75rem;
            line-height: 1.5;
            margin-bottom: 1.5rem;
            color: #c0c0c0;
            text-align: left; /* Changed to left for better readability in generic modal */
        }
        .modal-footer {
            font-size: 0.8rem;
            color: #888;
        }

        /* New styles for panel visibility toggle */
        .hidden-panel {
            display: none !important;
        }
        .hidden-content {
            display: none !important;
        }

        .eye-toggle-btn {
            background: none;
            border: none;
            font-size: 1rem;
            color: #9ca3af; /* Default color for visible */
            cursor: pointer;
            margin-right: 0.5rem;
            padding: 0.2rem;
            border-radius: 4px;
            transition: color 0.2s ease-in-out;
        }
        .eye-toggle-btn:hover {
            color: #e0e0e0;
            background-color: rgba(255,255,255,0.1);
        }
        .eye-toggle-btn.hidden-icon {
            color: #555; /* Dimmed color for hidden */
        }

        /* Login Modal Specific Styles */
        #login-modal-overlay, #code-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 20000; /* Higher than other modals */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        #login-modal-overlay.visible, #code-modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        #login-modal-content, #code-modal-content {
            background-color: #1a1a1a;
            padding: 2rem;
            border-radius: 12px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            max-width: 400px;
            width: 90%;
            color: #e0e0e0;
            text-align: center;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        #login-modal-content .modal-title, #code-modal-content .modal-title {
            font-size: 1.6rem;
            font-weight: 700;
            color: #f0f0f0;
            margin-bottom: 1.5rem;
        }
        #login-email-input, #code-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #444;
            border-radius: 8px;
            background-color: #333;
            color: #e0e0e0;
            font-size: 1rem;
            text-align: center;
        }
        #login-email-input::placeholder, #code-input::placeholder {
            color: #888;
        }
        #login-email-input:focus, #code-input:focus {
            outline: none;
            border-color: #6366f1;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
        }
        #mailing-list-checkbox-group {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: #c0c0c0;
        }
        #mailing-list-checkbox-group input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #6366f1;
        }
        #login-button, #verify-code-button {
            width: 100%;
            padding: 0.8rem 1.5rem;
            background-color: #4f46e5;
            color: white;
            border-radius: 8px;
            cursor: pointer;
            transition: background-color 0.2s ease-in-out;
            font-size: 1.1rem;
            font-weight: 600;
            margin-top: 1rem;
        }
        #login-button:hover:not(:disabled), #verify-code-button:hover:not(:disabled) {
            background-color: #4338ca;
        }
        #login-button:disabled, #verify-code-button:disabled {
            background-color: #333;
            color: #666;
            cursor: not-allowed;
        }
        #login-error-message, #code-error-message {
            color: #dc2626;
            font-size: 0.8rem;
            margin-top: 0.5rem;
            min-height: 1rem; /* Reserve space */
        }
        #login-success-message {
            color: #22c55e;
            font-size: 0.9rem;
            margin-top: 0.5rem;
            min-height: 1rem;
        }

        /* LLM Response Modal */
        #llm-response-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        }
        #llm-response-modal-overlay.visible {
            opacity: 1;
            visibility: visible;
        }
        #llm-response-modal-content {
            background-color: #1a1a1a;
            padding: 1.5rem;
            border-radius: 12px;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            max-width: 600px; /* Wider for text */
            width: 90%;
            position: relative;
            color: #e0e0e0;
            display: flex;
            flex-direction: column;
        }
        #llm-response-modal-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #f0f0f0;
            text-align: center;
        }
        #llm-response-modal-body {
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1rem;
            color: #c0c0c0;
            text-align: left;
            max-height: 300px; /* Scrollable content */
            overflow-y: auto;
            white-space: pre-wrap; /* Preserve whitespace and line breaks */
            word-wrap: break-word; /* Break long words */
            padding-right: 0.5rem; /* Space for scrollbar */
        }
        #llm-loading-indicator {
            display: none;
            text-align: center;
            color: #6366f1;
            font-size: 1rem;
            margin-top: 1rem;
        }
        #llm-loading-indicator.visible {
            display: block;
        }
        .spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-top: 4px solid #6366f1;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
            margin: 0 auto 0.5rem auto;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }


        @media (max-width: 768px) {
            #mxr-logo-wrapper {
                top: .8rem;
                left: .8rem;
                width: calc(100% - 1.6rem); /* Adjust width for full mobile width */
                justify-content: center; /* Center content horizontally */
            }

            #left-panel {
                width: calc(100% - 2.5rem);
                left: .8rem;
                right: .8rem;
                height: 150px;
                top: calc(1rem + 32px + 1rem); /* Below logo + its padding + some gap */
                bottom: .8rem;
            }
            #right-panel {
                top: calc(1rem + 150px + 1rem + 1rem);
                flex-direction: column;
            }
            #right-panel-tabs {
                width: 100%;
                flex-direction: row;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;
                border-bottom-left-radius: 0;
                border-bottom-right-radius: 0;
                padding: 0.5rem;
                justify-content: space-around;
            }
            .tab-button {
                border-left: none;
                border-right: none;
                border-bottom: 3px solid transparent;
            }
            .tab-button.active {
                border-left-color: transparent;
                border-right-color: transparent;
                border-bottom-color: #6366f1;
            }
            #right-panel-content-wrapper {
                border-top-left-radius: 0;
                border-top-right-radius: 0;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
            }
        }
    </style>