/* Shared viewport hook: compact mode controls use the existing tool-feedback.css
   geometry after being moved out of .tool-detail into this site's header.
   Keep the prototype's shell.css unchanged. */
.dc-context .dc-iconbtn:disabled{opacity:.5;cursor:default}
/* Respect live preference changes without editing the copied prototype. */
@media(prefers-reduced-motion:reduce){
body.dc-app .dc-menu__panel,body.dc-app .dc-brand__mark .sun{animation:none}
body.dc-app .dc-brand__mark .ring{animation:none;stroke-dashoffset:0}
}
.dc-dir a[aria-disabled="true"],.dc-footer a[aria-disabled="true"]{pointer-events:none}
@media(min-width:1024px){
  body.dc-app.page_tool_detail .dc-toolhero{padding-block:var(--dc-s3)}
  /* The shared viewport owns the rail height. Its preview must fit that height
     after the Drawcove title moves the workspace down the page. */
  body.dc-app.tool-dense-ui.tool-app-shell [data-tool-preview]{height:100%!important}
}
@media(max-width:1023px){
  /* The shared mobile workspace is fixed below the context bar. Keep the
     surrounding document out of that workspace, as with its hidden footer. */
  body.dc-app.tool-app-shell .dc-main>:not(.tool-detail),
  body.dc-app.tool-app-shell .dc-footer{display:none}
  .dc-context.has-tool-modes .dc-context__crumb{flex:1}
  .dc-context.has-tool-modes .dc-context__end{min-width:0;gap:6px}
  .dc-context [data-tool-header-modes]>:is(div,nav){position:relative;display:flex;align-items:stretch;gap:2px;margin:0;padding:2px;border:1px solid var(--dc-line);border-radius:11px;background:var(--dc-surface)}
  .dc-context [data-tool-header-modes] button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:none;gap:0;min-width:0;min-height:30px;height:30px;margin:0;padding:0 7px;border:0;border-radius:8px;background:transparent;color:var(--dc-muted);font:inherit;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;cursor:pointer}
  .dc-context [data-tool-header-modes] button:is([aria-selected="true"],[aria-pressed="true"]){background:var(--dc-tide);color:var(--dc-on-tide)}
  .dc-context [data-tool-header-modes] button:focus-visible{outline:2px solid var(--dc-tide);outline-offset:2px}
  .dc-context [data-tool-header-modes] :is(svg,.perspective-mode-indicator,.sll-mode-thumb){display:none}
}
@media(max-width:359px){.dc-context.has-tool-modes .dc-context__crumb,.dc-context.has-tool-modes .dc-context__back span{display:none}}
