#themeStudio{color:#f4efff;overscroll-behavior:contain;background:#100e1b;border:1px solid #625779;border-radius:22px;width:min(100% - 24px,980px);max-height:calc(100dvh - 24px);padding:0;font:14px system-ui;overflow:auto}#themeStudio::backdrop{background:#05040ce6}#themeStudio *{box-sizing:border-box}#themeStudio header{z-index:3;background:#161222f5;border-bottom:1px solid #3d334f;justify-content:space-between;align-items:center;padding:20px 24px;display:flex;position:sticky;top:0}#themeStudio h2{color:#fff;margin:4px 0;font-size:24px}#themeStudio h3{color:#fff;margin:0 0 16px;font-size:16px}#themeStudio .studio-eyebrow{letter-spacing:.18em;color:#c6b6e9;font-size:10px}#themeStudio .studio-layout{grid-template-columns:minmax(0,1fr) 300px;gap:24px;padding:24px;display:grid}#themeStudio fieldset{border:0;min-width:0;margin:0;padding:0}#themeStudio section{margin-bottom:24px}#themeStudio label{color:#e5ddef;gap:7px;margin:12px 0;font-size:13px;display:grid}#themeStudio input:not([type=checkbox]),#themeStudio select{color:#fff;width:100%;min-width:0;min-height:44px;font:inherit;background:#1e192c;border:1px solid #514361;border-radius:9px;padding:10px}#themeStudio input[type=checkbox]{accent-color:#c4adff;width:18px;height:18px}#themeStudio .studio-check{align-items:center;gap:9px;display:flex}#themeStudio button{color:#fff;min-height:44px;font:inherit;cursor:pointer;background:#2d233f;border:1px solid #514361;border-radius:10px;padding:10px 14px}#themeStudio button:disabled{opacity:.5;cursor:wait}#themeStudio button:focus-visible,#themeStudio input:focus-visible,#themeStudio select:focus-visible{outline-offset:2px;outline:2px solid #c5b0ff}#themeStudio .studio-publish{color:#201536;background:#c4adff;border:0;font-weight:700}#themeStudio .studio-presets,#themeStudio .studio-actions{flex-wrap:wrap;gap:8px;display:flex}#themeStudio .studio-presets button{align-items:center;gap:8px;display:flex}#themeStudio .studio-swatch{border:1px solid #ffffff40;border-radius:50%;flex:none;width:18px;height:18px;display:inline-block}#themeStudio .studio-colors{grid-template-columns:1fr 1fr;gap:0 16px;display:grid}#themeStudio .studio-color{align-items:center;gap:8px;display:flex}#themeStudio input[type=color]{flex:none;width:44px;padding:4px}#themeStudio .studio-note{color:#bbaecc;margin:8px 0;font-size:12px;line-height:1.65}#themeStudio section>.sample-card{overflow-wrap:anywhere;background:#211c37;border:1px solid #785c88;border-radius:14px;padding:16px}#themeStudio section>.sample-card p{color:#d5c4e4;margin:8px 0}#themeStudio aside{min-width:0}#themeStudio .studio-preview{background:var(--preview-bg);color:var(--preview-text);border:1px solid #554465;border-radius:24px;position:sticky;top:105px;overflow:hidden}#themeStudio .preview-top{background:linear-gradient(135deg,var(--preview-top),var(--preview-bottom));padding:22px 18px}#themeStudio .preview-top img{object-fit:cover;border-radius:15px;width:60px;height:60px}#themeStudio .preview-brand{background:var(--preview-gradient);color:#0000;-webkit-background-clip:text;background-clip:text;margin:12px 0 4px;font-size:24px;font-weight:800}#themeStudio .preview-content{padding:18px}#themeStudio .preview-bubble{background:var(--preview-received);border-radius:12px;margin:10px 0;padding:12px;font-size:13px}#themeStudio .preview-bubble.sent{background:var(--preview-sent);margin-left:30px}#themeStudio .preview-button{text-align:center;background:var(--preview-accent);color:#201536;border-radius:10px;padding:12px}#themeStudio .studio-history{gap:8px;display:grid}#themeStudio .studio-history button{text-align:left}#themeStudio #studioStatus{color:#ddd0ff;overflow-wrap:anywhere;border-top:1px solid #3d334f;min-height:44px;padding:12px 24px;display:block}#themeStudio .studio-footer{background:#161222f5;border-top:1px solid #3d334f;padding:14px 24px;position:sticky;bottom:0}#themeStudio .studio-preview-tools{scrollbar-width:thin;max-height:calc(100dvh - 200px);padding:2px 3px 12px;position:sticky;top:100px;overflow:auto}#themeStudio .studio-preview-tools>summary{cursor:pointer;min-height:36px;padding:8px 0;font-weight:700}#themeStudio .studio-preview-tabs{grid-template-columns:1fr 1fr;gap:6px;margin:10px 0;display:grid}#themeStudio .studio-preview-tabs button{padding:8px;font-size:12px}#themeStudio .studio-preview-tabs button[aria-pressed=true]{background:#49375e;border-color:#c4adff}#themeStudio .studio-preview-tools .studio-preview{border-color:var(--sample-border);position:static}#themeStudio .studio-preview .preview-content{color:var(--sample-text);background:var(--sample-background);display:block}#themeStudio .studio-preview h3{color:inherit;font-size:17px;line-height:1.4}#themeStudio .studio-preview .sample-muted{color:var(--sample-muted);margin:8px 0;font-size:12px;line-height:1.5}#themeStudio .studio-preview .sample-link{color:var(--sample-secondary);font-size:12px}#themeStudio .studio-preview .sample-warm{color:var(--sample-warm)}#themeStudio .studio-preview .sample-label{margin:12px 0 6px;font-size:12px}#themeStudio .studio-preview .sample-input{border:1px solid var(--sample-border);background:var(--sample-background);overflow-wrap:anywhere;border-radius:10px;padding:12px;font-size:13px}#themeStudio .studio-preview .preview-button{background:linear-gradient(115deg,var(--sample-secondary),var(--sample-accent) 72%,var(--sample-warm));color:#21132b;margin-top:12px;font-size:13px;font-weight:700}#themeStudio .studio-preview .sample-card{background:var(--sample-surface);border:1px solid var(--sample-border);border-radius:12px;margin:12px 0;padding:12px;font-size:13px}#themeStudio .sample-apps{text-align:center;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 6px;margin:18px 0;font-size:10px;display:grid}#themeStudio .sample-app-dot{background:linear-gradient(135deg,var(--sample-phoneTop),var(--sample-phoneBottom));width:44px;height:44px;color:var(--sample-secondary);border-radius:13px;place-items:center;margin:0 auto 6px;font-size:23px;display:grid}#themeStudio .sample-photo{background:linear-gradient(140deg,var(--sample-phoneTop),var(--sample-phoneBottom));height:110px;color:var(--sample-accent);border-radius:10px;place-items:center;font-size:48px;display:grid}#themeStudio .sample-feed-actions{color:var(--sample-text);gap:8px;font-size:11px;display:flex}#themeStudio .sample-feed-actions span{background:var(--sample-raised);border-radius:6px;padding:8px}#themeStudio .studio-contrast{margin-top:20px}#themeStudio .studio-contrast h3{margin-bottom:8px;font-size:15px}#themeStudio .studio-main-tabs{background:#161222f5;border-bottom:1px solid #3d334f;gap:8px;padding:12px 24px 0;display:flex}#themeStudio .studio-main-tab{color:#bbaecc;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:8px 8px 0 0;min-height:42px;padding:10px 18px;font-weight:600;transition:color .15s,border-color .15s,background .15s}#themeStudio .studio-main-tab:hover{color:#fff;background:#251e36}#themeStudio .studio-main-tab.active,#themeStudio .studio-main-tab[aria-pressed=true]{color:#fff;background:#2d233f;border-color:#c4adff}#themeStudio .studio-skins-layout{grid-template-columns:minmax(0,1fr) 360px;gap:24px;padding:24px;display:grid}@media (width<=768px){#themeStudio .studio-skins-layout{grid-template-columns:1fr}}#themeStudio .studio-skin-modes{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-bottom:14px;display:grid}#themeStudio .studio-mode-btn{text-align:left;background:#1e192c;border:1px solid #514361;border-radius:12px;gap:4px;padding:12px;display:grid}#themeStudio .studio-mode-btn small{color:#a89bbd;font-size:11px;font-weight:400}#themeStudio .studio-mode-btn.active,#themeStudio .studio-mode-btn[aria-pressed=true]{background:#3b2d54;border-color:#c4adff;box-shadow:0 0 12px #c4adff26}#themeStudio .skin-procedural-section{background:#201736;border:1px solid #6b4c8a;border-radius:14px;margin-bottom:16px;padding:16px}#themeStudio .studio-procedural-controls{gap:12px;margin-top:10px;display:grid}#themeStudio .studio-generate-btn{color:#fff;background:linear-gradient(135deg,#a855f7,#6366f1);border:0;font-size:14px;font-weight:700;transition:transform .1s,box-shadow .15s;box-shadow:0 4px 14px #a855f744}#themeStudio .studio-generate-btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px #a855f766}#themeStudio .studio-generate-btn:active{transform:translateY(1px)}#themeStudio .skin-template-guide{background:#211c37;border:1px dashed #785c88;border-radius:12px;margin-bottom:14px;padding:14px}#themeStudio .studio-file-dropzone{text-align:center;cursor:pointer;background:#1c1729;border:2px dashed #6f598c;border-radius:14px;padding:26px 16px;transition:border-color .2s,background .2s;position:relative}#themeStudio .studio-file-dropzone:hover,#themeStudio .studio-file-dropzone.dragover{background:#281f3b;border-color:#c4adff}#themeStudio .studio-file-dropzone input[type=file]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}#themeStudio .dropzone-icon{margin-bottom:6px;font-size:28px;display:block}#themeStudio .dropzone-label strong{color:#f0e8ff;font-size:14px;display:block}#themeStudio .dropzone-label small{color:#9f8eb7;font-size:11px}#themeStudio .dropzone-preview{background:#282138;border-radius:10px;align-items:center;gap:12px;margin-top:10px;padding:8px 12px;display:flex}#themeStudio .dropzone-preview img{object-fit:contain;background:#120e1d;border-radius:8px;width:48px;height:48px}#themeStudio .studio-skins-viewport{grid-template-rows:auto 1fr;gap:10px;display:grid;position:sticky;top:105px}#themeStudio .viewport-header{background:#181326;border:1px solid #433658;border-radius:12px;justify-content:space-between;align-items:center;padding:10px 14px;display:flex}#themeStudio .viewport-header h4{color:#fff;margin:0;font-size:14px}#themeStudio .viewport-controls{align-items:center;gap:8px;display:flex}#themeStudio .viewport-controls small{color:#9f8eb7;font-size:11px}#themeStudio #skinResetCamBtn{border-radius:8px;min-height:30px;padding:4px 10px;font-size:13px}#themeStudio .skin-3d-canvas-container{background:#10151f;border:1px solid #554465;border-radius:18px;width:100%;height:460px;min-height:380px;overflow:hidden;box-shadow:inset 0 0 40px #0008}#themeStudio .skin-3d-canvas-container canvas{display:block;width:100%!important;height:100%!important}#themeStudio #skinStatusOutput{color:#ddd0ff;overflow-wrap:anywhere;padding:10px 0;font-size:12px;display:block}#themeStudio #studioContrastSummary{color:#a8e5bd;font-size:12px;line-height:1.5}#themeStudio #studioContrastSummary[data-warning=true]{color:#ffd29e}#themeStudio .studio-contrast-row{border-bottom:1px solid #3d334f;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;font-size:11px;line-height:1.5;display:flex}#themeStudio .studio-contrast-row button{flex:none;padding:6px 8px;font-size:11px}@media (width<=700px){#themeStudio{border:0;border-radius:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0}#themeStudio .studio-layout{grid-template-columns:1fr;gap:12px;padding:18px}#themeStudio aside{grid-row:1}#themeStudio .studio-preview{position:static}#themeStudio .preview-content{display:none}#themeStudio .preview-top{grid-template-columns:48px 1fr;align-items:center;gap:3px 12px;padding:16px;display:grid}#themeStudio .preview-top img{grid-row:span 3;width:48px;height:48px}#themeStudio .preview-brand{margin:0}#themeStudio header{padding:15px 18px}#themeStudio h2{font-size:20px}#themeStudio .studio-footer{padding:12px 18px;padding-bottom:max(12px,env(safe-area-inset-bottom))}#themeStudio .studio-actions button{flex:1}#themeStudio .studio-colors{gap:0 10px}#themeStudio .studio-preview-tools{max-height:none;position:static;overflow:visible}#themeStudio .studio-preview .preview-content{display:block}#themeStudio .studio-preview-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}
