/* UI depth and short transitions. Layout, drag surfaces and business actions stay intact. */
.shell main.content>.card,.shell .settings-card,.shell .dashboard-widget:not(.app-shortcut-widget){
 box-shadow:inset 0 1px 0 #ffffffb3,0 2px 5px #173e3f05,0 12px 28px -20px #173e3f40;
}
.shell :is(.primary,.secondary,.app-quick-tile){
 transition:background-color 150ms ease,color 150ms ease,box-shadow 160ms ease,transform 120ms ease;
}
.shell .primary,#editor .primary{box-shadow:inset 0 1px 0 #ffffff24,0 3px 0 #0e393c,0 7px 14px -9px #174c4f80;}
.shell .secondary,#editor .secondary{box-shadow:inset 0 1px 0 #fff,0 2px 0 #dce5e0,0 7px 14px -12px #174c4f60;}
.shell .app-quick-tile{box-shadow:inset 0 1px 0 #ffffffb3,0 3px 0 #174c4f0c,0 9px 18px -14px #174c4f66;}
.shell :is(.primary,.secondary,.app-quick-tile):active:not(:disabled),#editor :is(.primary,.secondary):active:not(:disabled){
 transform:translateY(2px) scale(.985);box-shadow:inset 0 2px 4px #173e3f24,0 1px 0 #174c4f12;
}
.shell .bottom-link:active{transform:scale(.96);}
.shell :is(.primary,.secondary,.app-quick-tile):disabled{box-shadow:none;transform:none;}
.shell .app-view-enter{animation:app-page-fade 180ms ease-out;}
.shell .app-view-enter>.page-heading{animation:app-heading-arrive 220ms cubic-bezier(.2,.7,.3,1);}
#editor[open]:not(.floorplan-dialog){animation:app-window-arrive 220ms cubic-bezier(.2,.7,.3,1);}
#editor[open]::backdrop{animation:app-backdrop-arrive 180ms ease-out;}
@keyframes app-page-fade{from{opacity:.65}to{opacity:1}}
@keyframes app-heading-arrive{from{opacity:.65;translate:0 6px}to{opacity:1;translate:0 0}}
@keyframes app-window-arrive{from{opacity:.4;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes app-backdrop-arrive{from{opacity:0}to{opacity:1}}
@media(hover:hover) and (pointer:fine){
 .shell :is(.primary,.secondary,.app-quick-tile):hover:not(:disabled){transform:translateY(-1px);}
 .shell :is(.primary,.secondary,.app-quick-tile):active:not(:disabled){transform:translateY(2px) scale(.985);}
}
[data-theme=dark] .shell main.content>.card,[data-theme=dark] .shell .settings-card,[data-theme=dark] .shell .dashboard-widget:not(.app-shortcut-widget){box-shadow:inset 0 1px 0 #ffffff0b,0 3px 8px #00000016,0 14px 28px -20px #00000080;}
[data-theme=dark] .shell .secondary,[data-theme=dark] #editor .secondary{box-shadow:inset 0 1px 0 #ffffff0c,0 2px 0 #0c191a,0 8px 16px -12px #00000080;}
[data-theme=dark] .shell .app-quick-tile{box-shadow:inset 0 1px 0 #ffffff14,0 3px 0 #07171880,0 9px 18px -14px #00000080;}
@media(prefers-reduced-motion:reduce){
 .shell :is(.primary,.secondary,.app-quick-tile,.bottom-link),#editor :is(.primary,.secondary){transition:none!important;transform:none!important;}
 .shell .app-view-enter,.shell .app-view-enter>.page-heading,#editor[open],#editor[open]::backdrop{animation:none!important;translate:none!important;}
}
@media(forced-colors:active){.shell :is(.card,.settings-card,.dashboard-widget,.primary,.secondary,.app-quick-tile),#editor :is(.primary,.secondary){box-shadow:none;}}

/* Keep the drawer and its overlay in sync until the exit animation finishes. */
#navigation.closing::backdrop{animation:app-drawer-backdrop-out 160ms ease-in forwards;}
@keyframes app-drawer-backdrop-out{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){#navigation.closing::backdrop{animation:none;}}

/* Unified response for text, icon, menu and primary actions. */
.shell button:not(:disabled),#editor button:not(:disabled){transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease,transform 120ms ease;}
.shell button:not(:disabled):active,#editor:not(.floorplan-dialog) button:not(:disabled):active{transform:scale(.98);}
#editor.ui-mobile-sheet[open]{animation:ui-sheet-arrive 220ms cubic-bezier(.2,.7,.3,1);}
@media(min-width:768px){#editor.experience-side-detail[open]{animation:motion-side-arrive 220ms cubic-bezier(.2,.7,.3,1);}}
@keyframes motion-side-arrive{from{opacity:.4;translate:20px 0}to{opacity:1;translate:0 0}}
.ui-row-actions:not([hidden]),.experience-action-menu[open]>div{animation:motion-actions-arrive 160ms ease-out;}
@keyframes motion-actions-arrive{from{opacity:.4;translate:0 4px}to{opacity:1;translate:0 0}}
.ui-feedback:not([hidden]){animation:motion-feedback-arrive 180ms ease-out;}
@keyframes motion-feedback-arrive{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
.motion-progress{position:relative;display:block;height:7px;margin:10px 0 0;border-radius:8px;overflow:hidden;background:var(--line);}
.motion-progress>progress{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0;}
.motion-progress-fill{display:block;height:100%;border-radius:inherit;background:#397f6d;}
@media(forced-colors:active){.motion-progress{background:Canvas;border:1px solid CanvasText;}.motion-progress-fill{background:Highlight;}}
@media(prefers-reduced-motion:reduce){.shell button,#editor button{transition:none!important;transform:none!important;}#editor.experience-side-detail[open],#editor.ui-mobile-sheet[open],.ui-row-actions:not([hidden]),.experience-action-menu[open]>div,.ui-feedback:not([hidden]){animation:none!important;translate:none!important;}}
