/* Scoped shared chrome: native workspace controls and canvases keep their own CSS. */
body.cabinet-workspace{--brass:#a78346;--muted:#716b5e;--ink:#29271f;--serif:"Iowan Old Style","Baskerville","Palatino Linotype",Palatino,Georgia,serif}
body.cabinet-workspace .cabinet-brand-header{display:flex;align-items:center;justify-content:flex-start;flex:none;max-width:none;width:100%;margin:0;min-height:76px;gap:12px;padding:7px clamp(18px,3vw,48px);border-bottom:1px solid #d8ccb8;background:#fffaf0;color:#29493b}
.cabinet-brand-header .brandmark{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;overflow:hidden}
.cabinet-brand-header .brandmark img{width:58px;height:58px;object-fit:contain}
.cabinet-brand-header .brand{display:block!important;min-width:0}
.cabinet-brand-header .brand h1{margin:1px 0 0;font:500 clamp(1.65rem,2.3vw,2.15rem)/.98 var(--serif);letter-spacing:-.045em;color:#29493b}
.cabinet-brand-header .brand-kicker{margin:0;color:#a78346;font:750 .62rem/1.4 system-ui,sans-serif;letter-spacing:.2em;text-transform:uppercase}
.cabinet-brand-header .brand-subtitle{margin:3px 0 0;color:#716b5e;font:400 .66rem/1.4 system-ui,sans-serif;letter-spacing:.045em;text-transform:uppercase}
body.cabinet-workspace>#cabinet-workspace-nav{flex-wrap:nowrap;position:sticky;top:0;z-index:30;margin:0;padding-inline:clamp(16px,3vw,48px);background:#fffdf7;border-bottom:1px solid #d8cebb}
body.cabinet-workspace .site-footer{flex-shrink:0;background:#f2ecdf;color:#5f6058}
body.cabinet-workspace .site-footer button{min-height:24px;padding:2px 1px;color:#29493b;filter:none}
body.cabinet-workspace .site-footer span{display:inline}
body.cabinet-workspace .site-dialog-heading{max-width:none;margin:0;padding:0;border:0;background:transparent}
body.cabinet-workspace .site-dialog-close{min-height:44px;color:#29493b}
.cabinet-compact-brand{display:none}
body.cabinet-sketchbook:has(#sketchbook.drawing-only)>.cabinet-brand-header,
body.cabinet-sketchbook:has(#sketchbook.drawing-only)>.site-footer{display:none}
@media(max-width:900px){
 body.cabinet-workspace .cabinet-brand-header{min-height:68px;padding:6px 18px}
 .cabinet-brand-header .brandmark,.cabinet-brand-header .brandmark img{width:50px;height:50px}
 .cabinet-brand-header .brandmark{flex-basis:50px}
 .cabinet-brand-header .brand h1{font-size:1.6rem}
 .cabinet-brand-header .brand-subtitle{display:none}
 body.cabinet-workspace>#cabinet-workspace-nav{padding-inline:12px;scrollbar-width:none}
}
@media(min-width:700px) and (max-width:1180px), (min-width:700px) and (max-width:1366px) and (pointer:coarse){
 body.cabinet-workspace .cabinet-brand-header{min-height:60px;gap:10px;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left))}
 .cabinet-brand-header .brandmark{width:42px;height:50px;flex-basis:42px}
 .cabinet-brand-header .brandmark img{width:40px;height:50px}
 .cabinet-brand-header .brand h1{font-size:1.7rem;line-height:1}
 .cabinet-brand-header .brand-kicker,.cabinet-brand-header .brand-subtitle{display:none}
}
@media(max-width:560px){
 body.cabinet-workspace .cabinet-brand-header{gap:10px}
 .cabinet-brand-header .brandmark{width:44px;height:48px;flex-basis:44px}
 .cabinet-brand-header .brandmark img{width:44px;height:44px}
 .cabinet-brand-header .brand h1{font-size:clamp(1.22rem,5vw,1.55rem);white-space:nowrap}
 .cabinet-brand-header .brand-kicker{display:none}
}
/* Touch Sketchbook keeps the existing header/nav/status-bar height and canvas area. */
@media(max-width:1100px),(pointer:coarse){
 body.cabinet-sketchbook>.cabinet-brand-header{display:none}
 .cabinet-compact-brand{display:block}
 #sketchbook>header>div:first-child>h1{display:none}
 #sketchbook .cabinet-compact-brand .cabinet-brand-header{min-height:30px;height:30px;padding:0;border:0;background:transparent;gap:8px}
 #sketchbook .cabinet-compact-brand .brandmark{width:30px;height:30px;flex-basis:30px}
 #sketchbook .cabinet-compact-brand .brandmark img{width:30px;height:30px}
 #sketchbook .cabinet-compact-brand .brand h1{font-size:18px;line-height:1.1;white-space:nowrap}
 #sketchbook .cabinet-compact-brand .brand-kicker,#sketchbook .cabinet-compact-brand .brand-subtitle{display:none}
 #sketchbook #panel-files .site-footer{min-height:34px;padding:6px 0;gap:6px;flex-wrap:wrap;font:500 .72rem/1.3 system-ui,sans-serif;text-align:center}
}
