/* Opt-in workspace chrome; all selectors are namespaced. */
body.dc-shell-page{margin:0;height:100dvh;overflow:hidden;background:#f5f0e5;color:#2c493c}
.dc-shell{height:100%;min-height:0;display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-rows:48px minmax(0,1fr);overflow:hidden}
.dc-shell-header{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-width:0;height:48px;padding:0 8px;border-bottom:1px solid #d7cbb5;background:#fbf7ee;box-sizing:border-box;z-index:2}
.dc-shell button,.dc-navigation-dialog button,.dc-inspector-dialog button{touch-action:manipulation}
.dc-shell-header button,.dc-panel-heading button,.dc-navigation-info button{min-width:44px;min-height:44px}
.dc-menu{border:0;background:transparent;font-size:22px;color:#2c493c;padding:0 10px}.dc-menu-label{display:none;font-size:12px;margin-left:6px}
.dc-identity{display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit;white-space:nowrap;font:18px Georgia,serif}.dc-identity img{width:47px;height:44px;object-fit:contain}.dc-identity small{display:block;font:11px system-ui,sans-serif;line-height:14px;color:#686555}
.dc-header-actions{margin-left:auto;min-width:0}.dc-header-actions .actions{display:flex;gap:4px;flex-wrap:nowrap}.dc-header-actions button{font-size:12px;padding:0 8px;min-height:36px;white-space:nowrap}
.dc-rail{grid-column:1;grid-row:2;overflow-y:auto;border-right:1px solid #d7cbb5;background:#f4eee0;padding:6px 4px;box-sizing:border-box}.dc-rail a{display:flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;color:#5d6659;border-left:3px solid transparent;border-radius:3px;margin-bottom:3px}.dc-rail .dc-nav-name{display:none}.dc-nav-icon{width:32px;flex:none;text-align:center;font:25px Georgia,serif}.dc-rail a[aria-current],.dc-navigation-dialog a[aria-current]{background:#e8e7da;color:#244b3b;border-left-color:#a5803e}
.dc-shell #sketchbook{grid-column:2;grid-row:2;height:auto;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}.dc-shell #sketchbook>header{display:none}.dc-shell #sketchbook>main{flex:1;min-height:0;overflow:hidden;display:flex;padding:0;gap:0}.dc-shell .editor{min-width:0;min-height:0;flex:1}.dc-shell #workspace{min-width:0;min-height:0}.dc-shell .toolbar{flex-wrap:wrap;overflow-x:hidden;gap:4px}.dc-shell #drawer-toggle{display:inline-flex}
.dc-shell #control-drawer{display:block;width:320px;max-width:none;box-sizing:border-box;flex:0 0 320px;height:auto;overflow-y:auto;overscroll-behavior:contain;min-height:0}.dc-shell.dc-inspector-closed #control-drawer{display:none}.dc-shell[data-layout=desktop] #control-drawer>[data-section]{display:block}.dc-shell[data-layout=desktop] .drawer-navigation{display:flex;position:sticky;top:0;justify-content:flex-end;background:#fbf7ee;z-index:1}.dc-shell[data-layout=desktop] .drawer-navigation [role=tablist]{display:none}.dc-shell #layers,.dc-inspector-dialog #layers{max-height:none;overflow:visible}
.dc-shell[data-layout=compact]{grid-template-columns:minmax(0,1fr)}.dc-shell[data-layout=compact] #sketchbook{grid-column:1}.dc-shell[data-layout=compact] .dc-rail{display:none}.dc-shell[data-layout=compact] .dc-menu-label{display:inline}.dc-shell[data-layout=compact] .dc-header-actions{display:none}
.dc-navigation-dialog,.dc-inspector-dialog{position:fixed;inset:48px auto 0 0;margin:0;width:240px;max-width:calc(100vw - 24px);height:calc(100dvh - 48px);max-height:calc(100dvh - 48px);box-sizing:border-box;border:0;border-right:1px solid #b7a682;background:#fbf7ee;color:#2c493c;padding:0;overflow-y:auto;overscroll-behavior:contain;box-shadow:4px 0 18px #28372d22}
.dc-navigation-dialog::backdrop,.dc-inspector-dialog::backdrop{background:#233a2b33}.dc-panel-heading{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;background:#fbf7ee;padding:0 12px;border-bottom:1px solid #ded5c2}.dc-panel-heading button{border:0;background:transparent;font-size:24px}.dc-navigation-dialog nav{padding:8px}.dc-navigation-dialog a{display:flex;gap:8px;align-items:center;min-height:48px;padding:0 8px;border-left:3px solid transparent;text-decoration:none;color:inherit;font:14px system-ui,sans-serif}.dc-navigation-info{padding:16px;font:12px/1.8 system-ui,sans-serif;border-top:1px solid #ded5c2}.dc-navigation-info button{border:0;padding:0;background:transparent;color:inherit;text-decoration:underline}
.dc-inspector-dialog{inset:48px 0 0 auto;width:320px;border-right:0;border-left:1px solid #b7a682;overflow:hidden}.dc-inspector-dialog #control-drawer{display:block;width:100%;max-width:none;height:100%;max-height:none;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fbf7ee}.dc-inspector-dialog .drawer-navigation{display:flex;position:sticky;top:0;z-index:2;background:#fbf7ee}.dc-inspector-dialog #control-drawer>[data-section]{display:none}.dc-inspector-dialog #control-drawer>.current-panel{display:block}.dc-inspector-dialog #file-actions{display:flex;flex-direction:column;gap:6px}.dc-inspector-dialog button{min-height:44px}.dc-inspector-dialog #layers{overflow:visible;max-height:none}
.dc-shell :focus-visible,.dc-navigation-dialog :focus-visible,.dc-inspector-dialog :focus-visible{outline:2px solid #987433;outline-offset:2px}
.dc-shell #sketchbook.drawing-only{position:fixed;inset:0;height:100dvh;z-index:20}.dc-shell #sketchbook.drawing-only>main>.editor>.toolbar,.dc-shell #sketchbook.drawing-only #control-drawer{display:none}
@media(max-width:600px){.dc-identity{font-size:16px;gap:4px}.dc-identity img{width:38px}.dc-menu{padding:0 4px}.dc-menu-label{display:none!important}.dc-shell .toolbar{padding:4px}.dc-shell .toolbar button,.dc-shell .toolbar select{min-height:44px}.dc-shell .toolbar .zoom{flex-wrap:wrap}.dc-shell .toolbar #size-control{max-width:100%}.dc-shell .toolbar input[type=range]{min-width:70px}.dc-shell .editor>footer{min-width:0}.dc-shell .editor>footer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

/* Override native page media rules only inside the opt-in shell. */
.dc-shell-header{flex-direction:row;justify-content:flex-start;gap:8px;padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));flex-shrink:0}
.dc-shell[data-layout=compact] .editor{height:auto;min-height:0}
.dc-shell #control-drawer>section,.dc-inspector-dialog #control-drawer>section{width:100%;flex:none}
.dc-shell .toolbar .tools,.dc-shell .toolbar .zoom{max-width:100%;flex-wrap:wrap}
.dc-inspector-dialog .drawer-navigation [role=tablist]{display:flex;min-width:0;flex:1}
.dc-inspector-dialog .drawer-navigation button{flex:1;min-width:44px;padding-inline:6px}
.dc-inspector-dialog .drawer-navigation #drawer-close{flex:none}
.dc-inspector-dialog #control-drawer{padding-bottom:env(safe-area-inset-bottom)}

/* Consistent line icons for migrated workspace navigation only. */
.dc-nav-icon{display:grid;place-items:center;width:32px;height:32px}.dc-nav-icon svg{width:23px;height:23px}
.dc-rail a{border-radius:5px}.dc-rail a[aria-current],.dc-navigation-dialog a[aria-current]{background:#e3e8dc;border-left-color:#a5803e;color:#204b39;box-shadow:inset 0 0 0 1px #bccbb8}
.dc-rail a:hover,.dc-navigation-dialog a:hover{background:#eee8da}
.dc-shell.dc-actions-visible[data-layout=compact] .dc-header-actions{display:block}

.dc-navigation-dialog{display:flex;flex-direction:column}
.dc-navigation-dialog:not([open]){display:none}
.dc-navigation-dialog .dc-home,.dc-navigation-info a{display:flex;align-items:center;min-height:44px;padding:0 16px;color:#29493b;text-decoration:none;font:14px system-ui,sans-serif}
.dc-navigation-dialog .dc-home{border-bottom:1px solid #ded5c2;font-weight:600}
.dc-navigation-label{padding:13px 16px 3px;color:#746d5b;font:700 11px system-ui,sans-serif;letter-spacing:.12em;text-transform:uppercase}
.dc-navigation-dialog nav{flex:0 0 auto}
.dc-navigation-info{margin-top:auto;padding:8px 0 12px}
.dc-navigation-info a:hover,.dc-navigation-dialog .dc-home:hover{background:#eee8da}
.dc-attribution{display:block;margin:10px 16px 0;padding-top:14px;border-top:1px solid #ded5c2;color:#686555;font:12px/1.5 system-ui,sans-serif}
