        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

        body {

            font-family: 'Inter', sans-serif;

            background-color: #000000;

            color: #858585;

        }



        .send-btn-style {
            color: #858585;
        }

        .send-btn-style:hover {
            color: #FFFFFF;
        }

        .send-btn-style:disabled {
            color: #666666;
            cursor: not-allowed;
        }



        .secondary-bg {
            background-color: #111111;
        }

        .tertiary-bg {
            background-color: #222222;
        }

        .border-color {
            border-color: #333333;
        }

        [data-tooltip] {
            position: relative;
            cursor: pointer;
        }

        #prompt-input::placeholder,
        #expand-prompt-input::placeholder {
            color: #858585;
        }

        #prompt-input,
        #expand-prompt-input {
            transition: height 0.2s ease-in-out;
            max-height: 200px;
            color: #858585;
        }



        #prompt-input:focus,
        #expand-prompt-input:focus {

            color: #FFFFFF;

        }



        #prompt-input::-webkit-scrollbar,
        #expand-prompt-input::-webkit-scrollbar {

            width: 8px;

        }

        #prompt-input::-webkit-scrollbar-track,
        #expand-prompt-input::-webkit-scrollbar-track {

            background: transparent;

        }

        #prompt-input::-webkit-scrollbar-thumb,
        #expand-prompt-input::-webkit-scrollbar-thumb {

            background-color: #858585;

            border-radius: 4px;

            border: 2px solid transparent;

            background-clip: content-box;

        }

        #prompt-input::-webkit-scrollbar-thumb:hover,
        #expand-prompt-input::-webkit-scrollbar-thumb:hover {

            background-color: #a0a0a0;

        }

        #prompt-input.has-text::placeholder,
        #expand-prompt-input.has-text::placeholder {

            color: #FFFFFF;

        }



        #image-display-container {

            background-color: #1a1a1a;

            overflow: visible;

            cursor: grab;

        }

        #image-display-container:active {

            cursor: grabbing;

        }

        #dot-animation-canvas {

            position: absolute;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            z-index: 0;

            transition: opacity 0.5s ease-in-out;

        }

        #canvas-content {

            position: relative;

            z-index: 1;

            width: 100%;

            height: 100%;

        }

        /* Image Node - wrapper with node handles */
        .canvas-image-node {
            position: absolute;
            cursor: grab;
            z-index: 5;
        }

        .canvas-image-node:hover {
            z-index: 10;
        }

        .canvas-image-node.selected {
            z-index: 15;
        }

        .canvas-image-inner {
            display: block;
            width: auto;
            max-width: 512px;
            max-height: 512px;
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
            transition: box-shadow 0.2s, border-color 0.2s;
            border: 3px solid transparent;
            user-select: none;
        }

        .canvas-image-inner.upscaled {
            max-width: none;
            max-height: none;
        }

        .canvas-image-node:hover .canvas-image-inner {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
        }

        .canvas-image-node.selected .canvas-image-inner,
        .canvas-image-node.image-selected .canvas-image-inner {
            border-color: #4a9eff;
            box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.4);
        }

        .canvas-image-node.multi-selected .canvas-image-inner {
            border-color: #4a9eff;
            box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.4);
        }

        /* Image Node Output Handle - always visible on top-right of image */
        .image-node-handle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #1a1a1a;
            border: 2px solid #22c55e;
            border-radius: 50%;
            cursor: crosshair;
            transition: all 0.15s;
            z-index: 25;
            top: 8px;
            right: 8px;
        }

        .image-node-handle:hover {
            transform: scale(1.4);
            background: #22c55e;
            box-shadow: 0 0 8px #22c55e;
        }

        .image-node-handle.connected {
            background: #22c55e;
        }

        /* Legacy canvas-image support */
        .canvas-image {
            position: absolute;
            width: auto;
            height: auto;
            max-width: 512px;
            max-height: 512px;
            object-fit: contain;
            cursor: pointer;
            border: 3px solid transparent;
            border-radius: 12px;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
            transition: border-color 0.2s, box-shadow 0.2s;
            user-select: none;
        }

        .canvas-image.upscaled {
            max-width: none;
            max-height: none;
        }

        .canvas-image:hover {
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
        }

        .canvas-image.selected {
            border-color: #4a9eff;
            box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.4);
            z-index: 10;
        }

        .canvas-image.multi-selected {
            border-color: #4a9eff;
            box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.4);
            z-index: 9;
        }

        #selection-box {

            position: absolute;

            border: 1px dashed #858585;

            background-color: rgba(133, 133, 133, 0.1);

            z-index: 100;

            pointer-events: none;

        }

        #placeholder-icon {
            color: #858585;
        }



        .tui-image-editor-container {
            background-color: #1e1e1e;
        }

        .tui-image-editor-header {
            background-color: #2a2a2a !important;
        }

        .tui-image-editor-header-logo,
        .tui-image-editor-help-menu {
            display: none !important;
        }

        .tui-image-editor-header-buttons button {

            background-color: #333;
            border: 1px solid #858585;
            color: #858585;

            padding: 8px 16px;
            margin: 0 5px;
            border-radius: 6px;

        }

        .tui-image-editor-header-buttons button:hover {
            background-color: #444;
        }

        .tui-image-editor-menu,
        .tui-image-editor-submenu {
            background-color: #2a2a2a;
        }

        .tui-image-editor-menu svg.tui-image-editor-icon,
        .tui-image-editor-submenu svg.tui-image-editor-icon {
            fill: #858585;
        }

        .tui-image-editor-submenu-item .tui-image-editor-checkbox:checked+label,
        .tui-image-editor-range-wrap label {
            color: #858585;
        }



        /* TUI Cropper Aspect Ratio Buttons Fix */

        .tui-image-editor-submenu .tui-image-editor-button>label {

            color: #858585 !important;

        }

        .tui-image-editor-submenu .tui-image-editor-button:hover>label {

            color: #ffffff !important;

        }

        .tui-image-editor-partition>div {

            background-color: #444 !important;

        }

        /* TUI Cropper Handle Fix */

        .tui-image-editor-canvas-container {

            cursor: crosshair !important;

        }



        .custom-select {

            background-color: transparent;

            color: #858585;

            border: 1px solid #333333;

            border-radius: 8px;

            padding: 0.5rem;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;

            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            background-size: 1.25em;
            padding-right: 2.5rem;

        }

        .custom-select:hover {
            color: #ffffff;
            border-color: #4b4b4b;
            background-color: #1a1a1a;
        }

        .custom-select:focus {
            outline: none;
            color: #ffffff;
            border-color: #6b6b6b;
            box-shadow: 0 0 0 2px rgba(241, 128, 104, 0.2);
            background-color: #1a1a1a;
        }

        .custom-select option {
            background-color: #1a1a1a !important;
            color: #ffffff !important;
            padding: 0.5rem;
        }

        .custom-select option:hover,
        .custom-select option:focus,
        .custom-select option:checked {
            background-color: #2a2a2a !important;
            color: #ffffff !important;
        }

        .slider-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }



        #editor-panel {

            position: fixed;
            top: 0;
            right: 0;

            width: 90%;

            max-width: 400px;
            min-width: 320px;

            /* Responsive adjustments */
            @media (min-width: 640px) {
                max-width: 600px;
                width: 40%;
            }

            height: 100%;
            z-index: 50;
            transform: translateX(100%);

            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

            border-left: 1px solid #333333;

            background-color: #1e1e1e;

        }

        #editor-panel.active {
            transform: translateX(0);
        }

        #tui-image-editor-container-wrapper {
            width: 100%;
        }



        /* Custom Slider Styles */

        input[type=range] {

            -webkit-appearance: none;

            appearance: none;

            width: 100%;

            height: 4px;

            background: #333;

            outline: none;

            opacity: 0.7;

            transition: opacity .2s;

            border-radius: 2px;

        }

        input[type=range]:hover {

            opacity: 1;

        }

        input[type=range]::-webkit-slider-thumb {

            -webkit-appearance: none;

            appearance: none;

            width: 16px;

            height: 16px;

            background: #F18068;

            cursor: pointer;

            border-radius: 50%;

        }

        input[type=range]::-moz-range-thumb {

            width: 16px;

            height: 16px;

            background: #F18068;
        }

        .mockup-primary-bg {
            background-color: #111111;
        }

        .mockup-secondary-bg {
            background-color: #1E1E1E;
        }

        .mockup-border-color {
            border-color: #333333;
        }

        .mockup-btn-primary {
            background-color: transparent;
            border: 1px solid #F18068;
            color: #F18068;
        }

        .mockup-btn-primary-hover:hover {
            background-color: #F18068;
            color: white;
        }

        .mockup-btn-secondary {
            background-color: #333333;
            border: 1px solid #333333;
        }

        .mockup-btn-secondary-hover:hover {
            background-color: #444444;
            border-color: #444444;
        }



        /* Custom scrollbar */

        #mockup-modal ::-webkit-scrollbar {
            width: 8px;
        }

        #mockup-modal ::-webkit-scrollbar-track {
            background: #111111;
        }

        #mockup-modal ::-webkit-scrollbar-thumb {
            background-color: #444444;
            border-radius: 4px;
        }

        #mockup-modal ::-webkit-scrollbar-thumb:hover {
            background-color: #555555;
        }



        #mockup-modal input[type="file"] {
            display: none;
        }



        /* New Progress Steps */

        .mockup-progress {

            position: relative;

            display: flex;

            justify-content: space-between;

            width: 100%;

        }

        .mockup-bar {


            color: #e5e7eb;
            /* Bright text color for active/complete points */

        }

        .mockup-point.point--active {

            color: #F18068;

        }

        .mockup-point .bullet {

            z-index: 1;

            position: relative;

            background: #A0A0A0;

            width: 32px;

            height: 32px;

            border-radius: 100%;

            transition: all 0.3s ease;

            margin-left: auto;

            margin-right: auto;

            border: 4px solid #1E1E1E;

            display: flex;

            align-items: center;

            justify-content: center;

            font-size: 14px;

            font-weight: bold;

            color: #1E1E1E;

        }

        .mockup-point.point--complete .bullet {

            background: #e5e7eb;

            color: #1E1E1E;

        }

        .mockup-point.point--active .bullet {

            background: #1E1E1E;

            box-shadow: 0 0 0 4px #F18068;

            color: #F18068;

        }

        .mockup-point .label {

            position: absolute;

            top: 100%;

            left: 50%;

            margin-top: 16px;

            font-size: 0.75rem;
            /* 12px */

            font-weight: 600;

            text-transform: uppercase;

            white-space: nowrap;

            transform: translateX(-50%);

        }

        #mockup-dot-animation-canvas {

            position: fixed;

            top: 0;

            left: 0;

            width: 100%;

            height: 100%;

            z-index: -1;

            opacity: 0.5;

        }

        /* Custom Select & Textarea */

        .mockup-custom-select,
        #mockup-custom-person-input {

            background-color: #111111;

            border: 1px solid #333333;

        }

        .mockup-custom-select {

            -webkit-appearance: none;

            -moz-appearance: none;

            appearance: none;

            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");

            background-repeat: no-repeat;

            background-position: right 0.5rem center;

            background-size: 1.25em;

        }

        .mockup-custom-select option {
            background-color: #111111 !important;
            color: #ffffff !important;
            padding: 0.5rem;
        }

        .mockup-custom-select option:hover,
        .mockup-custom-select option:focus,
        .mockup-custom-select option:checked {
            background-color: #1a1a1a !important;
            color: #ffffff !important;
        }

        .material-card div.w-12 {

            display: flex;

            align-items: center;

            justify-content: center;

        }

        @media (max-width: 640px) {

            #mockup-modal header {
                padding-top: 2rem;
            }

            #mockup-modal main {
                padding: 1rem;
            }

            .mockup-progress .label {
                display: none;
            }

            .mockup-progress {
                max-width: 90%;
            }

            .mockup-button-group {
                flex-direction: column;
                gap: 0.5rem;
            }

            .mockup-button-group button {
                width: 100%;
            }

            #mockup-modal .grid-cols-2 {
                gap: 0.5rem;
            }

            #mockup-header-text-container h2 {
                font-size: 1.25rem;
            }

            #mockup-main-title {
                font-size: 1.25rem;
            }

        }

        /* Clean Menu Styles - matches dark UI reference */
        .menu-panel {
            display: flex;
            flex-direction: column;
            background: #1a1a1a;
            border: 1px solid #2a2a2a;
            border-radius: 10px;
            padding: 6px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.5);
            min-width: 200px;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            font-size: 13px;
            color: #e0e0e0;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.1s ease;
            text-decoration: none;
            width: 100%;
            text-align: left;
        }

        .menu-item:hover {
            background: #2a2a2a;
        }

        .menu-item i, .menu-item svg {
            width: 16px;
            height: 16px;
            text-align: center;
            font-size: 14px;
            color: #e0e0e0;
            flex-shrink: 0;
        }

        .menu-item span {
            flex: 1;
            white-space: nowrap;
        }

        .menu-item .shortcut {
            font-size: 11px;
            color: #666;
            margin-left: auto;
        }

        .menu-divider {
            height: 1px;
            background: #2a2a2a;
            margin: 6px 0;
        }

        .menu-section-label {
            padding: 6px 12px 4px;
            font-size: 10px;
            font-weight: 600;
            color: #555;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Image Menu Item Styles - legacy support */
        .image-menu-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 12px;
            font-size: 13px;
            color: #e0e0e0;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.1s ease;
            text-decoration: none;
            width: 100%;
            text-align: left;
        }

        .image-menu-item:hover {
            background: #2a2a2a;
        }

        .image-menu-item i {
            width: 16px;
            text-align: center;
            font-size: 14px;
            opacity: 0.8;
        }

        .image-menu-item span {
            flex: 1;
            white-space: nowrap;
        }


        /* Canvas Node - Inline UI Element */
        .canvas-node {
            position: absolute;
            background: #111;
            border: 1px solid #2a2a2a;
            border-radius: 12px;
            width: 280px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.4);
            z-index: 15;
            user-select: none;
            overflow: visible;
        }

        .canvas-node.selected,
        .canvas-node.node-selected {
            border-color: #4a9eff;
            box-shadow: 0 0 0 2px #4a9eff, 0 8px 32px rgba(74, 158, 255, 0.3);
        }

        /* Blue selection dot removed */

        .canvas-node.dragging {
            opacity: 0.9;
            cursor: grabbing;
        }

        .canvas-node-header {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            border-bottom: 1px solid #222;
            cursor: grab;
        }

        .canvas-node-header:active {
            cursor: grabbing;
        }

        .canvas-node-icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            font-size: 12px;
        }

        .canvas-node-title {
            flex: 1;
            font-size: 13px;
            font-weight: 500;
            color: #888;
        }

        .canvas-node-actions {
            display: flex;
            gap: 4px;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .canvas-node:hover .canvas-node-actions {
            opacity: 1;
        }

        .canvas-node-action {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            border: none;
            border-radius: 6px;
            color: #666;
            cursor: pointer;
            font-size: 11px;
            transition: all 0.15s;
        }

        .canvas-node-action:hover {
            background: #222;
            color: #fff;
        }

        .canvas-node-body {
            padding: 12px 14px;
        }

        .canvas-node-content {
            width: 100%;
        }

        .canvas-node-textarea {
            width: 100%;
            min-height: 60px;
            padding: 10px 12px;
            background: #0a0a0a;
            border: 1px solid #222;
            border-radius: 8px;
            color: #ccc;
            font-size: 13px;
            line-height: 1.5;
            resize: vertical;
        }

        .canvas-node-textarea:focus {
            outline: none;
            border-color: #333;
        }

        .canvas-node-textarea::placeholder {
            color: #444;
        }

        /* Connection Handles (Pick Whips) */
        .node-handle {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #1a1a1a;
            border: 2px solid #4a9eff;
            border-radius: 50%;
            cursor: crosshair;
            transition: all 0.15s;
            z-index: 25;
        }

        .node-handle:hover {
            transform: scale(1.4);
            background: #4a9eff;
            box-shadow: 0 0 8px #4a9eff;
        }

        .node-handle.connected {
            background: #4a9eff;
        }

        .node-handle.output {
            right: -6px;
        }

        .node-handle.input {
            left: -6px;
        }

        .node-handle[data-type="image"] {
            border-color: #22c55e;
        }

        .node-handle[data-type="image"]:hover,
        .node-handle[data-type="image"].connected {
            background: #22c55e;
            box-shadow: 0 0 8px #22c55e;
        }

        /* Node Footer with Run Controls */
        .canvas-node-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 14px;
            border-top: 1px solid #222;
            font-size: 11px;
            color: #555;
        }

        .canvas-node-run-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 4px 10px;
            background: transparent;
            border: 1px solid #333;
            border-radius: 6px;
            color: #888;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.15s;
        }

        .canvas-node-run-btn:hover {
            background: #4a9eff;
            border-color: #4a9eff;
            color: #fff;
        }

        .node-spinner {
            display: inline-block;
            width: 12px;
            height: 12px;
            border: 2px solid transparent;
            border-top-color: #fff;
            border-radius: 50%;
            animation: node-spin 0.8s linear infinite;
            vertical-align: middle;
            margin-right: 4px;
        }

        @keyframes node-spin {
            to { transform: rotate(360deg); }
        }

        .node-status {
            display: flex;
            align-items: center;
        }


        /* Loading placeholder for multi-prompt generation */
        .loading-placeholder {
            background: #111;
            border: 1px solid #2a2a2a;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .loading-placeholder-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 20px;
        }

        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid #333;
            border-top-color: #4a9eff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        .loading-prompt {
            color: #666;
            font-size: 12px;
            text-align: center;
            max-width: 200px;
            word-wrap: break-word;
        }

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

        /* Fade-in animation for completed images */
        .canvas-image-node.fade-in {
            transition: opacity 0.4s ease-out;
        }

        /* Running node highlight */
        .canvas-node.node-running {
            border-color: #22c55e;
            box-shadow: 0 0 0 2px #22c55e, 0 0 20px rgba(34, 197, 94, 0.4);
            animation: node-pulse 1.5s ease-in-out infinite;
        }

        @keyframes node-pulse {
            0%, 100% { box-shadow: 0 0 0 2px #22c55e, 0 0 20px rgba(34, 197, 94, 0.4); }
            50% { box-shadow: 0 0 0 3px #22c55e, 0 0 30px rgba(34, 197, 94, 0.6); }
        }
