/* Content-first canvas: persistent tap controls, outside the exported artwork. */
body[data-studio-version="5"] #ed-root .ed-tabs,
body[data-studio-version="5"] #ed-root .ed-mobile .ed-tabs {
  grid-template-columns:repeat(4,minmax(0,1fr)) minmax(0,1.6fr);
}
#ed-root .ed-material-hint {margin:0;padding:0 12px 12px;font-size:12px;line-height:1.65;color:var(--muted);}
#ed-root .ed-sharing-note {margin:4px 0 0;line-height:1.6;max-width:34em;}
body[data-studio-version="5"] #ed-root .stage-wrap > .stage-empty {
  position:absolute;inset:calc(var(--ed-quick-height,130px) + 16px) 24px 76px;
  padding:20px;font-size:16px;line-height:1.8;color:#425f53;pointer-events:none;
}
#ed-root .grade-chip.empty {background:#e8ede7;color:#53645a;}
#ed-root .ed-panel.right .prop-row:has(> .btn) {flex-wrap:wrap;gap:8px;}
body[data-studio-version="5"] #ed-root .stage-wrap {display:flex;flex-direction:column;}
body[data-studio-version="5"] #ed-root .stage-outer,
body[data-studio-version="5"] #ed-root .ed-mobile .stage-outer {flex:1;min-height:0;padding-bottom:8px;}
#ed-root .ed-quick-tools {
  position:sticky;top:0;left:0;z-index:35;flex:none;
  padding:10px 14px 12px;border-bottom:1px solid #d6e2d8;
  background:#f6f9f4;color:var(--ink);box-shadow:0 3px 12px #1a423409;
}
#ed-root .ed-quick-selection {display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 12px;margin-bottom:8px;line-height:1.5;font-size:12px;}
#ed-root #ed-quick-name {font-weight:650;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#ed-root #ed-quick-status {color:var(--muted);}
#ed-root .ed-quick-actions {display:flex;flex-wrap:wrap;gap:8px;}
#ed-root .ed-quick-actions .btn {min-height:44px;min-width:48px;padding:8px 12px;justify-content:center;font-size:13px;white-space:nowrap;}
#ed-root .ed-quick-actions .btn:disabled {opacity:.48;cursor:not-allowed;}
body[data-studio-version="5"] #ed-root .zoom-bar {position:sticky;bottom:0;left:0;transform:none;flex:none;margin:0 auto 12px;}
@media(max-width:900px) {
  #ed-root .ed-quick-tools {padding:8px 12px 10px;}
  #ed-root .ed-quick-actions {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
  #ed-root .ed-quick-actions .btn {min-width:0;padding:8px 2px;font-size:12px;}
  body[data-studio-version="5"] #ed-root .ed-mobile .stage-empty {top:calc(var(--ed-quick-height,130px) + 16px);}
}
@media(max-width:359px) {
  #ed-root .ed-quick-actions {grid-template-columns:repeat(3,minmax(0,1fr));}
}
