:root{--background: #09090b;--foreground: #fafafa;--card: #0f0f11;--card-foreground: #fafafa;--popover: #111113;--muted: #18181b;--muted-foreground: #a1a1aa;--border: #27272a;--input: #27272a;--primary: #fafafa;--primary-foreground: #09090b;--secondary: #18181b;--secondary-foreground: #fafafa;--accent: #27272a;--accent-foreground: #fafafa;--destructive: #ef4444;--ring: #71717a;--shadow: 0 18px 50px rgba(0, 0, 0, .36);--radius: 8px;--sidebar-width: 381px;--font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: ui-monospace, "SFMono-Regular", "Consolas", monospace;--bg-color: var(--background);--sidebar-bg: var(--card);--border-color: var(--border);--text-primary: var(--foreground);--text-secondary: var(--muted-foreground);--accent-color: var(--primary);--accent-hover: #e4e4e7;--danger-color: var(--destructive)}*{box-sizing:border-box;margin:0;padding:0}html,body,#app{height:100%}body{font-family:var(--font-main);background:var(--background);color:var(--foreground);overflow:hidden;-webkit-font-smoothing:antialiased;text-rendering:geometricPrecision}button,input,select{font:inherit}button{-webkit-user-select:none;user-select:none}#app{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);background:var(--background)}.sidebar{width:var(--sidebar-width);min-width:0;max-width:none;overflow:visible;background:color-mix(in srgb,var(--card) 94%,black);border-right:1px solid var(--border);display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative;z-index:2}.sidebar-header{min-height:64px;padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px}.header-main{display:flex;align-items:baseline;gap:9px;min-width:0}.sidebar-header h1{font-size:16px;font-weight:650;letter-spacing:0;line-height:1}.sidebar-header .version{color:var(--muted-foreground);font-family:var(--font-mono);font-size:10px}.header-actions{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.lang-switcher,.toggle-group{display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background)}.lang-btn,.toggle-btn{border:0;border-radius:calc(var(--radius) - 3px);background:transparent;color:var(--muted-foreground);cursor:pointer;transition:background-color .14s ease,color .14s ease,box-shadow .14s ease;white-space:nowrap}.lang-btn{padding:5px 8px;font-family:var(--font-mono);font-size:10px}.header-icon{width:30px;height:30px;border-radius:calc(var(--radius) - 3px)}.header-icon .app-icon{width:16px;height:16px}.toggle-btn{flex:1;min-height:28px;padding:5px 9px;font-size:11px;font-weight:500}.lang-btn:hover,.toggle-btn:hover{color:var(--foreground);background:var(--secondary)}.lang-btn.active,.toggle-btn.active{color:var(--primary-foreground);background:var(--primary);box-shadow:0 1px 2px #00000038}.sidebar-content-wrapper{min-height:0;display:flex;flex-direction:column;overflow:hidden}.sidebar-body{min-height:0;display:grid;grid-template-columns:48px minmax(0,1fr)}.mode-rail{padding:6px 5px;border-right:1px solid var(--border);background:var(--background);display:flex;flex-direction:column;gap:6px}.mode-rail-btn{width:36px;height:36px;border:1px solid transparent;border-radius:calc(var(--radius) - 3px);background:transparent;color:var(--muted-foreground);cursor:pointer;display:grid;place-items:center;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.mode-rail-btn:hover{background:var(--secondary);color:var(--foreground)}.mode-rail-btn.active{border-color:var(--border);background:var(--primary);color:var(--primary-foreground)}.app-icon{width:18px;height:18px;display:block;flex:0 0 auto;color:currentColor;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.pane-panel{min-height:0;padding:14px;display:none;overflow:auto}.pane-panel.active{display:block}.pane-panel>.pane-section-heading:first-child{margin-top:0}.secondary-heading{margin-top:18px}.editor-section{padding:13px;border:1px solid var(--border);border-radius:var(--radius);background:#ffffff05}.pane-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.inner-group-title,.footer-group-label,.strip-label,.mini-label,.header-label{color:var(--muted-foreground);font-size:11px;font-weight:650;letter-spacing:0;text-transform:none}.inner-group-title{margin:0}.settings-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:end;padding:12px;border:1px solid var(--border);border-radius:var(--radius);background:#ffffff05}.toolbar-item{display:flex;flex-direction:column;gap:7px}.toolbar-item.grow{min-width:0}.toolbar-item.sort-item{width:76px}.input-field{width:100%;margin-bottom:10px}.input-field.horizontal{display:grid;grid-template-columns:132px minmax(0,1fr);align-items:center;gap:12px}.input-field.horizontal label{color:var(--muted-foreground);font-size:12px}input[type=text],input[type=number],select{width:100%;min-height:34px;padding:7px 9px;border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background:var(--background);color:var(--foreground);font-family:var(--font-mono);font-size:12px;transition:border-color .14s ease,box-shadow .14s ease,background-color .14s ease}input[type=text]:focus,input[type=number]:focus,select:focus{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px #71717a33}input[type=color]{width:42px;height:34px;padding:3px;border:1px solid var(--input);border-radius:calc(var(--radius) - 2px);background:var(--background);cursor:pointer}.dual-input{display:flex;align-items:center;gap:10px;min-width:0}.dual-input input[type=range]{flex:1;min-width:0;height:4px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:999px;background:var(--border);outline:none}.dual-input input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:16px;height:16px;border:2px solid var(--background);border-radius:50%;background:var(--foreground);cursor:pointer;box-shadow:0 0 0 1px var(--border)}.dual-input input[type=range]::-moz-range-thumb{width:14px;height:14px;border:2px solid var(--background);border-radius:50%;background:var(--foreground);cursor:pointer;box-shadow:0 0 0 1px var(--border)}.dual-input input[type=number]{width:58px;text-align:right}.btn{min-height:34px;padding:8px 12px;border-radius:calc(var(--radius) - 2px);border:1px solid transparent;background:var(--primary);color:var(--primary-foreground);cursor:pointer;font-size:12px;font-weight:600;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.btn-secondary{background:var(--secondary);border-color:var(--border);color:var(--secondary-foreground)}.btn-secondary:hover,.btn-icon:hover,.btn-upload:hover{border-color:var(--ring);background:var(--accent);color:var(--accent-foreground)}.btn-sm{width:auto;min-height:30px;padding:6px 10px}.sidebar-footer{padding:12px 14px;border-top:1px solid var(--border);background:#ffffff04;display:grid;grid-template-columns:minmax(150px,1fr) auto auto;gap:12px;align-items:end}.footer-group{display:flex;flex-direction:column;gap:7px}.footer-row-icons{display:flex;gap:6px}.btn-icon,.btn-upload,.visibility-toggle{text-decoration:none;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--background);color:var(--muted-foreground);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.btn-icon{width:34px;height:34px;position:relative}.btn-icon:hover:after{content:attr(title);position:absolute;bottom:calc(100% + 6px);left:50%;z-index:1000;transform:translate(-50%);white-space:nowrap;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--popover);color:var(--foreground);padding:5px 8px;font-size:11px;box-shadow:var(--shadow);pointer-events:none}.header-icon:hover:after{top:50%;bottom:auto;left:calc(100% + 8px);right:auto;transform:translateY(-50%)}.header-icon:hover:before{content:"";position:absolute;top:50%;left:calc(100% + 3px);z-index:1000;width:8px;height:8px;border-left:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--popover);transform:translateY(-50%) rotate(45deg);pointer-events:none}.header-actions{position:relative}.header-actions .header-icon:hover:after{max-width:calc(100vw - var(--sidebar-width) - 24px)}@media (max-width: 1020px){.header-icon:hover:after{left:auto;right:0;top:calc(100% + 8px);transform:none}.header-icon:hover:before{top:calc(100% + 4px);left:auto;right:11px;transform:rotate(135deg)}}@media (max-width: 680px){.header-icon:hover:after{left:0;right:auto}.header-icon:hover:before{left:11px;right:auto}}.preview-area{min-width:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.property-bar{min-width:0;padding:8px 10px;border-bottom:1px solid var(--border);background:var(--card);display:flex;gap:10px;align-items:stretch;overflow-x:auto;overflow-y:hidden}.property-group{min-width:max-content;display:flex;gap:10px;align-items:flex-end}.property-group+.property-group{padding-left:10px;border-left:1px solid var(--border)}.property-bar .input-field{margin:0}.property-bar .input-field.compact,.property-bar .input-field.mini-control{width:118px}.property-bar .input-field.layout-toggle-control{width:auto;min-width:0}.property-bar .input-field.align-toggle-control{width:auto}.property-bar .input-field.color-control{width:72px}.property-bar .input-field label{min-height:16px;display:block;color:var(--muted-foreground);font-size:10px;line-height:1.3}.property-bar .dual-input{gap:6px}.property-bar .dual-input input[type=number]{width:44px;min-height:24px;padding:4px 6px;font-size:11px}.property-bar input[type=color]{width:100%;height:28px}.property-bar .toggle-group{min-height:28px}.property-bar .toggle-btn{min-height:22px;padding:3px 7px;font-size:10px}.property-bar .icon-toggle{min-width:36px;min-height:30px;padding:4px 8px}.property-bar .icon-toggle .app-icon{width:19px;height:19px;stroke-width:2.1}.property-bar .theme-animation-settings{display:flex;gap:10px;align-items:flex-end}.property-bar .theme-animation-settings .input-field{width:82px;margin:0}.property-bar .theme-animation-settings .input-field.horizontal{display:grid;grid-template-columns:1fr;gap:4px}.property-bar .switch-control{align-self:end}.theme-scroll-container{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.theme-scroll-container::-webkit-scrollbar{height:8px}.theme-scroll-container::-webkit-scrollbar-thumb{border-radius:999px;background:var(--border)}.theme-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:8px}.theme-card{width:100%;padding:7px;border:1px solid var(--border);border-radius:var(--radius);background:var(--card);color:var(--muted-foreground);cursor:pointer;display:flex;flex-direction:column;gap:7px;overflow:hidden;transition:border-color .14s ease,background-color .14s ease,color .14s ease,box-shadow .14s ease}.theme-card:hover{border-color:var(--ring)}.theme-card.active{border-color:var(--foreground);background:var(--secondary);color:var(--foreground);box-shadow:inset 0 0 0 1px #ffffff0d}.theme-preview-container{width:100%;aspect-ratio:16 / 10;border-radius:calc(var(--radius) - 3px);background:#030303;overflow:hidden;pointer-events:none}.theme-card .theme-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:12px;font-weight:600}.preview-container{min-height:0;position:relative;padding:40px;overflow:hidden;background-color:#0b0b0d;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:32px 32px}.preview-inner{width:100%;height:100%;overflow:auto;display:flex;align-items:center;justify-content:center}.discord-simulator{min-width:min(620px,100%);min-height:220px;max-width:100%;padding:28px;border:1px solid rgba(255,255,255,.08);border-radius:var(--radius);background:#00000042;box-shadow:var(--shadow)}.discord-simulator .Voice_voiceContainer{width:max-content;min-width:220px}.discord-simulator .Voice_voiceStates{list-style:none;display:flex;flex-direction:column;gap:8px;width:max-content;min-width:180px;margin:0;padding:10px}.discord-simulator .Voice_voiceState{position:relative;display:flex;align-items:center;gap:8px;min-height:32px;margin:0;padding:0}.discord-simulator .Voice_avatar{width:32px;height:32px;flex:0 0 auto;object-fit:cover;border:0;border-radius:999px;transition:filter .14s ease,box-shadow .14s ease,transform .14s ease}.discord-simulator .Voice_avatarSpeaking{box-shadow:0 0 0 3px #23a55a}.discord-simulator .Voice_user{min-width:0;display:block}.discord-simulator .Voice_name{display:block;max-width:180px;padding:3px 6px;border-radius:3px;background:#1e2124f2;color:#fff;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.72)}.inline-panel.hidden{display:none}.inline-panel{margin-top:10px;padding:10px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background)}.preview-control-grid{display:grid;grid-template-columns:1fr;gap:8px}.switch-control{min-height:34px;min-width:0;padding:4px 5px 4px 10px;border:1px solid var(--border);border-radius:calc(var(--radius) - 2px);background:var(--background);color:var(--muted-foreground);font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;transition:background-color .14s ease,border-color .14s ease,color .14s ease}.switch-control:hover{border-color:var(--ring);color:var(--foreground);background:var(--secondary)}.switch-control:focus-visible{outline:none;border-color:var(--ring);box-shadow:0 0 0 3px #71717a33}.switch-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.switch-track{width:38px;height:22px;padding:2px;border:1px solid var(--border);border-radius:999px;background:#ffffff14;display:inline-flex;align-items:center;flex:0 0 auto;transition:background-color .14s ease,border-color .14s ease}.switch-thumb{width:16px;height:16px;border-radius:999px;background:var(--muted-foreground);transform:translate(0);transition:transform .14s ease,background-color .14s ease}.switch-control.active{border-color:color-mix(in srgb,var(--primary) 55%,var(--border));color:var(--foreground)}.switch-control.active .switch-track{border-color:var(--primary);background:var(--primary)}.switch-control.active .switch-thumb{background:var(--primary-foreground);transform:translate(16px)}.compact-switch{width:52px;min-height:34px;padding:5px;justify-content:center}.sidebar-css-preview{max-height:360px;overflow:auto;white-space:pre-wrap;word-break:break-word;padding:14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--background);color:#d4d4d8;font-family:var(--font-mono);font-size:11px;line-height:1.6}.user-card-list{display:flex;flex-direction:column;gap:6px}.user-item{display:grid;gap:8px;padding:8px;border:1px solid transparent;border-bottom-color:var(--border);border-radius:calc(var(--radius) - 2px);background:transparent;transition:background-color .14s ease,border-color .14s ease}.user-item:hover{border-color:var(--border);background:#ffffff05}.user-item:focus-within{border-color:var(--ring);background:#ffffff06}.user-item input[type=text],.user-item input[type=number]{min-width:0;min-height:28px;padding:5px 7px;font-size:11px}.user-item input:disabled,.user-item button:disabled{opacity:.55;cursor:not-allowed}.user-item input[type=color]{width:30px;height:28px}.user-row-head,.user-row-title,.user-row-controls{min-width:0}.user-row-head{display:grid;grid-template-columns:34px minmax(0,1fr) 32px;gap:8px;align-items:center}.user-row-title{display:grid;grid-template-columns:minmax(82px,.9fr) minmax(70px,1fr);gap:6px}.user-row-controls{display:grid;grid-template-columns:30px 46px minmax(0,1fr) 30px 30px;gap:6px;align-items:center}.visibility-toggle{width:30px;height:28px}.visibility-toggle .app-icon{width:16px;height:16px}.visibility-toggle.hidden{border-color:color-mix(in srgb,var(--destructive) 55%,var(--border));background:#ef444421;color:#fca5a5}.user-item-hidden{opacity:.56;border-style:dashed}.avatar-preview{width:34px;height:34px;flex:0 0 auto;object-fit:cover;border:1px solid var(--border);border-radius:calc(var(--radius) - 3px);background:var(--background)}.btn-upload{width:30px;height:28px;flex:0 0 auto}.remove-user{width:30px;height:28px;border:1px solid var(--border);border-radius:calc(var(--radius) - 3px);background:var(--background);color:var(--muted-foreground);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.remove-user .app-icon,.btn-upload .app-icon{width:16px;height:16px}.remove-user:hover{background:#ef44441f;color:#fca5a5}.notification{position:fixed;right:18px;bottom:18px;z-index:9999;max-width:min(360px,calc(100vw - 36px));padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius);background:var(--popover);color:var(--foreground);box-shadow:var(--shadow);transform:translateY(20px);opacity:0;transition:transform .18s ease,opacity .18s ease;pointer-events:none;font-size:13px;font-weight:600}.notification.show{transform:translateY(0);opacity:1}.voice-state{position:relative}.metadata{position:absolute;top:-20px;left:50%;z-index:100;transform:translate(-50%);padding:3px 6px;border-radius:999px;background:var(--primary);color:var(--primary-foreground);font-family:var(--font-mono);font-size:10px;opacity:0;pointer-events:none;white-space:nowrap;transition:opacity .14s ease}.show-metadata .metadata{opacity:1}.control-group,.group-label,.preview-tabs,.sidebar-tabs,.sidebar-tab,.preview-header,.theme-selector-strip,.strip-head,.strip-meta,.floating-btn-group,.floating-btn,.floating-panel,.mode-selector,.footer-secondary,.footer-row-half{display:none}body.overlay-active .sidebar,body.overlay-active .preview-header,body.overlay-active .sidebar-footer,body.overlay-active .property-bar{display:none!important}body.overlay-active #app{display:block}body.overlay-active .preview-area{height:100vh;background:transparent}body.overlay-active .preview-container{height:100vh;padding:0;display:flex;align-items:flex-start;justify-content:flex-start;overflow:visible;background:transparent}body.overlay-active .discord-simulator{min-width:0;max-width:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}@media (max-width: 1020px){body{overflow:auto}#app{min-height:100%;grid-template-columns:1fr;grid-template-rows:auto minmax(520px,1fr)}.sidebar{width:100%;min-width:0;max-width:none;resize:none;border-right:0;border-bottom:1px solid var(--border)}.sidebar-body{min-height:460px}.preview-container{min-height:520px;padding:28px 16px}}@media (max-width: 680px){.sidebar-header,.sidebar-footer{grid-template-columns:1fr}.sidebar-header{align-items:flex-start;flex-direction:column}.input-field.horizontal,.settings-toolbar{grid-template-columns:1fr}.property-bar{align-items:flex-start}.pane-section-heading{align-items:stretch;flex-direction:column}.user-row-title,.user-row-controls,.preview-control-grid{grid-template-columns:1fr}}
