/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
*/:root,[data-theme=studio]{--color-page-bg: #f3f4f6;--color-surface: #ffffff;--color-surface-raised: #f9fafb;--color-sidebar-bg: #ffffff;--color-header-bg: rgba(255, 255, 255, .95);--color-primary: #111827;--color-primary-hover: #1f2937;--color-primary-subtle: #f3f4f6;--color-on-primary: #ffffff;--color-text: #111827;--color-text-secondary: #4b5563;--color-text-muted: #6b7280;--color-text-faint: #9ca3af;--color-border: #e5e7eb;--color-border-strong: #d1d5db;--color-hover-bg: #f3f4f6;--color-selected-bg: #f9fafb;--color-focus-ring: #9ca3af;--color-success: #10b981;--color-success-bg: #ecfdf5;--color-success-text: #065f46;--color-warning: #f59e0b;--color-warning-bg: #fffbeb;--color-warning-text: #92400e;--color-error: #ef4444;--color-error-bg: #fef2f2;--color-error-text: #991b1b;--color-scrollbar: #d1d5db;--color-scrollbar-hover: #9ca3af;--color-chart-1: #111827;--color-chart-2: #374151;--color-chart-3: #10b981;--color-badge-bg: #f3f4f6;--color-badge-text: #374151;--color-backdrop: rgba(0, 0, 0, .4)}[data-theme=lightbox]{--color-page-bg: #f8fafc;--color-surface: #ffffff;--color-surface-raised: #f1f5f9;--color-sidebar-bg: #ffffff;--color-header-bg: rgba(255, 255, 255, .95);--color-primary: #0f172a;--color-primary-hover: #1e293b;--color-primary-subtle: #f1f5f9;--color-on-primary: #ffffff;--color-text: #0f172a;--color-text-secondary: #475569;--color-text-muted: #64748b;--color-text-faint: #94a3b8;--color-border: #e2e8f0;--color-border-strong: #cbd5e1;--color-hover-bg: #f1f5f9;--color-selected-bg: #f8fafc;--color-focus-ring: #94a3b8;--color-success: #10b981;--color-success-bg: #ecfdf5;--color-success-text: #065f46;--color-warning: #f59e0b;--color-warning-bg: #fffbeb;--color-warning-text: #92400e;--color-error: #ef4444;--color-error-bg: #fef2f2;--color-error-text: #991b1b;--color-scrollbar: #cbd5e1;--color-scrollbar-hover: #94a3b8;--color-chart-1: #0f172a;--color-chart-2: #334155;--color-chart-3: #06b6d4;--color-badge-bg: #f1f5f9;--color-badge-text: #334155;--color-backdrop: rgba(0, 0, 0, .4)}[data-theme=darkroom]{--color-page-bg: #0c0a09;--color-surface: #1c1917;--color-surface-raised: #292524;--color-sidebar-bg: #1c1917;--color-header-bg: rgba(28, 25, 23, .95);--color-primary: #f59e0b;--color-primary-hover: #d97706;--color-primary-subtle: #292524;--color-on-primary: #0c0a09;--color-text: #fafaf9;--color-text-secondary: #d6d3d1;--color-text-muted: #a8a29e;--color-text-faint: #78716c;--color-border: #292524;--color-border-strong: #44403c;--color-hover-bg: #292524;--color-selected-bg: #292524;--color-focus-ring: #f59e0b;--color-success: #22c55e;--color-success-bg: #052e16;--color-success-text: #86efac;--color-warning: #f59e0b;--color-warning-bg: #451a03;--color-warning-text: #fcd34d;--color-error: #ef4444;--color-error-bg: #450a0a;--color-error-text: #fca5a5;--color-scrollbar: #44403c;--color-scrollbar-hover: #57534e;--color-chart-1: #f59e0b;--color-chart-2: #d97706;--color-chart-3: #22c55e;--color-badge-bg: #292524;--color-badge-text: #d6d3d1;--color-backdrop: rgba(0, 0, 0, .6)}[data-theme=editorial]{--color-page-bg: #faf8f5;--color-surface: #fffefb;--color-surface-raised: #f5f0e8;--color-sidebar-bg: #fffefb;--color-header-bg: rgba(255, 254, 251, .95);--color-primary: #92700a;--color-primary-hover: #7a5e08;--color-primary-subtle: #f5f0e8;--color-on-primary: #ffffff;--color-text: #1a1612;--color-text-secondary: #57504a;--color-text-muted: #7a7068;--color-text-faint: #a39890;--color-border: #e8e0d4;--color-border-strong: #d4c9b8;--color-hover-bg: #f5f0e8;--color-selected-bg: #f5f0e8;--color-focus-ring: #92700a;--color-success: #16a34a;--color-success-bg: #f0fdf4;--color-success-text: #166534;--color-warning: #ca8a04;--color-warning-bg: #fefce8;--color-warning-text: #854d0e;--color-error: #dc2626;--color-error-bg: #fef2f2;--color-error-text: #991b1b;--color-scrollbar: #d4c9b8;--color-scrollbar-hover: #a39890;--color-chart-1: #92700a;--color-chart-2: #b8860b;--color-chart-3: #16a34a;--color-badge-bg: #f5f0e8;--color-badge-text: #57504a;--color-backdrop: rgba(0, 0, 0, .35)}[data-theme=midnight]{--color-page-bg: #0f172a;--color-surface: #1e293b;--color-surface-raised: #334155;--color-sidebar-bg: #1e293b;--color-header-bg: rgba(30, 41, 59, .95);--color-primary: #3b82f6;--color-primary-hover: #2563eb;--color-primary-subtle: #1e293b;--color-on-primary: #ffffff;--color-text: #f1f5f9;--color-text-secondary: #cbd5e1;--color-text-muted: #94a3b8;--color-text-faint: #64748b;--color-border: #334155;--color-border-strong: #475569;--color-hover-bg: #334155;--color-selected-bg: #1e293b;--color-focus-ring: #3b82f6;--color-success: #22c55e;--color-success-bg: #052e16;--color-success-text: #86efac;--color-warning: #eab308;--color-warning-bg: #422006;--color-warning-text: #fde047;--color-error: #f87171;--color-error-bg: #450a0a;--color-error-text: #fca5a5;--color-scrollbar: #475569;--color-scrollbar-hover: #64748b;--color-chart-1: #3b82f6;--color-chart-2: #6366f1;--color-chart-3: #22c55e;--color-badge-bg: #334155;--color-badge-text: #cbd5e1;--color-backdrop: rgba(0, 0, 0, .6)}[data-theme=editorial] h1,[data-theme=editorial] h2{font-family:"Instrument Serif",serif}body{background-color:var(--color-page-bg);color:var(--color-text);transition:background-color .2s ease,color .2s ease}@keyframes fade-in{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fade-in .6s ease-out forwards}@keyframes zoom-in{0%{transform:scale(.95);opacity:0}to{transform:scale(1);opacity:1}}.animate-zoom-in{animation:zoom-in .7s cubic-bezier(.25,1,.5,1) forwards}@keyframes slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}.animate-slide-up{animation:slide-up .6s cubic-bezier(.25,1,.5,1) forwards}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:#0000000d;border-radius:4px}::-webkit-scrollbar-thumb{background:var(--color-scrollbar, #d1d5db);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--color-scrollbar-hover, #9ca3af)}.custom-scrollbar{scrollbar-width:thin;scrollbar-color:#9ca3af transparent}.custom-scrollbar::-webkit-scrollbar{width:6px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#9ca3afd9,#6b7280d9);border-radius:9999px}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#6b7280e6,#4b5563e6)}.background-chat-scroll{scrollbar-gutter:stable both-edges;scrollbar-width:auto;scrollbar-color:rgba(107,114,128,.92) rgba(17,24,39,.08)}.background-chat-scroll::-webkit-scrollbar{width:10px}.background-chat-scroll::-webkit-scrollbar-track{background:#11182714;border-radius:9999px}.background-chat-scroll::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6b7280f5,#4b5563f5);border-radius:9999px}.background-chat-scroll::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#4b5563,#374151)}.variant-media-scrollbar{scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(107,114,128,.72) rgba(17,24,39,.06)}.variant-media-scrollbar::-webkit-scrollbar{height:6px}.variant-media-scrollbar::-webkit-scrollbar-track{background:#1118270f;border-radius:9999px}.variant-media-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#9ca3afe0,#6b7280e0);border-radius:9999px}.variant-media-scrollbar::-webkit-scrollbar-thumb:hover{background:linear-gradient(90deg,#6b7280eb,#4b5563eb)}._overlay_1lacr_1{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5}._transformGroup_1lacr_8{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}._border_1lacr_14{position:absolute;border:2px dashed var(--color-ai-accent, #7c5cfc);pointer-events:auto;cursor:move;box-sizing:border-box}._handle_1lacr_22{position:absolute;width:14px;height:14px;background:#fff;border:2px solid var(--color-ai-accent, #7c5cfc);border-radius:2px;pointer-events:auto;cursor:nwse-resize;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0000004d;z-index:6}._handle_1lacr_22:hover{background:var(--color-ai-accent, #7c5cfc)}._handleTR_1lacr_38,._handleBL_1lacr_39{cursor:nesw-resize}._rotateStem_1lacr_41{position:absolute;width:1px;height:28px;background:var(--color-ai-accent, #7c5cfc);transform:translate(-50%,-100%) translateY(-2px);pointer-events:none;z-index:6}._rotateHandle_1lacr_51{position:absolute;width:22px;height:22px;background:#fff;border:2px solid var(--color-ai-accent, #7c5cfc);border-radius:50%;pointer-events:auto;cursor:grab;transform:translate(-50%,-100%) translateY(-30px);box-shadow:0 1px 4px #00000040;z-index:7;display:flex;align-items:center;justify-content:center;color:var(--color-ai-accent, #7c5cfc)}._rotateHandle_1lacr_51:hover{background:var(--color-ai-accent, #7c5cfc);color:#fff}._rotateHandle_1lacr_51:active{cursor:grabbing}._subjectAccent_1lacr_76 ._border_1lacr_14,._subjectAccent_1lacr_76 ._handle_1lacr_22{border-color:var(--color-success)}._subjectAccent_1lacr_76 ._handle_1lacr_22:hover,._subjectAccent_1lacr_76 ._rotateStem_1lacr_41{background:var(--color-success)}._subjectAccent_1lacr_76 ._rotateHandle_1lacr_51{border-color:var(--color-success);color:var(--color-success)}._subjectAccent_1lacr_76 ._rotateHandle_1lacr_51:hover{background:var(--color-success);color:#fff}._edgeHandle_1lacr_89{position:absolute;pointer-events:auto;z-index:6;transform:translate(-50%,-50%)}._edgeHandleT_1lacr_96,._edgeHandleB_1lacr_97{width:24px;height:8px;background:#fff;border:2px solid var(--color-ai-accent, #7c5cfc);border-radius:3px;cursor:ns-resize;box-shadow:0 1px 3px #0000004d}._edgeHandleL_1lacr_107,._edgeHandleR_1lacr_108{width:8px;height:24px;background:#fff;border:2px solid var(--color-ai-accent, #7c5cfc);border-radius:3px;cursor:ew-resize;box-shadow:0 1px 3px #0000004d}._edgeHandle_1lacr_89:hover{background:var(--color-ai-accent, #7c5cfc)}._subjectAccent_1lacr_76 ._edgeHandle_1lacr_89{border-color:var(--color-success)}._subjectAccent_1lacr_76 ._edgeHandle_1lacr_89:hover{background:var(--color-success)}._overlay_wd3zk_1{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5}._maskTop_wd3zk_8,._maskBottom_wd3zk_9,._maskLeft_wd3zk_10,._maskRight_wd3zk_11{position:absolute;background:#0000008c;pointer-events:auto;cursor:crosshair}._maskTop_wd3zk_8{top:0;left:0;right:0}._maskBottom_wd3zk_9{bottom:0;left:0;right:0}._maskLeft_wd3zk_10{left:0}._maskRight_wd3zk_11{right:0}._border_wd3zk_23{position:absolute;border:1.5px solid rgba(255,255,255,.85);pointer-events:auto;cursor:move;box-sizing:border-box}._gridLine_wd3zk_31{position:absolute;background:#ffffff40;pointer-events:none}._gridLineH_wd3zk_37{left:0;right:0;height:1px}._gridLineV_wd3zk_43{top:0;bottom:0;width:1px}._handle_wd3zk_49{position:absolute;width:16px;height:16px;background:#fff;border:2px solid rgba(255,255,255,.9);border-radius:2px;pointer-events:auto;transform:translate(-50%,-50%);box-shadow:0 1px 3px #0006;z-index:6}._handle_wd3zk_49:hover{background:var(--color-accent);border-color:var(--color-accent)}._handleTL_wd3zk_67{cursor:nwse-resize}._handleTR_wd3zk_68,._handleBL_wd3zk_69{cursor:nesw-resize}._handleBR_wd3zk_70{cursor:nwse-resize}._edgeHandle_wd3zk_72{position:absolute;pointer-events:auto;z-index:6}._edgeHandle_wd3zk_72:after{content:"";position:absolute;background:#fff;border-radius:1px;box-shadow:0 1px 3px #0006}._edgeHandle_wd3zk_72:hover:after{background:var(--color-accent)}._edgeHandleT_wd3zk_90,._edgeHandleB_wd3zk_91{height:12px;cursor:ns-resize;transform:translate(-50%)}._edgeHandleT_wd3zk_90:after,._edgeHandleB_wd3zk_91:after{width:24px;height:4px;left:50%;top:50%;transform:translate(-50%,-50%)}._edgeHandleT_wd3zk_90{transform:translate(-50%,-100%)}._edgeHandleL_wd3zk_108,._edgeHandleR_wd3zk_109{width:12px;cursor:ew-resize;transform:translateY(-50%)}._edgeHandleL_wd3zk_108:after,._edgeHandleR_wd3zk_109:after{width:4px;height:24px;left:50%;top:50%;transform:translate(-50%,-50%)}._edgeHandleL_wd3zk_108{transform:translate(-100%,-50%)}._sizeLabel_wd3zk_126{position:absolute;bottom:-24px;left:50%;transform:translate(-50%);background:#000000b3;color:#fff;font-size:11px;padding:2px 6px;border-radius:3px;white-space:nowrap;pointer-events:none;z-index:7}._workspace_5nenq_1{flex:1;display:flex;flex-direction:column;position:relative;overflow:hidden;background:var(--color-bg-canvas)}._canvasShell_5nenq_10{flex:1;position:relative;overflow:auto;display:flex;align-items:center;justify-content:center}._canvasShell_5nenq_10[data-loading=true]{opacity:.85}._placeholder_5nenq_21{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--color-text-muted);z-index:1}._placeholder_5nenq_21 h3{margin:var(--space-lg) 0 var(--space-sm);font-size:var(--font-size-lg);font-weight:var(--font-weight-medium)}._placeholder_5nenq_21 p{margin:0;font-size:var(--font-size-base)}._canvasLayers_5nenq_43{position:relative;transition:opacity .15s ease;overflow:hidden}._canvasLayers_5nenq_43[data-ready=false]{opacity:0}._canvasLayers_5nenq_43[data-fitted=false]{visibility:hidden}._canvasChecker_5nenq_52{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,var(--checkerboard-dark) 25%,var(--checkerboard-light) 25%),linear-gradient(-45deg,var(--checkerboard-dark) 25%,var(--checkerboard-light) 25%),linear-gradient(45deg,var(--checkerboard-light) 75%,var(--checkerboard-dark) 75%),linear-gradient(-45deg,var(--checkerboard-light) 75%,var(--checkerboard-dark) 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0;border-radius:2px}._canvasSurface_5nenq_65{display:block;position:relative;z-index:1;image-rendering:auto}._floatingToolbar_5nenq_72{position:absolute;bottom:16px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:2px;background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:3px 6px;box-shadow:var(--shadow-floating);z-index:20}._toolbarBtn_5nenq_88{display:flex;align-items:center;justify-content:center;min-width:26px;height:26px;background:transparent!important;border:none!important;box-shadow:none!important;color:var(--color-text-secondary);cursor:pointer;border-radius:var(--radius-sm);transition:all var(--transition-fast);font-size:11px;font-weight:500;font-family:inherit;padding:0 6px}._toolbarBtn_5nenq_88:hover:not(:disabled){background:var(--color-hover-bg)!important;color:var(--color-text)}._toolbarBtn_5nenq_88:disabled{opacity:.3;cursor:not-allowed}._toolbarBtnActive_5nenq_117{background:var(--color-primary)!important;color:var(--color-on-primary)!important}._toolbarDivider_5nenq_122{width:1px;height:16px;background:var(--color-border);margin:0 2px}._zoomLabel_5nenq_129{font-size:11px;color:var(--color-text-muted);min-width:32px;text-align:center;font-variant-numeric:tabular-nums;font-weight:500}._slider_1le38_1{display:flex;flex-direction:column;gap:4px;cursor:default;padding:2px 0}._slider_1le38_1._disabled_1le38_9{opacity:.5;pointer-events:none}._header_1le38_14{display:flex;justify-content:space-between;align-items:center}._label_1le38_20{font-size:12px;color:var(--color-text-primary);font-weight:500;-webkit-user-select:none;user-select:none}._value_1le38_27{font-size:12px;color:var(--color-text-muted);font-variant-numeric:tabular-nums;min-width:36px;text-align:right;cursor:text;padding:1px 4px;border-radius:var(--radius-sm);transition:background var(--transition-fast)}._value_1le38_27:hover{background:var(--color-bg-tertiary)}._numericInput_1le38_41{width:56px;background:var(--color-bg-tertiary);border:1px solid var(--color-border-focus);border-radius:var(--radius-sm);color:var(--color-text-primary);font-size:12px;font-variant-numeric:tabular-nums;text-align:right;padding:1px 4px;outline:none;font-family:inherit}._numericInput_1le38_41::-webkit-inner-spin-button,._numericInput_1le38_41::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._range_1le38_66{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:4px;background:transparent;border:none;outline:none;cursor:pointer;margin:4px 0;padding:0}._range_1le38_66::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,var(--color-border) 0%,var(--color-border) var(--slider-fill-start, 0%),var(--color-primary) var(--slider-fill-start, 0%),var(--color-primary) var(--slider-fill-end, 0%),var(--color-border) var(--slider-fill-end, 0%),var(--color-border) 100%)}._range_1le38_66::-moz-range-track{height:4px;border-radius:999px;border:none;background:linear-gradient(to right,var(--color-border) 0%,var(--color-border) var(--slider-fill-start, 0%),var(--color-primary) var(--slider-fill-start, 0%),var(--color-primary) var(--slider-fill-end, 0%),var(--color-border) var(--slider-fill-end, 0%),var(--color-border) 100%)}._range_1le38_66::-moz-range-progress{height:4px;background:transparent}._range_1le38_66::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:var(--color-primary);border:2px solid var(--color-surface);margin-top:-5px;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease;box-shadow:0 1px 3px #0000002e}._range_1le38_66::-webkit-slider-thumb:hover{transform:scale(1.08);box-shadow:0 2px 6px #00000040}._range_1le38_66::-webkit-slider-thumb:active{transform:scale(1.12)}._range_1le38_66::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--color-primary);border:2px solid var(--color-surface);cursor:pointer;box-shadow:0 1px 3px #0000002e}._range_1le38_66:focus-visible{outline:none}._range_1le38_66:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 3px #0000001f}._panel_1os0d_1{width:var(--panel-width);background:var(--color-bg-secondary);border-left:1px solid var(--color-border);display:flex;flex-direction:column;height:100%;flex-shrink:0;overflow:hidden}._header_1os0d_12{padding:var(--space-md) var(--space-lg);border-bottom:none;flex-shrink:0}._title_1os0d_18{font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);margin:0}._content_1os0d_25{flex:1;overflow-y:auto;padding:var(--space-md) var(--space-lg)}._moduleGroup_1os0d_31{margin-bottom:var(--space-lg);padding-bottom:var(--space-lg);border-bottom:1px solid var(--color-border-subtle)}._moduleGroup_1os0d_31:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}._moduleHeader_1os0d_43{margin-bottom:var(--space-sm)}._moduleTitle_1os0d_45{font-size:var(--font-size-xs);color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;margin:0;font-weight:var(--font-weight-semibold)}._moduleBody_1os0d_54{display:flex;flex-direction:column;gap:var(--space-sm)}._section_1os0d_60{margin-bottom:0}._section_1os0d_60+._section_1os0d_60{border-top:1px solid var(--color-border)}._sectionToggle_1os0d_63{display:flex;align-items:center;gap:8px;width:100%;padding:10px 4px;background:none;border:none;color:var(--color-text);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;-webkit-user-select:none;user-select:none;text-align:left;border-radius:0;transition:color .15s ease}._sectionToggle_1os0d_63:hover,._sectionToggle_1os0d_63:hover ._chevron_1os0d_84{color:var(--color-text)}._chevron_1os0d_84{flex-shrink:0;color:var(--color-text-muted);transition:transform .18s ease,color .15s ease}._chevronOpen_1os0d_92{transform:rotate(90deg)}._sectionBody_1os0d_94{padding:0 4px 12px}._placeholder_1os0d_96{color:var(--color-text-muted);text-align:center;margin-top:40px;font-size:var(--font-size-md)}._tabs_1os0d_103{display:flex;border-bottom:1px solid var(--color-border-subtle);flex-shrink:0;background:var(--color-bg-secondary)}._tabs_1os0d_103 ._tab_1os0d_103{flex:1;padding:10px 0;font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);background:transparent!important;border:none!important;border-bottom:2px solid transparent!important;cursor:pointer;transition:all var(--transition-fast);box-shadow:none!important;border-radius:0!important}._tabs_1os0d_103 ._tab_1os0d_103:hover:not(:disabled){color:var(--color-text-primary);background:transparent!important;box-shadow:none!important;border-bottom-color:var(--color-text-muted)!important}._tabs_1os0d_103 ._tabActive_1os0d_134{color:var(--color-text-primary);border-bottom-color:var(--color-accent)!important}._toolGrid_1os0d_139{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}._toolCard_1os0d_145{display:flex;align-items:center;justify-content:center;padding:12px 8px;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:8px;color:var(--color-text-secondary);font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);cursor:pointer;transition:all .15s}._toolCard_1os0d_145:hover:not(:disabled){border-color:var(--color-text-muted);color:var(--color-text-primary)}._toolCardActive_1os0d_165{border-color:var(--color-accent);background:#6366f114;color:var(--color-accent)}._toolCard_1os0d_145:disabled{opacity:.4;cursor:not-allowed}._toolCardLabel_1os0d_176{font-size:var(--font-size-sm)}._statusBar_m61ac_1{height:40px;display:flex;align-items:center;border-bottom:1px solid var(--color-border);border-right:1px solid #dadada;border-left:1px solid #dadada;background:var(--color-bg-primary);flex-shrink:0;z-index:20;width:100%}._statusBar_m61ac_1 svg{width:16px;height:16px;flex-shrink:0;stroke-width:1.4}._statusBar_m61ac_1 svg[fill=currentColor]{stroke-width:0}._creditsBadge_m61ac_29{display:inline-flex;align-items:center;padding:4px 10px;border-radius:9999px;background:var(--color-bg-tertiary);color:var(--color-text-primary);border:1px solid var(--color-border);font-size:11px;font-weight:600;white-space:nowrap;margin-right:var(--space-sm)}._creditsLabel_m61ac_42{display:inline}@media (max-width: 640px){._creditsLabel_m61ac_42{display:none}}._profileWrap_m61ac_47{position:relative;display:inline-flex}._profileBtn_m61ac_52{display:inline-flex;align-items:center;gap:6px;padding:2px 8px 2px 2px;border-radius:9999px;background:var(--color-bg-secondary);border:1px solid var(--color-border);color:var(--color-text-secondary);cursor:pointer;transition:background var(--transition-fast),border-color var(--transition-fast)}._profileBtn_m61ac_52:hover{background:var(--color-bg-hover);border-color:var(--color-border-focus)}._profileBtn_m61ac_52:focus-visible{outline:2px solid var(--color-border-focus);outline-offset:2px}._avatarRing_m61ac_73{width:28px;height:28px;border-radius:50%;overflow:hidden;background:var(--color-bg-hover);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--color-border)}._avatarRing_m61ac_73 img{width:100%;height:100%;object-fit:cover;display:block}._avatarFallback_m61ac_91{font-size:11px;font-weight:600;color:var(--color-text-secondary);text-transform:uppercase}._profileName_m61ac_98{font-size:12px;font-weight:500;color:var(--color-text-secondary);max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 640px){._profileName_m61ac_98{display:none}}._chevron_m61ac_111{width:12px;height:12px;color:var(--color-text-muted);transition:transform var(--transition-fast);flex-shrink:0;stroke-width:2}._chevronOpen_m61ac_120{transform:rotate(180deg)}._profileMenu_m61ac_122{position:absolute;top:calc(100% + 6px);right:0;min-width:200px;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);padding:4px 0;z-index:200}._menuUserInfo_m61ac_135{padding:8px 12px;font-size:11px;color:var(--color-text-muted);border-bottom:1px solid var(--color-border-subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._menuNav_m61ac_145{width:100%;display:flex;align-items:center;gap:10px;padding:8px 12px;border:0;background:transparent;color:var(--color-text-secondary);font-size:13px;font-weight:500;text-align:left;cursor:pointer;transition:background var(--transition-fast),color var(--transition-fast)}._menuNav_m61ac_145:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}._menuNav_m61ac_145 svg{width:16px;height:16px;color:var(--color-text-muted);stroke-width:2}._menuNav_m61ac_145:hover svg{color:var(--color-text-secondary)}._menuDivider_m61ac_173{height:1px;background:var(--color-border-subtle);margin:4px 0}._menuDanger_m61ac_179{color:var(--color-error)}._menuDanger_m61ac_179 svg{color:var(--color-error)}._menuDanger_m61ac_179:hover{background:var(--color-error-bg);color:var(--color-error)}._statusLeft_m61ac_183{flex:1;display:flex;align-items:center;gap:6px;padding-left:10px;min-width:0}._statusDot_m61ac_192{width:6px;height:6px;border-radius:50%;background:var(--color-text-muted);transition:background var(--transition-normal);flex-shrink:0}._statusDot_m61ac_192._active_m61ac_201{background:var(--color-accent);animation:_statusPulse_m61ac_1 1.5s infinite}@keyframes _statusPulse_m61ac_1{0%,to{opacity:1}50%{opacity:.5}}._statusText_m61ac_211{font-size:11px;line-height:1;letter-spacing:.01em;color:var(--color-text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._statusCenter_m61ac_221{flex-shrink:0;display:flex;align-items:center;justify-content:center}._maskTools_m61ac_228{display:flex;align-items:center;gap:2px;border:none;padding:0 4px;border-radius:var(--radius-md)}._maskToolBtn_m61ac_237{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent!important;border:none!important;color:var(--color-text-muted);cursor:pointer;border-radius:var(--radius-sm);transition:all var(--transition-fast);box-shadow:none!important}._maskToolBtn_m61ac_237:hover:not(:disabled){color:var(--color-text-primary);background:var(--color-bg-hover)!important}._maskToolBtn_m61ac_237:disabled{opacity:.3;cursor:not-allowed}._maskToolActive_m61ac_263{color:var(--color-accent)!important;background:var(--color-bg-hover)!important}._maskToolDivider_m61ac_268{width:1px;height:14px;background:var(--color-border);margin:0 2px}._maskSizeControl_m61ac_275{display:flex;align-items:center;gap:4px;padding:0 4px}._maskSizeSlider_m61ac_282{width:64px;height:3px;cursor:pointer;accent-color:var(--color-accent)}._maskSizeValue_m61ac_289{font-size:10px;color:var(--color-text-muted);min-width:20px;text-align:right;font-variant-numeric:tabular-nums}._fileName_m61ac_297{font-size:var(--font-size-sm);color:var(--color-text-muted)}._actions_m61ac_302{flex:1;display:flex;align-items:center;justify-content:flex-end;gap:2px;padding-right:10px}._actionBtn_m61ac_311{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;background:transparent!important;border:none!important;color:var(--color-text-secondary);cursor:pointer;border-radius:var(--radius-sm);transition:all var(--transition-fast);box-shadow:none!important}._actionBtn_m61ac_311:hover:not(:disabled){background:var(--color-bg-hover)!important;color:var(--color-text-primary)}._actionBtn_m61ac_311:disabled{opacity:.3;cursor:not-allowed}._actionBtnActive_m61ac_337{color:var(--color-accent, #3b82f6)!important;opacity:.6}._moreWrap_m61ac_342{position:relative}._moreMenu_m61ac_344{position:absolute;top:calc(100% + 8px);right:0;min-width:180px;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100;overflow:hidden;padding:var(--space-xs) 0}._themeBtn_m61ac_358{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;background:transparent!important;border:none!important;color:var(--color-text-secondary);cursor:pointer;border-radius:var(--radius-md);transition:all var(--transition-fast);box-shadow:none!important}._themeBtn_m61ac_358:hover{color:var(--color-text-primary)}._avatarWrap_m61ac_376{position:relative;margin-left:var(--space-sm);margin-right:var(--space-md)}._avatarBtn_m61ac_382{display:flex;align-items:center;justify-content:center;background:transparent!important;border:2px solid transparent!important;border-radius:50%;padding:0;cursor:pointer;transition:border-color var(--transition-fast);box-shadow:none!important}._avatarBtn_m61ac_382:hover{border-color:var(--color-accent)!important}._avatar_m61ac_73{width:28px;height:28px;border-radius:50%;display:block}._userMenu_m61ac_406{position:absolute;top:calc(100% + 8px);right:0;min-width:200px;background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);z-index:100;overflow:hidden}._menuUserInfo_m61ac_135{padding:var(--space-md) var(--space-lg)}._menuUserName_m61ac_421{font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);color:var(--color-text-primary)}._menuUserEmail_m61ac_427{font-size:var(--font-size-xs);color:var(--color-text-muted);margin-top:2px}._menuDivider_m61ac_173{height:1px;background:var(--color-border-subtle)}._menuItem_m61ac_438{display:flex;align-items:center;gap:var(--space-sm);width:100%;padding:var(--space-sm) var(--space-lg);background:transparent!important;border:none!important;color:var(--color-text-primary);font-size:var(--font-size-base);font-family:inherit;cursor:pointer;transition:background var(--transition-fast);text-align:left;box-shadow:none!important}._menuItem_m61ac_438:hover{background:var(--color-bg-hover)!important}._layersSection_1dzed_3{padding:var(--space-md) var(--space-lg);display:flex;flex-direction:column;height:100%}._layersDrawer_1dzed_12{position:absolute;top:0;right:0;bottom:0;width:var(--panel-width);background:var(--color-bg-secondary);border-left:1px solid var(--color-border);box-shadow:-4px 0 16px #00000014;z-index:30;overflow:hidden;transform:translate(100%);transition:transform .18s ease;pointer-events:none}._layersDrawerOpen_1dzed_28{transform:translate(0);pointer-events:auto}._layersHeader_1dzed_33{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--space-sm)}._layersHeaderActions_1dzed_40{display:flex;align-items:center;gap:var(--space-xs)}._closeBtn_1dzed_46{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:none!important;border:none!important;box-shadow:none!important;border-radius:var(--radius-sm);color:var(--color-text-muted);cursor:pointer;padding:0;flex-shrink:0;transition:color var(--transition-fast),background var(--transition-fast)}._closeBtn_1dzed_46:hover{color:var(--color-text-primary);background:var(--color-bg-tertiary)!important}._layersTitle_1dzed_68{font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.05em}._layerList_1dzed_78{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:1px}._layerRow_1dzed_88{display:flex;align-items:center;gap:var(--space-xs);padding:var(--space-xs);border-radius:var(--radius-sm);cursor:pointer;transition:background var(--transition-fast);-webkit-user-select:none;user-select:none}._layerRow_1dzed_88:hover{background:var(--color-bg-tertiary)}._layerRowActive_1dzed_103{background:var(--color-bg-tertiary);outline:1.5px solid var(--color-ai-accent)}._layerRow_1dzed_88[draggable=true]{cursor:grab}._layerRow_1dzed_88[draggable=true]:active{cursor:grabbing;opacity:.7}._dragHandle_1dzed_119{display:flex;align-items:center;justify-content:center;width:16px;color:var(--color-text-disabled);flex-shrink:0}._layerRow_1dzed_88:hover ._dragHandle_1dzed_119{color:var(--color-text-muted)}._layerRowNested_1dzed_134{padding-left:calc(var(--space-xs) + 14px)}._layerThumb_1dzed_140{width:36px;height:36px;border-radius:var(--radius-sm);border:1px solid var(--color-border);overflow:hidden;flex-shrink:0;position:relative;background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(-45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(-45deg,transparent 75%,#ccc 75%);background-size:8px 8px;background-position:0 0,0 4px,4px -4px,-4px 0px}._layerThumb_1dzed_140 canvas{width:100%;height:100%;object-fit:contain}._layerThumbHidden_1dzed_163{opacity:.35}._layerInfo_1dzed_169{flex:1;min-width:0}._layerName_1dzed_174{font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._layerNameInput_1dzed_183{font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--color-text-primary);background:var(--color-bg-primary);border:1px solid var(--color-ai-accent);border-radius:var(--radius-sm);padding:1px 4px;width:100%;outline:none}._layerMeta_1dzed_195{font-size:10px;color:var(--color-text-muted)}._layerBtn_1dzed_202{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:none!important;border:none!important;box-shadow:none!important;border-radius:var(--radius-sm);color:var(--color-text-muted);cursor:pointer;padding:0;flex-shrink:0;transition:color var(--transition-fast),background var(--transition-fast)}._layerBtn_1dzed_202:hover{color:var(--color-text-primary);background:var(--color-bg-secondary)!important}._layerBtnOff_1dzed_224{color:var(--color-text-disabled)}._layerBtnActive_1dzed_228{color:var(--color-ai-accent)}._opacitySection_1dzed_234{margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px solid var(--color-border-subtle);display:flex;flex-direction:column;gap:var(--space-xs)}._opacityRow_1dzed_243{display:flex;align-items:center;gap:var(--space-sm)}._opacityLabel_1dzed_249{font-size:var(--font-size-xs);color:var(--color-text-muted);min-width:48px}._opacitySlider_1dzed_255{flex:1;accent-color:var(--color-ai-accent)}._opacityValue_1dzed_260{font-size:var(--font-size-xs);color:var(--color-text-muted);min-width:32px;text-align:right;font-family:monospace}._blendSelect_1dzed_270{flex:1;font-size:var(--font-size-xs);color:var(--color-text-primary);background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:3px 6px;cursor:pointer;outline:none}._blendSelect_1dzed_270:focus{border-color:var(--color-ai-accent)}._actionsBar_1dzed_288{display:flex;align-items:center;justify-content:center;gap:var(--space-xs);margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px solid var(--color-border-subtle)}._actionBtn_1dzed_298{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:var(--color-bg-primary)!important;border:1px solid var(--color-border)!important;box-shadow:none!important;border-radius:var(--radius-sm);color:var(--color-text-muted);cursor:pointer;padding:0;transition:all var(--transition-fast)}._actionBtn_1dzed_298:hover:not(:disabled){color:var(--color-text-primary);background:var(--color-bg-tertiary)!important;border-color:var(--color-text-muted)!important}._actionBtn_1dzed_298:disabled{opacity:.35;cursor:not-allowed}._addShadowBtn_1dzed_327{font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);color:var(--color-text-secondary);background:var(--color-bg-primary)!important;border:1.5px solid var(--color-border)!important;box-shadow:none!important;border-radius:var(--radius-sm);padding:3px 10px;cursor:pointer;transition:all var(--transition-fast)}._addShadowBtn_1dzed_327:hover{background:var(--color-text-primary)!important;border-color:var(--color-text-primary)!important;color:var(--color-bg-primary)!important}._shadowControls_1dzed_348{margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px solid var(--color-border-subtle);display:flex;flex-direction:column;gap:var(--space-xs)}._shadowSectionLabel_1dzed_357{font-size:10px;font-weight:var(--font-weight-semibold);color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px}._shadowTypeRow_1dzed_366{display:flex;gap:var(--space-xs);margin-bottom:var(--space-sm)}._shadowTypeBtn_1dzed_372{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;font-size:var(--font-size-xs);color:var(--color-text-muted);background:var(--color-bg-primary)!important;border:1.5px solid var(--color-border)!important;box-shadow:none!important;border-radius:var(--radius-md);cursor:pointer;transition:all var(--transition-fast)}._shadowTypeBtn_1dzed_372:hover{color:var(--color-text-primary);background:var(--color-bg-tertiary)!important;border-color:var(--color-text-muted)!important}._shadowTypeBtnActive_1dzed_395,._shadowTypeBtnActive_1dzed_395:hover{color:var(--color-bg-primary)!important;border-color:var(--color-text-primary)!important;background:var(--color-text-primary)!important}._shadowTypeBtnActive_1dzed_395 ._shadowTypeName_1dzed_402,._shadowTypeBtnActive_1dzed_395:hover ._shadowTypeName_1dzed_402{color:var(--color-bg-primary)}._shadowTypeBtnActive_1dzed_395 ._shadowTypeDesc_1dzed_407,._shadowTypeBtnActive_1dzed_395:hover ._shadowTypeDesc_1dzed_407{color:var(--color-bg-primary);opacity:.7}._shadowTypeName_1dzed_402{font-weight:var(--font-weight-semibold);font-size:var(--font-size-xs);line-height:1.2}._shadowTypeDesc_1dzed_407{font-size:10px;color:var(--color-text-muted);line-height:1.2}._shadowColorPicker_1dzed_425{width:32px;height:24px;border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:0;cursor:pointer;background:none}._textEditor_1dzed_437{margin-top:var(--space-sm);padding-top:var(--space-sm);border-top:1px solid var(--color-border-subtle);display:flex;flex-direction:column;gap:var(--space-xs)}._textInput_1dzed_446{font-size:var(--font-size-sm);color:var(--color-text-primary);background:var(--color-bg-primary);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:var(--space-xs) var(--space-sm);resize:vertical;min-height:48px;outline:none;font-family:inherit}._textInput_1dzed_446:focus{border-color:var(--color-ai-accent)}._alignmentBtns_1dzed_465{display:flex;gap:2px}._alignBtn_1dzed_470{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:14px;background:var(--color-bg-primary)!important;border:1px solid var(--color-border)!important;box-shadow:none!important;border-radius:var(--radius-sm);color:var(--color-text-muted);cursor:pointer;padding:0;transition:all var(--transition-fast)}._alignBtn_1dzed_470:hover{color:var(--color-text-primary);background:var(--color-bg-tertiary)!important}._alignBtnActive_1dzed_492{color:var(--color-bg-primary)!important;background:var(--color-text-primary)!important;border-color:var(--color-text-primary)!important}.editor-root{--color-bg-primary: var(--color-surface, #ffffff);--color-bg-secondary: var(--color-surface, #ffffff);--color-bg-tertiary: var(--color-surface-raised, #f9fafb);--color-bg-hover: var(--color-hover-bg, #f3f4f6);--color-bg-active: var(--color-selected-bg, #e5e7eb);--color-border-subtle: var(--color-border, #e5e7eb);--color-border-focus: var(--color-focus-ring, #9ca3af);--color-text-primary: var(--color-text, #111827);--color-text-inverse: var(--color-on-primary, #ffffff);--color-accent: var(--color-primary, #111827);--color-accent-hover: var(--color-primary-hover, #1f2937);--color-accent-active: #374151;--color-accent-glow: rgba(17, 24, 39, .18);--color-ai-accent: #A855F7;--color-ai-accent-hover: #9333EA;--color-bg-canvas: var(--color-page-bg, #0f172a);--color-success: #22C55E;--color-warning: #F59E0B;--color-error: #EF4444;--color-success-bg: rgba(34, 197, 94, .1);--color-warning-bg: rgba(245, 158, 11, .1);--color-error-bg: rgba(239, 68, 68, .1);--color-scrollbar: rgba(148, 163, 184, .2);--color-scrollbar-hover: rgba(148, 163, 184, .35);--space-xs: 4px;--space-sm: 8px;--space-md: 12px;--space-lg: 16px;--space-xl: 24px;--space-2xl: 32px;--font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-size-xs: 10px;--font-size-sm: 11px;--font-size-base: 13px;--font-size-md: 14px;--font-size-lg: 16px;--font-size-xl: 20px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--line-height-tight: 1.2;--line-height-normal: 1.5;--radius-sm: 4px;--radius-md: 6px;--radius-lg: 8px;--radius-xl: 12px;--radius-full: 9999px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 8px rgba(0, 0, 0, .3);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .4);--shadow-floating: 0 4px 12px rgba(0, 0, 0, .5);--checkerboard-dark: #1e293b;--checkerboard-light: #334155;--transition-fast: .1s ease;--transition-normal: .2s ease;--transition-slow: .3s ease;--slider-track: #334155;--sidebar-width: 56px;--panel-width: 320px;--header-height: 48px;--toolbar-height: 44px}.editor-root .controls{display:flex;flex-direction:column;gap:var(--space-md, 12px)}.editor-root .control{display:flex;flex-direction:column;gap:4px}.editor-root .control-label{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--color-text-primary, #e0e0e0);font-weight:500;-webkit-user-select:none;user-select:none}.editor-root .control-label span{color:var(--color-text-muted, #6B7280);font-variant-numeric:tabular-nums;min-width:36px;text-align:right}.editor-root .controls input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;background:transparent;border-radius:3px;outline:none;cursor:pointer;margin:2px 0}.editor-root .controls input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:var(--color-bg-primary, #fff);border:2px solid var(--color-text-muted, #555);cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease;box-shadow:0 1px 3px #0003}.editor-root .controls input[type=range]::-webkit-slider-thumb:hover{border-color:var(--color-text-primary, #333);box-shadow:0 1px 4px #0000004d}.editor-root .controls input[type=range]::-webkit-slider-thumb:active{border-color:var(--color-accent);box-shadow:0 0 0 3px #6366f133}.editor-root .controls input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--color-bg-primary, #fff);border:2px solid var(--color-text-muted, #555);cursor:pointer;box-shadow:0 1px 3px #0003}.editor-root .controls input[type=range]::-moz-range-track{height:6px;background:var(--slider-track, #3a3a3a);border-radius:3px;border:none}.editor-root .controls input[type=checkbox]{accent-color:var(--color-accent, #3b82f6)}.editor-root .controls .control-divider{height:1px;background:var(--color-border-subtle, #2B2B2B);margin:var(--space-sm, 8px) 0}.editor-root .app{max-width:100%;margin:0 auto;padding:0;color:var(--color-text-primary);min-height:100vh;display:flex;flex-direction:column;gap:0}.editor-root .skip-to-main{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.editor-root .skip-to-main:focus,.editor-root .skip-to-main:focus-visible{position:absolute;top:8px;left:8px;z-index:10000;width:auto;height:auto;padding:8px 14px;margin:0;overflow:visible;clip:auto;background:var(--color-bg-primary);color:var(--color-text-primary);border:1px solid var(--color-border-focus);border-radius:var(--radius-md, 6px);text-decoration:none;font-family:var(--font-family);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}.editor-root .status-header{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(260px,1fr);align-items:center;padding:10px 14px;background:linear-gradient(180deg,var(--color-bg-primary),var(--color-bg-canvas));border:0;border-bottom:1px solid var(--color-border);border-radius:0;box-shadow:inset 0 1px #ffffff0d,0 8px 20px #00000040}.editor-root .status-line{display:inline-flex;gap:8px;align-items:center;font-weight:600}.editor-root .status-dot{width:12px;height:12px;border-radius:50%;background:var(--color-text-muted);display:inline-block}.editor-root .status-dot[data-active=true]{background:var(--color-accent)}.editor-root .status-actions{display:flex;gap:10px;align-items:center;justify-self:end}.editor-root .status-center{display:inline-flex;gap:10px;align-items:center;justify-self:center}.editor-root .workspace{display:grid;grid-template-columns:60px minmax(0,1fr) 340px 64px;gap:0;flex:1;min-height:0;height:calc(100vh - 63px)}.editor-root .left-rail{background:var(--color-bg-canvas);border-top:none;border-right:1px solid var(--color-border);border-bottom:none;border-left:none;border-radius:0;padding:10px;display:flex;flex-direction:column;gap:10px;align-items:center;overflow-y:auto;height:100%}.editor-root .tool-icon{width:44px;height:44px;border-radius:10px;border:1px solid var(--color-border);background:var(--color-bg-canvas);color:var(--color-text-secondary);display:grid;place-items:center;font-weight:700;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.editor-root .tool-icon--active{border-color:var(--color-accent);box-shadow:0 6px 18px var(--color-accent-glow),inset 0 1px #ffffff0f}.editor-root .rail-separator{width:100%;height:1px;background:var(--color-border);margin:6px 0}.editor-root .canvas-region{background:#ffffff05;border:none;border-radius:0;padding:0;display:flex;flex-direction:column;position:relative;height:calc(100vh - 63px);min-height:0;overflow:hidden}.editor-root .canvas-shell{position:relative;border:none;border-radius:0;background:var(--color-bg-canvas);flex:1;height:100%;min-height:0;display:grid;place-items:center;overflow:auto}.editor-root .canvas-shell[data-loading=true]:after{content:"Rendering...";position:absolute;top:0;right:0;bottom:0;left:0;background:#00000040;display:grid;place-items:center;color:var(--color-text-primary);font-weight:600;letter-spacing:.03em}.editor-root .canvas-stage{display:grid;place-items:center;width:100%;height:100%;min-height:0;overflow:visible;position:relative}.editor-root .canvas-layers{position:relative;display:grid;place-items:center;isolation:isolate;background:#ffffff0d;border:none;border-radius:8px;overflow:visible;box-shadow:none;min-width:96%;min-height:96%;transition:opacity .14s ease}.editor-root .canvas-layers[data-ready=true][data-fitted=false]{opacity:0}.editor-root .canvas-checker{position:absolute;top:0;right:0;bottom:0;left:0;background:none;opacity:0;pointer-events:none}.editor-root .canvas-surface{position:relative;display:block;width:100%;height:auto;max-width:none;max-height:none}.editor-root .canvas-surface--composite{box-shadow:none}.editor-root canvas{display:block;width:auto;height:auto;max-width:none;max-height:none}.editor-root .placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:var(--color-text-muted);z-index:1}.editor-root .module-rail{background:linear-gradient(180deg,var(--color-bg-primary),var(--color-bg-canvas));border-left:1px solid var(--color-border);padding:12px 6px;display:flex;flex-direction:column;gap:16px;align-items:center;overflow-y:auto;height:100%}.editor-root .module-group{display:flex;flex-direction:column;gap:6px;align-items:center;width:100%;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.05)}.editor-root .module-group:last-child{border-bottom:none}.editor-root .module-group-header{position:relative;width:48px;height:48px;border-radius:12px;background:transparent;border:1px solid transparent;cursor:pointer;display:grid;place-items:center;font-size:20px;padding:0;transition:all .2s cubic-bezier(.4,0,.2,1)}.editor-root .module-group-header:hover{background:#ffffff0d;border-color:var(--color-border)}.editor-root .module-group-header--active{background:var(--color-accent-glow)!important;border-color:#2563eb66!important;box-shadow:0 0 15px var(--color-accent-glow)}.editor-root .module-group-items{display:flex;flex-direction:column;gap:8px;align-items:center;padding:4px 0 8px;animation:slideInDown .2s ease-out}@keyframes slideInDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.editor-root .module-icon{width:36px;height:36px;border-radius:8px;font-size:13px}.editor-root .group-icon{filter:grayscale(.5);transition:filter .2s ease}.editor-root .module-group-header--active .group-icon{filter:grayscale(0)}.editor-root .side-panel{background:var(--color-bg-canvas);border-left:1px solid var(--color-border);padding:10px;display:flex;flex-direction:column;gap:12px;min-height:0;overflow-y:auto;height:100%}.editor-root .side-panel__group-view{display:flex;flex-direction:column}.editor-root .side-panel__scrollable{display:flex;flex-direction:column;gap:12px}.editor-root .panel__group{background:#ffffff05;border:1px solid var(--color-border-subtle);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px}.editor-root .panel__group.compact{padding:10px 10px 16px}.editor-root .panel__title{margin:0 0 20px;font-weight:600;color:var(--color-text-primary);position:relative;padding-bottom:6px}.editor-root .panel__title:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--color-border)}.editor-root .panel__title--sleek{font-size:14px;letter-spacing:.04em;text-transform:uppercase;color:var(--color-text-muted)}.editor-root .panel__title-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.editor-root .module-meta h3{margin:0 0 4px}.editor-root .module-meta p{margin:0;color:var(--color-text-secondary)}.editor-root .notice{margin-top:8px;padding:10px 12px;border-radius:10px;border:1px solid var(--color-warning);background:var(--color-warning-bg);color:var(--color-warning);font-size:14px}.editor-root .notice--compact{font-size:12px;padding:8px}.editor-root .controls{display:flex;flex-direction:column;gap:10px}.editor-root .control-row{display:flex;align-items:flex-end;gap:8px}.editor-root .control-row .control{flex:1}.editor-root .control-link{padding-bottom:10px}.editor-root .link-btn{background:none;border:1px solid var(--color-border);border-radius:6px;width:32px;height:32px;display:grid;place-items:center;font-size:14px;cursor:pointer;transition:all .2s ease;padding:0;color:var(--color-text-secondary)}.editor-root .link-btn:hover{border-color:var(--color-accent)}.editor-root .link-btn.active{background:#007acc1a;border-color:var(--color-accent);color:var(--color-accent)}.editor-root .resize-controls input[type=number]{width:100%;padding:8px 10px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-bg-tertiary);color:var(--color-text-primary);font-family:inherit;font-size:var(--font-size-base, 13px)}.editor-root .resize-controls input[type=number]:focus{outline:none;border-color:var(--color-accent)}.preset-chips{display:flex;flex-wrap:wrap;gap:6px}.editor-root .preset-chip{padding:5px 10px;border:1px solid var(--color-border);border-radius:6px;background:transparent;color:var(--color-text-secondary);font-size:11px;font-family:inherit;cursor:pointer;transition:all .15s ease;white-space:nowrap}.editor-root .preset-chip:hover:not(:disabled){border-color:var(--color-accent);color:var(--color-text-primary)}.editor-root .preset-chip--active{background:var(--color-accent);border-color:var(--color-accent);color:#fff}.editor-root .preset-chip--active:hover:not(:disabled){color:#fff}.editor-root .preset-chip:disabled{opacity:.4;cursor:not-allowed}.editor-root .preset-chip--platform{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 10px;flex:1;min-width:0}.editor-root .preset-chip-label{font-weight:500;font-size:11px}.editor-root .preset-chip-dims{font-size:9px;opacity:.7}.platform-tabs{display:flex;gap:4px;margin-bottom:6px}.editor-root .platform-tab{flex:1;padding:5px 8px;border:1px solid var(--color-border);border-radius:6px;background:transparent;color:var(--color-text-secondary);font-size:11px;font-family:inherit;cursor:pointer;transition:all .15s ease}.editor-root .platform-tab:hover:not(:disabled){border-color:var(--color-accent);color:var(--color-text-primary)}.editor-root .platform-tab--active{background:var(--color-accent-glow);border-color:var(--color-accent);color:var(--color-accent)}.editor-root .platform-tab:disabled{opacity:.4;cursor:not-allowed}.editor-root .platform-presets{display:flex;flex-wrap:wrap;gap:6px}.editor-root .platform-presets--grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.editor-root .platform-presets--grid .preset-chip--platform{flex:unset;width:100%}.resize-section{display:flex;flex-direction:column;gap:8px;padding-bottom:12px;margin-bottom:4px;border-bottom:1px solid var(--color-border)}.editor-root .resize-section:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.editor-root .resize-section-title{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-secondary)}.editor-root .resize-dimensions-subtitle{font-size:13px;font-weight:500;color:var(--color-text-primary);letter-spacing:.01em;margin-top:-4px}.editor-root .resize-subsection{display:flex;flex-direction:column;gap:6px;margin-top:4px}.editor-root .control{display:flex;flex-direction:column;gap:6px;color:var(--color-text-primary)}.editor-root .control-label{display:flex;justify-content:space-between;font-size:11px;color:var(--color-text-muted)}.editor-root input[type=range]{width:100%;accent-color:var(--color-accent-active);cursor:grab}.editor-root input[type=range]:active{cursor:grabbing}.editor-root:has(input[type=range]:active){cursor:grabbing}.editor-root select{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:8px 32px 8px 12px;border-radius:6px;border:1px solid var(--color-border);background:#ffffff0a;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px;color:var(--color-text-primary);font-size:13px;font-weight:500;cursor:pointer;transition:all .15s}.editor-root select:hover:not(:disabled){border-color:var(--color-bg-active)}.editor-root select:disabled{opacity:.4;cursor:not-allowed}.editor-root .muted{color:var(--color-text-muted);margin:0}.editor-root .zoom-controls{width:100%;display:flex;flex-direction:column;gap:12px;align-items:center}.editor-root .zoom-buttons{display:flex;flex-direction:column;align-items:center;gap:10px}.editor-root .zoom-btn{width:34px;height:34px;padding:0;display:grid;place-items:center}.editor-root .hand-btn{width:40px;height:40px;border-radius:10px}.editor-root .hand-btn--active{border-color:var(--color-accent);box-shadow:0 6px 18px var(--color-accent-glow)}.editor-root .zoom-indicator{position:absolute;right:12px;bottom:12px;padding:6px 10px;border-radius:8px;background:#00000059;border:1px solid var(--color-border);font-size:12px;color:var(--color-text-primary);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:inline-flex;align-items:center;gap:6px;pointer-events:auto}.editor-root .zoom-reset{border:1px solid var(--color-border);background:#ffffff0d;color:var(--color-text-primary);padding:4px 6px;border-radius:6px;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.editor-root .zoom-reset:hover{border-color:var(--color-accent);box-shadow:0 4px 14px var(--color-accent-glow)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .status-header{background:var(--color-bg-primary);border:0;border-bottom:1px solid var(--color-border);box-shadow:0 8px 24px #0f172a0f}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .left-rail,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-rail,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .side-panel{background:var(--color-bg-primary);border:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .left-rail{border-top:none;border-right:1px solid var(--color-border);border-bottom:none;border-left:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-rail{border-top:none;border-left:1px solid var(--color-border);border-bottom:none;border-right:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .side-panel{border-top:none;border-left:1px solid var(--color-border);border-bottom:none;border-right:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .canvas-region{background:var(--color-bg-tertiary);border:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .canvas-shell{border:none;background:var(--color-bg-canvas)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .canvas-layers{background:var(--color-bg-primary);border-color:transparent;box-shadow:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .canvas-checker{background-image:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__group{background:var(--color-bg-primary);border:1px solid var(--color-border);box-shadow:0 6px 16px #0f172a0a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__title,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__title--sleek{color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn){background:var(--color-bg-tertiary);border:1px solid var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn):hover:not(:disabled),html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .hand-btn--active,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-icon--active{border-color:var(--color-accent);box-shadow:0 4px 12px #0000001a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .file-input{border:1px dashed var(--color-border);color:var(--color-text-primary);background:var(--color-bg-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .file-input:hover{border-color:var(--color-accent);color:var(--color-accent);background:#0000000a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root select{background:var(--color-bg-primary);border-color:var(--color-border);color:var(--color-text-primary);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-icon{background:var(--color-bg-tertiary);border:1px solid var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .zoom-indicator{background:#ffffffe6;border:1px solid var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .zoom-reset{background:var(--color-bg-tertiary);border:1px solid var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-group-header:hover{background:var(--color-bg-tertiary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-group-header--active{background:var(--color-bg-hover)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-group{border-bottom-color:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .zoom-reset:hover{border-color:var(--color-accent);box-shadow:0 2px 8px #0000001a}.editor-root .recent-list{display:flex;flex-direction:column;gap:8px}.editor-root .recent{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left}.editor-root .file-input{border:1px dashed var(--color-border);padding:10px 14px;border-radius:10px;text-align:center;cursor:pointer;transition:all .2s ease;color:var(--color-text-secondary);background:#ffffff05;display:inline-flex;align-items:center;height:42px}.editor-root .file-input:hover{border-color:var(--color-accent);color:var(--color-accent);background:var(--color-accent-glow)}.editor-root .file-input input{display:none}.editor-root .file-input.compact{padding:10px 12px}.editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn){border:1px solid var(--color-border);background:linear-gradient(135deg,var(--color-bg-primary),var(--color-bg-canvas));color:var(--color-text-primary);padding:10px 14px;border-radius:10px;font-weight:600;cursor:pointer;transition:transform .1s ease,border-color .2s ease,box-shadow .2s ease}.editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn):hover:not(:disabled){border-color:var(--color-accent);box-shadow:0 10px 30px var(--color-accent-glow)}.editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn):active:not(:disabled){transform:translateY(1px)}.editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn):disabled{opacity:.4;cursor:not-allowed}.editor-root .tertiary{border-color:var(--color-border);background:#ffffff0a;padding:8px 12px}.editor-root .secondary{background:#ffffff0a}.editor-root .curve-graph{border:1px solid var(--color-border);border-radius:12px;padding:10px;background:radial-gradient(circle at 20% 20%,var(--color-accent-glow),transparent 45%),radial-gradient(circle at 80% 70%,rgba(125,211,252,.08),transparent 40%),linear-gradient(135deg,var(--color-bg-canvas),var(--color-bg-canvas));box-shadow:inset 0 1px #ffffff0a}.editor-root .curve-grid{fill:var(--color-bg-canvas);stroke:var(--color-border);stroke-width:1.2;rx:8;ry:8}.editor-root .curve-path{fill:none;stroke:var(--color-accent);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(37,99,235,.35))}.editor-root .curve-handle{fill:var(--color-bg-canvas);stroke:var(--color-accent);stroke-width:2;cursor:grab;filter:drop-shadow(0 2px 6px rgba(37,99,235,.4))}.editor-root .curve-handle:active{cursor:grabbing}.editor-root .brush-cursor{position:absolute;top:0;left:0;pointer-events:none;border:1.5px solid var(--color-accent);border-radius:50%;mix-blend-mode:difference;box-shadow:0 0 8px #2563eb66;z-index:10}@media (max-width: 768px){.editor-root .status-header{display:flex;flex-wrap:wrap;gap:6px;padding:6px 10px}.editor-root .status-line{font-size:12px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-root .status-line button.tertiary{padding:6px;margin-right:4px;font-size:0;gap:0}.editor-root .status-line button.tertiary svg{font-size:initial}.editor-root .status-center{gap:4px}.editor-root .status-center button{padding:6px 8px;font-size:12px}.editor-root .status-actions{gap:4px}.editor-root .status-actions button,.editor-root .status-actions .file-input{padding:6px 8px}.editor-root .status-actions button[title="Save changes to cloud"]{font-size:0;gap:0}.editor-root .status-actions button[title="Save changes to cloud"] svg{font-size:initial}.editor-root .user-profile{display:none!important}.editor-root .workspace{display:flex;flex-direction:column;height:calc(100vh - 50px);position:relative}.editor-root .canvas-region{flex:1;height:auto;min-height:0}.editor-root .canvas-shell{height:100%}.editor-root .left-rail,.editor-root .module-rail,.editor-root .side-panel{position:absolute;z-index:100;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);box-shadow:0 -4px 20px #0000004d}.editor-root .left-rail{bottom:0;left:0;right:auto;width:64px;height:auto;max-height:70vh;border-right:1px solid var(--color-border);border-top:1px solid var(--color-border);border-radius:0 16px 0 0;padding:10px;overflow-y:auto;-webkit-overflow-scrolling:touch}.editor-root .left-rail.sidebar--open{transform:translateY(0)}.editor-root .module-rail{bottom:0;right:0;left:auto;width:64px;height:auto;max-height:70vh;border-left:1px solid var(--color-border);border-top:1px solid var(--color-border);border-radius:16px 0 0;padding:10px 6px;overflow-y:auto;-webkit-overflow-scrolling:touch}.editor-root .module-rail.sidebar--open{transform:translateY(0)}.editor-root .module-group-header{width:44px;height:44px;flex-shrink:0}.editor-root .side-panel{bottom:0;left:0;right:0;top:auto;height:55vh;border-left:none;border-top:1px solid var(--color-border);border-radius:16px 16px 0 0;overflow-y:auto;-webkit-overflow-scrolling:touch}.editor-root .side-panel.sidebar--open{transform:translateY(0)}.editor-root .side-panel__drag-handle{display:flex!important;justify-content:center;padding:8px 0 4px;cursor:pointer;flex-shrink:0}.editor-root .side-panel__drag-handle:after{content:"";width:36px;height:4px;border-radius:2px;background:var(--color-bg-active)}.editor-root .mobile-backdrop{display:block!important;position:absolute;top:0;right:0;bottom:0;left:0;z-index:99;background:#0006}.editor-root .mobile-fab-bar{display:flex!important;position:absolute;bottom:12px;left:50%;transform:translate(-50%);z-index:98;gap:8px;padding:6px 10px;border-radius:28px;background:#0f172ad9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--color-border);box-shadow:0 4px 20px #0006}.editor-root .mobile-fab-btn{width:40px;height:40px;border-radius:50%;background:transparent;border:1px solid var(--color-border);color:var(--color-text-secondary);display:grid;place-items:center;font-size:18px;cursor:pointer;padding:0;transition:all .2s ease}.editor-root .mobile-fab-btn:hover{border-color:var(--color-accent)!important;color:var(--color-accent)!important;background:var(--color-accent-glow)!important;box-shadow:none!important}.editor-root .mobile-fab-btn--active{background:var(--color-accent-glow);border-color:var(--color-accent);color:var(--color-accent)}.editor-root .zoom-indicator{bottom:68px;right:8px;font-size:11px;padding:4px 8px}}@media (min-width: 769px){.editor-root .mobile-fab-bar,.editor-root .mobile-backdrop,.editor-root .side-panel__drag-handle{display:none!important}}@media (max-width: 768px){html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .left-rail{border-right:1px solid var(--color-border);border-top:1px solid var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-rail{border-left:1px solid var(--color-border);border-top:1px solid var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .side-panel{border-top:1px solid var(--color-border);border-left:none}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .side-panel__drag-handle:after{background:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .mobile-backdrop{background:#0003}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .mobile-fab-bar{background:#ffffffe6;border-color:var(--color-border);box-shadow:0 4px 20px #0000001a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .mobile-fab-btn{border-color:var(--color-border);color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .mobile-fab-btn--active{background:#00000014;border-color:var(--color-accent);color:var(--color-accent)}}.editor-root .clone-source-indicator,.editor-root .clone-traveling-indicator{position:absolute;top:0;left:0;width:16px;height:16px;border:1.5px solid rgba(255,255,255,.9);box-shadow:0 0 4px #00000080;border-radius:50%;pointer-events:none;transform:translate(-50%,-50%);mix-blend-mode:difference;display:none;z-index:100}.editor-root .clone-source-indicator:after,.editor-root .clone-traveling-indicator:after{content:"";position:absolute;top:50%;left:50%;width:100%;height:100%;border-radius:50%;transform:translate(-50%,-50%);border:1px solid rgba(0,0,0,.5)}.editor-root .clone-source-indicator:before,.editor-root .clone-traveling-indicator:before{content:"+";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;font-size:14px;font-weight:200;line-height:0}.user-profile{display:flex;align-items:center;gap:10px;padding:4px 8px;border-radius:10px;background:#ffffff0a;border:1px solid var(--color-border);margin-left:12px}.editor-root .user-avatar{width:32px;height:32px;border-radius:50%;border:2px solid var(--color-accent);object-fit:cover}.editor-root .user-email{font-size:14px;color:var(--color-text-secondary);max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-root .logout-btn{padding:6px 12px!important;font-size:13px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .user-profile{background:var(--color-bg-tertiary);border-color:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .user-email{color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .user-avatar{border-color:var(--color-accent)}@media (max-width: 1200px){.editor-root .user-email{display:none}}.image-loading-container,.editor-root .image-error-container{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px}.editor-root .image-loading-content,.editor-root .image-error-content{text-align:center;max-width:500px;padding:40px;background:#ffffff0d;border-radius:16px;border:1px solid var(--color-border)}.editor-root .image-loading-content .spinner{width:64px;height:64px;border:4px solid rgba(37,99,235,.3);border-top-color:var(--color-accent);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 24px}.editor-root .image-loading-content h2,.editor-root .image-error-content h2{margin:0 0 16px;font-size:24px;color:var(--color-text-primary)}.editor-root .image-loading-content p{margin:0;color:var(--color-text-muted);font-size:16px}.editor-root .error-message{color:#fca5a5;font-size:16px;margin:0 0 24px;padding:12px;background:var(--color-error-bg);border-radius:8px;border:1px solid rgba(239,68,68,.3)}.editor-root .error-details{text-align:left;margin:24px 0;padding:16px;background:#0003;border-radius:8px;border:1px solid var(--color-border)}.editor-root .error-details p{margin:8px 0;color:var(--color-text-primary);font-size:14px}.editor-root .error-details strong{color:var(--color-text-muted);margin-right:8px}.editor-root .error-actions{display:flex;gap:12px;justify-content:center;margin-top:24px}.editor-root .retry-btn,.editor-root .upload-btn{padding:12px 24px;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.editor-root .retry-btn{background:var(--color-accent);border:1px solid var(--color-accent-active);color:#fff}.editor-root .retry-btn:hover{background:var(--color-accent-active);transform:translateY(-1px);box-shadow:0 4px 12px #2563eb4d}.editor-root .upload-btn{background:#ffffff1a;border:1px solid var(--color-border);color:var(--color-text-primary)}.editor-root .upload-btn:hover{background:#ffffff26;border-color:var(--color-bg-active);transform:translateY(-1px)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .image-loading-content,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .image-error-content{background:var(--color-bg-primary);border-color:var(--color-border);box-shadow:0 10px 40px #0000001a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .image-loading-content h2,html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .image-error-content h2{color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .image-loading-content p{color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .error-details{background:var(--color-bg-tertiary);border-color:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .error-details p{color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .upload-btn{background:var(--color-bg-hover);border-color:var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .upload-btn:hover{background:var(--color-bg-active);border-color:var(--color-text-muted)}.chat-container{display:flex;flex-direction:column;height:480px;background:#0f172a66;border-radius:12px;border:1px solid rgba(255,255,255,.05);overflow:hidden;margin-top:4px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .chat-container{background:#f1f5f980;border:1px solid var(--color-border)}.editor-root .chat-messages{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.1) transparent}.editor-root .chat-messages::-webkit-scrollbar{width:4px}.editor-root .chat-messages::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}.editor-root .chat-message{display:flex;flex-direction:column;max-width:85%}.editor-root .chat-message--user{align-self:flex-end}.editor-root .chat-message--ai{align-self:flex-start}.editor-root .chat-bubble{padding:8px 12px;border-radius:14px;font-size:13px;line-height:1.4;position:relative}.editor-root .chat-message--user .chat-bubble{background:linear-gradient(135deg,var(--color-accent),var(--color-accent-active));color:#fff;border-bottom-right-radius:2px;box-shadow:0 4px 12px var(--color-accent-glow)}.editor-root .chat-message--ai .chat-bubble{background:#ffffff14;color:var(--color-text-primary);border-bottom-left-radius:2px;border:1px solid rgba(255,255,255,.05)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .chat-message--ai .chat-bubble{background:var(--color-bg-primary);color:var(--color-text-primary);border:1px solid var(--color-border);box-shadow:0 2px 4px #00000005}.editor-root .chat-time{font-size:10px;color:var(--color-text-muted);margin-top:4px;padding:0 4px}.editor-root .chat-message--user .chat-time{text-align:right}.editor-root .chat-input-row{display:flex;gap:8px;padding:10px;background:#0003;border-top:1px solid rgba(255,255,255,.05)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .chat-input-row{background:#fffc;border-top:1px solid var(--color-border)}.editor-root .chat-input{flex:1;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 12px;color:#fff;font-size:13px;resize:none;font-family:inherit;transition:border-color .2s}.editor-root .chat-input:focus{outline:none;border-color:var(--color-accent)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .chat-input{background:var(--color-bg-tertiary);border:1px solid var(--color-border);color:var(--color-text-primary)}.editor-root .chat-send-btn{width:32px;height:32px;padding:0;border-radius:8px;background:var(--color-accent);border:none;color:#fff;display:grid;place-items:center;font-size:16px;flex-shrink:0}.editor-root .chat-send-btn:hover:not(:disabled){background:var(--color-accent-active);transform:scale(1.05)}.editor-root .chat-send-btn:disabled{opacity:.3}.inpaint-controls{display:flex;flex-direction:column;gap:12px}.editor-root .inpaint-mask-actions{display:flex;gap:8px}.editor-root .inpaint-mask-actions button{flex:1;font-size:12px;padding:8px 10px}.editor-root .inpaint-prompt-section{margin-top:4px}.editor-root .inpaint-prompt{width:100%;padding:10px 12px;border-radius:10px;border:1px solid var(--color-border);background:var(--color-bg-canvas);color:var(--color-text-primary);font-size:13px;resize:vertical;min-height:70px;font-family:inherit;transition:border-color .2s;box-sizing:border-box}.editor-root .inpaint-prompt:focus{outline:none;border-color:var(--color-accent)}.editor-root .inpaint-prompt::placeholder{color:var(--color-text-muted)}.editor-root .inpaint-apply-btn{background:linear-gradient(135deg,#7c3aed,#6d28d9)!important;border:none!important;color:#fff!important;padding:12px 16px!important;font-weight:600;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s ease}.editor-root .inpaint-apply-btn:hover:not(:disabled){background:linear-gradient(135deg,#8b5cf6,#7c3aed)!important;box-shadow:0 8px 24px #7c3aed59!important;transform:translateY(-1px)}.editor-root .inpaint-apply-btn:active:not(:disabled){transform:translateY(0)}.editor-root .inpaint-apply-btn:disabled{opacity:.5;cursor:not-allowed}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .inpaint-apply-btn{box-shadow:0 4px 12px #7c3aed33}.editor-root .inpaint-help summary{-webkit-user-select:none;user-select:none}.editor-root .inpaint-help details[open] summary{margin-bottom:4px}.mask-overlay-canvas{position:absolute;top:0;left:0;pointer-events:none;opacity:.6;mix-blend-mode:screen;transition:opacity .2s ease}.editor-root .mask-overlay-canvas--active{pointer-events:auto;cursor:crosshair}.canvas-surface--smart-tool{cursor:crosshair}.clone-source-cursor{cursor:crosshair!important}.editor-root .mask-overlay-canvas--hidden{opacity:0}.inpaint-mode-indicator{position:absolute;top:12px;left:12px;padding:6px 12px;border-radius:8px;background:#7c3aede6;color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;gap:6px;pointer-events:none;z-index:10;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);box-shadow:0 4px 12px #0003}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .inpaint-mode-indicator{background:#7c3aedf2}.tool-btn{background:#ffffff0a;border:1px solid var(--color-border);color:var(--color-text-muted);border-radius:8px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:6px;font-weight:500}.editor-root .tool-btn:hover{border-color:var(--color-bg-active);background:#ffffff14;color:var(--color-text-primary)}.editor-root .tool-btn.active{background:var(--color-accent-glow);border-color:var(--color-accent);color:var(--color-accent);box-shadow:0 0 10px var(--color-accent-glow)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .control{color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .control-label{color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .control-label span{color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__title{color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__title:after{background:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__title--sleek{color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .panel__group{background:var(--color-bg-primary);border-color:var(--color-border);box-shadow:0 1px 3px #0000000f}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .side-panel{background:var(--color-bg-primary);border-left:1px solid var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .module-meta p{color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .muted{color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .notice{border-color:var(--color-text-muted);background:#0000000a;color:var(--color-text-secondary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root select{background:var(--color-bg-primary);border-color:var(--color-border);color:var(--color-text-primary);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:12px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root select:hover:not(:disabled){border-color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn){background:var(--color-bg-tertiary);border-color:var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root button:not([data-rail-button]):not(.rt-btn):not(.rp-fit-btn):not(.rp-platform-card):not(.rp-platform-tab):not(.rp-dropdown-trigger):not(.rp-dropdown-item):not(.crop-apply-btn):not(.crop-reset-btn):hover:not(:disabled){border-color:var(--color-accent);box-shadow:0 2px 8px #0000001a}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .secondary{background:var(--color-bg-hover)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .tertiary{background:var(--color-bg-hover);border-color:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .tool-btn{background:var(--color-bg-tertiary);border-color:var(--color-border);color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .tool-btn:hover{border-color:var(--color-text-muted);background:var(--color-bg-hover);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .tool-btn.active{background:var(--color-accent);border-color:var(--color-accent);color:#fff}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .inpaint-prompt{background:var(--color-bg-primary);border-color:var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .inpaint-prompt::placeholder{color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .resize-controls input[type=number]{background:var(--color-bg-primary);border-color:var(--color-border);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .curve-graph{background:var(--color-bg-primary);border-color:var(--color-border);box-shadow:inset 0 1px #00000008}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .curve-grid{fill:var(--color-bg-tertiary);stroke:var(--color-border)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .curve-handle{fill:var(--color-bg-primary);filter:drop-shadow(0 1px 3px rgba(0,0,0,.15))}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .file-input{border-color:var(--color-border);color:var(--color-text-secondary);background:var(--color-bg-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .file-input:hover{border-color:var(--color-accent);color:var(--color-accent);background:#00000008}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .link-btn{border-color:var(--color-border);color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .link-btn.active{background:#0000000f;border-color:var(--color-accent);color:var(--color-accent)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root input[type=range]{accent-color:var(--color-accent)}.resize-panel{display:flex;flex-direction:column;gap:12px}.editor-root .rp-section{display:flex;flex-direction:column;gap:6px}.editor-root .rp-section-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-section-label{color:var(--color-text-muted)}.editor-root .rp-section-heading{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);padding:8px 0 4px;border-top:1px solid rgba(255,255,255,.08);margin-top:4px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-section-heading{color:var(--color-text-muted);border-top-color:#00000014}.editor-root .rp-dim-display{text-align:center;font-size:13px;font-weight:600;color:var(--color-text-primary);padding:6px 0;letter-spacing:.02em}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-dim-display{color:var(--color-text-primary)}.editor-root .rp-dim-row{display:flex;align-items:center;gap:6px}.editor-root .rp-dim-field{flex:1;display:flex;align-items:center;gap:6px;background:#ffffff0a;border:1px solid var(--color-border);border-radius:6px;padding:6px 8px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-dim-field{background:var(--color-bg-primary);border-color:var(--color-border)}.editor-root .rp-dim-label{font-size:11px;font-weight:600;color:var(--color-text-muted);flex-shrink:0;width:14px;text-align:center}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-dim-label{color:var(--color-text-muted)}.editor-root .rp-dim-input{width:100%;background:transparent;border:none;outline:none;color:var(--color-text-primary);font-size:13px;font-weight:500;font-family:inherit;-moz-appearance:textfield}.editor-root .rp-dim-input::-webkit-inner-spin-button,.editor-root .rp-dim-input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-dim-input{color:var(--color-text-primary)}.editor-root .rp-link-btn{flex-shrink:0;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-muted);cursor:pointer;transition:all .15s;padding:0}.editor-root .rp-link-btn:hover{border-color:var(--color-bg-active);color:var(--color-text-primary)}.editor-root .rp-link-btn--active{border-color:var(--color-accent);color:var(--color-accent);background:var(--color-accent-glow)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-link-btn{border-color:var(--color-border);color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-link-btn:hover{border-color:var(--color-text-muted);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-link-btn--active{border-color:var(--color-accent);color:var(--color-accent);background:#0000000d}.rp-ratio-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.editor-root .rp-ratio-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 4px;background:#ffffff0a;border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-muted);cursor:pointer;transition:all .15s}.editor-root .rp-ratio-btn:hover:not(:disabled){border-color:var(--color-bg-active);background:#ffffff14;color:var(--color-text-primary)}.editor-root .rp-ratio-btn--active{border-color:var(--color-accent);background:var(--color-accent-glow);color:var(--color-accent)}.editor-root .rp-ratio-btn:disabled{opacity:.4;cursor:not-allowed}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-ratio-btn{background:var(--color-bg-tertiary);border-color:var(--color-border);color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-ratio-btn:hover:not(:disabled){border-color:var(--color-text-muted);background:var(--color-bg-hover);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-ratio-btn--active{border-color:var(--color-accent);background:var(--color-accent);color:#fff}.editor-root .rp-ratio-label{font-size:10px;font-weight:600;line-height:1}.rp-fit-row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.editor-root .rp-fit-btn{padding:6px 8px;font-size:11px;font-weight:600;background:var(--color-surface, var(--color-bg-tertiary));border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-secondary);cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease;text-align:center}.editor-root .rp-fit-btn:hover:not(:disabled),.editor-root .rp-fit-btn--active,.editor-root .rp-fit-btn--active:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.editor-root .rp-fit-btn:disabled{opacity:.4;cursor:not-allowed}.rp-dropdown{position:relative}.editor-root .rp-dropdown-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;background:var(--color-surface, var(--color-bg-tertiary));border:1px solid var(--color-border);border-radius:6px;color:var(--color-text);font-size:12px;font-weight:500;cursor:pointer;transition:border-color .15s ease,background .15s ease}.editor-root .rp-dropdown-trigger:hover:not(:disabled){border-color:var(--color-border-strong, var(--color-text-muted))}.editor-root .rp-dropdown-trigger[aria-expanded=true]{border-color:var(--color-primary)}.editor-root .rp-dropdown-trigger:disabled{opacity:.4;cursor:not-allowed}.editor-root .rp-dropdown-chevron{flex-shrink:0;color:var(--color-text-muted);transition:transform .15s ease}.editor-root .rp-dropdown-chevron--open{transform:rotate(180deg);color:var(--color-primary)}.rp-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--color-surface);border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px #0000001f;z-index:50;overflow:hidden}.editor-root .rp-dropdown-search-wrap{position:relative;padding:8px;border-bottom:1px solid var(--color-border)}.editor-root .rp-dropdown-search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:var(--color-text-muted);pointer-events:none}.editor-root .rp-dropdown-search{width:100%;padding:6px 8px 6px 28px;background:var(--color-surface);border:1px solid var(--color-border);border-radius:5px;color:var(--color-text);font-size:12px;outline:none;transition:border-color .15s ease}.editor-root .rp-dropdown-search:focus{border-color:var(--color-primary)}.editor-root .rp-dropdown-search::placeholder{color:var(--color-text-muted)}.editor-root .rp-dropdown-list{max-height:200px;overflow-y:auto;padding:4px}.editor-root .rp-dropdown-item{width:100%;display:flex;align-items:center;justify-content:space-between;padding:7px 10px;background:transparent;border:none;border-radius:5px;color:var(--color-text-secondary);font-size:12px;cursor:pointer;text-align:left;transition:background .12s ease,color .12s ease}.editor-root .rp-dropdown-item:hover,.editor-root .rp-dropdown-item--active,.editor-root .rp-dropdown-item--active:hover{background:var(--color-primary);color:var(--color-on-primary)}.editor-root .rp-dropdown-item-count{font-size:11px;color:var(--color-text-muted);background:transparent;padding:1px 6px;border-radius:100px;font-variant-numeric:tabular-nums}.editor-root .rp-dropdown-item:hover .rp-dropdown-item-count,.editor-root .rp-dropdown-item--active .rp-dropdown-item-count{color:var(--color-on-primary);background:#ffffff26}.editor-root .rp-dropdown-empty{padding:12px 10px;text-align:center;color:var(--color-text-muted);font-size:12px}.rp-platform-tabs{display:flex;gap:4px}.editor-root .rp-platform-tab{flex:1;padding:6px 8px;font-size:11px;font-weight:600;background:#ffffff0a;border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-muted);cursor:pointer;transition:all .15s;text-align:center}.editor-root .rp-platform-tab:hover:not(:disabled){border-color:var(--color-bg-active);color:var(--color-text-primary)}.editor-root .rp-platform-tab--active{border-color:var(--color-accent);background:var(--color-accent-glow);color:var(--color-accent)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-platform-tab{background:var(--color-bg-tertiary);border-color:var(--color-border);color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-platform-tab:hover:not(:disabled){border-color:var(--color-text-muted);color:var(--color-text-primary)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-platform-tab--active{border-color:var(--color-accent);background:var(--color-accent);color:#fff}.rp-platform-grid{display:flex;flex-direction:column;gap:4px}.editor-root .rp-platform-card{display:flex;align-items:center;gap:10px;padding:8px 10px;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--color-text-secondary);cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease;text-align:left;position:relative}.editor-root .rp-platform-card:hover:not(:disabled){background:var(--color-hover-bg);border-color:var(--color-border);color:var(--color-text)}.editor-root .rp-platform-card--active,.editor-root .rp-platform-card--active:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.editor-root .rp-platform-card:disabled{opacity:.4;cursor:not-allowed}.editor-root .rp-platform-info{display:flex;align-items:baseline;gap:8px;min-width:0;flex:1}.editor-root .rp-platform-name{font-size:12px;font-weight:500;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-root .rp-platform-dims{font-size:10px;color:var(--color-text-muted);line-height:1.3;margin-left:auto;flex-shrink:0;font-variant-numeric:tabular-nums}.editor-root .rp-platform-card--active .rp-platform-dims{color:var(--color-on-primary);opacity:.7}.rp-reset-btn{float:right;font-size:10px;font-weight:500;color:var(--accent, #818cf8);background:none;border:none;cursor:pointer;padding:0;text-transform:uppercase;letter-spacing:.04em}.editor-root .rp-reset-btn:hover{opacity:.8}.editor-root .rp-color-row{display:flex;align-items:center;gap:6px}.editor-root .rp-color-picker{width:28px;height:28px;border:1.5px solid rgba(255,255,255,.15);border-radius:4px;cursor:pointer;padding:0;background:none;flex-shrink:0}.editor-root .rp-color-picker::-webkit-color-swatch-wrapper{padding:2px}.editor-root .rp-color-picker::-webkit-color-swatch{border:none;border-radius:2px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-color-picker{border-color:#00000026}.editor-root .rp-color-swatch{width:24px;height:24px;border-radius:4px;border:1.5px solid rgba(255,255,255,.15);cursor:pointer;padding:0;flex-shrink:0;transition:transform .1s}.editor-root .rp-color-swatch:hover:not(:disabled){transform:scale(1.1)}.editor-root .rp-color-swatch--active{border-color:var(--accent, #818cf8);box-shadow:0 0 0 1px var(--accent, #818cf8)}.editor-root .rp-color-swatch:disabled{opacity:.4;cursor:not-allowed}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-color-swatch{border-color:#00000026}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rp-color-swatch--active{border-color:var(--accent, #6366f1);box-shadow:0 0 0 1px var(--accent, #6366f1)}.rt-section-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted)}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rt-section-label{color:var(--color-text-muted)}.editor-root .rt-btn-grid{display:grid;gap:4px}.editor-root .rt-btn-grid--3col{grid-template-columns:repeat(3,1fr)}.editor-root .rt-btn-grid--2col{grid-template-columns:repeat(2,1fr)}.editor-root .rt-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 6px;background:var(--color-surface, var(--color-bg-tertiary));border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-secondary);cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.editor-root .rt-btn:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.editor-root .rt-btn--active,.editor-root .rt-btn--active:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.editor-root .rt-btn:disabled{opacity:.4;cursor:not-allowed}.editor-root .rt-btn-icon{font-size:16px;line-height:1}.editor-root .rt-btn-label{font-size:10px;font-weight:600;line-height:1}.editor-root .rt-status{text-align:center;font-size:11px;color:var(--color-text-muted);padding:4px 0}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .rt-status{color:var(--color-text-muted)}.crop-panel{display:flex;flex-direction:column;gap:10px}.editor-root .crop-aspect-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.editor-root .crop-aspect-grid .rt-btn{padding:5px 2px}.editor-root .crop-apply-btn,.editor-root .crop-reset-btn{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;background:var(--color-surface, var(--color-bg-tertiary));border:1px solid var(--color-border);border-radius:6px;color:var(--color-text-secondary);font-size:12px;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease,border-color .15s ease}.editor-root .crop-apply-btn:hover:not(:disabled),.editor-root .crop-reset-btn:hover:not(:disabled){background:var(--color-primary);border-color:var(--color-primary);color:var(--color-on-primary)}.editor-root .crop-apply-btn:disabled,.editor-root .crop-reset-btn:disabled{opacity:.4;cursor:not-allowed}.editor-root .straighten-slider{width:100%;height:4px;-moz-appearance:none;appearance:none;-webkit-appearance:none;background:transparent;border:none;border-radius:999px;outline:none;cursor:pointer;margin:4px 0;padding:0}.editor-root .straighten-slider::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(to right,var(--color-border) 0%,var(--color-border) var(--slider-fill-start, 50%),var(--color-primary) var(--slider-fill-start, 50%),var(--color-primary) var(--slider-fill-end, 50%),var(--color-border) var(--slider-fill-end, 50%),var(--color-border) 100%)}.editor-root .straighten-slider::-moz-range-track{height:4px;border-radius:999px;border:none;background:linear-gradient(to right,var(--color-border) 0%,var(--color-border) var(--slider-fill-start, 50%),var(--color-primary) var(--slider-fill-start, 50%),var(--color-primary) var(--slider-fill-end, 50%),var(--color-border) var(--slider-fill-end, 50%),var(--color-border) 100%)}.editor-root .straighten-slider::-moz-range-progress{height:4px;background:transparent}.editor-root .straighten-slider::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:var(--color-primary);border:2px solid var(--color-surface);margin-top:-5px;cursor:pointer;box-shadow:0 1px 3px #0000002e;transition:transform .12s ease,box-shadow .12s ease}.editor-root .straighten-slider::-webkit-slider-thumb:hover{transform:scale(1.08);box-shadow:0 2px 6px #00000040}.editor-root .straighten-slider::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--color-primary);border:2px solid var(--color-surface);cursor:pointer;box-shadow:0 1px 3px #0000002e}.editor-root .straighten-slider:disabled{opacity:.4;cursor:not-allowed}.editor-root .straighten-value{float:right;font-weight:500;color:var(--color-text);font-variant-numeric:tabular-nums}.editor-root .straighten-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--color-text-muted);margin-top:2px}html:where(:not([data-theme]),[data-theme=studio],[data-theme=lightbox],[data-theme=editorial]) .editor-root .straighten-labels{color:var(--color-text-muted)}
