/* Geometry and control hierarchy are independent of the selected colour theme. */
.studio-workspace .topbar{z-index:200;overflow:visible}
.studio-workspace .project-name{overflow:visible}
.studio-workspace .workspace-theme{position:relative;display:flex;align-items:center;gap:7px;flex:0 0 auto;width:auto;margin:0}
.studio-workspace .workspace-theme:before{display:none}
.studio-workspace .workspace-theme>span{font-size:11px;color:var(--muted)}
.studio-workspace .workspace-theme select{width:130px;max-width:130px;min-height:36px;padding:6px 9px;color:var(--paper);font-size:11px;appearance:auto;background:var(--panel);border:1px solid var(--glass-edge);border-radius:9px}
.studio-workspace .liquid-project-actions{z-index:1;max-height:min(70dvh,650px);overflow-y:auto;overscroll-behavior:contain}
.studio-workspace .liquid-project-actions :is(button,.upload):not([hidden]){display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:42px;padding:9px 12px;width:100%;font-size:12px;white-space:normal;text-align:left}
.studio-workspace .liquid-project-actions svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.studio-workspace .liquid-project-actions .mobile-action-label{margin:0}
.studio-workspace .liquid-project-actions #open-video{position:static;margin:0;font-size:12px!important}
html .studio-workspace #liquid-project-menu .liquid-project-actions{background:var(--panel);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(max-width:760px){.studio-workspace .workspace-theme{width:30px;flex:0 0 30px;gap:0}.studio-workspace .workspace-theme>span{display:none}.studio-workspace .workspace-theme:before{display:block;content:'◐';left:7px;top:6px;color:var(--paper);pointer-events:none}.studio-workspace .workspace-theme select{width:30px;max-width:30px;min-height:36px;font-size:0;color:transparent;padding:0;appearance:none}.studio-workspace .workspace-theme option{font-size:14px;color:var(--paper)}}
.studio-workspace .topbar{margin:8px 16px 10px;height:58px;padding:8px 22px;display:flex;gap:24px}
.studio-workspace .brand{gap:13px}.studio-workspace .build-badge{display:none}.studio-workspace .studio-wordmark{font-size:16px;letter-spacing:.23em}.studio-workspace .studio-edition{font-size:10px;border-left:1px solid var(--glass-edge);padding-left:15px}
.studio-workspace .project-name{display:flex!important;flex:1;justify-content:center}.studio-workspace .project-name>span,.studio-workspace .project-name>i{display:none}
.studio-workspace #liquid-project-menu{display:block;position:relative;z-index:160}.studio-workspace #liquid-project-menu>summary{display:flex;align-items:center;gap:10px;min-height:36px;max-width:260px;padding:6px 13px;list-style:none;cursor:pointer;border:1px solid var(--glass-edge);border-radius:9px;background:linear-gradient(130deg,#ffffff0a,transparent)}
.studio-workspace #filename{border:0;background:none;box-shadow:none;padding:0;font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-workspace .liquid-project-actions{position:absolute;top:45px;right:0;width:270px;padding:12px;display:grid;gap:8px;background:var(--panel);border:1px solid var(--glass-edge);border-radius:14px;box-shadow:0 15px 45px #0008}.studio-workspace #liquid-project-menu:not([open])>.liquid-project-actions{display:none}.studio-workspace .mobile-action-label{display:inline;margin-left:8px}.studio-workspace .liquid-project-actions>*{width:100%;min-height:42px;justify-content:flex-start}
.workspace-local{font-size:11px;color:var(--muted);white-space:nowrap}.workspace-shortcuts{display:flex;align-items:center;gap:12px;border-right:1px solid var(--glass-edge);padding-right:16px}.studio-workspace .project-actions{gap:14px;flex-wrap:nowrap}.studio-workspace .workspace-shortcuts button{border:0;background:none;box-shadow:none;width:32px;min-width:32px}.studio-workspace .project-actions #export{min-width:150px;height:42px;font-size:14px}
.workspace-timeline-tools,.workspace-timeline-zoom{display:flex;align-items:center;gap:7px}.workspace-timeline-tools{margin-right:auto}.workspace-timeline-zoom{margin-left:auto}.workspace-timeline-zoom label{margin:0;max-width:120px}.workspace-timeline-zoom label>span{display:none}
.studio-workspace .timeline-top{gap:10px;min-height:44px;flex-wrap:nowrap;padding:5px 16px}.studio-workspace .timeline-top>strong,.studio-workspace .timeline-top>.timeline-title{display:none}.studio-workspace .timeline-top button{min-width:31px;height:31px;min-height:31px}.studio-workspace .timeline-scroll{border-top:1px solid var(--glass-edge)}
.workspace-typography{padding:0 0 13px;margin:14px 0;border-bottom:1px solid var(--glass-edge);display:grid;gap:14px}.workspace-typography h3{font-size:15px;margin:0 0 3px}.workspace-typography>.field{margin:0;display:grid;grid-template-columns:98px minmax(0,1fr);gap:12px;align-items:center;font-size:11px;line-height:1.3}.workspace-typography>.field:first-of-type{display:block;font-size:0}.workspace-typography>.field:first-of-type select{font-size:20px;min-height:57px;margin:0;font-family:inherit}.workspace-typography .field select{margin-top:0;min-height:36px}.workspace-slider{display:flex;gap:12px;align-items:center;min-width:0}.workspace-slider input[type=range]{min-width:40px;flex:1;width:60px}.workspace-slider input[type=number]{width:57px;min-width:57px;text-align:center;margin:0;padding:7px}.workspace-colors{display:flex;align-items:center;gap:14px}.workspace-colors .field{display:flex;align-items:center;gap:8px;flex:1;margin:0;font-size:11px}.workspace-colors input[type=color]{width:30px;height:30px;min-height:30px;border-radius:50%;padding:2px;margin:0}.workspace-typography .palette{margin:0;justify-content:flex-end}.workspace-typography .palette button{width:24px;height:24px;border-radius:50%}.workspace-align{display:grid;grid-template-columns:98px 1fr;align-items:center;gap:12px;font-size:11px}.workspace-align .choices{margin:0}.workspace-align button{font-size:10px;min-height:34px;padding:5px}.workspace-more>.inspector-group{margin:10px}.workspace-more>summary{font-weight:650}.studio-workspace #content-primary>label.field{margin:8px 0}.studio-workspace #content-primary textarea{min-height:62px;height:62px}.studio-workspace #content-primary>.section-label{margin:0 0 7px}.studio-workspace #content-primary>#add-text-layer{min-height:33px;margin-bottom:8px}.studio-workspace #word-choices{max-height:66px;overflow:auto}
@media(min-width:1200px){html .studio-workspace .workspace{margin:0 16px;gap:10px;height:calc(100dvh - 83px);grid-template-columns:82px minmax(245px,22fr) minmax(330px,43fr) minmax(320px,26fr);grid-template-rows:minmax(0,1fr) 208px 0;grid-template-areas:'tools library viewer inspector' 'timeline timeline timeline timeline' 'status status status status'}html .studio-workspace .toolbox{grid-area:tools;padding:14px 6px}html .studio-workspace .library{grid-area:library;padding:18px 17px}html .studio-workspace .viewer{grid-area:viewer;padding:10px 12px 8px}html .studio-workspace .inspector{grid-area:inspector;padding:18px 17px}html .studio-workspace .timeline{grid-area:timeline;max-height:none;height:208px}html .studio-workspace .statusbar{display:none}html .studio-workspace #modules{gap:16px}html .studio-workspace #modules button{min-height:90px}html .studio-workspace .library .brand-card{min-height:182px}html .studio-workspace .library .brand-card canvas{height:145px}html .studio-workspace .viewer-top{min-height:32px;margin-bottom:8px}html .studio-workspace .preview-area{flex:1;min-height:0}html .studio-workspace #viewer-mode{display:none}html .studio-workspace .library .gallery-jumps{position:static}html .studio-workspace .library-note{display:none}.studio-workspace .panel-title{padding-bottom:13px;margin-bottom:10px}.studio-workspace .panel-title h2{font-size:18px}.studio-workspace .panel-title>span{display:none}}
@media(min-width:761px) and (max-width:1199px){.studio-workspace .workspace-local,.studio-workspace .studio-edition{display:none}.studio-workspace .topbar{gap:12px;padding:8px 12px}.studio-workspace .studio-wordmark{font-size:12px}.studio-workspace .project-actions{gap:6px}.studio-workspace .project-actions #export{min-width:100px}.studio-workspace .workspace-shortcuts{gap:5px;padding-right:6px}}
@media(max-width:760px){.studio-workspace .topbar{margin:5px 6px;height:51px;padding:5px 9px;gap:6px}.studio-workspace .studio-wordmark{font-size:10px;letter-spacing:.12em}.studio-workspace .studio-edition,.workspace-local,.studio-workspace .build-badge{display:none}.studio-workspace .brand{flex:0 1 auto;gap:6px}.studio-workspace .liquid-brand-mark{width:26px;height:26px}.studio-workspace .project-name{flex:0 0 33px!important}.studio-workspace #liquid-project-menu>summary{width:33px;height:38px;min-height:38px;padding:0;justify-content:center;font-size:0}.studio-workspace #liquid-project-menu>summary:after{content:'•••';font-size:12px}.studio-workspace #filename{display:none}.studio-workspace .liquid-project-actions{position:fixed;top:61px;right:10px;max-height:65dvh;overflow:auto}.studio-workspace .project-actions{gap:5px;margin-left:auto}.studio-workspace .workspace-shortcuts{gap:0;padding:0;border:0}.studio-workspace .workspace-shortcuts #redo,.studio-workspace .workspace-shortcuts #save{display:none}.studio-workspace .workspace-shortcuts #undo{width:30px;min-width:30px}.studio-workspace .project-actions #export{min-width:84px;height:37px;padding:6px 9px}.studio-workspace .project-actions #open-auth{display:none}.studio-workspace .timeline-top{overflow-x:auto;padding:4px 8px}.workspace-timeline-tools{gap:4px}.workspace-timeline-zoom{display:none}.workspace-typography{gap:12px}.studio-workspace .inspector.sheet-open{padding:16px}.studio-workspace .workspace-typography>.field{grid-template-columns:92px 1fr}.workspace-typography input,.workspace-typography select{min-height:40px}}

.studio-workspace .workspace-content-menu{margin-bottom:10px;border-bottom:1px solid var(--glass-edge);padding-bottom:8px}.workspace-content-menu>summary{font-size:11px;color:var(--muted);cursor:pointer;min-height:24px}.workspace-content-menu[open]>summary{margin-bottom:10px}.studio-workspace #content-primary>.section-label{display:none}.studio-workspace .workspace-slider{display:flex!important;flex-direction:row!important}.studio-workspace .workspace-slider input[type=range]{display:block!important;width:60px!important;min-width:40px;flex:1;margin:0}.studio-workspace .workspace-slider input[type=number]{width:57px!important;flex:0 0 57px;min-width:0}.studio-workspace .workspace-typography>.field:first-of-type select{font-size:19px}.studio-workspace .workspace-typography h3{display:none}

.studio-workspace .liquid-project-actions #save,.studio-workspace .liquid-project-actions #redo,.studio-workspace .liquid-project-actions #open-auth{display:flex!important;min-height:42px;max-width:none;width:100%;border-radius:9px}.studio-workspace #liquid-project-menu>summary::-webkit-details-marker{display:none}

@media(min-width:1200px){html .studio-workspace .library .brand-card{min-height:154px}html .studio-workspace .library .brand-card canvas{height:118px}.studio-workspace .library .brand-heading{display:none}.studio-workspace .library>.small{display:none}.studio-workspace .library .gallery-jumps{margin:0;padding:0 0 7px}.studio-workspace .library .gallery-filters{margin-bottom:8px}.studio-workspace .library .gallery-filters>summary{min-height:24px}}

.studio-workspace #liquid-project-menu>summary>svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}@media(max-width:760px){.studio-workspace #liquid-project-menu>summary>svg{display:none}}

/* All five navigation destinations fit the available editor height. */
@media(min-width:761px){
 html .studio-workspace .toolbox{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:10px 6px}
 html .studio-workspace #modules{display:grid;grid-template-rows:repeat(5,minmax(44px,1fr));flex:1;min-height:0;gap:clamp(4px,1vh,10px);overflow-y:auto;overflow-x:hidden;align-content:stretch}
 html .studio-workspace #modules button{min-height:44px;height:auto;max-height:none;padding:8px 2px;gap:7px;flex-shrink:1;justify-content:center}
 html .studio-workspace .toolbox>.local-badge{display:none}
}

#saved-project-entry{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:9px 10px;margin-bottom:8px;border:1px solid var(--glass-edge);border-radius:9px;font-size:11px}#saved-project-entry>span{flex:1}#saved-project-entry button{font-size:11px;padding:7px 10px;min-height:34px}@media(max-width:760px){#saved-project-entry{gap:5px;padding:6px;font-size:10px}#saved-project-entry button{font-size:10px;padding:6px}}
