/* One PWA control system. Menu actions never grow to fit explanatory prose. */
:root{--rac-control-size:44px;--rac-control-font:1rem;--rac-control-gap:8px;--rac-tools-width:clamp(320px,31vw,400px)}
:is(#racMainContent,main,#menuDrawer,#racStudioShell,.appbar,dialog,.bottom-nav) button:not(.book-dtp-handle):not(.photo-resize-handle):not([data-page]):not([data-book-chapter]):not(.flow-page-card):not(.page-card):not(.book-chapter-card):not(.frame-card),
:is(#racMainContent,main,#menuDrawer,#racStudioShell,dialog) .file-label,
:is(#racMainContent,main,#racStudioShell,dialog) input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
:is(#racMainContent,main,#racStudioShell,.appbar,dialog) select{
 box-sizing:border-box!important;block-size:auto!important;min-block-size:var(--rac-control-size)!important;max-block-size:none!important;
 height:auto!important;min-height:var(--rac-control-size)!important;max-height:none!important;
 min-inline-size:0!important;max-inline-size:100%!important;min-width:0!important;max-width:100%!important;
 padding:6px 10px!important;border-radius:7px!important;font-size:var(--rac-control-font)!important;font-weight:600!important;line-height:1.25!important;
 writing-mode:horizontal-tb!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
 box-shadow:none!important;text-shadow:none!important;vertical-align:middle;
}
:is(#racMainContent,main,#menuDrawer,#racStudioShell,.appbar,dialog,.bottom-nav) button:not(.book-dtp-handle):not(.photo-resize-handle):not([data-page]):not([data-book-chapter]):not(.flow-page-card):not(.page-card):not(.book-chapter-card):not(.frame-card){display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-wrap:nowrap;overflow:visible}
:is(#racMainContent,main,#racStudioShell,.appbar,dialog) select{white-space:nowrap!important;font-weight:500!important}
:is(#racMainContent,main,#racStudioShell,dialog) input[type=color]{height:var(--rac-control-size)!important;min-height:var(--rac-control-size)!important;max-height:var(--rac-control-size)!important;width:64px!important;padding:5px!important;border-radius:7px}
:is(#racMainContent,main,#racStudioShell,dialog) input[type=range]{width:100%;min-width:0;max-width:100%;height:24px;min-height:24px;accent-color:#eac064}
:is(#racMainContent,main,#racStudioShell,dialog) input[type=checkbox],:is(#racMainContent,main,#racStudioShell,dialog) input[type=radio]{width:20px;height:20px;min-height:20px;flex:none;accent-color:#eac064}
:is(#racMainContent,main,#menuDrawer,#racStudioShell,.appbar,dialog) button svg{width:20px!important;height:20px!important;flex:none}
:is(#racMainContent,main,#menuDrawer,#racStudioShell,.appbar,dialog) button .rac-action-description{display:none!important}
:is(#racMainContent,main,#racStudioShell,dialog) .rac-action-with-help{min-width:0;width:100%;display:grid;align-content:start;gap:0}
:is(#racMainContent,main,#racStudioShell,dialog) .rac-action-with-help>button{width:100%!important}
.rac-button-explanation{display:none!important}
.rac-action-item{min-width:0;display:grid;gap:10px;align-content:start}
.rac-action-caption{margin:0;color:#a6b6ca;font-size:.9rem;line-height:1.5;font-weight:400;max-width:38ch}
:is(#racMainContent,main) .creation-card{width:100%!important;min-height:var(--rac-control-size)!important;height:var(--rac-control-size)!important;aspect-ratio:auto!important;text-align:left;background:#1c2b3d!important;border:1px solid #35465b!important;color:#edf2f8!important;border-radius:7px!important;padding:8px 14px!important;display:flex!important;justify-content:flex-start!important;flex-direction:row!important;gap:12px!important}
:is(#racMainContent,main) .creation-card b{font-size:var(--rac-control-font)!important;font-weight:650}
:is(#racMainContent,main) .creation-card .creation-icon{font-size:1.25rem;display:inline-grid!important;place-items:center!important;width:24px!important;height:24px!important;min-width:24px!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
:is(#racMainContent,main) .creation-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 24px!important;max-width:720px;margin:24px auto}
:is(#racMainContent,main) .creation-choice{background:transparent!important;border:0!important;box-shadow:none!important;max-width:880px;margin:32px auto;padding:24px 16px}
:is(#racMainContent,main) .creation-choice>h2{font-size:1.5rem;font-weight:650}
:is(#racMainContent,main) .creation-choice>.eyebrow{display:none!important}
:is(#racMainContent,main) .calm-recent{margin-top:32px;border-top:1px solid #2c3c50;padding-top:20px}
:is(#racMainContent,main) .calm-recent article{background:transparent;box-shadow:none;border:0;padding:0;gap:16px}
:is(#racMainContent,main) .calm-recent button{max-width:220px!important}
/* Equal widths within action groups, adapting by rows rather than sideways scroll. */
:is(#racMainContent,main,#racStudioShell,dialog) :is(.button-row,.flow-actions,.writer-primary-actions,.writer-plan-actions,.writer-plan-save,.book-simple-step-actions,.wizard-actions,.creative-card-actions,.photo-main-tools,.writer-cover-main-tools,.rac-reference-actions,.pro-row,.studio-layout-actions,.book-preview-actions,.book-library-actions){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))!important;gap:8px!important;align-items:start!important;overflow:visible!important;min-width:0!important;max-width:100%!important;white-space:normal!important}
:is(#racMainContent,main,#racStudioShell,dialog) :is(.button-row,.flow-actions,.writer-primary-actions,.writer-plan-actions,.writer-plan-save,.book-simple-step-actions,.wizard-actions,.creative-card-actions,.photo-main-tools,.writer-cover-main-tools,.rac-reference-actions,.pro-row,.studio-layout-actions,.book-preview-actions,.book-library-actions)>*{width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;flex:none!important}
:is(#racMainContent,main,#racStudioShell,dialog) :is(.button-row,.flow-actions,.writer-primary-actions,.writer-plan-actions,.book-simple-step-actions)>.wide{grid-column:1/-1}
:is(#racMainContent,main,#racStudioShell,dialog) :is(.book-center-grid,.writer-output-grid,.output-grid,.quick-grid,.book-rework-options){display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;gap:8px!important}
:is(#racMainContent,main,#racStudioShell,dialog) :is(.book-center-grid,.writer-output-grid,.output-grid,.quick-grid,.book-rework-options)>button{width:100%!important;display:flex!important;justify-content:flex-start!important;flex-direction:row!important;grid-column:auto!important;min-width:0!important}
:is(#racMainContent,main,#racStudioShell,dialog) .book-center-grid button span{width:24px!important;height:24px!important;min-width:24px!important;font-size:.8rem!important}
/* Uniform accordion headers are the toolbar's main navigation. */
:is(#racStudioShell,#bookChapterWorkspace,#bookDtpDialog,dialog,#trailerStudio) :is(.pro-main-group,.pro-add,.rac-tool-group,.book-workbench-nav>details,.photo-free-tools details,.book-dtp-tools details)>summary{
 box-sizing:border-box;display:flex!important;align-items:center!important;justify-content:space-between;min-height:var(--rac-control-size)!important;height:var(--rac-control-size)!important;max-height:var(--rac-control-size)!important;padding:8px 12px!important;gap:8px;font-size:var(--rac-control-font)!important;line-height:1.25!important;font-weight:600!important;overflow:hidden;cursor:pointer;
}
:is(#racStudioShell,#bookChapterWorkspace,#bookDtpDialog,dialog,#trailerStudio) :is(.pro-main-group,.pro-add,.rac-tool-group,.book-workbench-nav>details)>summary:after{content:'⌄';margin-left:auto;color:#9fb0c4}
:is(#racStudioShell,#bookChapterWorkspace,#bookDtpDialog,dialog,#trailerStudio) :is(.pro-main-group,.pro-add,.rac-tool-group,.book-workbench-nav>details)[open]>summary:after{content:'⌃'}
body .pro-main-groups .pro-extra label{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;width:100%}
body .pro-main-groups .pro-extra label:has(input[type=checkbox]){display:flex;align-items:center;flex-wrap:nowrap}
body .pro-main-groups .pro-row>label{width:100%}
body .pro-main-groups .pro-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body .pro-main-groups button,.book-workbench-nav>.button-row>button{width:100%!important}
body #studioDeleteText{width:100%!important;justify-content:flex-start!important}
body .studio-pagebar{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:8px!important}
body .studio-pagebar .studio-icon,body .app-history-controls .icon-btn,body #racSearchButton,body #closeMenu{width:48px!important;min-width:48px!important;padding:8px!important}
body .studio-mode-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
body .studio-mode-row>button:nth-child(n+3){min-width:0!important}
body .studio-tabs,body .book-dtp-tabs,body .book-dtp-mode-buttons,body .trailer-steps{overflow:visible!important;white-space:normal!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,110px),1fr))!important;gap:8px!important}
body .studio-tabs button,body .book-dtp-tabs button,body .trailer-steps button{width:100%!important;max-width:100%!important;white-space:normal!important}
body .book-dtp-rail{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(48px,1fr))!important;max-height:112px;overflow-x:hidden!important;overflow-y:auto!important;gap:6px}
body .book-dtp-rail button{width:100%!important}
body .book-dtp-rail button small,body .trailer-steps button span{display:none!important}
body .book-dtp-page-nav{grid-template-columns:48px minmax(0,1fr) auto 48px;min-width:0}
body .book-dtp-zoom{flex-wrap:wrap;min-width:0}
/* Workspace geometry is shared across comic, book, cover and trailer. */
body.rac-side-tools.studio-active .studio-workspace,body.rac-side-tools.studio-layout-active .studio-workspace,
body.rac-side-tools .book-workbench:not(.book-workbench-focus) .book-workbench-panes,
body.rac-side-tools .book-workbench:not(.book-workbench-focus)[data-pane=chapters] .book-workbench-panes,
body.rac-side-tools .book-workbench:not(.book-workbench-focus)[data-pane=manuscript] .book-workbench-panes,
body.rac-side-tools .book-dtp-workspace,body.rac-side-tools .writer-cover-workspace,body.rac-side-tools .trailer-editor-grid{grid-template-columns:minmax(0,1fr) var(--rac-tools-width)!important;gap:12px!important}
body.rac-side-tools .studio-dock{border-radius:0!important}
body .studio-dock-content,body .book-workbench-tools,body .book-dtp-tools,body .photo-free-tools,body .trailer-editor-controls{min-width:0!important;overflow-x:hidden!important;padding:16px!important}
body .studio-dock-content>*,body .book-workbench-tools>*,body .book-dtp-tools>*,body .photo-free-tools>*,body .trailer-editor-controls>*{min-width:0!important;max-width:100%!important}
/* The launch page has no sidebar or reserved navigation column. */
body[data-rac-area=general] #menuDrawer:not(.open){display:none!important}
body[data-rac-area=general]>main{margin-left:auto!important;margin-right:auto!important;width:min(1100px,100%)!important;max-width:1100px!important}
body #menuDrawer .menu-accordion-body{padding:0!important}
body #menuDrawer .rac-menu-phase{display:grid;gap:4px;margin:0 0 18px}
body #menuDrawer .rac-menu-phase h3{font-size:.8rem;font-weight:650;color:#8fa4bd;text-transform:uppercase;letter-spacing:.07em;margin:8px 12px 4px}
body #menuDrawer .rac-menu-phase button{height:var(--rac-control-size)!important;width:100%!important;padding:8px 12px!important;justify-content:flex-start!important;text-align:left;min-width:0!important}
body #menuDrawer .menu-home{font-size:.95rem!important}
@media(max-width:639px){
 :root{--rac-tools-width:320px}
 body .appbar{flex-wrap:wrap!important;gap:8px!important}
 body .appbar-brand{flex:1 1 auto}
 body .appbar .header-actions{flex-wrap:wrap!important;gap:8px!important}
 :is(#racMainContent,main) .creation-grid{grid-template-columns:1fr!important;gap:20px!important}
 :is(#racMainContent,main) .creation-choice{margin:12px auto;padding:16px 8px}
 body .studio-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 body .studio-dock-content,body .book-workbench-tools,body .book-dtp-tools,body .photo-free-tools,body .trailer-editor-controls{padding:12px!important}
 body .book-dtp-page-nav{grid-template-columns:48px minmax(0,1fr) 48px}
 body .book-dtp-zoom{grid-row:2;grid-column:1/-1;justify-content:center}
 body .studio-pagebar{height:auto!important;min-height:48px!important}
}
@media(prefers-reduced-motion:no-preference){button,summary{transition:background-color .12s,border-color .12s}}
@media(min-width:640px) and (max-width:900px){body.rac-side-tools{--rac-tools-width:320px}}

/* Compact shared app header. Secondary service actions live in the existing drawer. */
body .appbar{display:grid!important;grid-template-columns:minmax(240px,1fr) 156px auto;align-items:center!important;gap:16px!important;min-height:72px!important;padding:12px 20px!important;flex-wrap:nowrap!important}
body .appbar .appbar-brand{min-width:0;margin:0;gap:12px}
body .appbar .appbar-brand h1{font-size:1.125rem;line-height:1.25;margin:0}
body .appbar .appbar-brand .eyebrow{font-size:.75rem;line-height:1.2}
body .appbar .rac-area-switch{grid-column:2;grid-row:1;margin:0;min-width:0;width:156px;display:block}
body .appbar .rac-area-switch select{height:var(--rac-control-size)!important;width:100%;margin:0;cursor:pointer}
body .appbar .header-actions{grid-column:3;grid-row:1;display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px!important;margin:0!important}
body .appbar .header-actions>:not(#menuBtn):not(#racSearchButton):not(#racContextHelpButton){display:none!important}
body .appbar #racContextHelpButton,body .appbar #racSearchButton,body .appbar .app-history-controls button{width:48px!important;height:var(--rac-control-size)!important;min-width:48px!important;padding:0!important}
body .appbar #racContextHelpButton#racContextHelpButton{display:inline-flex!important;font-size:0!important}
body .appbar #racContextHelpButton:before{content:'?';font-size:1.25rem;font-weight:700}
body .appbar #menuBtn{padding:8px 12px!important;white-space:nowrap!important}
body #menuDrawer [data-menu-area=service]{border-top:1px solid #2c3c50;margin-top:16px;padding-top:8px}
body[data-rac-area] #menuDrawer [data-menu-area=service]>summary{display:flex!important;align-items:center;padding:8px 12px;min-height:var(--rac-control-size);gap:8px;box-sizing:border-box}
body #menuDrawer [data-menu-area=service]>summary small{display:none}
body.rac-wide-nav .book-local-menu{display:none!important}
body .stage2-tabs,body .completion-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:8px;overflow:visible;min-width:0}
@media(max-width:850px){
 body .appbar{grid-template-columns:minmax(160px,1fr) 136px auto;gap:8px!important;padding:8px 12px!important;min-height:64px!important}
 body .appbar .rac-area-switch{width:136px}
 body .appbar #appForward{display:none!important}
 body .appbar .appbar-brand{gap:8px}
}
@media(max-width:560px){
 body .appbar{grid-template-columns:minmax(0,1fr) auto;gap:8px!important}
 body .appbar .rac-area-switch{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
 body .appbar .header-actions{grid-column:2;grid-row:1}
 body .appbar .appbar-brand h1{font-size:1rem}
 body .appbar .appbar-brand .eyebrow{display:none}
 body .appbar #menuBtn#menuBtn{font-size:0!important;width:48px!important;min-width:48px!important;padding:0!important}
 body .appbar #menuBtn:before{content:none}
}

body .appbar #racContextHelpButton>span{display:none!important}

/* Workspace headings keep their own row; actions wrap as complete controls. */
:is(#racMainContent,main) .view .section-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:10px!important;min-width:0;max-width:100%}
:is(#racMainContent,main) .view .section-head>div:has(>h2){order:-1;flex:1 0 100%;width:100%;min-width:0}
:is(#racMainContent,main) .view .section-head>h2{order:-1;flex:1 0 100%;width:100%}
:is(#racMainContent,main) .view .section-head h2{font-size:1.5rem;line-height:1.25;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;margin:4px 0 8px}
:is(#racMainContent,main) .view .section-head>select{flex:0 1 220px!important;width:220px!important;max-width:100%!important}
:is(#racMainContent,main) .view .section-head>button{flex:0 0 auto;max-width:100%}
:is(#racMainContent,main) .view .section-head>.button-row{flex:1 0 100%;width:100%;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important}
:is(#racMainContent,main) .view .section-head>.button-row>button{width:auto!important;flex:0 1 auto!important;min-width:max-content!important;max-width:100%!important}
:is(#racMainContent,main) .view .section-head .badge{flex:none}
body .studio-dock{padding:0!important}
body .studio-dock-content{display:block!important;padding:10px 12px!important}
body .studio-dock-title{padding:8px 12px!important;margin:0!important}
body .studio-tabs{padding:4px 8px!important;gap:4px!important}
body .pro-main-groups,body .pro-groups{gap:6px!important}
@media(min-width:900px) and (hover:hover) and (pointer:fine){
 :root{--rac-control-size:38px;--rac-control-font:.9375rem}
 body .appbar{min-height:60px!important;padding-block:8px!important}
 body .studio-head{height:60px!important;min-height:60px!important;padding-block:6px!important}
 body .studio-dock-content label{font-size:.9375rem}
}
body.rac-side-tools.studio-active .rac-studio{display:grid!important;grid-template-columns:minmax(0,1fr) var(--rac-tools-width);grid-template-rows:auto auto auto minmax(0,1fr);min-height:0;overflow:hidden}
body.rac-side-tools.studio-active .studio-head{grid-column:1/-1;grid-row:1}
body.rac-side-tools.studio-active .studio-pagebar{grid-column:1;grid-row:2}
body.rac-side-tools.studio-active .studio-guide{grid-column:1;grid-row:3}
body.rac-side-tools.studio-active .studio-workspace{display:contents!important;height:auto!important;min-height:0!important}
body.rac-side-tools.studio-active .studio-stage{grid-column:1!important;grid-row:4!important;min-height:0!important}
body.rac-side-tools.studio-active .studio-dock{grid-column:2!important;grid-row:2/5!important;align-self:stretch;min-height:0!important;height:100%!important}
@media(max-width:560px){:is(#racMainContent,main) .view .section-head>select{flex-basis:100%!important;width:100%!important}}
#racStudioShell .studio-chip-group>div{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))!important;gap:6px!important;overflow:visible!important;padding:0!important}
#racStudioShell .studio-chip-group .studio-chip{width:100%!important;min-width:0!important;white-space:normal!important;flex:none!important;word-break:normal!important;overflow-wrap:normal!important;height:auto!important;max-height:none!important}
#racStudioShell .studio-veto>div{grid-template-columns:minmax(0,1fr)!important}
#racStudioShell .calm-tools-toggle{background:#213044!important;color:#eef3f8!important}

/* Shared character reference workflow: one order, one image assignment review. */
#characterToolsDialog .reference-actions{display:flex;flex-wrap:wrap;gap:8px}
#characterToolsDialog [data-profiles],#characterToolsDialog .reference-assignment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:12px}
#characterToolsDialog .reference-figure,#characterToolsDialog .reference-assignment-grid article{min-width:0;padding:12px;border:1px solid var(--line,#334155);border-radius:10px;background:var(--panel,#111d2c)}
#characterToolsDialog .reference-figure h3{margin:0 0 10px;font-size:1rem}
#characterToolsDialog [data-preview] img,#characterToolsDialog .reference-assignment-grid img{display:block;width:100%;height:160px;object-fit:contain;margin-bottom:8px}
#characterToolsDialog [data-preview]{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
#characterToolsDialog label{display:flex;flex-direction:column;gap:6px;margin:8px 0}
#characterToolsDialog input,#characterToolsDialog select,#characterToolsDialog textarea{width:100%;max-width:100%;box-sizing:border-box}
#characterToolsDialog input[type=file]{font-size:.875rem}
#characterToolsDialog .reference-import{margin:16px 0}
#characterToolsDialog .reference-assignment-grid{margin:12px 0}
#characterToolsDialog [data-batch-order][hidden],#characterToolsDialog [data-assign-all][hidden],#characterToolsDialog [data-batch-files][hidden],#characterToolsDialog [data-continue][hidden]{display:none!important}
#characterToolsDialog [data-next-step]{margin-bottom:16px}

/* One quiet header on every workspace; editor actions stay with the page. */
body .appbar{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
body .appbar .header-actions{grid-column:2!important}
body .appbar #appForward{display:none!important}
body .appbar .appbar-brand{gap:8px!important}
body .appbar .appbar-brand>div:last-child{min-width:0}
body .appbar .appbar-brand h1{font-size:1rem!important;white-space:normal;overflow-wrap:normal;word-break:normal}
body #menuDrawer>.rac-area-switch{display:block;margin:8px 12px 16px;width:auto}
body #menuDrawer>.rac-area-switch select{width:100%;height:var(--rac-control-size)!important;font-size:var(--rac-control-font)}
body .studio-head{display:grid!important;grid-template-columns:minmax(0,1fr) repeat(3,var(--rac-control-size));gap:8px!important;align-items:center!important;flex-wrap:nowrap!important;height:auto!important;min-height:60px!important;padding:8px 12px!important;box-sizing:border-box}
body .studio-head .studio-brand{grid-column:1;grid-row:1;min-width:0!important;width:100%!important;justify-content:flex-start!important;padding:0!important;gap:8px!important;background:transparent!important;border:0!important;white-space:normal!important}
body .studio-head .studio-brand>span{display:flex;align-items:center;justify-content:center;flex:0 0 var(--rac-control-size);height:var(--rac-control-size);width:var(--rac-control-size)}
body .studio-head .studio-brand svg{width:22px;height:22px}
body .studio-head .studio-brand b{font-size:1rem!important;line-height:1.2;word-break:normal;overflow-wrap:normal;min-width:0}
body .studio-head .studio-head-actions{display:contents!important}
body .studio-head #studioMenu{grid-column:4;grid-row:1;font-size:1.25rem!important}
body .studio-head #studioMenu b{display:none!important}
body .studio-head #racSearchButton{grid-column:2;grid-row:1}
body .studio-head #racContextHelpButton{grid-column:3;grid-row:1;font-size:0!important}
body .studio-head #racContextHelpButton>span{display:none!important}
body .studio-head #racContextHelpButton:before{content:'?';font-size:1.25rem;font-weight:700}
body .studio-head :is(#racSearchButton,#racContextHelpButton,#studioMenu),body .appbar :is(#racSearchButton,#racContextHelpButton,#menuBtn,#appBack){width:var(--rac-control-size)!important;min-width:var(--rac-control-size)!important;height:var(--rac-control-size)!important;min-height:var(--rac-control-size)!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center}
body .appbar #menuBtn{font-size:0!important}
body .appbar #menuBtn:before{content:none}
body .appbar #racSearchButton{order:0}body .appbar #racContextHelpButton{order:1}body .appbar #menuBtn{order:2}
body .studio-page-heading{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-width:0}
body .studio-page-heading .studio-save{display:inline!important;white-space:nowrap;font-size:.875rem;line-height:1.25}
@media(max-width:380px){body .studio-head,body .appbar{padding-inline:6px!important;gap:4px!important}body .studio-head .studio-brand{gap:4px!important}body .studio-head .studio-brand b,body .appbar .appbar-brand h1{font-size:.875rem!important}}

/* The dock footer owns a row; only the tools scroll within the remaining space. */
body.studio-active #studioDock{display:flex!important;flex-direction:column!important;box-sizing:border-box!important}
body.studio-active #studioDock>.calm-tools-toggle{order:-3!important;flex:0 0 auto!important}
body.studio-active #studioDock>.studio-dock-title{order:-2!important;flex:0 0 auto!important}
body.studio-active #studioDock>.studio-tabs{order:-1!important;flex:0 0 auto!important}
body.studio-active #studioDock>#studioDockContent{order:1!important;flex:1 1 0!important;min-height:0!important;box-sizing:border-box!important;overflow-y:auto!important;position:relative!important}
body.studio-active #studioDock>#studioPageActions:not([hidden]){order:3!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;flex:0 0 auto!important;position:relative!important;inset:auto!important;box-sizing:border-box!important;width:100%!important;gap:8px!important;padding:8px 12px!important;margin:0!important}
body.studio-active #studioDock>#studioPageActions.single:not([hidden]){grid-template-columns:minmax(0,1fr)!important}
body.studio-active #studioPageActions>button{width:100%!important;min-width:0!important;margin:0!important;position:static!important;box-sizing:border-box!important}
body.studio-active #studioDock.calm-collapsed>#studioDockContent{display:none!important}

body #menuDrawer button.rac-menu-current[aria-current="page"]{background:#eac06426!important;color:#ffe098!important;border-left:3px solid #eac064!important;font-weight:750!important;box-shadow:inset 0 0 0 1px #eac06455!important}

body #openLocalAISettings[hidden],body .local-ai-action[hidden],body .local-image-action[hidden]{display:none!important}
