
:root{--ease-out:cubic-bezier(.2,.8,.2,1);--ease-spring:cubic-bezier(.34,1.56,.64,1)}
@keyframes lv-up{from{opacity:0;translate:0 18px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes lv-drop{from{opacity:0;translate:0 -14px}to{opacity:1;translate:0 0}}
@keyframes lv-nav-in{from{opacity:0;translate:0 80px}to{opacity:1;translate:0 0}}
body.intro .topbar{animation:lv-drop .6s var(--ease-out) var(--intro-delay,0ms) both}
body.intro .collections-section .section-heading,
body.intro .hero{animation:lv-up .55s var(--ease-out) calc(var(--intro-delay,0ms) + 80ms) both}
body.intro .collection-vault-heading{animation:lv-up .55s var(--ease-out) calc(var(--intro-delay,0ms) + 140ms) both}
body.intro .collection-card{animation:lv-up .6s var(--ease-spring) calc(var(--intro-delay,0ms) + 200ms) both}
body.intro .collection-card:nth-child(2){animation-delay:calc(var(--intro-delay,0ms) + 260ms)}
body.intro .collection-card:nth-child(3){animation-delay:calc(var(--intro-delay,0ms) + 320ms)}
body.intro .collection-card:nth-child(4){animation-delay:calc(var(--intro-delay,0ms) + 380ms)}
body.intro .collection-card:nth-child(5){animation-delay:calc(var(--intro-delay,0ms) + 440ms)}
body.intro .collection-card:nth-child(n+6){animation-delay:calc(var(--intro-delay,0ms) + 500ms)}
@keyframes lv-sheet{from{opacity:0;translate:0 22px;scale:.97}to{opacity:1;translate:0 0;scale:1}}
@keyframes lv-backdrop{from{opacity:0}to{opacity:1}}
@keyframes lv-toast{from{opacity:0;translate:0 12px;scale:.96}to{opacity:1;translate:0 0;scale:1}}
dialog.modal[open]{animation:lv-sheet .34s var(--ease-out)}
dialog.modal[open]::backdrop{animation:lv-backdrop .25s ease}.primary-button,.secondary-button,.danger-button,.small-button,.icon-button,.filter-pill,.collection-card,.bookmark-card,.theme-option,.sync-chip,.detail-square-button,.folder-chip{transition:scale .14s var(--ease-out),translate .14s var(--ease-out),background-color .2s ease,box-shadow .2s ease}.primary-button:active,.secondary-button:active,.danger-button:active,.small-button:active,.icon-button:active,.filter-pill:active,.theme-option:active,.sync-chip:active,.detail-square-button:active,.folder-chip:active{scale:.95}
.collection-card:active,.bookmark-card:active{scale:.98}
@media (hover:hover){.collection-card:hover,.bookmark-card:hover{translate:0 -3px}}
:focus-visible{outline:3px solid #f97316;outline-offset:2px;border-radius:10px}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline-offset:0}
@keyframes lv-pulse{0%,100%{opacity:1;scale:1}50%{opacity:.45;scale:1.5}}
.sync-chip.busy .sync-dot{animation:lv-pulse 1s ease-in-out infinite}
@keyframes lv-float{0%,100%{translate:0 0}50%{translate:0 -6px}}
.empty-state .empty-icon{display:inline-block;animation:lv-float 3.2s ease-in-out infinite}
.bookmark-card{animation:lv-up .42s var(--ease-out) both}
.collection-detail-card{animation:lv-up .42s var(--ease-out) both}
.collection-vault-heading h3{white-space:nowrap}
.collection-vault-heading{gap:10px;align-items:flex-end}
.modal-actions.split-actions{flex-wrap:wrap;gap:10px}
.modal-actions .right-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.modal-card{max-width:100%;box-sizing:border-box}
.modal-card select,.modal-card input,.modal-card textarea{max-width:100%;box-sizing:border-box}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
.private-secret-dialog .private-secret-message{margin:0 0 6px;font-size:14px;line-height:1.45;opacity:.8}
.private-secret-dialog .private-secret-error{margin:0;color:#c2410c;font-weight:700;font-size:14px}
.private-secret-dialog .private-secret-error[hidden]{display:none}


/* ---------- Toast: compact pill above the dock ---------- */
.toast{position:fixed;z-index:2147483647;left:50%;top:auto;right:auto;bottom:calc(var(--dock-h,72px) + 48px + var(--dock-safe,0px));transform:translateX(-50%);
  display:flex;align-items:center;gap:10px;box-sizing:border-box;width:max-content;max-width:min(420px,calc(100vw - 32px));min-height:0;height:auto;
  padding:8px 18px 8px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.12);
  background:rgba(23,23,25,.95);color:#faf8f1;font-size:14px;font-weight:650;line-height:1.3;text-align:left;pointer-events:none;
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 14px 28px -10px rgba(23,23,25,.55),0 3px 8px rgba(23,23,25,.2)}
.toast.hidden{display:none}
.toast-icon{flex:0 0 28px;width:28px;height:28px;border-radius:50%;position:relative;background:#6aa9f4}
.toast-icon::after{content:"i";position:absolute;inset:0;display:grid;place-items:center;color:#10243b;font-size:15px;font-weight:900;line-height:1}
.toast-success .toast-icon{background:#4fd6a0}
.toast-success .toast-icon::after{content:"\2713";color:#06382a;font-size:16px}
.toast-error .toast-icon{background:#ff8b72}
.toast-error .toast-icon::after{content:"!";color:#4a1409}
.toast-message{min-width:0;overflow-wrap:anywhere}
.toast:not(.hidden):not(.leaving){animation:lv-toast-in .38s var(--ease-spring)}
.toast.leaving{animation:lv-toast-out .22s ease forwards}
@keyframes lv-toast-in{from{opacity:0;translate:0 16px;scale:.9}to{opacity:1;translate:0 0;scale:1}}
@keyframes lv-toast-out{to{opacity:0;translate:0 10px;scale:.96}}
html[data-theme="dark"] .toast{background:rgba(250,248,241,.97);color:#171719;border-color:rgba(23,23,25,.12);
  box-shadow:inset 0 1px 0 #fff,0 14px 28px -10px rgba(0,0,0,.7),0 3px 8px rgba(0,0,0,.3)}
dialog .toast{bottom:calc(24px + var(--dock-safe,0px))}
@media (orientation:landscape) and (max-height:520px){.toast{left:calc(50% + 48px);bottom:calc(16px + var(--dock-safe,0px))}}

/* ---------- Favorites: its own screen ---------- */
body.favorites-mode .hero,body.favorites-mode .collections-section{display:none}
body.favorites-mode .bookmarks-section{animation:lv-up .45s var(--ease-out) both}
.card-actions .fav-link svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:fill .25s,stroke .25s,transform .45s var(--ease-spring)}
.card-actions .fav-link.is-on{color:#d98a00}
.card-actions .fav-link.is-on svg{fill:#f7c934;stroke:#b87400}
.card-actions .fav-link.just-on svg{animation:lv-star .6s var(--ease-spring)}
.empty-state .empty-icon{font-size:42px}
