.kdsl-topaz-wrapper{height:100%;display:flex;flex-direction:column;min-height:0}.kdsl-topaz-tabs{display:flex;gap:8px;padding:10px 24px;border-bottom:1px solid var(--studio-line,#333);flex-shrink:0}.kdsl-topaz-tabs button{padding:8px 16px;border-radius:9px;color:var(--studio-text,#eee)}.kdsl-topaz-tabs button[aria-pressed=true]{background:var(--studio-panel,#292929);box-shadow:inset 0 0 0 1px #8886}.kdsl-topaz-body{flex:1;min-height:0;overflow:hidden}.kdsl-topaz-panel{height:100%;overflow:auto;padding:28px 36px;color:var(--studio-text,#eee)}.kdsl-topaz-panel header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.kdsl-topaz-panel h1{font-size:28px;font-weight:600}.topaz-kicker{letter-spacing:.2em;font-size:10px}.kdsl-topaz-panel p,.kdsl-topaz-panel small{font-size:12px;line-height:1.6;opacity:.7;margin:10px 0}.kdsl-topaz-panel h2,.kdsl-topaz-settings h2{font-size:17px;font-weight:600;margin:22px 0 14px}.topaz-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:30px}.topaz-layout>aside{align-self:start;border:1px solid var(--studio-line,#333);border-radius:16px;padding:18px;position:sticky;top:0}.topaz-layout>section{min-width:0}.kdsl-topaz-panel label,.kdsl-topaz-settings label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin-bottom:14px}.kdsl-topaz-panel input,.kdsl-topaz-panel select,.kdsl-topaz-settings input{width:100%;min-width:0;background:var(--studio-panel,#242424);color:inherit;border:1px solid var(--studio-line,#444);border-radius:8px;padding:10px;font:inherit}.kdsl-topaz-panel input[type=checkbox]{width:auto}.kdsl-topaz-panel .topaz-check{flex-direction:row;align-items:center;min-height:39px}.topaz-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.kdsl-topaz-panel button:not(.ant-btn),.kdsl-topaz-settings button,.kdsl-topaz-node-button{border:1px solid var(--studio-line,#444);border-radius:9px;padding:10px 14px;margin:5px 8px 5px 0;font-size:12px}.kdsl-topaz-panel button:disabled{opacity:.4;cursor:not-allowed}.kdsl-topaz-panel button:not(:disabled):hover{border-color:#a7a7a7}.kdsl-topaz-panel .topaz-primary{background:var(--studio-text,#eee);color:var(--studio-panel,#222);display:block;width:100%}.topaz-price{font-size:22px;margin:16px 0}.kdsl-topaz-panel a{text-decoration:underline;font-size:12px}.topaz-history{margin-top:24px}.topaz-history article{padding:16px;border:1px solid var(--studio-line,#444);border-radius:12px;margin:12px 0;display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:12px}.topaz-history article strong{width:100%}.topaz-message{padding:14px;border:1px solid #8886;border-radius:10px;opacity:1!important}.kdsl-topaz-settings{border:1px solid var(--studio-line,#444);border-radius:14px;padding:22px;margin-bottom:24px;color:var(--studio-text,#eee)}.kdsl-topaz-settings p{font-size:12px;opacity:.7;margin:12px 0}.kdsl-topaz-overlay{position:fixed;inset:0;z-index:11000;background:#000a;padding:24px;display:flex;align-items:center;justify-content:center}.kdsl-topaz-overlay>section{position:relative;width:min(1100px,100%);height:90vh;background:var(--studio-panel,#191919);border:1px solid #7776;border-radius:16px;overflow:hidden}.kdsl-topaz-close{position:absolute;right:16px;top:8px;z-index:1}.kdsl-topaz-overlay .kdsl-topaz-panel{padding-top:42px}@media(max-width:900px){.topaz-layout{grid-template-columns:1fr}.topaz-layout>aside{position:static}.kdsl-topaz-panel{padding:20px}.topaz-fields{grid-template-columns:1fr}}
/* Upscaling belongs to the generator model selector, without provider tabs. */
.kdsl-generator-original{height:100%;min-height:0}
.kdsl-generator-original[hidden]{display:none}
.kdsl-unified-model{display:flex;flex-direction:column;gap:8px;font-size:14px;width:100%;margin:12px 0}
.kdsl-unified-model select{width:100%;min-width:0;padding:9px 12px;border:1px solid var(--studio-line,#444);border-radius:10px;background:var(--studio-panel,#242424);color:var(--studio-text,#eee)}
.kdsl-topaz-panel{padding:12px}
.kdsl-topaz-panel>.topaz-layout{grid-template-columns:minmax(300px,360px) minmax(0,1fr);height:100%;gap:12px}
.topaz-generator-controls,.topaz-history{border:1px solid var(--studio-line,#333);border-radius:14px;padding:20px;overflow:auto;background:var(--studio-panel,#191919);margin:0}
.topaz-generator-controls h1{font-size:24px}
.topaz-generator-controls>aside{position:static;padding:0;border:0}
.topaz-generator-controls .topaz-fields{grid-template-columns:1fr}
.topaz-generator-controls details{margin:18px 0}
.topaz-generator-controls summary{cursor:pointer;font-weight:600}
.kdsl-upscale-drop{height:150px!important;white-space:normal!important;border-style:dashed!important;padding:20px!important;line-height:1.6!important}
@media(max-width:1000px){.kdsl-topaz-panel>.topaz-layout{grid-template-columns:1fr;height:auto}.topaz-generator-controls,.topaz-history{overflow:visible}}
.topaz-upload.kdsl-upscale-drop{border:1px dashed var(--studio-line,#555);border-radius:12px;cursor:pointer;justify-content:center;text-align:center;position:relative}
.topaz-upload.kdsl-upscale-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.kdsl-upscale-shell{display:flex;flex-direction:column;height:100%;min-height:0}
.kdsl-upscale-shell>.kdsl-topaz-panel{flex:1;min-height:0;height:auto}
.kdsl-upscale-upload{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;min-height:150px;padding:20px;border:1px dashed var(--studio-line,#555);border-radius:12px;cursor:pointer;font-size:13px}
.kdsl-upscale-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.kdsl-unified-history{color:var(--studio-text,#eee)}
.kdsl-unified-history .topaz-history{border:0;padding:0;background:transparent}
.kdsl-unified-history button,.kdsl-unified-history a{border:1px solid var(--studio-line,#444);border-radius:9px;padding:8px 12px;font-size:12px}
.topaz-history article>div{width:100%;min-width:0}
.topaz-history time{font-size:11px;opacity:.65}
.kdsl-upscale-preview{display:block;width:100%;max-height:260px;object-fit:contain;border-radius:10px;background:#111;margin:12px 0}
.kdsl-topaz-panel input[type=range]{padding:0;accent-color:var(--studio-text,#ddd);cursor:pointer}
.kdsl-topaz-provider-editor{padding:0;border:0;margin:0;background:transparent}.kdsl-topaz-provider-editor>h2{display:none}.kdsl-topaz-save-internal{display:none}

.kdsl-provider-form{display:flex;flex-direction:column;gap:12px}.kdsl-provider-form label{display:flex;flex-direction:column;gap:5px;font-size:14px}.kdsl-provider-form input:not([type=checkbox]),.kdsl-provider-form select{width:100%;padding:9px 12px;border:1px solid var(--studio-line,#444);border-radius:12px;background:var(--studio-bg,#141414);color:inherit;min-width:0}.kdsl-provider-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.kdsl-provider-help{font-size:12px;opacity:.65;margin:0}.kdsl-provider-models{border:1px solid var(--studio-line,#444);border-radius:16px;padding:12px}.kdsl-provider-model,.kdsl-provider-form label.kdsl-provider-model{display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px 0;font-size:13px}.kdsl-provider-model>span:first-child{flex:1}.kdsl-provider-capability{padding:4px 8px;border-radius:5px;background:var(--studio-bg,#141414)}@media(max-width:480px){.kdsl-provider-columns{grid-template-columns:1fr}}

.kdsl-mail-settings{max-width:720px}.kdsl-mail-settings h2{font-size:16px;font-weight:600}

/* TOPAZ shares the Magnific workbench and Ant Design controls. */
.kdsl-topaz-controls .topaz-fields{display:grid;grid-template-columns:1fr;gap:0}.kdsl-topaz-controls>h2{font-size:12px;font-weight:600;margin:0}.kdsl-topaz-controls>aside{font-size:12px;line-height:1.6}.kdsl-topaz-controls>aside h2{font-size:12px;font-weight:600;margin:0 0 8px}.kdsl-topaz-controls>aside p,.kdsl-topaz-controls>aside a{font-size:12px;margin:8px 0;opacity:.65}.kdsl-topaz-controls>aside .ant-btn{width:100%;margin-top:8px}.kdsl-topaz-controls>aside .topaz-price{font-size:16px;margin:8px 0}.kdsl-topaz-controls .topaz-note{font-size:12px;opacity:.6}.kdsl-topaz-controls .kdsl-topaz-switch{flex-direction:row;align-items:center;justify-content:space-between}.kdsl-topaz-controls .studio-advanced{margin:0}.kdsl-topaz-controls .studio-advanced summary{font-size:12px;cursor:pointer;margin-bottom:16px}.kdsl-topaz-controls .kdsl-unified-model{margin:0;font-size:12px;gap:8px}.kdsl-topaz-controls .topaz-message{font-size:12px}.kdsl-topaz-controls .upscale-field .ant-select{width:100%}.kdsl-topaz-controls .ant-input{font-size:12px}
