/* Existing Storylens palette retained; compact utility navigation and destinations. */
.modes .mode[data-mode=cinematic] b{white-space:nowrap;font-size:13px}.caption-extra iframe{display:block;width:100%;min-height:850px;border:0}.caption-extra[hidden]{display:none!important}.c3-families{flex-wrap:wrap}
.panel[data-mode=cinematic] #modeTitle{white-space:nowrap;font-size:24px}
#autoCaptionPanel .c3-families{display:flex;flex-wrap:wrap}#autoCaptionPanel .c3-families button{flex:1 0 90px}#ac-cards .caption-card[hidden]{display:none!important}
@media(min-width:1001px){.storylens-editor .workspace{align-items:start}.storylens-editor .modes{max-height:calc(100vh - 96px);overflow-y:auto;overscroll-behavior:contain}.storylens-editor .modes .mode{grid-template-columns:26px minmax(0,1fr);padding:8px;min-height:48px}.storylens-editor .modes .mode-icon{width:26px;height:30px}.storylens-editor .panel[data-embedded=true]{min-height:600px}}
.modes .tool-search,.modes .tool-group-label{grid-column:1/-1}@media(max-width:1000px){.storylens-editor .modes{max-height:320px;overflow-y:auto;overscroll-behavior:contain}.embedded-tools iframe{min-height:600px!important}.storylens-editor .panel-head{gap:10px}}
.storylens-editor.tools-visible .intro{display:none}.storylens-editor.tools-visible>main{padding-top:18px}.storylens-editor .panel[data-embedded=true] .engine{box-shadow:none}
.tool-search{box-sizing:border-box;position:sticky;top:0;z-index:1;width:100%;min-height:36px;background:#111518;border:1px solid #363e45;border-radius:6px;padding:7px 10px;color:#edf1f4;margin:0 0 10px;font:13px Arial,sans-serif}.tool-group-label{font-size:12px;color:#9aa7b1;margin:16px 8px 6px}.modes .mode[hidden]{display:none!important}.modes .mode i{display:none}.modes .mode{min-height:58px;padding:10px 12px}.modes .mode b{font-size:14px}.modes .mode small{font-size:12px;line-height:1.3}.modes .mode .ui-icon{width:20px;height:20px}.storylens-editor .panel[data-embedded=true]>:not(.panel-head):not(.embedded-tools){display:none!important}.storylens-editor .panel[data-embedded=true]>.embedded-tools{display:block!important}.completed-result-actions .editor-logo-button,.editor-exports .editor-logo-button{width:36px!important;height:36px!important;min-width:36px;padding:6px!important;justify-content:center;gap:0!important}.editor-logo-button span{display:none!important}.editor-logo-button svg{width:22px;height:22px}.completed-result-actions{gap:6px}.completed-result-actions .editor-exports{gap:5px;flex-wrap:nowrap}.panel-head{margin-bottom:18px}.embedded-tools iframe{min-height:760px;height:calc(100vh - 220px)}

.storylens-editor .panel[data-embedded=true]:has(.embedded-tools iframe[data-fit-height="true"]) { min-height:0; }
.embedded-tools iframe[data-fit-height="true"] { min-height:0!important; }
