/* One ribbon geometry on every tab; dialogs are isolated from sticky canvas UI. */
body>header{isolation:isolate;position:relative;z-index:2}
#app{isolation:isolate;overflow:hidden}
body>header .ribbon-deck{height:96px!important;min-height:96px!important;max-height:96px!important;padding:4px 6px!important;align-items:stretch!important;gap:0!important;overflow:visible!important}
body>header .ribbon-deck>section,body>header .ribbon-deck .mini-command-group,body>header .ribbon-deck .documentation-tools{box-sizing:border-box;padding:4px 10px 18px!important;display:flex;align-items:center!important;align-content:center!important;gap:5px;min-width:0;position:relative;border-right:1px solid #505b66;margin:0}
body>header .ribbon-deck>section:after{bottom:0;height:14px;line-height:14px}
body>header .ribbon-deck button,body>header .ribbon-deck select{box-sizing:border-box;height:30px;min-height:30px;margin:0;align-self:center;padding:4px 7px;font-size:11px}
body>header .ribbon-deck .mini-command{height:30px;min-height:30px;width:30px;padding:3px}
body>header .ribbon-deck .documentation-tools{flex:1;flex-wrap:wrap!important;white-space:normal;gap:4px}
body>header .documentation-tools button{font-size:10px;white-space:normal;line-height:12px}
body>header .ribbon-deck>button{margin:0 4px}
dialog.project-dialog{position:fixed;inset:0;margin:auto;max-height:86vh;isolation:isolate;overscroll-behavior:contain;box-sizing:border-box}
dialog.project-dialog::backdrop{background:rgba(10,17,24,.72)}
dialog.cloud-dialog{width:min(980px,92vw);padding:24px;background:#29343f;color:#dce6ee;border:1px solid #71899c;box-shadow:0 16px 60px #0008}
dialog.cloud-dialog>header{position:static;display:flex;background:none;padding:0 0 14px;margin:0 0 16px;border-bottom:1px solid #526777;align-items:center;justify-content:space-between}
dialog.cloud-dialog>header h2{font-size:20px;margin:0}
dialog.cloud-dialog .project-row{min-height:55px}
dialog.cloud-dialog .project-row span{overflow-wrap:anywhere;min-width:0}
body:has(dialog.cloud-dialog[open]) #app .workspace-head,body:has(dialog.cloud-dialog[open]) #sheetTabs,body:has(dialog.cloud-dialog[open]) #app .side-tabs,body:has(dialog.cloud-dialog[open]) #app .side-search{visibility:hidden}
#preview{pointer-events:none}
@media(max-width:1250px){body>header .ribbon-deck>section,body>header .ribbon-deck .mini-command-group{padding-left:5px!important;padding-right:5px!important;gap:3px}body>header .ribbon-deck button,body>header .ribbon-deck select{font-size:10px;padding-left:5px;padding-right:5px}}
