/* Compact browsing state retains the original composer and its draft. */
html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #workspace #creationComposer[data-reference-surface]:not([data-reference-surface="home"]) { display:none!important; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock] #refineDockToggle { display:flex!important;align-items:center;justify-content:center;gap:8px;transition:background .16s,border-color .16s,box-shadow .16s; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock] #refineDockToggle[hidden] { display:none!important; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #refineDockToggle { position:fixed;left:50%;right:auto;bottom:14px;width:min(720px,calc(100vw - 32px));height:56px;min-height:56px;padding:0 18px;border:1px solid var(--studio-line);border-radius:14px;background:var(--studio-surface);color:var(--studio-text);box-shadow:0 8px 32px #00000018;transform:translateX(-50%);text-align:left; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #refineDockToggle>:not([hidden]) { display:block; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #refineDockToggle:hover { border-color:var(--studio-primary,#526bf5);box-shadow:0 8px 32px #00000025; }
html body.reference-ui-shell[data-studio-ui][data-browse-dock] #refineDockToggle:focus-visible { outline:2px solid var(--studio-primary,#526bf5);outline-offset:3px; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest { position:fixed;z-index:65;right:max(20px,calc((100vw - 720px)/2));bottom:78px;display:flex;align-items:center;justify-content:center;min-height:27px;height:27px;padding:0 10px;border:1px solid var(--studio-line);border-radius:7px;background:var(--studio-surface);color:var(--studio-sub);font-size:11px;font-weight:500;line-height:1;box-shadow:0 2px 8px #00000008;transition:border-color .16s,color .16s; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest[hidden] { display:none!important; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest:hover { color:var(--studio-text);border-color:var(--studio-primary,#526bf5); }
html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest:focus-visible { outline:2px solid var(--studio-primary,#526bf5);outline-offset:3px; }
.studio-browse-pencil { width:20px;height:20px;flex:0 0 20px;color:var(--studio-primary,#7387ff); }
.studio-browse-kind { flex:0 0 auto;padding-right:12px;border-right:1px solid var(--studio-line);font-weight:600;font-size:13px; }
.studio-browse-prompt { min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--studio-sub); }
.studio-browse-assets { flex:0 0 auto;color:var(--studio-muted);font-size:11px; }
.studio-browse-expand { flex:0 0 auto;margin-left:10px;color:var(--studio-primary,#7387ff);font-size:12px;font-weight:600; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseCompact { position:absolute;right:12px;top:10px;z-index:12;min-height:30px;padding:5px 9px;border:1px solid var(--studio-line);border-radius:7px;background:var(--studio-surface);color:var(--studio-sub);font-size:12px;line-height:18px; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseCompact[hidden] { display:none!important; }
html body.reference-ui-shell[data-studio-ui] #studioBrowseCompact:focus-visible { outline:2px solid var(--studio-primary,#526bf5);outline-offset:2px; }
/* 2026-11-13: above the dock the floating button sat on top of each card's
   action row (取消 / ··· hidden while browsing). With room beside the dock,
   park it in the dock's own band instead. */
@media(min-width:940px) {
 html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest { left:calc(50% + 370px);right:auto;bottom:28px; }
}
@media(max-width:700px) {
 html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #refineDockToggle { bottom:8px;width:calc(100vw - 20px);height:52px;min-height:52px;padding-inline:14px;gap:8px; }
 html body.reference-ui-shell[data-studio-ui][data-browse-dock="collapsed"] #refineDockToggle>.studio-browse-assets { display:none!important; }
 html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest { right:10px;bottom:68px; }
 .studio-browse-expand { margin-left:2px; }
}
@media(prefers-reduced-motion:reduce) { html body.reference-ui-shell[data-studio-ui][data-browse-dock] #refineDockToggle,html body.reference-ui-shell[data-studio-ui] #studioBrowseLatest { transition:none; } }
