/* Only video history controls; navigation/admin sizing is intentionally local. */
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-head{gap:.5rem!important;align-items:stretch!important;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-tools{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:.5rem!important;width:100%!important;min-width:0!important;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-tools>details{grid-area:auto!important;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-tools :is(summary,#gen-refresh,.nd-history-more){display:flex!important;align-items:center;justify-content:center;gap:.375rem;min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important;grid-area:auto!important;border:1px solid var(--gz-soft-line,var(--nd-border))!important;border-radius:.5rem!important;background:var(--gz-card,var(--nd-control))!important;color:var(--gz-ink,var(--nd-ink))!important;padding:0!important;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .nd-history-more span{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .nd-history-more svg{width:1.25rem;height:1.25rem;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-head>span:first-child{font-size:.875rem!important;line-height:1.5;text-align:center;}
body.studio-shell[data-page="create"] .nd-history-actions{position:fixed!important;inset:auto;margin:0;box-sizing:border-box;width:min(19rem,calc(100vw - 1rem));max-width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);overflow:auto;padding:.5rem!important;border:1px solid var(--gz-output-line,var(--nd-border))!important;border-radius:.75rem!important;background:var(--gz-rail,var(--nd-panel))!important;color:var(--gz-ink,var(--nd-ink))!important;box-shadow:0 .5rem 1.5rem #0003;z-index:150;}
body.studio-shell[data-page="create"] .nd-history-actions-title{padding:.375rem .5rem;margin:0 0 .375rem;color:var(--gz-muted,var(--nd-secondary));font-size:.875rem;line-height:1.5;font-weight:600;}
html body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .nd-history-actions :is(.gen-rail-gallery,#gen-clear-failed){display:flex!important;align-items:center;justify-content:flex-start;gap:.75rem;box-sizing:border-box;width:100%!important;max-width:none!important;height:auto!important;min-width:44px!important;min-height:44px!important;padding:.625rem .75rem!important;margin:0!important;grid-area:auto!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;font:inherit!important;font-size:.875rem!important;line-height:1.5!important;border:1px solid transparent!important;border-radius:.5rem!important;color:var(--gz-ink,var(--nd-ink))!important;background:transparent!important;text-decoration:none;}
html body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .nd-history-actions #gen-clear-failed[hidden]{display:none!important;}
body.studio-shell[data-page="create"] .nd-history-actions :is(a,button):hover,body.studio-shell[data-page="create"] .nd-history-more[aria-expanded="true"]{background:var(--gz-active,var(--nd-control))!important;border-color:var(--gz-soft-line,var(--nd-border))!important;}
body.studio-shell[data-page="create"] .nd-history-actions svg{flex-shrink:0;width:1.125rem;height:1.125rem;}
body.studio-shell[data-page="create"] :is(.nd-history-more,.nd-history-actions a,.nd-history-actions button):focus-visible{outline:2px solid var(--gz-focus,var(--nd-brand));outline-offset:2px;}
body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-search .gen-search{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(20rem,calc(100vw - 1rem));max-width:calc(100vw - 1rem);max-height:calc(100dvh - 1rem);overflow:auto;z-index:155;background:var(--gz-rail,var(--nd-panel));color:var(--gz-ink,var(--nd-ink));border-color:var(--gz-output-line,var(--nd-border));}
html.nd-density-compact body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-tools :is(summary,#gen-refresh,.nd-history-more){width:55px!important;height:55px!important;min-width:55px!important;min-height:55px!important;}
html.nd-density-compact body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-tools{gap:.625rem!important;}
html.nd-density-compact body.studio-shell[data-page="create"] #gen-history-rail.nd-history-compact .gen-rail-head>span:first-child{font-size:1.09375rem!important;}
