.authoring-excel-tools { position:relative; margin:0; }
.creator-page #create-workspace { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; align-items:start; padding-top:20px; }
.creator-page #create-workspace > .workspace-hero { grid-column:1; grid-row:1; margin:0 0 16px; min-width:0; }
.creator-page #create-workspace > .authoring-filebar { grid-column:2; grid-row:1; }
.creator-page #create-workspace > :not(.workspace-hero):not(.authoring-filebar) { grid-column:1 / -1; }
.creator-page .authoring-filebar { position:sticky; top:80px; z-index:9; display:flex; align-items:center; gap:8px; justify-content:flex-end; padding:8px 0; margin:0; pointer-events:none; }
.creator-page .authoring-filebar :is(.authoring-excel-tools,.creator-draft-open) { pointer-events:auto; }
.creator-page .authoring-filebar :is(summary,.creator-draft-open) { display:flex; align-items:center; gap:7px; min-height:44px; margin:0; padding:10px 20px; box-sizing:border-box; box-shadow:0 3px 12px #29223e12; }
.creator-page .authoring-filebar .creator-draft-open svg { width:16px; height:16px;flex:none; }
.creator-submit-dialog { width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow-y:auto;box-sizing:border-box; }
.creator-submit-dialog h2 { font-size:20px;line-height:1.5;margin:0 0 12px; }
.creator-submit-note { font-size:12px;line-height:1.9;color:var(--site-muted);margin:12px 0 0; }
.creator-submit-dialog .ui-actions { gap:8px; }
.creator-submit-dialog .btn { min-height:44px; }
.creator-page .authoring-filebar .authoring-excel-menu { max-height:calc(100dvh - 158px); overflow-y:auto; overscroll-behavior:contain; }
.authoring-excel-tools > summary .file-tools-chevron { width:14px; height:14px; transition:transform .15s; }
.authoring-excel-tools[open] > summary .file-tools-chevron { transform:rotate(180deg); }
.authoring-file-hint { margin:4px 10px 6px; color:var(--ink-light); font-size:11px; line-height:1.6; }
.authoring-excel-tools > summary { display:flex; align-items:center; gap:7px; list-style:none; cursor:pointer; min-height:40px; }
.authoring-excel-tools > summary::-webkit-details-marker { display:none; }
.authoring-excel-tools > summary svg { width:16px; height:16px; flex:none; }
.authoring-excel-tools > summary .file-tools-transfer-icon { display:none; }
.authoring-excel-menu { position:absolute; right:0; top:calc(100% + 7px); z-index:100; width:194px; padding:6px; border:1px solid var(--border); border-radius:12px; background:var(--card); box-shadow:0 8px 28px #211d3c24; }
.authoring-excel-menu button { display:block; width:100%; min-height:42px; padding:10px 12px; border:0; border-radius:7px; text-align:left; font:inherit; font-size:13px; color:var(--ink); background:transparent; cursor:pointer; }
.authoring-excel-menu button:hover { background:var(--editor-soft); }
.authoring-excel-menu button:disabled { opacity:.5; cursor:wait; }
.authoring-excel-tools :focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.excel-preview-note { margin:12px 0; padding:12px 16px; border-radius:10px; color:var(--ink); background:var(--editor-help); font-size:13px; line-height:1.8; white-space:pre-line; }
#create-excel-error p { white-space:pre-line; max-height:50dvh; overflow-y:auto; }
@media(max-width:600px) { .authoring-excel-tools > summary { min-height:44px; } }
@media(max-width:900px) {
  .creator-page #create-workspace > .workspace-hero { grid-column:1 / -1; }
  .creator-page .authoring-workspace { padding-bottom:calc(100px + env(safe-area-inset-bottom)); }
  .creator-page .authoring-publish-dock {
    left:0; right:0; bottom:0; z-index:9;
    display:grid; grid-template-columns:96px minmax(44px,.75fr) minmax(0,1.15fr) minmax(0,1.15fr);
    gap:8px; padding:10px max(14px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));
    border:0; border-top:1px solid var(--border); border-radius:0;
    box-shadow:0 -4px 18px #29223e0a;
  }
  .creator-page .authoring-publish-dock > .btn { width:100%;min-width:0;padding:10px 5px;font-size:12px; }
  .creator-page .authoring-publish-dock .btn { transform:none; }
  .creator-page .authoring-publish-dock .authoring-filebar {
    position:relative; top:auto; z-index:auto; padding:0; margin:0;
    justify-content:flex-start; min-width:0; pointer-events:auto;
  }
  .creator-page .authoring-publish-dock :is(.authoring-excel-tools > summary,.creator-draft-open) {
    width:44px; height:44px; min-height:44px; padding:0; gap:0;
    justify-content:center; border-radius:11px; box-shadow:none;
  }
  .creator-page .authoring-publish-dock :is(.file-tools-sheet-icon,.file-tools-label,.file-tools-chevron,.creator-draft-label) { display:none; }
  .creator-page .authoring-publish-dock :is(.file-tools-transfer-icon,.creator-draft-open svg) { display:block; width:20px; height:20px; }
  .creator-page .authoring-publish-dock .authoring-excel-menu {
    top:auto; bottom:calc(100% + 12px); left:0; right:auto;
    width:min(230px,calc(100vw - 80px)); max-height:calc(100dvh - 100px - env(safe-area-inset-bottom));
  }
  .creator-page .workspace-rail .authoring-content-meter { top:0; }
}
@media(max-width:400px) { .creator-page .authoring-publish-dock { gap:5px;padding-inline:10px; } .creator-submit-dialog .ui-actions { display:grid;grid-template-columns:1fr 1fr; } .creator-submit-dialog #create-submit-confirm { grid-column:1/-1; } }
