/* Keep motion local to controls and overlays; editor/table geometry stays stable. */
:root{--dn-motion-ease:cubic-bezier(.2,.8,.2,1)}
.top-actions button,.note-editor-head button,.note-meta-row button,.note-settings-actions button,
.sheet-tabs button,.dn-chat-panel button,.dn-chat-dialog button,.note-floating-menu button{
 transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,scale .12s;
}
.top-actions button:active:not(:disabled),.note-editor-head button:active:not(:disabled),
.dn-chat-head button:active:not(:disabled),.dn-chat-compose>button:active:not(:disabled){scale:.96}
dialog{opacity:0;translate:0 8px;transition:opacity .18s var(--dn-motion-ease),translate .18s var(--dn-motion-ease),display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]{opacity:1;translate:0 0}
dialog::backdrop{opacity:0;transition:opacity .18s,display .18s allow-discrete,overlay .18s allow-discrete}
dialog[open]::backdrop{opacity:1}
.dn-chat-panel{opacity:1;translate:0 0;transition:opacity .2s var(--dn-motion-ease),translate .2s var(--dn-motion-ease),display .2s allow-discrete}
.dn-chat-panel[hidden]{opacity:0;translate:0 12px;pointer-events:none}
@starting-style{
 dialog[open]{opacity:0;translate:0 8px}
 dialog[open]::backdrop{opacity:0}
 .dn-chat-panel:not([hidden]){opacity:0;translate:0 12px}
}
.dn-chat-message.dn-message-arrive{animation:dn-message-arrive .22s var(--dn-motion-ease)}
.dn-chat-toast{animation:dn-toast-arrive .22s var(--dn-motion-ease)}
.note-floating-menu,.note-context-menu{animation:dn-menu-arrive .16s var(--dn-motion-ease)}
#authPanel:not(.hidden),#emailPanel:not(.hidden),#adminPanel:not(.hidden),#editorPanel:not(.hidden){animation:dn-menu-arrive .18s var(--dn-motion-ease)}
@keyframes dn-message-arrive{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@keyframes dn-toast-arrive{from{opacity:0;translate:0 -10px;scale:.985}to{opacity:1;translate:0 0;scale:1}}
@keyframes dn-menu-arrive{from{opacity:0;translate:0 -4px}to{opacity:1;translate:0 0}}
@media(prefers-reduced-motion:reduce){
 dialog,dialog::backdrop,.dn-chat-panel,.dn-chat-message,.dn-chat-toast,.note-floating-menu,.note-context-menu,#authPanel,#emailPanel,#adminPanel,#editorPanel,
 .top-actions button,.note-editor-head button,.note-meta-row button,.note-settings-actions button,
 .sheet-tabs button,.dn-chat-panel button,.dn-chat-dialog button,.note-floating-menu button{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .top-actions button:active,.note-editor-head button:active,.dn-chat-head button:active,.dn-chat-compose>button:active{scale:1}
}
