/* Explicit neutral surfaces in both themes. Never invert media pixels. */
body[data-page="create"] .gen-result-wait {color:var(--nd-ink);width:100%;max-width:42rem;min-height:0;padding:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;text-align:center;}
body[data-page="create"] .gen-player-stage:has(.gen-result-wait) {height:auto;min-height:9rem;max-height:none;aspect-ratio:auto;}
body[data-page="create"] .gen-player-stage:has(.gen-result-wait):not(:has(.nd-generation-progress)) {display:none;}
body[data-page="create"] .gen-result-wait:has(.nd-generation-progress)>:is(span,strong,p) {display:none;}
body[data-page="create"] .gen-result-wait>span {color:var(--nd-ink);opacity:.8;}
body[data-page="create"] .gen-result-wait p {color:var(--nd-secondary);margin:0;font-size:.8rem;max-width:30rem;}
html body.studio-shell[data-page="create"] :is(.gen-job-note,.gen-submit-feedback[data-tone="info"]) {color:var(--nd-ink)!important;background:var(--nd-control)!important;border:1px solid var(--nd-border)!important;border-radius:.5rem;padding:.75rem;box-shadow:none!important;}
html body.studio-shell[data-page="create"] :is(.gen-job-note,.gen-submit-feedback[data-tone="info"]) :is(strong,p,small) {color:inherit!important;}
body[data-page="create"] :is(.gen-job-message,.gen-job-diagnostic)[hidden] {display:none!important;}
html body.studio-shell[data-page="create"] #generate .nd-system-status[data-tone="warning"] {color:var(--nd-ink)!important;background:var(--nd-control)!important;border:0!important;border-left:3px solid #df945b!important;box-shadow:none!important;}
html body.studio-shell[data-page="create"] #generate .nd-system-status[data-tone="warning"] .nd-system-summary {color:inherit!important;}
html body.studio-shell[data-page="create"] #gen-selected .gen-job-note {color:var(--nd-ink)!important;background:var(--nd-control)!important;border:0!important;border-left:2px solid #df945b!important;padding:.5rem .75rem!important;font-size:.8125rem!important;box-shadow:none!important;}
html body.studio-shell[data-page="create"] #generate .nd-system-status[data-tone="warning"] .nd-system-summary::before {content:'!';display:inline-grid;place-items:center;width:1rem;height:1rem;margin-right:.4rem;border:1px solid #df945b;border-radius:50%;color:#df945b;font-size:.75rem;font-weight:700;}
@media(max-width:767px) and (max-height:500px){
 html body.studio-shell[data-page="create"].nd-chat-mobile #generate:has(.nd-ref-invalid,.nd-ref-checking):not(.nd-composer-expanded) .nd-ref-dropzone{grid-row:1 / span 2}
 html body.studio-shell[data-page="create"].nd-chat-mobile #generate:has(.nd-ref-invalid,.nd-ref-checking):not(.nd-composer-expanded) #gen-submit-feedback{grid-column:2;grid-row:1;min-height:0;max-height:3.5rem;overflow:auto;padding:.25rem!important}
 html body.studio-shell[data-page="create"].nd-chat-mobile #generate:has(.nd-ref-invalid,.nd-ref-checking):not(.nd-composer-expanded) .nd-mentions{grid-column:2;grid-row:2}
}
body[data-page="create"] .gen-job-note {font-size:.8125rem;line-height:1.5;margin:.75rem 0;}
body[data-page="create"] .gen-job-diagnostic {font-size:.75rem;margin:.75rem 0;color:var(--nd-secondary);}
body[data-page="create"] .gen-job-diagnostic pre {white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;}
.nd-generation-progress {width:min(100%,25rem);text-align:left;}
.nd-generation-progress>div {display:flex;justify-content:space-between;gap:1rem;align-items:center;font-size:.75rem;}
.nd-generation-progress strong {font-size:1.2rem;font-variant-numeric:tabular-nums;}
.nd-generation-progress progress {display:block;width:100%;height:.45rem;margin:.5rem 0;border:0;border-radius:1rem;overflow:hidden;appearance:none;background:var(--nd-control);accent-color:#a4d92c;}
.nd-generation-progress progress::-webkit-progress-bar {background:var(--nd-control);border-radius:1rem;}
.nd-generation-progress progress::-webkit-progress-value {background:#a4d92c;border-radius:1rem;}
.nd-generation-progress progress::-moz-progress-bar {background:#a4d92c;}
.nd-generation-progress small {display:block;font-size:.7rem;line-height:1.4;color:var(--nd-secondary);}
body[data-page="create"] .gen-frame-media {position:relative;}
.nd-video-poster {display:block;width:100%;height:100%;object-fit:cover;}
.nd-preview-fallback {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:.5rem;color:var(--nd-ink);}
.nd-preview-fallback small,.nd-frame-state {font-size:.62rem;line-height:1.25;text-align:center;}
.nd-frame-state {position:absolute;bottom:.5rem;left:.3rem;right:.3rem;color:var(--nd-ink);}
.nd-frame-progress {position:absolute;right:.3rem;top:.3rem;padding:.18rem .3rem;border-radius:.3rem;background:var(--nd-brand);color:#111;font-size:.7rem;font-weight:600;}
html[data-theme="light"] body[data-page="create"] :is(.gen-player-stage,.gen-frame-media) {background:var(--nd-control)!important;}
html[data-theme="light"] body[data-page="create"] .gen-frame-order {background:#f5f8f6ed;color:#111!important;}
html[data-theme="light"] body[data-page="create"] .gen-result-wait :is(p,strong,span,small) {color:#111!important;}
@media(max-width:720px){body[data-page="create"] .gen-result-wait{padding:.8rem}.nd-frame-state{display:none}.nd-generation-progress small{font-size:.65rem}}
