.lora-empty{height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;border:1px dashed rgba(186,173,255,.13);border-radius:10px;color:#817b97}.lora-empty>span{font-size:23px;color:#8a71c3}.lora-empty strong{font-size:10px;color:#c4bfd2}.lora-empty small{font-size:9px;color:#6e6982}.lora-item[hidden]{display:none!important}.manager-dot.connected{background:#74ded1;box-shadow:0 0 8px #74ded177}.queue-state.is-connected i{background:#74ded1;box-shadow:0 0 8px #74ded177}.server-pill i.connected{background:#74ded1;box-shadow:0 0 8px #74ded177}
.resolution-heading{display:flex;align-items:center;justify-content:space-between;margin:13px 1px 8px;color:#8e89a4;font-size:10px}.resolution-heading span:last-child{color:#b4a9d4;font-size:9px}.resolution-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.resolution-choice{height:53px;background:#14112b;border:1px solid rgba(255,255,255,.06);border-radius:8px;display:flex;align-items:center;justify-content:center;gap:7px;color:#85809a;transition:.15s}.resolution-choice:hover{border-color:#7453a5;color:#d9d0ed}.resolution-choice.selected{border-color:#ad63eb;background:linear-gradient(130deg,#2a1943,#221535);color:#f2eaff;box-shadow:inset 0 0 0 1px #a24adc36}.resolution-choice small{font-size:9px}.shape{display:block;border:1.5px solid #aaa0c6;border-radius:2px}.selected .shape{border-color:#ddb4ff;box-shadow:0 0 7px #c270ff66}.landscape{width:23px;height:15px}.portrait{width:14px;height:22px}.square{width:18px;height:18px}
.modal-backdrop[hidden]{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(4,3,13,.72);backdrop-filter:blur(7px);display:grid;place-items:center;padding:20px;z-index:10}.lora-modal{width:min(470px,100%);max-height:min(640px,90vh);display:flex;flex-direction:column;background:#110e29;border:1px solid rgba(186,173,255,.22);border-radius:15px;box-shadow:0 25px 100px #0009;padding:17px}.lora-modal>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.lora-modal>header>div{display:flex;flex-direction:column;gap:4px}.lora-modal>header strong{font-size:14px}.lora-modal>header span{font-size:10px;color:#77728d}.modal-search{height:39px;display:flex;align-items:center;gap:9px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:#958dab}.modal-search>span{font-size:18px}.modal-search input{flex:1;background:transparent;border:0;outline:0;font-size:11px}.modal-model-list{overflow:auto;margin-top:10px;min-height:100px}.modal-empty{padding:35px 12px;text-align:center;color:#77718b;font-size:11px}.model-option{display:flex;align-items:center;gap:10px;padding:10px 8px;border-bottom:1px solid rgba(255,255,255,.055);cursor:pointer}.model-option:hover{background:#ffffff08}.model-option input{accent-color:#b765ef}.model-option>span{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.model-option strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-option small{font-size:9px;color:#716b85}.model-option em{font-style:normal;font-size:9px;color:#a98be4}
/* LoRA Manager preview gallery */
.lora-modal{width:min(1050px,96vw);max-height:min(850px,92vh)}
.modal-model-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:12px;padding:2px 3px 8px}
.modal-empty{grid-column:1/-1}
.model-option{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;aspect-ratio:.78;background:#19162c;border:1px solid rgba(255,255,255,.12);border-radius:9px;text-align:left;transition:transform .15s,border-color .15s}
.model-option:hover{transform:translateY(-2px);border-color:#b765ef}
.model-option:disabled{opacity:.78;cursor:default}
.model-option-preview{position:absolute;inset:0;background:linear-gradient(145deg,#25203c,#11101b);display:grid;place-items:center}
.model-option-preview img{width:100%;height:100%;object-fit:cover}
.model-option-placeholder{color:#756a99;font-size:38px}
.model-option-text{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;gap:4px;min-width:0;padding:34px 10px 10px;background:linear-gradient(transparent,rgba(4,3,13,.94) 40%)}
.model-option strong{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.model-option small{font-size:9px;color:#d0c9dd;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.model-option em{position:absolute;top:8px;right:8px;font-style:normal;font-size:10px;font-weight:700;color:white;background:#120d23bf;padding:5px 7px;border-radius:6px;backdrop-filter:blur(8px)}
@media(max-width:560px){.modal-backdrop{padding:8px}.lora-modal{width:100%;max-height:96dvh;padding:12px}.modal-model-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.model-option{aspect-ratio:.72}}
.preview-diagnostic{padding:0 3px 1px;color:#817b99;font-size:9px;min-height:12px}
.model-option-placeholder.failed{font-size:11px;color:#c987a6}
/* Centered output preview with a horizontal result strip */
.generated-gallery[hidden],.image-lightbox[hidden]{display:none}
.canvas-content:has(.generated-gallery:not([hidden])){justify-content:flex-start;min-height:0;padding-top:18px;padding-bottom:12px}
.generated-gallery{width:min(1250px,100%);height:100%;min-height:0;display:flex;flex-direction:column;gap:11px;text-align:left}
.gallery-header{height:25px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;color:#f3f0ff;font-size:12px}
.gallery-header span{color:#817b99;font-size:10px}
.gallery-main{position:relative;flex:1;min-height:120px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse,#19152b,#0b091a 75%);border:1px solid var(--line);border-radius:12px}
.gallery-main>img{display:block;max-width:100%;max-height:100%;object-fit:contain;cursor:default}
.gallery-main>button{position:absolute;right:12px;top:12px;width:34px;height:34px;border:1px solid #ffffff30;border-radius:8px;background:#090716bd;color:#fff;font-size:19px;backdrop-filter:blur(8px)}
.generated-images{height:104px;flex:0 0 auto;display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 8px;scrollbar-color:#55466f #141124;scrollbar-width:thin}
.generated-thumb{height:84px;width:72px;flex:0 0 72px;padding:0;overflow:hidden;border:1px solid #ffffff20;border-radius:7px;background:#151225;opacity:.72}
.generated-thumb:hover,.generated-thumb.selected{opacity:1;border-color:#ce72fa;box-shadow:0 0 0 1px #ce72fa66}
.generated-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.image-lightbox{position:fixed;inset:0;z-index:30;background:rgba(3,2,10,.96);display:grid;place-items:center;padding:24px}
.image-lightbox>img{max-width:96vw;max-height:94vh;width:auto;height:auto;object-fit:contain;box-shadow:0 10px 60px #0009}
.image-lightbox>button,.image-lightbox>a{position:absolute;top:16px;width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:9px;background:#171326;color:#fff;font-size:23px;text-decoration:none}
.image-lightbox>button{right:16px}.image-lightbox>a{right:68px;font-size:20px}
.generation-progress-window{position:fixed;top:16px;right:16px;z-index:25;width:min(340px,calc(100vw - 32px));padding:13px 14px 12px;border:1px solid rgba(186,173,255,.24);border-radius:11px;background:rgba(17,14,39,.95);box-shadow:0 12px 42px #0009;backdrop-filter:blur(14px)}
.generation-progress-window[hidden]{display:none}
.generation-progress-heading{display:flex;align-items:center;gap:10px;min-width:0}
.generation-progress-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:8px;background:#24183b;color:#c7a0ff;font-size:16px;animation:progress-icon-pulse 1.4s ease-in-out infinite}
.generation-progress-window[data-state="complete"] .generation-progress-icon{color:#74ded1;animation:none}
.generation-progress-window[data-state="error"] .generation-progress-icon{color:#ff91ae;animation:none}
.generation-progress-heading>div{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.generation-progress-heading strong{font-size:11px;color:#f4efff}
.generation-progress-heading div span{overflow:hidden;color:#89839d;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.generation-progress-percent{color:#d6b9ff;font-size:10px;font-variant-numeric:tabular-nums}
.generation-progress-track{height:4px;margin-top:11px;overflow:hidden;border-radius:5px;background:#29243c}
.generation-progress-track i{display:block;width:34%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#46cde0,#9b66ff,#ec55bd);animation:progress-window-indeterminate 1.5s ease-in-out infinite}
.generation-progress-track[data-determinate="true"] i{width:0;animation:none;transition:width .25s ease}
.generation-progress-window[data-state="complete"] .generation-progress-track i{width:100%;animation:none;background:#74ded1}
.generation-progress-window[data-state="error"] .generation-progress-track i{width:100%;animation:none;background:#f0789a}
@keyframes progress-window-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(320%)}}
@keyframes progress-icon-pulse{50%{box-shadow:0 0 16px #ad76ff55}}
@media(min-width:761px){body:not(.lora-panel-closed) .generation-progress-window{right:calc(var(--lora-width) + 16px)}}
@media(max-width:760px){.canvas-content:has(.generated-gallery:not([hidden])){padding:12px}.gallery-main{min-height:0}.generated-images{height:91px}.generated-thumb{height:72px;width:62px;flex-basis:62px}}
/* Keep LoRA cards compact and make the list scroll by rows */
.modal-model-list{flex:1 1 auto;min-height:0;grid-auto-rows:230px;align-content:start;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.model-option{height:230px;min-height:0;aspect-ratio:auto}
.model-option-placeholder{display:grid;place-items:center;width:100%;height:100%;font-size:10px;color:#77718b;background:radial-gradient(ellipse at 50% 42%,#29223e,#141121 70%)}
.model-option-placeholder.failed{color:#827b98}
@media(max-width:560px){.modal-model-list{grid-auto-rows:205px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.model-option{height:205px}}
/* ComfyUI generation loading state */
.gallery-main>img[hidden]{display:none}
.gallery-main>button:disabled{opacity:.35;cursor:default}
.gallery-loading[hidden]{display:none}
.gallery-loading{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;background:radial-gradient(ellipse at 50% 45%,rgba(52,36,83,.58),rgba(10,8,22,.96) 72%);text-align:center;backdrop-filter:blur(3px)}
.gallery-loading>strong{font-size:14px;letter-spacing:.02em;color:#f2ecff}
.gallery-loading>span{font-size:11px;color:#9990b2}
.loader-art{width:94px;height:94px;position:relative;display:grid;place-items:center;margin-bottom:4px;color:#e7c8ff}
.loader-art>i{position:absolute;inset:13px;border:1px solid rgba(203,142,255,.5);border-radius:34%;animation:loader-orbit 3s linear infinite}
.loader-art>i:nth-child(2){inset:19px 7px;transform:rotate(55deg);border-color:rgba(116,222,209,.45);animation-duration:4s;animation-direction:reverse}
.loader-art>i:nth-child(3){inset:7px 20px;transform:rotate(-45deg);border-color:rgba(238,90,189,.42);animation-duration:5s}
.loader-art>span{font-size:28px;text-shadow:0 0 22px #db8dff;animation:loader-pulse 1.5s ease-in-out infinite}
.loader-track{width:min(210px,45vw);height:3px;margin-top:8px;overflow:hidden;border-radius:4px;background:#29223a}
.loader-track>i{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8e5dff,#ed58bd,#74ded1);box-shadow:0 0 12px #d05cff;animation:loader-sweep 1.6s ease-in-out infinite}
.loader-track[data-determinate=true]>i{transform:none;animation:none}
.gallery-loading[data-state=error] .loader-art>i,.gallery-loading[data-state=error] .loader-art>span,.gallery-loading[data-state=error] .loader-track>i{animation-play-state:paused}
.gallery-loading[data-state=error] .loader-art>span{color:#ffd3e7}
@keyframes loader-orbit{to{rotate:360deg}}
@keyframes loader-pulse{50%{scale:1.22;opacity:.7}}
@keyframes loader-sweep{from{transform:translateX(-110%)}to{transform:translateX(370%)}}
/* LoRA panel reopen control and shareable prompt presets */
.lora-list{flex:1;min-height:70px}
.preset-section{flex:0 0 auto;max-height:165px;margin-top:9px;padding:9px;background:#0c0a20;border:1px solid var(--line);border-radius:9px}
.preset-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#aaa5c2;font-size:10px}
.preset-heading span{min-width:19px;text-align:center;padding:2px 5px;border-radius:8px;background:#272044;color:#c3b4ff;font-size:9px}
.preset-list{max-height:116px;display:flex;flex-direction:column;gap:5px;overflow:auto}
.preset-empty{padding:12px 7px;text-align:center;color:#6e6982;font-size:9px}
.preset-card{display:flex;flex-direction:column;gap:3px;width:100%;padding:8px;border:1px solid rgba(186,173,255,.12);border-radius:7px;background:#15122f;text-align:left}
.preset-card:hover{border-color:#a45bec;background:#21183a}
.preset-card strong{font-size:10px;color:#eeeaff}
.preset-card span{font-size:8px;color:#89839c}
.preset-section{max-height:195px}
.preset-list{max-height:96px}
.preset-feedback{margin-top:6px;padding:5px 6px;border-radius:5px;background:#18302c;color:#8fe4d2;font-size:8px;line-height:1.35;overflow-wrap:anywhere}
.preset-feedback.warning{background:#392430;color:#ffc2d0}
.preset-feedback[hidden]{display:none}
/* Honor the HTML hidden attribute even when components declare display:grid/flex */
[hidden]{display:none!important}
.canvas.has-generated-image .welcome-mark,.canvas.has-generated-image .canvas-status,.canvas.has-generated-image .canvas-content>h1,.canvas.has-generated-image .canvas-content>p{display:none!important}
.canvas.has-generated-image .canvas-content{justify-content:flex-start;padding-top:18px}

/* Larger LoRA controls and edge-mounted panel reopen buttons. */
.lora-title strong{font-size:15px}
.lora-title div>span{font-size:10px}
.lora-search{height:40px;padding:0 10px}
.lora-search input{font-size:12px}
.lora-filter-row{font-size:11px}
.lora-badge{font-size:10px;padding:3px 7px}
.text-button{font-size:10px;padding:6px 4px}
.lora-item{padding:13px 11px;margin-bottom:10px}
.lora-item-head{gap:10px}
.lora-info strong{font-size:12px}
.lora-info span{font-size:10px}
.switch-label{width:34px;height:20px}
.switch:before{width:16px;height:16px}
.switch-label input:checked+.switch:before{transform:translateX(14px)}
.more-button{font-size:21px;padding:3px}
.strength-row{font-size:10px;margin:15px 0 13px}
.strength-row output{font-size:11px}
.trigger-heading,.trigger-empty{font-size:10px}
.trigger-tag{padding:5px 8px;font-size:10px}
.add-lora-button{height:42px;margin-top:7px;font-size:12px}
.lora-panel-foot{font-size:10px}
.preset-section{max-height:245px;margin-top:10px;padding:11px}
.preset-heading{font-size:12px;margin-bottom:8px}
.preset-heading span{font-size:10px;padding:3px 6px}
.preset-list{max-height:154px;gap:6px}
.preset-card{padding:10px;gap:4px}
.preset-card strong{font-size:12px}
.preset-card span{font-size:9px}
.preset-empty{font-size:10px;padding:14px 8px}
.preset-feedback{font-size:9px;padding:6px 7px}
.panel-edge-toggle{position:fixed;top:18px;z-index:8;display:grid;place-items:center;width:29px;height:40px;padding:0;border:1px solid #564474;background:#17132d;color:#d3c4f6;font-size:20px;font-weight:700;line-height:1;box-shadow:0 5px 20px #0006;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.panel-edge-toggle:hover{background:#30204b;border-color:#a76be0;color:#fff}
.panel-edge-toggle.left{left:0;border-left:0;border-radius:0 8px 8px 0}
.panel-edge-toggle.right{right:0;border-right:0;border-radius:8px 0 0 8px}
@media(max-width:760px){.lora-sidebar{width:min(360px,90vw)}.lora-sidebar.closed{width:0}.preset-section{max-height:245px}.preset-list{max-height:154px}.panel-edge-toggle{width:27px;height:38px}}
.prompt-panel-top{height:38px;min-height:38px;display:flex;align-items:center;justify-content:flex-end;margin:0 0 12px}
.prompt-panel-top .close-sidebar{width:30px;height:30px;font-size:22px}
.lora-sidebar>.tool-switcher{height:38px;min-height:38px;margin:0 0 12px;gap:3px}
.lora-sidebar>.tool-switcher .tool-mode{flex:1;min-width:0;padding:0 5px;font-size:10px}
.prompt-card.reference-mode{height:43vh;min-height:310px}
.prompt-card.reference-mode #referencePromptView{height:auto;min-height:0;flex:1;gap:7px}
.prompt-card.reference-mode #generationPromptView{display:none}
.reference-mode-picker{display:flex;gap:5px;min-height:25px}
.reference-mode-choice{flex:1;border:1px solid #352d4e;border-radius:6px;background:#14112b;color:#89849e;font-size:9px;font-weight:700;cursor:pointer}
.reference-mode-choice:hover{border-color:#7453a5;color:#e4dcf6}
.reference-mode-choice.selected{border-color:#9c66dc;background:linear-gradient(110deg,#342051,#241637);color:#f4eaff;box-shadow:inset 0 0 0 1px #9c66dc33}
.reference-dropzone{position:relative;width:100%;min-height:120px;flex:1 1 0;display:grid;place-items:center;overflow:hidden;border:1px dashed #51466d;border-radius:8px;background:radial-gradient(ellipse at 50% 40%,#21183a,#100d24 72%);cursor:pointer;transition:border-color .18s,background .18s}
.reference-dropzone:hover,.reference-dropzone.drag-over{border-color:#bd6bff;background:radial-gradient(ellipse at 50% 40%,#30204b,#100d24 72%)}
.reference-dropzone:focus-visible{outline:2px solid #bd6bff;outline-offset:2px}
.reference-dropzone img{width:100%;height:100%;object-fit:contain;background:#090817}
.reference-placeholder{display:flex;align-items:center;flex-direction:column;gap:4px;color:#d9d3ea;text-align:center;padding:8px}
.reference-placeholder>span{font-size:17px;color:#c68dff}.reference-placeholder strong{font-size:10px}.reference-placeholder small{font-size:9px;color:#77718b}
.reference-file-row{display:flex;align-items:center;gap:8px;min-height:24px;color:#817b99;font-size:9px}
.reference-file-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.reference-hint{margin:0;color:#77718b;font-size:9px;text-align:center}
.generate-button.reference-action .generate-count{display:none}
.sidebar>.tool-switcher{height:44px;min-height:44px;margin-bottom:12px;gap:4px}
.sidebar>.tool-switcher .tool-mode{height:36px;flex:1;min-width:0;padding:0 6px;font-size:12px}
.sidebar>.tool-switcher .tool-mode.active{background:linear-gradient(110deg,#36bfdf,#5684f3);box-shadow:0 3px 12px #38bde34a;color:#061625}
.sidebar>.tool-switcher .close-sidebar{flex:0 0 29px;width:29px;height:32px;margin-left:0;font-size:22px}

/* Compact mode switcher sits at the top of the prompt panel without a logo. */
.tool-switcher{height:38px;min-height:38px;display:flex;align-items:center;gap:5px;margin:0 0 12px;padding:3px;background:#0c0a20;border:1px solid var(--line);border-radius:9px}
.tool-mode{height:30px;padding:0 12px;border:0;border-radius:6px;background:transparent;color:#817b99;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.tool-mode:hover{color:#eeeaff;background:#ffffff08}
.tool-mode.active{color:#fff;background:linear-gradient(100deg,#8c4bdf,#c23bad);box-shadow:0 3px 12px #9c3fbb36}
.tool-switcher .close-sidebar{width:30px;height:30px;margin-left:auto;font-size:22px;line-height:1}
.mode-view{min-height:0;height:100%;display:flex;flex-direction:column}
.mode-view[hidden],.reference-dropzone img[hidden],.reference-placeholder[hidden]{display:none!important}
.prompt-card:has(.mode-view[hidden]){display:flex}
.tagger-view{gap:7px;overflow:hidden}
.tagger-upload{position:relative;min-height:112px;max-height:168px;flex:1;display:grid;place-items:center;overflow:hidden;border:1px dashed #51466d;border-radius:8px;background:radial-gradient(ellipse at 50% 40%,#21183a,#100d24 72%);cursor:pointer;transition:border-color .18s,background .18s}
.tagger-upload:hover,.tagger-upload.drag-over{border-color:#bd6bff;background:radial-gradient(ellipse at 50% 40%,#30204b,#100d24 72%)}
.tagger-upload img{width:100%;height:100%;min-height:112px;object-fit:contain;background:#090817}
.tagger-upload-placeholder{display:flex;align-items:center;flex-direction:column;gap:5px;color:#d9d3ea;text-align:center;padding:10px}
.tagger-upload-placeholder>span{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#28203e;color:#c68dff;font-size:20px}
.tagger-upload-placeholder strong{font-size:10px}.tagger-upload-placeholder small{font-size:9px;color:#77718b}
.tagger-file-row{display:flex;align-items:center;gap:8px;min-height:27px;color:#817b99;font-size:9px}
.tagger-file-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.tagger-file-row button,.tagger-result-actions button{border:1px solid #352d4e;border-radius:6px;background:#17132c;color:#ddd5f2;padding:5px 8px;font-size:9px;white-space:nowrap}
.tagger-file-row button:hover,.tagger-result-actions button:not(:disabled):hover{border-color:#9b63d7;color:white}
.tagger-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.tagger-options label{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:6px 7px;border:1px solid #27223e;border-radius:6px;color:#8e89a4;font-size:9px}
.tagger-options input{width:48px;border:0;outline:0;background:transparent;color:#f3efff;text-align:right;font-size:10px}
.tagger-result-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;color:#c5bed8;font-size:9px}
.tagger-result-heading span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#827b99;font-size:8px}
.tagger-view #taggerResult{height:auto;min-height:58px;flex:1;padding:8px;border:1px solid #27223e;border-radius:7px;background:#090817;font-size:11px;line-height:1.55}
.tagger-result-actions{display:flex;gap:6px}.tagger-result-actions button:last-child{flex:1}
.tagger-result-actions button:disabled{opacity:.4;cursor:not-allowed}
.generate-button.tagger-action .generate-count{display:none}
.settings-card>summary{list-style:none;cursor:pointer;user-select:none}
.settings-card>summary::-webkit-details-marker{display:none}
.settings-card:not([open])>summary{margin-bottom:0}
.settings-chevron{font-size:13px;line-height:1;transition:transform .18s ease}
.settings-card[open] .settings-chevron{transform:rotate(180deg)}
@media(max-height:760px){.sidebar{padding-top:12px}.tool-switcher{margin-bottom:8px}.prompt-card{height:40vh;min-height:220px}.settings-card{margin-top:9px;padding:10px}.queue-card{padding:8px;margin-bottom:7px}}
@media(max-height:760px){.prompt-card.reference-mode{height:40vh;min-height:300px}}
@media(max-width:600px){.tool-mode{flex:1;padding:0 7px}.tool-switcher .close-sidebar{flex:0 0 30px}.tagger-upload{min-height:90px}.prompt-card.reference-mode{min-height:280px}}
.sidebar{overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#342b52 transparent}
.sidebar>.tool-switcher{flex:0 0 44px}
.sidebar>.prompt-card{flex:0 0 auto}
.sidebar>.settings-card{flex:0 0 auto;padding:10px}
.sidebar>.queue-card{flex:0 0 auto}
.sidebar>.generate-button{flex:0 0 47px;height:47px;min-height:47px}
.sidebar>.connection-note{flex:0 0 auto}
.sidebar-spacer{flex:1 0 13px}
.settings-card .setting-grid{gap:6px}
.settings-card .setting{gap:3px;padding:5px 8px}
.settings-card .resolution-heading{margin-top:10px;margin-bottom:6px}
.settings-card .resolution-choice{height:44px}
.lora-sidebar{min-height:0}
.lora-sidebar>.lora-header,.lora-sidebar>.lora-search,.lora-sidebar>.lora-filter-row,.lora-sidebar>.add-lora-button,.lora-sidebar>.preset-section,.lora-sidebar>.lora-panel-foot{flex:0 0 auto}
.lora-sidebar>.lora-list{flex:1 1 0;min-height:70px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#342b52 transparent}
.transparent-background-toggle{display:inline-flex;align-items:center;gap:7px;min-height:22px;color:#77718b;font-size:10px;line-height:1;cursor:pointer;user-select:none}
.transparent-background-toggle input{appearance:none;flex:0 0 7px;width:7px;height:7px;margin:0;border:0;border-radius:50%;background:#77718b;box-shadow:none;cursor:pointer;transition:background .15s,box-shadow .15s}
.transparent-background-toggle input:checked{background:#74ded1;box-shadow:0 0 8px #74ded1aa}
.transparent-background-toggle input:focus-visible{outline:2px solid #d2a0ff;outline-offset:2px}
.transparent-background-toggle:has(input:checked){color:#e1c9ff}
:root{--prompt-width:390px;--lora-width:316px}
.sidebar{width:var(--prompt-width);min-width:var(--prompt-width)}
.lora-sidebar{width:var(--lora-width);min-width:var(--lora-width)}
.panel-edge-toggle.left{transition:left .25s ease,background .15s,border-color .15s,color .15s}
.panel-edge-toggle.right{transition:right .24s ease,background .15s,border-color .15s,color .15s}
body:not(.prompt-panel-closed) #openSidebar{left:var(--prompt-width)}
body:not(.lora-panel-closed) #openLora{right:var(--lora-width)}
@media(max-width:1050px){:root{--prompt-width:340px;--lora-width:290px}}
@media(max-width:760px){:root{--prompt-width:min(390px,92vw);--lora-width:min(360px,90vw)}.sidebar,.lora-sidebar{min-width:var(--prompt-width)}.lora-sidebar{min-width:var(--lora-width)}}
