.kg-studio-overlay{background:#0d151bcc;backdrop-filter:blur(12px);padding:24px;align-items:center;justify-content:center}.kg-studio-overlay:not(.hidden){display:flex}.kg-studio-shell{width:min(1120px,100%);max-height:94dvh;display:flex;flex-direction:column;background:var(--bg-page,#faf7f2);color:var(--text-primary,#172027);border:1px solid var(--border-strong);border-radius:24px;box-shadow:0 30px 100px #0005;overflow:hidden}.kg-studio-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px;border-bottom:1px solid var(--border-strong)}.kg-studio-header h3{font-size:24px;font-weight:700;margin:3px 0}.kg-studio-header p{font-size:13px;color:var(--text-secondary)}.kg-studio-header .kg-studio-eyebrow{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:700}.kg-studio-header button{width:44px;height:44px;border:1px solid var(--border-strong);border-radius:50%;flex-shrink:0}.kg-studio-body{display:grid;grid-template-columns:1fr 420px;overflow:auto;min-height:0}.kg-studio-preview{background:var(--bg-secondary,#edeae4);padding:30px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;position:sticky;top:0;align-self:start;min-height:440px}.kg-studio-preview canvas{display:block;max-width:100%;max-height:58dvh;width:auto;height:auto;box-shadow:0 12px 40px #0002}.kg-studio-preview p{font-size:12px;color:var(--text-secondary)}.kg-studio-controls{padding:24px;min-width:0}.kg-studio-controls fieldset{border:0;border-bottom:1px solid var(--border-strong);padding:0 0 22px;margin-bottom:22px;min-width:0}.kg-studio-controls legend{font-size:12px;text-transform:uppercase;letter-spacing:1px;font-weight:700;margin-bottom:14px}.kg-studio-controls label{display:block;font-size:12px;font-weight:600;margin:12px 0 7px}.kg-studio-controls :is(input[type=text],select,textarea){width:100%;background:var(--bg-card);border:1px solid var(--border-strong);color:inherit;border-radius:10px;padding:10px;font:inherit;font-size:14px;min-width:0}.kg-studio-controls select{min-height:44px}.kg-studio-controls option{background:var(--bg-page);color:var(--text-primary)}.kg-studio-controls textarea{resize:vertical;line-height:1.6}.kg-studio-controls input[type=range]{display:block;width:100%;margin:14px 0}.kg-studio-controls input[type=file]{font-size:12px;display:block;width:100%;margin-top:10px}.kg-studio-controls input[type=color]{display:block;width:100%;height:40px;margin-top:8px;background:none;border:1px solid var(--border-strong);border-radius:8px;cursor:pointer}.kg-studio-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.kg-studio-controls .kg-studio-check{display:flex;align-items:center;gap:9px;min-height:28px}.kg-studio-check input{width:17px;height:17px;accent-color:var(--accent)}.kg-studio-note{font-size:11px;color:var(--text-secondary);line-height:1.6}#studioThemeList{display:grid;grid-template-columns:1fr 1fr;gap:9px}#studioThemeList button{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--border-strong);border-radius:12px;text-align:left;font-size:11px;line-height:1.4;background:var(--bg-card)}#studioThemeList button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}.kg-studio-thumb{width:100%;height:48px;background:var(--surface);color:var(--detail);font:bold 48px Georgia;line-height:1.2;padding-left:12px;border-radius:6px}#studioSwatches{display:flex;gap:10px;flex-wrap:wrap}.kg-studio-swatch{width:35px;height:35px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #0003}.kg-studio-swatch[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:3px}.kg-studio-footer{padding:12px 24px 18px;border-top:1px solid var(--border-strong);background:var(--bg-page);padding-bottom:max(18px,env(safe-area-inset-bottom));flex-shrink:0}.kg-studio-footer>div{display:flex;gap:10px}.kg-studio-footer button{min-height:44px;border:1px solid var(--border-strong);border-radius:12px;padding:10px 20px;font-size:13px;font-weight:600;flex:1}.kg-studio-footer button:first-child{background:var(--accent);color:var(--accent-text,#fff)}.kg-studio-footer button:disabled{opacity:.5;cursor:not-allowed}#studioStatus{font-size:12px;line-height:1.5;min-height:20px;margin-bottom:6px}.kg-studio-shell :is(button,input,select,textarea):focus-visible{outline:3px solid var(--accent);outline-offset:3px}@media(max-width:850px){.kg-studio-body{grid-template-columns:1fr 360px}.kg-studio-preview{padding:18px}}@media(max-width:680px){.kg-studio-overlay{padding:8px}.kg-studio-shell{max-height:97dvh;border-radius:18px}.kg-studio-body{display:block}.kg-studio-preview{position:static;min-height:0;padding:20px}.kg-studio-preview canvas{max-height:36dvh}.kg-studio-controls{padding:20px}.kg-studio-header{padding:14px 18px}.kg-studio-header h3{font-size:20px}.kg-studio-footer{padding:10px 12px max(12px,env(safe-area-inset-bottom))}.kg-studio-footer button{padding:9px 6px;font-size:12px}}
.kg-studio-preview canvas{max-height:52dvh}@media(max-width:680px){.kg-studio-preview canvas{max-height:36dvh}}

#studioThemeList .kg-studio-thumb{height:90px;padding:0;overflow:hidden;display:flex;justify-content:center}#studioThemeList .kg-studio-thumb img{width:100%;height:100%;object-fit:contain}.kg-studio-inline-btn{padding:10px 12px;border:1px solid var(--border-strong);border-radius:9px;font-size:12px;margin:8px 0;min-height:42px}