/* Final polish for narrow viewports, long content and modal feedback. */
.form-grid>div,.controls,.visual-library .starter-heading>div,.deck-dialog-header>div{min-width:0}.visual-library .starter-heading{flex-wrap:wrap}.visual-library .starter-heading>div{flex:1 1 260px}.visual-library .starter-heading>.primary{flex-shrink:0}.row>div:first-child{min-width:0}.row b,.deck-dialog-header h2{overflow-wrap:anywhere}.deck-dialog-header>.secondary{flex-shrink:0}#toast,.dialog-toast{left:50%;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100vw - 32px));white-space:normal;line-height:1.6;animation:toastCentered .22s ease both}.dialog-toast{position:fixed;bottom:24px;z-index:10001;background:#403271;color:#fff;padding:13px 20px;border-radius:9px;font-size:12px;box-shadow:0 8px 30px #00000025}.media-upload-status{font-size:10px;padding-left:9px;border-left:2px solid #8eaa80;color:#718566}.media-upload-status.error{border-color:#bd805e;color:#a46643}html[data-theme=dark] .media-upload-status{color:#b3c6a7}html[data-theme=dark] .media-upload-status.error{color:#e9b594}@keyframes toastCentered{from{opacity:0;transform:translate(-50%,10px) scale(.98)}to{opacity:1;transform:translate(-50%,0) scale(1)}}@media(max-width:700px){.visual-library .starter-heading>.primary{width:100%;text-align:center}.deck-dialog-header{gap:12px}.deck-dialog-header h2{font-size:15px}#toast,.dialog-toast{font-size:11px;padding:11px 15px}.author-new{flex-wrap:wrap}.author-new input{flex:1 1 180px}}@media(prefers-reduced-motion:reduce){#toast,.dialog-toast{animation:none}}
