/* How the member tools respond to the pointer (assets/ui-feel.js): press ripples, quick tooltips, and menus that grow
   open, with one easing curve for hovers and presses. Every tool page loads it; nothing moves with Reduce motion. */
:root {
  --ui-ease: cubic-bezier(.4, 0, .2, 1);
  --ui-ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* Hovers and presses on buttons start quickly and settle gently, whatever their durations. */
:where(button, [role="button"], summary, .dt-nav-link, .dt-tools-button) { transition-timing-function: var(--ui-ease) !important; }

/* The press ripple: a layer over the pressed button, in the button's text colour. */
.ui-ripple-layer { position: fixed; z-index: 2147483000; overflow: hidden; pointer-events: none; contain: strict; }
.ui-ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .16; transform: scale(0); animation: ui-ripple-grow .45s var(--ui-ease) forwards; }
.ui-ripple.leaving { opacity: 0; transition: opacity .25s var(--ui-ease); }
@keyframes ui-ripple-grow { to { transform: scale(1); } }

/* Tooltips, in the header tooltips' light glass. */
.ui-tooltip { position: fixed; z-index: 2147483001; max-width: 260px; padding: 6px 9px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 8px; background: rgba(248, 250, 252, .96); box-shadow: 0 10px 24px rgba(15, 23, 42, .14), inset 0 1px 0 rgba(255, 255, 255, .74); color: #1e293b; font: 600 12px/1.35 Inter, system-ui, -apple-system, sans-serif; letter-spacing: 0; text-align: center; overflow-wrap: anywhere; pointer-events: none; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); animation: ui-fade-in .12s var(--ui-ease-out); }
@keyframes ui-fade-in { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }

/* Menus and pop-ups grow open from where they're attached. The individual scale property leaves their own positioning
   transforms alone. */
@keyframes ui-pop { from { opacity: 0; scale: .95; } to { opacity: 1; scale: 1; } }
.dt-tools-panel:not([hidden]) { transform-origin: top center; animation: ui-pop .18s var(--ui-ease-out); }
.header-more-menu:not([hidden]) { transform-origin: top right; animation: ui-pop .16s var(--ui-ease-out); }
.bc-menu, .pmenu { transform-origin: top left; animation: ui-pop .16s var(--ui-ease-out); }
.more-menu:not([hidden]) { transform-origin: top right; animation: ui-pop .16s var(--ui-ease-out); }
dialog[open] { animation: ui-pop .2s var(--ui-ease-out); }
dialog[open]::backdrop { animation: ui-backdrop-in .2s var(--ui-ease-out); }
@keyframes ui-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
/* The boards' tool flyouts already fade and slide in; they grow a little too, on the same curve. */
html .toolbar-flyout { scale: .97; transition: opacity .16s var(--ui-ease-out), transform .16s var(--ui-ease-out), scale .16s var(--ui-ease-out), visibility 0s linear .16s; }
html .toolbar-flyout.is-open { scale: 1; transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .ui-ripple-layer { display: none; }
  .ui-tooltip, .dt-tools-panel:not([hidden]), .header-more-menu:not([hidden]), .bc-menu, .pmenu, .more-menu:not([hidden]), dialog[open], dialog[open]::backdrop { animation: none; }
  html .toolbar-flyout { scale: 1; }
}
