*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder{opacity:1;color:#9ca3af}textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--primary-blue:#3b82f6;--primary-light:#60a5fa;--bg-light:#eff6ff;--bg-white:#fff;--text-dark:#1e293b;--text-muted:#64748b;--border-color:#e2e8f0}*{box-sizing:border-box}body{background:var(--bg-light);min-height:100vh;margin:0;padding:0;font-family:Comic Sans MS,Noto Sans SC,cursive,sans-serif;overflow:hidden}.editor-container{flex-direction:column;width:100vw;height:100vh;display:flex}.top-bar{background:var(--primary-blue);justify-content:space-between;align-items:center;padding:12px 24px;display:flex;box-shadow:0 2px 8px #3b82f64d}.logo-section{align-items:center;gap:12px;display:flex}.logo-icon{background:#fff;border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;font-size:22px;display:flex}.logo-text{color:#fff;font-size:20px;font-weight:700}.logo-subtitle{color:#ffffffd9;font-size:11px}.header-buttons{gap:10px;display:flex}.header-btn{cursor:pointer;color:var(--text-dark);background:#fff;border:none;border-radius:8px;align-items:center;gap:6px;padding:8px 16px;font-family:inherit;font-size:13px;font-weight:700;transition:all .2s;display:flex}.header-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.btn-reset{color:var(--primary-blue)}.btn-preview{background:var(--primary-light);color:#fff}.main-content{flex:1;gap:16px;padding:16px;display:flex;overflow:hidden}.editor-panel{background:var(--bg-white);border-radius:12px;flex-direction:column;flex:1;display:flex;overflow:hidden;box-shadow:0 4px 16px #00000014}.editor-header{border-bottom:1px solid var(--border-color);background:#f8fafc;align-items:center;gap:8px;padding:12px 16px;display:flex}.editor-title{color:var(--text-dark);font-size:14px;font-weight:700}.run-btn{background:var(--primary-blue);color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:5px;margin-left:auto;padding:6px 14px;font-family:inherit;font-size:12px;font-weight:700;transition:all .2s;display:flex}.run-btn:hover{background:var(--primary-light)}.run-btn:active{transform:scale(.95)}.editor-wrapper{background:#fff;flex:1;overflow:auto}.editor-wrapper .cm-editor{height:100%;font-size:15px;background:#fff!important}.editor-wrapper .cm-editor.cm-focused{outline:none}.editor-wrapper .cm-scroller{font-family:Fira Code,Consolas,monospace;line-height:1.6}.copy-btn-container{border-top:1px solid var(--border-color);background:#f8fafc;justify-content:flex-end;padding:10px 14px;display:flex}.copy-btn{background:var(--primary-blue);color:#fff;cursor:pointer;border:none;border-radius:6px;align-items:center;gap:5px;padding:6px 14px;font-family:inherit;font-size:12px;font-weight:700;transition:all .2s;display:flex}.copy-btn:hover{background:var(--primary-light)}.copy-btn.copied{background:#10b981}.clear-btn{border:1px solid var(--border-color);color:var(--text-muted);cursor:pointer;background:#f1f5f9;border-radius:6px;align-items:center;gap:5px;margin-left:8px;padding:6px 14px;font-family:inherit;font-size:12px;font-weight:700;transition:all .2s;display:flex}.clear-btn:hover{color:#dc2626;background:#fee2e2;border-color:#fca5a5}.preview-panel{background:var(--bg-white);border-radius:12px;flex-direction:column;flex:1;display:flex;overflow:hidden;box-shadow:0 4px 16px #00000014}.preview-header{background:var(--primary-blue);align-items:center;gap:8px;padding:10px 16px;display:flex}.preview-actions{gap:6px;margin-left:auto;display:flex}.preview-title{color:#fff;font-size:14px;font-weight:700}.preview-fullscreen-btn{color:#fff;cursor:pointer;background:#fff3;border:1px solid #ffffff4d;border-radius:4px;align-items:center;gap:4px;margin-left:auto;padding:4px 12px;font-family:inherit;font-size:12px;font-weight:700;transition:all .2s;display:flex}.preview-fullscreen-btn:hover{background:#ffffff4d}.preview-content{background:#fff;flex:1;overflow:hidden}.preview-iframe{background:#fff;border:none;width:100%;height:100%}.fullscreen-modal{z-index:9999;background:#000000d9;flex-direction:column;display:none;position:fixed;inset:0}.fullscreen-modal.active{display:flex}.fullscreen-header{background:var(--primary-blue);justify-content:space-between;align-items:center;padding:12px 20px;display:flex}.fullscreen-title{color:#fff;font-size:16px;font-weight:700}.fullscreen-close{cursor:pointer;color:var(--primary-blue);background:#fff;border:none;border-radius:6px;padding:8px 16px;font-family:inherit;font-size:13px;font-weight:700;transition:all .2s}.fullscreen-close:hover{transform:scale(1.05)}.fullscreen-content{flex:1;overflow:hidden}.fullscreen-iframe{background:#fff;border:none;width:100%;height:100%}.toast{background:var(--primary-blue);color:#fff;z-index:10000;opacity:0;border-radius:8px;align-items:center;gap:8px;padding:12px 24px;font-size:14px;font-weight:700;transition:all .3s;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)translateY(100px);box-shadow:0 4px 16px #3b82f666}.toast.show{opacity:1;transform:translate(-50%)translateY(0)}.editor-wrapper::-webkit-scrollbar{width:8px;height:8px}.preview-content::-webkit-scrollbar{width:8px;height:8px}.editor-wrapper::-webkit-scrollbar-track{background:#f1f5f9}.editor-wrapper::-webkit-scrollbar-thumb{background:var(--primary-blue);border-radius:4px}.cm-editor{background:#fff!important}.cm-gutters{border-right:1px solid var(--border-color)!important;color:var(--text-muted)!important;background:#f8fafc!important}.cm-activeLineGutter{background:#e0f2fe!important}.cm-activeLine{background:#f0f9ff!important}.cm-selectionBackground{background:#3b82f633!important}.cm-cursor{border-left-color:var(--primary-blue)!important}.cm-content{caret-color:var(--primary-blue);padding:12px 0}.cm-line{padding:0 16px}.cm-tag{color:#0369a1!important}.cm-attribute{color:#b45309!important}.cm-string{color:#15803d!important}.cm-property{color:#7c3aed!important}.cm-keyword{color:#be185d!important}.cm-number{color:#c2410c!important}.cm-comment{font-style:italic;color:#6b7280!important}.cm-variableName{color:#0891b2!important}.cm-function{color:#4f46e5!important}@media (max-width:768px){.main-content{flex-direction:column;gap:10px;padding:10px}.editor-panel,.preview-panel{flex:1;min-height:250px}.top-bar{padding:10px 14px}.logo-text{font-size:16px}.logo-icon{width:36px;height:36px;font-size:18px}}
