.viewer-toolbar{position:relative;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;min-height:58px;padding:10px 14px;background:#e9edf1;border-bottom:1px solid #d0d7e0;color:#344156}.viewer-toolbar button,.viewer-toolbar summary{font-size:11px;padding:9px 12px;white-space:nowrap}.viewer-actions{display:flex;gap:7px;margin-left:auto}#viewer-save-design{background:#edb257;color:#18202c;border-color:#d29a40;font-weight:bold}#viewer-export{background:#fff;color:#344156;border-color:#bbc6d5}#patch-tools{margin:0}#patch-tools>summary{list-style:none;border:1px solid #bbc6d5;background:#fff;border-radius:6px;color:#344156;display:flex;gap:15px;align-items:center;font-weight:bold}#patch-tools>summary::-webkit-details-marker{display:none}#patch-tools[open]>summary{border-color:#d39e42}#patch-popover{position:absolute;top:calc(100% + 5px);left:12px;width:300px;max-width:calc(100vw - 32px);max-height:min(610px,calc(100dvh - 210px));overflow-y:auto;background:#202937;color:#eef2f7;border:1px solid #526078;border-radius:10px;padding:14px;box-shadow:0 12px 35px #0004;scrollbar-width:thin;scrollbar-color:#718096 #202937}.patch-popover-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:6px}.patch-popover-heading button{padding:3px 9px;font-size:18px}#patch-logo-library{width:100%;margin:4px 0 9px}#custom-patch-panel{border:0;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:7px 12px}#custom-patch-panel>h2{display:none}#custom-patch-panel>.note,#custom-patch-panel>.patch-toggle,#custom-patch-panel>button,#custom-patch-panel>input[type=file],#custom-patch-panel>.patch-file-label{grid-column:1/-1}#custom-patch-panel>label{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin:0;font-size:10px}#custom-patch-panel>label.patch-toggle{flex-direction:row;align-items:center;margin:0 0 3px}#custom-patch-panel input[type=number]{width:74px;padding:5px}#custom-patch-panel .note{font-size:10px;line-height:1.5;margin:1px 0 5px}#custom-patch-panel button{margin:2px 0;padding:7px;font-size:10px}#custom-patch-panel .patch-file-label{margin:5px 0 0!important}.selected-decoration#custom-patch-panel{outline:none}#stage>#status{top:12px;left:14px;font-size:11px}#viewer-action-status{position:absolute;top:100%;right:12px;margin:9px 0 0;max-width:55%;font-size:10px;line-height:1.4;text-align:right;color:#4d5a6c;pointer-events:none}#viewer-action-status:empty{display:none}#overlap-picker{max-width:calc(100% - 28px)}
.studio-popup{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 40px);overflow:auto;background:#161b24;color:#eef2f7;border:1px solid #526078;border-radius:12px;padding:22px;box-shadow:0 24px 90px #0008;scrollbar-width:thin}.studio-popup::backdrop{background:#0a1019b8;backdrop-filter:blur(3px)}.studio-popup-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.studio-popup-heading h2{font-size:20px}.studio-popup-heading button{font-size:20px;line-height:1;padding:5px 10px}.studio-popup .personal-library{padding:0;margin:0;border:0}.studio-popup .export-controls{padding:0;margin:0;border:0}.studio-popup .export-controls>h2{display:none}.studio-popup .export-controls label{font-size:12px;margin:18px 0}.studio-popup .export-controls select{max-width:210px;font-size:12px}.studio-popup .note{font-size:11px}.studio-popup .design-save-actions button{font-size:11px}.studio-popup [hidden],#personal-library[hidden]{display:none}.studio-popup #save,.studio-popup #load{font-size:11px;margin-top:15px}.studio-popup details{margin:0 0 18px}#open-cap-settings{width:100%;font-size:11px;margin-top:16px}#controls-panel .row{min-height:32px}#controls-panel #autosave-status{margin-bottom:12px}#controls-panel>.note{font-size:11px;margin:8px 0 14px}
@media(max-width:1100px) and (min-width:901px){.viewer-toolbar{padding:9px 8px;gap:5px}.viewer-toolbar button,.viewer-toolbar summary{padding:8px;font-size:10px}.viewer-actions{gap:4px}#patch-tools>summary{gap:6px}}
@media(max-width:540px){.viewer-toolbar{padding:9px 10px;min-height:54px;gap:5px}.viewer-toolbar button,.viewer-toolbar summary{padding:8px;font-size:10px}.viewer-actions{gap:5px}#patch-tools>summary{gap:6px}#patch-popover{left:10px;width:280px;max-height:calc(100dvh - 190px)}#viewer-action-status{font-size:9px;max-width:48%}.studio-popup{padding:18px}.studio-popup .export-controls select{max-width:180px}}
#patch-artwork-options{grid-column:1/-1;margin:4px 0}#patch-artwork-options>summary{font-size:11px;padding:5px 0;color:#cbd4e2}#patch-artwork-options label{display:block;font-size:10px;margin:7px 0!important}#patch-artwork-options input{max-width:100%;margin-bottom:8px}#patch-artwork-options button{width:100%}

#controls-panel>.nav-section{margin:10px 0;border:1px solid #465165;border-radius:7px;overflow:hidden}#controls-panel>.nav-section>summary{display:flex;align-items:center;justify-content:space-between;list-style:none;margin:0;padding:12px 10px;background:#202937;border:0;border-radius:0;color:#eef2f7;font-size:12px;font-weight:bold;cursor:pointer}#controls-panel>.nav-section>summary::-webkit-details-marker{display:none}#controls-panel>.nav-section>summary span{color:#f2b653;font-size:15px;transition:transform .15s}#controls-panel>.nav-section[open]>summary span{transform:rotate(180deg)}#controls-panel>.nav-section[open]>summary{border-bottom:1px solid #465165}.nav-section-body{padding:0 9px 10px}.nav-section-body>.note{font-size:10px;margin:10px 0}#controls-panel #patch-popover{position:static;top:auto;left:auto;width:auto;max-width:none;max-height:none;overflow:visible;padding:10px;background:#161b24;border:0;border-radius:0;box-shadow:none}#controls-panel .patch-popover-heading{display:none}#controls-panel #patch-tools{margin:10px 0}#controls-panel #colors .row{font-size:10px;gap:4px}#controls-panel #colors .picked-color{max-width:45px;font-size:9px}#controls-panel #colors input[type=color]{width:33px}#controls-panel #open-cap-settings{margin-top:4px}
