/* V81 mobile chat: original submission/composer nodes and desktop layout stay owned by their controllers. */
.nd-generation-chat,.nd-chat-more,.nd-chat-ref-order{display:none}
body.studio-shell[data-page="create"].nd-chat-mobile #app{height:calc(var(--nd-viewport-height,100dvh) - var(--nd-shell-header-height,64px))!important;min-height:0!important;padding:0!important;overflow:hidden!important}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-category-bar{height:44px!important;min-height:44px!important;padding-inline:.5rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #gen-video-panel{height:calc(100% - 44px)!important;min-height:0!important;display:block!important}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-main{display:flex!important;flex-direction:column!important;gap:0!important;padding:0!important;height:100%!important;min-height:0!important;overflow:hidden!important}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-main>.gen-feed,body.studio-shell[data-page="create"].nd-chat-mobile .gen-history-rail{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile .nd-generation-chat{display:flex;flex-direction:column;flex:1 1 auto;order:0;gap:.875rem;min-height:4rem;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:.875rem .75rem 1rem;scroll-padding-block:1rem;overflow-anchor:none}
body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-empty{margin:auto;text-align:center;max-width:25rem;padding:1.5rem .5rem;color:var(--nd-secondary,var(--muted))}
.nd-chat-empty strong{display:block;color:var(--nd-ink,var(--text));font-size:1.125rem}.nd-chat-empty p{font-size:.875rem;line-height:1.6;margin:.75rem 0 0}
.nd-chat-job{--chat-accent:#ad8bf5;flex:0 0 auto;min-width:0;max-width:100%;padding:.875rem;border:1px solid var(--nd-border);border-radius:1rem;background:var(--nd-panel,var(--panel));contain:layout style}
.nd-chat-job[data-accent="blue"]{--chat-accent:#74b2ff}.nd-chat-job[data-accent="red"]{--chat-accent:#ef918b}.nd-chat-job[data-accent="amber"]{--chat-accent:#e4c36b}.nd-chat-job[data-accent="green"]{--chat-accent:#a3ce7e}
.nd-chat-job>header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding-bottom:.625rem;font-size:.8125rem;color:var(--nd-secondary,var(--muted))}
.nd-chat-job .nd-chat-model{min-width:0;font-size:.8125rem;font-weight:600;overflow-wrap:anywhere;color:var(--nd-ink,var(--text));border-left:3px solid var(--chat-accent);padding-left:.5rem}
.nd-chat-job time{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.75rem}
.nd-chat-media{position:relative;margin:.25rem 0 .625rem;min-width:0;overflow:hidden;border-radius:.75rem;background:var(--nd-media,#080a09)}
.nd-chat-media video{display:block;max-width:100%;width:100%;max-height:19rem;min-height:7rem;aspect-ratio:16/9;object-fit:contain;margin:0;border-radius:.75rem}
.nd-chat-media-error{padding:.625rem;margin:0;font-size:.8125rem;line-height:1.5;color:var(--nd-ink,var(--text));background:var(--nd-panel,var(--panel))}
.nd-chat-job-state{color:var(--nd-secondary,var(--muted));font-size:.8125rem;line-height:1.55}.nd-chat-job-state>span{font-weight:600;color:var(--nd-ink,var(--text))}.nd-chat-job-state p{margin:.375rem 0}.nd-chat-job-state small{display:block;font-size:.75rem;margin-top:.375rem}
.nd-chat-job[data-outcome="rejected"] .nd-chat-job-state>span,.nd-chat-job[data-outcome="accepted_failure"] .nd-chat-job-state>span{color:var(--nd-color-error-text,#f2a39c)}
.nd-chat-job[data-outcome="unconfirmed"] .nd-chat-job-state>span{color:var(--nd-color-warning-text,#e8c779)}
.nd-chat-prompt{margin:.75rem 0;border-top:1px solid var(--nd-border)}.nd-chat-prompt summary{display:grid;gap:.375rem;min-height:44px;padding:.75rem 0;cursor:pointer;list-style:none}.nd-chat-prompt summary::-webkit-details-marker{display:none}
.nd-chat-prompt summary strong{display:flex;justify-content:space-between;font-size:.8125rem;font-weight:500;color:var(--nd-secondary,var(--muted))}.nd-chat-prompt summary strong::after{content:'+';font-size:1rem}.nd-chat-prompt[open] summary strong::after{content:'−'}
.nd-chat-prompt summary>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:1rem;line-height:1.5;color:var(--nd-ink,var(--text))}.nd-chat-prompt[open] summary>span{display:none}
.nd-chat-prompt pre{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-height:15rem;overflow:auto;font:inherit;font-size:1rem;line-height:1.6;margin:0 0 .75rem;color:var(--nd-ink,var(--text))}
.nd-chat-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.nd-chat-action,.nd-chat-more,.nd-chat-tool-action,.nd-chat-dialog-close,.nd-chat-ref-order{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;min-width:44px;font:inherit;border:1px solid var(--nd-border);border-radius:.625rem;background:var(--nd-control,var(--surface));color:var(--nd-ink,var(--text));cursor:pointer;padding:.625rem .75rem;font-size:.875rem}
.nd-chat-action svg,.nd-chat-more svg,.nd-chat-ref-order svg{width:18px;height:18px;flex:none}.nd-chat-action:disabled,.nd-chat-tool-action:disabled,.nd-chat-more:disabled,.nd-chat-ref-order:disabled{opacity:.45;cursor:default}
.nd-chat-action:focus-visible,.nd-chat-more:focus-visible,.nd-chat-tool-action:focus-visible,.nd-chat-dialog-close:focus-visible,.nd-chat-ref-order:focus-visible,.nd-chat-prompt summary:focus-visible{outline:2px solid var(--nd-brand,#c9ff4f);outline-offset:3px}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer-wrap{position:relative!important;order:2;flex:0 0 auto;min-height:0;padding:.5rem .625rem calc(.5rem + env(safe-area-inset-bottom,0px))!important;border-top:1px solid var(--nd-border);background:var(--nd-navigation,var(--nd-panel,var(--panel)));z-index:3}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded){padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;min-height:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-composer-grid{display:block!important;gap:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-composer-tools,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-compose-title,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-composer-price,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-ref-heading,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-ref-lock-help,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-ref-actions,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-mentions>p{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) :is(.gen-prompt#prompt,.nd-mention-editor){font-size:16px!important;line-height:1.5!important;height:4.5rem!important;min-height:4.5rem!important;max-height:8rem!important;overflow-y:auto!important;padding:.5rem .625rem!important;border:1px solid var(--nd-border)!important;border-radius:.75rem!important;background:var(--nd-field,var(--surface))!important;resize:none}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-prompt-meta{margin:.25rem .125rem 0!important;min-height:1rem;font-size:.75rem!important;justify-content:flex-end!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #upload-hint{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-composer-bar{display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px 44px 44px!important;gap:.25rem!important;padding-top:.375rem!important;align-items:center!important;min-width:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-attach{display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-column:1;grid-row:1;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) :is(.gen-library-button,#gen-paste-image){display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #gen-model-choices{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;padding:0!important;margin:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #gen-model-choices .nd-model-trigger{min-height:44px!important;height:44px!important;width:100%!important;min-width:0!important;padding:.25rem .375rem!important;gap:.25rem!important;border-radius:.625rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #gen-model-choices .nd-model-trigger>svg,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-model-toggle,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-model-selected>small,body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-selected-model-context{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-model-selected{display:block!important;min-width:0!important;width:100%}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-model-selected strong{display:block!important;font-size:.75rem!important;line-height:1.3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-selected-model-price{display:block;font-size:.6875rem!important;line-height:1.3!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #gen-settings-toggle{display:inline-flex!important;align-items:center!important;justify-content:center!important;grid-column:3;grid-row:1;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:1rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #gen-settings-toggle :is(.gen-model-label,.gen-config-summary,.gen-settings-word){display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-chat-more{display:inline-flex;grid-column:4;grid-row:1;padding:0;width:44px;height:44px}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #generate-btn{display:flex!important;grid-column:5!important;grid-row:1!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border-radius:.625rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #generate-btn>span:not(.arrow){display:none!important}body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #generate-btn>.arrow{display:block!important;font-size:1.5rem!important;line-height:1!important}body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) #generate-btn svg{width:20px;height:20px;margin:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) :is(#status,#availability,#gen-reference-issue,.gen-system-status){font-size:.75rem!important;line-height:1.4!important;margin:.25rem 0 0!important;min-height:0!important;padding:.25rem .125rem!important;border-radius:.375rem!important;max-height:2.75rem;overflow:auto}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-ref-dropzone{padding:0!important;border:0!important;margin:0!important;background:transparent!important;min-height:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-ref-dropzone[data-empty="true"]{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs{display:flex!important;flex-wrap:nowrap!important;gap:.5rem!important;overflow-x:auto!important;max-width:100%;width:100%;padding:.125rem 0 .5rem!important;margin:0!important;scrollbar-width:thin;touch-action:pan-x}
body.studio-shell[data-page="create"].nd-chat-mobile #refs:empty{display:none!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;grid-template-rows:48px 44px!important;gap:.25rem!important;flex:0 0 8rem!important;width:8rem!important;height:6rem!important;min-width:8rem!important;margin:0!important;padding:0!important;overflow:hidden!important;border-radius:.625rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-ref-preview{position:relative!important;grid-column:1!important;grid-row:1!important;width:100%!important;min-width:44px!important;height:48px!important;min-height:48px!important;padding:0!important;margin:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-ref-preview img{width:100%;height:100%;object-fit:cover}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref [data-remove]{position:static!important;grid-column:2!important;grid-row:1!important;width:44px!important;height:48px!important;min-width:44px!important;min-height:48px!important;padding:0!important;margin:0!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-ref-lock{position:static!important;grid-column:1!important;grid-row:2!important;min-width:0!important;min-height:44px!important;width:100%!important;height:44px!important;padding:.25rem!important;margin:0!important;font-size:.6875rem!important;line-height:1.2;white-space:normal!important}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-chat-ref-order{position:static!important;inset:auto!important;display:inline-flex;grid-column:2;grid-row:2;width:44px;height:44px;padding:0;border:0;border-radius:0}
body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref:not(.nd-ref-photo){grid-template-rows:48px!important;height:48px!important}
.nd-chat-dialog{width:min(28rem,calc(100% - 1rem));max-height:calc(var(--nd-viewport-height,100dvh) - 1rem);overflow:auto;padding:1rem;border:1px solid var(--nd-border);border-radius:1rem;background:var(--nd-panel,var(--panel));color:var(--nd-ink,var(--text));font:inherit;overscroll-behavior:contain}
.nd-chat-dialog::backdrop{background:#0009;backdrop-filter:blur(5px)}.nd-chat-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem}.nd-chat-dialog h2{font-size:1rem;margin:0}.nd-chat-dialog-close{padding:0;width:44px;height:44px;font-size:1.5rem}.nd-chat-tool-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem}.nd-chat-order-name{overflow-wrap:anywhere;font-size:.875rem;line-height:1.5}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) :is(.gen-prompt#prompt,.nd-mention-editor){height:3rem!important;min-height:3rem!important;max-height:5rem!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer-wrap{padding-bottom:.375rem!important}
@media(prefers-reduced-motion:reduce){.nd-generation-chat,.nd-chat-job{scroll-behavior:auto!important;transition:none!important}}
.nd-chat-dialog select{width:100%;min-height:44px;padding:.625rem;border:1px solid var(--nd-border);border-radius:.5rem;background:var(--nd-field,var(--surface));color:var(--nd-ink,var(--text));font:inherit;font-size:16px}
.nd-chat-dialog>.nd-chat-tool-action{width:100%;margin-top:.5rem}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile .gen-category-bar{display:none!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #gen-video-panel{height:100%!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-prompt-meta{display:none!important}
/* Reference errors may shrink the history feed on short phones; its cards remain scrollable. */
@media(max-width:767px) and (max-height:500px){body.studio-shell[data-page="create"].nd-chat-mobile:has(#refs :is(.nd-ref-invalid,.nd-ref-checking)) .nd-generation-chat{min-height:0!important;padding-block:0!important}}
@media(max-height:500px){body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) :is(.gen-prompt#prompt,.nd-mention-editor){height:3rem!important;min-height:3rem!important;max-height:5rem!important}body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-prompt-meta{display:none!important}}
@media(max-height:500px){body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref{grid-template-columns:minmax(44px,1fr) 44px 44px!important;grid-template-rows:48px!important;flex-basis:9.5rem!important;width:9.5rem!important;min-width:9.5rem!important;height:48px!important}body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref [data-remove]{grid-column:3!important}body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-chat-ref-order{grid-column:2!important;grid-row:1!important;height:48px!important}body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-ref-lock{display:none!important}}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref{grid-template-columns:minmax(44px,1fr) 44px 44px!important;grid-template-rows:48px!important;flex-basis:9.5rem!important;width:9.5rem!important;min-width:9.5rem!important;height:48px!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref [data-remove]{grid-column:3!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-chat-ref-order{grid-column:2!important;grid-row:1!important;height:48px!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile #refs .ref .nd-ref-lock{display:none!important}
.nd-chat-media img{display:block;max-width:100%;width:100%;max-height:19rem;object-fit:contain}
body.studio-shell[data-page="create"].nd-chat-mobile #menu-toggle{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:.625rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .nd-model-selected strong{font-size:.875rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile #generate:not(.nd-composer-expanded) .gen-selected-model-price{font-size:.75rem!important}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer #gen-submit-feedback{order:1;flex:0 0 auto;width:100%;margin:0!important;padding:.125rem .625rem!important;border-radius:0!important;min-height:44px;max-height:32dvh;overflow:auto;gap:.25rem;flex-wrap:nowrap}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer #gen-submit-feedback .nd-system-summary{flex:1 1 0;white-space:normal;overflow-wrap:anywhere;font-size:.8125rem;min-width:0}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer #gen-submit-feedback:has(details[open]){flex-wrap:wrap}
body.studio-shell[data-page="create"].nd-chat-mobile .gen-composer #gen-submit-feedback details[open]{order:2;flex-basis:100%}

.nd-chat-dialog .nd-project-workspace{display:flex!important;flex-direction:column;gap:.5rem;padding:0!important;margin:0!important;border:0!important;width:100%;min-width:0;background:transparent!important}.nd-chat-dialog .nd-project-choice{display:grid;gap:.5rem;width:100%;font-size:.875rem}.nd-chat-dialog .nd-project-workspace .btn{min-height:44px!important;width:100%;font-size:.875rem!important}
/* Beat the older <=719 result layout without changing its controller. */
html body.studio-shell[data-page="create"].nd-chat-mobile .gen-main.nd-mobile-results-ready{height:100%!important;min-height:0!important;overflow:hidden!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-generation-toolbar{height:44px!important;min-height:44px!important;flex:0 0 44px!important;padding-block:0!important}
html body.studio-shell[data-page="create"].nd-chat-mobile #gen-video-panel{flex:1 1 0!important;overflow:hidden!important}
html[data-keyboard-open="true"] body.studio-shell[data-page="create"].nd-chat-mobile .nd-generation-toolbar{display:none!important}

.nd-composer-dialog .nd-chat-more,.nd-composer-dialog .nd-chat-ref-order{display:none!important}

.nd-chat-model{flex:1 1 auto}.nd-chat-tier{flex:0 0 auto;padding:.125rem .375rem;border:1px solid var(--chat-accent);border-radius:.375rem;font-size:.6875rem;font-weight:600;line-height:1.5;color:var(--nd-ink,var(--text))}
.nd-chat-hide{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid var(--nd-border);border-radius:.625rem;background:var(--nd-control,var(--surface));color:var(--nd-ink,var(--text));font:inherit;font-size:1.5rem}
.nd-chat-hide:focus-visible{outline:2px solid var(--nd-brand,#c9ff4f);outline-offset:3px}.nd-chat-hide:disabled{opacity:.45}.nd-chat-details{width:100%;margin:.5rem 0;justify-content:space-between}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog{width:min(42rem,calc(100% - 1rem));max-height:calc(var(--nd-viewport-height,100dvh) - 1rem)}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-history-rail{display:flex!important;flex-direction:column!important;width:100%!important;max-width:100%!important;min-width:0!important;max-height:none!important;padding:0 0 .75rem!important;margin:0 0 .75rem!important;border:0!important;border-bottom:1px solid var(--nd-border)!important;border-radius:0!important;overflow:visible!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog #gen-history{display:flex!important;flex-direction:column!important;gap:.5rem!important;width:100%!important;max-height:38dvh!important;overflow:auto!important;padding:.25rem 0!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-history-item{width:100%!important;min-width:0!important;flex:0 0 auto!important;max-width:100%!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-frame{width:100%!important;max-width:100%!important;min-height:7rem!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog #gen-selected{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;padding:0!important;overflow:visible!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-selected-content{display:block!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-player-stage{height:auto!important;min-height:0!important;max-height:45dvh!important;aspect-ratio:auto!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-player-stage :is(video,img){position:static!important;height:auto!important;max-height:45dvh!important;width:100%!important;object-fit:contain}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog .gen-context-tags{position:static!important;flex-wrap:wrap!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .nd-chat-history-dialog :is(.gen-frame-remove,#gen-clear-failed,#gen-refresh,.gen-result-actions .btn,.gen-context summary,.gen-context-buttons .btn){min-width:44px!important;min-height:44px!important}
/* Actual 320px header with 2 468,74 tokens: retain every 44px target. */
@media(max-width:360px){
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-toggle{width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;flex:0 0 44px!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-track{width:40px!important;height:26px!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-thumb{width:20px!important;height:20px!important;left:3px!important;top:3px!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-toggle[aria-checked="true"] .nd-theme-thumb{transform:translateX(14px)!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-sun{left:4px!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-moon{right:4px!important}
html body.studio-shell[data-page="create"].nd-chat-mobile .top .nd-theme-track svg{width:12px!important;height:12px!important}
}
/* Keep RU / EN / ES readable in WebKit's native 44px select. */
html body.studio-shell[data-page="create"].nd-chat-mobile .top [data-language-picker]{appearance:none!important;-webkit-appearance:none!important;width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0 13px 0 5px!important;font-size:16px!important;line-height:normal!important;text-align:left!important;text-indent:0!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='5' viewBox='0 0 7 5'%3E%3Cpath d='m1 1 2.5 2.5L6 1' fill='none' stroke='%23f4f6f2' stroke-width='1.3'/%3E%3C/svg%3E")!important;background-size:7px 5px!important;background-position:right 4px center!important;background-repeat:no-repeat!important}
